|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.chart.util.tag.Tag
Defines the properties of some sort of label that is used to inscribe parts. The following image shows a possible layout of a tag with some of its properties:
The direction is a unit vector that shows a possible but not obligatory displacement direction.
Field Summary | |
float |
directionX
The x value of the direction unit vector. |
float |
directionY
The y value of the direction unit vector. |
float |
tagX
The x-coordinate of the tag point. |
float |
tagY
The y-coordinate of the tag point. |
float |
targetX
The x-coordinate of the target point. |
float |
targetY
The y-coordinate of the target point. |
Constructor Summary | |
Tag(DeviceString text,
TextLook textLook,
Pen pen,
float targetX,
float targetY,
int top,
int left,
int bottom,
int right)
Constructs a new tag with the given parameters. |
|
Tag(DeviceString text,
TextLook textLook,
Pen pen,
float targetX,
float targetY,
int top,
int left,
int bottom,
int right,
java.lang.Object perspective)
Constructs a new tag with the given parameters. |
Method Summary | |
int |
getBottom()
Returns the bottom inset. |
int |
getLeft()
Returns the left inset. |
Pen |
getPen()
Returns the pen that is used to paint the line. |
java.lang.Object |
getPerspective()
Returns the perspective position of this tag. |
int |
getRight()
Returns the right inset. |
DeviceString |
getText()
Returns the text of this tag. |
TextLook |
getTextLook()
Returns the text look of this tag. |
int |
getTop()
Returns the top inset. |
void |
setInsets(int top,
int left,
int bottom,
int right)
Sets the insets of the tag to the given values. |
void |
setPen(Pen pen)
Sets the pen that is used to paint the line. |
void |
setPerspective(java.lang.Object perspective)
Sets the perspective property to this tag. |
void |
setText(DeviceString text)
Sets a new text to this tag. |
void |
setTextLook(TextLook look)
Sets a new text look to this tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public float targetX
public float targetY
public float tagX
public float tagY
public float directionX
public float directionY
Constructor Detail |
public Tag(DeviceString text, TextLook textLook, Pen pen, float targetX, float targetY, int top, int left, int bottom, int right)
text
- The text of this tag, not null
.textLook
- The look of the text of this tag, not null
.pen
- The pen that is used to paint the line, can be null
.targetX
- The x coordiante of the target point.targetY
- The y coordiante of the target point.top
- The top inset.left
- The left inset.bottom
- The bottom inset.right
- The right inset.public Tag(DeviceString text, TextLook textLook, Pen pen, float targetX, float targetY, int top, int left, int bottom, int right, java.lang.Object perspective)
text
- The text of this tag, not null
.textLook
- The look of the text of this tag, not null
.pen
- The pen that is used to paint the line, can be null
.targetX
- The x coordiante of the target point.targetY
- The y coordiante of the target point.top
- The top inset.left
- The left inset.bottom
- The bottom inset.right
- The right inset.perspective
- The perspective position of the tag.PerspectivePart
Method Detail |
public DeviceString getText()
null
.public void setText(DeviceString text)
text
- The new text, not null.public TextLook getTextLook()
null
.public void setTextLook(TextLook look)
look
- The new text look, not null.public Pen getPen()
public void setPen(Pen pen)
pen
- The pen that is used to paint the line.public int getTop()
public int getLeft()
public int getBottom()
public int getRight()
public void setInsets(int top, int left, int bottom, int right)
top
- The top inset.left
- The left inset.bottom
- The bottom inset.right
- The right inset.public java.lang.Object getPerspective()
PerspectivePart
public void setPerspective(java.lang.Object perspective)
perspective
- The new perspective property.PerspectivePart
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |