public class PlotText extends Object
The font is a simple one, and includes characters from the ASCII collating sequence from 0x20 thru 0x7E. Most of this was taken from the original visad.PlotText.
| Constructor and Description |
|---|
PlotText() |
| Modifier and Type | Method and Description |
|---|---|
static VisADTriangleArray |
render_font(String str,
Font font,
double[] start,
double[] base,
double[] up,
boolean center)
Convert a string of characters (ASCII collating sequence) into a
series of triangles for drawing.
|
static VisADTriangleArray |
render_font(String str,
Font font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification)
Convert a string of characters (ASCII collating sequence) into a
series of triangles for drawing.
|
static VisADTriangleArray |
render_font(String str,
Font font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
double characRotation)
Convert a string of characters (ASCII collating sequence) into a
series of triangles for drawing.
|
static VisADTriangleArray |
render_font(String str,
Font font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
TextControl.Justification verticalJustification)
Convert a string of characters (ASCII collating sequence) into a
series of triangles for drawing.
|
static VisADTriangleArray |
render_font(String str,
Font font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
TextControl.Justification verticalJustification,
double characRotation,
double scale,
double[] offsets)
Convert a string of characters (ASCII collating sequence) into a
series of triangles for drawing.
|
static VisADLineArray |
render_font(String str,
HersheyFont font,
double[] start,
double[] base,
double[] up,
boolean center)
Convert a string of characters (ASCII collating sequence) into a
series of lines for drawing.
|
static VisADLineArray |
render_font(String str,
HersheyFont font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification)
Convert a string of characters (ASCII collating sequence) into a
series of lines for drawing.
|
static VisADLineArray |
render_font(String str,
HersheyFont font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
double characRotation)
Convert a string of characters (ASCII collating sequence) into a
series of lines for drawing.
|
static VisADLineArray |
render_font(String str,
HersheyFont font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
TextControl.Justification verticalJustification)
Convert a string of characters (ASCII collating sequence) into a
series of lines for drawing.
|
static VisADLineArray |
render_font(String str,
HersheyFont font,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
TextControl.Justification verticalJustification,
double characRotation,
double scale,
double[] offsets)
Convert a string of characters (ASCII collating sequence) into a
series of lines for drawing.
|
static VisADLineArray |
render_label(int axis,
double pos,
String str,
int line,
long c)
Convert a string of characters (ASCII collating sequence) into a
series of vectors for drawing.
|
static VisADLineArray |
render_label(String str,
double[] start,
double[] base,
double[] up,
boolean center)
Convert a string of characters (ASCII collating sequence) into a
series of vectors for drawing.
|
static VisADLineArray |
render_label(String str,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification)
Convert a string of characters (ASCII collating sequence) into a
series of vectors for drawing.
|
static VisADLineArray |
render_label(String str,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
double characRotation)
Convert a string of characters (ASCII collating sequence) into a
series of vectors for drawing.
|
static VisADLineArray |
render_label(String str,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
TextControl.Justification verticalJustification)
Convert a string of characters (ASCII collating sequence) into a
series of vectors for drawing.
|
static VisADLineArray |
render_label(String str,
double[] start,
double[] base,
double[] up,
TextControl.Justification justification,
TextControl.Justification verticalJustification,
double characRotation,
double scale,
double[] offsets)
Convert a string of characters (ASCII collating sequence) into a
series of vectors for drawing.
|
static String |
shortString(double val)
make a short string for value for use in slider label
|
public static VisADLineArray render_label(int axis, double pos, String str, int line, long c)
axis - [=0 (x), =1 (y), or =2 (z)pos - position along axis to put label in [-1,1]str - the text string to "print"line - line number for multi-line text (0 = first line)c - color (not used yet)public static VisADLineArray render_label(String str, double[] start, double[] base, double[] up, boolean center)
str - String to usestart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorcenter - is true if string is to be centeredpublic static VisADLineArray render_label(String str, double[] start, double[] base, double[] up, TextControl.Justification justification, TextControl.Justification verticalJustification)
str - String to usestart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorjustification - is one of:verticalJustification - is one of:public static VisADLineArray render_label(String str, double[] start, double[] base, double[] up, TextControl.Justification justification)
str - String to usestart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorjustification - is one of:public static VisADLineArray render_label(String str, double[] start, double[] base, double[] up, TextControl.Justification justification, double characRotation)
str - String to usestart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorjustification - is one of:characRotation - is the angle (in degrees) at which each character
in str is rotated with respect to the base line of the text. A positive
value rotates the characters clockwise; a negative value
rotates them counterclockwise.public static VisADLineArray render_label(String str, double[] start, double[] base, double[] up, TextControl.Justification justification, TextControl.Justification verticalJustification, double characRotation, double scale, double[] offsets)
str - String to usestart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorjustification - is one of:verticalJustification - is one of:characRotation - is the angle (in degrees) at which each character
in str is rotated with respect to the base line of the text. A positive
value rotates the characters clockwise; a negative value
rotates them counterclockwise.scale - is the scaling factor.offsets - is a 1x3 array defining the offsets in X, Y, Z, respectively.public static String shortString(double val)
public static VisADLineArray render_font(String str, HersheyFont font, double[] start, double[] base, double[] up, boolean center)
str - String to usefont - non-null HersheyFont fontstart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorcenter - is true if string is to be centeredpublic static VisADLineArray render_font(String str, HersheyFont font, double[] start, double[] base, double[] up, TextControl.Justification justification)
str - String to usefont - non-null HersheyFont namestart - base - up - justification - is one of:public static VisADLineArray render_font(String str, HersheyFont font, double[] start, double[] base, double[] up, TextControl.Justification justification, double characRotation)
str - String to usefont - non-null HersheyFont namestart - base - up - justification - is one of:characRotation - is the angle (in degrees) at which each character
in str is rotated with respect to the base line of the text. A positive
value rotates the characters clockwise; a negative value
rotates them counterclockwise.public static VisADLineArray render_font(String str, HersheyFont font, double[] start, double[] base, double[] up, TextControl.Justification justification, TextControl.Justification verticalJustification)
str - String to usefont - non-null HersheyFont namestart - base - up - justification - is one of:verticalJustification - is one of:public static VisADLineArray render_font(String str, HersheyFont font, double[] start, double[] base, double[] up, TextControl.Justification justification, TextControl.Justification verticalJustification, double characRotation, double scale, double[] offsets)
str - String to usefont - non-null HersheyFont namestart - base - up - justification - is one of:verticalJustification - is one of:characRotation - is the angle (in degrees) at which each character
in str is rotated with respect to the base line of the text. A positive
value rotates the characters clockwise; a negative value
rotates them counterclockwise.scale - is the scaling factor.offsets - is a 1x3 array defining the offsets in X, Y, Z, respectively.public static VisADTriangleArray render_font(String str, Font font, double[] start, double[] base, double[] up, boolean center)
str - String to usefont - non-null fontstart - point (x,y,z)base - (x,y,z) of baseline vectorup - (x,y,z) of "up" direction vectorcenter - is true if string is to be centeredpublic static VisADTriangleArray render_font(String str, Font font, double[] start, double[] base, double[] up, TextControl.Justification justification)
str - String to usefont - non-null fontstart - base - up - justification - is one of:public static VisADTriangleArray render_font(String str, Font font, double[] start, double[] base, double[] up, TextControl.Justification justification, double characRotation)
str - String to usefont - non-null fontstart - base - up - justification - is one of:characRotation - is the angle (in degrees) at which each character
in str is rotated with respect to the base line of the text. A positive
value rotates the characters clockwise; a negative value
rotates them counterclockwise.public static VisADTriangleArray render_font(String str, Font font, double[] start, double[] base, double[] up, TextControl.Justification justification, TextControl.Justification verticalJustification)
str - String to usefont - non-null fontstart - base - up - justification - is one of:verticalJustification - is one of:public static VisADTriangleArray render_font(String str, Font font, double[] start, double[] base, double[] up, TextControl.Justification justification, TextControl.Justification verticalJustification, double characRotation, double scale, double[] offsets)
str - String to usefont - non-null fontstart - base - up - justification - is one of:verticalJustification - is one of:characRotation - is the angle (in degrees) at which each character
in str is rotated with respect to the base line of the text. A positive
value rotates the characters clockwise; a negative value
rotates them counterclockwise.scale - is the scaling factor.offsets - is a 1x3 array defining the offsets in X, Y, Z, respectively.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.