Package gov.nih.mipav.model.algorithms
Class ContourPlot.PointDetails
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.PointDetails
- All Implemented Interfaces:
Cloneable
- Enclosing class:
ContourPlot
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 Summary
FieldsModifier and TypeFieldDescriptionint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()copy()Returns a shallow copy of this point with deep copiedlocation.setColor(int color) Sets this point's colorSets this point's colorsetColor(IntSupplier color) Sets this point's colorsetPickColor(int pickID) Sets the picking color.setRotation(double rot) Sets the rotation of the glyph for this pointsetRotation(DoubleSupplier rotation) Sets the rotation of the glyph for this pointsetScaling(double scale) Sets the scaling of this point's glyphsetScaling(DoubleSupplier scale) Sets the scaling of this point's glyph
-
Field Details
-
location
-
rot
-
scale
-
color
-
pickColor
public int pickColor
-
-
Constructor Details
-
PointDetails
-
-
Method Details
-
copy
Returns a shallow copy of this point with deep copiedlocation.- Returns:
- copy of this point
-
clone
-
setRotation
Sets the rotation of the glyph for this point- Parameters:
rot- rotation in radian- Returns:
- this for chaining
-
setRotation
Sets the rotation of the glyph for this point- Parameters:
rotation- in radian- Returns:
- this for chaining
-
setScaling
Sets the scaling of this point's glyph- Parameters:
scale- scaling- Returns:
- this for chaining
-
setScaling
Sets the scaling of this point's glyph- Parameters:
scale- scaling- Returns:
- this for chaining
-
setColor
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
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
Sets this point's color- Parameters:
color- of this point's glyph- Returns:
- this for chaining
-
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 point (seeContourPlot.Pointsfor details)- Returns:
- this for chaining
-