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 intprotected javafx.scene.paint.Color[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorSchemeFXstatic ColorSchemeFXstatic ColorSchemeFXjavafx.scene.paint.Colorget(PamColorsFX.PamColor key) Get a particular colourprotected javafx.scene.paint.Color[]javafx.scene.paint.ColorgetChannelColour(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.ColorgetLineColour(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()intGet the number of whale coloursprotected javafx.scene.paint.Color[]javafx.scene.paint.ColorgetWhaleColour(int iCol) Get a whale colour, recycling through colours, but missing out 0 if the whale colour gets greater than the number of available coloursintgetWhaleColourIndex(int iCol) voidput(PamColorsFX.PamColor key, javafx.scene.paint.Color value) Set a whale colourprotected voidsetChannelColors(javafx.scene.paint.Color[] channelColors) voidSet a load of default colours.protected voidsetLineColors(javafx.scene.paint.Color[] lineColors) protected voidsetWhaleColors(javafx.scene.paint.Color[] whaleColors)
-
Field Details
-
channelColors
protected javafx.scene.paint.Color[] channelColors -
lineColors
protected javafx.scene.paint.Color[] lineColors -
NWHALECOLORS
protected final int NWHALECOLORS- See Also:
-
whaleColors
protected javafx.scene.paint.Color[] whaleColors
-
-
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
-
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)
-