Class ColourMapping
ColourMapping
class represents a mapping from pixel presentation values (PPVs)
to colours that are shown on a display device, such as a computer monitor.
The class has a number of built-in colour mappings, and contains the methods to create
custom colour mappings, and to import new ColourMapping
s from disk. This class
also contains methods to convert from a set of pixel
presentation values (pixel values) to colour values that should be displayed on screen.
Included is the capability to set the display characteristics
(approximately) according to the DICOM Grayscale Standard Display Function, as described
in Part 14 of the DICOM standards. This allows the
two ColourMapping
s MONOCHROME1
and
MONOCHROME2
to be set
and updated according to local display conditions. The factors taken into account when setting
these ColourMapping
s are:
- The minimum luminance of the display under ambient lighting conditions.
- The maximum luminance of the display under ambient lighting conditions.
- The gamma chanracteristic of the display.
MONOCHROME1
and
MONOCHROME2
ColourMapping
s are adjusted to give a mapping of pixel PPVs
so that equal steps of PPV are given perceptually equal changes of image intensity.
The settings are stored in the user Preferences, on a host-by-host basis, and so should be set by every user for every computer that he or she uses.
N.B. no other ColourMapping
s are affected by the display settings.
This Class also implements Icon, so that the ColourMapping
can be used to generate
icons representing the ColourMapping
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ColourMapping
TheColourMapping
representing a blue intensity scale.TheIndexColorModel
used to contain the mapping.static final ColourMapping
TheColourMapping
representing a cyan intensity scale.static final float
The default gamma value of the computer display.static final float
The default luminance of the computer display for a digital driver level (DDL) of 255, including the effects of ambient light.static final float
The default luminance of the computer display for a digital driver level (DDL) of zero, including the effects of ambient light.static final ColourMapping
TheColourMapping
representing a green intensity scale.static final ColourMapping
TheColourMapping
representing a hot body (black to white via red) intensity scale.static final ColourMapping
TheColourMapping
representing a magenta intensity scale.static final float
The maximum display gamma value that is allowed.static final float
The maximum value of display luminance (for a DDL of 255) that is allowed (including ambient light).static final float
The minimum display gamma value that is allowed.static final float
The minimum value of display luminance (for a DDL of zero) that is allowed (including ambient light).static final ColourMapping
TheColourMapping
representing a grey (white to black) intensity scale.static final ColourMapping
TheColourMapping
representing a grey (black to white) intensity scale.static final ColourMapping
TheColourMapping
representing a rainbow of colours intensity scale.static final ColourMapping
TheColourMapping
representing an alternative rainbow of colours intensity scale.static final ColourMapping
TheColourMapping
representing a red intensity scale.static final ColourMapping
TheColourMapping
representing a step change in intensity scale.static final ColourMapping
TheColourMapping
representing a yellow intensity scale. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColourMapping
addUserColourMapping
(Component parentComponent) Prompts the user to add a new user-definedColourMapping
.clone()
Returns an exact copy of thisColourMapping
.void
colourLookup
(int nCols, int nRows, Object pixValues, int offset, PixelDataType dataType, byte[] bytePixel, double min, double max, boolean inverted, BitSet mask, boolean interpolate, ComplexMode complexMode) Converts an array of pixel intensity values into the byte values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.static void
colourLookupColourPacked
(int nCols, int nRows, byte[] pixValues, int offset, int[] intPixel, short min, short max, boolean inverted, BitSet mask, boolean interpolate, byte alpha, boolean transparentBackground) Converts an array of pixel intensity values into the int values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.static void
colourLookupRGBByPlane
(int nCols, int nRows, byte[] pixValues, int offset, int[] intPixel, short min, short max, boolean inverted, BitSet mask, boolean interpolate, byte alpha, boolean transparentBackground) Converts an array of pixel intensity values into the int values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.static void
colourLookupRGBInterlaced
(int nCols, int nRows, byte[] pixValues, int offset, int[] intPixel, short min, short max, boolean inverted, BitSet mask, boolean interpolate, byte alpha, boolean transparentBackground) Converts an array of pixel intensity values into the int values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.static void
deleteUserColourMapping
(ColourMapping colourMapping) Deletes one of the user-definedColourMapping
s and removes it from the list maintained in the user preferences.boolean
static String
Returns a list of allColourMapping
names, as a comma-separated list.static List<ColourMapping>
Returns ajava.util.List<ColourMapping>
of allColourMapping
s, both built-in and imported by the user.static List<ColourMapping>
Returns ajava.util.List<ColourMapping>
of the built-inColourMapping
s.getColour
(short slot) Returns the colour in a particular slot of the colour mapping.Returns a String showing either: The [R,G,B] entries for thisColourMapping
, or If theColourMapping
is MONOCHROME1 or MONOCHROME2, the String "MONOCHROME1" or "MONOCHROME2".static float
getGamma()
Returns the current gamma value setting for the display.int
Get the height of the Icon used to represent thisColourMapping
.int
Get the width of the Icon used to represent thisColourMapping
.static ColourMapping
getInstance
(byte[] red, byte[] green, byte[] blue) Returns aColourMapping
object according to a set of red, green and blue gun values.static ColourMapping
getInstance
(String name) Returns one of the "built-in"ColourMapping
s, selected according to its name.static ColourMapping
getKnownInstance
(String name) Returns one of "known"ColourMapping
s (either built-in or user-defined), selected according to its name.static float
Returns the current maximmum display luminance setting for a digital driver level (DDL) of 255.static float
Returns the current minimum display luminance setting for a digital driver level (DDL) of zero.int
Returns the number of slots in thisColourMapping
.static ColourMapping
getUserInstance
(String name) Returns one of the user-definedColourMapping
s, selected according to its name.static List<ColourMapping>
Returns ajava.util.List<ColourMapping>
of theColourMapping
s imported by the user and stored in the user preferences.int
hashCode()
invert()
Creates a newColourMapping
by inverting thisColourMapping
.boolean
Returnstrue
if this is a grey scaleColourMapping
.static void
Runs the self-test on this class.makeTransparent
(byte alpha, boolean transparentBackground) Add transparency (an alpha channel) to an existingColourMapping
.static ColourMapping
newInstance
(String entriesString) Creates a newColourMapping
object from aString
representation of theColourMapping
name, or the list of entries in theColourMapping
.void
Paints the Icon used to represent thisColourMapping
.static void
Saves the display settings for the DICOM standard display in the user's preferences.static void
setDisplaySettings
(float minLuminance, float maxLuminance, float gamma) Set the display characteristics.toString()
Returns a String describing thisColourMapping
.
-
Field Details
-
MIN_LUMINANCE
public static final float MIN_LUMINANCEThe minimum value of display luminance (for a DDL of zero) that is allowed (including ambient light).- See Also:
-
MAX_LUMINANCE
public static final float MAX_LUMINANCEThe maximum value of display luminance (for a DDL of 255) that is allowed (including ambient light).- See Also:
-
MIN_GAMMA
public static final float MIN_GAMMAThe minimum display gamma value that is allowed.- See Also:
-
MAX_GAMMA
public static final float MAX_GAMMAThe maximum display gamma value that is allowed.- See Also:
-
DEFAULT_MIN_LUMINANCE
public static final float DEFAULT_MIN_LUMINANCEThe default luminance of the computer display for a digital driver level (DDL) of zero, including the effects of ambient light.- See Also:
-
DEFAULT_MAX_LUMINANCE
public static final float DEFAULT_MAX_LUMINANCEThe default luminance of the computer display for a digital driver level (DDL) of 255, including the effects of ambient light.- See Also:
-
DEFAULT_GAMMA
public static final float DEFAULT_GAMMAThe default gamma value of the computer display. Display luminance (excluding the effect of ambient light) is assumed to be proportional to the DDL raised to the power of gamma.- See Also:
-
MONOCHROME1
TheColourMapping
representing a grey (white to black) intensity scale. Normally used for plain x-ray images. -
MONOCHROME2
TheColourMapping
representing a grey (black to white) intensity scale. Normally used for MRI and CT images. -
HOBS
TheColourMapping
representing a hot body (black to white via red) intensity scale. -
RBOW1
TheColourMapping
representing a rainbow of colours intensity scale. -
RBOW2
TheColourMapping
representing an alternative rainbow of colours intensity scale. -
RED
TheColourMapping
representing a red intensity scale. -
GREEN
TheColourMapping
representing a green intensity scale. -
BLUE
TheColourMapping
representing a blue intensity scale. -
YELLOW
TheColourMapping
representing a yellow intensity scale. -
CYAN
TheColourMapping
representing a cyan intensity scale. -
MAGENTA
TheColourMapping
representing a magenta intensity scale. -
STEP
TheColourMapping
representing a step change in intensity scale. -
cm
TheIndexColorModel
used to contain the mapping.
-
-
Method Details
-
getInstance
public static ColourMapping getInstance(byte[] red, byte[] green, byte[] blue) throws InvalidColourMappingException Returns aColourMapping
object according to a set of red, green and blue gun values. If the ColourMapping is equivalent to one of the built-inColourMapping
s, then the built-in is returned; otherwise a newColourMapping
is created and returned.- Parameters:
red
- the red gun values for each slot in theColourMapping
.green
- the green gun values for each slot in theColourMapping
.blue
- the blue gun values for each slot in theColourMapping
.- Returns:
- a
ColourMapping
from a set of red, green and blue gun values. - Throws:
InvalidColourMappingException
- if the lengths of the red, green and blue arrays are unequal, or if the length of the arrays is greater than 256, or less than 1.
-
newInstance
Creates a newColourMapping
object from aString
representation of theColourMapping
name, or the list of entries in theColourMapping
.- Parameters:
entriesString
- a String representing either:- The entries in the
ColourMapping
which is of the form:
{R1,G1,B1}{R2,G2,B2}..{RN,GN,BN}
. - The name of a ColourMapping. Currently-recognised names are:
- MONOCHROME1
- MONOCHROME2
- The entries in the
- Returns:
- a
ColourMapping
from aString
representation of theColourMapping
name, or the list of entries in theColourMapping
. - Throws:
InvalidColourMappingException
- if the entries in theColourMapping
cannot be parsed from theentriesString
.
-
getInstance
Returns one of the "built-in"ColourMapping
s, selected according to its name. The case of the supplied name is ignored when selecting the mapping.Note: the name of a
ColourMapping
can be retrieved with thetoString()
method.- Parameters:
name
- the name of theColourMapping
.- Returns:
- one of the built-in
ColourMapping
s, from its name. - Throws:
InvalidArgumentException
- if the suppliedname
does not match any of the names of the built-in mappings.
-
getUserInstance
Returns one of the user-definedColourMapping
s, selected according to its name. The case of the supplied name is ignored when selecting the mapping.Note: the name of a
ColourMapping
can be retrieved with thetoString()
method.- Parameters:
name
- the name of theColourMapping
.- Returns:
- one of the user-defined
ColourMapping
s, from its name. - Throws:
InvalidArgumentException
- if the suppliedname
does not match any of the names of the user-defined mappings, or there are no user-defined mappings.
-
getKnownInstance
Returns one of "known"ColourMapping
s (either built-in or user-defined), selected according to its name. The case of the supplied name is ignored when selecting the mapping.Note: the name of a
ColourMapping
can be retrieved with thetoString()
method.- Parameters:
name
- the name of theColourMapping
.- Returns:
- one of the known
ColourMapping
s, from its name. - Throws:
InvalidArgumentException
- if the suppliedname
does not match any of the names of the known mappings.
-
invert
Creates a newColourMapping
by inverting thisColourMapping
.- Returns:
- a new
ColourMapping
that is an inverted version of this one.
-
makeTransparent
Add transparency (an alpha channel) to an existingColourMapping
.- Parameters:
alpha
- the transparency value as un unsigned byte value.transparentBackground
- if the background (colour values slot 0) is to be completely transparent.- Returns:
- a new
ColourMapping
with the specified transparency (alpha channel). The same alpha applies to all entries in theColourMapping
.
-
addUserColourMapping
public static ColourMapping addUserColourMapping(Component parentComponent) throws InvalidColourMappingException, FileNotFoundException, IOException, CancelledException Prompts the user to add a new user-definedColourMapping
. AJFileChooser
will pop up allowing the user to select the file containing theColourMapping
, followed by an input dialog allowing the user to set the name of theColourMapping
.The new
ColourMapping
is added to the list maintained in the user preferences.- Parameters:
parentComponent
- theComponent
that will be used to position theJFileChooser
.- Returns:
- a user-defined
ColourMapping
selected by the user. - Throws:
InvalidColourMappingException
- if the file format is bad.FileNotFoundException
- if the supplied filename cannot be found.IOException
- if an I/O error occurs.CancelledException
- if the user cancels the operation.
-
deleteUserColourMapping
Deletes one of the user-definedColourMapping
s and removes it from the list maintained in the user preferences.If the supplied
ColourMapping
is not one of the current user-definedColourMapping
s, this method does nothing.- Parameters:
colourMapping
- theColourMapping
s to be removed.
-
colourLookup
public void colourLookup(int nCols, int nRows, Object pixValues, int offset, PixelDataType dataType, byte[] bytePixel, double min, double max, boolean inverted, BitSet mask, boolean interpolate, ComplexMode complexMode) throws IllegalArgumentException Converts an array of pixel intensity values into the byte values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object. TheBufferedImage
must be of typeBufferedImage.TYPE_BYTE_INDEXED
, with each pixel's colour being defined the by the index into the indexed colour mapping.- Parameters:
nCols
- the number of columns in the array of pixel intensity values.nRows
- the number of rows in the array of pixel intensity values.pixValues
- an array of pixel intensity values to look up.offset
- an offset (in pixels) into the array of pixValues at which to start the lookup.dataType
- the PixelDataType data type of the pixel intensity values.bytePixel
- the byte array that will contain the intensity values as mapped by theColourMapping
. If interpolation isfalse
, then bytePixel should have the same length as pixValue. If interpolation istrue
, then bytePixel should be four times as long aspixValues
.min
- the pixel intensity that maps to the bottom (lowest value) of theColourMapping
.max
- the pixel intensity that maps to the top (highest value) of theColourMapping
.inverted
-true
if the mapping of colours should be inverted.mask
- if non-null, then this is used to mask pixels so that they appear the same colour as the background.interpolate
-true
if the image should be interpolated in the horizontal and vertical directions with an interpolation factor of two. Bi-linear interpolation is used.complexMode
- theComplexMode
for complex images.- Throws:
IllegalArgumentException
- if the colours cannot be looked up.
-
colourLookupRGBInterlaced
public static void colourLookupRGBInterlaced(int nCols, int nRows, byte[] pixValues, int offset, int[] intPixel, short min, short max, boolean inverted, BitSet mask, boolean interpolate, byte alpha, boolean transparentBackground) Converts an array of pixel intensity values into the int values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.If the alpha value is 255 (totally opaque) then the
BufferedImage
must be of typeBufferedImage.TYPE_INT_RGB
, with each pixel's colour being defined by the R,G,B values packed into each int in the array.If the alpha value is other than 255 (transparent) then the
BufferedImage
must be of typeBufferedImage.TYPE_INT_ARGB
, with each pixel's colour being defined by the alpha,R,G,B values packed into each int in the array.The brightness and contrast of the image may be adjusted by setting min and max. These would be set to 0 and 255 respectively to show the full colour range. If these are changed, the colours are remapped so that the colour at the min is remapped to zero gun value, and the colour at the max is remapped to the gun value 255.
- Parameters:
nCols
- the number of columns in the array of pixel intensity values.nRows
- the number of rows in the array of pixel intensity values.pixValues
- an array of pixel intensity values to look up.offset
- an offset (in pixels) into the array of pixValues at which to start the lookup.intPixel
- the int array that will contain the colour values. If interpolation isfalse
, then intPixel should have the same length as pixValue. If interpolation istrue
, then bytePixel should be four times as long aspixValues
.min
- the colour intensity that maps to a gun value of zero.max
- the colour intensity that maps to a gun value of 255.inverted
-true
if the mapping of colours should be inverted.mask
- if non-null, then this is used to mask pixels so that they appear the same colour as the background.interpolate
-true
if the image should be interpolated in the horizontal and vertical directions with an interpolation factor of two. Bi-linear interpolation is used.alpha
- the opacity value. 0 is totally transparent and 255 is totally opaque.transparentBackground
- iftrue
, then any black pixels will be set completely transparent.
-
colourLookupRGBByPlane
public static void colourLookupRGBByPlane(int nCols, int nRows, byte[] pixValues, int offset, int[] intPixel, short min, short max, boolean inverted, BitSet mask, boolean interpolate, byte alpha, boolean transparentBackground) Converts an array of pixel intensity values into the int values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.If the alpha value is 255 (totally opaque) then the
BufferedImage
must be of typeBufferedImage.TYPE_INT_RGB
, with each pixel's colour being defined by the R,G,B values packed into each int in the array.If the alpha value is other than 255 (transparent) then the
BufferedImage
must be of typeBufferedImage.TYPE_INT_ARGB
, with each pixel's colour being defined by the alpha,R,G,B values packed into each int in the array.The brightness and contrast of the image may be adjusted by setting min and max. These would be set to 0 and 255 respectively to show the full colour range. If these are changed, the colours are remapped so that the colour at the min is remapped to zero gun value, and the colour at the max is remapped to the gun value 255.
- Parameters:
nCols
- the number of columns in the array of pixel intensity values.nRows
- the number of rows in the array of pixel intensity values.pixValues
- an array of pixel intensity values to look up.offset
- an offset (in pixels) into the array of pixValues at which to start the lookup.intPixel
- the int array that will contain the colour values. If interpolation isfalse
, then intPixel should have the same length as pixValue. If interpolation istrue
, then bytePixel should be four times as long aspixValues
.min
- the colour intensity that maps to a gun value of zero.max
- the colour intensity that maps to a gun value of 255.inverted
-true
if the mapping of colours should be inverted.mask
- if non-null, then this is used to mask pixels so that they appear the same colour as the background.interpolate
-true
if the image should be interpolated in the horizontal and vertical directions with an interpolation factor of two. Bi-linear interpolation is used.alpha
- the opacity value. 0 is totally transparent and 255 is totally opaque.transparentBackground
- iftrue
, then any black pixels will be set completely transparent.
-
colourLookupColourPacked
public static void colourLookupColourPacked(int nCols, int nRows, byte[] pixValues, int offset, int[] intPixel, short min, short max, boolean inverted, BitSet mask, boolean interpolate, byte alpha, boolean transparentBackground) Converts an array of pixel intensity values into the int values that can then be used as an argument in theBufferedImage.getRaster().setDataElements()
method ofBufferedImage
to put pixel colours to aBufferedImage
Object.If the alpha value is 255 (totally opaque) then the
BufferedImage
must be of typeBufferedImage.TYPE_INT_RGB
, with each pixel's colour being defined by the R,G,B values packed into each int in the array.If the alpha value is other than 255 (transparent) then the
BufferedImage
must be of typeBufferedImage.TYPE_INT_ARGB
, with each pixel's colour being defined by the alpha,R,G,B values packed into each int in the array.The brightness and contrast of the image may be adjusted by setting min and max. These would be set to 0 and 255 respectively to show the full colour range. If these are changed, the colours are remapped so that the colour at the min is remapped to zero gun value, and the colour at the max is remapped to the gun value 255.
- Parameters:
nCols
- the number of columns in the array of pixel intensity values.nRows
- the number of rows in the array of pixel intensity values.pixValues
- an array of pixel intensity values to look up.offset
- an offset (in pixels) into the array of pixValues at which to start the lookup.intPixel
- the int array that will contain the colour values. If interpolation isfalse
, then intPixel should have the same length as pixValue. If interpolation istrue
, then bytePixel should be four times as long aspixValues
.min
- the colour intensity that maps to a gun value of zero.max
- the colour intensity that maps to a gun value of 255.inverted
-true
if the mapping of colours should be inverted.mask
- if non-null, then this is used to mask pixels so that they appear the same colour as the background.interpolate
-true
if the image should be interpolated in the horizontal and vertical directions with an interpolation factor of two. Bi-linear interpolation is used.alpha
- the opacity value. 0 is totally transparent and 255 is totally opaque.transparentBackground
- iftrue
, then any black pixels will be set completely transparent.
-
getNSlots
public int getNSlots()Returns the number of slots in thisColourMapping
.- Returns:
- the number of slots in this
ColourMapping
.
-
getColour
Returns the colour in a particular slot of the colour mapping.- Parameters:
slot
- the slot number of the colour mapping.- Returns:
- the Color at loction slot of the colour mapping.
-
isGreyScale
public boolean isGreyScale()Returnstrue
if this is a grey scaleColourMapping
.- Returns:
true
if, for all the slots in theColourMapping
, the red, green and blue components are all of equal intensity.
-
getIconHeight
public int getIconHeight()Get the height of the Icon used to represent thisColourMapping
.- Specified by:
getIconHeight
in interfaceIcon
- Returns:
- the height of the icon.
-
getIconWidth
public int getIconWidth()Get the width of the Icon used to represent thisColourMapping
.- Specified by:
getIconWidth
in interfaceIcon
- Returns:
- the width of the icon.
-
paintIcon
Paints the Icon used to represent thisColourMapping
. -
getEntriesString
Returns a String showing either:- The [R,G,B] entries for this
ColourMapping
, or - If the
ColourMapping
is MONOCHROME1 or MONOCHROME2, the String "MONOCHROME1" or "MONOCHROME2". In the case of these twoColourMapping
s, the mapping between pixel presentation values and gun values is not fixed, but depends on the characteristics of the display screen and ambient lighting conditions, as set by the user and stored in the user preferences on a host-by-host basis.
- Returns:
- a String showing the [R,G,B] entries for this
ColourMapping
, in the form:
{R1,G1,B1}{R2,G2,B2}...{RN,GN,BN}
, or the name of one the two specialColourMapping
sMONOCHROME1
orMONOCHROME2
.
- The [R,G,B] entries for this
-
toString
Returns a String describing thisColourMapping
.- Overrides:
toString
in classObject
- Returns:
- a String describing this
ColourMapping
.
-
clone
Returns an exact copy of thisColourMapping
.- Overrides:
clone
in classObject
- Returns:
- a clone of this
ColourMapping
instance.
-
setDisplaySettings
public static void setDisplaySettings(float minLuminance, float maxLuminance, float gamma) throws IllegalArgumentException, InvalidColourMappingException Set the display characteristics. This updates theColourMapping
sMONOCHROME1
andMONOCHROME1
to reflect the new settings for display and ambient lighting characteristics.- Parameters:
minLuminance
- the luminance level of the display for a digital driver level (DDL) of zero for the red, green and blue guns. This luminance includes the effects of any ambient light falling on the display.maxLuminance
- the luminance level of the display for a digital driver level (DDL) of 255 for the red, green and blue guns. This luminance includes the effects of any ambient light falling on the display.gamma
- the gamma characteristic for the display. The change in luminance of the display (from the minLuminance) is assumed to be proportional to the DDL raised to the power gamma.- Throws:
IllegalArgumentException
- if any of the arguments is outside the credible range for displays.InvalidColourMappingException
- if theColourMapping
s can't be set.
-
savePreferences
public static void savePreferences()Saves the display settings for the DICOM standard display in the user's preferences. The settings are saved on a per-host basis. -
getMinLuminance
public static float getMinLuminance()Returns the current minimum display luminance setting for a digital driver level (DDL) of zero.- Returns:
- the current setting of the display luminance under ambient lighting conditions for a black portion of the image.
-
getMaxLuminance
public static float getMaxLuminance()Returns the current maximmum display luminance setting for a digital driver level (DDL) of 255.- Returns:
- the current setting of the display luminance under ambient lighting conditions for a white portion of the image.
-
getGamma
public static float getGamma()Returns the current gamma value setting for the display. The luminance of the display is assumed to be preportional to the DDL raised to the power of gamma.- Returns:
- the current setting of the display gamma value.
-
getBuiltInMappings
Returns ajava.util.List<ColourMapping>
of the built-inColourMapping
s.- Returns:
- a list of built-in
ColourMapping
s.
-
getUserMappings
Returns ajava.util.List<ColourMapping>
of theColourMapping
s imported by the user and stored in the user preferences.- Returns:
- a list of imported
ColourMapping
s.
-
getAllColourMappings
Returns ajava.util.List<ColourMapping>
of allColourMapping
s, both built-in and imported by the user.- Returns:
- a list of all
ColourMapping
s known to the system.
-
getAllColourMapNames
Returns a list of allColourMapping
names, as a comma-separated list.- Returns:
- a comma-separated list of all
ColourMapping
names known to the system.
-
equals
-
hashCode
public int hashCode() -
main
Runs the self-test on this class.- Parameters:
args
- the program arguments (ignored).
-