org.nakedobjects.plugins.dnd.viewer.basic
Class ResizeBorder
java.lang.Object
org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
org.nakedobjects.plugins.dnd.viewer.basic.ResizeBorder
- All Implemented Interfaces:
- java.lang.Cloneable, View
- Direct Known Subclasses:
- TextFieldResizeBorder, ViewResizeBorder
public abstract class ResizeBorder
- extends AbstractBorder
|
Constructor Summary |
ResizeBorder(View view,
int allowDirections,
int width,
int minimumWidth)
|
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder |
contentArea, dragFrom, dragIn, dragOut, drop, drop, firstClick, getBaseline, getBottom, getLeft, getPadding, getRight, getSize, getTop, identify, isOnBorder, mouseDown, mouseUp, overBorder, overContent, pickupContent, pickupView, secondClick, setBounds, setMaximumSize, setSize, thirdClick |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator |
addView, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, dragCancel, editComplete, entered, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getParent, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, markDamaged, markDamaged, objectActionResult, print, refresh, removeView, replaceView, setFocusManager, setLocation, setParent, setView, subviewFor, toString, update, updateView |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
UP
public static final int UP
- See Also:
- Constant Field Values
DOWN
public static final int DOWN
- See Also:
- Constant Field Values
resizing
protected boolean resizing
ResizeBorder
public ResizeBorder(View view,
int allowDirections,
int width,
int minimumWidth)
debugDetails
protected void debugDetails(DebugString debug)
- Overrides:
debugDetails in class AbstractBorder
draw
public void draw(Canvas canvas)
- Description copied from interface:
View
- Called by the frame, or the parent view, when this view must redraw itself.
- Specified by:
draw in interface View- Overrides:
draw in class AbstractBorder
drawResizeBorder
protected abstract void drawResizeBorder(Canvas canvas,
Size size)
viewAreaType
public ViewAreaType viewAreaType(Location mouseLocation)
- Description copied from interface:
View
- Determines if the user is invoking an action relating to this view, rather than to whatever this view
represents.
- Specified by:
viewAreaType in interface View- Overrides:
viewAreaType in class AbstractBorder
- Returns:
- true if the user is targeting the view itself, false if the user is targeting what is being
represented
viewMenuOptions
public void viewMenuOptions(UserActionSet menuOptions)
- Description copied from interface:
View
- Called when the popup menu is being populated for this view. Any view options that need to appear on
the menu should be added to the
menuOptions object.
- Specified by:
viewMenuOptions in interface View- Overrides:
viewMenuOptions in class AbstractViewDecorator
dragStart
public Drag dragStart(DragStart drag)
- Specified by:
dragStart in interface View- Overrides:
dragStart in class AbstractBorder
drag
public void drag(InternalDrag drag)
- Description copied from interface:
View
- Called as mouse is dragged within and without this view. This only occurs when no content or view is
being dragged.
- Specified by:
drag in interface View- Overrides:
drag in class AbstractViewDecorator
dragTo
public void dragTo(InternalDrag drag)
- Description copied from interface:
View
- Called as the drag ends within and without this view. This only occurs when no content or view is being
dragged.
- Specified by:
dragTo in interface View- Overrides:
dragTo in class AbstractViewDecorator
getRequiredSize
public Size getRequiredSize(Size maximumSize)
- Specified by:
getRequiredSize in interface View- Overrides:
getRequiredSize in class AbstractBorder
mouseMoved
public void mouseMoved(Location at)
- Detects whether the point is on the resize border, and if so changes the cursor to show it can be
resized.
- Specified by:
mouseMoved in interface View- Overrides:
mouseMoved in class AbstractBorder
- Parameters:
at - the position relative to the top-left of this view
exited
public void exited()
- Description copied from interface:
View
- Called as the mouse crosses the bounds, and ends up outside, of this view.
- Specified by:
exited in interface View- Overrides:
exited in class AbstractBorder
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.