|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.PlotText
public class PlotText
PlotText calculates an array of points to be plotted to the screen as vector pairs, given a String and location, orientation and size in space.
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 Summary | |
|---|---|
PlotText()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlotText()
| Method Detail |
|---|
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 centered
public 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 centered
public 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 centered
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||