|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectar.com.da.swing.DefaultDragAndResizePolicy
public class DefaultDragAndResizePolicy
Default implementation of the drag & resize policy
| Constructor Summary | |
|---|---|
DefaultDragAndResizePolicy()
|
|
DefaultDragAndResizePolicy(int threshold)
Construct the default policy with a given theshold |
|
| Method Summary | |
|---|---|
DragType |
getDragType(java.awt.Component component,
java.awt.Point point)
|
ResizeType |
getResizeType(java.awt.Component component,
java.awt.Point point)
Determines the resize type for a given point and a component |
int |
getThreshold()
returns the current threshold |
void |
setThreshold(int threshold)
sets a new threshold |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDragAndResizePolicy(int threshold)
threshold - public DefaultDragAndResizePolicy()
| Method Detail |
|---|
public ResizeType getResizeType(java.awt.Component component,
java.awt.Point point)
DragAndResizePolicy
getResizeType in interface DragAndResizePolicycomponent - the component to be resized/draggedpoint - where the mouse button has been pressed
public int getThreshold()
public void setThreshold(int threshold)
threshold - the new threshold
public DragType getDragType(java.awt.Component component,
java.awt.Point point)
getDragType in interface DragAndResizePolicy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||