ChartCat 1.2

li.netcat.chart.util.elem
Class LinesElement

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

public class LinesElement
extends Element

Immutable, basic element of a chart that defines a set of lines. It contains the shape that defines the lines and a pen that is used to stroke the outline of the shape and fill the arisen lateral areas in a 3D view.

Author:
Arthur Marxer

Constructor Summary
LinesElement(java.awt.Shape lines, Pen pen, java.lang.Object perspective)
          Constructs a new area element and initializes its fields to the given values.
LinesElement(java.awt.Shape lines, 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.geom.Rectangle2D.Float getBounds(java.awt.geom.Rectangle2D.Float out)
          Returns the bounds of this element in float precision.
 java.awt.Shape getLines()
          Returns the shape that defines the set of lines, not null.
 Pen getPen()
          Returns the pen used to paint the lines, 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

LinesElement

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

Parameters:
lines - The shape that defines the set of lines, not null.
pen - The pen used to stroke the outline of the shape and fill the arisen lateral areas in a 3D view. Not null.
perspective - The perspective position of this element.
See Also:
PerspectivePart

LinesElement

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

Parameters:
lines - The shape that defines the set of lines, not null.
pen - The pen used to stroke the outline of the shape and fill the arisen lateral areas in a 3D view. Not null.
perspective - The perspective position of this element.
point - The logical point to which this element points to.
See Also:
PerspectivePart
Method Detail

getLines

public java.awt.Shape getLines()
Returns the shape that defines the set of lines, not null.

Returns:
The shape that defines the set of lines, not null.

getPen

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

Returns:
The pen used to paint the lines, 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