|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
oracle.jdevimpl.uieditor.assistant.NullLayoutAssistant
Field Summary | |
protected static IdeAction |
ALIGN_BOTTOM_ACTION
|
static int |
ALIGN_BOTTOM_CMD_ID
|
static javax.swing.JMenuItem |
ALIGN_BOTTOM_ITEM
|
protected static IdeAction |
ALIGN_CENTER_ACTION
|
static int |
ALIGN_CENTER_CMD_ID
|
static javax.swing.JMenuItem |
ALIGN_CENTER_ITEM
|
protected static IdeAction |
ALIGN_LEFT_ACTION
|
static int |
ALIGN_LEFT_CMD_ID
|
static javax.swing.JMenuItem |
ALIGN_LEFT_ITEM
|
static javax.swing.JMenu |
ALIGN_MENU
|
protected static IdeAction |
ALIGN_MIDDLE_ACTION
|
static int |
ALIGN_MIDDLE_CMD_ID
|
static javax.swing.JMenuItem |
ALIGN_MIDDLE_ITEM
|
protected static IdeAction |
ALIGN_RIGHT_ACTION
|
static int |
ALIGN_RIGHT_CMD_ID
|
static javax.swing.JMenuItem |
ALIGN_RIGHT_ITEM
|
protected static IdeAction |
ALIGN_TOP_ACTION
|
static int |
ALIGN_TOP_CMD_ID
|
static javax.swing.JMenuItem |
ALIGN_TOP_ITEM
|
static javax.swing.JSeparator |
ALIGN_VERT_SEPARATOR
|
protected static IdeAction |
EVEN_SPACE_HORIZ_ACTION
|
static int |
EVEN_SPACE_HORIZ_CMD_ID
|
static javax.swing.JMenuItem |
EVEN_SPACE_HORIZ_ITEM
|
static javax.swing.JSeparator |
EVEN_SPACE_SEPARATOR
|
protected static IdeAction |
EVEN_SPACE_VERT_ACTION
|
static int |
EVEN_SPACE_VERT_CMD_ID
|
static javax.swing.JMenuItem |
EVEN_SPACE_VERT_ITEM
|
protected oracle.jdevimpl.uieditor.assistant.GridEffects |
gridEffects
|
protected int |
gridSpacing
|
protected boolean |
gridVisible
|
protected static IdeAction |
SAME_SIZE_HORIZ_ACTION
|
static int |
SAME_SIZE_HORIZ_CMD_ID
|
static javax.swing.JMenuItem |
SAME_SIZE_HORIZ_ITEM
|
protected static IdeAction |
SAME_SIZE_VERT_ACTION
|
static int |
SAME_SIZE_VERT_CMD_ID
|
static javax.swing.JMenuItem |
SAME_SIZE_VERT_ITEM
|
static javax.swing.JMenu |
SIZE_AND_SPACE_MENU
|
protected boolean |
snapToGrid
|
protected boolean |
useInsets
|
Fields inherited from interface oracle.jdevimpl.uieditor.LayoutAssistant |
TOOLBAR_ITEM, TOOLBAR_ITEM_COUNT |
Constructor Summary | |
NullLayoutAssistant()
|
Method Summary | |
void |
constrainAdd(oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point mouseOrigin,
java.awt.Point mousePos,
java.awt.Point newPos,
java.awt.Dimension newSize)
Optionally modify size and position of an object being added to conform to the constraints imposed by the LayoutManager being represented. |
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. |
protected java.awt.Rectangle |
getConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
|
javax.swing.JComponent[] |
getContextMenuItems(Context context)
Get an array of JComponent for population onto a ContextMenu. |
javax.swing.JComponent |
getEffects(java.awt.Container c)
Get a JComponent whose redering provides any special effects applicable during object creation, object resize or object move for the LayoutManager being represented. |
protected java.awt.Dimension |
getPreferredSize(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
|
java.lang.String |
getToolbarPrefix()
Get the prefix to use in combination with the TOOLBAR_ITEM_COUNT and TOOLBAR_ITEM suffixes in order to fetch Toolbar related properties for this LayoutAssistant from the IDE settings. |
boolean |
handleEvent(IdeAction action,
Context context)
Respond to the given user action within the given context. |
void |
layoutChanged(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
Layout has been switched. |
protected void |
move(int id,
Context context)
|
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. |
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 newPos,
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. |
protected void |
setConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Dimension size)
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
boolean |
update(IdeAction action,
Context context)
Update the enabled state of the given action within the given context. |
protected void |
updateSettings()
|
boolean |
usesReverseZOrder()
Determine whether or not z-order is reversed. |
Methods inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant |
calcBestZ, changeSize, changeZ, cleanupRemovedComponent, getConstraintsEditor, getConstraintsType, getKey, getPropertyEditor, 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 |
Field Detail |
public static final int ALIGN_LEFT_CMD_ID
public static final int ALIGN_CENTER_CMD_ID
public static final int ALIGN_RIGHT_CMD_ID
public static final int ALIGN_TOP_CMD_ID
public static final int ALIGN_MIDDLE_CMD_ID
public static final int ALIGN_BOTTOM_CMD_ID
public static final int SAME_SIZE_HORIZ_CMD_ID
public static final int SAME_SIZE_VERT_CMD_ID
public static final int EVEN_SPACE_HORIZ_CMD_ID
public static final int EVEN_SPACE_VERT_CMD_ID
public static javax.swing.JMenu ALIGN_MENU
public static javax.swing.JMenuItem ALIGN_LEFT_ITEM
public static javax.swing.JMenuItem ALIGN_CENTER_ITEM
public static javax.swing.JMenuItem ALIGN_RIGHT_ITEM
public static javax.swing.JSeparator ALIGN_VERT_SEPARATOR
public static javax.swing.JMenuItem ALIGN_TOP_ITEM
public static javax.swing.JMenuItem ALIGN_MIDDLE_ITEM
public static javax.swing.JMenuItem ALIGN_BOTTOM_ITEM
public static javax.swing.JMenu SIZE_AND_SPACE_MENU
public static javax.swing.JMenuItem SAME_SIZE_HORIZ_ITEM
public static javax.swing.JMenuItem SAME_SIZE_VERT_ITEM
public static javax.swing.JSeparator EVEN_SPACE_SEPARATOR
public static javax.swing.JMenuItem EVEN_SPACE_HORIZ_ITEM
public static javax.swing.JMenuItem EVEN_SPACE_VERT_ITEM
protected static IdeAction ALIGN_LEFT_ACTION
protected static IdeAction ALIGN_CENTER_ACTION
protected static IdeAction ALIGN_RIGHT_ACTION
protected static IdeAction ALIGN_TOP_ACTION
protected static IdeAction ALIGN_MIDDLE_ACTION
protected static IdeAction ALIGN_BOTTOM_ACTION
protected static IdeAction EVEN_SPACE_HORIZ_ACTION
protected static IdeAction EVEN_SPACE_VERT_ACTION
protected static IdeAction SAME_SIZE_HORIZ_ACTION
protected static IdeAction SAME_SIZE_VERT_ACTION
protected oracle.jdevimpl.uieditor.assistant.GridEffects gridEffects
protected boolean snapToGrid
protected boolean gridVisible
protected int gridSpacing
protected boolean useInsets
Constructor Detail |
public NullLayoutAssistant()
Method Detail |
protected void updateSettings()
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
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
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
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
public final void constrainAdd(oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point mouseOrigin, java.awt.Point mousePos, java.awt.Point newPos, java.awt.Dimension newSize)
LayoutAssistant
constrainAdd
in interface LayoutAssistant
constrainAdd
in class BasicLayoutAssistant
public final java.lang.String resizeAction(java.awt.Point newPos, oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas, oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
LayoutAssistant
resizeAction
in interface LayoutAssistant
resizeAction
in class BasicLayoutAssistant
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
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
public final void prepareSelectComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas)
LayoutAssistant
prepareSelectComponent
in interface LayoutAssistant
prepareSelectComponent
in class BasicLayoutAssistant
public final javax.swing.JComponent[] getContextMenuItems(Context context)
LayoutAssistant
getContextMenuItems
in interface LayoutAssistant
getContextMenuItems
in class BasicLayoutAssistant
public final boolean update(IdeAction action, Context context)
LayoutAssistant
update
in interface LayoutAssistant
update
in class BasicLayoutAssistant
public final boolean handleEvent(IdeAction action, Context context)
LayoutAssistant
handleEvent
in interface LayoutAssistant
handleEvent
in class BasicLayoutAssistant
public final java.lang.String getToolbarPrefix()
LayoutAssistant
getToolbarPrefix
in interface LayoutAssistant
getToolbarPrefix
in class BasicLayoutAssistant
public final boolean usesReverseZOrder()
LayoutAssistant
usesReverseZOrder
in interface LayoutAssistant
usesReverseZOrder
in class BasicLayoutAssistant
protected void move(int id, Context context)
move
in class BasicLayoutAssistant
public void layoutChanged(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
LayoutAssistant
layoutChanged
in interface LayoutAssistant
layoutChanged
in class BasicLayoutAssistant
public final void prepareChangeLayout(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
LayoutAssistant
prepareChangeLayout
in interface LayoutAssistant
prepareChangeLayout
in class BasicLayoutAssistant
protected java.awt.Rectangle getConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
protected java.awt.Dimension getPreferredSize(oracle.jdevimpl.uieditor.uicanvas.ModelNode node)
protected void setConstraints(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location, java.awt.Dimension size)
public final javax.swing.JComponent getEffects(java.awt.Container c)
LayoutAssistant
getEffects
in interface LayoutAssistant
getEffects
in class BasicLayoutAssistant
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
|
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.