|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.HLabelEq
public class HLabelEq
Create an equation using the LaTex syntax. The equation position can be defined in the NDC (normalized coordinate system) or the user coordinate.
Constructor Summary | |
---|---|
HLabelEq(java.lang.String s)
Make a label with default attributes |
|
HLabelEq(java.lang.String s,
double x,
double y)
Make a equation label with specific coordinated in the data system |
|
HLabelEq(java.lang.String s,
double x,
double y,
java.lang.String howToSet)
Make a label with specific coordinates. |
|
HLabelEq(java.lang.String s,
int f)
Make a equation label (color- black) |
|
HLabelEq(java.lang.String s,
int f,
java.awt.Color c)
Make a label with equation using the LaTeX syntax |
Method Summary | |
---|---|
void |
doc()
Show online documentation. |
java.awt.Color |
getColor()
Get color of the label. |
java.awt.Color |
getColorBackground()
Get color of background. |
int |
getFontSize()
Get the font size of the equation. |
java.awt.image.BufferedImage |
getImage()
Return image of this equation |
boolean |
getImageFile(java.lang.String fileName)
Return image of this equation as a file. |
int |
getPositionCoordinate()
Is the position set? |
java.lang.String |
getText()
Get the equation text of the label. |
double |
getX()
Returns the X position of the text. |
double |
getY()
Returns the Y position of the text. |
void |
setColor(java.awt.Color c)
Sets the color to a specific value |
void |
setColorBackgroud(java.awt.Color c)
Set background color |
void |
setFontSize(int f)
Sets the font to a specific value |
void |
setLocation(double x,
double y)
Sets the location of the label in data coordinates. |
void |
setLocation(double x,
double y,
java.lang.String howToSet)
Sets the location of the label in data coordinates. |
void |
setText(java.lang.String s)
Sets a equation text of the label. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HLabelEq(java.lang.String s, int f, java.awt.Color c)
s
- Textf
- Font sizec
- Colorpublic HLabelEq(java.lang.String s, int f)
s
- Textf
- Font sizepublic HLabelEq(java.lang.String s)
s
- textpublic HLabelEq(java.lang.String s, double x, double y)
s
- Textx
- Position in Xy
- Position in Ypublic HLabelEq(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 normalized 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 void setColorBackgroud(java.awt.Color c)
c
- public java.awt.Color getColor()
public java.awt.Color getColorBackground()
public void setFontSize(int f)
f
- font size used to draw the labelpublic int getFontSize()
public java.awt.image.BufferedImage getImage()
public boolean getImageFile(java.lang.String fileName)
public java.lang.String toString()
toString
in class java.lang.Object
public void setLocation(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 void setLocation(double x, double y, java.lang.String howToSet)
x
- x-position of the lower-left corner of the texty
- y-position of the lower-left corner of the texthowToSet
- 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 coordinatespublic int getPositionCoordinate()
public double getX()
public double getY()
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |