Class StylePalette

java.lang.Object
lu.kbra.modelizer_next.style.StylePalette
All Implemented Interfaces:
DisplayValueOwner

public class StylePalette extends Object implements DisplayValueOwner
Named collection of reusable element styles.
  • Constructor Details

    • StylePalette

      public StylePalette()
  • Method Details

    • getDisplayValue

      public String getDisplayValue()
      Returns the display value.
      Specified by:
      getDisplayValue in interface DisplayValueOwner
      Returns:
      the display value
    • getClassBackgroundColor

      public Color getClassBackgroundColor()
      Returns the class background color.
      Returns:
      the class background color
    • getClassBorderColor

      public Color getClassBorderColor()
      Returns the class border color.
      Returns:
      the class border color
    • getClassTextColor

      public Color getClassTextColor()
      Returns the class text color.
      Returns:
      the class text color
    • getCommentBackgroundColor

      public Color getCommentBackgroundColor()
      Returns the comment background color.
      Returns:
      the comment background color
    • getCommentBorderColor

      public Color getCommentBorderColor()
      Returns the comment border color.
      Returns:
      the comment border color
    • getCommentTextColor

      public Color getCommentTextColor()
      Returns the comment text color.
      Returns:
      the comment text color
    • getFieldBackgroundColor

      public Color getFieldBackgroundColor()
      Returns the field background color.
      Returns:
      the field background color
    • getFieldTextColor

      public Color getFieldTextColor()
      Returns the field text color.
      Returns:
      the field text color
    • getLinkColor

      public Color getLinkColor()
      Returns the link color.
      Returns:
      the link color
    • getName

      public String getName()
      Returns the name.
      Returns:
      the name
    • setClassBackgroundColor

      public void setClassBackgroundColor(Color classBackgroundColor)
      Sets the class background color.
      Parameters:
      classBackgroundColor - color value to use
    • setClassBorderColor

      public void setClassBorderColor(Color classBorderColor)
      Sets the class border color.
      Parameters:
      classBorderColor - color value to use
    • setClassTextColor

      public void setClassTextColor(Color classTextColor)
      Sets the class text color.
      Parameters:
      classTextColor - color value to use
    • setCommentBackgroundColor

      public void setCommentBackgroundColor(Color commentBackgroundColor)
      Sets the comment background color.
      Parameters:
      commentBackgroundColor - color value to use
    • setCommentBorderColor

      public void setCommentBorderColor(Color commentBorderColor)
      Sets the comment border color.
      Parameters:
      commentBorderColor - color value to use
    • setCommentTextColor

      public void setCommentTextColor(Color commentTextColor)
      Sets the comment text color.
      Parameters:
      commentTextColor - color value to use
    • setFieldBackgroundColor

      public void setFieldBackgroundColor(Color fieldBackgroundColor)
      Sets the field background color.
      Parameters:
      fieldBackgroundColor - color value to use
    • setFieldTextColor

      public void setFieldTextColor(Color fieldTextColor)
      Sets the field text color.
      Parameters:
      fieldTextColor - color value to use
    • setLinkColor

      public void setLinkColor(Color linkColor)
      Sets the link color.
      Parameters:
      linkColor - color value to use
    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - name value to read, write, or display
    • toString

      public String toString()
      Builds a debug string for this style palette.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object