org.kobjects.kui
Class KGauge

java.lang.Object
  extended by org.kobjects.kui.KItem
      extended by org.kobjects.kui.KGauge

public class KGauge
extends KItem


Field Summary
 
Fields inherited from class org.kobjects.kui.KItem
align, APPEARANCE_BUTTON, APPEARANCE_COMPACT, APPEARANCE_FULLSCREEN, APPEARANCE_INDENT, APPEARANCE_INPUT, APPEARANCE_PLAIN, APPEARANCE_TAB, CONTENT, image, img0, img1, img2, imgCols, imgRows, imgX, imgY, LABEL, STATE_FOCUSSED, STATE_PRESSED, STATE_UNFOCUSSED
 
Constructor Summary
KGauge(java.lang.Object label, int value, int maxValue)
           
 
Method Summary
 int getPrefContentHeight(int contentW)
           
 void paint(Graphics g, int contentW, int contentH)
           
 void setValue(int newValue)
           
 
Methods inherited from class org.kobjects.kui.KItem
getContentStyle, getLabel, getLabelStyle, getState, invalidate, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, setContentStyle, setDefaultCommand, setImage, setImage, setLabel, setLabelStyle, setLayout, traverse, traverseOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KGauge

public KGauge(java.lang.Object label,
              int value,
              int maxValue)
Method Detail

getPrefContentHeight

public int getPrefContentHeight(int contentW)
Specified by:
getPrefContentHeight in class KItem

setValue

public void setValue(int newValue)

paint

public void paint(Graphics g,
                  int contentW,
                  int contentH)
Specified by:
paint in class KItem