Package pamViewFX.fxNodes
Class ColorSchemeFX
java.lang.Object
pamViewFX.fxNodes.ColorSchemeFX
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javafx.scene.paint.Color[]
protected javafx.scene.paint.Color[]
protected final int
protected javafx.scene.paint.Color[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorSchemeFX
static ColorSchemeFX
static ColorSchemeFX
javafx.scene.paint.Color
get
(PamColorsFX.PamColor key) Get a particular colourprotected javafx.scene.paint.Color[]
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.protected javafx.scene.paint.Color[]
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 coloursprotected javafx.scene.paint.Color[]
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 coloursint
getWhaleColourIndex
(int iCol) void
put
(PamColorsFX.PamColor key, javafx.scene.paint.Color value) Set a whale colourprotected void
setChannelColors
(javafx.scene.paint.Color[] channelColors) void
Set a load of default colours.protected void
setLineColors
(javafx.scene.paint.Color[] lineColors) protected void
setWhaleColors
(javafx.scene.paint.Color[] whaleColors)
-
Field Details
-
Constructor Details
-
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
-
getChannelColors
protected javafx.scene.paint.Color[] getChannelColors()- Returns:
- the channelColors
-
setChannelColors
protected void setChannelColors(javafx.scene.paint.Color[] channelColors) - Parameters:
channelColors
- the channelColors to set
-
getLineColors
protected javafx.scene.paint.Color[] getLineColors()- Returns:
- the lineColors
-
setLineColors
protected void setLineColors(javafx.scene.paint.Color[] lineColors) - Parameters:
lineColors
- the lineColors to set
-
getWhaleColors
protected javafx.scene.paint.Color[] getWhaleColors()- Returns:
- the whaleColors
-
setWhaleColors
protected void setWhaleColors(javafx.scene.paint.Color[] whaleColors) - Parameters:
whaleColors
- the whaleColors to set
-
setDefaults
public void setDefaults()Set a load of default colours. -
createDefaultDayScheme
-
createDefaultPrintScheme
-
createDefaultNightScheme
-
getWhaleColourIndex
public int getWhaleColourIndex(int iCol)
-