com.swfm.mica.view
Class MiShapeAttributesPanel

java.lang.Object
  extended bycom.swfm.mica.core.MiPart
      extended bycom.swfm.mica.core.MiContainer
          extended bycom.swfm.mica.layouts.MiLayout
              extended bycom.swfm.mica.core.MiVisibleContainer
                  extended bycom.swfm.mica.view.MiShapeAttributesPanel
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiAttributeTypes, MiiCommandHandler, MiiCopyable, MiiDragAndDropParticipant, MiiEventTypes, MiiLayout, MiiNames, MiiPropertyTypes, MiiShapeAttributesPanel, MiiShapeInspectorPanel, MiiTypes

public class MiShapeAttributesPanel
extends MiVisibleContainer
implements MiiActionHandler, MiiActionTypes, MiiShapeAttributesPanel, MiiShapeInspectorPanel, MiiCommandHandler

//To do: check hasChanged for each Panel Conn Pts (left center, lower left, ... Behavior (dbl-click, dropped, dragged) RunTime/DesignTime + Events/Actions (use Tree List' list of all events onn left side and actions on right side get/set Attribute locks Locations x,y, width, height... aspect locks Editing interaction in PREFERENCES (dbl-click, dropped, dragged) deletable, movable, selectable, ... selected/selectable, hidden... Names (internal, user, class, ...) Add similar GraphInspector/Formatter


Field Summary
static java.lang.String HORIZONTAL_PANEL_SHAPE
           
static int Mi_BORDER_LOOK_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static int Mi_FILL_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static int Mi_LINE_ENDS_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static int Mi_LINE_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static int Mi_OBJECT_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static int Mi_SHADOW_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static int Mi_TEXT_SHAPE_ATTRIBUTES_PANEL_INDEX
           
static java.lang.String SQUARISH_PANEL_SHAPE
           
                   
Constructor Summary
MiShapeAttributesPanel()
           
MiShapeAttributesPanel(java.lang.String desiredPanelShape, int panelsToCreateMask)
           
 
Method Summary
 void appendFolderPanel(java.lang.String panelName, MiPart panel)
           
 void applyToTargetShape(MiPart target)
           
 MiAttributes getDisplayedAttributes(MiAttributes atts)
           
 MiTabbedFolder getTabbedFolder()
           
 void insertFolderPanel(java.lang.String panelName, MiPart panel, int index)
           
 boolean isSettingDisplayedAttributes()
           
 boolean processAction(MiiAction action)
          Processes the given action.
 void processCommand(java.lang.String cmd)
          Processes the given command.
 void setDisplayedAttributes(MiAttributes attributes)
           
 void setDrawingToolBarManager(MiDrawingToolBarManager drawingToolBarManager)
           
 void setTargetShape(MiPart target)
           
 
Methods inherited from class com.swfm.mica.core.MiVisibleContainer
calcMinimumSize, calcPreferredSize, copy, getContainerLayoutSpec, getDisplaysFocusBorder, getInnerBounds, getIntersectionWithLine, getOKToDrawOutsideInnerBounds, getPropertyDescriptions, getPropertyValue, getShadowShape, getShape, getTotalMargins, getVisibleContainerAutomaticLayoutEnabled, invalidateArea, isShapeShrinkToFitEnabled, pick, setAttributes, setContainerLayoutSpec, setDisplaysFocusBorder, setMargins, setOKToDrawOutsideInnerBounds, setPropertyValue, setShape, setShape, setShapeShrinkToFitEnabled, setVisibleContainerAutomaticLayoutEnabled
 
Methods inherited from class com.swfm.mica.layouts.MiLayout
determinesPreferredAndMinimumSizes, getAlleyHSpacing, getAlleyMargins, getAlleyVSpacing, getCellMargins, getCellMargins, getElementHJustification, getElementHSizing, getElementVJustification, getElementVSizing, getInsetMargins, getInsetMargins, getLastElementJustification, getTarget, getUniqueElementIndex, getUniqueElementSizing, isEnabled, isIndependantOfTargetPosition, isScalingOfPartsWhenBoundsChangesHandledDuringLayout, layoutParts, makeCopy, setAlleyHSpacing, setAlleySpacing, setAlleyVSpacing, setCellMargins, setCellMargins, setElementHJustification, setElementHSizing, setElementJustification, setElementSizing, setElementVJustification, setElementVSizing, setEnabled, setInsetMargins, setInsetMargins, setLastElementJustification, setScalingOfPartsWhenBoundsChangesHandledDuringLayout, setTarget, setUniqueElementIndex, setUniqueElementSizing, toString
 
