public class GlassEffect extends ItemEffect
This effect can be applied to the elements in a Calendar by adding an
instance of this class to the ItemEffects collection
of the Calendar class.
| Constructor and Description |
|---|
GlassEffect()
Initializes a new instance of the
GlassEffect class. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
GlassEffectType |
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 item.
|
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(GlassEffectType 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 item.
|
addPropertyChangeListener, removePropertyChangeListenerpublic GlassEffect()
GlassEffect class.public GlassEffectType getType()
GlassEffectType constants.
The default is Type1.public void setType(GlassEffectType value)
value - One of the GlassEffectType constants.
The default is Type1.public java.awt.Color getGlowColor()
White.public void setGlowColor(java.awt.Color value)
value - A Color object. The default is White.public boolean getUsePenAsGlow()
true to ignore GlowColor and use the color of the pen
for the effect glow; otherwise, false.public void setUsePenAsGlow(boolean value)
value - true to ignore GlowColor and use the color of
the pen for the effect glow; otherwise, false.public java.awt.Color getReflectionColor()
White.public void setReflectionColor(java.awt.Color value)
value - A Color object. The default is White.