Package lu.kbra.modelizer_next.style
Class StylePalette
java.lang.Object
lu.kbra.modelizer_next.style.StylePalette
- All Implemented Interfaces:
DisplayValueOwner
Named collection of reusable element styles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class background color.Returns the class border color.Returns the class text color.Returns the comment background color.Returns the comment border color.Returns the comment text color.Returns the display value.Returns the field background color.Returns the field text color.Returns the link color.getName()Returns the name.voidsetClassBackgroundColor(Color classBackgroundColor) Sets the class background color.voidsetClassBorderColor(Color classBorderColor) Sets the class border color.voidsetClassTextColor(Color classTextColor) Sets the class text color.voidsetCommentBackgroundColor(Color commentBackgroundColor) Sets the comment background color.voidsetCommentBorderColor(Color commentBorderColor) Sets the comment border color.voidsetCommentTextColor(Color commentTextColor) Sets the comment text color.voidsetFieldBackgroundColor(Color fieldBackgroundColor) Sets the field background color.voidsetFieldTextColor(Color fieldTextColor) Sets the field text color.voidsetLinkColor(Color linkColor) Sets the link color.voidSets the name.toString()Builds a debug string for this style palette.
-
Constructor Details
-
StylePalette
public StylePalette()
-
-
Method Details
-
getDisplayValue
Returns the display value.- Specified by:
getDisplayValuein interfaceDisplayValueOwner- Returns:
- the display value
-
getClassBackgroundColor
Returns the class background color.- Returns:
- the class background color
-
getClassBorderColor
Returns the class border color.- Returns:
- the class border color
-
getClassTextColor
Returns the class text color.- Returns:
- the class text color
-
getCommentBackgroundColor
Returns the comment background color.- Returns:
- the comment background color
-
getCommentBorderColor
Returns the comment border color.- Returns:
- the comment border color
-
getCommentTextColor
Returns the comment text color.- Returns:
- the comment text color
-
getFieldBackgroundColor
Returns the field background color.- Returns:
- the field background color
-
getFieldTextColor
Returns the field text color.- Returns:
- the field text color
-
getLinkColor
Returns the link color.- Returns:
- the link color
-
getName
Returns the name.- Returns:
- the name
-
setClassBackgroundColor
Sets the class background color.- Parameters:
classBackgroundColor- color value to use
-
setClassBorderColor
Sets the class border color.- Parameters:
classBorderColor- color value to use
-
setClassTextColor
Sets the class text color.- Parameters:
classTextColor- color value to use
-
setCommentBackgroundColor
Sets the comment background color.- Parameters:
commentBackgroundColor- color value to use
-
setCommentBorderColor
Sets the comment border color.- Parameters:
commentBorderColor- color value to use
-
setCommentTextColor
Sets the comment text color.- Parameters:
commentTextColor- color value to use
-
setFieldBackgroundColor
Sets the field background color.- Parameters:
fieldBackgroundColor- color value to use
-
setFieldTextColor
Sets the field text color.- Parameters:
fieldTextColor- color value to use
-
setLinkColor
Sets the link color.- Parameters:
linkColor- color value to use
-
setName
Sets the name.- Parameters:
name- name value to read, write, or display
-
toString
Builds a debug string for this style palette.
-