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()
IlpBlinkingManagergetOnPeriod in interface IlpBlinkingManagerpublic void setOnPeriod(long onPeriod)
IlpBlinkingManagersetOnPeriod in interface IlpBlinkingManagerpublic long getOffPeriod()
IlpBlinkingManagergetOffPeriod in interface IlpBlinkingManagerpublic void setOffPeriod(long offPeriod)
IlpBlinkingManagersetOffPeriod in interface IlpBlinkingManager@Deprecated public long getCoalesceTime()
IlpBlinkingManagergetCoalesceTime in interface IlpBlinkingManager@Deprecated public void setCoalesceTime(long coalesceTime)
IlpBlinkingManagersetCoalesceTime in interface IlpBlinkingManagerpublic void addColor(IlpBlinkingColor color)
IlpBlinkingManageraddColor in interface IlpBlinkingManagercolor - Blinking color to be added.public void removeColor(IlpBlinkingColor color)
IlpBlinkingManagerremoveColor in interface IlpBlinkingManagercolor - 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 IlpBlinkingManageronColor - on coloroffColor - off coloronPeriod - duration in milliseconds of the period to display the
onColoroffPeriod - duration in milliseconds of the period to display the
offColorpublic void clearColorMap()
getColor(Color, Color, long, long).© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.