oracle.jdevimpl.uieditor.assistant
Class XYLayoutAssistant
java.lang.Object
oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
oracle.jdevimpl.uieditor.assistant.NullLayoutAssistant
oracle.jdevimpl.uieditor.assistant.XYLayoutAssistant
- All Implemented Interfaces:
- javax.swing.event.ChangeListener, java.util.EventListener, LayoutAssistant
- public final class XYLayoutAssistant
- extends NullLayoutAssistant
Fields inherited from class oracle.jdevimpl.uieditor.assistant.NullLayoutAssistant |
ALIGN_BOTTOM_ACTION, ALIGN_BOTTOM_CMD_ID, ALIGN_BOTTOM_ITEM, ALIGN_CENTER_ACTION, ALIGN_CENTER_CMD_ID, ALIGN_CENTER_ITEM, ALIGN_LEFT_ACTION, ALIGN_LEFT_CMD_ID, ALIGN_LEFT_ITEM, ALIGN_MENU, ALIGN_MIDDLE_ACTION, ALIGN_MIDDLE_CMD_ID, ALIGN_MIDDLE_ITEM, ALIGN_RIGHT_ACTION, ALIGN_RIGHT_CMD_ID, ALIGN_RIGHT_ITEM, ALIGN_TOP_ACTION, ALIGN_TOP_CMD_ID, ALIGN_TOP_ITEM, ALIGN_VERT_SEPARATOR, EVEN_SPACE_HORIZ_ACTION, EVEN_SPACE_HORIZ_CMD_ID, EVEN_SPACE_HORIZ_ITEM, EVEN_SPACE_SEPARATOR, EVEN_SPACE_VERT_ACTION, EVEN_SPACE_VERT_CMD_ID, EVEN_SPACE_VERT_ITEM, gridEffects, gridSpacing, gridVisible, SAME_SIZE_HORIZ_ACTION, SAME_SIZE_HORIZ_CMD_ID, SAME_SIZE_HORIZ_ITEM, SAME_SIZE_VERT_ACTION, SAME_SIZE_VERT_CMD_ID, SAME_SIZE_VERT_ITEM, SIZE_AND_SPACE_MENU, snapToGrid, useInsets |
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 |
protected java.awt.Rectangle |
getConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
|
Explorer |
getConstraintsEditor(Context context)
Get an Explorer implementation with which to modify the constraints
settings, else null. |
java.lang.String |
getConstraintsType()
|
protected java.awt.Dimension |
getPreferredSize(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
|
java.beans.PropertyEditor |
getPropertyEditor()
|
void |
layoutChanged(oracle.jdevimpl.uieditor.uicanvas.ModelNode container)
Layout has been switched. |
void |
prepareAddComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Point offset,
java.awt.Dimension size)
Perform any preparation on a child component that will be added into to a
container. |
void |
prepareMoveComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Point offset)
Child is being moved. |
protected void |
setConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point pos,
java.awt.Dimension size)
|
Methods inherited from class oracle.jdevimpl.uieditor.assistant.NullLayoutAssistant |
constrainAdd, constrainMove, getContextMenuItems, getEffects, getToolbarPrefix, handleEvent, move, prepareAddStatus, prepareChangeLayout, prepareMouseMoveStatus, prepareResizeStatus, prepareSelectComponent, resizeAction, stateChanged, update, updateSettings, usesReverseZOrder |
Methods inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant |
calcBestZ, changeSize, changeZ, cleanupRemovedComponent, getKey, getSelectedSiblings, lessThan, prepareResizeComponent, prepareSelectDescendant, raiseChildToView, removeBoundsSetting, sort, sortedNodes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XYLayoutAssistant
public XYLayoutAssistant()
prepareAddComponent
public void prepareAddComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Point offset,
java.awt.Dimension size)
- Description copied from interface:
LayoutAssistant
- Perform any preparation on a child component that will be added into to a
container. Typically this involves setting the node's constraint value.
The new component has already been added to the container via
container.add(component). After the constraint is set by this method
and/or the add order of the components manipulated, it will be re-added
with the supplied constraint.
- Specified by:
prepareAddComponent
in interface LayoutAssistant
- Overrides:
prepareAddComponent
in class NullLayoutAssistant
prepareMoveComponent
public void prepareMoveComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Point offset)
- Description copied from interface:
LayoutAssistant
- Child is being moved. Often implemented by calling prepareAddComponent
- Specified by:
prepareMoveComponent
in interface LayoutAssistant
- Overrides:
prepareMoveComponent
in class NullLayoutAssistant
getPreferredSize
protected java.awt.Dimension getPreferredSize(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
- Overrides:
getPreferredSize
in class NullLayoutAssistant
layoutChanged
public void layoutChanged(oracle.jdevimpl.uieditor.uicanvas.ModelNode container)
- Description copied from interface:
LayoutAssistant
- Layout has been switched. Chance for the old Container to clean up its
mess. For instance; when switching from null layout,
the NullLayoutAssistant uses this call to remove the Bounds property
settings for each component in the Container.
- Specified by:
layoutChanged
in interface LayoutAssistant
- Overrides:
layoutChanged
in class NullLayoutAssistant
getConstraints
protected java.awt.Rectangle getConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
- Overrides:
getConstraints
in class NullLayoutAssistant
setConstraints
protected void setConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point pos,
java.awt.Dimension size)
- Overrides:
setConstraints
in class NullLayoutAssistant
getConstraintsType
public java.lang.String getConstraintsType()
- Specified by:
getConstraintsType
in interface LayoutAssistant
- Overrides:
getConstraintsType
in class BasicLayoutAssistant
getPropertyEditor
public java.beans.PropertyEditor getPropertyEditor()
- Specified by:
getPropertyEditor
in interface LayoutAssistant
- Overrides:
getPropertyEditor
in class BasicLayoutAssistant
getConstraintsEditor
public Explorer getConstraintsEditor(Context context)
- Description copied from interface:
LayoutAssistant
- Get an Explorer implementation with which to modify the constraints
settings, else null.
- Specified by:
getConstraintsEditor
in interface LayoutAssistant
- Overrides:
getConstraintsEditor
in class BasicLayoutAssistant
Copyright ©1997, 2003, Oracle. All rights reserved.