Package gov.nih.mipav.model.algorithms
Class ContourPlot.ColorScheme
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.ColorScheme
- Enclosing class:
ContourPlot
The ColorScheme is responsible for storing and providing color information,
which other components can use.
This enables an easy way to distribute color information to multiple components.
There is the option to use one of the predefined
ContourPlot.DefaultColorScheme or to define custom colors.
The color scheme contains five different color attributes,
which can be accessed by the respective components.- Author:
- lucareichmann
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionColorScheme(int primaryColor, int secondaryColor, int tertiaryColor, int quaternaryColor, int textColor, int backgroundColor) Constructor for defining a new color scheme.ColorScheme(Color primaryColor, Color secondaryColor, Color tertiaryColor, Color quaternaryColor, Color textColor, Color backgroundColor) Constructor for defining a new color scheme. -
Method Summary
Modifier and TypeMethodDescriptionintintintintintint
-
Field Details
-
color1
protected final int color1 -
color2
protected final int color2 -
color3
protected final int color3 -
color4
protected final int color4 -
colorText
protected final int colorText -
colorBackground
protected final int colorBackground
-
-
Constructor Details
-
ColorScheme
public ColorScheme(Color primaryColor, Color secondaryColor, Color tertiaryColor, Color quaternaryColor, Color textColor, Color backgroundColor) Constructor for defining a new color scheme.- Parameters:
primaryColor- primary color of the color schemesecondaryColor- secondary color of the color schemetertiaryColor- tertiary color of the color schemequaternaryColor- quarternary color of the color schemetextColor- text color of the color schemebackgroundColor- the background color
-
ColorScheme
public ColorScheme(int primaryColor, int secondaryColor, int tertiaryColor, int quaternaryColor, int textColor, int backgroundColor) Constructor for defining a new color scheme.- Parameters:
primaryColor- primary color of the color scheme (integer packed ARGB)secondaryColor- secondary color of the color scheme (integer packed ARGB)tertiaryColor- tertiary color of the color scheme (integer packed ARGB)quaternaryColor- quarternary color of the color scheme (integer packed ARGB)textColor- text color of the color scheme (integer packed ARGB)backgroundColor- the background color (integer packed ARGB)
-
-
Method Details
-
getColor1
public int getColor1()- Returns:
- primary color of the color scheme (integer packed ARGB)
-
getColor2
public int getColor2()- Returns:
- secondary color of the color scheme (integer packed ARGB)
-
getColor3
public int getColor3()- Returns:
- tertiary color of the color scheme (integer packed ARGB)
-
getColor4
public int getColor4()- Returns:
- fourth color of the color scheme (integer packed ARGB)
-
getColorText
public int getColorText()- Returns:
- text color of the color scheme (integer packed ARGB)
-
getColorBackground
public int getColorBackground()- Returns:
- background color of the scheme (integer packed ARGB)
-