mhframework.gui
Class MHGUINumericCycleControl

java.lang.Object
  extended by mhframework.gui.MHGUIComponent
      extended by mhframework.gui.MHGUICycleControl
          extended by mhframework.gui.MHGUINumericCycleControl
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, MHRenderable

public class MHGUINumericCycleControl
extends MHGUICycleControl


Field Summary
 
Fields inherited from class mhframework.gui.MHGUICycleControl
btnNext, btnPrevious, lblValue
 
Fields inherited from class mhframework.gui.MHGUIComponent
focusable, height, state, width
 
Constructor Summary
MHGUINumericCycleControl()
           
 
Method Summary
 void advance()
          Tells an object to update its data.
protected  void decrement()
           
 int getIncrement()
           
 int getMaxValue()
           
 int getMinValue()
           
 java.lang.Object getSelectedValue()
           
protected  void increment()
           
 void render(java.awt.Graphics2D g)
          Tells an object to draw itself onto the sent Graphics object.
 void setIncrement(int increment)
           
 void setMaxValue(int maxValue)
           
 void setMinValue(int minValue)
           
 void setSelectedIndex(int indexNumber)
           
 void setValues(java.lang.Object[] values)
           
 
Methods inherited from class mhframework.gui.MHGUICycleControl
actionPerformed, getNextButton, getPreviousButton, getSelectedIndex, keyPressed, keyReleased, keyTyped, main, mouseClicked, mouseMoved, mousePressed, mouseReleased, setHeight, setLabelColor, setLabelFont, setLabelVisible, setSize
 
Methods inherited from class mhframework.gui.MHGUIComponent
getBounds, getHeight, getWidth, getX, getY, hasFocus, isEnabled, isVisible, mouseDragged, mouseEntered, mouseExited, paint, setEnabled, setFocus, setFocusable, setPosition, setVisible, setWidth, setX, setY, updateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MHGUINumericCycleControl

public MHGUINumericCycleControl()
Method Detail

getMinValue

public int getMinValue()

setMinValue

public void setMinValue(int minValue)

getMaxValue

public int getMaxValue()

setMaxValue

public void setMaxValue(int maxValue)

getSelectedValue

public java.lang.Object getSelectedValue()
Overrides:
getSelectedValue in class MHGUICycleControl

setSelectedIndex

public void setSelectedIndex(int indexNumber)
Overrides:
setSelectedIndex in class MHGUICycleControl

decrement

protected void decrement()
Overrides:
decrement in class MHGUICycleControl

increment

protected void increment()
Overrides:
increment in class MHGUICycleControl

getIncrement

public int getIncrement()

setIncrement

public void setIncrement(int increment)

setValues

public void setValues(java.lang.Object[] values)
Overrides:
setValues in class MHGUICycleControl

advance

public void advance()
Description copied from interface: MHRenderable
Tells an object to update its data.

Specified by:
advance in interface MHRenderable
Overrides:
advance in class MHGUICycleControl

render

public void render(java.awt.Graphics2D g)
Description copied from interface: MHRenderable
Tells an object to draw itself onto the sent Graphics object.

Specified by:
render in interface MHRenderable
Overrides:
render in class MHGUICycleControl
Parameters:
g - The Graphics object on which this object is to draw itself.