public class IltDefaultBlinkingManager extends Object implements IlpBlinkingManager
IlpBlinkingManager
Constructor and Description |
---|
IltDefaultBlinkingManager(long onPeriod,
long offPeriod)
Creates a blinking manager.
|
IltDefaultBlinkingManager(long onPeriod,
long offPeriod,
long coalesceTime)
Deprecated.
Please use
IltDefaultBlinkingManager(long, long) instead. |
Modifier and Type | Method and Description |
---|---|
void |
addColor(IlpBlinkingColor color)
Adds a blinking color to this object.
|
void |
clearColorMap()
Remove all the blinking colors stored in this manager.
|
long |
getCoalesceTime()
Deprecated.
|
IlpBlinkingColor |
getColor(Color onColor,
Color offColor,
long onPeriod,
long offPeriod)
Returns a blinking color to be used by this blinking manager.
|
long |
getOffPeriod()
Returns the default duration of off periods in milliseconds.
|
long |
getOnPeriod()
Returns the default duration of on periods in milliseconds.
|
void |
removeColor(IlpBlinkingColor color)
Removes a blinking color from this object.
|
void |
setCoalesceTime(long coalesceTime)
Deprecated.
|
void |
setOffPeriod(long offPeriod)
Sets the default duration of off periods in milliseconds.
|
void |
setOnPeriod(long onPeriod)
Sets the default duration of on periods in milliseconds.
|
@Deprecated public IltDefaultBlinkingManager(long onPeriod, long offPeriod, long coalesceTime)
IltDefaultBlinkingManager(long, long)
instead.onPeriod
- The duration, in milliseconds, of default on periodsoffPeriod
- The duration, in milliseconds, of default off periodscoalesceTime
- The minimum time between redraw events that will be
grouped togetherpublic IltDefaultBlinkingManager(long onPeriod, long offPeriod)
onPeriod
- The duration, in milliseconds, of default on periodsoffPeriod
- The duration, in milliseconds, of default off periodspublic long getOnPeriod()
IlpBlinkingManager
getOnPeriod
in interface IlpBlinkingManager
public void setOnPeriod(long onPeriod)
IlpBlinkingManager
setOnPeriod
in interface IlpBlinkingManager
public long getOffPeriod()
IlpBlinkingManager
getOffPeriod
in interface IlpBlinkingManager
public void setOffPeriod(long offPeriod)
IlpBlinkingManager
setOffPeriod
in interface IlpBlinkingManager
@Deprecated public long getCoalesceTime()
IlpBlinkingManager
getCoalesceTime
in interface IlpBlinkingManager
@Deprecated public void setCoalesceTime(long coalesceTime)
IlpBlinkingManager
setCoalesceTime
in interface IlpBlinkingManager
public void addColor(IlpBlinkingColor color)
IlpBlinkingManager
addColor
in interface IlpBlinkingManager
color
- Blinking color to be added.public void removeColor(IlpBlinkingColor color)
IlpBlinkingManager
removeColor
in interface IlpBlinkingManager
color
- Blinking color to be removed.public IlpBlinkingColor getColor(Color onColor, Color offColor, long onPeriod, long offPeriod)
This blinking manager implementation verifies if a blinking color with the given characteristics already exists. In this case, the existing blinking color is returned. Otherwise a new blinking color is created and registered in this blinking manager.
getColor
in interface IlpBlinkingManager
onColor
- on coloroffColor
- off coloronPeriod
- duration in milliseconds of the period to display the
onColor
offPeriod
- duration in milliseconds of the period to display the
offColor
public void clearColorMap()
getColor(Color, Color, long, long)
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.