org.rr0.is.presentation.view.report.applet
Class AspectPanel.ShapesCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--org.rr0.is.presentation.view.report.applet.AspectPanel.ShapesCanvas

class AspectPanel.ShapesCanvas
extends Canvas


Inner Class Summary
 (package private) classShapesCanvas.ShapesCanvasListener
           

Field Summary
 private ActionListeneractionListener
           
 private intbottomMargin
           
 private GraphicsbufferedGraphics
           
 private ImagebufferedImage
           
 private intcurrentX
           
 private intheight
           
 private final intmarginX
           
 private ShapesCanvasListenermouseAdapter
           
 private DrawShape[]shapes
           
 private int[]shapesX
           
 private inttopMargin
           

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
AspectPanel.ShapesCanvas(DrawShape[] someShapes, int topMargin, int bottomMargin)
           

Method Summary
 DimensiongetPreferredSize()
           
 DrawShapegetSelectedShape()
           
 voidpaint(Graphics g)
           
 voidreset()
           
 voidsetActionListener(ActionListener actionListener)
           
 voidsetShapes(DrawShape[] someShapes)
           
 voidupdate(Graphics g)
           

Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, show, hide, getForeground, setForeground, getBackground, setBackground, getFont, setFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, doLayout, layout, validate, invalidate, getGraphics, getFontMetrics, setCursor, getCursor, paintAll, repaint, repaint, repaint, repaint, print, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, getComponentAt, locate, getComponentAt, deliverEvent, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getListeners, getInputMethodRequests, getInputContext, enableEvents, disableEvents, coalesceEvents, processEvent, processComponentEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, removeNotify, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, remove, paramString, toString, list, list, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

actionListener

private ActionListener actionListener

bottomMargin

private int bottomMargin

bufferedGraphics

private Graphics bufferedGraphics

bufferedImage

private Image bufferedImage

currentX

private int currentX

height

private int height

marginX

private final int marginX

mouseAdapter

private ShapesCanvasListener mouseAdapter

shapes

private DrawShape[] shapes

shapesX

private int[] shapesX

topMargin

private int topMargin
Constructor Detail

AspectPanel.ShapesCanvas

public AspectPanel.ShapesCanvas(DrawShape[] someShapes, int topMargin, int bottomMargin)
Method Detail

getPreferredSize

public Dimension getPreferredSize()

getSelectedShape

public DrawShape getSelectedShape()

paint

public void paint(Graphics g)

reset

public void reset()

setActionListener

public void setActionListener(ActionListener actionListener)

setShapes

public void setShapes(DrawShape[] someShapes)

update

public void update(Graphics g)

Association Links

to Class org.rr0.is.presentation.view.report.applet.draw.DrawShape

to Class org.rr0.is.presentation.view.report.applet.AspectPanel.ShapesCanvas.ShapesCanvasListener

to Class java.awt.event.ActionListener

to Class java.awt.Graphics

to Class java.awt.Image