public class HLabelEq extends Object implements Serializable
Constructor and Description |
---|
HLabelEq(String s)
Make a label with default attributes
|
HLabelEq(String s,
double x,
double y)
Make a equation label with specific coordinated in the data system
|
HLabelEq(String s,
double x,
double y,
String howToSet)
Make a label with specific coordinates.
|
HLabelEq(String s,
int f)
Make a equation label (color- black)
|
HLabelEq(String s,
int f,
Color c)
Make a label with equation using the LaTeX syntax
|
Modifier and Type | Method and Description |
---|---|
void |
doc()
Show online documentation.
|
Color |
getColor()
Get color of the label.
|
Color |
getColorBackground()
Get color of background.
|
int |
getFontSize()
Get the font size of the equation.
|
BufferedImage |
getImage()
Return image of this equation
|
boolean |
getImageFile(String fileName)
Return image of this equation as a file.
|
int |
getPositionCoordinate()
Is the position set?
|
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(Color c)
Sets the color to a specific value
|
void |
setColorBackgroud(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,
String howToSet)
Sets the location of the label in data coordinates.
|
void |
setText(String s)
Sets a equation text of the label.
|
String |
toString() |
public HLabelEq(String s, int f, Color c)
s
- Textf
- Font sizec
- Colorpublic HLabelEq(String s, int f)
s
- Textf
- Font sizepublic HLabelEq(String s)
s
- textpublic HLabelEq(String s, double x, double y)
s
- Textx
- Position in Xy
- Position in Ypublic HLabelEq(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 coordinatespublic void setText(String s)
s
- new text for the labelpublic String getText()
public void setColor(Color c)
c
- color used to draw the labelpublic void setColorBackgroud(Color c)
c
- public Color getColor()
public Color getColorBackground()
public void setFontSize(int f)
f
- font size used to draw the labelpublic int getFontSize()
public BufferedImage getImage()
public boolean getImageFile(String fileName)
public String toString()
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, 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()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics