SimpleAnimator2
The SimpleAnimator2
class demonstrates how the Java 2D API shapes can be put into motion to create a simple animation. This code uses the scala2d
package to insulate from the particular graphics framework.
Value parameters
- _title
-
the title of the display
Attributes
- See also
-
SimpleAnimator
to see the changes need to use Java awt/swing directly - Graph
-
- Supertypes
Members list
Type members
Classlikes
The Canvas
inner class is used to place shapes in the drawing region.
The Canvas
inner class is used to place shapes in the drawing region.
Attributes
- Supertypes
-
trait ZoomablePaneltrait MouseMotionListenertrait MouseListenertrait MouseWheelListenertrait EventListenerclass JPaneltrait Accessibleclass JComponentclass Containerclass Componenttrait Serializabletrait MenuContainertrait ImageObserverclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Run method for the display thread that repeatedly updates coordinates, sleeps and repaints.
Run method for the display thread that repeatedly updates coordinates, sleeps and repaints.
Attributes
Inherited methods
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Get the height of the frame.
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Get the width of the frame.
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Frame
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Attributes
- Inherited from:
- Window
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JFrame
Attributes
- Inherited from:
- Container
Deprecated and Inherited methods
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Window
Attributes
- Deprecated
- true
- Inherited from:
- Window
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Frame
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Window
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Window
Attributes
- Deprecated
- true
- Inherited from:
- Container
Attributes
- Deprecated
- true
- Inherited from:
- Window
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Frame
Attributes
- Deprecated
- true
- Inherited from:
- Window
Attributes
- Deprecated
- true
- Inherited from:
- Component
Attributes
- Deprecated
- true
- Inherited from:
- Component