ewe.graphics
Class InteractivePanel

java.lang.Object
  extended byewe.ui.ControlBase
      extended byewe.ui.Control
          extended byewe.ui.Container
              extended byewe.ui.Canvas
                  extended byewe.graphics.Mosaic
                      extended byewe.graphics.MosaicPanel
                          extended byewe.graphics.InteractivePanel
All Implemented Interfaces:
CellConstants, ControlConstants, EventListener, ImageRefresher, IScroll, ScrollClient, TimerProc, UIConstants

public class InteractivePanel
extends MosaicPanel


Field Summary
protected  boolean amDragging
           
 boolean autoMoveToTop
          If this is true then moveable images will be moved to the top when pressed or dragged.
 boolean dragBackground
           
 ImageList touching
          Add images to this that will be considered to be touchable.
 
Fields inherited from class ewe.graphics.MosaicPanel
autoScrolling, canRest, dragged, dragRate, hotCursor, inPanel, isActive, isDragging, isOn, isScrolling, lastPoint, minDragRate, movedOffOf, movingOnTo, needDrag, onImage, pressedImage, restCount, restedImage, resting, scrollStep, xScroll, yScroll
 
Fields inherited from class ewe.graphics.Mosaic
backgroundImage, firstSnap, images, pauseSnapShots, quickDragging
 
Fields inherited from class ewe.ui.Canvas
isFullScrollClient, origin, scrollPercent, virtualSize
 
Fields inherited from class ewe.ui.Container
closedFocus, cycleFocus, dontAutoScroll, dontFocusOnChildren
 
Fields inherited from class ewe.ui.Control
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y
 
Fields inherited from class ewe.ui.ControlBase
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput
 
Fields inherited from interface ewe.fx.ImageRefresher
KEEP_VISIBLE
 
Fields inherited from interface ewe.ui.IScroll
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical
 
Fields inherited from interface ewe.ui.UIConstants
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN
 
Fields inherited from interface ewe.ui.CellConstants
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
 
Fields inherited from interface ewe.ui.ControlConstants
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
 
Constructor Summary
InteractivePanel()
           
 
Method Summary
protected  void checkTouching(ImageDragContext dc, boolean dropped)
           
 void dragCopyOfImage(ImageDragContext dc)
           
 void draggedOff(ImageDragContext dc)
           
 void draggedOver(ImageDragContext dc)
           
 void draggingImage(ImageDragContext dc)
           
 void draggingStarted(ImageDragContext dc)
           
 void draggingStopped(ImageDragContext dc)
           
 void droppedOn(ImageDragContext dc)
           
 boolean imageBeginDragged(AniImage which, Point pos)
          Indicates the pen/mouse is attempting to drag an image.
 void imageClicked(AniImage which, Point pos)
           
 boolean imageDragged(ImageDragContext dc, Point where)
          Indicates the pen/mouse is dragging an image.
 boolean imageMovedOff(AniImage which)
          Indicates the pen/mouse is no longer over an image.
 boolean imageMovedOn(AniImage which)
          Indicates the pen/mouse is over an image without the pen/mouse being down (yet).
 boolean imageNotDragged(ImageDragContext dc, Point pos)
          Indicates the pen/mouse has released dragging an image.
 boolean imagePressed(AniImage which, Point pos)
          Indicates the pen/mouse is pressed on an image.
 boolean imageReleased(AniImage which, Point pos)
          Indicates the pen/mouse is released from an image.
 
Methods inherited from class ewe.graphics.MosaicPanel
activate, deactivate, doMouseEnter, doMouseExit, doMouseMove, dragged, dragging, dragging, imageNotRestingOn, imageRestingOn, mouseEntered, mouseExited, mouseMoved, onPenEvent, penPressed, penReleased, setDragRate, setPressedImage
 
Methods inherited from class ewe.graphics.Mosaic
addImage, addToSnapShot, confirmImage, doPaint, dropImage, onSetOrigin, paintMosaicBackground, refresh, refresh, refresh, refresh, refresh, refresh, refreshChanged, refreshOnScreen, removeFromSnapShot, removeImage, setAndSizeToBackgroundImage, setMovingImage, takeSnapShot
 
Methods inherited from class ewe.ui.Canvas
canGo, canScreenScroll, checkScrolls, doBorder, doScroll, fixOrigin, getActual, getBuffer, getCurrent, getDisplayedSize, getMySize, getPercent, getScrollablePanel, getScrollClient, getVisible, getVisibleArea, needScrollBar, onScroll, reduceClip, scroll, scroll, scrollToVisible, setOrigin, updateScrollServer
 
Methods inherited from class ewe.ui.Container
_paintChildren, add, addDirectly, containerHasFocus, dismantle, dismantle, doHotKey, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getFirstFocus, getNextKeyFocus, gotFocus, lostFocus, remove, removeAll, repaintDataNow, takeFocus, takePromptControl
 
