|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.HMLabel
public class HMLabel
Create an interactive multi-line label in the USER or NDC coordinates. The label can be defined in the NDC (normalized coordinate system) or the user coordinate For more labels look at the shape package
| Constructor Summary | |
|---|---|
HMLabel(String[] s)
Make a multitext label with default attributes. |
|
HMLabel(String[] s,
double x,
double y)
Make a label with specific coordinated in the data system |
|
HMLabel(String[] s,
double x,
double y,
String howToSet)
Make a label with specific coordinates. |
|
HMLabel(String[] s,
Font f)
Make a multitext label (black color is used). |
|
HMLabel(String[] s,
Font f,
Color c)
Make a multitext label |
|
| Method Summary | |
|---|---|
void |
doc()
Show online documentation. |
Color |
getColor()
Get color of the label. |
Font |
getFont()
Get the text font. |
jplot.GraphLabel |
getGraphLabel()
Get a label with default attributes |
int |
getPositionCoordinate()
Is the position set? |
double |
getRotation()
Returns the rotation angle. |
String[] |
getText()
Get text of the label. |
double |
getX()
Returns the X position of the text. |
double |
getY()
Returns the Y position of the text. |
void |
seLocation(double x,
double y)
Sets the location of this label in data coordinates. |
void |
setColor(Color c)
Sets the color to a specific value |
void |
setFont(Font f)
Sets the font to a specific value |
void |
setRotation(double r)
Sets the rotation angle. |
void |
setText(String[] s)
Sets the text of the label. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HMLabel(String[] s,
Font f,
Color c)
s - Lines of a textf - Fontc - Color
public HMLabel(String[] s,
Font f)
s - Textf - Fontpublic HMLabel(String[] s)
s - lines of the text
public HMLabel(String[] s,
double x,
double y)
s - Textx - Position in Xy - Position in Y
public HMLabel(String[] s,
double x,
double y,
String howToSet)
s - Textx - position in Xy - position in YhowToSet - set it to "NDC" for normalized coordinates (in the range 0-1).
This is a data independent position set it to "USER" for the
user coordinates| Method Detail |
|---|
public void setText(String[] s)
s - new text for the labelpublic String[] getText()
public void setColor(Color c)
c - color used to draw the labelpublic Color getColor()
public void setFont(Font f)
f - font used to draw the labelpublic Font getFont()
public void setRotation(double r)
r - angle for this labelpublic double getRotation()
public void seLocation(double x,
double y)
x - x-position of the lower-left corner of the texty - y-position of the lower-left corner of the textpublic int getPositionCoordinate()
public double getX()
public double getY()
public jplot.GraphLabel getGraphLabel()
public void doc()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||