|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagero.swing.drag.AbstractMagnetManager
com.imagero.swing.drag.MagnetManager
MagnetManager.java
| Field Summary | |
static java.lang.String |
SNAP_RELEASED
|
static java.lang.String |
SNAP_STARTED
|
| Constructor Summary | |
MagnetManager()
|
|
| Method Summary | |
protected boolean |
canSnap(int a,
int b,
int c)
determine if one Component can snapX to another side effects - determine if snapX was released or/and achieved |
protected void |
checkDockBottomRight(int a,
int b,
java.lang.String side)
determine if one Component can dock to another |
protected void |
checkDockTopLeft(int a,
int b,
java.lang.String side)
determine if one Component can dock to another |
protected boolean |
checkRectX(java.awt.Rectangle r0,
java.awt.Rectangle r1)
|
protected boolean |
checkRectY(java.awt.Rectangle r0,
java.awt.Rectangle r1)
|
protected java.awt.Rectangle |
checkSnapRect(java.awt.Rectangle rect00,
java.awt.Rectangle rect0,
java.awt.Rectangle rect1)
|
java.awt.Rectangle |
computeRect(java.awt.Component comp0)
compute new bounds for Component |
java.awt.Rectangle |
computeRect(java.awt.Component comp0,
java.awt.Rectangle rect0)
compute new bounds for component |
com.imagero.eventmgr.ActionManager |
getActionManager()
get ActionManager |
protected java.awt.Rectangle |
getClosestRect(java.awt.Rectangle r0,
java.util.Vector rects)
create Rectangle which position is closest to position of reference Rectangle |
int |
getSnapReleaseSize()
if distance between 2 Components more then snapReleaseSize then they can't snapX together |
int |
getSnapStartSize()
if distance between 2 Components less then snapStartSize then they can snapX together |
void |
setSnapReleaseSize(int snapReleaseSize)
snapStartSize must be less or equals to snapReleaseSize |
void |
setSnapStartSize(int snapStartSize)
snapStartSize must be less or equals to snapReleaseSize |
| Methods inherited from class com.imagero.swing.drag.AbstractMagnetManager |
add, add, add, add, isActive, remove, remove, remove, removeAll, setActive |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SNAP_STARTED
public static final java.lang.String SNAP_RELEASED
| Constructor Detail |
public MagnetManager()
| Method Detail |
public int getSnapReleaseSize()
public void setSnapReleaseSize(int snapReleaseSize)
public int getSnapStartSize()
public void setSnapStartSize(int snapStartSize)
public com.imagero.eventmgr.ActionManager getActionManager()
ActionManagerpublic java.awt.Rectangle computeRect(java.awt.Component comp0)
public java.awt.Rectangle computeRect(java.awt.Component comp0,
java.awt.Rectangle rect0)
comp0 - Componentrect0 - future Component's bounds to verify
protected java.awt.Rectangle getClosestRect(java.awt.Rectangle r0,
java.util.Vector rects)
r0 - reference Rectanglerects - Vector which contains some Rectangles
protected java.awt.Rectangle checkSnapRect(java.awt.Rectangle rect00,
java.awt.Rectangle rect0,
java.awt.Rectangle rect1)
rect00 - current bounds of our Componentrect0 - new (future) bounds of our Componentrect1 - bounds of another Component
protected boolean canSnap(int a,
int b,
int c)
a - future coordinate of moving Componentb - current coordinate of static Componentc - current coordinate of moving Component
protected void checkDockTopLeft(int a,
int b,
java.lang.String side)
a - future coordinate of moving Componentb - current coordinate of static Componentside - String which identified possible argument for docking
protected void checkDockBottomRight(int a,
int b,
java.lang.String side)
a - future coordinate of moving Componentb - current coordinate of static Componentside - String which identified possible argument for docking
protected boolean checkRectY(java.awt.Rectangle r0,
java.awt.Rectangle r1)
protected boolean checkRectX(java.awt.Rectangle r0,
java.awt.Rectangle r1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||