Class Plot3D.Layer<T extends Plot3D.Layer<T>>

java.lang.Object
com.eco.bio7.spatial.Plot3D.Layer<T>
Direct Known Subclasses:
Plot3D.Bars, Plot3D.Contour, Plot3D.FilledLine, Plot3D.Line, Plot3D.Pie, Plot3D.Scatter, Plot3D.Surface, Plot3D.Wireframe
Enclosing class:
Plot3D

public abstract static class Plot3D.Layer<T extends Plot3D.Layer<T>> extends Object
A layer of a plot with the common settings: a label (for the legend), a color, a color map and the transparency.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    alpha(double alpha)
    The opacity (0 transparent - 1 opaque).
    color(int rgb)
    One color (0xRRGGBB) for the layer (instead of a color map).
    colorMap(int[] ramp)
    The colors of the z values (e.g., PlotLegend.VIRIDIS) with a color bar (null = one color).
    label(String label)
    The label of the layer in the legend.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Layer

      public Layer()
  • Method Details

    • label

      public T label(String label)
      The label of the layer in the legend.
    • color

      public T color(int rgb)
      One color (0xRRGGBB) for the layer (instead of a color map).
    • colorMap

      public T colorMap(int[] ramp)
      The colors of the z values (e.g., PlotLegend.VIRIDIS) with a color bar (null = one color).
    • alpha

      public T alpha(double alpha)
      The opacity (0 transparent - 1 opaque).