public class TimeFrame
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
TimeFrame() |
TimeFrame(int start,
int end,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
TimeFrame |
clone() |
void |
copyFrom(TimeFrame tf)
Copies the settings from the given timeframe object into this object.
|
boolean |
equals(java.lang.Object o) |
java.awt.Color |
getEndColor()
Gets the color of the end line (null for default line color).
|
float[] |
getEndDash()
Gets the dash type of the end line (null for solid line).
|
java.awt.Stroke |
getEndStroke() |
int |
getEndTime()
Gets the end time as seconds since midnight.
|
float |
getEndWidth()
Gets the width end line (in pixels).
|
java.awt.Color |
getFillColor()
Gets the color of the fill area (null for default fill color).
|
java.awt.Color |
getStartColor()
Gets the color of the start line (null for default line color).
|
float[] |
getStartDash()
Gets the dash type of the start line (null for solid line).
|
java.awt.Stroke |
getStartStroke() |
int |
getStartTime()
Gets the start time as seconds since midnight.
|
float |
getStartWidth()
Gets the width start line (in pixels).
|
boolean |
isEnabled() |
boolean |
isShowEnd() |
boolean |
isShowFill() |
boolean |
isShowStart() |
void |
setEnabled(boolean b)
Sets the enabled attribute for this time frame.
|
void |
setEndColor(java.awt.Color c)
Sets the color of the end line (null for default line color).
|
void |
setEndDash(float[] dash)
Sets the dash type of the end line (null for solid line).
|
void |
setEndTime(int endTime)
Sets the end time as seconds since midnight.
|
void |
setEndWidth(float w)
Sets the width end line (in pixels).
|
void |
setFillColor(java.awt.Color c)
Sets the color of the fill area (null for default fill color).
|
void |
setShowEnd(boolean b)
Sets the attribute for displaying the end line.
|
void |
setShowFill(boolean b)
Sets the attribute for displaying the fill area.
|
void |
setShowStart(boolean b)
Sets the attribute for displaying the start line.
|
void |
setStartColor(java.awt.Color c)
Sets the color of the start line (null for default line color).
|
void |
setStartDash(float[] dash)
Sets the dash type of the start line (null for solid line).
|
void |
setStartTime(int startTime)
Sets the start time as seconds since midnight.
|
void |
setStartWidth(float w)
Sets the width start line (in pixels).
|
java.lang.String |
toString() |
public TimeFrame()
public TimeFrame(int start, int end, boolean enabled)
public int getStartTime()
public void setStartTime(int startTime)
public int getEndTime()
public void setEndTime(int endTime)
public boolean isEnabled()
public void setEnabled(boolean b)
public java.awt.Color getStartColor()
public void setStartColor(java.awt.Color c)
public float[] getStartDash()
public void setStartDash(float[] dash)
public float getStartWidth()
public void setStartWidth(float w)
public boolean isShowStart()
public void setShowStart(boolean b)
public java.awt.Color getEndColor()
public void setEndColor(java.awt.Color c)
public float[] getEndDash()
public void setEndDash(float[] dash)
public float getEndWidth()
public void setEndWidth(float w)
public boolean isShowEnd()
public void setShowEnd(boolean b)
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color c)
public boolean isShowFill()
public void setShowFill(boolean b)
public java.awt.Stroke getStartStroke()
public java.awt.Stroke getEndStroke()
public void copyFrom(TimeFrame tf)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public TimeFrame clone()
clone
in class java.lang.Object