|
||||||||||
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.DefaultDragInfoPolicy
public class DefaultDragInfoPolicy
The default implementation of the drag info policy will simply create a
string that contains the time span passed to the policy. This implementation
is sufficient if for example the SimpleGranularityDatelineModel
is in
use.
Constructor Summary | |
---|---|
DefaultDragInfoPolicy()
|
Method Summary | |
---|---|
java.text.NumberFormat |
getCapacityFormatter()
Returns the formatter that is being used to format the capacity used value into a nice text. |
java.lang.Object |
getDragInfo(java.lang.Object node,
java.lang.Object timelineObject,
IGanttChartModel model,
int rowHeight,
int y,
double capacityUsed)
Returns an object that can be used to show information while the user interactively changes the capacity used value. |
java.lang.Object |
getDragInfo(java.lang.Object node,
java.lang.Object timelineObject,
IGanttChartModel model,
long timePoint,
double percentageComplete)
Returns an object that can be used to show information while the user interactively changes the percentage complete value. |
java.lang.Object |
getDragInfo(java.lang.Object node,
java.lang.Object timelineObject,
IGanttChartModel model,
java.lang.Object dropNode,
ITimeSpan dropSpan)
Returns an object that can be used to show information during a drag operation (e.g. time span over which the dragged timeline object hovers). |
java.text.NumberFormat |
getPercentageFormatter()
Returns the formatter that is being used to format the percentage complete value into a nice text. |
void |
setCapacityFormatter(java.text.NumberFormat formatter)
Sets the formatter that is being used to format the percentage complete value into a nice text. |
void |
setPercentageFormatter(java.text.NumberFormat formatter)
Sets the formatter that is being used to format the percentage complete value into a nice text. |
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 DefaultDragInfoPolicy()
Method Detail |
---|
public java.lang.Object getDragInfo(java.lang.Object node, java.lang.Object timelineObject, IGanttChartModel model, java.lang.Object dropNode, ITimeSpan dropSpan)
IDragInfoPolicy
getDragInfo
in interface IDragInfoPolicy
node
- the tree node that owns the timeline objecttimelineObject
- the dragged objectmodel
- the model to which the dragged timeline object belongsdropNode
- the tree node over which the dragged object hoversdropSpan
- the span over which the dragged object hovers
public java.lang.Object getDragInfo(java.lang.Object node, java.lang.Object timelineObject, IGanttChartModel model, long timePoint, double percentageComplete)
IDragInfoPolicy
getDragInfo
in interface IDragInfoPolicy
node
- the tree node that owns the timeline objecttimelineObject
- the dragged objectmodel
- the model to which the dragged timeline object belongstimePoint
- the current (grid adjusted) time at the cursor locationpercentageComplete
- the percentage complete value of the activity object
public java.lang.Object getDragInfo(java.lang.Object node, java.lang.Object timelineObject, IGanttChartModel model, int rowHeight, int y, double capacityUsed)
IDragInfoPolicy
getDragInfo
in interface IDragInfoPolicy
node
- the tree node that owns the timeline objecttimelineObject
- the dragged objectmodel
- the model to which the dragged timeline object belongsrowHeight
- the height of the row in which the drag operation takes placey
- the current y coordinate relative to the coordinate system of
the row (0 = bottom of row)capacityUsed
- the capacity used value of the capacity object
public java.text.NumberFormat getPercentageFormatter()
getDragInfo(Object, Object, IGanttChartModel, long, double)
public void setPercentageFormatter(java.text.NumberFormat formatter)
formatter
- the formatter for the percentage complete textgetDragInfo(Object, Object, IGanttChartModel, long, double)
public java.text.NumberFormat getCapacityFormatter()
getDragInfo(Object, Object, IGanttChartModel, int, int, double)
public void setCapacityFormatter(java.text.NumberFormat formatter)
formatter
- the formatter for the percentage complete textgetDragInfo(Object, Object, IGanttChartModel, int, int, double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |