Package gov.nih.mipav.model.algorithms
Class ContourPlot.SegmentDetails
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.SegmentDetails
- All Implemented Interfaces:
Cloneable
- Enclosing class:
ContourPlot
Specification of a line segment which comprises vertex locations, colors, picking color, and thicknesses.
- Author:
- hageldave
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()copy()setColor(int color) Sets the color of the segment (start and end point)Sets the color of the segment (start and end point)setColor(IntSupplier color) Sets the color of the segment (start and end point)setColor0(int color) Sets the color at the starting point of the segmentSets the color at the starting point of the segmentsetColor0(IntSupplier color) Sets the color at the starting point of the segmentsetColor1(int color) Sets the color at the starting point of the segmentSets the color at the end point of the segmentsetColor1(IntSupplier color) Sets the color at the end point of the segmentsetPickColor(int pickID) Sets the picking color.setThickness(double t) setThickness(double t0, double t1) setThickness(DoubleSupplier t0, DoubleSupplier t1) protected DoubleSuppliersup4thick(double t)
-
Field Details
-
PREDEFINED_THICKNESSES
-
p0
-
p1
-
color0
-
color1
-
thickness0
-
thickness1
-
pickColor
public int pickColor
-
-
Constructor Details
-
SegmentDetails
-
-
Method Details
-
copy
- Returns:
- copy of this segment
-
clone
-
setPickColor
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 (seeContourPlot.Linesfor details)- Returns:
- this for chaining
-
setColor0
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
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
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
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
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
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
Sets the color at the starting point of the segment- Parameters:
color- for starting point- Returns:
- this for chaining
-
setColor1
Sets the color at the end point of the segment- Parameters:
color- for end point- Returns:
- this for chaining
-
setColor
Sets the color of the segment (start and end point)- Parameters:
color- of the segment- Returns:
- this for chaining
-
setThickness
-
setThickness
-
setThickness
-
setThickness
-
sup4thick
-