public static enum Timeline.TimelineMarkerType extends Enum<Timeline.TimelineMarkerType>
Enum Constant and Description |
---|
FLAG
Draws a marker with a little flag at the top
|
LABEL
Draws a marker with a little flag showing some text
|
Modifier and Type | Method and Description |
---|---|
abstract void |
drawMarker(Timeline.TimelineMarker m,
MBFImage image,
int xPos,
int height)
Draws this marker into the given graphics context at the given
position and with the given length.
|
protected static Float[] |
getOpposingColour(Float[] c)
Returns an opposing colour
|
static Timeline.TimelineMarkerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Timeline.TimelineMarkerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Timeline.TimelineMarkerType LABEL
public static final Timeline.TimelineMarkerType FLAG
public static Timeline.TimelineMarkerType[] values()
for (Timeline.TimelineMarkerType c : Timeline.TimelineMarkerType.values()) System.out.println(c);
public static Timeline.TimelineMarkerType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract void drawMarker(Timeline.TimelineMarker m, MBFImage image, int xPos, int height)
m
- The markerimage
- The image to draw toxPos
- The positionheight
- The length to draw the markerprotected static Float[] getOpposingColour(Float[] c)
c
- The colour to oppose