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 ColourMappings 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 ColourMappings MONOCHROME1 and
MONOCHROME2 to be set
and updated according to local display conditions. The factors taken into account when setting
these ColourMappings 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
ColourMappings 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 ColourMappings 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
FieldsModifier and TypeFieldDescriptionstatic final ColourMappingTheColourMappingrepresenting a blue intensity scale.TheIndexColorModelused to contain the mapping.static final ColourMappingTheColourMappingrepresenting a cyan intensity scale.static final floatThe default gamma value of the computer display.static final floatThe default luminance of the computer display for a digital driver level (DDL) of 255, including the effects of ambient light.static final floatThe default luminance of the computer display for a digital driver level (DDL) of zero, including the effects of ambient light.static final ColourMappingTheColourMappingrepresenting a green intensity scale.static final ColourMappingTheColourMappingrepresenting a hot body (black to white via red) intensity scale.static final ColourMappingTheColourMappingrepresenting a magenta intensity scale.static final floatThe maximum display gamma value that is allowed.static final floatThe maximum value of display luminance (for a DDL of 255) that is allowed (including ambient light).static final floatThe minimum display gamma value that is allowed.static final floatThe minimum value of display luminance (for a DDL of zero) that is allowed (including ambient light).static final ColourMappingTheColourMappingrepresenting a grey (white to black) intensity scale.static final ColourMappingTheColourMappingrepresenting a grey (black to white) intensity scale.static final ColourMappingTheColourMappingrepresenting a rainbow of colours intensity scale.static final ColourMappingTheColourMappingrepresenting an alternative rainbow of colours intensity scale.static final ColourMappingTheColourMappingrepresenting a red intensity scale.static final ColourMappingTheColourMappingrepresenting a step change in intensity scale.static final ColourMappingTheColourMappingrepresenting a yellow intensity scale. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColourMappingaddUserColourMapping(Component parentComponent) Prompts the user to add a new user-definedColourMapping.clone()Returns an exact copy of thisColourMapping.voidcolourLookup(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 ofBufferedImageto put pixel colours to aBufferedImageObject.static voidcolourLookupColourPacked(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 ofBufferedImageto put pixel colours to aBufferedImageObject.static voidcolourLookupRGBByPlane(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 ofBufferedImageto put pixel colours to aBufferedImageObject.static voidcolourLookupRGBInterlaced(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 ofBufferedImageto put pixel colours to aBufferedImageObject.static voiddeleteUserColourMapping(ColourMapping colourMapping) Deletes one of the user-definedColourMappings and removes it from the list maintained in the user preferences.booleanstatic StringReturns a list of allColourMappingnames, as a comma-separated list.static List<ColourMapping>Returns ajava.util.List<ColourMapping>of allColourMappings, both built-in and imported by the user.static List<ColourMapping>Returns ajava.util.List<ColourMapping>of the built-inColourMappings.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 theColourMappingis MONOCHROME1 or MONOCHROME2, the String "MONOCHROME1" or "MONOCHROME2".static floatgetGamma()Returns the current gamma value setting for the display.intGet the height of the Icon used to represent thisColourMapping.intGet the width of the Icon used to represent thisColourMapping.static ColourMappinggetInstance(byte[] red, byte[] green, byte[] blue) Returns aColourMappingobject according to a set of red, green and blue gun values.static ColourMappinggetInstance(String name) Returns one of the "built-in"ColourMappings, selected according to its name.static ColourMappinggetKnownInstance(String name) Returns one of "known"ColourMappings (either built-in or user-defined), selected according to its name.static floatReturns the current maximmum display luminance setting for a digital driver level (DDL) of 255.static floatReturns the current minimum display luminance setting for a digital driver level (DDL) of zero.intReturns the number of slots in thisColourMapping.static ColourMappinggetUserInstance(String name) Returns one of the user-definedColourMappings, selected according to its name.static List<ColourMapping>Returns ajava.util.List<ColourMapping>of theColourMappings imported by the user and stored in the user preferences.inthashCode()invert()Creates a newColourMappingby inverting thisColourMapping.booleanReturnstrueif this is a grey scaleColourMapping.static voidRuns the self-test on this class.makeTransparent(byte alpha, boolean transparentBackground) Add transparency (an alpha channel) to an existingColourMapping.static ColourMappingnewInstance(String entriesString) Creates a newColourMappingobject from aStringrepresentation of theColourMappingname, or the list of entries in theColourMapping.voidPaints the Icon used to represent thisColourMapping.static voidSaves the display settings for the DICOM standard display in the user's preferences.static voidsetDisplaySettings(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
TheColourMappingrepresenting a grey (white to black) intensity scale. Normally used for plain x-ray images. -
MONOCHROME2
TheColourMappingrepresenting a grey (black to white) intensity scale. Normally used for MRI and CT images. -
HOBS
TheColourMappingrepresenting a hot body (black to white via red) intensity scale. -
RBOW1
TheColourMappingrepresenting a rainbow of colours intensity scale. -
RBOW2
TheColourMappingrepresenting an alternative rainbow of colours intensity scale. -
RED
TheColourMappingrepresenting a red intensity scale. -
GREEN
TheColourMappingrepresenting a green intensity scale. -
BLUE
TheColourMappingrepresenting a blue intensity scale. -
YELLOW
TheColourMappingrepresenting a yellow intensity scale. -
CYAN
TheColourMappingrepresenting a cyan intensity scale. -
MAGENTA
TheColourMappingrepresenting a magenta intensity scale. -
STEP
TheColourMappingrepresenting a step change in intensity scale. -
cm
TheIndexColorModelused to contain the mapping.
-
-
Method Details
-
getInstance
public static ColourMapping getInstance(byte[] red, byte[] green, byte[] blue) throws InvalidColourMappingException Returns aColourMappingobject according to a set of red, green and blue gun values. If the ColourMapping is equivalent to one of the built-inColourMappings, then the built-in is returned; otherwise a newColourMappingis 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
ColourMappingfrom 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 newColourMappingobject from aStringrepresentation of theColourMappingname, or the list of entries in theColourMapping.- Parameters:
entriesString- a String representing either:- The entries in the
ColourMappingwhich 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
ColourMappingfrom aStringrepresentation of theColourMappingname, or the list of entries in theColourMapping. - Throws:
InvalidColourMappingException- if the entries in theColourMappingcannot be parsed from theentriesString.
-
getInstance
Returns one of the "built-in"ColourMappings, selected according to its name. The case of the supplied name is ignored when selecting the mapping.Note: the name of a
ColourMappingcan be retrieved with thetoString()method.- Parameters:
name- the name of theColourMapping.- Returns:
- one of the built-in
ColourMappings, from its name. - Throws:
InvalidArgumentException- if the suppliednamedoes not match any of the names of the built-in mappings.
-
getUserInstance
Returns one of the user-definedColourMappings, selected according to its name. The case of the supplied name is ignored when selecting the mapping.Note: the name of a
ColourMappingcan be retrieved with thetoString()method.- Parameters:
name- the name of theColourMapping.- Returns:
- one of the user-defined
ColourMappings, from its name. - Throws:
InvalidArgumentException- if the suppliednamedoes not match any of the names of the user-defined mappings, or there are no user-defined mappings.
-
getKnownInstance
Returns one of "known"ColourMappings (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
ColourMappingcan be retrieved with thetoString()method.- Parameters:
name- the name of theColourMapping.- Returns:
- one of the known
ColourMappings, from its name. - Throws:
InvalidArgumentException- if the suppliednamedoes not match any of the names of the known mappings.
-
invert
Creates a newColourMappingby inverting thisColourMapping.- Returns:
- a new
ColourMappingthat 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
ColourMappingwith 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. AJFileChooserwill 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
ColourMappingis added to the list maintained in the user preferences.- Parameters:
parentComponent- theComponentthat will be used to position theJFileChooser.- Returns:
- a user-defined
ColourMappingselected 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-definedColourMappings and removes it from the list maintained in the user preferences.If the supplied
ColourMappingis not one of the current user-definedColourMappings, this method does nothing.- Parameters:
colourMapping- theColourMappings 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 ofBufferedImageto put pixel colours to aBufferedImageObject. TheBufferedImagemust 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-trueif 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-trueif the image should be interpolated in the horizontal and vertical directions with an interpolation factor of two. Bi-linear interpolation is used.complexMode- theComplexModefor 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 ofBufferedImageto put pixel colours to aBufferedImageObject.If the alpha value is 255 (totally opaque) then the
BufferedImagemust 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
BufferedImagemust 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-trueif 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-trueif 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 ofBufferedImageto put pixel colours to aBufferedImageObject.If the alpha value is 255 (totally opaque) then the
BufferedImagemust 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
BufferedImagemust 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-trueif 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-trueif 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 ofBufferedImageto put pixel colours to aBufferedImageObject.If the alpha value is 255 (totally opaque) then the
BufferedImagemust 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
BufferedImagemust 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-trueif 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-trueif 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()Returnstrueif this is a grey scaleColourMapping.- Returns:
trueif, 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:
getIconHeightin interfaceIcon- Returns:
- the height of the icon.
-
getIconWidth
public int getIconWidth()Get the width of the Icon used to represent thisColourMapping.- Specified by:
getIconWidthin 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
ColourMappingis MONOCHROME1 or MONOCHROME2, the String "MONOCHROME1" or "MONOCHROME2". In the case of these twoColourMappings, 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 specialColourMappingsMONOCHROME1orMONOCHROME2.
- The [R,G,B] entries for this
-
toString
Returns a String describing thisColourMapping.- Overrides:
toStringin classObject- Returns:
- a String describing this
ColourMapping.
-
clone
Returns an exact copy of thisColourMapping.- Overrides:
clonein classObject- Returns:
- a clone of this
ColourMappinginstance.
-
setDisplaySettings
public static void setDisplaySettings(float minLuminance, float maxLuminance, float gamma) throws IllegalArgumentException, InvalidColourMappingException Set the display characteristics. This updates theColourMappingsMONOCHROME1andMONOCHROME1to 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 theColourMappings 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-inColourMappings.- Returns:
- a list of built-in
ColourMappings.
-
getUserMappings
Returns ajava.util.List<ColourMapping>of theColourMappings imported by the user and stored in the user preferences.- Returns:
- a list of imported
ColourMappings.
-
getAllColourMappings
Returns ajava.util.List<ColourMapping>of allColourMappings, both built-in and imported by the user.- Returns:
- a list of all
ColourMappings known to the system.
-
getAllColourMapNames
Returns a list of allColourMappingnames, as a comma-separated list.- Returns:
- a comma-separated list of all
ColourMappingnames known to the system.
-
equals
-
hashCode
public int hashCode() -
main
Runs the self-test on this class.- Parameters:
args- the program arguments (ignored).
-