Package draw
Class Font3D
java.lang.Object
draw.Font3D
- All Implemented Interfaces:
Serializable
Class for a simple 3D drawing of strings.
- Since:
- 2004.06.03
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
direction flag: horizontal direction is negative xstatic final int
direction flag: horizontal direction is negative ystatic final int
direction flag: horizontal direction is negative zstatic final int
direction flag: horizontal direction is positive xstatic final int
direction flag: horizontal direction is positive ystatic final int
direction flag: horizontal direction is positive zstatic final int
direction flag: vertical direction is negative xstatic final int
direction flag: vertical direction is negative ystatic final int
direction flag: vertical direction is negative zstatic final int
direction flag: vertical direction is positive xstatic final int
direction flag: vertical direction is positive ystatic final int
direction flag: vertical direction is positive z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClip
(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) Intersect/shrink the current clipping box.void
Draw a string at a given reference point.void
setClip
(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) Set the clipping box.void
Set the 3D to 2D projection to use.void
setSize
(double size) Set the font size.
-
Field Details
-
H_POS_X
public static final int H_POS_Xdirection flag: horizontal direction is positive x- See Also:
-
H_POS_Y
public static final int H_POS_Ydirection flag: horizontal direction is positive y- See Also:
-
H_POS_Z
public static final int H_POS_Zdirection flag: horizontal direction is positive z- See Also:
-
H_NEG_X
public static final int H_NEG_Xdirection flag: horizontal direction is negative x- See Also:
-
H_NEG_Y
public static final int H_NEG_Ydirection flag: horizontal direction is negative y- See Also:
-
H_NEG_Z
public static final int H_NEG_Zdirection flag: horizontal direction is negative z- See Also:
-
V_POS_X
public static final int V_POS_Xdirection flag: vertical direction is positive x- See Also:
-
V_POS_Y
public static final int V_POS_Ydirection flag: vertical direction is positive y- See Also:
-
V_POS_Z
public static final int V_POS_Zdirection flag: vertical direction is positive z- See Also:
-
V_NEG_X
public static final int V_NEG_Xdirection flag: vertical direction is negative x- See Also:
-
V_NEG_Y
public static final int V_NEG_Ydirection flag: vertical direction is negative y- See Also:
-
V_NEG_Z
public static final int V_NEG_Zdirection flag: vertical direction is negative z- See Also:
-
-
Constructor Details
-
Font3D
Create a 3D font manager.- Parameters:
proj
- the 3D to 2D projection to use- Since:
- 2004.06.03 (Christian Borgelt)
-
-
Method Details
-
setProj3D
Set the 3D to 2D projection to use.- Parameters:
proj
- the 3d to 2d projection to use- Since:
- 2004.06.03 (Christian Borgelt)
-
setSize
public void setSize(double size) Set the font size.- Parameters:
size
- the font size- Since:
- 2004.06.03 (Christian Borgelt)
-
setClip
public void setClip(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) Set the clipping box.- Parameters:
xmin
- the minimum in x-directionxmax
- the maximum in x-directionymin
- the minimum in y-directionymax
- the maximum in y-directionzmin
- the minimum in z-directionzmax
- the maximum in z-direction- Since:
- 2004.06.06 (Christian Borgelt)
-
addClip
public void addClip(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) Intersect/shrink the current clipping box.- Parameters:
xmin
- the minimum in x-directionxmax
- the maximum in x-directionymin
- the minimum in y-directionymax
- the maximum in y-directionzmin
- the minimum in z-directionzmax
- the maximum in z-direction- Since:
- 2004.06.06 (Christian Borgelt)
-
draw
Draw a string at a given reference point.- Parameters:
g
- the graphics to use for the drawingx
- the x-coordinate of the reference pointy
- the y-coordinate of the reference pointz
- the z-coordinate of the reference pointdir
- the drawing direction (given by flags)s
- the string to draw- Since:
- 2004.06.04 (Christian Borgelt)
-