yu.ac.bg.etf.javaqx.qswing
Interface BoundedRangeModel

All Known Implementing Classes:
DefaultBoundedRangeModel, DefaultBoundedRangeModel.EmptyModel

public interface BoundedRangeModel

Bounded Range Model. (Model for JQProgressBar and JQSlider)

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
 void addChangeListener(ChangeListener listener)
          Adds change listener.
 int getExtent()
          Returns the current extent.
 int getMaximum()
          Returns the maximum value for the model.
 int getMinimum()
          Returns the minimum value for the model.
 int getValue()
          Returns the current value for the model.
 boolean getValueIsAdjusting()
          Returns the value of the valueIsAdjusting property.
 void removeChangeListener(ChangeListener listener)
          Removes change listener.
 void setExtent(int extent)
          Sets the current extent.
 void setMaximum(int maximum)
          Sets the maximum value for the model.
 void setMinimum(int minimum)
          Sets the minimum value for the model.
 void setRangeProperties(int value, int extent, int minimum, int maximum, boolean adjusting)
          Sets all the properties for the model.
 void setValue(int value)
          Sets the current value for the model.
 void setValueIsAdjusting(boolean adjusting)
          Sets the value of the valueIsAdjusting property.
 

Method Detail

getValue

public int getValue()
Returns the current value for the model.

Returns:
The current value for the model.

setValue

public void setValue(int value)
Sets the current value for the model.

Parameters:
value - the value

getMinimum

public int getMinimum()
Returns the minimum value for the model.

Returns:
the minimum value for the model

setMinimum

public void setMinimum(int minimum)
Sets the minimum value for the model.

Parameters:
minimum - the minimum value

getMaximum

public int getMaximum()
Returns the maximum value for the model.

Returns:
the maximum value for the model

setMaximum

public void setMaximum(int maximum)
Sets the maximum value for the model.

Parameters:
maximum - the maximum value

getExtent

public int getExtent()
Returns the current extent.

Returns:
the extent

setExtent

public void setExtent(int extent)
Sets the current extent.

Parameters:
extent - the extent

getValueIsAdjusting

public boolean getValueIsAdjusting()
Returns the value of the valueIsAdjusting property.

Returns:
the value of the valueIsAdjusting property

setValueIsAdjusting

public void setValueIsAdjusting(boolean adjusting)
Sets the value of the valueIsAdjusting property.

Parameters:
adjusting - the value of the valueIsAdjusting property

setRangeProperties

public void setRangeProperties(int value,
                               int extent,
                               int minimum,
                               int maximum,
                               boolean adjusting)
Sets all the properties for the model.

Parameters:
value - the value
extent - the extent
minimum - the minimum value
maximum - the maximum value
adjusting - the adjusting flag

addChangeListener

public void addChangeListener(ChangeListener listener)
Adds change listener.

Parameters:
listener - the change listener

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Removes change listener.

Parameters:
listener - the change listener


Copyright © 2007 ETF and contributors. All Rights Reserved.