Methods inherited from class com.swfm.mica.core.MiContainer
appendPart, containsPart, deepCopy, doImport, getIndexOfPart, getKeepConnectionsBelowNodes, getNumberOfParts, getPart, getPart, getSupportedImportFormats, hasEventHandlers, hasValidCachedEventHandlerInfo, insertPart, invalidateCachedEventHandlerInfo, isContainerOf, isContainerOf, isContainerOfWithAttachments, pickDeepListContents, pickObject, removeAllParts, removePart, removePart, setKeepConnectionsBelowNodes, setPart, translate
 
Methods inherited from class com.swfm.mica.core.MiPart
_reCalcBounds, _render, _replaceBounds, _setContainer, _setDrawManager, _setValidatingLayout, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendAttachment, appendAttachment, appendCommandHandler, appendCommandHandler, appendCommandHandler, appendConnection, appendContainer, appendEventHandler, appendItem, appendPoint, appendPoint, applyCustomLookAndFeel, containsItem, containsOpaqueRectangles, copy, deleteAllConnections, deleteAllParts, deleteSelf, dispatchAction, dispatchAction, dispatchAction, dispatchActionRequest, dispatchActionRequest, dispatchActionRequest, dispatchEvent, doExport, draw, drawNow, drawNow, flip, flip, freeAccessLock, get1DShapeStrokeBackgroundColor, get1DShapeStrokesFilled, getAccessLock, getActionHandler, getActionsGenerated, getActionsLocallyGenerated, getActionsRequestedFromParts, getAfterRenderer, getAlphaCompositeRenderMode, getAnnotationPointManager, getAssociatedParts, getAttachment, getAttachment, getAttachmentMargins, getAttachments, getAttributeLockMask, getAttributePublicMask, getAttributes, getAttributeValue, getBackgroundColor, getBackgroundImage, getBackgroundRenderer, getBackgroundTile, getBalloonHelp, getBeforeRenderer, getBlackColor, getBorderHiliteColor, getBorderHiliteWidth, getBorderLook, getBorderRenderer, getBounds, getBounds, getCenter, getCenter, getCenterOfRotation, getCenterX, getCenterY, getColor, getConnection, getConnectionPointManager, getContainer, getContainerRequestedActions, getContainingEditor, getContainingWindow, getContextCursor, getContextMenu, getContextMenu, getControlPointManager, getCustomLookAndFeels, getCustomLookAndFeels, getDarkColor, getDeepConnection, getDeepConnection, getDeepConnections, getDeeplyInvalidateAreas, getDefaultAttributes, getDialogHelp, getDoubleBuffer, getDragAndDropBehavior, getDrawBounds, getDrawManager, getEventHandler, getEventHandler, getEventHandlerWithClass, getEventHandlingDisabledByContainer, getEventHandlingEnabled, getFlipped, getFont, getFontHorizontalJustification, getFontPointSize, getFontVerticalJustification, getHasBorderHilite, getHasShadow, getHeight, getID, getIncomingInvalidLayoutNotificationsEnabled, getIndexOfItem, getInnerBounds, getInvalidAreaNotificationsEnabled, getInvalidLayoutNotificationsEnabled, getItem, getItem, getKeyFocusTraversalGroup, getLayout, getLayoutManipulator, getLightColor, getLineEndSize, getLineEndsRenderer, getLineEndsSizeFnOfLineWidth, getLineEndStyle, getLineStartSize, getLineStartStyle, getLineStyle, getLineWidth, getLocallyRequestedEventTypes, getManipulator, getMargins, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumPickAreaSize, getMinimumSize, getMinimumWidth, getName, getNumberOfActionHandlers, getNumberOfAttachments, getNumberOfConnections, getNumberOfContainers, getNumberOfDeepConnections, getNumberOfEventHandlers, getNumberOfItems, getNumberOfPoints, getNumberOfResources, getOutgoingInvalidLayoutNotificationsEnabled, getPoint, getPoint, getPointEntryAngle, getPointExitAngle, getPointX, getPointY, getPreferredSize, getPrototypeManipulator, getRelativeLocation, getResource, getResourceName, getRootWindow, getRotation, getSelectionGraphics, getShadowColor, getShadowDirection, getShadowLength, getShadowRenderer, getShadowStyle, getSize, getSnapPointManager, getStatusHelp, getSupportedExportFormats, getThisOrPartHasInvalidArea, getToolHintHelp, getTotalNumberOfPartsCreated, getTransform, getTransparency, getValidatingLayout, getVisibilityAnimator, getWhiteColor, getWidth, getWriteMode, getXmax, getXmin, getXorColor, getYmax, getYmin, hasAttachment, hasAttribute, hasEnterKeyFocus, hasEventHandler, hasFixedAspectRatio, hasFixedHeight, hasFixedWidth, hasKeyboardFocus, hasMouseFocus, hasOverriddenMinimumSize, hasOverriddenPreferredSize, hasProperty, hasTotallyInvalidArea, hasValidLayout, insertActionHandler, insertActionHandler, insertActionHandler, insertConnection, insertContainer, insertEventHandler, insertItem, insertPoint, insertPoint, invalidateArea, invalidateLayout, isAcceptingEnterKeyFocus, isAcceptingKeyboardFocus, isAcceptingMouseFocus, isAcceptingTabKeys, isActionDispatchingEnabled, isConnectable, isConnectedTo, isCopyable, isCopyableAsPartOfCopyable, isDeletable, isDoubleBuffered, isDragAndDropSource, isDragAndDropTarget, isFilled, isFontBold, isFontItalic, isFontUnderlined, isHidden, isMovable, isOpaqueRectangle, isPickable, isPickableWhenTransparent, isPrintable, isSavable, isSelectable, isSelected, isSensitive, isShowing, isSnappable, isUngroupable, isValidConnectionDestination, isValidConnectionSource, isVisible, makeImageFromArea, makeLayoutManipulator, makeManipulator, optimizedInvalidateArea, optimizedInvalidateDrawBoundsArea, overrideAttributes, overrideEventHandlingDisabledByContainer, packLayout, pickDeepList, preRenderToDoubleBuffer, refreshBounds, refreshLookAndFeel, refreshLookAndFeel, removeActionHandler, removeActionHandler, removeActionHandlers, removeAllActionHandlers, removeAllAttachments, removeAllConnections, removeAllEventHandlers, removeAllItems, removeAllManipulators, removeAttachment, removeAttachment, removeCommandHandler, removeCommandHandler, removeConnection, removeConnection, removeContainer, removeContainer, removeEventHandler, removeFromAllContainers, removeItem, removeItem, removePoint, removeResource, removeSelf, replaceDrawBounds, replaceSelf, requestEnterKeyFocus, requestKeyboardFocus, rotate, rotate, rotateTo, scale, scale, scale, select, set1DShapeStrokeBackgroundColor, set1DShapeStrokesFilled, setAcceptingEnterKeyFocus, setAcceptingKeyboardFocus, setAcceptingMouseFocus, setAcceptingTabKeys, setActionDispatchingEnabled, setAfterRenderer, setAlphaCompositeRenderMode, setAnnotationPointManager, setAttachmentDrawnAfter, setAttachmentMargins, setAttachmentsVisibility, setAttributeLockMask, setAttributePublicMask, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundRenderer, setBackgroundTile, setBalloonHelp, setBalloonHelpMessage, setBeforeRenderer, setBlackColor, setBorderHiliteColor, setBorderHiliteWidth, setBorderLook, setBorderRenderer, setBounds, setBounds, setCenter, setCenter, setCenterX, setCenterY, setColor, setColor, setConnectable, setConnectionPointManager, setContextCursor, setContextMenu, setControlPointManager, setCopyable, setCopyableAsPartOfCopyable, setCustomLookAndFeels, setCustomLookAndFeels, setDarkColor, setDeeplyInvalidateAreas, setDefaultAttributes, setDeletable, setDialogHelp, setDialogHelpMessage, setDoubleBuffer, setDoubleBuffered, setDragAndDropBehavior, setEventHandlingEnabled, setFilled, setFixedAspectRatio, setFixedHeight, setFixedWidth, setFont, setFontBold, setFontHorizontalJustification, setFontItalic, setFontPointSize, setFontUnderlined, setFontVerticalJustification, setHasBorderHilite, setHasShadow, setHeight, setHidden, setIncomingInvalidLayoutNotificationsEnabled, setInvalidAreaNotificationsEnabled, setInvalidLayoutNotificationsEnabled, setIsDragAndDropSource, setIsDragAndDropTarget, setIsOpaqueRectangle, setItem, setKeyFocusTraversalGroup, setLayout, setLightColor, setLineEndSize, setLineEndSizeFnOfLineWidth, setLineEndsRenderer, setLineEndStyle, setLineStartSize, setLineStartStyle, setLineStyle, setLineWidth, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumPickAreaSize, setMinimumSize, setMinimumWidth, setMouseFocus, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPickable, setPickableWhenTransparent, setPoint, setPoint, setPreferredSize, setPrintable, setPropertyValues, setPrototypeManipulator, setResource, setSavable, setSelectable, setSelectionGraphics, setSensitive, setShadowColor, setShadowDirection, setShadowLength, setShadowRenderer, setShadowStyle, setSize, setSize, setSnappable, setSnapPointManager, setStatusHelp, setStatusHelpMessage, setSupportedImportFormats, setToolHintHelp, setToolHintMessage, setTransparency, setTransparency, setUngroupable, setVisibilityAnimator, setVisible, setWhiteColor, setWidth, setWriteMode, setXmax, setXmin, setXorColor, setYmax, setYmin, supportsImportOfSpecificInstance, translate, translate, translatePoint, validateLayout, validatePropertyValue, waitUntilRedrawn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.swfm.mica.layouts.MiiLayout
getMinimumSize, getPreferredSize, invalidateLayout
 

Field Detail

Mi_OBJECT_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_OBJECT_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

Mi_FILL_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_FILL_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

Mi_LINE_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_LINE_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

Mi_LINE_ENDS_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_LINE_ENDS_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

Mi_SHADOW_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_SHADOW_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

Mi_BORDER_LOOK_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_BORDER_LOOK_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

Mi_TEXT_SHAPE_ATTRIBUTES_PANEL_INDEX

public static final int Mi_TEXT_SHAPE_ATTRIBUTES_PANEL_INDEX
See Also:
Constant Field Values

SQUARISH_PANEL_SHAPE

public static final java.lang.String SQUARISH_PANEL_SHAPE
See Also:
Constant Field Values

HORIZONTAL_PANEL_SHAPE

public static final java.lang.String HORIZONTAL_PANEL_SHAPE
See Also:
Constant Field Values
Constructor Detail

MiShapeAttributesPanel

public MiShapeAttributesPanel()

MiShapeAttributesPanel

public MiShapeAttributesPanel(java.lang.String desiredPanelShape,
                              int panelsToCreateMask)
Method Detail

getTabbedFolder

public MiTabbedFolder getTabbedFolder()

setDrawingToolBarManager

public void setDrawingToolBarManager(MiDrawingToolBarManager drawingToolBarManager)

