Class PackageView
- java.lang.Object
-
- com.nomagic.magicdraw.uml.MDElementImpl
-
- com.nomagic.magicdraw.uml.ElementImpl
-
- com.nomagic.magicdraw.uml.symbols.PresentationElement
-
- com.nomagic.magicdraw.uml.symbols.paths.PathConnector
-
- com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
-
- com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
- com.nomagic.magicdraw.uml.symbols.shapes.PackageView
-
- All Implemented Interfaces:
BaseElement
,com.nomagic.magicdraw.uml.CompartmentSupport
,MDElement
,ModelElementProvider
,com.nomagic.magicdraw.uml.symbols.CompartmentContainer
,com.nomagic.magicdraw.uml.symbols.CompartmentOwner
,com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
,com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
,StereotypesDisplayModeOwner
,com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider
,com.nomagic.magicdraw.uml.symbols.Wrapable
,NameOwner
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
@OpenApi public class PackageView extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds
-
Nested classes/interfaces inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.PresentationElement.SmartListenerConfigData, com.nomagic.magicdraw.uml.symbols.PresentationElement.StructureCache
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BY_NAME
private static UnmodifiableDimension
DEFAULT_SIZE
static java.util.List
HEADER_POSITION
static java.lang.String
IN_TAB
static java.util.List
INNER_ELEMENTS_SORT_MODES
private static int
MINIMUM_PACKAGE_AND_TAB_DIF
package width and tab width minimum differencestatic java.lang.String
NO_SORTING
private static int
NUMBER_OF_POINTS
Represents the number - how many points make the note view figureprivate static SmartListenerConfig
OWNED_ELEMENT_CONFIG
private static int
TAB_HEIGHT
Package view tab height constantprivate static float
TAB_WIDTH_PERCENT
Tab width percent of whole package view widthprivate UnmodifiableDimension
tabSize
Package tab size.static java.lang.String
TOP
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_IMAGE_AND_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODE_STEREOTYPES, SECONDARY_IMAGE_AND_STEREOTYPE_DISPLAY_MODES
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
CONTAINER_SHAPE_INSETS
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
BORDER_ELEMENT_MARGIN_ALL, BORDER_ELEMENT_MARGIN_BOTTOM, BORDER_ELEMENT_MARGIN_LEFT, BORDER_ELEMENT_MARGIN_LEFT_RIGHT, BORDER_ELEMENT_MARGIN_MODES, BORDER_ELEMENT_MARGIN_NONE, BORDER_ELEMENT_MARGIN_RIGHT, BORDER_ELEMENT_MARGIN_TOP, BORDER_ELEMENT_MARGIN_TOP_BOTTOM, BOTTOM_EDGE, INSIDE_EDGE_POSITION, LEFT_EDGE, NEED_AUTOSIZE_FULL, NEED_AUTOSIZE_LAYOUT, NEED_AUTOSIZE_NONE, NO_EDGE, NULL_INSETS, ON_EDGE_POSITION, OUTSIDE_EDGE_POSITION, RIGHT_EDGE, SPACE, SPACE_INSETS, SPACE_INSETS_EMPTY_TOP_BOTTOM, SUSPEND_SHAPE_AUTO_RESIZE_FALSE, SUSPEND_SHAPE_AUTO_RESIZE_MODES, SUSPEND_SHAPE_AUTO_RESIZE_SAME_AS_DIAGRAM, SUSPEND_SHAPE_AUTO_RESIZE_TRUE, TOP_EDGE
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
showsProxy
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, SHADOW_WIDTH, SOLID_STROKE
-
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner
QNAME_DISPLAY_MODE_ABOVE_NAME, QNAME_DISPLAY_MODE_BELOW_NAME, QNAME_DISPLAY_MODE_DO_NOT_DISPLAY, QNAME_DISPLAY_MODE_MERGE_WITH_NAME, QNAME_DISPLAY_MODES
-
Fields inherited from interface com.nomagic.magicdraw.uml.symbols.shapes.StereotypesDisplayModeOwner
DSL_STEREOTYPE_DISPLAY_MODE_ALL, DSL_STEREOTYPE_DISPLAY_MODE_LAST, DSL_STEREOTYPE_DISPLAY_MODE_NONE, DSL_STEREOTYPE_DISPLAY_MODES, STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, STEREOTYPE_DISPLAY_MODE_ICON, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT, STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, STEREOTYPES_DISPLAY_MODES, STEREOTYPES_DISPLAY_MODES_SIMPLE
-
-
Constructor Summary
Constructors Constructor Description PackageView()
PackageView(PresentationElement parent)
PackageView(PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.HeaderView header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Method accepts visitor, and calls method visit<class name>(this) of visitor .boolean
canAddInstance(PresentationElement obj)
Object view has no children.private java.lang.String
constructURIText()
Constructs package URI text.ContainerShape
createBoundsShape(PathElement path, BoundsTransformation transformation)
Creates bounding shape for intersection calculation.protected void
createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
protected ShapeElement
getAdditionalCompartmentToLayout()
protected int
getAdditionalHeaderHeightForPreferredBounds(java.awt.Rectangle headerBounds)
protected java.awt.Rectangle
getChildrenBoundsForPreferredBounds()
com.nomagic.ui.UnmodifiableInsets
getChildrenInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
protected UnmodifiableDimension
getDefaultDimension()
protected java.util.List<SmartListenerConfig>
getDynamicConfigurations()
Gets non-cacheable smart listener configurations.Package
getElement()
Returns model element of this presentation element.protected java.lang.Integer
getHeaderMaxYForShrinkableShape()
java.lang.String
getHeaderPosition()
Gets header's position.com.nomagic.magicdraw.uml.symbols.shapes.PackageHeaderView
getHeaderView()
com.nomagic.magicdraw.uml.symbols.shapes.InnerElementsCompartmentView
getInnerElementsCompartment()
com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode
getInnerElementsSortMode()
int
getMiddlePointY()
com.nomagic.magicdraw.uml.symbols.shapes.PackageHeaderView
getPackageHeaderView()
Gets package header.UnmodifiableDimension
getTabSize()
void
internalApplyProperties(PropertyManager man)
Applies properties from given property managerjava.util.Collection<? extends Element>
internalGetElementsForLinkConnecting()
Returns all possible element that can be used for some link connecting.Element
internalGetElementToConnectLink(Element path, boolean asClient)
Returns element that should be used for given link connecting.void
internalLayoutChildren(boolean calculatePrefSize)
void
internalSilentApply()
Silently applies all properties after initializationprotected void
internalSpecificUpdate()
boolean
isContentHidden()
boolean
isShowElementsList()
Returns show elements list.boolean
isShowRakeIcon()
boolean
isShowUri()
private boolean
isUseCaseModel()
protected boolean
mustHeaderBeInTab()
protected void
preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)
protected void
selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
void
setHeaderPosition(java.lang.String position)
Sets header position.void
setInnerElementsSortMode(com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode mode)
void
setShowElementsList(boolean show)
Sets show inner elements list.void
setShowUri(boolean show)
Sets show uri labelvoid
sSetHeaderPosition(java.lang.String position)
Sets header position.void
sSetInnerElementsSortMode(com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode mode)
void
sSetShowElementsList(boolean show)
Sets show inner elements list.void
sSetShowUri(boolean show)
Sets show uri label-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
addCompartment, addCompartment, addPresentationElement, areBoxCompartmentsSuppressed, atInsert, canAddChild, canHideBorder, canSuppressContent, childrenBoundsForReshape, clone, createChangedCompartmentVisibilityProperty, createCompartmentElements, createStateForUpdateOperation, dispose, doInternalLayoutAdditionCompartment, doInternalLayoutChildren, getAdditionalCompartment, getAdditionalCompartmentContainer, getAdditionalCompartmentInsets, getAdditionalRenderersToNotify, getBooleanCompartmentPropertyValue, getCollections, getCompartmentByID, getCompartmentContainer, getCompartmentIDs, getCompartmentRegistrationInfo, getCompartments, getConfiguredPreferredSizeForAutosize, getConstraintAndTaggedValueAlignment, getConstraintTextMode, getDefaultElementStereotypeToHeader, getDSLStereotypesDisplayMode, getElementNumberDisplayMode, getElementPropertiesCompartmentView, getHeaderVerticalPositionForLayout, getMainCompartmentContainer, getName, getPreferredDimensionForAutosize, getQNameDisplayMode, getSecondaryImageAndStereotypeDisplayMode, getStereotypeLabel, getStereotypesDisplayMode, getSuppressCompartmentPropertyID, hasManipulatedChildrenIncludingIndirect, internalAddIndirectManipulatedChildrenRect, internalBeforeUpdate, internalGetHeaderInsets, internalGetIndirectManipulatedChildrenRect, internalGetSelfManipulationPreferredSize, internalPostSpecificUpdate, internalSetCollections, isBorderVisible, isChildLayoutable, isChildMovable, isMakePreferredSizeAfterPropertiesChange, isShowConstraints, isShowDerivedSign, isShowElementProperties, isShowIcon, isShowNumberTagName, isShowRakeSymbol, isShowTaggedValues, isShowType, isWrapEnabled, makePreferredSizeAfterPropertiesChange, makePreferredSizeAfterPropertiesChange, onChildEdgeChange, paintSelf, propertyChange, recursiveAutosize, removeCompartment, removeCompartment, removePresentationElement, setCollections, setCompartmentSuppressed, setConstraintAndTaggedValueAlignment, setConstraints, setConstraintTextMode, setDSLStereotypesDisplayMode, setElementNumberDisplayMode, setHeaderObject, setMakePreferredSizeAfterPropertiesChange, setQNameDisplayMode, setReshapeMode, setSecondaryImageAndStereotypeDisplayMode, setShowCompartmentName, setShowConstraints, setShowDerivedSign, setShowElementProperties, setShowIcon, setShowNumberTagName, setShowTaggedValues, setShowType, setStereotype, setStereotypesDisplayMode, setTaggedValues, setVisibleElements, setWrapEnabled, sSetCompartmentSuppressed, sSetConstraintAndTaggedValueAlignment, sSetConstraintTextMode, sSetDSLStereotypesDisplayMode, sSetElement, sSetElementNumberDisplayMode, sSetName, sSetQNameDisplayMode, sSetSecondaryImageAndStereotypeDisplayMode, sSetShowCompartmentName, sSetShowConstraints, sSetShowDerivedSign, sSetShowElementProperties, sSetShowIcon, sSetShowNumberTagName, sSetShowTaggedValues, sSetShowType, sSetStereotypesDisplayMode, sSetWrapEnabled, updateBorderVisibility, updateChildrenVisibility, updateCompartmentsVisibility, updateName
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
autosize, autosizeAndResizeParent, calculateMinY, calculateOvalShapePreferredSize, correctChildrenVector, coversPoint, editName, getHeaderBoundsForPreferredBounds, getHeaderDistanceFromTopForOvalShape, getHeaderInsets, getHeaderObject, getHeaderVerticalPosition, getNameLabel, getOvalShapeAvailableWidth, getPreferredBounds, getPresentationElementAt, getProxyPresentationElementsStream, getStereotypesToDisplay, internalGetHeaderBoundsForPreferredBounds, internalPostUpdatePresentationElement, internalPreSpecificUpdate, internalUpdatePresentationElement, invalidate, isHeaderOrientationVertical, isOvalShape, isParentShowsProxy, minimumDimension, minimumDimensionForShrinking, minimumSizeForShrinkingIgnoringOrientation, minimumSizeIgnoringOrientation, paintChildren, preferredDimension, setHeaderVerticalPosition, setName, setTextEditable, sSetAutosize, sSetHeaderVerticalPosition, switchWidthHeightIfVerticalOrientation
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
addPresentationElement, addPresentationElementWithoutResize, adjustBoundsForMoving, adjustChildBoundsForMoving, autosizeByChildren, calculateAutosizeDimension, calculateAutosizeDimension, canMoveChildOutside, checkShowsProxy, clearShowsProxy, constructLayoutHelper, getChildrenBounds, getChildrenOnBorderBounds, getContainerBounds, getLayoutHelper, getLayoutHelperClone, getManipulatedElementAt, getManipulationPreferredDimension, getPresentationElementIndex, getPresentationElements, getRemovableChildren, hasManipulatedShapesNotOnEdge, hasManipulatedShapesOnEdge, hasManipulatedShapesOnEdge, internalAppendChildRect, internalGetChildAt, internalGetManipulatedChildrenRect, internalGetManipulatedChildrenRect, internalRecursiveAutosizeForChildren, internalSetChildren, isCanChildrenChangeEdge, isCanMoveChildren, layoutChildren, moveChild, moveChildren, needAdjustToPreferred, paintChildrenBackground, prefDimensionByManipulatedChildren, removePresentationElement, sAddPresentationElement, setBounds, setBounds, setCanMoveChildren, setDummyResizeMode, setFillColor, setLayoutHelper, setPresentationElements, showPathElements, simpleSetBounds, simpleSetBounds, sRemovePresentationElement, sSetPresentationElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
addBreakPoints, adjustBounds, adjustOnEdge, adjustOnEdge, adjustOnEdgeChildren, autosize, calculateAdjustOnEdgeLocation, calculateAndGetMinimumShrinkingDimension, calculateAndGetPreferredDimension, calculateEdge, calculateMinimumDimension, calculateOnEdgeBounds, calculatePreferredDimension, calculatePreferredDimension, canBeAutosized, canHavePaths, clearOldRect, edgeChanged, ensureDimension, ensurePreferredDimensionIfShrinkable, ensurePreferredDimensionIfShrinkable, findFreePlaceForShapeOnBorder, getBorderElementMargin, getBounds, getCenterlineableInnerParts, getDimensionForShrinking, getEdgeLine, getFixedConnectionPoints, getHeaderInsetReduce, getInsetsForOnEdgeShapes, getIntersection, getIntersection, getIntersection, getLoadedDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMinimumDimension, getNearestEdge, getNearestEdge, getNeedAutosizeFlag, getNotCopyBounds, getOnEdge, getOnEdgeCornerDistance, getOnEdgePosition, getPreferredDimension, getReshapeMode, getSuspendShapeAutoResizeMode, hasManipulator, initialize, internalGetBoundsShape, intersects, isAutosized, isCenterlineInner, isHorizontalCenterlineProvider, isOnEdge, isShrinkable, isSnapShapesOnBorderToGrid, isSnapToGrid, isUseFixedConnectionPoints, isVerticalCenterlineProvider, layoutChildren, maximumDimension, minimumOrMinimumShrinkableDimension, moveLinksToSelf, movePathElement, movePathElements, needAdjustToMaximumDimension, prepareForShadowDrawing, providesHorizontalCenterline, providesVerticalCenterline, resetCalculatePreferredRegardingChildren, setAutosize, setBorderElementMargin, setCalculatePreferredRegardingChildren, setLoadedDimension, setMinimumDimension, setNeedAutosizeFlag, setOldRect, setOnEdge, setPreferredDimension, setSnapShapesOnBorderToGrid, setSuspendShapeAutoResizeMode, setUseFixedConnectionPoints, shouldDrawShadow, simpleSetBounds, simpleSetBounds, snapsToCenterlines, sSetBorderElementMargin, sSetBounds, sSetSuspendShapeAutoResizeMode, sSetVisibility, toString, updateLater
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.paths.PathConnector
addConnectedPathElement, disposeConnectedPaths, findSymbolForEnd, findSymbolForEnd, getConnectedPathElement, getConnectedPathElementCount, getConnectedPathElements, getConnectedPathElements, getConnectedPathElements, getPreferredArrowLength, isShowsProxy, movePathElement, removeConnectedPathElement, sAddConnectedPathElement, selectPathsForMoving, setParent, setVisibility, sRemoveConnectedPathElement, sSetConnectedPathElements
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addProperty, adjustChildBounds, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsertChildren, autosizeAndResizeManipulatedParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementParent, canChangeParent, canChangeParent, canFill, changeProperties, changeProperty, changePropertyManager, checkElementParentOnAdd, checkProxyVisibility, childrenForMoving, clearAntialiasingState, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, constructChangePropertyCommand, createPropertyChangeListener, createPropertyManager, disposeChildren, disposeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleFillPaint, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, findParentForData, findPresentationElement, firePropertyChange, generateID, getActualElement, getActualProperty, getAssignableModelElementsClasses, getBooleanPropertyValue, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicStyleOwner, getElementsForLinkConnecting, getElementToConnectLink, getElementToMove, getExpectedDataParent, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolPropertyOwner, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementsAt, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRealPropertyManager, getRenderer, getSelected, getStereotypeColor, getStereotypeFont, getStringPropertyValue, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasDiagramSurface, hasManipulatedPresentationElements, hasSharedData, initializeAndAutosize, internalCreatePropertyChangeListener, internalGetPresentationElementStroke, internalSnapToGrid, internalSnapToGrid, isChildVisible, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isSortable, isTestUpdateFlag, isTextEditable, isUseFillColor, isUseFillColorByProperty, isUseGradientForFill, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onFind, onFind, onFontChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintSelfBackground, preDisposeOnUpdate, prepareForFillDrawing, prepareForLineDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, setAllSelected, setBounds, setCreateElementListener, setDiagramSurface, setElement, setFont, setFontProperty, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setNeedRecreateListeners, setPropertyManager, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setStereotypeColor, setStereotypeFont, setStrokeIfNotTheSame, setTestUpdateFlag, setTextColor, setTextColorProperty, setUseFillColor, setVisible, silentApply, silentApply, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sSetBounds, sSetLineWidth, sSetLocation, sSetLocation, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentProperties
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, canDeleteChild, compareTo, createSortKeys, getClassType, getCommandForAppending, getID, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID
-
-
-
-
Field Detail
-
NO_SORTING
public static final java.lang.String NO_SORTING
- See Also:
- Constant Field Values
-
BY_NAME
public static final java.lang.String BY_NAME
- See Also:
- Constant Field Values
-
INNER_ELEMENTS_SORT_MODES
public static final java.util.List INNER_ELEMENTS_SORT_MODES
-
OWNED_ELEMENT_CONFIG
private static final SmartListenerConfig OWNED_ELEMENT_CONFIG
-
IN_TAB
public static final java.lang.String IN_TAB
- See Also:
- Constant Field Values
-
TOP
public static final java.lang.String TOP
- See Also:
- Constant Field Values
-
HEADER_POSITION
public static final java.util.List HEADER_POSITION
-
DEFAULT_SIZE
private static final UnmodifiableDimension DEFAULT_SIZE
-
TAB_WIDTH_PERCENT
private static final float TAB_WIDTH_PERCENT
Tab width percent of whole package view width- See Also:
- Constant Field Values
-
TAB_HEIGHT
private static final int TAB_HEIGHT
Package view tab height constant- See Also:
- Constant Field Values
-
MINIMUM_PACKAGE_AND_TAB_DIF
private static final int MINIMUM_PACKAGE_AND_TAB_DIF
package width and tab width minimum difference- See Also:
- Constant Field Values
-
NUMBER_OF_POINTS
private static final int NUMBER_OF_POINTS
Represents the number - how many points make the note view figure- See Also:
- Constant Field Values
-
tabSize
private UnmodifiableDimension tabSize
Package tab size.
-
-
Constructor Detail
-
PackageView
public PackageView()
-
PackageView
public PackageView(@CheckForNull PresentationElement parent)
-
PackageView
public PackageView(@CheckForNull PresentationElement parent, com.nomagic.magicdraw.uml.symbols.shapes.HeaderView header)
-
-
Method Detail
-
isShowRakeIcon
public boolean isShowRakeIcon()
- Overrides:
isShowRakeIcon
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getInnerElementsCompartment
public com.nomagic.magicdraw.uml.symbols.shapes.InnerElementsCompartmentView getInnerElementsCompartment()
-
getAdditionalCompartmentToLayout
@CheckForNull protected ShapeElement getAdditionalCompartmentToLayout()
- Overrides:
getAdditionalCompartmentToLayout
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getDefaultDimension
protected UnmodifiableDimension getDefaultDimension()
-
selfSpecificHeaderShapeDraw
protected void selfSpecificHeaderShapeDraw(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
- Overrides:
selfSpecificHeaderShapeDraw
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
preferredSizeIgnoringOrientation
protected void preferredSizeIgnoringOrientation(java.awt.Dimension pref, int locationX, int locationY)
- Overrides:
preferredSizeIgnoringOrientation
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
internalLayoutChildren
public void internalLayoutChildren(boolean calculatePrefSize)
- Overrides:
internalLayoutChildren
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getHeaderMaxYForShrinkableShape
@CheckForNull protected java.lang.Integer getHeaderMaxYForShrinkableShape()
- Overrides:
getHeaderMaxYForShrinkableShape
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getAdditionalHeaderHeightForPreferredBounds
protected int getAdditionalHeaderHeightForPreferredBounds(@CheckForNull java.awt.Rectangle headerBounds)
- Overrides:
getAdditionalHeaderHeightForPreferredBounds
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
getChildrenBoundsForPreferredBounds
protected java.awt.Rectangle getChildrenBoundsForPreferredBounds()
- Overrides:
getChildrenBoundsForPreferredBounds
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
accept
public void accept(Visitor visitor) throws java.lang.Exception
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-
getHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.PackageHeaderView getHeaderView()
- Overrides:
getHeaderView
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
canAddInstance
public boolean canAddInstance(PresentationElement obj)
Description copied from class:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
sSetHeaderPosition
public void sSetHeaderPosition(java.lang.String position)
Sets header position. Sets only header's position- Parameters:
position
- header's position constant.
-
setHeaderPosition
public void setHeaderPosition(java.lang.String position)
Sets header position.- Parameters:
position
- position
-
getHeaderPosition
public java.lang.String getHeaderPosition()
Gets header's position.- Returns:
- constant representing header's position
-
getMiddlePointY
public int getMiddlePointY()
-
createBoundsShape
public ContainerShape createBoundsShape(PathElement path, BoundsTransformation transformation)
Description copied from class:ShapeElement
Creates bounding shape for intersection calculation.- Overrides:
createBoundsShape
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
path
- pathtransformation
- transformation- Returns:
- shape
-
isUseCaseModel
private boolean isUseCaseModel()
- Returns:
- true, if element represents use case model
-
getTabSize
public UnmodifiableDimension getTabSize()
-
mustHeaderBeInTab
protected boolean mustHeaderBeInTab()
-
getPackageHeaderView
public com.nomagic.magicdraw.uml.symbols.shapes.PackageHeaderView getPackageHeaderView()
Gets package header.- Returns:
- package header.
-
internalSpecificUpdate
protected void internalSpecificUpdate()
- Overrides:
internalSpecificUpdate
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
constructURIText
private java.lang.String constructURIText()
Constructs package URI text.- Returns:
- package URI text.
-
sSetShowElementsList
public void sSetShowElementsList(boolean show)
Sets show inner elements list.- Parameters:
show
- - show list.
-
setShowElementsList
public void setShowElementsList(boolean show)
Sets show inner elements list.- Parameters:
show
- - show list.
-
isShowElementsList
public boolean isShowElementsList()
Returns show elements list.- Returns:
- show elements list.
-
sSetInnerElementsSortMode
public void sSetInnerElementsSortMode(com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode mode)
-
setInnerElementsSortMode
public void setInnerElementsSortMode(com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode mode)
-
getInnerElementsSortMode
public com.nomagic.magicdraw.uml.symbols.shapes.PackageView.InnerElementsSortMode getInnerElementsSortMode()
-
sSetShowUri
public void sSetShowUri(boolean show)
Sets show uri label- Parameters:
show
- show uri
-
setShowUri
public void setShowUri(boolean show)
Sets show uri label- Parameters:
show
- show uri
-
isShowUri
public boolean isShowUri()
- Returns:
- show uri flag
-
internalApplyProperties
public void internalApplyProperties(PropertyManager man)
Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
man
- new properties
-
internalSilentApply
public void internalSilentApply()
Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
createSmartListenerConfig
protected void createSmartListenerConfig(java.util.List<SmartListenerConfig> configurations)
- Overrides:
createSmartListenerConfig
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
-
getDynamicConfigurations
protected java.util.List<SmartListenerConfig> getDynamicConfigurations()
Description copied from class:PresentationElement
Gets non-cacheable smart listener configurations. Default symbol smart listeners are cacheable and reused in all instances of a symbol. Dynamic parts of symbols (e.g. added via renderers and decorators) should use dynamic configurations.- Returns:
- a list of dynamic smart listener configurations.
-
internalGetElementToConnectLink
public Element internalGetElementToConnectLink(@CheckForNull Element path, boolean asClient)
Description copied from class:PresentationElement
Returns element that should be used for given link connecting. All possible elements are return by method getElementsForLinkConnecting. Usually this method should be overridden together with getElementsForLinkConnecting().- Returns:
- all possible elements
- See Also:
PresentationElement.getElementsForLinkConnecting()
-
internalGetElementsForLinkConnecting
public java.util.Collection<? extends Element> internalGetElementsForLinkConnecting()
Description copied from class:PresentationElement
Returns all possible element that can be used for some link connecting. One of these elements are return in method getElementToConnectLink() in specific situation. Usually this method should be overridden together with getElementsForLinkConnecting().- Returns:
- all possible elements
- See Also:
PresentationElement.getElementToConnectLink(Element, boolean)
-
getChildrenInsets
public com.nomagic.ui.UnmodifiableInsets getChildrenInsets(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
- Overrides:
getChildrenInsets
in classcom.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
- Parameters:
insetsLevel
- describes the level of insets- Returns:
- shape insets for children
-
isContentHidden
public boolean isContentHidden()
- Overrides:
isContentHidden
in classcom.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
-
getElement
public Package getElement()
Description copied from class:PresentationElement
Returns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.- Specified by:
getElement
in interfaceModelElementProvider
- Overrides:
getElement
in classPresentationElement
- Returns:
- model element of this presentation element.
-
-