Package gov.nih.mipav.model.algorithms
Class ContourPlot.ColorScheme
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.ContourPlot.ColorScheme
-
- Enclosing class:
- ContourPlot
public class ContourPlot.ColorScheme extends java.lang.Object
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 predefinedContourPlot.DefaultColorScheme
or to define custom colors. The color scheme contains five different color attributes, which can be accessed by the respective components.- Author:
- lucareichmann
-
-
Constructor Summary
Constructors Constructor Description ColorScheme(int primaryColor, int secondaryColor, int tertiaryColor, int quaternaryColor, int textColor, int backgroundColor)
Constructor for defining a new color scheme.ColorScheme(java.awt.Color primaryColor, java.awt.Color secondaryColor, java.awt.Color tertiaryColor, java.awt.Color quaternaryColor, java.awt.Color textColor, java.awt.Color backgroundColor)
Constructor for defining a new color scheme.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColor1()
int
getColor2()
int
getColor3()
int
getColor4()
int
getColorBackground()
int
getColorText()
-
-
-
Constructor Detail
-
ColorScheme
public ColorScheme(java.awt.Color primaryColor, java.awt.Color secondaryColor, java.awt.Color tertiaryColor, java.awt.Color quaternaryColor, java.awt.Color textColor, java.awt.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 Detail
-
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)
-
-