Package pamViewFX.fxNodes
Class ColorSchemeFX
java.lang.Object
pamViewFX.fxNodes.ColorSchemeFX
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorSchemeFX
static ColorSchemeFX
static ColorSchemeFX
javafx.scene.paint.Color
get
(PamColorsFX.PamColor key) Get a particular colourjavafx.scene.paint.Color
getChannelColour
(int iCol) Get a channel colour, cycling through a fixed number of colours if the colour index is greater than then number of colours.javafx.scene.paint.Color
getLineColour
(int iCol) Get a line colour, cycling through a fixed number of colours if the colour index is greater than then number of colours.getName()
int
Get the number of whale coloursjavafx.scene.paint.Color
getWhaleColour
(int iCol) Get a whale colour, recycling through colours, but missing out 0 if the whale colour gets greater than the number of available coloursint
getWhaleColourIndex
(int iCol) void
put
(PamColorsFX.PamColor key, javafx.scene.paint.Color value) Set a whale colourvoid
Set a load of default colours.
-
Constructor Details
-
ColorSchemeFX
-
-
Method Details
-
put
Set a whale colour- Parameters:
key
- colour keyvalue
- colour value
-
get
Get a particular colour- Parameters:
key
- Colour key- Returns:
- a colour or null if not in table.
-
getName
- Returns:
- The colour scheme name
-
getWhaleColour
public javafx.scene.paint.Color getWhaleColour(int iCol) Get a whale colour, recycling through colours, but missing out 0 if the whale colour gets greater than the number of available colours- Parameters:
iCol
- colour index- Returns:
- colour
-
getNumWhaleColours
public int getNumWhaleColours()Get the number of whale colours- Returns:
- the number of whale colours
-
getChannelColour
public javafx.scene.paint.Color getChannelColour(int iCol) Get a channel colour, cycling through a fixed number of colours if the colour index is greater than then number of colours.- Parameters:
iCol
- colour index- Returns:
- Colour
-
getLineColour
public javafx.scene.paint.Color getLineColour(int iCol) Get a line colour, cycling through a fixed number of colours if the colour index is greater than then number of colours.- Parameters:
iCol
- colour index- Returns:
- Colour
-
setDefaults
public void setDefaults()Set a load of default colours. -
createDefaultDayScheme
-
createDefaultPrintScheme
-
createDefaultNightScheme
-
getWhaleColourIndex
public int getWhaleColourIndex(int iCol)
-