public static class WindowResizeListener.ToolkitListener extends WindowResizeListener
Modifier and Type | Class and Description |
---|---|
static class |
WindowMouseListener.ToolkitListenerHelper |
WindowResizeListener.ToolkitListener
Modifier and Type | Field and Description |
---|---|
protected java.awt.Component |
myContent |
protected static boolean |
ourIsResizing |
Constructor and Description |
---|
ToolkitListener(java.awt.Component content,
java.awt.Insets border,
javax.swing.Icon corner) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(java.awt.Component comp) |
protected java.awt.Component |
getContent(java.awt.event.MouseEvent event)
Returns a window content which is used to find corresponding window and to set a cursor.
|
protected java.awt.Dimension |
getMinimumSize(java.awt.Component comp)
Note: default implementation takes Component.getTreeLock()
|
protected java.awt.Component |
getView(java.awt.Component component)
Finds a movable/resizable view for the specified content.
|
boolean |
isBusy()
Returns
true if a window is now moving/resizing. |
void |
mouseClicked(java.awt.event.MouseEvent event) |
void |
mouseDragged(java.awt.event.MouseEvent event) |
void |
mouseMoved(java.awt.event.MouseEvent event) |
void |
mousePressed(java.awt.event.MouseEvent event) |
void |
mouseReleased(java.awt.event.MouseEvent event) |
protected void |
notifyMoved() |
protected void |
notifyResized() |
void |
removeFrom(java.awt.Component comp) |
protected void |
setBounds(java.awt.Component comp,
java.awt.Rectangle bounds)
Note: default implementation takes Component.getTreeLock()
|
protected void |
setCursor(java.awt.Component content,
java.awt.Cursor cursor)
Sets the specified cursor for the specified content.
|
getResizeBorder, getResizeOffset, isDisabled, setCursorType
protected final java.awt.Component myContent
protected static boolean ourIsResizing
public ToolkitListener(java.awt.Component content, java.awt.Insets border, javax.swing.Icon corner)
protected void setBounds(java.awt.Component comp, java.awt.Rectangle bounds)
protected void setCursor(java.awt.Component content, java.awt.Cursor cursor)
protected java.awt.Dimension getMinimumSize(java.awt.Component comp)
WindowResizeListener
getMinimumSize
in class WindowResizeListener
public void addTo(java.awt.Component comp)
public void removeFrom(java.awt.Component comp)
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class java.awt.event.MouseAdapter
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class java.awt.event.MouseAdapter
public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter
protected java.awt.Component getContent(java.awt.event.MouseEvent event)
protected java.awt.Component getView(java.awt.Component component)
public boolean isBusy()
true
if a window is now moving/resizing.protected void notifyMoved()
protected void notifyResized()