public abstract static class StateManager.BoundState extends StateManager.DefaultState
Constructor and Description |
---|
BoundState(JCustomizer customizer) |
Modifier and Type | Method and Description |
---|---|
abstract Rectangle |
createRelRectangle(MouseEvent e) |
Rectangle |
createRelRectangle(MouseEvent e,
int xFactor,
int yFactor,
int widthFactor,
int heightFactor) |
HandleBorder |
getHandleBorder() |
int |
getLastX()
Getter for property lastX.
|
int |
getLastY()
Getter for property lastY.
|
int |
getStartX()
Getter for property startX.
|
int |
getStartY()
Getter for property startY.
|
boolean |
isDragging() |
void |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
|
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 |
resetBorder(Color borderColor) |
void |
setStart(Point point) |
applyBorder, applyCursor, configureCustomizer, getBorder, getCustomizer, mouseClicked, setBorder
focusGained, focusLost, isActive, mouseEntered, mouseExited, setActive, unconfigureCustomizer
public BoundState(JCustomizer customizer)
public HandleBorder getHandleBorder()
public void mouseMoved(MouseEvent e)
AbstractState
mouseMoved
in interface State
mouseMoved
in class AbstractState
public int getStartX()
public int getStartY()
public void mousePressed(MouseEvent e)
mousePressed
in interface State
mousePressed
in class AbstractState
public void mouseDragged(MouseEvent e)
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.
mouseDragged
in interface State
mouseDragged
in class AbstractState
public void mouseReleased(MouseEvent e)
AbstractState
mouseReleased
in interface State
mouseReleased
in class AbstractState
public abstract Rectangle createRelRectangle(MouseEvent e)
public Rectangle createRelRectangle(MouseEvent e, int xFactor, int yFactor, int widthFactor, int heightFactor)
public int getLastX()
public int getLastY()
public void setStart(Point point)
public boolean isDragging()
public void resetBorder(Color borderColor)
resetBorder
in interface State
resetBorder
in class StateManager.DefaultState
Copyright © 2002–2016 SoftSmithy. All rights reserved.