oracle.jdevimpl.uieditor.assistant
Class GridLayoutAssistant
java.lang.Object
oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
oracle.jdevimpl.uieditor.assistant.GridLayoutAssistant
- All Implemented Interfaces:
- LayoutAssistant
- public final class GridLayoutAssistant
- extends BasicLayoutAssistant
Fields inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant |
BIG_DECREASE_HEIGHT_ACTION, BIG_DECREASE_HEIGHT_CMD_ID, BIG_DECREASE_WIDTH_ACTION, BIG_DECREASE_WIDTH_CMD_ID, BIG_INCREASE_HEIGHT_ACTION, BIG_INCREASE_HEIGHT_CMD_ID, BIG_INCREASE_WIDTH_ACTION, BIG_INCREASE_WIDTH_CMD_ID, BIG_MOVE_DOWN_ACTION, BIG_MOVE_DOWN_CMD_ID, BIG_MOVE_LEFT_ACTION, BIG_MOVE_LEFT_CMD_ID, BIG_MOVE_RIGHT_ACTION, BIG_MOVE_RIGHT_CMD_ID, BIG_MOVE_UP_ACTION, BIG_MOVE_UP_CMD_ID, DECREASE_HEIGHT_ACTION, DECREASE_HEIGHT_CMD_ID, DECREASE_WIDTH_ACTION, DECREASE_WIDTH_CMD_ID, INCREASE_HEIGHT_ACTION, INCREASE_HEIGHT_CMD_ID, INCREASE_WIDTH_ACTION, INCREASE_WIDTH_CMD_ID, MOVE_DOWN_ACTION, MOVE_DOWN_CMD_ID, MOVE_LEFT_ACTION, MOVE_LEFT_CMD_ID, MOVE_RIGHT_ACTION, MOVE_RIGHT_CMD_ID, MOVE_TO_FIRST_ACTION, MOVE_TO_FIRST_CMD_ID, MOVE_TO_FIRST_ITEM, MOVE_TO_LAST_ACTION, MOVE_TO_LAST_CMD_ID, MOVE_TO_LAST_ITEM, MOVE_UP_ACTION, MOVE_UP_CMD_ID, ZORDER_MENU, ZORDER_SEPARATOR |
Method Summary |
java.lang.String |
constrainMove(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point mousePos,
java.awt.Point mouseOffset,
java.awt.Point newPos,
java.awt.Dimension newSize)
Optionally modify size and position of an object being moved to conform to
the constraints imposed by the LayoutManager being represented. |
java.lang.String |
prepareResizeStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
java.awt.Point location,
java.awt.Dimension size)
Return a string for display during the resize process. |
Methods inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant |
calcBestZ, changeSize, changeZ, cleanupRemovedComponent, constrainAdd, getConstraintsEditor, getConstraintsType, getContextMenuItems, getEffects, getKey, getPropertyEditor, getSelectedSiblings, getToolbarPrefix, handleEvent, layoutChanged, lessThan, move, prepareAddComponent, prepareAddStatus, prepareChangeLayout, prepareMouseMoveStatus, prepareMoveComponent, prepareResizeComponent, prepareSelectComponent, prepareSelectDescendant, raiseChildToView, removeBoundsSetting, resizeAction, sort, sortedNodes, update, usesReverseZOrder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridLayoutAssistant
public GridLayoutAssistant()
prepareResizeStatus
public java.lang.String prepareResizeStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
java.awt.Point location,
java.awt.Dimension size)
- Description copied from interface:
LayoutAssistant
- Return a string for display during the resize process.
- Specified by:
prepareResizeStatus
in interface LayoutAssistant
- Overrides:
prepareResizeStatus
in class BasicLayoutAssistant
constrainMove
public java.lang.String constrainMove(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point mousePos,
java.awt.Point mouseOffset,
java.awt.Point newPos,
java.awt.Dimension newSize)
- Description copied from interface:
LayoutAssistant
- Optionally modify size and position of an object being moved to conform to
the constraints imposed by the LayoutManager being represented. This
method may be called from the UIEditor during a move operation such that it
may provide dynamic feedback to the user depicting the expected bounds of
the object throughout the operation.
- Specified by:
constrainMove
in interface LayoutAssistant
- Overrides:
constrainMove
in class BasicLayoutAssistant
Copyright ©1997, 2003, Oracle. All rights reserved.