public class PenOverState extends MutableTreeNodeObject
Modifier and Type | Class and Description |
---|---|
static class |
PenOverState.PenOverChange |
Modifier and Type | Field and Description |
---|---|
int |
height |
boolean |
isOver |
int |
width |
int |
x |
int |
y |
children, parent
Constructor and Description |
---|
PenOverState() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIsOverChange(int xInParent,
int yInParent,
boolean doChangeState)
Returns true if the state of this PenOverState or one of its children has changed, false if it has not.
|
PenOverState |
childAt(int[] address) |
PenOverState |
childAt(int[] address,
int start,
int length) |
void |
clearIsOver() |
int |
getChildOver() |
boolean |
getIsOver() |
int[] |
getLowestChildAddressAt(int xInParent,
int yInParent) |
PenOverState |
getLowestChildAt(int xInParent,
int yInParent) |
PenOverState |
getStateChild(int child) |
boolean |
penMoved(int newX,
int newY,
PenOverState.PenOverChange change) |
boolean |
penMovedOff(PenOverState.PenOverChange change) |
PenOverState |
setArea(int x,
int y,
int width,
int height) |
PenOverState |
setAsEmpty() |
addChild, canExpand, clearChildren, collapse, expand, getChild, getChildCount, getChildren, getParent, indexOfChild, insertChild, isLeaf, removeChild, setParent
public int x
public int y
public int width
public int height
public boolean isOver
public PenOverState setArea(int x, int y, int width, int height)
public PenOverState setAsEmpty()
public PenOverState getStateChild(int child)
public boolean getIsOver()
public void clearIsOver()
public boolean checkIsOverChange(int xInParent, int yInParent, boolean doChangeState)
xInParent
- yInParent
- doChangeState
- true to change the value of isOver, false to leave it unchanged.public PenOverState childAt(int[] address)
public PenOverState childAt(int[] address, int start, int length)
public int getChildOver()
public PenOverState getLowestChildAt(int xInParent, int yInParent)
public int[] getLowestChildAddressAt(int xInParent, int yInParent)
public boolean penMovedOff(PenOverState.PenOverChange change)
public boolean penMoved(int newX, int newY, PenOverState.PenOverChange change)