|
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
Immutable super class of a basic element of a chart. Each basic element has a perspective position and bounds in float precision. The element does not have a method to paint itself, it just contains the logic structure. For example an implementation of a 3D look is responsable to paint this element.
PerspectivePart
Constructor Summary | |
Element(java.lang.Object perspective)
Constructs a new element using the given perspective position. |
|
Element(java.lang.Object perspective,
LogicalPoint point)
Constructs a new element using the given perspective position and the given logic point. |
Method Summary | |
abstract boolean |
contains(java.awt.Point p)
Returns true if this element contains the given point. |
abstract java.awt.geom.Rectangle2D.Float |
getBounds(java.awt.geom.Rectangle2D.Float out)
Returns the bounds of this element in float precision. |
LogicalPoint |
getLogicalPoint()
Returns the logic point to which this element points to. |
java.lang.Object |
getPerspective()
Returns the perspective position of this element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Element(java.lang.Object perspective)
perspective
- The perspective position of this element.PerspectivePart
public Element(java.lang.Object perspective, LogicalPoint point)
perspective
- The perspective position of this element.point
- The logic point of this element.PerspectivePart
Method Detail |
public java.lang.Object getPerspective()
public LogicalPoint getLogicalPoint()
null
.public abstract java.awt.geom.Rectangle2D.Float getBounds(java.awt.geom.Rectangle2D.Float out)
out
- The return value, not null
.
public abstract boolean contains(java.awt.Point p)
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |