com.buglabs.dragonfly.ui.figures
Class AbstractModuleFigure

java.lang.Object
  extended by org.eclipse.draw2d.Figure
      extended by com.buglabs.dragonfly.ui.figures.AbstractBugFigure
          extended by com.buglabs.dragonfly.ui.figures.AbstractModuleFigure
All Implemented Interfaces:
ISelectionFigure, org.eclipse.draw2d.IFigure
Direct Known Subclasses:
BugLeftModuleFigure, BugRightModuleFigure

public abstract class AbstractModuleFigure
extends AbstractBugFigure

Contains the physical representation of a bug module inlcuding a reference to the image to use and the clickable outline via an array of points Abstract parent class, AbstractBugFigure handles everything else

Author:
Brian

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
 
Field Summary
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
AbstractModuleFigure(Module moduleModel, org.eclipse.swt.widgets.Display display, org.eclipse.draw2d.geometry.Point startPoint)
           
 
Method Summary
abstract  org.eclipse.swt.graphics.Image getImageOffResource()
           
abstract  org.eclipse.swt.graphics.Image getImageOnResource()
           
 java.lang.Object getModel()
           
 org.eclipse.draw2d.geometry.Point[] getPolygonPoints()
           
 
Methods inherited from class com.buglabs.dragonfly.ui.figures.AbstractBugFigure
getClickablePolygon, setFocus
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModuleFigure

public AbstractModuleFigure(Module moduleModel,
                            org.eclipse.swt.widgets.Display display,
                            org.eclipse.draw2d.geometry.Point startPoint)
Method Detail

getImageOffResource

public abstract org.eclipse.swt.graphics.Image getImageOffResource()
Specified by:
getImageOffResource in class AbstractBugFigure

getImageOnResource

public abstract org.eclipse.swt.graphics.Image getImageOnResource()
Specified by:
getImageOnResource in class AbstractBugFigure

getPolygonPoints

public org.eclipse.draw2d.geometry.Point[] getPolygonPoints()
Specified by:
getPolygonPoints in class AbstractBugFigure

getModel

public java.lang.Object getModel()