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

java.lang.Object
  extended by org.apache.pivot.wtk.media.drawing.Shape
      extended by org.apache.pivot.wtk.media.drawing.Group
          extended by org.apache.pivot.wtk.media.drawing.Canvas
All Implemented Interfaces:
Iterable<Shape>, Sequence<Shape>

public class Canvas
extends Group

Shape representing the root of a shape hierarchy.


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
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree
 
Constructor Summary
Canvas()
           
 
Method Summary
 ListenerList<CanvasListener> getCanvasListeners()
           
 Shape.TransformSequence getTransforms()
           
 void invalidate()
           
 void setOrigin(int x, int y)
           
protected  void setParent(Group parent)
           
protected  void update(int x, int y, int width, int height)
           
 
Methods inherited from class org.apache.pivot.wtk.media.drawing.Group
add, draw, get, getGroupListeners, getLength, indexOf, insert, iterator, remove, remove, setFill, setStroke, setStrokeThickness, update, validate
 
Methods inherited from class org.apache.pivot.wtk.media.drawing.Shape
getBounds, getFill, getOrigin, getParent, getShapeListeners, getShapeTransformListeners, getStroke, getStrokeThickness, getTransformedBounds, getX, getY, isValid, isVisible, setBounds, setFill, setOrigin, setStroke, setVisible, setX, setY, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Canvas

public Canvas()
Method Detail

setParent

protected void setParent(Group parent)
Overrides:
setParent in class Shape

setOrigin

public void setOrigin(int x,
                      int y)
Overrides:
setOrigin in class Shape

getTransforms

public Shape.TransformSequence getTransforms()
Overrides:
getTransforms in class Shape

invalidate

public void invalidate()
Overrides:
invalidate in class Shape

update

protected void update(int x,
                      int y,
                      int width,
                      int height)
Overrides:
update in class Shape

getCanvasListeners

public ListenerList<CanvasListener> getCanvasListeners()