uk.ac.ic.doc.automed.p2p.gui.graph
Class GCheckBox

java.lang.Object
  extended by uk.ac.ic.doc.automed.p2p.gui.graph.GShape
      extended by uk.ac.ic.doc.automed.p2p.gui.graph.GCheckBox
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, GVisualisable

public class GCheckBox
extends GShape

See Also:
Serialized Form

Field Summary
private  double gap
           
private  boolean selected
           
private  java.lang.Object value
           
 
Fields inherited from class uk.ac.ic.doc.automed.p2p.gui.graph.GShape
altDrawer, altDrawing, AUTO_COUNT, bound, brPoint, centrePoint, changed, color, cshape, data, defBound, displayScript, displayShape, enabled, handler, highlighted, hshape, icon, id, label, lblPoint, movable, name, onClick, PREFIX_CTRL, PREFIX_HIL, props, refresh, selectable, tlPoint, type, visible, visibleOnHighlighted, ZEROX
 
Constructor Summary
GCheckBox(java.lang.String label, java.lang.String name, java.lang.String value, java.awt.Point tlPoint, java.awt.Dimension bound, java.util.Properties props)
           
 
Method Summary
protected  void drawMain(java.awt.Graphics g)
           
 java.awt.Dimension getDefaultBound(java.awt.Graphics g)
          for sub-classes to implement
 java.lang.Object getValue()
           
 boolean isSelected()
           
 void setIsSelected(boolean selected)
           
 
Methods inherited from class uk.ac.ic.doc.automed.p2p.gui.graph.GShape
clear, clear, contains, contains, contains, contains, copyProperties, cos, dcos, draw, drawAfter, drawAlternative, drawBefore, drawControl, drawHighlighted, drawTo, dsin, dtan, equals, getAutoID, getBound, getBounds, getBounds2D, getBrPoint, getCenter, getColor, getData, getDrawerInstance, getHandlerObject, getID, getIDShape, getIsVisible, getIsVisibleOnHighlighted, getLabel, getLabelBounds, getLabelPoint, getName, getPathIterator, getPathIterator, getPoint, getProperties, getProperty, getProperty, getPropertyObject, getPropertyObjects, getStringBounds, getType, hashCode, highlightLabel, highlightLabel, intersects, intersects, isActive, isAltDrawing, isChanged, isEnabled, isHighlighted, isMovable, isMutableColor, isOnClick, isRefresh, isSelectable, newDrawerInstance, paintBlank, preDraw, preDraw, redraw, redrawAfter, redrawBefore, redrawMain, refresh, setBound, setBound, setColorProperty, setColorProperty, setColorProperty, setEnabled, setHandlerObject, setIsAltDrawing, setIsChanged, setIsHighlighted, setIsMovable, setIsOnClick, setIsRefresh, setIsSelectable, setIsVisible, setLabel, setName, setProperties, setProperty, setPropertyObject, setStrokeStyle, setTLPoint, setTLPoint, setType, setUpHighlightedShape, setVisibleOnHighlighted, sin, tan, toString, update, updateControl, updateHighlighted
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

gap

private final double gap
See Also:
Constant Field Values

selected

private boolean selected

value

private java.lang.Object value
Constructor Detail

GCheckBox

public GCheckBox(java.lang.String label,
                 java.lang.String name,
                 java.lang.String value,
                 java.awt.Point tlPoint,
                 java.awt.Dimension bound,
                 java.util.Properties props)
Method Detail

getValue

public java.lang.Object getValue()

setIsSelected

public void setIsSelected(boolean selected)

isSelected

public boolean isSelected()

getDefaultBound

public java.awt.Dimension getDefaultBound(java.awt.Graphics g)
Description copied from class: GShape
for sub-classes to implement

Overrides:
getDefaultBound in class GShape
Returns:

drawMain

protected void drawMain(java.awt.Graphics g)
Overrides:
drawMain in class GShape