Class ContourPlot.PointDetails

java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.PointDetails
All Implemented Interfaces:
Cloneable
Enclosing class:
ContourPlot

public static class ContourPlot.PointDetails extends Object implements 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 Details

  • Constructor Details

    • PointDetails

      public PointDetails(Point2D location)
  • Method Details

    • copy

      public ContourPlot.PointDetails copy()
      Returns a shallow copy of this point with deep copied location.
      Returns:
      copy of this point
    • clone

      public ContourPlot.PointDetails clone()
      Overrides:
      clone in class Object
    • 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(DoubleSupplier rotation)
      Sets the rotation of the glyph for this point
      Parameters:
      rotation - in radian
      Returns:
      this for chaining
    • setScaling

      public ContourPlot.PointDetails setScaling(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(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(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