Class ColorGradient


  • public class ColorGradient
    extends java.lang.Object
    Author:
    braeun
    • Field Detail

      • RAINBOW

        public static final ColorGradient RAINBOW
        Rainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.
      • TOPO

        public static final ColorGradient TOPO
        colour scheme 'topography'
      • TOPO_EXT

        public static final ColorGradient TOPO_EXT
        colour scheme 'extended topography'
      • WHITE_BLACK

        public static final ColorGradient WHITE_BLACK
        White to black gradient.
      • BLACK_WHITE

        public static final ColorGradient BLACK_WHITE
        Black to white gradient.
      • HOT

        public static final ColorGradient HOT
        Black to white thermal-inspired gradient.
      • BLUERED

        public static final ColorGradient BLUERED
        BLUE -> PURPLE -> RED
      • SUNRISE

        public static final ColorGradient SUNRISE
        Red, yellow, white.
    • Constructor Detail

      • ColorGradient

        public ColorGradient​(java.lang.String name,
                             javafx.scene.paint.Stop... stops)
        Creates a new instance of ColorGradient.
        Parameters:
        name - name of gradient
        stops - the gradient's color specification; should contain at least two stops with offsets between 0.0 and 1.0
        See Also:
        getStops()
      • ColorGradient

        public ColorGradient​(javafx.scene.paint.Stop... stops)
        Creates a new instance of ColorGradient.
        Parameters:
        stops - the gradient's color specification; should contain at least two stops with offsets between 0.0 and 1.0
        See Also:
        getStops()
      • ColorGradient

        public ColorGradient​(java.lang.String name,
                             java.util.List<javafx.scene.paint.Stop> stops)
        Creates a new instance of ColorGradient.
        Parameters:
        name - name of gradient
        stops - the gradient's color specification; should contain at least two stops with offsets between 0.0 and 1.0
        See Also:
        getStops()
      • ColorGradient

        public ColorGradient​(java.util.List<javafx.scene.paint.Stop> stops)
        Creates a new instance of ColorGradient.**
        Parameters:
        stops - the gradient's color specification; should contain at least* two stops with offsets between 0.0 and 1.0*
        See Also:
        getStops()
    • Method Detail

      • colorGradients

        public static java.util.List<ColorGradient> colorGradients()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getStops

        public java.util.List<javafx.scene.paint.Stop> getStops()
        Returns the gradient stops.
        Returns:
        list of stop colours
        See Also:
        LinearGradient.getStops()