|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.policy.AbstractPolicy com.dlsc.flexgantt.policy.layer.DefaultCrosshairPolicy
public class DefaultCrosshairPolicy
The default implementation of the crosshair policy displays the following information in the four corners of the crosshair:
ICrosshairPolicy
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.dlsc.flexgantt.policy.layer.ICrosshairPolicy |
---|
ICrosshairPolicy.LabelPosition |
Constructor Summary | |
---|---|
DefaultCrosshairPolicy()
|
Method Summary | |
---|---|
java.lang.String |
getLabel(java.lang.Object node,
java.lang.Object timelineObject,
IGanttChartModel model,
long time,
ICrosshairPolicy.LabelPosition position)
Returns a label that will be shown to the left/right and top/bottom of the crosshair location. |
java.text.DateFormat |
getTimelineDateFormat()
Returns the date formatting object used for formatting the date at the current crosshair cursor location. |
java.text.DateFormat |
getTimelineObjectDateFormat()
Returns the date formatting object used for formatting the date information provided by the timeline object over which the crosshair cursor is hovering |
boolean |
isLabelVisible(ICrosshairPolicy.LabelPosition position)
Determines whether a label is visible at all. |
void |
setTimelineDateFormat(java.text.DateFormat format)
Sets the date formatting object used for formatting the date at the current crosshair cursor location. |
void |
setTimelineObjectDateFormat(java.text.DateFormat format)
Sets the date formatting object used for formatting the date information provided by the timeline object over which the crosshair cursor is hovering |
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy |
---|
assertClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCrosshairPolicy()
Method Detail |
---|
public java.lang.String getLabel(java.lang.Object node, java.lang.Object timelineObject, IGanttChartModel model, long time, ICrosshairPolicy.LabelPosition position)
ICrosshairPolicy
getLabel
in interface ICrosshairPolicy
node
- the tree node to the left of the crosshair cursor (might be
NULL if the crosshair is below the last row)timelineObject
- the timeline object over which the crosshair is currently
hovering (might be NULL if the crosshair is not on top of an
object)model
- the data source of the tree node and timeline objecttime
- the time at the current location of the crosshairposition
- the position where the label will be placed
public boolean isLabelVisible(ICrosshairPolicy.LabelPosition position)
ICrosshairPolicy
isLabelVisible
in interface ICrosshairPolicy
position
- the positon to check for visibility
public java.text.DateFormat getTimelineDateFormat()
public void setTimelineDateFormat(java.text.DateFormat format)
format
- the date formatter used for displaying the dateline timepublic java.text.DateFormat getTimelineObjectDateFormat()
public void setTimelineObjectDateFormat(java.text.DateFormat format)
format
- the date formatter used for displaying the timeline object
time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |