Package jspecview.common
Class ColorParameters
java.lang.Object
jspecview.common.Parameters
jspecview.common.ColorParameters
- Direct Known Subclasses:
AwtParameters
,JsParameters
This a representation of the Display Scheme for the spectral display.
- Author:
- Debbie-Ann Facey, Khari A. Bryan, Prof Robert J. Lancashire
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic GenericColor
static GenericColor
static GenericColor
static final String[]
static final GenericColor[]
boolean
static GenericColor
static GenericColor
static GenericColor
Fields inherited from class jspecview.common.Parameters
htBooleans, integralDrawAll, integralMinY, integralOffset, integralRange, name, peakListInterpolation, peakListThreshold, precision, viewOffset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a copy of thisDisplayScheme
abstract ColorParameters
Returns a copy of thisDisplayScheme
with a new nameprotected abstract GenericColor
getColor1
(int rgb) protected abstract GenericColor
getColor3
(int r, int g, int b) getColorFromString
(String name) Gets the color of an element in the schemegetFontName
(ScriptToken st, String value) protected GenericColor[]
getPlotColors
(String plotColorsStr) protected abstract boolean
isValidFontName
(String value) void
set
(PanelData pd, ScriptToken st, String value) setColor
(ScriptToken st, GenericColor color) Sets the color of an elementprotected GenericColor
setColorFromString
(ScriptToken st, String value) void
setFor
(JSVPanel jsvp, ColorParameters ds, boolean includeMeasures) Methods inherited from class jspecview.common.Parameters
getBoolean, getBooleans, getTFToggle, isMatch, isTrue, putInfo, setBoolean, setName, setP
-
Field Details
-
titleFontName
-
displayFontName
-
elementColors
-
plotColors
-
isDefault
public boolean isDefault -
BLACK
-
RED
-
LIGHT_GRAY
-
DARK_GRAY
-
BLUE
-
WHITE
-
defaultPlotColors
-
defaultPlotColorNames
-
-
Constructor Details
-
ColorParameters
public ColorParameters()
-
-
Method Details
-
getColor3
-
getColor1
-
isValidFontName
-
setFor
-
set
-
getElementColor
Gets the color of an element in the scheme- Parameters:
st
-- Returns:
- the
Color
of the element
-
setColor
Sets the color of an element- Parameters:
st
-color
- the color the element should have- Returns:
- color object
-
copy
Returns a copy of thisDisplayScheme
with a new name- Parameters:
newName
- the new name- Returns:
- a copy of this
DisplayScheme
with a new name
-
copy
Returns a copy of thisDisplayScheme
- Returns:
- a copy of this
DisplayScheme
-
setElementColors
-
getColorFromString
-
getPlotColors
- Parameters:
plotColorsStr
-- Returns:
- Color[]
-
setColorFromString
- Parameters:
st
-value
-- Returns:
- color object
-
getFontName
- Parameters:
st
-value
-- Returns:
- font object
-