|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
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 (normilized coordinate system) or the user coordinate For more labels look at the shape package
Constructor Summary | |
---|---|
HMLabel(java.lang.String[] s)
Make a label with default attributes |
|
HMLabel(java.lang.String[] s,
double x,
double y)
Make a label with specific coordinated in the data system |
|
HMLabel(java.lang.String[] s,
double x,
double y,
java.lang.String howToSet)
Make a label with specific coordinates. |
|
HMLabel(java.lang.String[] s,
java.awt.Font f)
Make a label (color- black) |
|
HMLabel(java.lang.String[] s,
java.awt.Font f,
java.awt.Color c)
Make label |
Method Summary | |
---|---|
java.awt.Color |
getColor()
|
java.awt.Font |
getFont()
Get the font |
jplot.GraphLabel |
getGraphLabel()
Get a label with default attributes |
int |
getPositionCoordinate()
Is the position set? |
double |
getRotation()
Returns the rotation angle. |
java.lang.String[] |
getText()
|
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(java.awt.Color c)
Sets the color to a specific value |
void |
setFont(java.awt.Font f)
Sets the font to a specific value |
void |
setRotation(double r)
Sets the rotation angle. |
void |
setText(java.lang.String[] s)
Sets the text of the label to something new. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HMLabel(java.lang.String[] s, java.awt.Font f, java.awt.Color c)
s
- Lines of a textf
- Fontc
- Colorpublic HMLabel(java.lang.String[] s, java.awt.Font f)
s
- Textf
- Fontpublic HMLabel(java.lang.String[] s)
s
- lines of the textpublic HMLabel(java.lang.String[] s, double x, double y)
s
- Textx
- Position in Xy
- Position in Ypublic HMLabel(java.lang.String[] s, double x, double y, java.lang.String howToSet)
s
- Textx
- position in Xy
- position in YhowToSet
- set it to "NDC" for normilized coordinates (in the range
0-1). This is a data independent position
set it to "USER" for the user coordinatesMethod Detail |
---|
public void setText(java.lang.String[] s)
s
- new text for the labelpublic java.lang.String[] getText()
public void setColor(java.awt.Color c)
c
- color used to draw the labelpublic java.awt.Color getColor()
public void setFont(java.awt.Font f)
f
- font used to draw the labelpublic java.awt.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()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |