All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cs101.canvas.GraphicsCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----cs101.canvas.GraphicsCanvas

public class GraphicsCanvas
extends Canvas

Constructor Index

 o GraphicsCanvas(Color)

Method Index

 o addClickListener(ClickListener)
 o addDragListener(DragListener)
 o addMotionListener(MotionListener)
 o addReleaseListener(ReleaseListener)
 o click()
 o drawObject(GraphicsObject)
 o getDimensions()
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseMove(Event, int, int)
 o mouseUp(Event, int, int)
 o moveToBack(GraphicsObject)
 o moveToFront(GraphicsObject)
 o paint(Graphics)
 o removeClickListener(ClickListener)
 o removeDragListener(DragListener)
 o removeMotionListener(MotionListener)
 o removeObject(GraphicsObject)
 o removeReleaseListener(ReleaseListener)
 o update(Graphics)

Constructors

 o GraphicsCanvas
 public GraphicsCanvas(Color backgroundColor)

Methods

 o addMotionListener
 public synchronized void addMotionListener(MotionListener x)
 o removeMotionListener
 public synchronized void removeMotionListener(MotionListener x)
 o addDragListener
 public synchronized void addDragListener(DragListener x)
 o removeDragListener
 public synchronized void removeDragListener(DragListener x)
 o addClickListener
 public synchronized void addClickListener(ClickListener x)
 o removeClickListener
 public synchronized void removeClickListener(ClickListener x)
 o addReleaseListener
 public synchronized void addReleaseListener(ReleaseListener x)
 o removeReleaseListener
 public synchronized void removeReleaseListener(ReleaseListener x)
 o getDimensions
 public Rectangle getDimensions()
 o drawObject
 public synchronized void drawObject(GraphicsObject gob)
 o removeObject
 public synchronized void removeObject(GraphicsObject gob)
 o moveToFront
 public synchronized void moveToFront(GraphicsObject gob)
 o moveToBack
 public synchronized void moveToBack(GraphicsObject gob)
 o click
 public Position click()
 o mouseDown
 public synchronized boolean mouseDown(Event evt,
                                       int pixelX,
                                       int pixelY)
Overrides:
mouseDown in class Component
 o mouseUp
 public synchronized boolean mouseUp(Event evt,
                                     int pixelX,
                                     int pixelY)
Overrides:
mouseUp in class Component
 o mouseDrag
 public synchronized boolean mouseDrag(Event evt,
                                       int pixelX,
                                       int pixelY)
Overrides:
mouseDrag in class Component
 o mouseMove
 public synchronized boolean mouseMove(Event evt,
                                       int pixelX,
                                       int pixelY)
Overrides:
mouseMove in class Component
 o update
 public synchronized void update(Graphics g)
Overrides:
update in class Component
 o paint
 public synchronized void paint(Graphics g)
Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index