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 GenericColorstatic GenericColorstatic GenericColorstatic final String[]static final GenericColor[]booleanstatic GenericColorstatic GenericColorstatic GenericColorFields 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 thisDisplaySchemeabstract ColorParametersReturns a copy of thisDisplaySchemewith a new nameprotected abstract GenericColorgetColor1(int rgb) protected abstract GenericColorgetColor3(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 booleanisValidFontName(String value) voidset(PanelData pd, ScriptToken st, String value) setColor(ScriptToken st, GenericColor color) Sets the color of an elementprotected GenericColorsetColorFromString(ScriptToken st, String value) voidsetFor(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
Colorof 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 thisDisplaySchemewith a new name- Parameters:
newName- the new name- Returns:
- a copy of this
DisplaySchemewith 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
-