|
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.PaneLayoutAssistant
Field Summary |
Fields inherited from interface oracle.jdevimpl.uieditor.LayoutAssistant |
TOOLBAR_ITEM, TOOLBAR_ITEM_COUNT |
Constructor Summary | |
PaneLayoutAssistant()
|
Method Summary | |
void |
cleanupRemovedComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
A child of this node's container has been removed. |
int |
compare(java.lang.Object first,
java.lang.Object second)
|
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. |
void |
prepareSelectComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas)
An immedate child node has been selected. |
java.lang.String |
resizeAction(java.awt.Point newNibLocation,
oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas,
oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
Return a status message string that will be displayed while the user is dragging the nib. |
Methods inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant |
calcBestZ, changeSize, changeZ, constrainAdd, getContextMenuItems, getEffects, getKey, getSelectedSiblings, getToolbarPrefix, handleEvent, layoutChanged, lessThan, move, prepareSelectDescendant, raiseChildToView, removeBoundsSetting, sort, sortedNodes, update, usesReverseZOrder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Constructor Detail |
public PaneLayoutAssistant()
Method Detail |
public java.lang.String getConstraintsType()
getConstraintsType
in interface LayoutAssistant
getConstraintsType
in class BasicLayoutAssistant
public java.beans.PropertyEditor getPropertyEditor()
getPropertyEditor
in interface LayoutAssistant
getPropertyEditor
in class BasicLayoutAssistant
public Explorer getConstraintsEditor(Context context)
LayoutAssistant
getConstraintsEditor
in interface LayoutAssistant
getConstraintsEditor
in class BasicLayoutAssistant
context
- the Context describing the selection to be edited.
public java.lang.String resizeAction(java.awt.Point newNibLocation, oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas, oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
LayoutAssistant
resizeAction
in interface LayoutAssistant
resizeAction
in class BasicLayoutAssistant
newNibLocation
- new position of nib.
public void prepareSelectComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas)
LayoutAssistant
prepareSelectComponent
in interface LayoutAssistant
prepareSelectComponent
in class BasicLayoutAssistant
node
- the selected node.canvas
- provides access back to the class that owns the nibs.LayoutAssistant.prepareSelectDescendant(oracle.jdevimpl.uieditor.uicanvas.ModelNode, oracle.jdevimpl.uieditor.uicanvas.ModelNode)
public 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.public 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 void cleanupRemovedComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
LayoutAssistant
cleanupRemovedComponent
in interface LayoutAssistant
cleanupRemovedComponent
in class BasicLayoutAssistant
parent
- The node that had a child removed.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)
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 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 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 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 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 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 int compare(java.lang.Object first, java.lang.Object second)
compare
in interface java.util.Comparator
|
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.