Package gov.nih.mipav.model.algorithms
Class ContourPlot.TriangleDetails
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.TriangleDetails
- All Implemented Interfaces:
Cloneable
- Enclosing class:
ContourPlot
Specification of a triangle which comprises vertex locations, colors and picking color.
- Author:
- hageldave
-
Field Summary
FieldsModifier and TypeFieldDescriptionint -
Constructor Summary
ConstructorsConstructorDescriptionTriangleDetails(double x0, double y0, double x1, double y1, double x2, double y2) TriangleDetails(Point2D p0, Point2D p1, Point2D p2) -
Method Summary
Modifier and TypeMethodDescriptionclone()copy()Returns a shallow copy of this triangle.setColor(int color) Sets the color of the triangle (all vertices)Sets the color the triangle (all vertices)setColor(IntSupplier color) Sets the color of the triangle (all vertices)setColor0(int color) Sets the color of vertex 0Sets the color of vertex 0setColor0(IntSupplier color) Sets the color for vertex 0setColor1(int color) Sets the color of vertex 1Sets the color of vertex 1setColor1(IntSupplier color) Sets the color for vertex 1setColor2(int color) Sets the color of vertex 2Sets the color of vertex 2setColor2(IntSupplier color) Sets the color for vertex 2setPickColor(int pickID) Sets the picking color.
-
Field Details
-
p0
-
p1
-
p2
-
c0
-
c1
-
c2
-
pickColor
public int pickColor
-
-
Constructor Details
-
TriangleDetails
-
TriangleDetails
public TriangleDetails(double x0, double y0, double x1, double y1, double x2, double y2)
-
-
Method Details
-
copy
Returns a shallow copy of this triangle.- Returns:
- copy of this triangle
-
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 triangle (seeContourPlot.Trianglesfor details)- Returns:
- this for chaining
-
setColor0
Sets the color for vertex 0- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor1
Sets the color for vertex 1- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor2
Sets the color for vertex 2- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor
Sets the color of the triangle (all vertices)- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor0
Sets the color of vertex 0- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor1
Sets the color of vertex 1- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor2
Sets the color of vertex 2- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor
Sets the color of the triangle (all vertices)- Parameters:
color- integer packed ARGB color value (e.g. 0xff00ff00 = opaque green)- Returns:
- this for chaining
-
setColor0
Sets the color of vertex 0- Parameters:
color- of v0- Returns:
- this for chaining
-
setColor1
Sets the color of vertex 1- Parameters:
color- of v1- Returns:
- this for chaining
-
setColor2
Sets the color of vertex 2- Parameters:
color- of v2- Returns:
- this for chaining
-
setColor
Sets the color the triangle (all vertices)- Parameters:
color- of the triangle- Returns:
- this for chaining
-