Class LinkStyle

java.lang.Object
com.orchestranetworks.addon.dmdv.data.LinkStyle

public final class LinkStyle extends Object
Provides configurations for link style.
Since:
1.1.0
  • Constructor Details

    • LinkStyle

      public LinkStyle()
      Creates a link style instance with the default value.
      Since:
      1.1.0
  • Method Details

    • getColor

      public String getColor()
      Returns the link color in hex.
      Since:
      1.1.0
    • setColor

      public void setColor(String color)
      Sets the link color.
      Parameters:
      color - a color in hex
      Since:
      1.1.0
    • getWidth

      public int getWidth()
      Returns width of the link.
      Since:
      1.1.0
    • setWidth

      public void setWidth(int width)
      Sets width of the link.
      Parameters:
      width - an integer that defines width of the link
      Since:
      1.1.0
    • getShapeType

      public LinkShapeType getShapeType()
      Returns shape of the link.
      Since:
      1.1.0
    • setShapeType

      public void setShapeType(LinkShapeType shapeType)
      Sets shape of the link.
      Parameters:
      shapeType - an enumeration that defines shape of the link.
      Since:
      1.1.0
    • getLineType

      public LinkLineType getLineType()
      Returns type of the link.
      Since:
      1.1.0
    • setLineType

      public void setLineType(LinkLineType lineType)
      Sets type of the link.
      Parameters:
      lineType - an enumeration that defines line style of the link.
      Since:
      1.1.0
    • getLabelMaximumlength

      public int getLabelMaximumlength()
      Returns link label maximum length.
      Since:
      2.3.0
    • setLabelMaximumlength

      public void setLabelMaximumlength(int labelMaximumlength)
      Sets link label maximum length.
      Parameters:
      labelMaximumlength - an integer that defines label length of the link.
      Since:
      2.3.0