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, setBorderfocusGained, focusLost, isActive, mouseEntered, mouseExited, setActive, unconfigureCustomizerpublic BoundState(JCustomizer customizer)
public HandleBorder getHandleBorder()
public void mouseMoved(MouseEvent e)
AbstractStatemouseMoved in interface StatemouseMoved in class AbstractStatepublic int getStartX()
public int getStartY()
public void mousePressed(MouseEvent e)
mousePressed in interface StatemousePressed in class AbstractStatepublic 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 StatemouseDragged in class AbstractStatepublic void mouseReleased(MouseEvent e)
AbstractStatemouseReleased in interface StatemouseReleased in class AbstractStatepublic 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 StateresetBorder in class StateManager.DefaultStateCopyright © 2012–2018 SoftSmithy. All rights reserved.