Class ImageShapeView

java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractImageShapeView
com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView
com.nomagic.magicdraw.uml.symbols.shapes.ImageShapeView
All Implemented Interfaces:
BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class ImageShapeView extends com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView implements com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
Image Shape is a simple and quick way for user to insert picture into diagram. This can be anything: logo, graph, table, etc. User will need no worry that image would look good, as preferred shape size will be actual image size.
  • Constructor Details

    • ImageShapeView

      public ImageShapeView()
    • ImageShapeView

      public ImageShapeView(@CheckForNull PresentationElement parent)
  • Method Details

    • clone

      public ImageShapeView clone()
      Specified by:
      clone in interface BaseElement
      Overrides:
      clone in class com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView
    • accept

      public void accept(Visitor visitor) throws Exception
      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.
      Specified by:
      accept in interface MDElement
      Overrides:
      accept in class com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • 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 class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Parameters:
      changer - new properties
    • internalSilentApply

      public void internalSilentApply()
      Description copied from class: PresentationElement
      Silently applies all properties after initialization
      Overrides:
      internalSilentApply in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • setImageIconPath

      public void setImageIconPath(String iconPath)
      Specified by:
      setImageIconPath in class com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView
    • getImageIconPath

      public String getImageIconPath()
      Specified by:
      getImageIconPath in class com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView
    • createImagePathProperty

      public static FileProperty createImagePathProperty(String iconPath)
    • readImage

      protected void readImage()
      Specified by:
      readImage in class com.nomagic.magicdraw.uml.symbols.shapes.EmbeddedImageShapeView
    • asPresentationElement

      public PresentationElement asPresentationElement()
      Specified by:
      asPresentationElement in interface com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape
      Specified by:
      asPresentationElement in interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement