Class ColorSchemeFX

java.lang.Object
pamViewFX.fxNodes.ColorSchemeFX
All Implemented Interfaces:
Serializable, Cloneable

public class ColorSchemeFX extends Object implements Serializable, Cloneable
See Also:
  • Constructor Details

    • ColorSchemeFX

      public ColorSchemeFX(String name)
  • Method Details

    • put

      public void put(PamColorsFX.PamColor key, javafx.scene.paint.Color value)
      Set a whale colour
      Parameters:
      key - colour key
      value - colour value
    • get

      public javafx.scene.paint.Color get(PamColorsFX.PamColor key)
      Get a particular colour
      Parameters:
      key - Colour key
      Returns:
      a colour or null if not in table.
    • getName

      public String 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

      public static ColorSchemeFX createDefaultDayScheme()
    • createDefaultPrintScheme

      public static ColorSchemeFX createDefaultPrintScheme()
    • createDefaultNightScheme

      public static ColorSchemeFX createDefaultNightScheme()
    • getWhaleColourIndex

      public int getWhaleColourIndex(int iCol)