ChartCat 1.2

li.netcat.chart.util.elem
Class AreaElement

java.lang.Object
  extended byli.netcat.chart.util.elem.Element
      extended byli.netcat.chart.util.elem.AreaElement

public class AreaElement
extends Element

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.

Author:
Arthur Marxer

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

AreaElement

public AreaElement(java.awt.Shape area,
                   Pen pen,
                   java.lang.Object perspective)
Constructs a new area element and initializes its fields to the given values.

Parameters:
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.
See Also:
PerspectivePart

AreaElement

public 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.

Parameters:
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.
See Also:
PerspectivePart
Method Detail

getArea

public java.awt.Shape getArea()
Returns the shape that defines the outline of the area, not null.

Returns:
The shape that defines the outline of the area, not null.

getPen

public Pen getPen()
Returns the pen used to paint the area, not null.

Returns:
The pen used to paint the area, not null.

getBounds

public java.awt.geom.Rectangle2D.Float getBounds(java.awt.geom.Rectangle2D.Float out)
Description copied from class: Element
Returns the bounds of this element in float precision.

Specified by:
getBounds in class Element
Parameters:
out - The return value, not null.
Returns:
The bounds of this element in float precision.

contains

public boolean contains(java.awt.Point p)
Description copied from class: Element
Returns true if this element contains the given point.

Specified by:
contains in class Element

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