public class ImageRectangle extends ImageElement
ImageRectangle
class represents a graphical rectangle.
title: SystemCoreLib
description:
copyright: (c) 2012 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Modifier and Type | Field and Description |
---|---|
static int |
ANGULAR_RECT |
static int |
ROUND_RECT |
Constructor and Description |
---|
ImageRectangle(double px1,
double py1,
double pz1,
int width,
int height,
java.lang.String text,
int text_len,
boolean precalc,
java.awt.Color color)
The constructor
ImageRectangle 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 |
setFontColor(java.awt.Color input)
set field: set the field font color.
|
void |
setRectType(int input)
set field: set the rect type.
|
void |
setText(java.lang.String input)
set field: set the field text.
|
public static final int ROUND_RECT
public static final int ANGULAR_RECT
public ImageRectangle(double px1, double py1, double pz1, int width, int height, java.lang.String text, int text_len, boolean precalc, java.awt.Color color)
ImageRectangle
creates a new instance(object) of the class.px1
- coordinate.py1
- coordinate.pz1
- coordinate.width
- the width of the rectangle.height
- the height of the rectangle.text
- the text to paint.text_len
- the text length.precalc
- pre calc.color
- the Color.public java.lang.String getText()
public void setText(java.lang.String input)
input
- the text.public void setFont(java.awt.Font input)
input
- the font.public void setFontColor(java.awt.Color input)
input
- the Color.public void setRectType(int input)
input
- the rect type.public 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