|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant | +--oracle.jdevimpl.uieditor.assistant.BorderLayoutAssistant
Field Summary |
Fields inherited from interface oracle.jdevimpl.uieditor.LayoutAssistant |
TOOLBAR_ITEM, TOOLBAR_ITEM_COUNT |
Constructor Summary | |
BorderLayoutAssistant()
|
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. |
Explorer |
getConstraintsEditor(Context context)
Get an Explorer implementation with which to modify the constraints settings, else null. |
java.lang.String |
getConstraintsType()
|
java.beans.PropertyEditor |
getPropertyEditor()
|
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. |
java.lang.String |
prepareAddStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Dimension size)
Return a string for display during the add process. |
void |
prepareChangeLayout(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
Perform changes on children of a container to best handle a layout type change. |
java.lang.String |
prepareMouseMoveStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location)
Return a string for display while the user is moving the mouse over a component. |
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. |
void |
prepareResizeComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
Perform a requested resize on a child. |
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, getContextMenuItems, getEffects, getKey, getSelectedSiblings, getToolbarPrefix, handleEvent, layoutChanged, lessThan, move, 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 |
Constructor Detail |
public BorderLayoutAssistant()
Method Detail |
public final java.lang.String getConstraintsType()
getConstraintsType
in interface LayoutAssistant
getConstraintsType
in class BasicLayoutAssistant
public final java.beans.PropertyEditor getPropertyEditor()
getPropertyEditor
in interface LayoutAssistant
getPropertyEditor
in class BasicLayoutAssistant
public final Explorer getConstraintsEditor(Context context)
LayoutAssistant
getConstraintsEditor
in interface LayoutAssistant
getConstraintsEditor
in class BasicLayoutAssistant
context
- the Context describing the selection to be edited.
public final void prepareChangeLayout(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
LayoutAssistant
prepareChangeLayout
in interface LayoutAssistant
prepareChangeLayout
in class BasicLayoutAssistant
parent
- the ModelNode for the container that has changed.public final void prepareMoveComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location, java.awt.Point offset)
LayoutAssistant
prepareMoveComponent
in interface LayoutAssistant
prepareMoveComponent
in class BasicLayoutAssistant
node
- the ModelNode that has moved.toNode
- ModelNode receiving the node.location
- the new location.offset
- the mouse down position relative to the node.public final 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)
LayoutAssistant
prepareAddComponent
in interface LayoutAssistant
prepareAddComponent
in class BasicLayoutAssistant
node
- the node being added.toNode
- ModelNode receiving the node.location
- the location in the parent.offset
- the mouse down position relative to the node.size
- the size of the component.public final 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)
LayoutAssistant
constrainMove
in interface LayoutAssistant
constrainMove
in class BasicLayoutAssistant
node
- node being manipulated.toNode
- parent of node being manipulated.mousePos
- current mouse position relative to toNode.mouseOffset
- mouse position relative to node at beginning of move.newPos
- output parameter for receiving constrained drop location.newSize
- output parameter for receiving constrained drop size.public final java.lang.String prepareAddStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location, java.awt.Dimension size)
LayoutAssistant
prepareAddStatus
in interface LayoutAssistant
prepareAddStatus
in class BasicLayoutAssistant
node
- the node about to be added.toNode
- the parent that the node will be added to.location
- new Point relative to parent's upper left corner.size
- the size of the new node.
public final java.lang.String prepareMouseMoveStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location)
LayoutAssistant
prepareMouseMoveStatus
in interface LayoutAssistant
prepareMouseMoveStatus
in class BasicLayoutAssistant
node
- the node that the mouse is over.toNode
- the parent of the node that the mouse is over.location
- Point relative to parent's upper left corner.
public final java.lang.String prepareResizeStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, java.awt.Point location, java.awt.Dimension size)
LayoutAssistant
prepareResizeStatus
in interface LayoutAssistant
prepareResizeStatus
in class BasicLayoutAssistant
node
- the node being resized.location
- new Point relative to parent's upper left corner.size
- the size of the new node.
public final void prepareResizeComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
LayoutAssistant
prepareResizeComponent
in interface LayoutAssistant
prepareResizeComponent
in class BasicLayoutAssistant
node
- the ModelNode that is being re-sized.nib
- the SelectNib that is being manipulated.
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.