Class ContourPlot.PointDetails

  • All Implemented Interfaces:
    java.lang.Cloneable
    Enclosing class:
    ContourPlot

    public static class ContourPlot.PointDetails
    extends java.lang.Object
    implements java.lang.Cloneable
    Class for storing all the details of a single point to be rendered. This comprises location, color, scaling, glyph rotation and picking color.
    Author:
    hageldave
    • Field Detail

      • location

        public java.awt.geom.Point2D location
      • rot

        public java.util.function.DoubleSupplier rot
      • scale

        public java.util.function.DoubleSupplier scale
      • color

        public java.util.function.IntSupplier color
      • pickColor

        public int pickColor
    • Constructor Detail

      • PointDetails

        public PointDetails​(java.awt.geom.Point2D location)
    • Method Detail

      • setRotation

        public ContourPlot.PointDetails setRotation​(double rot)
        Sets the rotation of the glyph for this point
        Parameters:
        rot - rotation in radian
        Returns:
        this for chaining
      • setRotation

        public ContourPlot.PointDetails setRotation​(java.util.function.DoubleSupplier rotation)
        Sets the rotation of the glyph for this point
        Parameters:
        rotation - in radian
        Returns:
        this for chaining
      • setScaling

        public ContourPlot.PointDetails setScaling​(java.util.function.DoubleSupplier scale)
        Sets the scaling of this point's glyph
        Parameters:
        scale - scaling
        Returns:
        this for chaining
      • setScaling

        public ContourPlot.PointDetails setScaling​(double scale)
        Sets the scaling of this point's glyph
        Parameters:
        scale - scaling
        Returns:
        this for chaining
      • setColor

        public ContourPlot.PointDetails setColor​(java.util.function.IntSupplier color)
        Sets this point's color
        Parameters:
        color - integer packed ARGB color value of the glyph for the point (e.g. 0xff00ff00 = opaque green)
        Returns:
        this for chaining
      • setColor

        public ContourPlot.PointDetails setColor​(int color)
        Sets this point's color
        Parameters:
        color - integer packed ARGB color value of the glyph for the point (e.g. 0xff00ff00 = opaque green)
        Returns:
        this for chaining
      • setColor

        public ContourPlot.PointDetails setColor​(java.awt.Color color)
        Sets this point's color
        Parameters:
        color - of this point's glyph
        Returns:
        this for chaining
      • setPickColor

        public ContourPlot.PointDetails setPickColor​(int pickID)
        Sets the picking color. When a non 0 transparent color is specified its alpha channel will be set to 0xff to make it opaque.
        Parameters:
        pickID - picking color of the point (see ContourPlot.Points for details)
        Returns:
        this for chaining