Methods inherited from class ewe.ui.Control
acceptsData, addListener, addTimer, amOnTopFrame, calculateSizes, calculateTextSize, cancelCut, cancelHoldDown, canEdit, chainDataChange, change, checkClipboardOperations, checkExitKey, checkMenu, checkMenuKey, checkModifiers, checkPenTransparent, clearTag, clipboardToString, clipboardTransfer, closeMenu, contains, contains, createGraphics, dataAccepted, dataBeingRemoved, dataDraggedOff, dataDraggedOver, dataDraggedOver, dataDroppedOn, dataTransferCancelled, defaultTo, doAction, doActionKey, doBackground, doMenu, dontAcceptDrop, doPaintChildren, doPaintChildren, doPaintChildren, doPaintData, doPaintData, doShowMenu, exitEntry, fillBackground, formClosing, fromClipboard, fromField, fromField, getAllDescendants, getAllSubControls, getBackground, getClipboardMenu, getClipObject, getControlBuffer, getControlBuffer, getDataRect, getDataToCopy, getDataToDragAndDrop, getDim, getDisplayText, getDragAndDropContext, getFont, getFontMetrics, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getImage, getLastSelected, getLocation, getMaximumSize, getMenu, getMinimumSize, getModifiers, getNext, getParent, getPasswordCharacter, getPosInFrame, getPosInParent, getPreferredSize, getPrompt, getPromptText, getRect, getRect, getServer, getSize, getSizes, getSubControls, getTag, getText, getToolTip, getWindow, hasModifier, hasPopupFormAttached, hasTag, inheritModifiers, isChildOf, isModal, isOnMe, isSomeonesHotKey, make, makeFrameTopMost, makeHot, menuIsActive, modify, modifyAll, modifyAll, notifyAction, notifyDataChange, notifyDataChange, notNative_doPaintChildren, oldButWorksDoPaintChildren, oldPaintChildren, oldPostEvent, onControlEvent, onEvent, onKeyEvent, onLabelPenEvent, onPaint, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penRightReleased, popupBeep, popupMenuClosed, popupMenuEvent, popupMenuEvent, postEvent, recalculatePreferredSize, redisplay, removeListener, removeTimer, repaint, repaintNow, repaintNow, repaintNow, requestPaint, requestResizeTo, resetRect, resizeTo, restore, scrollAndRepaint, sendToListeners, set, setBorder, setCell, setClipObject, setControl, setCursor, setFixedSize, setFont, setHotKey, setHotKey, setLocation, setMaximumSize, setMenu, setMinimumSize, setPreferredSize, setPromptControl, setRect, setRect, setServer, setTag, setTags, setText, setTextSize, setToolTip, show, shown, standardOnKeyEvent, startDragAndDrop, startDragAndDrop, startDragging, stopDragging, takeData, takeFromClipboard, testDim, ticked, toClipboard, toField, toField, toString, toTextData, transferPenPress, transferPenPress, tryDragAndDrop, tryNext, tryStartMenu, updateData, willAcceptDrop, willShowFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 
Methods inherited from interface ewe.ui.ScrollClient
getServer, setServer
 

Field Detail

touching

public ImageList touching
Add images to this that will be considered to be touchable.


dragBackground

public boolean dragBackground

autoMoveToTop

public boolean autoMoveToTop
If this is true then moveable images will be moved to the top when pressed or dragged.


amDragging

protected boolean amDragging
Constructor Detail

InteractivePanel

public InteractivePanel()
Method Detail

checkTouching

protected void checkTouching(ImageDragContext dc,
                             boolean dropped)

imagePressed

public boolean imagePressed(AniImage which,
                            Point pos)
Description copied from class: MosaicPanel
Indicates the pen/mouse is pressed on an image.

Overrides:
imagePressed in class MosaicPanel

imageBeginDragged

public boolean imageBeginDragged(AniImage which,
                                 Point pos)
Description copied from class: MosaicPanel
Indicates the pen/mouse is attempting to drag an image. If you wish to drag the image return true. You can call the dragging() method to change the default ImageDragContext.

Overrides:
imageBeginDragged in class MosaicPanel

imageDragged

public boolean imageDragged(ImageDragContext dc,
                            Point where)
Description copied from class: MosaicPanel
Indicates the pen/mouse is dragging an image. Will only be called if imageBeingDragged returned true.

Overrides:
imageDragged in class MosaicPanel

imageNotDragged

public boolean imageNotDragged(ImageDragContext dc,
                               Point pos)
Description copied from class: MosaicPanel
Indicates the pen/mouse has released dragging an image.

Overrides:
imageNotDragged in class MosaicPanel

imageReleased

public boolean imageReleased(AniImage which,
                             Point pos)
Description copied from class: MosaicPanel
Indicates the pen/mouse is released from an image.

Overrides:
imageReleased in class MosaicPanel

draggingStopped

public void draggingStopped(ImageDragContext dc)

draggingStarted

public void draggingStarted(ImageDragContext dc)

draggingImage

public void draggingImage(ImageDragContext dc)

draggedOver

public void draggedOver(ImageDragContext dc)

draggedOff

public void draggedOff(ImageDragContext dc)

droppedOn

public void droppedOn(ImageDragContext dc)

imageClicked

public void imageClicked(AniImage which,
                         Point pos)

imageMovedOn

public boolean imageMovedOn(AniImage which)
Description copied from class: MosaicPanel
Indicates the pen/mouse is over an image without the pen/mouse being down (yet).

Overrides:
imageMovedOn in class MosaicPanel

imageMovedOff

public boolean imageMovedOff(AniImage which)
Description copied from class: MosaicPanel
Indicates the pen/mouse is no longer over an image.

Overrides:
imageMovedOff in class MosaicPanel

dragCopyOfImage

public void dragCopyOfImage(ImageDragContext dc)