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 int
static final int
static final String
static final String
Horizontal diagram orientation mode.Diagram orientation modes.static final String
Vertical diagram orientation mode.static final String
static final int
static final int
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, peStyle, SHADOW_WIDTH, SOLID_STROKE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor.boolean
Registers the listener for changes in all symbols contained in the diagram.final void
addDynamicRepresentationProvider
(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider) final void
addDynamicStyleProvider
(com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider dynamicStyleProvider) void
addPresentationElement
(PresentationElement element, int index) Add given child to this symbol at given indexvoid
Just hack, registers the same listener to the containerstatic void
Adjust initial diagram frame bounds.abstract void
void
atInsert()
Invalidates object at insertvoid
protected Rectangle
Gets bounds which should be set for the diagram's frame.boolean
canAddChild
(PresentationElement symbol) Check of given symbol can be added as child into this symbol.boolean
canAddInstance
(PresentationElement symbol) Object view has no children.boolean
Checks if given element can be deleted from this element.void
protected void
clone()
final void
close()
Closes diagram window.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 closedCollects all elements in this diagram recursively.Collects all visible manipulated elements in this diagram recursively.Collects all visible elements in this diagram recursively.boolean
coversPoint
(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks if object covers provided pointvoid
dispose()
disposes ends of links when link is deletedvoid
Ensures that the diagram is loaded.final PresentationElement
findPresentationElement
(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 PresentationElement
findPresentationElement
(Element element, Class presentationElementClass) Finds a presentation element for a given model element of a given symbol type in this diagram.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.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 void
fireContentPropertyChange
(PresentationElement source, String propertyName, Object oldValue, Object newValue) DelegatesfirePropertyChange
to thePropertyChangeSupport
, the member of this class, which reports a bound property update to any registered listeners.void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) DelegatesfirePropertyChange
to 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.CenterlineManager
Gets centerline manager for this diagram.com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElementContainer
final com.nomagic.magicdraw.uml.symbols.DiagramContentState
abstract DiagramLayouter
abstract com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
Gets diagram orientation mode.abstract AbstractDiagramType
abstract String
Collection<com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider>
Collection<com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider>
int
getID()
Returns the ID of theElement
.com.nomagic.magicdraw.uml.symbols.LineJumpPlace
Returns 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.SortManager
Returns manipulation sort manager for this diagram view.com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.OpenConfigurator
com.dassault_systemes.modeler.foundation.diagram.style.DiagramStylePropertyDelegate
float
com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.PathToMoveCache
getPresentationElementAt
(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.DiagramRepresentationObject
abstract com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject
com.dassault_systemes.modeler.magic.diagram.SortManager
Returns 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> T
getValueOrCompute
(Object key, Supplier<T> valueSupplier) Returns user visible bounds of the diagram.float
getZoom()
protected boolean
protected boolean
boolean
boolean
Returns true if diagram has vertical orientation.void
Initialize symbol and its children state.protected void
internalAddToCache
(AbstractDiagramPresentationElement diagram, String oldType, String newType) void
internalApplyProperties
(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Applies properties from given property managerprotected void
protected void
protected abstract void
internalSetDiagramType
(String type, String umlType) void
Silently applies all properties after initializationboolean
intersects
(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) checks whether object intersects with given rectangleboolean
boolean
isEmpty()
boolean
boolean
boolean
isLoaded()
Check if the diagram is loaded.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Checks if diagram displays symbols as its contents.boolean
boolean
Do we need to use gradient for fill color? Returns value of fill gradient property.final boolean
layout
(boolean useCommands) Deprecated, for removal: This API element is subject to removal in a future version.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)
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)
void
loadContents
(ProgressStatus status) Loads diagram to memory.void
open()
Open the diagramvoid
open
(boolean showProgress) Open the diagram in a new diagram tab, or activates diagram tab if this diagram is already openvoid
open
(boolean loadContent, boolean showProgress) Open the diagram.void
open
(boolean loadContent, boolean showProgress, boolean inActiveTab) Open the diagram.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 tabvoid
paintChildren
(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) void
paintSelf
(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) void
void
preferredSize
(Dimension dim) void
Listens for property change it can be: data was edited text box was editedvoid
void
Resize recursively all symbols.void
boolean
Unregister the given listener from the diagram.final void
removeDynamicRepresentationProvider
(com.nomagic.magicdraw.uml.symbols.DynamicRepresentationProvider dynamicRepresentationProvider) final void
removeDynamicStyleProvider
(com.dassault_systemes.modeler.magic.diagram.DynamicStyleProvider dynamicStyleProvider) void
Just hack, unregister the same listener from the containervoid
In case diagram type changes in wayAbstractDiagramPresentationElementContainer
needs to be changed it should be reset and new one will be created ongetContainer()
first call.void
sAddPresentationElement
(PresentationElement element, int index) Add given child to this symbol at given indexvoid
sets bounds of this object viewvoid
setContentHash
(String contentHash) Sets identifier of contents.void
setDiagramRepresentationObject
(com.nomagic.magicdraw.core.diagram.DiagramRepresentationObject repObject) Initializes all persistent data from it'sDiagramRepresentationObject
except for diagram contents.void
setDummyMode
(boolean dummyMode) void
setForceStoreContentOnSave
(boolean forceStoreContentOnSave) void
setGridSize
(int grid) Sets grid size.void
Sets the specified ID to theElement
.void
Sets initial diagram frame bounds for this diagram's frame.void
setInitializer
(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElementInitializer initializer) Sets custom diagram presentation element initializer.void
setLabelsAutoDisplaySuspended
(boolean enabled) void
setModified
(boolean modified) void
setOpenConfigurator
(com.nomagic.magicdraw.uml.symbols.AbstractDiagramPresentationElement.OpenConfigurator openConfigurator) Sets open configurator.void
setPresentationElements
(List<PresentationElement> elements) Sets children of this elementvoid
setShapesAutoResizeSuspended
(boolean enabled) void
setShowGrid
(boolean showGrid) Sets grid flagvoid
setSnapToGridPaths
(boolean snap) void
setSnapToGridShapes
(boolean snap) Snaps symbols to grid.void
void
setUseGradientForFill
(boolean use) Sets elements gradient fill option.<T> void
static void
void
Snaps given symbol to gridvoid
Sets bounds of this object view only.void
sSetDiagramFrame
(com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView symbol) protected void
sSetForceStoreContentOnSave
(boolean forceStoreContentOnSave) void
sSetGridSize
(int grid) Sets grid size.void
sSetLabelsAutoDisplaySuspended
(boolean enabled) void
sSetLineJumpPlace
(com.nomagic.magicdraw.uml.symbols.LineJumpPlace lineJumpPlace) Sets value of line jump place.void
sSetPresentationElements
(List<PresentationElement> elements) Sets children of this elementvoid
sSetShapesAutoResizeSuspended
(boolean enabled) void
sSetShowGrid
(boolean showGrid) Sets grid flagvoid
sSetSnapToGridPaths
(boolean snap) void
sSetSnapToGridShapes
(boolean snap) Snaps symbols to grid.void
void
Disposes all symbols and creates not loaded data.void
void
updateFrameSize
(PresentationElement element) boolean
Does 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, useParentProperties
Methods 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, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd, isSelfChangeable
Methods 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'sDiagramRepresentationObject
except for diagram contents.- Parameters:
repObject
- object
-
setID
Description copied from interface:BaseElement
Sets the specified ID to theElement
.- Specified by:
setID
in interfaceBaseElement
- Overrides:
setID
in classcom.nomagic.magicdraw.uml.MDElementImpl
- Parameters:
id
- the id to be set.
-
getID
Description copied from interface:BaseElement
Returns 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:
getID
in interfaceBaseElement
- Overrides:
getID
in 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:PresentationElement
Object view has no children.- Overrides:
canAddInstance
in classPresentationElement
-
getAbstractDiagramPresentationElement
Description copied from class:PresentationElement
Returns diagram of this presentation element.- Overrides:
getAbstractDiagramPresentationElement
in 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 wayAbstractDiagramPresentationElementContainer
needs 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:
paintSelf
in classPresentationElement
-
paintChildren
public void paintChildren(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context) - Specified by:
paintChildren
in classPresentationElement
-
intersects
public boolean intersects(int x, int y, int width, int height, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind) Description copied from class:PresentationElement
checks whether object intersects with given rectangle- Specified by:
intersects
in 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:PresentationElement
checks if object covers provided point- Specified by:
coversPoint
in classPresentationElement
- Returns:
- true if object covers this point
-
sAddPresentationElement
Description copied from class:PresentationElement
Add given child to this symbol at given index- Overrides:
sAddPresentationElement
in classPresentationElement
- Parameters:
element
- child to addindex
- index to add at. Can be -1
-
addPresentationElement
Description copied from class:PresentationElement
Add given child to this symbol at given index- Overrides:
addPresentationElement
in classPresentationElement
- Parameters:
element
- child to addindex
- index to add at. Can be -1
-
isEmpty
public boolean isEmpty() -
getPresentationElements
Description copied from class:PresentationElement
Returns all children of this element- Overrides:
getPresentationElements
in classPresentationElement
- Returns:
- all children of this element. The collection is unmodifiable.
-
setPresentationElements
Description copied from class:PresentationElement
Sets children of this element- Overrides:
setPresentationElements
in classPresentationElement
- Parameters:
elements
- children
-
sSetPresentationElements
Description copied from class:PresentationElement
Sets children of this element- Overrides:
sSetPresentationElements
in classPresentationElement
- Parameters:
elements
- children
-
setBounds
Description copied from class:PresentationElement
sets bounds of this object view- Specified by:
setBounds
in classPresentationElement
- Parameters:
r
- rectangle of bounds- Throws:
NoRectangleDefinedException
- always
-
sSetBounds
Description copied from class:PresentationElement
Sets bounds of this object view only.- Specified by:
sSetBounds
in classPresentationElement
- Parameters:
r
- rectangle of bounds.- Throws:
NoRectangleDefinedException
- always
-
addPropertyChangeListener
Just hack, registers the same listener to the container- Specified by:
addPropertyChangeListener
in interfaceBaseElement
- Overrides:
addPropertyChangeListener
in classcom.nomagic.magicdraw.uml.MDElementImpl
- Parameters:
l
- thePropertyChangeListener
to be added.- See Also:
-
removePropertyChangeListener
Just hack, unregister the same listener from the container- Specified by:
removePropertyChangeListener
in interfaceBaseElement
- Overrides:
removePropertyChangeListener
in 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:PresentationElement
Gets object view at point.- Overrides:
getPresentationElementAt
in 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:
getPresentationElementAt
in 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:
getPresentationElementsAt
in 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:PresentationElement
Gets object view at point.- Overrides:
getPresentationElementsAt
in 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:PresentationElement
Gets object view at point.- Overrides:
getPresentationElementsAt
in 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:PresentationElement
Gets manipulate symbol at specified point pt.- Overrides:
getManipulatedElementAt
in classPresentationElement
- Parameters:
relativePoint
-Point
sortManagerProvider
- 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:
getManipulatedElementAt
in classPresentationElement
- Parameters:
pt
-Point
intersectionKind
- 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:PresentationElement
Invalidates object at insert- Specified by:
atInsert
in interfaceBaseElement
- Overrides:
atInsert
in classPresentationElement
-
dispose
public void dispose()Description copied from class:PresentationElement
disposes ends of links when link is deleted- Specified by:
dispose
in interfaceBaseElement
- Overrides:
dispose
in classPresentationElement
-
firePropertyChange
public void firePropertyChange(String propertyName, @CheckForNull Object oldValue, @CheckForNull Object newValue) Description copied from interface:BaseElement
DelegatesfirePropertyChange
to 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:
firePropertyChange
in interfaceBaseElement
- Overrides:
firePropertyChange
in 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) DelegatesfirePropertyChange
to 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
- thePropertyChangeListener
to 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:
clone
in interfaceBaseElement
- Overrides:
clone
in classPresentationElement
-
isDummyMode
public boolean isDummyMode() -
setDummyMode
public void setDummyMode(boolean dummyMode) -
canDeleteChild
Description copied from interface:BaseElement
Checks 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:
canDeleteChild
in interfaceBaseElement
- Overrides:
canDeleteChild
in 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:PresentationElement
Does this element uses parent style or has it's own?- Overrides:
useParentStyle
in 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:MDElement
Method 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:PresentationElement
Listens for property change it can be: data was edited text box was edited- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classPresentationElement
-
isModified
public boolean isModified() -
setModified
public void setModified(boolean modified) -
canAddChild
Description copied from class:PresentationElement
Check of given symbol can be added as child into this symbol.- Overrides:
canAddChild
in 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:
getBounds
in 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:PresentationElement
Initialize 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:
initialize
in 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:
isUseGradientForFill
in classPresentationElement
- Returns:
- True, when use gradient fill property is true.
-
internalSilentApply
public void internalSilentApply()Description copied from class:PresentationElement
Silently applies all properties after initialization- Overrides:
internalSilentApply
in classPresentationElement
-
internalApplyProperties
public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer) Description copied from class:PresentationElement
Applies properties from given property manager- Overrides:
internalApplyProperties
in classPresentationElement
- Parameters:
changer
- new properties
-
preferredSize
-
recursiveAutosize
public void recursiveAutosize()Description copied from class:PresentationElement
Resize 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:
recursiveAutosize
in 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:
getOwnStyleDelegate
in classPresentationElement
- Returns:
- the own style property delegate
-
setZoomProvider
-
setValue
-
getValue
-
getValueOrCompute
-
Layouting.layout(AbstractDiagramPresentationElement)
orcom.nomagic.magicdraw.uml.symbols.layout.Layouting#layoutNoSession(AbstractDiagramPresentationElement)