appendFolderPanel

public void appendFolderPanel(java.lang.String panelName,
                              MiPart panel)

insertFolderPanel

public void insertFolderPanel(java.lang.String panelName,
                              MiPart panel,
                              int index)

setDisplayedAttributes

public void setDisplayedAttributes(MiAttributes attributes)
Specified by:
setDisplayedAttributes in interface MiiShapeAttributesPanel

isSettingDisplayedAttributes

public boolean isSettingDisplayedAttributes()

getDisplayedAttributes

public MiAttributes getDisplayedAttributes(MiAttributes atts)
Specified by:
getDisplayedAttributes in interface MiiShapeAttributesPanel

setTargetShape

public void setTargetShape(MiPart target)
Specified by:
setTargetShape in interface MiiShapeInspectorPanel

applyToTargetShape

public void applyToTargetShape(MiPart target)
Specified by:
applyToTargetShape in interface MiiShapeInspectorPanel

processAction

public boolean processAction(MiiAction action)
Description copied from interface: MiiActionHandler
Processes the given action.

Specified by:
processAction in interface MiiActionHandler
Parameters:
action - the action to process
Returns:
true if it is OK to send action to the next action handler false if it is NOT OK to send action to the next action handler

processCommand

public void processCommand(java.lang.String cmd)
Description copied from interface: MiiCommandHandler
Processes the given command.

Specified by:
processCommand in interface MiiCommandHandler