org.softsmithy.lib.swing.customizer
Class StateManager

java.lang.Object
  extended by org.softsmithy.lib.swing.customizer.StateManager
All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, EventListener, MouseInputListener
Direct Known Subclasses:
EditableStateManager

public class StateManager
extends Object
implements FocusListener, MouseInputListener


Nested Class Summary
static class StateManager.BoundState
           
static class StateManager.DefaultState
          The default state.
static class StateManager.ResizeState
           
 
Constructor Summary
StateManager(JCustomizer customizer)
           
 
Method Summary
 void configureCustomizer()
           
 void focusGained(FocusEvent e)
          Invoked when a component gains the keyboard focus.
 void focusLost(FocusEvent e)
          Invoked when a component loses the keyboard focus.
 JCustomizer getCustomizer()
           
 Color getCustomNormalBorderColor()
          Getter for property customNormalBorderColor.
 Color getCustomSelectedBorderColor()
          Getter for property customSelectedBorderColor.
 StateManager.ResizeState getEResizeState()
          Getter for property eResizeState.
 StateManager.BoundState getMoveState()
          Getter for property moveState.
 StateManager.ResizeState getNEResizeState()
          Getter for property nEResizeState.
 Color getNormalBorderColor()
          Getter for property normalBorderColor.
 State getNormalState()
          Getter for property normalState.
 StateManager.ResizeState getNResizeState()
          Getter for property nResizeState.
 StateManager.ResizeState getNWResizeState()
          Getter for property nWResizeState.
 Color getSelectedBorderColor()
          Getter for property selectedBorderColor.
 State getSelectedState()
          Getter for property selectedState.
 StateManager.ResizeState getSEResizeState()
          Getter for property sEResizeState.
 StateManager.ResizeState getSResizeState()
          Getter for property sResizeState.
 StateManager.ResizeState getSWResizeState()
          Getter for property sWResizeState.
 StateManager.ResizeState getWResizeState()
          Getter for property wResizeState.
 boolean isUsingDefaultNormalBorderColor()
          Getter for property usingDefaultNormalBorderColor.
 boolean isUsingDefaultSelectedBorderColor()
          Getter for property usingDefaultSelectedBorderColor.
 void mouseClicked(MouseEvent e)
          Invoked when the mouse button has been clicked (pressed and released) on a component.
 void mouseDragged(MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mouseEntered(MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(MouseEvent e)
          Invoked when the mouse exits a component.
 void mouseMoved(MouseEvent e)
          Invoked when the mouse button has been moved on a component (with no buttons down).
 void mousePressed(MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void setCurrentSelectedBorderColor(org.softsmithy.lib.swing.customizer.StateManager.BorderColor currentSelectedBorderColor)
          Setter for property currentSelectedBorderColor.
 void setCustomNormalBorderColor(Color color)
           
 void setCustomSelectedBorderColor(Color color)
           
protected  void setState(State state)
           
 void setStateBound(Point point)
           
 void setStateEResize()
           
 void setStateMove()
           
 void setStateNEResize()
           
 void setStateNormal()
           
 void setStateNResize()
           
 void setStateNWResize()
           
 void setStateSelected()
           
 void setStateSEResize()
           
 void setStateSResize()
           
 void setStateSWResize()
           
 void setStateWResize()
           
 void setUsingDefaultNormalBorderColor(boolean usingDefaultNormalBorderColor)
          Setter for property usingDefaultNormalBorderColor.
 void setUsingDefaultSelectedBorderColor(boolean usingDefaultSelectedBorderColor)
          Setter for property usingDefaultSelectedBorderColor.
 void unconfigureCustomizer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateManager

public StateManager(JCustomizer customizer)
Method Detail

setState

protected void setState(State state)

setStateBound

public void setStateBound(Point point)

getCustomizer

public JCustomizer getCustomizer()

configureCustomizer

public void configureCustomizer()

unconfigureCustomizer

public void unconfigureCustomizer()

mouseClicked

public void mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.

Specified by:
mouseClicked in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Specified by:
mouseDragged in interface MouseMotionListener

mouseEntered

public void mouseEntered(MouseEvent e)
Invoked when the mouse enters a component.

Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.

Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons down).

Specified by:
mouseMoved in interface MouseMotionListener

mousePressed

public void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface MouseListener

focusGained

public void focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus.

Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus.

Specified by:
focusLost in interface FocusListener

getNResizeState

public StateManager.ResizeState getNResizeState()
Getter for property nResizeState.

Returns:
Value of property nResizeState.

getEResizeState

public StateManager.ResizeState getEResizeState()
Getter for property eResizeState.

Returns:
Value of property eResizeState.

getNWResizeState

public StateManager.ResizeState getNWResizeState()
Getter for property nWResizeState.

Returns:
Value of property nWResizeState.

getNormalState

public State getNormalState()
Getter for property normalState.

Returns:
Value of property normalState.

getNEResizeState

public StateManager.ResizeState getNEResizeState()
Getter for property nEResizeState.

Returns:
Value of property nEResizeState.

getMoveState

public StateManager.BoundState getMoveState()
Getter for property moveState.

Returns:
Value of property moveState.

getSelectedState

public State getSelectedState()
Getter for property selectedState.

Returns:
Value of property selectedState.

getSEResizeState

public StateManager.ResizeState getSEResizeState()
Getter for property sEResizeState.

Returns:
Value of property sEResizeState.

getSResizeState

public StateManager.ResizeState getSResizeState()
Getter for property sResizeState.

Returns:
Value of property sResizeState.

getSWResizeState

public StateManager.ResizeState getSWResizeState()
Getter for property sWResizeState.

Returns:
Value of property sWResizeState.

getWResizeState

public StateManager.ResizeState getWResizeState()
Getter for property wResizeState.

Returns:
Value of property wResizeState.

setStateNResize

public void setStateNResize()

setStateEResize

public void setStateEResize()

setStateNWResize

public void setStateNWResize()

setStateNormal

public void setStateNormal()

setStateNEResize

public void setStateNEResize()

setStateMove

public void setStateMove()

setStateSelected

public void setStateSelected()

setStateSEResize

public void setStateSEResize()

setStateSResize

public void setStateSResize()

setStateSWResize

public void setStateSWResize()

setStateWResize

public void setStateWResize()

getNormalBorderColor

public Color getNormalBorderColor()
Getter for property normalBorderColor.

Returns:
Value of property normalBorderColor.

getSelectedBorderColor

public Color getSelectedBorderColor()
Getter for property selectedBorderColor.

Returns:
Value of property selectedBorderColor.

isUsingDefaultNormalBorderColor

public boolean isUsingDefaultNormalBorderColor()
Getter for property usingDefaultNormalBorderColor.

Returns:
Value of property usingDefaultNormalBorderColor.

setUsingDefaultNormalBorderColor

public void setUsingDefaultNormalBorderColor(boolean usingDefaultNormalBorderColor)
Setter for property usingDefaultNormalBorderColor.

Parameters:
usingDefaultNormalBorderColor - New value of property usingDefaultNormalBorderColor.

isUsingDefaultSelectedBorderColor

public boolean isUsingDefaultSelectedBorderColor()
Getter for property usingDefaultSelectedBorderColor.

Returns:
Value of property usingDefaultSelectedBorderColor.

setUsingDefaultSelectedBorderColor

public void setUsingDefaultSelectedBorderColor(boolean usingDefaultSelectedBorderColor)
Setter for property usingDefaultSelectedBorderColor.

Parameters:
usingDefaultSelectedBorderColor - New value of property usingDefaultSelectedBorderColor.

getCustomNormalBorderColor

public Color getCustomNormalBorderColor()
Getter for property customNormalBorderColor.

Returns:
Value of property customNormalBorderColor.

setCustomNormalBorderColor

public void setCustomNormalBorderColor(Color color)

getCustomSelectedBorderColor

public Color getCustomSelectedBorderColor()
Getter for property customSelectedBorderColor.

Returns:
Value of property customSelectedBorderColor.

setCustomSelectedBorderColor

public void setCustomSelectedBorderColor(Color color)

setCurrentSelectedBorderColor

public void setCurrentSelectedBorderColor(org.softsmithy.lib.swing.customizer.StateManager.BorderColor currentSelectedBorderColor)
Setter for property currentSelectedBorderColor.

Parameters:
currentSelectedBorderColor - New value of property currentSelectedBorderColor.


Copyright © 2002-2011 SoftSmithy. All Rights Reserved.