|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.GraphObj
com.quinncurtis.chart3djava.ChartText
com.quinncurtis.chart3djava.ChartLabel
com.quinncurtis.chart3djava.StringLabel
public class StringLabel
The StringLabel class is used to format strings and position them in a chart.
Field Summary |
---|
Constructor Summary | |
---|---|
StringLabel()
The default StringLabel constructor. |
|
StringLabel(java.awt.Font tfont,
java.lang.String tstring)
This method initializes an StringLabel using the specified font and string. |
|
StringLabel(java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
double z,
int npostype)
This method initializes an StringLabel using the specified scale, font, string position and position type. |
|
StringLabel(java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
double z,
int npostype,
int xjust,
int yjust,
double rotation)
This method initializes an StringLabel using the specified scale, font, string, position, justification and rotation. |
|
StringLabel(java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
int npostype)
This method initializes an StringLabel using the specified scale, font, string position and position type. |
|
StringLabel(java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
int npostype,
int xjust,
int yjust,
double rotation)
This method initializes an StringLabel using the specified scale, font, string, position, justification and rotation. |
|
StringLabel(PhysicalCoordinates transform)
This constructor creates a new StringLabel object using the specified scale. |
|
StringLabel(PhysicalCoordinates transform,
java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
double z,
int npostype)
This method initializes an StringLabel using the specified scale, font, string position and position type. |
|
StringLabel(PhysicalCoordinates transform,
java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
double z,
int npostype,
int xjust,
int yjust,
double rotation)
This method initializes an StringLabel using the specified scale, font, string, position, justification and rotation. |
|
StringLabel(PhysicalCoordinates transform,
java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
int npostype)
This method initializes an StringLabel using the specified scale, font, string position and position type. |
|
StringLabel(PhysicalCoordinates transform,
java.awt.Font tfont,
java.lang.String tstring,
double x,
double y,
int npostype,
int xjust,
int yjust,
double rotation)
This method initializes an StringLabel using the specified scale, font, string, position, justification and rotation. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns an object that is a clone of this StringLabel object. |
void |
copy(StringLabel source)
Copies the source StringLabel object. |
void |
draw(java.awt.Graphics2D g2)
The draw method for this class. |
int |
errorCheck(int nerror)
Checks the current StringLabel object for common errors. |
Methods inherited from class com.quinncurtis.chart3djava.ChartLabel |
---|
copy, makeLabel, setLabels |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringLabel()
public StringLabel(PhysicalCoordinates transform)
transform
- The text object is placed in the coordinate system defined by transform.public StringLabel(PhysicalCoordinates transform, java.awt.Font tfont, java.lang.String tstring, double x, double y, int npostype, int xjust, int yjust, double rotation)
transform
- Places the text in the coordinate system defined by transform.tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates. Use one of the position
constants: DEV_POS, PHYS_POS, NORM_GRAPH_POS, NORM_PLOT_POS.xjust
- Specifies the horizontal justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.yjust
- Specifies the vertical justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.rotation
- The rotation (-360 to 360 degrees) of the text in the normal viewing plane.public StringLabel(PhysicalCoordinates transform, java.awt.Font tfont, java.lang.String tstring, double x, double y, double z, int npostype, int xjust, int yjust, double rotation)
transform
- Places the text in the coordinate system defined by transform.tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionz
- Specifies the z-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates. Use one of the position
constants: DEV_POS, PHYS_POS, NORM_GRAPH_POS, NORM_PLOT_POS.xjust
- Specifies the horizontal justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.yjust
- Specifies the vertical justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.rotation
- The rotation (-360 to 360 degrees) of the text in the normal viewing plane.public StringLabel(java.awt.Font tfont, java.lang.String tstring, double x, double y, int npostype, int xjust, int yjust, double rotation)
tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates. Use one of the position
constants: DEV_POS, PHYS_POS, NORM_GRAPH_POS, NORM_PLOT_POS.xjust
- Specifies the horizontal justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.yjust
- Specifies the vertical justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.rotation
- The rotation (-360 to 360 degrees) of the text in the normal viewing plane.public StringLabel(java.awt.Font tfont, java.lang.String tstring, double x, double y, double z, int npostype, int xjust, int yjust, double rotation)
tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionz
- Specifies the z-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates. Use one of the position
constants: DEV_POS, PHYS_POS, NORM_GRAPH_POS, NORM_PLOT_POS.xjust
- Specifies the horizontal justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.yjust
- Specifies the vertical justification of the text. Use one of the text
justification constants: JUSTIFY_MIN, JUSTIFY_CENTER or JUSTIFY_MAX.rotation
- The rotation (-360 to 360 degrees) of the text in the normal viewing plane.public StringLabel(PhysicalCoordinates transform, java.awt.Font tfont, java.lang.String tstring, double x, double y, int npostype)
transform
- Places the text in the coordinate system defined by transform.tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates.public StringLabel(PhysicalCoordinates transform, java.awt.Font tfont, java.lang.String tstring, double x, double y, double z, int npostype)
transform
- Places the text in the coordinate system defined by transform.tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionz
- Specifies the z-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates.public StringLabel(java.awt.Font tfont, java.lang.String tstring, double x, double y, int npostype)
tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates.public StringLabel(java.awt.Font tfont, java.lang.String tstring, double x, double y, double z, int npostype)
tfont
- A reference to a Font object.tstring
- A reference to a string object.x
- Specifies the x-value of the text positiony
- Specifies the y-value of the text positionz
- Specifies the z-value of the text positionnpostype
- Specifies the if the position of the text is specified in physical
coordinates, normalized coordinates or window device coordinates.public StringLabel(java.awt.Font tfont, java.lang.String tstring)
tfont
- A reference to a Font object.tstring
- A reference to a string object.Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class ChartLabel
nerror
- Current error state
public void copy(StringLabel source)
source
- The source StringLabel object.public java.lang.Object clone()
clone
in class ChartText
public void draw(java.awt.Graphics2D g2)
draw
in class ChartText
g2
- The graphics context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |