|
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.AreaElement
Immutable, basic element of a chart that defines an area. It contains the shape that defines the outline of the area and a pen that is used to fill the shape and stroke the outline of the area.
Constructor Summary | |
AreaElement(java.awt.Shape area,
Pen pen,
java.lang.Object perspective)
Constructs a new area element and initializes its fields to the given values. |
|
AreaElement(java.awt.Shape area,
Pen pen,
java.lang.Object perspective,
LogicalPoint point)
Constructs a new area 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.Shape |
getArea()
Returns the shape that defines the outline of the area, not null . |
java.awt.geom.Rectangle2D.Float |
getBounds(java.awt.geom.Rectangle2D.Float out)
Returns the bounds of this element in float precision. |
Pen |
getPen()
Returns the pen used to paint the area, not null . |
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 AreaElement(java.awt.Shape area, Pen pen, java.lang.Object perspective)
area
- The shape that defines the outline of the area, not null
.pen
- The pen used to paint the area, not null
.perspective
- The perspective position of this element.PerspectivePart
public AreaElement(java.awt.Shape area, Pen pen, java.lang.Object perspective, LogicalPoint point)
area
- The shape that defines the outline of the area, not null
.pen
- The pen used to paint the area, not null
.perspective
- The perspective position of this element.point
- The logical point to which this element points to.PerspectivePart
Method Detail |
public java.awt.Shape getArea()
null
.
null
.public Pen getPen()
null
.
null
.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 |