|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--waba.ui.Control | +--waba.ui.Container | +--mWaba.gui.mControl | +--mWaba.gui.mCanvas | +--mWaba.gui.graphics.Mosaic | +--mWaba.gui.graphics.MosaicPanel
Field Summary | |
boolean |
autoScrolling
|
protected boolean |
canRest
|
protected ImageDragContext |
dragged
|
int |
dragRate
Use this to set the number of milliseconds in between drag messages. |
protected boolean |
inPanel
|
protected boolean |
isActive
|
protected boolean |
isDragging
|
protected boolean |
isOn
|
protected boolean |
isScrolling
|
protected Point |
lastPoint
|
int |
minDragRate
Use this to set the number of milliseconds in between drag messages. |
protected boolean |
needDrag
|
protected AniImage |
onImage
|
protected AniImage |
pressedImage
|
protected int |
restCount
|
protected AniImage |
restedImage
|
protected boolean |
resting
|
int |
scrollStep
|
protected int |
xScroll
|
protected int |
yScroll
|
Fields inherited from class mWaba.gui.graphics.Mosaic |
backgroundImage,
firstSnap,
images,
pauseSnapShots,
quickDragging |
Fields inherited from class mWaba.gui.mCanvas |
hasBorder,
origin,
raised,
recessed,
scrollServer,
virtualSize |
Fields inherited from class waba.ui.Container |
children,
numChildren,
tail |
Fields inherited from class waba.ui.Control |
height,
next,
parent,
width,
x,
y |
Constructor Summary | |
MosaicPanel()
|
Method Summary | |
void |
activate()
Allows mouse interaction with images on the |
protected void |
db(java.lang.String what)
|
void |
deactivate()
This deactivates detecting mouse interaction with the images on the panel. |
void |
dragged(DragContext mdc)
|
protected ImageDragContext |
dragging(AniImage which)
This should be called by mousePressed() or mouseDragged() to indicate to the panel that an image is being dragged. |
protected void |
dragging(ImageDragContext dc)
This should be called by mousePressed() or mouseDragged() to indicate to the panel that an image is being dragged. |
boolean |
imageBeginDragged(AniImage which,
Point pos)
Indicates the mouse is attempting to drag an image. |
boolean |
imageDragged(ImageDragContext drag,
Point pos)
Indicates the mouse is dragging an image. |
boolean |
imageMovedOff(AniImage which)
Indicates the mouse is no longer over an image. |
boolean |
imageMovedOn(AniImage which)
Indicates the mouse is over an image without the mouse being down (yet). |
boolean |
imageNotDragged(ImageDragContext drag,
Point pos)
Indicates the mouse has released dragging an image. |
boolean |
imageNotRestingOn(AniImage which)
Indicates the mouse is no longer resting on an image. |
boolean |
imagePressed(AniImage which,
Point pos)
Indicates the mouse is pressed on an image. |
boolean |
imageReleased(AniImage which,
Point pos)
Indicates the mouse is released from an image. |
boolean |
imageRestingOn(AniImage which)
Indicates the mouse is resting on an image (after half second delay). |
boolean |
mouseEntered(waba.ui.PenEvent ev,
Point pos)
Indicates the mouse has entered the panel. |
boolean |
mouseExited(waba.ui.PenEvent ev,
Point pos)
Indicates the mouse has left the panel. |
boolean |
mouseMoved(waba.ui.PenEvent ev,
Point pos)
Indicates the mouse has left the panel. |
void |
penPressed(Point ev)
|
void |
penReleased(Point ev)
|
void |
setDragRate(int howLong)
|
void |
setPressedImage(AniImage which)
|
Methods inherited from class mWaba.gui.graphics.Mosaic |
addImage,
addToSnapShot,
confirmImage,
doPaint,
dropImage,
paintMosaicBackground,
refresh,
refresh,
refresh,
refresh,
removeFromSnapShot,
removeImage,
setMovingImage,
takeSnapShot |
Methods inherited from class mWaba.gui.mCanvas |
checkScrolls,
doBorder,
doScroll,
fixOrigin,
getActual,
getBuffer,
getCurrent,
getMySize,
getPercent,
getVisible,
getVisibleArea,
onScroll,
onSetOrigin,
reduceClip,
scroll,
scroll,
setOrigin,
setServer,
updateScrollServer |
Methods inherited from class waba.ui.Container |
findChild |
Methods inherited from class waba.ui.Control |
addTimer,
contains,
createGraphics,
getFontMetrics,
getMainWindow,
getParent,
getRect,
removeTimer |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected boolean isActive
protected AniImage pressedImage
protected AniImage restedImage
protected AniImage onImage
protected ImageDragContext dragged
protected boolean isDragging
protected boolean isScrolling
protected boolean needDrag
protected boolean canRest
protected boolean resting
protected boolean inPanel
protected boolean isOn
protected int restCount
protected int xScroll
protected int yScroll
public int scrollStep
public boolean autoScrolling
public int minDragRate
public int dragRate
protected Point lastPoint
Constructor Detail |
public MosaicPanel()
Method Detail |
public void setPressedImage(AniImage which)
protected final void dragging(ImageDragContext dc)
protected final ImageDragContext dragging(AniImage which)
public void setDragRate(int howLong)
public final void deactivate()
public final void activate()
protected void db(java.lang.String what)
public final void penPressed(Point ev)
public final void dragged(DragContext mdc)
public final void penReleased(Point ev)
public boolean mouseEntered(waba.ui.PenEvent ev, Point pos)
public boolean mouseExited(waba.ui.PenEvent ev, Point pos)
public boolean mouseMoved(waba.ui.PenEvent ev, Point pos)
public boolean imagePressed(AniImage which, Point pos)
public boolean imageReleased(AniImage which, Point pos)
public boolean imageBeginDragged(AniImage which, Point pos)
public boolean imageDragged(ImageDragContext drag, Point pos)
public boolean imageNotDragged(ImageDragContext drag, Point pos)
public boolean imageMovedOn(AniImage which)
public boolean imageMovedOff(AniImage which)
public boolean imageRestingOn(AniImage which)
public boolean imageNotRestingOn(AniImage which)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |