Package gov.nih.mipav.model.algorithms
Class ContourPlot.PointDetails
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.ContourPlot.PointDetails
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- ContourPlot
public static class ContourPlot.PointDetails extends java.lang.Object implements java.lang.CloneableClass for storing all the details of a single point to be rendered. This comprises location, color, scaling, glyph rotation and picking color.- Author:
- hageldave
-
-
Constructor Summary
Constructors Constructor Description PointDetails(java.awt.geom.Point2D location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContourPlot.PointDetailsclone()ContourPlot.PointDetailscopy()Returns a shallow copy of this point with deep copiedlocation.ContourPlot.PointDetailssetColor(int color)Sets this point's colorContourPlot.PointDetailssetColor(java.awt.Color color)Sets this point's colorContourPlot.PointDetailssetColor(java.util.function.IntSupplier color)Sets this point's colorContourPlot.PointDetailssetPickColor(int pickID)Sets the picking color.ContourPlot.PointDetailssetRotation(double rot)Sets the rotation of the glyph for this pointContourPlot.PointDetailssetRotation(java.util.function.DoubleSupplier rotation)Sets the rotation of the glyph for this pointContourPlot.PointDetailssetScaling(double scale)Sets the scaling of this point's glyphContourPlot.PointDetailssetScaling(java.util.function.DoubleSupplier scale)Sets the scaling of this point's glyph
-
-
-
Method Detail
-
copy
public ContourPlot.PointDetails copy()
Returns a shallow copy of this point with deep copiedlocation.- Returns:
- copy of this point
-
clone
public ContourPlot.PointDetails clone()
- Overrides:
clonein classjava.lang.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(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 (seeContourPlot.Pointsfor details)- Returns:
- this for chaining
-
-