|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.chart.util.elem.ElementLayout
Implementation of an iteratable layout that contains a list of elements.
| Constructor Summary | |
ElementLayout()
Constructs a new and empty ElementLayout. |
|
| Method Summary | |
void |
addElement(Element element)
Adds a new element with no translation to this layout. |
void |
addElement(Element element,
float translateX,
float translateY)
Adds a new element with the given translation to this layout. |
void |
addToBounds(float x,
float y)
Adds an arbitrary point to the bounds of this layout. |
void |
addToBounds(java.awt.geom.Rectangle2D.Float bounds)
Adds an arbitrary rectangle to the bounds of this layout. |
java.awt.Rectangle |
getBounds()
Returns the bounds of this layout. |
java.awt.geom.Rectangle2D.Float |
getBounds2D(java.awt.geom.Rectangle2D.Float out)
Returns the bounds of this layout in float precision. |
ElementIterator |
getElements()
Returns an element iterator that provides a flat view to all the elements in this layout. |
LogicalPoint |
getLogicalPoint(java.awt.Point p)
Returns a logic point for a given physcal point. |
void |
paint(java.awt.Graphics g)
Paints this layout to the given graphics. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementLayout()
ElementLayout.
| Method Detail |
public java.awt.geom.Rectangle2D.Float getBounds2D(java.awt.geom.Rectangle2D.Float out)
out - The same as the return parameter, not null.
public void addToBounds(float x,
float y)
x - The x-coordinate of the point.y - The y-coordinate ot the point.public void addToBounds(java.awt.geom.Rectangle2D.Float bounds)
bounds - An arbitrary rectangle, not null.public void addElement(Element element)
element - The element to be added, not null.
public void addElement(Element element,
float translateX,
float translateY)
element - The element to be added, not null.translateX - The translation of the element in x-direction.translateY - The translation of the element in y-direction.public java.awt.Rectangle getBounds()
Layout
getBounds in interface Layoutnull.public void paint(java.awt.Graphics g)
Layout
paint in interface Layoutg - The target graphics object.public LogicalPoint getLogicalPoint(java.awt.Point p)
Layout
getLogicalPoint in interface Layoutp - The point relative to the coordinate system of this layout.
null if the given point is not inside a shape.public ElementIterator getElements()
IteratableLayout
getElements in interface IteratableLayoutnull.
|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||