|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsidnet.core.interfaces.ColorProfile
public abstract class ColorProfile
| Nested Class Summary | |
|---|---|
class |
ColorProfile.ColorBundle
|
| Field Summary | |
|---|---|
boolean |
changed
|
static int |
CLEAR
Duration marker, clear the last set color |
static java.lang.String |
DEAD
The tag for dead nodes |
static java.lang.String |
DEFAULT
|
static int |
FOREVER
Event marker, indicates an indefinite duration for which the last specified color will be applied |
static java.lang.String |
SELECTED
The tag for selected nodes |
| Constructor Summary | |
|---|---|
ColorProfile()
Constructor function in which you must define the assignment of colors to the array |
|
| Method Summary | |
|---|---|
ColorProfile.ColorBundle |
getColorBundle(java.lang.String tag)
|
ColorPair |
getColorSet()
Returns the ColorPair associated with a given instance of an implementation function |
long |
getTimeToColorChange()
Get remaining (simulation) time before the last paint is cleared |
void |
mark(ColorProfile clientColorProfile,
java.lang.String tag,
long duration)
Mark a given node |
void |
register(ColorProfile.ColorBundle colorBundle)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FOREVER
public static final int CLEAR
public static final java.lang.String DEAD
public static final java.lang.String SELECTED
public static final java.lang.String DEFAULT
public boolean changed
| Constructor Detail |
|---|
public ColorProfile()
| Method Detail |
|---|
public void register(ColorProfile.ColorBundle colorBundle)
public void mark(ColorProfile clientColorProfile,
java.lang.String tag,
long duration)
event - event markerduration - either a marker, or an integer value. The latter indicates the amount of time, in [ms]-simulation time, the mark will lastpublic ColorPair getColorSet()
public long getTimeToColorChange()
public ColorProfile.ColorBundle getColorBundle(java.lang.String tag)
getColorBundle in interface ColorProfileInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||