Class SeparatorView

  • All Implemented Interfaces:
    BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener
    Direct Known Subclasses:
    RectangularShape

    @OpenApi
    public class SeparatorView
    extends com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    This class creates a separator.
    • Field Detail

      • HORIZONTAL

        public static final java.lang.String HORIZONTAL
        Orientation
        See Also:
        Constant Field Values
      • SEPARATOR_ORIENTATIONS

        public static final java.util.List<java.lang.String> SEPARATOR_ORIENTATIONS
      • LINE_STYLE

        public static final java.util.List<java.lang.String> LINE_STYLE
    • Constructor Detail

      • SeparatorView

        public SeparatorView()
    • Method Detail

      • paintSelf

        public void paintSelf​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
        Overrides:
        paintSelf in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      • internalGetPresentationElementStroke

        public java.awt.BasicStroke internalGetPresentationElementStroke​(int width)
        Description copied from class: PresentationElement
        Return a stroke used to paint symbol's main part
        Parameters:
        width - a custom stroke width. Other stroke parameters will be specific to symbol
        Returns:
        a stroke used to paint symbol's main part
      • accept

        public void accept​(Visitor visitor)
                    throws java.lang.Exception
        Description copied from interface: MDElement
        Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
        Specified by:
        accept in interface MDElement
        Overrides:
        accept in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • sSetTextPosition

        public void sSetTextPosition​(com.nomagic.magicdraw.uml.symbols.shapes.TextObject.HorizontalPosition pos)
        Change and apply new TEXT_POSITION property's value.
        Parameters:
        pos - the text position. ( TextObject' constants )
      • sSetLineStyle

        public void sSetLineStyle​(java.lang.String style)
        Change value of LINE_STYLE property.
        Parameters:
        style - the line style.
      • setLineStyle

        public void setLineStyle​(java.lang.String style)
        sets LINE_STYLE property value.
        Parameters:
        style - the line style.
      • getLineStyle

        public java.lang.String getLineStyle()
        Returns:
        LINE_STYLE property value
      • setTextPosition

        public void setTextPosition​(com.nomagic.magicdraw.uml.symbols.shapes.TextObject.HorizontalPosition pos)
        sets TEXT_POSITION property value.
        Parameters:
        pos - the text position. ( TextObject' constants )
      • getTextPosition

        public com.nomagic.magicdraw.uml.symbols.shapes.TextObject.HorizontalPosition getTextPosition()
        Returns:
        TEXT_POSITION property value.
      • getOrientation

        public java.lang.String getOrientation()
        Returns:
        SEPARATOR_ORIENTATION property value
      • setOrientation

        public void setOrientation​(java.lang.String orientation)
        Sets SEPARATOR_ORIENTATION property value
        Parameters:
        orientation - SeparatorView.HORIZONTAL or SeparatorView.VERTICAL
      • sSetOrientation

        public void sSetOrientation​(java.lang.String orientation)
        Change value of SEPARATOR_ORIENTATION property.
        Parameters:
        orientation - SeparatorView.HORIZONTAL or SeparatorView.VERTICAL
      • internalApplyProperties

        public void internalApplyProperties​(PropertyManager man)
        Description copied from class: PresentationElement
        Applies properties from given property manager
        Overrides:
        internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
        Parameters:
        man - 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.TextShapeView
      • canDisplayHTMLText

        public boolean canDisplayHTMLText()
        Overrides:
        canDisplayHTMLText in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      • isVerticalCenterlineProvider

        public boolean isVerticalCenterlineProvider()
        Description copied from class: ShapeElement
        Indicates whether this shape provides vertical centerlines to other shapes.
        Returns:
        true if this shape provides vertical centerlines, false otherwise.
      • isHorizontalCenterlineProvider

        public boolean isHorizontalCenterlineProvider()
        Description copied from class: ShapeElement
        Indicates whether this shape provides horizontal centerlines to other shapes.
        Returns:
        true if this shape provides horizontal centerlines, false otherwise.
      • needAdjustToMaximumDimension

        protected boolean needAdjustToMaximumDimension()
        Description copied from class: ShapeElement
        Check if shape should be resized to a maximum size.
        Returns:
        true if need adjustments
      • maximumDimension

        protected void maximumDimension​(java.awt.Dimension size)
      • coversPoint

        public boolean coversPoint​(int x,
                                   int y)
        Description copied from class: PresentationElement
        checks if object covers provided point
        Overrides:
        coversPoint in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
        Returns:
        true if object covers this point