ChartCat 1.2

li.netcat.chart.util.elem
Class Element

java.lang.Object
  extended byli.netcat.chart.util.elem.Element
Direct Known Subclasses:
AreaElement, LayoutElement, LinesElement, SymbolElement, TextElement

public abstract class Element
extends java.lang.Object

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.

Author:
Arthur Marxer
See Also:
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

Element

public Element(java.lang.Object perspective)
Constructs a new element using the given perspective position.

Parameters:
perspective - The perspective position of this element.
See Also:
PerspectivePart

Element

public Element(java.lang.Object perspective,
               LogicalPoint point)
Constructs a new element using the given perspective position and the given logic point.

Parameters:
perspective - The perspective position of this element.
point - The logic point of this element.
See Also:
PerspectivePart
Method Detail

getPerspective

public java.lang.Object getPerspective()
Returns the perspective position of this element.

Returns:
The perspective position of this element.

getLogicalPoint

public LogicalPoint getLogicalPoint()
Returns the logic point to which this element points to.

Returns:
The logic point to which this element points to or null.

getBounds

public abstract java.awt.geom.Rectangle2D.Float getBounds(java.awt.geom.Rectangle2D.Float out)
Returns the bounds of this element in float precision.

Parameters:
out - The return value, not null.
Returns:
The bounds of this element in float precision.

contains

public abstract boolean contains(java.awt.Point p)
Returns true if this element contains the given point.


ChartCat 1.2

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print