fi.hut.tml.xsmiles.gui.components.awt
Class AWTRange

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.general.ComponentBase
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
          extended byfi.hut.tml.xsmiles.gui.components.awt.AWTRange
All Implemented Interfaces:
XComponent, XRange

public class AWTRange
extends AWTStylableComponent
implements XRange

textarea

Author:
Mikko Honkala

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
hiddenFrame
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, minSize, style
 
Fields inherited from interface fi.hut.tml.xsmiles.gui.components.XRange
HORIZONTAL, VERTICAL
 
Constructor Summary
AWTRange(int min, int max, int stepsize)
           
AWTRange(int min, int max, int stepsize, int orientation)
           
 
Method Summary
 void addAdjustmentListener(java.awt.event.AdjustmentListener l)
          add a listener for changes in the range control
 java.awt.Component createContent(int min, int max, int stepsize, int orientation)
          creates the content component
 int getBlockIncrement()
           
 int getMaximum()
           
 int getMinimum()
           
 int getOrientation()
           
 int getUnitIncrement()
           
 int getValue()
           
 int getVisibleAmount()
           
 void init(int min, int max, int stepsize, int orientation)
           
 void removeAdjustmentListener(java.awt.event.AdjustmentListener l)
          remove a listener for changes in the range control
 void setBlockIncrement(int param)
           
 void setLabelTable(java.util.Dictionary dictionary)
          give the dictionary for the labels
 void setMaximum(int param)
           
 void setMinimum(int param)
           
 void setUnitIncrement(int param)
           
 void setValue(int n)
           
 void setVisibleAmount(int param)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
addHelpListener, createHint, getHiddenFrame, getPreferredSize, init, isCaption, removeHelpListener, setBackground, setHintRecursively, setHintText, sizeComponent
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addActionListener, addFocusListener, addMouseListener, getAddableComponent, getComponent, getDefaultBackgroundColor, getDefaultSize, getEnabled, getFormatter, getHeight, getMinimumSize, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeMouseListener, setBounds, setDefaultSize, setEnabled, setFocus, setFont, setForeground, setInputMode, setStyle, setVisible, setZoom, sizeComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom
 

Constructor Detail

AWTRange

public AWTRange(int min,
                int max,
                int stepsize,
                int orientation)

AWTRange

public AWTRange(int min,
                int max,
                int stepsize)
Method Detail

init

public void init(int min,
                 int max,
                 int stepsize,
                 int orientation)
Parameters:
min -
max -
orientation - VERTICAL HORIZONTAL

createContent

public java.awt.Component createContent(int min,
                                        int max,
                                        int stepsize,
                                        int orientation)
creates the content component


setValue

public void setValue(int n)
Specified by:
setValue in interface XRange
Parameters:
n - The new value

getValue

public int getValue()
Specified by:
getValue in interface XRange
Returns:
The current value set

addAdjustmentListener

public void addAdjustmentListener(java.awt.event.AdjustmentListener l)
add a listener for changes in the range control

Specified by:
addAdjustmentListener in interface XRange

removeAdjustmentListener

public void removeAdjustmentListener(java.awt.event.AdjustmentListener l)
remove a listener for changes in the range control

Specified by:
removeAdjustmentListener in interface XRange

getOrientation

public int getOrientation()

getBlockIncrement

public int getBlockIncrement()

getMinimum

public int getMinimum()

getUnitIncrement

public int getUnitIncrement()

getVisibleAmount

public int getVisibleAmount()

setMaximum

public void setMaximum(int param)

setBlockIncrement

public void setBlockIncrement(int param)

getMaximum

public int getMaximum()

setVisibleAmount

public void setVisibleAmount(int param)

setUnitIncrement

public void setUnitIncrement(int param)

setMinimum

public void setMinimum(int param)

setLabelTable

public void setLabelTable(java.util.Dictionary dictionary)
give the dictionary for the labels

Specified by:
setLabelTable in interface XRange


X-Smiles 1.2