Class AbstractDiagramPresentationElement
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement
- All Implemented Interfaces:
com.nomagic.magicdraw.core.diagram.DiagramPresentationImplementer,BaseElement,MDElement,ModelElementProvider,NameOwner,PropertyChangeListener,Cloneable,Comparable,EventListener
- Direct Known Subclasses:
DiagramPresentationElement
@OpenApi
public abstract class AbstractDiagramPresentationElement
extends PresentationElement
implements com.nomagic.magicdraw.core.diagram.DiagramPresentationImplementer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final StringHorizontal diagram orientation mode.Diagram orientation modes.static final StringVertical diagram orientation mode.static final Stringstatic final intstatic final intFields inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
DASHED_STROKE, DEFAULT_LINE_WIDTH, DOTTED_STROKE, HANDLE_SIZE, MAX_LINE_WIDTH, MIN_LINE_WIDTH, peStyle, SHADOW_WIDTH, SOLID_STROKE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor.booleanRegisters the listener for changes in all symbols contained in the diagram.final voidaddDynamicRepresentationProvider(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider) final voidaddDynamicStyleProvider(com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider dynamicStyleProvider) voidaddPresentationElement(PresentationElement element, int index) Add given child to this symbol at given indexvoidJust hack, registers the same listener to the containerstatic voidAdjust initial diagram frame bounds.abstract voidvoidatInsert()Invalidates object at insertvoidprotected RectangleGets bounds which should be set for the diagram's frame.booleancanAddChild(PresentationElement symbol) Check of given symbol can be added as child into this symbol.booleancanAddInstance(PresentationElement symbol) Object view has no children.booleanChecks if given element can be deleted from this element.voidprotected voidclone()final voidclose()Closes diagram window.voidclose(boolean closeWindow) Closes opened diagram If closeWindow is 'false' and there is a possibility to back to the previous diagram in that window, when the previous diagram is opened Otherwise, diagram window is closedCollects all elements in this diagram recursively.Collects all visible manipulated elements in this diagram recursively.Collects all visible elements in this diagram recursively.booleancoversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks if object covers provided pointvoiddispose()disposes ends of links when link is deletedvoidEnsures that the diagram is loaded.final PresentationElementfindPresentationElement(com.dassault_systemes.modeler.foundation.model.ModelElement element, Class presentationElementClass) Finds a presentation element for a given model element of the given symbol type in this diagram.final PresentationElementfindPresentationElement(Element element, Class presentationElementClass) Finds a presentation element for a given model element of a given symbol type in this diagram.final PresentationElementfindPresentationElementForPathConnecting(BaseElement element, Class presentationElementClass) Finds a presentation element to connect some PathElement for given model element of the given type in this diagram.final <S extends PresentationElement>
Collection<S>findPresentationElements(Class<S> classType) Finds manipulated presentation elements matching given class type.final Collection<PresentationElement>findPresentationElements(Predicate<PresentationElement> predicate) Finds manipulated presentation elements matching given predicate.final Stream<PresentationElement>findPresentationElementsForPathConnecting(Element element, Class presentationElementClass) Finds all symbols to connect some PathElement for a given model element of a given type in this diagram.protected voidfireContentPropertyChange(PresentationElement source, String propertyName, Object oldValue, Object newValue) DelegatesfirePropertyChangeto thePropertyChangeSupport, the member of this class, which reports a bound property update to any registered listeners.voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) DelegatesfirePropertyChangeto thePropertyChangeSupport, the member of this class, which reports a bound property update to any registered listeners.Returns diagram of this presentation element.Delegate bounds request to its container.com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineManagerGets centerline manager for this diagram.com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElementContainerfinal com.nomagic.magicdraw.uml.symbols.DiagramContentStateabstract DiagramLayouterabstract com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeViewGets diagram orientation mode.abstract AbstractDiagramTypeabstract StringCollection<com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider>Collection<com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider>intgetID()Returns the ID of theElement.com.nomagic.magicdraw.uml.symbols.LineJumpPlaceReturns current line jump place value of the diagram.getManipulatedElementAt(Point pt, com.nomagic.magicdraw.uml.symbols.IntersectionKind intersectionKind) Gets manipulate object view at specified point pt.getManipulatedElementAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider) Gets manipulate symbol at specified point pt.com.dassault_systemes.modeler.magic.diagram.SortManagerReturns manipulation sort manager for this diagram view.com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.OpenConfiguratorcom.dassault_systemes.modeler.foundation.diagram.style.DiagramStylePropertyDelegatefloatcom.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.PathToMoveCachegetPresentationElementAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Searches and returns symbol that covers given point.getPresentationElementAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Gets object view at point.Returns all children of this elementgetPresentationElementsAt(Point pt, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Searches and returns all symbols that covers given point.getPresentationElementsAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider) Gets object view at point.getPresentationElementsAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Gets object view at point.Returns real diagram type.com.nomagic.magicdraw.core.diagram.DiagramRepresentationObjectabstract com.nomagic.magicdraw.core.diagram.DiagramRepresentationObjectcom.dassault_systemes.modeler.magic.diagram.SortManagerReturns sort manager for this diagram view.List<com.dassault_systemes.modeler.magic.diagram.SortManager>getSortManagers(boolean create) Gets sort managers registered for this diagram.final com.dassault_systemes.modeler.magic.diagram.DiagramSurfaces<T> T<T> TgetValueOrCompute(Object key, Supplier<T> valueSupplier) Returns user visible bounds of the diagram.floatgetZoom()protected booleanprotected booleanbooleanbooleanReturns true if diagram has vertical orientation.voidInitialize symbol and its children state.protected voidinternalAddToCache(AbstractDiagramPresentationElement diagram, String oldType, String newType) voidinternalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected voidprotected voidprotected abstract voidinternalSetDiagramType(String type, String umlType) voidSilently applies all properties after initializationbooleanintersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks whether object intersects with given rectanglebooleanbooleanisEmpty()booleanbooleanbooleanisLoaded()Check if the diagram is loaded.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanChecks if diagram displays symbols as its contents.booleanbooleanDo we need to use gradient for fill color? Returns value of fill gradient property.final booleanlayout(boolean useCommands) Deprecated, for removal: This API element is subject to removal in a future version.abstract booleanlayout(boolean useCommands, DiagramLayouter layouter) Deprecated, for removal: This API element is subject to removal in a future version.useLayouting.layout(AbstractDiagramPresentationElement, String)orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement, String)booleanlayout(boolean useCommands, DiagramLayouter diagramLayouter, AbstractDiagramLayouterOptionsGroup options) Deprecated, for removal: This API element is subject to removal in a future version.useLayouting.layout(AbstractDiagramPresentationElement, String, AbstractDiagramLayouterOptionsGroup)orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement, String, AbstractDiagramLayouterOptionsGroup)voidloadContents(ProgressStatus status) Loads diagram to memory.voidopen()Open the diagramvoidopen(boolean showProgress) Open the diagram in a new diagram tab, or activates diagram tab if this diagram is already openvoidopen(boolean loadContent, boolean showProgress) Open the diagram.voidopen(boolean loadContent, boolean showProgress, boolean inActiveTab) Open the diagram.voidopenInActiveTab(boolean showProgress) Open diagram in currently active diagram tab If no other diagram is opened yet, creates a new tab If this diagram is already opened, simply activates that tabvoidpaintChildren(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) voidpaintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) voidvoidpreferredSize(Dimension dim) voidListens for property change it can be: data was edited text box was editedvoidvoidResize recursively all symbols.voidbooleanUnregister the given listener from the diagram.final voidremoveDynamicRepresentationProvider(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider) final voidremoveDynamicStyleProvider(com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider dynamicStyleProvider) voidJust hack, unregister the same listener from the containervoidIn case diagram type changes in wayAbstractDiagramPresentationElementContainerneeds to be changed it should be reset and new one will be created ongetContainer()first call.voidsAddPresentationElement(PresentationElement element, int index) Add given child to this symbol at given indexvoidsets bounds of this object viewvoidsetContentHash(String contentHash) Sets identifier of contents.voidsetDiagramRepresentationObject(com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject repObject) Initializes all persistent data from it'sDiagramRepresentationObjectexcept for diagram contents.voidsetDummyMode(boolean dummyMode) voidsetForceStoreContentOnSave(boolean forceStoreContentOnSave) voidsetGridSize(int grid) Sets grid size.voidSets the specified ID to theElement.voidSets initial diagram frame bounds for this diagram's frame.voidsetInitializer(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElementInitializer initializer) Sets custom diagram presentation element initializer.voidsetLabelsAutoDisplaySuspended(boolean enabled) voidsetModified(boolean modified) voidsetOpenConfigurator(com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.OpenConfigurator openConfigurator) Sets open configurator.voidsetPresentationElements(List<PresentationElement> elements) Sets children of this elementvoidsetShapesAutoResizeSuspended(boolean enabled) voidsetShowGrid(boolean showGrid) Sets grid flagvoidsetSnapToGridPaths(boolean snap) voidsetSnapToGridShapes(boolean snap) Snaps symbols to grid.voidvoidsetUseGradientForFill(boolean use) Sets elements gradient fill option.<T> voidstatic voidvoidSnaps given symbol to gridvoidSets bounds of this object view only.voidsSetDiagramFrame(com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView symbol) protected voidsSetForceStoreContentOnSave(boolean forceStoreContentOnSave) voidsSetGridSize(int grid) Sets grid size.voidsSetLabelsAutoDisplaySuspended(boolean enabled) voidsSetLineJumpPlace(com.nomagic.magicdraw.uml.symbols.LineJumpPlace lineJumpPlace) Sets value of line jump place.voidsSetPresentationElements(List<PresentationElement> elements) Sets children of this elementvoidsSetShapesAutoResizeSuspended(boolean enabled) voidsSetShowGrid(boolean showGrid) Sets grid flagvoidsSetSnapToGridPaths(boolean snap) voidsSetSnapToGridShapes(boolean snap) Snaps symbols to grid.voidvoidDisposes all symbols and creates not loaded data.voidvoidupdateFrameSize(PresentationElement element) booleanDoes this element uses parent style or has it's own?Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElement
addPresentationElement, addPresentationElementWithoutResize, addProperty, adjustBoundsBeforeChange, adjustChildBounds, adjustChildBoundsForMoving, alwaysShowTooltip, applyProperties, askDeleteDataConfirmation, atInsertChildren, autosizeAndResizeManipulatedParent, autosizeAndResizeParent, beforeDelete, boundsChanged, boundsChanged, canAddChild, canAddInstance, canBeDisposedOnUpdate, canChangeElementOwner, canChangeParent, canChangeParent, canFill, canHavePaths, changeProperties, checkElementOwnerOnChange, checkProxyVisibility, checkShowsProxy, childrenForMoving, clearShowsProxy, collectSubManipulatedElements, collectSubPresentationElements, collectSubPresentationElements, collectSubShowingPresentationElements, coversPoint, createFillStrategy, createPresentationElementStyle, createPropertyChangeListener, createSmartListenerConfig, disposeChildren, disposePropertyChangeListener, draw, drawBackground, drawSymbol, drawSymbolBackground, dynamicFillColor, dynamicLineColor, dynamicLineWidth, dynamicLineWidth, dynamicPaintShadow, dynamicStroke, dynamicStroke, dynamicStroke, dynamicStyleFillColor, dynamicStyleLineColor, dynamicStyleTextColor, dynamicStyleTransparency, dynamicStyleTransparency, dynamicStyleValue, dynamicTextAlignment, dynamicTextColor, editName, editName, findOwnerForChildElement, findOwnerForElement, findPresentationElement, generateID, getActualElement, getAdditionalRenderersToNotifyOnPropertiesChange, getAssignableModelElementsClasses, getBoundsShape, getBoundsToRepaint, getBoundsWithChildrenOnEdge, getCenterlinePoint, getCenterlinePointX, getCenterlinePointY, getChildPresentationElementForContextMenu, getChildrenWithSymbolProperties, getConfiguration, getDiagramPresentationElement, getDiagramSurface, getDrawComparator, getDynamicConfigurations, getDynamicStyleOwner, getEffectiveStyleDelegate, getEffectiveStyleOwner, getElement, getElementsForRelationshipConnecting, getElementToConnectRelationship, getFillColor, getFont, getFontHeight, getFontRenderContext, getHumanName, getHumanType, getIntersection, getLineColor, getLineWidth, getManipulatedElementAt, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedIntersectionWith, getManipulatedParent, getManipulatedPresentationElements, getManipulationBounds, getManipulationPreferredDimension, getMiddlePoint, getMiddlePoint, getMiddlePointX, getMiddlePointX, getMiddlePointY, getMiddlePointY, getMinimumDimension, getModelElement, getModelElementsForRelationshipConnecting, getModelElementToConnectRelationship, getModelElementToMove, getNotCopyBounds, getNotZoomedTolerance, getObjectParent, getParent, getParentSymbolStyleOwner, getPreferredBounds, getPreferredDimension, getPreferredDimensionForAutosize, getPreferredSize, getPresentationElementAt, getPresentationElementAt, getPresentationElementAt, getPresentationElementCount, getPresentationElementIndex, getPresentationElementsAt, getPresentationElementStroke, getPresentationElementStroke, getProjectImpl, getProperty, getPropertyManager, getPropertyManagerName, getRenderer, getSelected, getStroke, getStroke, getStroke, getStroke, getStroke, getStroke, getStyle, getSymbolRenderer, getTextColor, getTolerance, getVisibility, getVisiblePresentationElements, handleModelDelete, hasManipulatedPresentationElements, hasManipulator, hasSharedModelElement, initializeAndAutosize, internalBeforeUpdate, internalCreatePropertyChangeListener, internalGetBoundsShape, internalGetModelElementsForRelationshipConnecting, internalGetModelElementsForRelationshipConnecting, internalGetModelElementToConnectRelationship, internalGetPresentationElementStroke, internalGetSpecificFont, internalGetSpecificTextColor, internalIsSuitableToConnectRelationship, internalIsSuitableToConnectRelationship, internalSnapToGrid, internalSnapToGrid, internalUpdatePresentationElement, intersects, invalidate, isCanChildrenChangeEdge, isChildVisible, isContentHidden, isCreateElementListener, isDetectable, isDisposed, isLayouting, isMovableByMoveManager, isNotNull, isParentOf, isParentOf, isPreserveProportionsWhenGrowing, isSelected, isShowElementTypeAsLabel, isShowsProxy, isSnapToGrid, isSortable, isSuitableToConnectRelationship, isTextEditable, isUseFillColor, isUseFillColorByProperty, isVisible, isVisibleInDiagram, isVisibleOrShrunken, movePathElements, movePathElementsRecursively, mustShowContextMenu, notifyCreated, notifyDiagramFrameSizeChange, notifyRepaintManager, onChildAdd, onChildRemove, onDiagramSurfaceSet, onFind, onFind, onFontChange, onParentChange, paintAdornments, paintAdornmentsBackground, paintChildrenAndAdornments, paintChildrenBackground, paintSelfBackground, preDisposeOnUpdate, prepareForLineDrawing, prepareForShadowDrawing, prepareForTextDrawing, recreateListeners, registerInSortManager, rememberBounds, rememberBounds, removeFromSortManager, removeItSelfOnUpdate, removePresentationElement, resizeParent, sAddPresentationElement, selectChildrenForMoving, selectObjectsForMoving, selectPathsForMoving, setAllSelected, setBounds, setCreateElementListener, setDummyResizeMode, setElement, setFillColor, setFont, setLayouting, setLineColor, setLineWidth, setLoadedVisibility, setLocation, setLocation, setModelElement, setNeedRecreateListeners, setParent, setPropertyManagerName, setSelected, setSelected, setSize, setSize, setSize, setTextColor, setTextEditable, setUseFillColor, setVisibility, setVisible, silentApply, silentApply, simpleSetBounds, simpleSetBounds, snapToGrid, snapToGrid, snapViewToGrid, sortObjectsByX, sortObjectsByY, sRemovePresentationElement, sSetBounds, sSetElement, sSetLocation, sSetLocation, sSetModelElement, sSetParent, sSetParentForAll, sSetSize, sSetSize, sSetSize, sSetVisibility, sSetVisible, tryToDeleteModelElementUponRemoval, update, updateAfterLoad, updateLabelsIgnoringSuspendableLater, updateLater, updateModelByView, updateModelByViewInternal, updateViewAfterPropertyChange, useParentPropertiesMethods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, canAdd, canAddChild, canBeDeleted, compareTo, createSortKeys, getClassType, getName, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, removeAllParents, removeAllPropertyChangeListeners, setProjectProvider, setResourceIDProvider, sGetID, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeableMethods inherited from interface com.nomagic.magicdraw.uml.MDElement
getProject
-
Field Details
-
DIAGRAM_ORIENTATION_VERTICAL
Vertical diagram orientation mode.- See Also:
-
DIAGRAM_ORIENTATION_HORIZONTAL
Horizontal diagram orientation mode.- See Also:
-
DIAGRAM_ORIENTATION_MODES
Diagram orientation modes. -
FORCE_CONTENT_SAVE_PROPERTY
- See Also:
-
MIN_GRID_SIZE
public static final int MIN_GRID_SIZE- See Also:
-
MAX_GRID_SIZE
public static final int MAX_GRID_SIZE- See Also:
-
CANVAS_SIZE
public static final int CANVAS_SIZE- See Also:
-
DIAGRAM_CONTENT_LOADED_PROPERTY
- See Also:
-
DEFAULT_GRID_SIZE
public static final int DEFAULT_GRID_SIZE- See Also:
-
-
Constructor Details
-
AbstractDiagramPresentationElement
public AbstractDiagramPresentationElement()
-
-
Method Details
-
setDiagramRepresentationObject
public void setDiagramRepresentationObject(com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject repObject) Initializes all persistent data from it'sDiagramRepresentationObjectexcept for diagram contents.- Parameters:
repObject- object
-
setID
Description copied from interface:BaseElementSets the specified ID to theElement.- Specified by:
setIDin interfaceBaseElement- Overrides:
setIDin classcom.nomagic.magicdraw.uml.MDElementImpl- Parameters:
id- the id to be set.
-
getID
Description copied from interface:BaseElementReturns the ID of theElement. If the ID isnull, new id for an element is generated. Element id is persistence and does not change during project save/load.- Specified by:
getIDin interfaceBaseElement- Overrides:
getIDin classcom.nomagic.magicdraw.uml.MDElementImpl- Returns:
- the ID of the
Element.
-
internalAddToCache
protected void internalAddToCache(AbstractDiagramPresentationElement diagram, @CheckForNull String oldType, @CheckForNull String newType) -
internalRemoveFromCache
-
hasNoRegisteredRealTypeDescriptor
protected boolean hasNoRegisteredRealTypeDescriptor() -
internalSetDiagramType
-
getRepresentation
public com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject getRepresentation() -
canAddInstance
Description copied from class:PresentationElementObject view has no children.- Overrides:
canAddInstancein classPresentationElement
-
getAbstractDiagramPresentationElement
Description copied from class:PresentationElementReturns diagram of this presentation element.- Overrides:
getAbstractDiagramPresentationElementin classPresentationElement- Returns:
- diagram of this presentation element.
-
getCenterlineManager
public com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineManager getCenterlineManager()Gets centerline manager for this diagram.- Returns:
- centerline manager for this diagram.
-
getContainer
public com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElementContainer getContainer()- Returns:
- diagram container
-
resetContainer
public void resetContainer()In case diagram type changes in wayAbstractDiagramPresentationElementContainerneeds to be changed it should be reset and new one will be created ongetContainer()first call. -
paintSelf
public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Specified by:
paintSelfin classPresentationElement
-
paintChildren
public void paintChildren(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Specified by:
paintChildrenin classPresentationElement
-
intersects
public boolean intersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementchecks whether object intersects with given rectangle- Specified by:
intersectsin classPresentationElement- Returns:
- true if object and rectangle intersects
-
coversPoint
public boolean coversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementchecks if object covers provided point- Specified by:
coversPointin classPresentationElement- Returns:
- true if object covers this point
-
sAddPresentationElement
Description copied from class:PresentationElementAdd given child to this symbol at given index- Overrides:
sAddPresentationElementin classPresentationElement- Parameters:
element- child to addindex- index to add at. Can be -1
-
addPresentationElement
Description copied from class:PresentationElementAdd given child to this symbol at given index- Overrides:
addPresentationElementin classPresentationElement- Parameters:
element- child to addindex- index to add at. Can be -1
-
isEmpty
public boolean isEmpty() -
getPresentationElements
Description copied from class:PresentationElementReturns all children of this element- Overrides:
getPresentationElementsin classPresentationElement- Returns:
- all children of this element. The collection is unmodifiable.
-
setPresentationElements
Description copied from class:PresentationElementSets children of this element- Overrides:
setPresentationElementsin classPresentationElement- Parameters:
elements- children
-
sSetPresentationElements
Description copied from class:PresentationElementSets children of this element- Overrides:
sSetPresentationElementsin classPresentationElement- Parameters:
elements- children
-
setBounds
Description copied from class:PresentationElementsets bounds of this object view- Specified by:
setBoundsin classPresentationElement- Parameters:
r- rectangle of bounds- Throws:
NoRectangleDefinedException- always
-
sSetBounds
Description copied from class:PresentationElementSets bounds of this object view only.- Specified by:
sSetBoundsin classPresentationElement- Parameters:
r- rectangle of bounds.- Throws:
NoRectangleDefinedException- always
-
addPropertyChangeListener
Just hack, registers the same listener to the container- Specified by:
addPropertyChangeListenerin interfaceBaseElement- Overrides:
addPropertyChangeListenerin classcom.nomagic.magicdraw.uml.MDElementImpl- Parameters:
l- thePropertyChangeListenerto be added.- See Also:
-
removePropertyChangeListener
Just hack, unregister the same listener from the container- Specified by:
removePropertyChangeListenerin interfaceBaseElement- Overrides:
removePropertyChangeListenerin classcom.nomagic.magicdraw.uml.MDElementImpl- Parameters:
l- the PropertyChangeListener to be removed.- See Also:
-
getGridSize
public int getGridSize()- Returns:
- grid size
-
setGridSize
public void setGridSize(int grid) Sets grid size.- Parameters:
grid- grid size
-
snapViewToGrid
Snaps given symbol to grid- Parameters:
el- symbol
-
getPathGridSize
public float getPathGridSize()- Returns:
- path grid size
-
sSetGridSize
public void sSetGridSize(int grid) Sets grid size.- Parameters:
grid- grid size
-
setShowGrid
public void setShowGrid(boolean showGrid) Sets grid flag- Parameters:
showGrid- show grid
-
sSetShowGrid
public void sSetShowGrid(boolean showGrid) Sets grid flag- Parameters:
showGrid- show grid value
-
isShowGrid
public boolean isShowGrid()- Returns:
- grid flag
-
setSnapToGridPaths
public void setSnapToGridPaths(boolean snap) -
sSetSnapToGridPaths
public void sSetSnapToGridPaths(boolean snap) -
isSnapToGridPaths
public boolean isSnapToGridPaths() -
setSnapToGridShapes
public void setSnapToGridShapes(boolean snap) Snaps symbols to grid.- Parameters:
snap- snap value
-
sSetSnapToGridShapes
public void sSetSnapToGridShapes(boolean snap) Snaps symbols to grid.- Parameters:
snap- snap value
-
isSnapToGridShapes
public boolean isSnapToGridShapes()- Returns:
- snap to grid value
-
getDynamicStyleProviders
public Collection<com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider> getDynamicStyleProviders() -
addDynamicStyleProvider
public final void addDynamicStyleProvider(com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider dynamicStyleProvider) -
removeDynamicStyleProvider
public final void removeDynamicStyleProvider(com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider dynamicStyleProvider) -
addDynamicRepresentationProvider
public final void addDynamicRepresentationProvider(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider) -
removeDynamicRepresentationProvider
public final void removeDynamicRepresentationProvider(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider) -
getDynamicRepresentationProviders
public Collection<com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider> getDynamicRepresentationProviders() -
getSortManagers
public List<com.dassault_systemes.modeler.magic.diagram.SortManager> getSortManagers(boolean create) Gets sort managers registered for this diagram.- Parameters:
create- indicates if sort managers should be created if they aren't created yet.- Returns:
- sort managers registered for this diagram.
-
getSortManager
public com.dassault_systemes.modeler.magic.diagram.SortManager getSortManager()Returns sort manager for this diagram view.- Returns:
- symbol sort manager.
-
getManipulationSortManager
public com.dassault_systemes.modeler.magic.diagram.SortManager getManipulationSortManager()Returns manipulation sort manager for this diagram view.- Returns:
- manipulation symbol sort manager.
-
hasManipulationSortManager
protected boolean hasManipulationSortManager() -
getPresentationElementAt
@CheckForNull public PresentationElement getPresentationElementAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementGets object view at point.- Overrides:
getPresentationElementAtin classPresentationElement- Parameters:
relativePoint- object view at point location.sortManagerProvider- sort manager for searching elements.kind- intersection kind to check for- Returns:
- object view at this point.
-
getPresentationElementAt
@CheckForNull public PresentationElement getPresentationElementAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Searches and returns symbol that covers given point.- Overrides:
getPresentationElementAtin classPresentationElement- Parameters:
relativePoint- point where searching for symbolkind- intersection kind to check for- Returns:
- symbol that covers given point, null if no objects found
-
getPresentationElementsAt
public List<PresentationElement> getPresentationElementsAt(Point pt, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Searches and returns all symbols that covers given point.- Overrides:
getPresentationElementsAtin classPresentationElement- Parameters:
pt- point where searching for symbolkind- intersection kind to check for- Returns:
- object that covers given point, null if no objects found
-
getPresentationElementsAt
@CheckForNull public List<PresentationElement> getPresentationElementsAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider) Description copied from class:PresentationElementGets object view at point.- Overrides:
getPresentationElementsAtin classPresentationElement- Parameters:
relativePoint- object view at point location.sortManagerProvider- sort manager for searching elements.- Returns:
- object view at this point.
-
getPresentationElementsAt
@CheckForNull public List<PresentationElement> getPresentationElementsAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElementGets object view at point.- Overrides:
getPresentationElementsAtin classPresentationElement- Parameters:
relativePoint- object view at point location.sortManagerProvider- sort manager for searching elements.kind- intersection kind to check for- Returns:
- object view at this point.
-
getManipulatedElementAt
@CheckForNull public PresentationElement getManipulatedElementAt(Point relativePoint, com.nomagic.magicdraw.uml.symbols.SortManagerProvider sortManagerProvider) Description copied from class:PresentationElementGets manipulate symbol at specified point pt.- Overrides:
getManipulatedElementAtin classPresentationElement- Parameters:
relativePoint-PointsortManagerProvider- provides sort manager in which to search.- Returns:
- manipulate symbol
-
getManipulatedElementAt
@CheckForNull public PresentationElement getManipulatedElementAt(Point pt, com.nomagic.magicdraw.uml.symbols.IntersectionKind intersectionKind) Gets manipulate object view at specified point pt.- Overrides:
getManipulatedElementAtin classPresentationElement- Parameters:
pt-PointintersectionKind- intersection kind to check for- Returns:
- manipulate object view
-
hasSelectableSymbols
public boolean hasSelectableSymbols() -
getVisibleBounds
Returns user visible bounds of the diagram.- Returns:
- visible bounds or null if the diagram is not opened.
-
atInsert
public void atInsert()Description copied from class:PresentationElementInvalidates object at insert- Specified by:
atInsertin interfaceBaseElement- Overrides:
atInsertin classPresentationElement
-
dispose
public void dispose()Description copied from class:PresentationElementdisposes ends of links when link is deleted- Specified by:
disposein interfaceBaseElement- Overrides:
disposein classPresentationElement
-
firePropertyChange
public void firePropertyChange(String propertyName, @CheckForNull Object oldValue, @CheckForNull Object newValue) Description copied from interface:BaseElementDelegatesfirePropertyChangeto thePropertyChangeSupport, the member of this class, which reports a bound property update to any registered listeners. No event is fired if old and new values are equal or null.- Specified by:
firePropertyChangein interfaceBaseElement- Overrides:
firePropertyChangein classPresentationElement- Parameters:
propertyName- the programmatic name of the property that was changed.oldValue- the old value of the propertynewValue- the new value of the property- See Also:
-
fireContentPropertyChange
protected void fireContentPropertyChange(PresentationElement source, String propertyName, @CheckForNull Object oldValue, @CheckForNull Object newValue) DelegatesfirePropertyChangeto thePropertyChangeSupport, the member of this class, which reports a bound property update to any registered listeners. No event is fired if old and new values are equal or null.- Parameters:
source- source elementpropertyName- the programmatic name of the property that was changed.oldValue- the old value of the propertynewValue- the new value of the property- See Also:
-
clearCaches
protected void clearCaches() -
collectShowingManipulatedElementsRecursively
Collects all visible manipulated elements in this diagram recursively.- Returns:
- manipulated elements in this diagram
-
collectShowingPresentationElementsRecursively
Collects all visible elements in this diagram recursively.- Returns:
- visible elements in this diagram
-
collectPresentationElementsRecursively
Collects all elements in this diagram recursively.- Returns:
- elements in this diagram
-
addContentPropertyChangeListener
Registers the listener for changes in all symbols contained in the diagram.- Parameters:
listener- thePropertyChangeListenerto be added- Returns:
- true if listener was added - it wasn't there yet, otherwise false
-
removeContentPropertyChangeListener
Unregister the given listener from the diagram.- Parameters:
listener- the PropertyChangeListener to be removed- Returns:
- true if listener was removed
-
clone
- Specified by:
clonein interfaceBaseElement- Overrides:
clonein classPresentationElement
-
isDummyMode
public boolean isDummyMode() -
setDummyMode
public void setDummyMode(boolean dummyMode) -
canDeleteChild
Description copied from interface:BaseElementChecks if given element can be deleted from this element. Following rules must be true to have result true: 1.this element must be editable. 2.project must be editable. 3.the type of given child must be valid for teamwork lock for edit operation (for example, class, package etc., not Attribute).- Specified by:
canDeleteChildin interfaceBaseElement- Overrides:
canDeleteChildin classcom.nomagic.magicdraw.uml.MDElementImpl- Parameters:
obj- a given child- Returns:
- true, if the given element can be deleted from the current element.
-
useParentStyle
public boolean useParentStyle()Description copied from class:PresentationElementDoes this element uses parent style or has it's own?- Overrides:
useParentStylein classPresentationElement- Returns:
- true, if element does not have style and uses parent's style.
-
getSurfaces
public final com.dassault_systemes.modeler.magic.diagram.DiagramSurfaces getSurfaces() -
isSymbolDiagram
@OpenApi public boolean isSymbolDiagram()Checks if diagram displays symbols as its contents. Another type of diagrams may be tables, matrices.- Returns:
- true if diagram displays symbols
-
accept
Description copied from interface:MDElementMethod accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details. -
unloadDiagram
Disposes all symbols and creates not loaded data.- Throws:
Exception- in case of some error
-
internalClearOnUnload
protected void internalClearOnUnload() -
recalculateInternalDataRequired
public void recalculateInternalDataRequired() -
isLoaded
@OpenApi public boolean isLoaded()Check if the diagram is loaded.- Returns:
- true if diagram contents is loaded
-
getContentState
public final com.nomagic.magicdraw.uml.symbols.DiagramContentState getContentState() -
ensureLoaded
@OpenApi public void ensureLoaded()Ensures that the diagram is loaded. If the diagram is not loaded, load it. Make sure the project is active before invoking this method. Otherwise, the diagram may not be loaded. -
loadContents
Loads diagram to memory. This method should be used only when the diagram is not loaded. Make sure the project is active before invoking this method. Otherwise, the diagram may not be loaded.- Parameters:
status- progress status.
-
cleanupAfterLoad
public void cleanupAfterLoad() -
isForceStoreContentOnSave
public boolean isForceStoreContentOnSave() -
setForceStoreContentOnSave
public void setForceStoreContentOnSave(boolean forceStoreContentOnSave) -
sSetForceStoreContentOnSave
protected void sSetForceStoreContentOnSave(boolean forceStoreContentOnSave) -
getDiagramTypeAsString
-
getRealType
Returns real diagram type. Real diagram type is a diagram type that is not registered but was persisted before.- Returns:
- real type
-
isUseFlowLayoutLogic
public boolean isUseFlowLayoutLogic() -
layout
@OpenApi @Deprecated(since="2024x Refresh3", forRemoval=true) public final boolean layout(boolean useCommands) Deprecated, for removal: This API element is subject to removal in a future version.useLayouting.layout(AbstractDiagramPresentationElement)orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement)Layout the diagram using default layouter. Only selected symbols in the diagram are layouted. All symbols are layouted if selection is empty. UsePresentationElement.setSelected(java.util.List)} to select symbols in the diagram.- Parameters:
useCommands- true to create commands. If true, this command will be available in the project's command history.- Returns:
- true if layout was performed.
-
layout
@OpenApi @Deprecated(since="2024x Refresh3", forRemoval=true) public abstract boolean layout(boolean useCommands, DiagramLayouter layouter) Deprecated, for removal: This API element is subject to removal in a future version.useLayouting.layout(AbstractDiagramPresentationElement, String)orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement, String)Layouts the diagram with the specified layouter. Only selected symbols in the diagram are layouted. All symbols are layouted if selection is empty. UsePresentationElement.setSelected(java.util.List)} to select symbols in the diagram.- Parameters:
useCommands- true to create commands. If true, this command will be available in the project's command historylayouter- layouter to be used for layouting- Returns:
- true if layout was performed.
-
layout
@OpenApi @Deprecated(since="2024x Refresh3", forRemoval=true) public boolean layout(boolean useCommands, DiagramLayouter diagramLayouter, AbstractDiagramLayouterOptionsGroup options) Deprecated, for removal: This API element is subject to removal in a future version.useLayouting.layout(AbstractDiagramPresentationElement, String, AbstractDiagramLayouterOptionsGroup)orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement, String, AbstractDiagramLayouterOptionsGroup)Layout the diagram. Only selected symbols in the diagram are layouted. All symbols are layouted if selection is empty. UsePresentationElement.setSelected(java.util.List)} to select symbols in the diagram.- Parameters:
useCommands- true to create commands. If true, this command will be available in the project's command historydiagramLayouter- layouter to useoptions- layout options- Returns:
- true if layout was performed
-
getDefaultDiagramLayouter
-
isShowDiagramFrame
public boolean isShowDiagramFrame() -
getDiagramFrame
@CheckForNull public abstract com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView getDiagramFrame() -
sSetDiagramFrame
public void sSetDiagramFrame(@CheckForNull com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView symbol) -
updateFrameSize
-
applyForcedProperties
public abstract void applyForcedProperties() -
getRepresentationFromModelElement
public abstract com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject getRepresentationFromModelElement() -
registerInProject
public void registerInProject() -
unregisterFromProject
public void unregisterFromProject() -
getDiagramType
-
postOpenFromCommand
public void postOpenFromCommand() -
getZoom
public float getZoom() -
getPathToMoveCache
public com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.PathToMoveCache getPathToMoveCache()- Returns:
- paths to move cache
-
getContentHash
-
setContentHash
Sets identifier of contents.- Parameters:
contentHash- content hash
-
isShapesAutoResizeSuspended
public boolean isShapesAutoResizeSuspended() -
sSetShapesAutoResizeSuspended
public void sSetShapesAutoResizeSuspended(boolean enabled) -
setShapesAutoResizeSuspended
public void setShapesAutoResizeSuspended(boolean enabled) -
autosizeSuspendedSymbolsWithHiddenContent
public void autosizeSuspendedSymbolsWithHiddenContent() -
isLabelsAutoDisplaySuspended
public boolean isLabelsAutoDisplaySuspended() -
sSetLabelsAutoDisplaySuspended
public void sSetLabelsAutoDisplaySuspended(boolean enabled) -
setLabelsAutoDisplaySuspended
public void setLabelsAutoDisplaySuspended(boolean enabled) -
getSuspendShapeAutoResizeMode
-
sSetSuspendShapeAutoResizeMode
-
setSuspendShapeAutoResizeMode
-
propertyChange
Description copied from class:PresentationElementListens for property change it can be: data was edited text box was edited- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classPresentationElement
-
isModified
public boolean isModified() -
setModified
public void setModified(boolean modified) -
canAddChild
Description copied from class:PresentationElementCheck of given symbol can be added as child into this symbol.- Overrides:
canAddChildin classPresentationElement- Parameters:
symbol- symbol- Returns:
- true if symbol can be added
-
findPresentationElement
@OpenApi @CheckForNull public final PresentationElement findPresentationElement(@CheckForNull Element element, @CheckForNull Class presentationElementClass) Finds a presentation element for a given model element of a given symbol type in this diagram. Does recursive search in the diagram.- Parameters:
element- the given ModelElement.presentationElementClass- the class of presentation element or null if any.- Returns:
- found presentation element or null if given ModelElement does not have a presentation element in this diagram.
-
findPresentationElement
@OpenApi @CheckForNull public final PresentationElement findPresentationElement(@CheckForNull com.dassault_systemes.modeler.foundation.model.ModelElement element, @CheckForNull Class presentationElementClass) Finds a presentation element for a given model element of the given symbol type in this diagram. Does recursive search in the diagram.- Parameters:
element- the given ModelElement.presentationElementClass- the class of presentation element or null if any.- Returns:
- found presentation element or null if given ModelElement does not have a presentation element in this diagram.
-
findPresentationElements
public final Collection<PresentationElement> findPresentationElements(Predicate<PresentationElement> predicate) Finds manipulated presentation elements matching given predicate. Does recursive search in the diagram.- Parameters:
predicate- predicate- Returns:
- found presentation element or null if given ModelElement does not have a presentation element in this diagram.
-
findPresentationElements
public final <S extends PresentationElement> Collection<S> findPresentationElements(Class<S> classType) Finds manipulated presentation elements matching given class type. Does recursive search in the diagram.- Parameters:
classType- class type- Returns:
- found presentation element or null if given ModelElement does not have a presentation element in this diagram.
-
findPresentationElementForPathConnecting
@CheckForNull @OpenApi public final PresentationElement findPresentationElementForPathConnecting(BaseElement element, Class presentationElementClass) Finds a presentation element to connect some PathElement for given model element of the given type in this diagram. Does recursive search.- Parameters:
element- the given ModelElementpresentationElementClass- the class of presentation element or null if any.- Returns:
- found presentation element or null if given ModelElement does not have a presentation element in this diagram.
-
findPresentationElementsForPathConnecting
@OpenApi public final Stream<PresentationElement> findPresentationElementsForPathConnecting(Element element, Class presentationElementClass) Finds all symbols to connect some PathElement for a given model element of a given type in this diagram. Does recursive search.- Parameters:
element- the given ModelElementpresentationElementClass- the class of presentation element or null if any.- Returns:
- a stream of presentation elements
-
getBounds
Delegate bounds request to its container.- Overrides:
getBoundsin classPresentationElement- Returns:
- bounds
- See Also:
-
PresentationElementsManager.reshapeShapeElement
-
setOpenConfigurator
public void setOpenConfigurator(@CheckForNull com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.OpenConfigurator openConfigurator) Sets open configurator.- Parameters:
openConfigurator- open configurator.
-
getOpenConfigurator
@CheckForNull public com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.OpenConfigurator getOpenConfigurator() -
initialize
public void initialize()Description copied from class:PresentationElementInitialize symbol and its children state. Symbol must be initialized before doing any resize, painting and etc. These operations can lead to unpredictable results otherwise.- Overrides:
initializein classPresentationElement
-
setInitializer
public void setInitializer(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElementInitializer initializer) Sets custom diagram presentation element initializer.- Parameters:
initializer- custom diagram presentation element initializer.
-
open
@OpenApi public void open()Open the diagram -
open
@OpenApi public void open(boolean showProgress) Open the diagram in a new diagram tab, or activates diagram tab if this diagram is already open- Parameters:
showProgress- show progress dialog
-
open
public void open(boolean loadContent, boolean showProgress) Open the diagram.- Parameters:
loadContent- load diagram contentshowProgress- show progress dialog
-
openInActiveTab
@OpenApi public void openInActiveTab(boolean showProgress) Open diagram in currently active diagram tab If no other diagram is opened yet, creates a new tab If this diagram is already opened, simply activates that tab- Parameters:
showProgress- show progress dialog
-
open
public void open(boolean loadContent, boolean showProgress, boolean inActiveTab) Open the diagram.- Parameters:
loadContent- load diagram contentshowProgress- show progress dialog
-
isOpening
public boolean isOpening()- Returns:
- true if the diagram is in opening mode at the moment
-
close
@OpenApi public final void close()Closes diagram window. -
close
public void close(boolean closeWindow) Closes opened diagram If closeWindow is 'false' and there is a possibility to back to the previous diagram in that window, when the previous diagram is opened Otherwise, diagram window is closed- Parameters:
closeWindow- if a window should be closed
-
getLineJumpPlace
public com.nomagic.magicdraw.uml.symbols.LineJumpPlace getLineJumpPlace()Returns current line jump place value of the diagram.- Returns:
- line jump place mode
-
sSetLineJumpPlace
public void sSetLineJumpPlace(com.nomagic.magicdraw.uml.symbols.LineJumpPlace lineJumpPlace) Sets value of line jump place.- Parameters:
lineJumpPlace- line jump place mode
-
getDiagramOrientationMode
Gets diagram orientation mode.- Returns:
- diagram orientation mode.
-
hasVerticalOrientation
public boolean hasVerticalOrientation()Returns true if diagram has vertical orientation.- Returns:
- true if the diagram has vertical orientation, false otherwise.
-
getBackgroundColor
- Returns:
- background color
-
setUseGradientForFill
public void setUseGradientForFill(boolean use) Sets elements gradient fill option. Will presentation element use gradient fill, or not for painting.- Parameters:
use- true to use.
-
isUseGradientForFill
public boolean isUseGradientForFill()Do we need to use gradient for fill color? Returns value of fill gradient property.- Overrides:
isUseGradientForFillin classPresentationElement- Returns:
- True, when use gradient fill property is true.
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElementSilently applies all properties after initialization- Overrides:
internalSilentApplyin classPresentationElement
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElementApplies properties from given property manager- Overrides:
internalApplyPropertiesin classPresentationElement- Parameters:
changer- new properties
-
preferredSize
-
recursiveAutosize
public void recursiveAutosize()Description copied from class:PresentationElementResize recursively all symbols. Method must be called if something is changed in symbol (for example minimum size) and you want to resize (autosize) all hierarchy- Overrides:
recursiveAutosizein classPresentationElement
-
calculateInitialDiagramFrameBounds
Gets bounds which should be set for the diagram's frame. -
adjustInitialDiagramFrameBounds
Adjust initial diagram frame bounds.- Parameters:
bounds- bounds
-
setInitialDiagramFrameBounds
public void setInitialDiagramFrameBounds()Sets initial diagram frame bounds for this diagram's frame. -
getOwnStyleDelegate
public com.dassault_systemes.modeler.foundation.diagram.style.DiagramStylePropertyDelegate getOwnStyleDelegate()- Overrides:
getOwnStyleDelegatein classPresentationElement- Returns:
- the own style property delegate
-
setZoomProvider
-
setValue
-
getValue
-
getValueOrCompute
-
Layouting.layout(AbstractDiagramPresentationElement)orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement)