|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.geom.RectangularShape java.awt.geom.Rectangle2D java.awt.Rectangle com.dlsc.flexgantt.swing.ObjectBounds
public class ObjectBounds
An object used to store the rectangle bounds of a timeline object. Additional properties such as the object's owning tree node and timeline layer are also available as a convenience.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
Field Summary |
---|
Fields inherited from class java.awt.Rectangle |
---|
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
---|---|
ObjectBounds(java.lang.Object node,
java.lang.Object obj,
IGanttChartModel model,
int x,
int y,
int width,
int height,
TreeTableNode treeTableNode,
TimelineObjectLayer layer)
Constructs a new bounds object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object otherObject)
|
ILayer |
getLayer()
Returns the layer for which the timeline object was returned from the data model. |
TimelineObjectLayer |
getLayerUI()
Returns the layer user interface component on which the timeline object was rendered. |
IGanttChartModel |
getModel()
Returns the model from which the timeline object originated. |
java.lang.Object |
getNode()
Returns the tree table node to which the timeline object belongs. |
java.lang.Object |
getObject()
Returns the timeline object. |
TimelineObjectPath |
getPath()
Returns a timeline object path based on the tree path, model layer, and object stored inside the object bounds. |
ITimeSpan |
getTimeSpan()
Returns the time span of the timeline object. |
TreeTableNode |
getTreeTableNode()
Returns the (tree table internal) representation of the tree node. |
Methods inherited from class java.awt.Rectangle |
---|
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union |
Methods inherited from class java.awt.geom.Rectangle2D |
---|
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.Shape |
---|
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
Constructor Detail |
---|
public ObjectBounds(java.lang.Object node, java.lang.Object obj, IGanttChartModel model, int x, int y, int width, int height, TreeTableNode treeTableNode, TimelineObjectLayer layer)
node
- the tree table node that owns the timeline objectobj
- the actual timeline objectmodel
- the data source that returned the objectx
- the x-coordinate of the boundsy
- the y-coordinate of the boundswidth
- the width of the boundsheight
- the height of the boundstreeTableNode
- the (tree table internal) representation of the tree node
objectlayer
- the timeline layer that rendered the timeline objectMethod Detail |
---|
public IGanttChartModel getModel()
public ILayer getLayer()
public TimelineObjectLayer getLayerUI()
public java.lang.Object getNode()
public java.lang.Object getObject()
public ITimeSpan getTimeSpan()
public TreeTableNode getTreeTableNode()
public TimelineObjectPath getPath()
public boolean equals(java.lang.Object otherObject)
equals
in class java.awt.Rectangle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |