com.swfm.mica.editors
Class MiDrawingGrid

java.lang.Object
  extended bycom.swfm.mica.core.MiPart
      extended bycom.swfm.mica.editors.MiDrawingGrid
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiAttributeTypes, MiiDragAndDropParticipant, MiiEventTypes, MiiNames, MiiPropertyTypes, MiiTypes

public class MiDrawingGrid
extends MiPart
implements MiiActionHandler, MiiActionTypes

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

Field Summary
static java.lang.String Mi_GRID_COLOR_NAME
           
static java.lang.String Mi_GRID_COLOR_NAME_NSP
           
static java.lang.String Mi_GRID_CROSSHAIRS_LOOK_NAME
           
static java.lang.String Mi_GRID_DASHED_LINES_LOOK_NAME
           
static java.lang.String Mi_GRID_DOTTED_LINES_LOOK_NAME
           
static java.lang.String Mi_GRID_H_SNAP_STRENGTH_NAME
           
static java.lang.String Mi_GRID_H_SNAP_STRENGTH_NAME_NSP
           
static java.lang.String Mi_GRID_H_SPACING_NAME
           
static java.lang.String Mi_GRID_H_SPACING_NAME_NSP
           
static java.lang.String Mi_GRID_LINES_LOOK_NAME
           
static java.lang.String Mi_GRID_LOOK_NAME
           
static java.lang.String Mi_GRID_LOOK_NAME_NSP
           
static java.lang.String Mi_GRID_LOOK_SPACING_MAJOR_MULTIPLE_NAME
           
static java.lang.String Mi_GRID_LOOK_SPACING_MAJOR_MULTIPLE_NAME_NSP
           
static java.lang.String Mi_GRID_LOOK_SPACING_MINOR_MULTIPLE_NAME
           
static java.lang.String Mi_GRID_LOOK_SPACING_MINOR_MULTIPLE_NAME_NSP
           
static java.lang.String Mi_GRID_MAJOR_GRID_LOOK_SIZE_NAME_NSP
           
static java.lang.String Mi_GRID_MIN_VISIBLE_SPACING_NAME
           
static java.lang.String Mi_GRID_MIN_VISIBLE_SPACING_NAME_NSP
           
static java.lang.String Mi_GRID_MINOR_GRID_FILL_IN_POINTS_NAME_NSP
           
static java.lang.String Mi_GRID_MINOR_GRID_LOOK_COLOR_NAME_NSP
           
static java.lang.String Mi_GRID_NONE_LOOK_NAME
           
static java.lang.String Mi_GRID_POINTS_LOOK_NAME
           
static java.lang.String Mi_GRID_PRINTABLE_NAME
           
static java.lang.String Mi_GRID_PRINTABLE_NAME_NSP
           
static java.lang.String Mi_GRID_SQUARES_LOOK_NAME
           
static java.lang.String Mi_GRID_V_SNAP_STRENGTH_NAME
           
static java.lang.String Mi_GRID_V_SNAP_STRENGTH_NAME_NSP
           
static java.lang.String Mi_GRID_V_SPACING_NAME
           
static java.lang.String Mi_GRID_V_SPACING_NAME_NSP
           
static java.lang.String Mi_GRID_VISIBLE_NAME
           
static java.lang.String Mi_GRID_VISIBLE_NAME_NSP
           
                 
Constructor Summary
MiDrawingGrid(MiPart paper)
           
 
Method Summary
 void assignCopyTo(MiDrawingGrid other)
           
 void calcMinimumSize(MiSize size)
          Gets the minimum size of this MiPart.
 void calcPreferredSize(MiSize size)
          Gets the preferred size of this MiPart.
 boolean getFillInMinorGrid()
           
 MiBounds getGridBounds(MiBounds b)
           
 MiBounds getGridLookBounds(MiBounds b)
           
 MiSize getGridSize()
           
 MiSize getGridSizeInUnits()
           
 java.lang.String getLook()
           
 double getMajorGridLookSize()
           
 int getMajorGridLookSpacingAsMultipleOfGridSpacing()
           
 MiSize getMajorGridSize()
           
 java.lang.String getMinorGridLookColor()
           
 int getMinorGridLookSpacingAsMultipleOfGridSpacing()
           
 MiSize getMinVisibleDeviceSize()
           
 MiPart getPaper()
           
 MiPropertyDescriptions getPropertyDescriptions()
          Gets the descriptions of all of the properties.
 java.lang.String getPropertyValue(java.lang.String name)
          Gets the textual value of the property with the given name.
 MiPoint getReferencePoint(MiPoint pt)
          Lower left hand corner of grid
 MiDistanceUnits getUnits()
           
 boolean processAction(MiiAction action)
          Processes the given action.
 void setFillInMinorGrid(boolean flag)
           
 void setGridSize(MiSize size)
           
 void setGridSizeInUnits(MiSize sizeInUnits)
           
 void setLook(java.lang.String style)
           
 void setMajorGridLookSize(double length)
           
 void setMajorGridLookSpacingAsMultipleOfGridSpacing(int spacing)
           
 void setMinorGridLookColor(java.lang.String name)
           
 void setMinorGridLookSpacingAsMultipleOfGridSpacing(int spacing)
          Not used for dashed, dotted or solid lines, as their pixel spacing is fixed...
 void setMinVisibleDeviceSize(MiSize size)
          public void setGridLookSpacingInUnits(MiSize spacingInUnits) { setGridLookSpacing(new MiSize( spacingInUnits.width * units.getPixelsPerUnit(), spacingInUnits.height * units.getPixelsPerUnit())); } public MiSize getGridLookSpacingInUnits() { MiSize gridLookSpacingInUnits = new MiSize(); MiSize gridLookSpacing = getGridLookSpacing(); gridLookSpacingInUnits.setSize( gridLookSpacing.width / units.getPixelsPerUnit(), gridLookSpacing.height / units.getPixelsPerUnit()); return(gridLookSpacingInUnits); } public void setGridLookSpacing(MiSize spacing) { gridLookSpacing = new MiSize(spacing); invalidateArea(); } public MiSize getGridLookSpacing() { if (gridLookSpacing != null) { return(new MiSize(gridLookSpacing)); } return(new MiSize(gridSize)); }
 void setPaper(MiPart part)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
          Sets the property with the given name to the given value.
 void setUnits(MiDistanceUnits units)
           
 java.lang.String toString()
          Returns information about this MiPart.
 
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, appendPart, appendPoint, appendPoint, applyCustomLookAndFeel, containsItem, containsOpaqueRectangles, containsPart, copy, copy, deepCopy, deleteAllConnections, deleteAllParts, deleteSelf, dispatchAction, dispatchAction, dispatchAction, dispatchActionRequest, dispatchActionRequest, dispatchActionRequest, dispatchEvent, doExport, doImport, 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, getIndexOfPart, getInnerBounds, getInnerBounds, getIntersectionWithLine, 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, getNumberOfParts, getNumberOfPoints, getNumberOfResources, getOutgoingInvalidLayoutNotificationsEnabled, getPart, getPart, getPoint, getPoint, getPointEntryAngle, getPointExitAngle, getPointX, getPointY, getPreferredSize, getPrototypeManipulator, getRelativeLocation, getResource, getResourceName, getRootWindow, getRotation, getSelectionGraphics, getShadowColor, getShadowDirection, getShadowLength, getShadowRenderer, getShadowShape, getShadowStyle, getSize, getSnapPointManager, getStatusHelp, getSupportedExportFormats, getSupportedImportFormats, getThisOrPartHasInvalidArea, getToolHintHelp, getTotalNumberOfPartsCreated, getTransform, getTransparency, getValidatingLayout, getVisibilityAnimator, getWhiteColor, getWidth, getWriteMode, getXmax, getXmin, getXorColor, getYmax, getYmin, hasAttachment, hasAttribute, hasEnterKeyFocus, hasEventHandler, hasEventHandlers, hasFixedAspectRatio, hasFixedHeight, hasFixedWidth, hasKeyboardFocus, hasMouseFocus, hasOverriddenMinimumSize, hasOverriddenPreferredSize, hasProperty, hasTotallyInvalidArea, hasValidCachedEventHandlerInfo, hasValidLayout, insertActionHandler, insertActionHandler, insertActionHandler, insertConnection, insertContainer, insertEventHandler, insertItem, insertPart, insertPoint, insertPoint, invalidateArea, invalidateArea, invalidateLayout, isAcceptingEnterKeyFocus, isAcceptingKeyboardFocus, isAcceptingMouseFocus, isAcceptingTabKeys, isActionDispatchingEnabled, isConnectable, isConnectedTo, isContainerOf, isContainerOf, isContainerOfWithAttachments, 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, layoutParts, makeImageFromArea, makeLayoutManipulator, makeManipulator, optimizedInvalidateArea, optimizedInvalidateDrawBoundsArea, overrideAttributes, overrideEventHandlingDisabledByContainer, packLayout, pick, pickDeepList, pickDeepListContents, pickObject, preRenderToDoubleBuffer, refreshBounds, refreshLookAndFeel, refreshLookAndFeel, removeActionHandler, removeActionHandler, removeActionHandlers, removeAllActionHandlers, removeAllAttachments, removeAllConnections, removeAllEventHandlers, removeAllItems, removeAllManipulators, removeAllParts, removeAttachment, removeAttachment, removeCommandHandler, removeCommandHandler, removeConnection, removeConnection, removeContainer, removeContainer, removeEventHandler, removeFromAllContainers, removeItem, removeItem, removePart, removePart, 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, setAttributes, 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, setMargins, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumPickAreaSize, setMinimumSize, setMinimumWidth, setMouseFocus, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPart, 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
 

Field Detail

Mi_GRID_LOOK_SPACING_MAJOR_MULTIPLE_NAME

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

Mi_GRID_LOOK_SPACING_MINOR_MULTIPLE_NAME

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

Mi_GRID_H_SPACING_NAME

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

Mi_GRID_V_SPACING_NAME

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

Mi_GRID_H_SNAP_STRENGTH_NAME

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

Mi_GRID_V_SNAP_STRENGTH_NAME

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

Mi_GRID_COLOR_NAME

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

Mi_GRID_LOOK_NAME

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

Mi_GRID_VISIBLE_NAME

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

Mi_GRID_PRINTABLE_NAME

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

Mi_GRID_MIN_VISIBLE_SPACING_NAME

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

Mi_GRID_LOOK_SPACING_MAJOR_MULTIPLE_NAME_NSP

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

Mi_GRID_LOOK_SPACING_MINOR_MULTIPLE_NAME_NSP

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

Mi_GRID_H_SPACING_NAME_NSP

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

Mi_GRID_V_SPACING_NAME_NSP

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

Mi_GRID_H_SNAP_STRENGTH_NAME_NSP

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

Mi_GRID_V_SNAP_STRENGTH_NAME_NSP

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

Mi_GRID_COLOR_NAME_NSP

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

Mi_GRID_LOOK_NAME_NSP

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

Mi_GRID_VISIBLE_NAME_NSP

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

Mi_GRID_PRINTABLE_NAME_NSP

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

Mi_GRID_MIN_VISIBLE_SPACING_NAME_NSP

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

Mi_GRID_MINOR_GRID_LOOK_COLOR_NAME_NSP

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

Mi_GRID_MINOR_GRID_FILL_IN_POINTS_NAME_NSP

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

Mi_GRID_MAJOR_GRID_LOOK_SIZE_NAME_NSP

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

Mi_GRID_NONE_LOOK_NAME

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

Mi_GRID_POINTS_LOOK_NAME

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

Mi_GRID_CROSSHAIRS_LOOK_NAME

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

Mi_GRID_LINES_LOOK_NAME

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

Mi_GRID_DOTTED_LINES_LOOK_NAME

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

Mi_GRID_DASHED_LINES_LOOK_NAME

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

Mi_GRID_SQUARES_LOOK_NAME

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

MiDrawingGrid

public MiDrawingGrid(MiPart paper)
Method Detail

assignCopyTo

public void assignCopyTo(MiDrawingGrid other)

setUnits

public void setUnits(MiDistanceUnits units)

getUnits

public MiDistanceUnits getUnits()

setPaper

public void setPaper(MiPart part)

getPaper

public MiPart getPaper()

setLook

public void setLook(java.lang.String style)

getLook

public java.lang.String getLook()

setGridSizeInUnits

public void setGridSizeInUnits(MiSize sizeInUnits)

getGridSizeInUnits

public MiSize getGridSizeInUnits()

setGridSize

public void setGridSize(MiSize size)

getGridSize

public MiSize getGridSize()

getMajorGridSize

public MiSize getMajorGridSize()

setMajorGridLookSpacingAsMultipleOfGridSpacing

public void setMajorGridLookSpacingAsMultipleOfGridSpacing(int spacing)

getMajorGridLookSpacingAsMultipleOfGridSpacing

public int getMajorGridLookSpacingAsMultipleOfGridSpacing()

setMajorGridLookSize

public void setMajorGridLookSize(double length)

getMajorGridLookSize

public double getMajorGridLookSize()

setMinorGridLookSpacingAsMultipleOfGridSpacing

public void setMinorGridLookSpacingAsMultipleOfGridSpacing(int spacing)
Not used for dashed, dotted or solid lines, as their pixel spacing is fixed...


getMinorGridLookSpacingAsMultipleOfGridSpacing

public int getMinorGridLookSpacingAsMultipleOfGridSpacing()

setMinorGridLookColor

public void setMinorGridLookColor(java.lang.String name)

getMinorGridLookColor

public java.lang.String getMinorGridLookColor()

setFillInMinorGrid

public void setFillInMinorGrid(boolean flag)

getFillInMinorGrid

public boolean getFillInMinorGrid()

setMinVisibleDeviceSize

public void setMinVisibleDeviceSize(MiSize size)
public void setGridLookSpacingInUnits(MiSize spacingInUnits) { setGridLookSpacing(new MiSize( spacingInUnits.width * units.getPixelsPerUnit(), spacingInUnits.height * units.getPixelsPerUnit())); } public MiSize getGridLookSpacingInUnits() { MiSize gridLookSpacingInUnits = new MiSize(); MiSize gridLookSpacing = getGridLookSpacing(); gridLookSpacingInUnits.setSize( gridLookSpacing.width / units.getPixelsPerUnit(), gridLookSpacing.height / units.getPixelsPerUnit()); return(gridLookSpacingInUnits); } public void setGridLookSpacing(MiSize spacing) { gridLookSpacing = new MiSize(spacing); invalidateArea(); } public MiSize getGridLookSpacing() { if (gridLookSpacing != null) { return(new MiSize(gridLookSpacing)); } return(new MiSize(gridSize)); }


getMinVisibleDeviceSize

public MiSize getMinVisibleDeviceSize()

getReferencePoint

public MiPoint getReferencePoint(MiPoint pt)
Lower left hand corner of grid


getGridBounds

public MiBounds getGridBounds(MiBounds b)

getGridLookBounds

public MiBounds getGridLookBounds(MiBounds b)

setPropertyValue

public void setPropertyValue(java.lang.String name,
                             java.lang.String value)
Sets the property with the given name to the given value.

Overrides:
setPropertyValue in class MiPart
Parameters:
name - the name of an property
value - the value of the property

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String name)
Gets the textual value of the property with the given name. If the value is null then MiiTypes.Mi_NULL_VALUE_NAME is returned.

Overrides:
getPropertyValue in class MiPart
Parameters:
name - the name of a property
Returns:
the string value of the property

getPropertyDescriptions

public MiPropertyDescriptions getPropertyDescriptions()
Gets the descriptions of all of the properties. These can be used to see if an property is different from the default value or if a proposed value is valid or to get a list of all of the valid values of a property.

Overrides:
getPropertyDescriptions in class MiPart
Returns:
the list of property descriptions

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

calcMinimumSize

public void calcMinimumSize(MiSize size)
Description copied from class: MiPart
Gets the minimum size of this MiPart. Override this, if desired, as it implements the core functionality. The default behavior is to return the minimum width and/or height, or, if not specified, a zero size.

Overrides:
calcMinimumSize in class MiPart
Parameters:
size - the (returned) minimum size

calcPreferredSize

public void calcPreferredSize(MiSize size)
Description copied from class: MiPart
Gets the preferred size of this MiPart. Override this, if desired, as it implements the core functionality. The default behavior is to return the current bounds, or, if reversed, a zero size.

Overrides:
calcPreferredSize in class MiPart
Parameters:
size - the (returned) preferred size

toString

public java.lang.String toString()
Description copied from class: MiPart
Returns information about this MiPart.

Overrides:
toString in class MiPart
Returns:
textual information (class name + unique numerical id + name)