|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pzgui.AbstractDrawable
org.pzgui.layout.AbstractLayoutable
public abstract class AbstractLayoutable
Designates an object which may be drawn and laid out.
| Constructor Summary | |
|---|---|
AbstractLayoutable()
|
|
| Method Summary | |
|---|---|
boolean |
canPositionChange()
whether the position can be changed |
boolean |
contains(int x,
int y)
returns true if the area described by getHeight()/getWidth() contains x, y |
void |
drag(int x,
int y)
Move the node when it is dragged |
java.awt.geom.Point2D |
getPos()
returns the x and y coordinates of this object |
int |
getX()
returns the x-coordinate of this object |
int |
getY()
returns the y-coordinate of this object |
boolean |
hasPositionChanged()
whether the position changed since the previous unsetPositionChanged() call |
void |
setCanPositionChange(boolean can)
set whether the position can be changed |
void |
setPos(int x,
int y)
sets the x and y coordinates of this object |
void |
setXPos(int x)
sets the x-coordinate of this object |
void |
setYPos(int y)
sets the y-coordinate of this object |
void |
unsetPositionChanged()
Causes hasPositionChanged() to return false until set*Pos() is called. |
| Methods inherited from class org.pzgui.AbstractDrawable |
|---|
drawBeforeObject, drawObject, isDrawn, isHovered, isSelected, setHovered, setSelected, unsetDrawn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pzgui.layout.Layoutable |
|---|
getHeight, getID, getWidth |
| Constructor Detail |
|---|
public AbstractLayoutable()
| Method Detail |
|---|
public java.awt.geom.Point2D getPos()
Layoutable
getPos in interface Layoutablepublic int getX()
Layoutable
getX in interface Layoutablepublic int getY()
Layoutable
getY in interface Layoutable
public final void setPos(int x,
int y)
Layoutable
setPos in interface Layoutablepublic void setXPos(int x)
Layoutable
setXPos in interface Layoutablepublic void setYPos(int y)
Layoutable
setYPos in interface Layoutablepublic boolean hasPositionChanged()
Layoutable
hasPositionChanged in interface Layoutablepublic void unsetPositionChanged()
Layoutable
unsetPositionChanged in interface Layoutablepublic boolean canPositionChange()
Layoutable
canPositionChange in interface Layoutablepublic void setCanPositionChange(boolean can)
Layoutable
setCanPositionChange in interface Layoutable
public boolean contains(int x,
int y)
contains in interface Drawablecontains in class AbstractDrawable
public void drag(int x,
int y)
drag in interface Drawabledrag in class AbstractDrawable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||