com.mindfusion.diagramming
Class ScrollBar
java.lang.Object
com.mindfusion.diagramming.Manipulator
com.mindfusion.diagramming.ScrollBar
public class ScrollBar
- extends Manipulator
Method Summary |
boolean |
getEnabled()
Gets or sets a value indicating whether the control
can respond to user interaction. |
float |
getValue()
|
boolean |
needsMouseMessages(java.awt.geom.Point2D point)
Returns whether the manipulator object needs to track mouse events. |
void |
onMouseDown(java.awt.geom.Point2D mousePosition)
Manipulator.onMouseDown override. |
void |
onMouseMove(java.awt.geom.Point2D e)
Manipulator.onMouseMove override. |
void |
onMouseUp(java.awt.geom.Point2D e)
Manipulator.onMouseUp override. |
protected void |
refresh()
|
void |
setEnabled(boolean value)
|
void |
setLargeChange(float largeChange)
|
void |
setMaximum(float max)
|
void |
setMinimum(float min)
|
void |
setSmallChange(float smallChange)
|
void |
setValue(float value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrollBar
protected ScrollBar(TreeViewNode node,
boolean vertical)
refresh
protected void refresh()
setValue
public void setValue(float value)
setMaximum
public void setMaximum(float max)
setMinimum
public void setMinimum(float min)
setLargeChange
public void setLargeChange(float largeChange)
setSmallChange
public void setSmallChange(float smallChange)
getValue
public float getValue()
getEnabled
public boolean getEnabled()
- Gets or sets a value indicating whether the control
can respond to user interaction.
setEnabled
public void setEnabled(boolean value)
onMouseDown
public void onMouseDown(java.awt.geom.Point2D mousePosition)
- Manipulator.onMouseDown override.
- Overrides:
onMouseDown
in class Manipulator
- Parameters:
mousePosition
- A Point2D instance that specifies the current mouse position.
onMouseMove
public void onMouseMove(java.awt.geom.Point2D e)
- Manipulator.onMouseMove override.
- Overrides:
onMouseMove
in class Manipulator
- Parameters:
e
- A Point2D instance that specifies the current mouse position.
onMouseUp
public void onMouseUp(java.awt.geom.Point2D e)
- Manipulator.onMouseUp override.
- Overrides:
onMouseUp
in class Manipulator
- Parameters:
e
- A Point2D instance that specifies the current mouse position.
needsMouseMessages
public boolean needsMouseMessages(java.awt.geom.Point2D point)
- Returns whether the manipulator object needs to track mouse events.
- Overrides:
needsMouseMessages
in class Manipulator
- Returns:
true
to track mouse events; otherwise, false
.