com.swfm.mica.view
Class MiDrawingVisibilityToolBar

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.widgets.MiWidget
                      extended bycom.swfm.mica.widgets.MiToolBar
                          extended bycom.swfm.mica.view.MiDrawingVisibilityToolBar
All Implemented Interfaces:
MiiActionTypes, MiiAttributeTypes, MiiCommandHandler, MiiCommandNames, MiiCopyable, MiiDragAndDropParticipant, MiiEventTypes, MiiGeneralCommandWidgetSpecificationProperties, MiiLayout, MiiNames, MiiOrientablePart, MiiPropertyChangeHandler, MiiPropertyTypes, MiiTypes

public class MiDrawingVisibilityToolBar
extends MiToolBar
implements MiiCommandNames, MiiPropertyChangeHandler

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static java.lang.String DISABLE_GRID_PTS_COMMAND_NAME
           
static java.lang.String DISPLAY_ANNO_PTS_COMMAND_NAME
           
static java.lang.String DISPLAY_ANNO_PTS_DISABLED_STATUS_MSG
           
static java.lang.String DISPLAY_ANNO_PTS_STATUS_MSG
           
static java.lang.String DISPLAY_CONN_PTS_COMMAND_NAME
           
static java.lang.String DISPLAY_CONN_PTS_DISABLED_STATUS_MSG
           
static java.lang.String DISPLAY_CONN_PTS_STATUS_MSG
           
static java.lang.String DISPLAY_GRID_PTS_COMMAND_NAME
           
static java.lang.String DISPLAY_GRID_PTS_DISABLED_STATUS_MSG
           
static java.lang.String DISPLAY_GRID_PTS_STATUS_MSG
           
static java.lang.String DISPLAY_PAGE_COMMAND_NAME
           
static java.lang.String DISPLAY_PAGE_DISABLED_STATUS_MSG
           
static java.lang.String DISPLAY_PAGE_STATUS_MSG
           
static java.lang.String DISPLAY_RULERS_COMMAND_NAME
           
static java.lang.String DISPLAY_RULERS_DISABLED_STATUS_MSG
           
static java.lang.String DISPLAY_RULERS_STATUS_MSG
           
static java.lang.String ENABLE_GRID_PTS_COMMAND_NAME
           
static java.lang.String ENABLE_GRID_PTS_DISABLED_STATUS_MSG
           
static java.lang.String ENABLE_GRID_PTS_STATUS_MSG
           
static java.lang.String HIDE_ANNO_PTS_COMMAND_NAME
           
static java.lang.String HIDE_CONN_PTS_COMMAND_NAME
           
static java.lang.String HIDE_GRID_PTS_COMMAND_NAME
           
static java.lang.String HIDE_PAGE_COMMAND_NAME
           
static java.lang.String HIDE_RULERS_COMMAND_NAME
           
static java.lang.String Mi_ANNOTATION_POINT_VISIBILITY_CHANGED_CMD_NAME
           
static java.lang.String Mi_CONNECTION_POINT_VISIBILITY_CHANGED_CMD_NAME
           
static int Mi_GRID_HIDDEN_ACTION
           
static int Mi_GRID_HIDDEN_AND_DISABLED_ACTION
           
static int Mi_GRID_SHOWN_ACTION
           
static int Mi_GRID_SHOWN_AND_ENABLED_ACTION
           
static java.lang.String Mi_MANAGED_POINTS_ATTRIBUTE_DIALOG_CHANGED_CMD_NAME
           
static int Mi_PAGE_HIDDEN_ACTION
           
static int Mi_PAGE_SHOWN_ACTION
           
static int Mi_RULERS_HIDDEN_ACTION
           
static int Mi_RULERS_SHOWN_ACTION
           
static java.lang.String RULERS_VISIBILITY_CHANGED_CMD_NAME
           
                         
Constructor Summary
MiDrawingVisibilityToolBar(MiEditor editor, MiiCommandManager manager)
           
 
Method Summary
 MiPart getAnnoPointToggleButton()
           
 MiPart getConnPointToggleButton()
           
 MiPart getGridToggleButton()
          public void setDrawingGrid(MiDrawingGrid drawingGrid) { this.drawingGrid = drawingGrid; if (drawingGrid != null) { gridVisibilityToggleButton.setVisible(true); drawingGrid.appendCommandHandler(this, GRID_VISIBILITY_CHANGED_CMD_NAME, Mi_VISIBLE_ACTION); gridToggleButton.select(drawingGrid.isVisible()); } else { gridToggleButton.setVisible(false); } } public MiDrawingGrid getDrawingGrid() { return(drawingGrid); }
 MiRulerBox getRulerBox()
           
 MiPart getRulerToggleButton()
           
 void processCommand(java.lang.String cmd)
          Process the given command.
 void processPropertyChange(MiPropertyChange event)
          Process the change of a property of this editor's model (which comprises the preferences).
 void setEnabledButtons(boolean pageVisibleToggleButtonFlag, boolean gridVisibilityToggleButtonFlag, boolean gridVisibleAndEnabledToggleButtonFlag)
           
 void setManagedPointsAttributesDialog(MiManagedPointsAttributesDialog dialog)
           
 void setPageManager(MiPageManager pageManager)
           
 void setRulerBox(MiRulerBox rulerBox)
           
 void setToolBarManager(MiDrawingToolBarManager manager)
           
 
Methods inherited from class com.swfm.mica.widgets.MiToolBar
appendBooleanToolItem, appendSpacer, appendToolItem, appendToolItem, copy, cycleOrientation, endRadioButtonSection, getButtonStyle, getCommandManager, getCommandOfToolItem, getIndexOfToolItemWithCommand, getOrientation, getPropertyDescriptions, getPropertyValue, getRadioStateEnforcer, getTargetOfTargetableToolItems, getToolItemWithCommand, insertToolItem, isOrientationFixed, isSpacer, makeItem, makeSpacer, removeAllToolItemsWithCommandsExcept, removeToolItem, setButtonStyle, setHelpMessages, setOrientation, setOrientationFixed, setPropertyValue, setSpacerWidth, setTargetOfTargetableToolItems, setToolItemImageSizes, startRadioButtonSection, startRadioButtonSection
 
Methods inherited from class com.swfm.mica.widgets.MiWidget
doExport, getContents, getEnterKeyFocusAttributes, getEnterKeyFocusBackgroundColor, getEnterKeyFocusBorderLook, getEnterKeyFocusColor, getEnterKeyFocusStatusHelp, getInSensitiveAttributes, getInSensitiveBackgroundColor, getInSensitiveBorderLook, getInSensitiveColor, getInSensitiveStatusHelp, getKeyboardFocusAttributes, getKeyboardFocusBackgroundColor, getKeyboardFocusBorderLook, getKeyboardFocusColor, getKeyboardFocusStatusHelp, getMouseFocusAttributes, getMouseFocusBackgroundColor, getMouseFocusBorderLook, getMouseFocusColor, getMouseFocusStatusHelp, getNormalAttributes, getNormalBackgroundColor, getNormalBorderLook, getNormalColor, getNormalStatusHelp, getRadioStateEnforcer, getSelectedAttributes, getSelectedBackgroundColor, getSelectedBorderLook, getSelectedColor, getSelectedStatusHelp, getToolkit, getValue, getWidgetAttributes, isAutoAttributesEnabled, isDesignTime, select, setAttributes, setAutoAttributesEnabled, setContents, setCurrentBackgroundColor, setCurrentColor, setEnterKeyFocus, setEnterKeyFocusAttributes, setEnterKeyFocusBackgroundColor, setEnterKeyFocusBorderLook, setEnterKeyFocusColor, setEnterKeyFocusStatusHelpMessage, setInSensitiveAttributes, setInSensitiveBackgroundColor, setInSensitiveBorderLook, setInSensitiveColor, setInSensitiveStatusHelpMessage, setKeyboardFocus, setKeyboardFocusAttributes, setKeyboardFocusBackgroundColor, setKeyboardFocusBorderLook, setKeyboardFocusColor, setKeyboardFocusStatusHelpMessage, setMouseFocus, setMouseFocusAttributes, setMouseFocusBackgroundColor, setMouseFocusBorderLook, setMouseFocusColor, setMouseFocusStatusHelpMessage, setNormalAttributes, setNormalBackgroundColor, setNormalBorderLook, setNormalColor, setNormalStatusHelpMessage, setPropertyValues, setRadioStateEnforcer, setSelectedAttributes, setSelectedBackgroundColor, setSelectedBorderLook, setSelectedColor, setSelectedStatusHelpMessage, setSensitive, setValue, setWidgetAttributes, setWidgetAttributes
 
Methods inherited from class com.swfm.mica.core.MiVisibleContainer
calcMinimumSize, calcPreferredSize, getContainerLayoutSpec, getDisplaysFocusBorder, getInnerBounds, getIntersectionWithLine, getOKToDrawOutsideInnerBounds, getShadowShape, getShape, getTotalMargins, getVisibleContainerAutomaticLayoutEnabled, invalidateArea, isShapeShrinkToFitEnabled, pick, setContainerLayoutSpec, setDisplaysFocusBorder, setMargins, setOKToDrawOutsideInnerBounds, 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, 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, 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, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPickable, setPickableWhenTransparent, setPoint, setPoint, setPreferredSize, setPrintable, setPrototypeManipulator, setResource, setSavable, setSelectable, setSelectionGraphics, 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_RULERS_SHOWN_ACTION

public static final int Mi_RULERS_SHOWN_ACTION

Mi_RULERS_HIDDEN_ACTION

public static final int Mi_RULERS_HIDDEN_ACTION

Mi_GRID_SHOWN_AND_ENABLED_ACTION

public static final int Mi_GRID_SHOWN_AND_ENABLED_ACTION

Mi_GRID_HIDDEN_AND_DISABLED_ACTION

public static final int Mi_GRID_HIDDEN_AND_DISABLED_ACTION

Mi_GRID_SHOWN_ACTION

public static final int Mi_GRID_SHOWN_ACTION

Mi_GRID_HIDDEN_ACTION

public static final int Mi_GRID_HIDDEN_ACTION

Mi_PAGE_SHOWN_ACTION

public static final int Mi_PAGE_SHOWN_ACTION

Mi_PAGE_HIDDEN_ACTION

public static final int Mi_PAGE_HIDDEN_ACTION

DISPLAY_RULERS_STATUS_MSG

public static java.lang.String DISPLAY_RULERS_STATUS_MSG

DISPLAY_RULERS_DISABLED_STATUS_MSG

public static java.lang.String DISPLAY_RULERS_DISABLED_STATUS_MSG

DISPLAY_PAGE_STATUS_MSG

public static java.lang.String DISPLAY_PAGE_STATUS_MSG

DISPLAY_PAGE_DISABLED_STATUS_MSG

public static java.lang.String DISPLAY_PAGE_DISABLED_STATUS_MSG

DISPLAY_GRID_PTS_STATUS_MSG

public static java.lang.String DISPLAY_GRID_PTS_STATUS_MSG

DISPLAY_GRID_PTS_DISABLED_STATUS_MSG

public static java.lang.String DISPLAY_GRID_PTS_DISABLED_STATUS_MSG

ENABLE_GRID_PTS_STATUS_MSG

public static java.lang.String ENABLE_GRID_PTS_STATUS_MSG

ENABLE_GRID_PTS_DISABLED_STATUS_MSG

public static java.lang.String ENABLE_GRID_PTS_DISABLED_STATUS_MSG

DISPLAY_CONN_PTS_STATUS_MSG

public static java.lang.String DISPLAY_CONN_PTS_STATUS_MSG

DISPLAY_CONN_PTS_DISABLED_STATUS_MSG

public static java.lang.String DISPLAY_CONN_PTS_DISABLED_STATUS_MSG

DISPLAY_ANNO_PTS_STATUS_MSG

public static java.lang.String DISPLAY_ANNO_PTS_STATUS_MSG

DISPLAY_ANNO_PTS_DISABLED_STATUS_MSG

public static java.lang.String DISPLAY_ANNO_PTS_DISABLED_STATUS_MSG

DISPLAY_RULERS_COMMAND_NAME

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

HIDE_RULERS_COMMAND_NAME

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

DISPLAY_PAGE_COMMAND_NAME

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

HIDE_PAGE_COMMAND_NAME

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

DISPLAY_GRID_PTS_COMMAND_NAME

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

HIDE_GRID_PTS_COMMAND_NAME

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

ENABLE_GRID_PTS_COMMAND_NAME

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

DISABLE_GRID_PTS_COMMAND_NAME

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

DISPLAY_CONN_PTS_COMMAND_NAME

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

HIDE_CONN_PTS_COMMAND_NAME

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

DISPLAY_ANNO_PTS_COMMAND_NAME

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

HIDE_ANNO_PTS_COMMAND_NAME

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

RULERS_VISIBILITY_CHANGED_CMD_NAME

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

Mi_CONNECTION_POINT_VISIBILITY_CHANGED_CMD_NAME

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

Mi_ANNOTATION_POINT_VISIBILITY_CHANGED_CMD_NAME

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

Mi_MANAGED_POINTS_ATTRIBUTE_DIALOG_CHANGED_CMD_NAME

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

MiDrawingVisibilityToolBar

public MiDrawingVisibilityToolBar(MiEditor editor,
                                  MiiCommandManager manager)
Method Detail

setPageManager

public void setPageManager(MiPageManager pageManager)

setEnabledButtons

public void setEnabledButtons(boolean pageVisibleToggleButtonFlag,
                              boolean gridVisibilityToggleButtonFlag,
                              boolean gridVisibleAndEnabledToggleButtonFlag)

getGridToggleButton

public MiPart getGridToggleButton()
public void setDrawingGrid(MiDrawingGrid drawingGrid) { this.drawingGrid = drawingGrid; if (drawingGrid != null) { gridVisibilityToggleButton.setVisible(true); drawingGrid.appendCommandHandler(this, GRID_VISIBILITY_CHANGED_CMD_NAME, Mi_VISIBLE_ACTION); gridToggleButton.select(drawingGrid.isVisible()); } else { gridToggleButton.setVisible(false); } } public MiDrawingGrid getDrawingGrid() { return(drawingGrid); }


getRulerToggleButton

public MiPart getRulerToggleButton()

getConnPointToggleButton

public MiPart getConnPointToggleButton()

getAnnoPointToggleButton

public MiPart getAnnoPointToggleButton()

setRulerBox

public void setRulerBox(MiRulerBox rulerBox)

getRulerBox

public MiRulerBox getRulerBox()

setToolBarManager

public void setToolBarManager(MiDrawingToolBarManager manager)

setManagedPointsAttributesDialog

public void setManagedPointsAttributesDialog(MiManagedPointsAttributesDialog dialog)

processPropertyChange

public void processPropertyChange(MiPropertyChange event)
Process the change of a property of this editor's model (which comprises the preferences).

Specified by:
processPropertyChange in interface MiiPropertyChangeHandler
Parameters:
event - the change event

processCommand

public void processCommand(java.lang.String cmd)
Description copied from class: MiToolBar
Process the given command. These commands are usually generated by the background menu of this toolbar and support the setting of the various button styles. Valid commands are: Mi_SHOW_LABELS_COMMAND_NAME Mi_HIDE_LABELS_COMMAND_NAME Mi_SHOW_BORDERS_COMMAND_NAME Mi_HIDE_BORDERS_COMMAND_NAME

Specified by:
processCommand in interface MiiCommandHandler
Overrides:
processCommand in class MiToolBar
Parameters:
cmd - the command to process