public class IltBlinkingColor extends Color implements IlpBlinkingColor
IltDefaultBlinkingManager
,
Serialized Formblack, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
IltBlinkingColor(Color onColor,
Color offColor,
IlpBlinkingManager bm)
Creates a new blinking color.
|
IltBlinkingColor(Color onColor,
Color offColor,
long onPeriod,
long offPeriod,
IlpBlinkingManager bm)
Creates a new blinking color.
|
IltBlinkingColor(Color onColor,
Color offColor,
Long onPeriod,
Long offPeriod,
IlpBlinkingManager bm)
Creates a new blinking color.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphicElement(ilog.tgo.graphic.internal.IltGraphicElement elt) |
PaintContext |
createContext(ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints) |
boolean |
equals(Object obj)
Compares two objects.
|
Color |
getCurrentColor() |
Color |
getOffColor()
Returns the color of the off period.
|
long |
getOffPeriod()
Returns the duration, in milliseconds, of the off period.
|
Color |
getOnColor()
Returns the color of the on period.
|
long |
getOnPeriod()
Returns the duration, in milliseconds, of the on period.
|
HashMap |
getRegions()
Returns the regions to be redrawn when the color changes.
|
int |
getRGB() |
int |
getTransparency() |
int |
hashCode()
Returns a hash code value for the object.
|
void |
removeGraphicElement(ilog.tgo.graphic.internal.IltGraphicElement elt) |
void |
setOn(boolean flag)
Sets if this color is in the on or off color.
|
brighter, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGBColorComponents, getRGBComponents, HSBtoRGB, RGBtoHSB, toString
public IltBlinkingColor(Color onColor, Color offColor, IlpBlinkingManager bm)
onColor
- Color used during the on periodoffColor
- Color used during the off periodbm
- The blinking managerpublic IltBlinkingColor(Color onColor, Color offColor, Long onPeriod, Long offPeriod, IlpBlinkingManager bm)
public IltBlinkingColor(Color onColor, Color offColor, long onPeriod, long offPeriod, IlpBlinkingManager bm)
onColor
- Color used during the on periodoffColor
- Color used during the off periodonPeriod
- Duration, in milliseconds, of the on periodoffPeriod
- Duration, in milliseconds, of the off periodbm
- The blinking managerpublic boolean equals(Object obj)
public int hashCode()
public PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
createContext
in interface Paint
createContext
in class Color
public int getTransparency()
getTransparency
in interface Transparency
getTransparency
in class Color
public Color getCurrentColor()
public long getOnPeriod()
getOnPeriod
in interface IlpBlinkingColor
public long getOffPeriod()
getOffPeriod
in interface IlpBlinkingColor
public Color getOnColor()
getOnColor
in interface IlpBlinkingColor
public Color getOffColor()
getOffColor
in interface IlpBlinkingColor
public void setOn(boolean flag)
public void addGraphicElement(ilog.tgo.graphic.internal.IltGraphicElement elt)
public void removeGraphicElement(ilog.tgo.graphic.internal.IltGraphicElement elt)
public HashMap getRegions()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.