public class ImageText extends ImageElement
ImageText
class has functions for image painting.
title: SystemCoreLib
description: functions for image painting
copyright: (c) 2012 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Constructor and Description |
---|
ImageText(double px1,
double py1,
double pz1,
java.lang.String ptext,
int text_len,
boolean precalc)
The constructor
ImageText creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
draw2D(GraphicParameter gp,
boolean convert_coordinates)
The method
draw2D draw all points of the line list in 2 dimensions. |
java.lang.String |
getText()
get field: the current value of text.
|
void |
setFont(java.awt.Font input)
set field: set the field font.
|
void |
setText(java.lang.String input)
set field: set the field text.
|
public ImageText(double px1, double py1, double pz1, java.lang.String ptext, int text_len, boolean precalc)
ImageText
creates a new instance(object) of the class.px1
- coordinate.py1
- coordinate.pz1
- coordinate.ptext
- the text to paint.text_len
- the length of a text row.precalc
- .public java.lang.String getText()
public void setText(java.lang.String input)
input
- the textpublic void setFont(java.awt.Font input)
input
- the fontpublic void draw2D(GraphicParameter gp, boolean convert_coordinates) throws java.lang.Exception
draw2D
draw all points of the line list in 2 dimensions.draw2D
in class ImageElement
gp
- the graphic parameters.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if error