lt.monarch.chart.chart2D.engine
Class Shape2D.Elipse

java.lang.Object
  extended by lt.monarch.chart.chart2D.engine.Shape2D.Elipse
All Implemented Interfaces:
java.io.Serializable, Shape2D.ProjectableShape
Enclosing class:
Shape2D

protected static class Shape2D.Elipse
extends java.lang.Object
implements Shape2D.ProjectableShape

Class for storing ellipse coordinates

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Rectangle2D bounds
           
 
Constructor Summary
Constructor and Description
Shape2D.Elipse(Rectangle2D bounds)
           
 
Method Summary
Modifier and Type Method and Description
 java.awt.Shape getShape()
          Returns the swing Shape
 java.awt.Shape getShapeRef()
          Returns the swing Shape reference
 void project(Projector projector)
          Projects all the points of the shape
 void setElipse(Rectangle2D bounds)
           
 void transform(Transformation tf, double anchorX, double anchorY)
          Transforms all the points of the shape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bounds

protected Rectangle2D bounds
Constructor Detail

Shape2D.Elipse

public Shape2D.Elipse(Rectangle2D bounds)
Method Detail

setElipse

public void setElipse(Rectangle2D bounds)

project

public void project(Projector projector)
Description copied from interface: Shape2D.ProjectableShape
Projects all the points of the shape

Specified by:
project in interface Shape2D.ProjectableShape
Parameters:
projector - projector

transform

public void transform(Transformation tf,
                      double anchorX,
                      double anchorY)
Description copied from interface: Shape2D.ProjectableShape
Transforms all the points of the shape

Specified by:
transform in interface Shape2D.ProjectableShape
Parameters:
tf - transformation matrix
anchorX - x anchor point for transformation
anchorY - y anchor point for transformation

getShape

public java.awt.Shape getShape()
Description copied from interface: Shape2D.ProjectableShape
Returns the swing Shape

Specified by:
getShape in interface Shape2D.ProjectableShape
Returns:
Java Swing Shape

getShapeRef

public java.awt.Shape getShapeRef()
Description copied from interface: Shape2D.ProjectableShape
Returns the swing Shape reference

Specified by:
getShapeRef in interface Shape2D.ProjectableShape
Returns:
Java Swing Shape