Class ContourPlot.SegmentDetails

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

public class ContourPlot.SegmentDetails extends Object implements Cloneable
Specification of a line segment which comprises vertex locations, colors, picking color, and thicknesses.
Author:
hageldave
  • Field Details

  • Constructor Details

  • Method Details

    • copy

      Returns a shallow copy of this segment with deep copied positions p0 and p1.
      Returns:
      copy of this segment
    • clone

      Overrides:
      clone in class Object
    • setPickColor

      public ContourPlot.SegmentDetails 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 segment (see ContourPlot.Lines for details)
      Returns:
      this for chaining
    • setColor0

      public ContourPlot.SegmentDetails setColor0(IntSupplier color)
      Sets the color at the starting point of the segment
      Parameters:
      color - integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)
      Returns:
      this for chaining
    • setColor1

      public ContourPlot.SegmentDetails setColor1(IntSupplier color)
      Sets the color at the end point of the segment
      Parameters:
      color - integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)
      Returns:
      this for chaining
    • setColor

      public ContourPlot.SegmentDetails setColor(IntSupplier color)
      Sets the color of the segment (start and end point)
      Parameters:
      color - integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)
      Returns:
      this for chaining
    • setColor0

      public ContourPlot.SegmentDetails setColor0(int color)
      Sets the color at the starting point of the segment
      Parameters:
      color - integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)
      Returns:
      this for chaining
    • setColor1

      public ContourPlot.SegmentDetails setColor1(int color)
      Sets the color at the starting point of the segment
      Parameters:
      color - integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)
      Returns:
      this for chaining
    • setColor

      public ContourPlot.SegmentDetails setColor(int color)
      Sets the color of the segment (start and end point)
      Parameters:
      color - integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)
      Returns:
      this for chaining
    • setColor0

      public ContourPlot.SegmentDetails setColor0(Color color)
      Sets the color at the starting point of the segment
      Parameters:
      color - for starting point
      Returns:
      this for chaining
    • setColor1

      public ContourPlot.SegmentDetails setColor1(Color color)
      Sets the color at the end point of the segment
      Parameters:
      color - for end point
      Returns:
      this for chaining
    • setColor

      public ContourPlot.SegmentDetails setColor(Color color)
      Sets the color of the segment (start and end point)
      Parameters:
      color - of the segment
      Returns:
      this for chaining
    • setThickness

      public ContourPlot.SegmentDetails setThickness(double t)
    • setThickness

      public ContourPlot.SegmentDetails setThickness(DoubleSupplier t)
    • setThickness

      public ContourPlot.SegmentDetails setThickness(double t0, double t1)
    • setThickness

    • sup4thick

      protected DoubleSupplier sup4thick(double t)