All Packages Class Hierarchy This Package Previous Next Index
Class tc.calendar.Marker
java.lang.Object
|
+----tc.calendar.Marker
- public class Marker
- extends Object
- implements Serializable
Marker represents any data that can be associated with a time slice.
Each marker must have a unique identifier to differentiate it from
other markers and a color that is used when painting the marked time
slice.
- Version:
- 0.30, 1998/04/01
- Author:
- FRED development team, Antti Viljamaa, Jukka Viljamaa
- See Also:
- TimeSlice, TimeGrid
-
color
- The color of the marker.
-
data
- The data associated with the marker.
-
markerID
- The unique id of the marker.
-
Marker(int, Color, Object)
- Creates a new marker and initializes it with the given id, color, and
data.
-
getColor()
- Gets the color of the marker.
-
getData()
- Gets the data associated with the marker.
-
getMarkerID()
- Gets the unique id of the marker.
-
setColor(Color)
- Sets the color of the marker.
-
setData(Object)
- Sets the data associated with the marker.
-
setMarkerID(int)
- Sets the unique id of the marker.
-
toString()
- Returns the marker data as a string.
data
private Object data
- The data associated with the marker.
color
private Color color
- The color of the marker.
markerID
private int markerID
- The unique id of the marker.
Marker
public Marker(int id,
Color color,
Object data)
- Creates a new marker and initializes it with the given id, color, and
data.
- Parameters:
- id - The unique identifier for the marker.
- color - The color for the marker.
- data - The data associated with the marker.
getColor
public Color getColor()
- Gets the color of the marker.
getData
public Object getData()
- Gets the data associated with the marker.
getMarkerID
public int getMarkerID()
- Gets the unique id of the marker.
setColor
public void setColor(Color c)
- Sets the color of the marker.
setData
public void setData(Object o)
- Sets the data associated with the marker.
setMarkerID
public void setMarkerID(int id)
- Sets the unique id of the marker.
toString
public String toString()
- Returns the marker data as a string.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index