|
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.Element
li.netcat.chart.util.elem.SymbolElement
Immutable, basic element of a line chart that defines a small reference symbol. It contains the shape, the paint and the position of the center of the symbol.
Constructor Summary | |
SymbolElement(java.awt.Shape symbol,
java.awt.Paint paint,
float x,
float y,
java.lang.Object perspective)
Constructs a new symbol element and initializes its fields to the given values. |
|
SymbolElement(java.awt.Shape symbol,
java.awt.Paint paint,
float x,
float y,
java.lang.Object perspective,
LogicalPoint point)
Constructs a new symbol element and initializes its fields to the given values. |
Method Summary | |
boolean |
contains(java.awt.Point p)
Returns true if this element contains the given point. |
java.awt.geom.Rectangle2D.Float |
getBounds(java.awt.geom.Rectangle2D.Float out)
Returns the bounds of this element in float precision. |
java.awt.Paint |
getPaint()
Returns the paint that is used to fill the outline of the symbol. |
java.awt.Shape |
getSymbol()
Returns the outline of the symbol. |
float |
getX()
Returns the x-coordinate of the center of the symbol. |
float |
getY()
Returns the y-coordinate of the center of the symbol. |
Methods inherited from class li.netcat.chart.util.elem.Element |
getLogicalPoint, getPerspective |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymbolElement(java.awt.Shape symbol, java.awt.Paint paint, float x, float y, java.lang.Object perspective)
paint
- The paint used to fill the symbol, not null
.x
- The x-coordinate of the center of the symbol.y
- The y-coordinate of the center of the symbol.perspective
- The perspective position of this element.PerspectivePart
public SymbolElement(java.awt.Shape symbol, java.awt.Paint paint, float x, float y, java.lang.Object perspective, LogicalPoint point)
paint
- The paint used to fill the symbol, not null
.x
- The x-coordinate of the center of the symbol.y
- The y-coordinate of the center of the symbol.perspective
- The perspective position of this element.point
- The logical point to which this element points to.PerspectivePart
Method Detail |
public java.awt.Shape getSymbol()
public java.awt.Paint getPaint()
public float getX()
public float getY()
public java.awt.geom.Rectangle2D.Float getBounds(java.awt.geom.Rectangle2D.Float out)
Element
getBounds
in class Element
out
- The return value, not null
.
public boolean contains(java.awt.Point p)
Element
contains
in class Element
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |