Class HSVhexcone
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----CanvasDB
|
+----HSVhexcone
- public class HSVhexcone
- extends CanvasDB
This class produces the HSV hexcone component.
- See Also:
- CanvasDB
-
B
- Hexcone's vertices.
-
C
- Hexcone's vertices.
-
G
- Hexcone's vertices.
-
M
- Hexcone's vertices.
-
O
- Hexcone's vertices.
-
R
- Hexcone's vertices.
-
value
- Brightness value.
-
W
- Hexcone's vertices.
-
X0
- Vertices' coordinate grid.
-
X1
- Vertices' coordinate grid.
-
X2
- Vertices' coordinate grid.
-
XUNIT
- Horizontal unit measure in pixels.
-
Y
- Hexcone's vertices.
-
Y0
- Vertices' coordinate grid.
-
Y1
- Vertices' coordinate grid.
-
Y2
- Vertices' coordinate grid.
-
YUNIT
- Vertical unit measure in pixels.
-
HSVhexcone(float)
- Constructs the hexcone with argument.
-
between(Point, Point)
- Returns a point that lies on the line between p1 and p2,
at the distance |p1-p2| * value from p1.
-
connect(Point, Point, Graphics)
- Draws a line between two points.
-
drawHiddenLines(Graphics)
- Draws the hidden lines (dashed) of the hexcone.
-
drawSeenLines(Graphics)
- Draws the visible lines and vertices of the hexcone.
-
drawSlice(Graphics)
- Draws the hexagonal slicing plane on the hexcone.
-
insets()
- Overrides the default insets() method.
-
mark(Point, Color, Graphics)
- Draws a mark with specified color.
-
minimumSize()
- Overrides the default minimumSize() method.
-
paint(Graphics)
- Draws the entire hexcone.
-
preferredSize()
- Overrides the default preferredSize() method.
-
setValue(float)
- Sets brightness value.
XUNIT
static final int XUNIT
- Horizontal unit measure in pixels.
YUNIT
static final int YUNIT
- Vertical unit measure in pixels.
X0
static final int X0
- Vertices' coordinate grid.
X1
static final int X1
- Vertices' coordinate grid.
X2
static final int X2
- Vertices' coordinate grid.
Y0
static final int Y0
- Vertices' coordinate grid.
Y1
static final int Y1
- Vertices' coordinate grid.
Y2
static final int Y2
- Vertices' coordinate grid.
R
Point R
- Hexcone's vertices.
Y
Point Y
- Hexcone's vertices.
G
Point G
- Hexcone's vertices.
C
Point C
- Hexcone's vertices.
B
Point B
- Hexcone's vertices.
M
Point M
- Hexcone's vertices.
W
Point W
- Hexcone's vertices.
O
Point O
- Hexcone's vertices.
value
float value
- Brightness value.
HSVhexcone
public HSVhexcone(float value)
- Constructs the hexcone with argument.
- Parameters:
- value - brightness [0,1].
setValue
public void setValue(float value)
- Sets brightness value.
- Parameters:
- value - brightness [0,1].
paint
public void paint(Graphics g)
- Draws the entire hexcone.
- Overrides:
- paint in class Canvas
drawHiddenLines
void drawHiddenLines(Graphics g)
- Draws the hidden lines (dashed) of the hexcone.
drawSeenLines
void drawSeenLines(Graphics g)
- Draws the visible lines and vertices of the hexcone.
drawSlice
void drawSlice(Graphics g)
- Draws the hexagonal slicing plane on the hexcone.
between
Point between(Point p1,
Point p2)
- Returns a point that lies on the line between p1 and p2,
at the distance |p1-p2| * value from p1.
- Parameters:
- p1,p2 - points specifying the line.
- Returns:
- new point coordinates
connect
void connect(Point p1,
Point p2,
Graphics g)
- Draws a line between two points.
- Parameters:
- p1 - first point.
- p2 - second point.
- g - current graphics context.
mark
void mark(Point p,
Color color,
Graphics g)
- Draws a mark with specified color.
- Parameters:
- p - mark's coordinates.
- color - mark's color
- g - current graphics context.
minimumSize
public Dimension minimumSize()
- Overrides the default minimumSize() method.
- Returns:
- new Dimension
- Overrides:
- minimumSize in class Component
preferredSize
public Dimension preferredSize()
- Overrides the default preferredSize() method.
- Returns:
- new Dimension
- Overrides:
- preferredSize in class Component
insets
public Insets insets()
- Overrides the default insets() method.
- Returns:
- new Insets