com.mindfusion.diagramming
Class GlassEffect

java.lang.Object
  extended by com.mindfusion.diagramming.NodeEffect
      extended by com.mindfusion.diagramming.GlassEffect
All Implemented Interfaces:
NotifyPropertyChanged, java.io.Externalizable, java.io.Serializable, java.lang.Cloneable

public final class GlassEffect
extends NodeEffect

Represents a glass-like visual effect. This effect can be applied to the nodes in a Diagram by adding an instance of this class to the NodeEffects collection.

See Also:
Serialized Form

Constructor Summary
GlassEffect()
          Initializes a new instance of the GlassEffect class.
 
Method Summary
 java.lang.Object clone()
          NodeEffect.clone() override.
 java.awt.Color getGlowColor()
          Gets the color of the glow portion of the effect.
 java.awt.Color getReflectionColor()
          Gets the color of the reflection portion of the effect.
 int getType()
          Gets the type of the glass effect.
 boolean getUsePenAsGlow()
          Gets a value indicating whether the glow portion of the effect should be painted with the Pen color of the respective node.
 void readExternal(java.io.ObjectInput in)
          NodeEffect.readExternal(java.io.ObjectInput) override.
 void setGlowColor(java.awt.Color value)
          Sets the color of the glow portion of the effect.
 void setReflectionColor(java.awt.Color value)
          Sets the color of the reflection portion of the effect.
 void setType(int value)
          Sets the type of the glass effect.
 void setUsePenAsGlow(boolean value)
          Sets a value indicating whether the glow portion of the effect should be painted with the Pen color of the respective node.
 void writeExternal(java.io.ObjectOutput out)
          NodeEffect.writeExternal(java.io.ObjectOutput) override.
 
Methods inherited from class com.mindfusion.diagramming.NodeEffect
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassEffect

public GlassEffect()
Initializes a new instance of the GlassEffect class.

Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
NodeEffect.writeExternal(java.io.ObjectOutput) override.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class NodeEffect
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
NodeEffect.readExternal(java.io.ObjectInput) override.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class NodeEffect
Throws:
java.io.IOException
java.lang.ClassNotFoundException

clone

public java.lang.Object clone()
NodeEffect.clone() override.

Specified by:
clone in class NodeEffect
Returns:
A new effect that is a copy of this effect.

getType

public int getType()
Gets the type of the glass effect.


setType

public void setType(int value)
Sets the type of the glass effect.


getGlowColor

public java.awt.Color getGlowColor()
Gets the color of the glow portion of the effect.


setGlowColor

public void setGlowColor(java.awt.Color value)
Sets the color of the glow portion of the effect.


getUsePenAsGlow

public boolean getUsePenAsGlow()
Gets a value indicating whether the glow portion of the effect should be painted with the Pen color of the respective node.


setUsePenAsGlow

public void setUsePenAsGlow(boolean value)
Sets a value indicating whether the glow portion of the effect should be painted with the Pen color of the respective node.


getReflectionColor

public java.awt.Color getReflectionColor()
Gets the color of the reflection portion of the effect.


setReflectionColor

public void setReflectionColor(java.awt.Color value)
Sets the color of the reflection portion of the effect.