|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.visuals.SliderListener
public class SliderListener
SliderListener is an implementation of the ButtonListenerInterface used to listen
for user events on a SliderInterface component and change the state of its ButtonModelInterface properties.
The SliderInterface component will listen on the ButtonModelInterface objects and will forward the state changes
of the ButtonModelInterface to the user.
SliderInterface,
ScrollSlider,
ButtonModelInterface,
Serialized Form| Field Summary | |
|---|---|
protected ButtonModelInterface |
decrementModel
|
protected ButtonModelInterface |
incrementModel
|
protected ButtonModelInterface |
model
|
protected java.awt.Point |
offset
|
protected java.awt.Point |
pressedPoint
|
protected SliderInterface |
trackArea
|
| Constructor Summary | |
|---|---|
SliderListener(ButtonModelInterface btnModel,
ButtonModelInterface incModel,
ButtonModelInterface decModel,
SliderInterface area)
Constructor that sets the buttonModels to change the state of based on the user events listened for. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
ActionListener method to handle ActionEvents from the increment and decrement ButtonModelInterface objects. |
ButtonModelInterface |
getButtonModel()
Get the ButtonModelInterface for the thumb area of the SliderInterface. |
ButtonModelInterface |
getDecrementButtonModel()
Get the ButtonModelInterface for the decrement area of the SliderInterface. |
ButtonModelInterface |
getIncrementButtonModel()
Get the ButtonModelInterface for the increment area of the SliderInterface. |
void |
keyPressed(java.awt.event.KeyEvent evt)
Method invoked when a key is pressed by the user while the component listened on has focus. |
void |
keyReleased(java.awt.event.KeyEvent evt)
Method invoked when a key is released by the user while the component listened on has focus. |
void |
keyTyped(java.awt.event.KeyEvent evt)
Method invoked when a key is typed by the user while the component listened on has focus. |
void |
mouseClicked(java.awt.event.MouseEvent evt)
Method invoked when the mouse is clicked. |
void |
mouseDragged(java.awt.event.MouseEvent evt)
Method invoked when the mouse is dragged. |
void |
mouseEntered(java.awt.event.MouseEvent evt)
Method invoked when the mouse enters the button component area. |
void |
mouseExited(java.awt.event.MouseEvent evt)
Method invoked when the mouse exits the button component area. |
void |
mouseMoved(java.awt.event.MouseEvent evt)
Method invoked when the mouse is moved. |
void |
mousePressed(java.awt.event.MouseEvent evt)
Method invoked when the mouse is pressed. |
void |
mouseReleased(java.awt.event.MouseEvent evt)
Method invoked when the mouse is released. |
void |
setButtonModel(ButtonModelInterface btnModel)
Set the ButtonModelInterface for the thumb area of the SliderInterface. |
| Field Detail |
|---|
protected ButtonModelInterface model
protected ButtonModelInterface incrementModel
protected ButtonModelInterface decrementModel
protected SliderInterface trackArea
protected java.awt.Point pressedPoint
protected java.awt.Point offset
| Constructor Detail |
|---|
public SliderListener(ButtonModelInterface btnModel,
ButtonModelInterface incModel,
ButtonModelInterface decModel,
SliderInterface area)
btnModel - the thumb area button modelincModel - the increment area button modeldecModel - the decrement area button modelarea - the slider being listened to| Method Detail |
|---|
public ButtonModelInterface getIncrementButtonModel()
public ButtonModelInterface getDecrementButtonModel()
public ButtonModelInterface getButtonModel()
getButtonModel in interface ButtonListenerInterfacepublic void setButtonModel(ButtonModelInterface btnModel)
setButtonModel in interface ButtonListenerInterfacebtnModel - the ButtonModelInterface for the thumb area of the SliderInterfacepublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - the ActionEventpublic void keyPressed(java.awt.event.KeyEvent evt)
keyPressed in interface java.awt.event.KeyListenerKeyListenerpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased in interface java.awt.event.KeyListenerKeyListenerpublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped in interface java.awt.event.KeyListenerKeyListenerpublic void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved in interface java.awt.event.MouseMotionListenerMouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged in interface java.awt.event.MouseMotionListenerMouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked in interface java.awt.event.MouseListenerMouseListenerpublic void mousePressed(java.awt.event.MouseEvent evt)
mousePressed in interface java.awt.event.MouseListenerMouseListenerpublic void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased in interface java.awt.event.MouseListenerMouseListenerpublic void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered in interface java.awt.event.MouseListenerMouseListenerpublic void mouseExited(java.awt.event.MouseEvent evt)
mouseExited in interface java.awt.event.MouseListenerMouseListener
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||