javax.swing

Interface BoundedRangeModel

Known Implementing Classes:
DefaultBoundedRangeModel

public interface BoundedRangeModel

The data model that is used in components that display a range of values, like JProgressBar and JSlider.

Method Summary

void
addChangeListener(ChangeListener listener)
Adds a ChangeListener to this object.
int
getExtent()
Returns the current extent.
int
getMaximum()
getMaximum
int
getMinimum()
getMinimum
int
getValue()
getValue
boolean
getValueIsAdjusting()
Returns the value of the valueIsAdjusting property.
void
removeChangeListener(ChangeListener listener)
Removes a ChangeListener from this object.
void
setExtent(int extent)
setExtent
void
setMaximum(int maximum)
setMaximum
void
setMinimum(int minimum)
setMinimum
void
setRangeProperties(int value, int extent, int minimum, int maximum, boolean adjusting)
setRangeProperties
void
setValue(int value)
setValue
void
setValueIsAdjusting(boolean adjusting)
setValueIsAdjusting

Method Details

addChangeListener

public void addChangeListener(ChangeListener listener)
Adds a ChangeListener to this object.

Parameters:
listener - the listener to add

See Also:
removeChangeListener(ChangeListener)


getExtent

public int getExtent()
Returns the current extent.

Returns:
the extent

See Also:
setExtent(int)


getMaximum

public int getMaximum()
getMaximum

Returns:
int

See Also:
setMaximum(int)


getMinimum

public int getMinimum()
getMinimum

Returns:
int

See Also:
setMinimum(int)


getValue

public int getValue()
getValue

Returns:
int

See Also:
setValue(int)


getValueIsAdjusting

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

Returns:
true if value is adjusting, otherwise false

See Also:
setValueIsAdjusting(boolean)


removeChangeListener

public void removeChangeListener(ChangeListener listener)
Removes a ChangeListener from this object.

Parameters:
listener - the listener to remove

See Also:
addChangeListener(ChangeListener)


setExtent

public void setExtent(int extent)
setExtent

Parameters:
extent - the extent

See Also:
getExtent()


setMaximum

public void setMaximum(int maximum)
setMaximum

Parameters:
maximum - the maximum value

See Also:
getMaximum()


setMinimum

public void setMinimum(int minimum)
setMinimum

Parameters:
minimum - the minimum value

See Also:
getMinimum()


setRangeProperties

public void setRangeProperties(int value,
                               int extent,
                               int minimum,
                               int maximum,
                               boolean adjusting)
setRangeProperties

Parameters:
value - the value
extent - the extent
maximum - the maximum value
adjusting - TODO


setValue

public void setValue(int value)
setValue

Parameters:
value - the value

See Also:
getValue()


setValueIsAdjusting

public void setValueIsAdjusting(boolean adjusting)
setValueIsAdjusting

Parameters:
adjusting - true if adjusting, false otherwise

See Also:
getValueIsAdjusting()


BoundedRangeModel.java -- Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.