org.apache.pivot.wtk.media.drawing
Class Shape2D

java.lang.Object
  extended by org.apache.pivot.wtk.media.drawing.Shape
      extended by org.apache.pivot.wtk.media.drawing.Shape2D
Direct Known Subclasses:
Arc, CubicCurve, Ellipse, Line, Path, QuadCurve, Rectangle

public abstract class Shape2D
extends Shape

Abstract base class for shapes that encapsulate a Java2D shape.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.media.drawing.Shape
Shape.Rotate, Shape.Scale, Shape.Transform, Shape.TransformSequence, Shape.Translate
 
Constructor Summary
Shape2D()
           
 
Method Summary
 boolean contains(int x, int y)
           
 void draw(Graphics2D graphics)
           
protected abstract  Shape getShape2D()
           
protected  void validate()
           
 
Methods inherited from class org.apache.pivot.wtk.media.drawing.Shape
getBounds, getFill, getOrigin, getParent, getShapeListeners, getShapeTransformListeners, getStroke, getStrokeThickness, getTransformedBounds, getTransforms, getX, getY, invalidate, isValid, isVisible, setBounds, setFill, setFill, setOrigin, setOrigin, setParent, setStroke, setStroke, setStrokeThickness, setVisible, setX, setY, update, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape2D

public Shape2D()
Method Detail

contains

public boolean contains(int x,
                        int y)
Specified by:
contains in class Shape

draw

public void draw(Graphics2D graphics)
Specified by:
draw in class Shape

validate

protected void validate()
Specified by:
validate in class Shape

getShape2D

protected abstract Shape getShape2D()