|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
mascoptLib.gui.views.GObject
mascoptLib.gui.views.Label
Label object.
Field Summary |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Label(GObject source,
String[] lines,
double ratioX,
double ratioY)
Create a label object. |
|
Label(GObject source,
String[] lines,
double ratioX,
double ratioY,
Color color)
Create a label object. |
|
Label(GObject source,
String[] lines,
double ratioX,
double ratioY,
Color color,
Color back,
boolean transparent,
int fontSize)
Create a label object. |
Method Summary | |
Color |
getColor()
Get the color of the label |
void |
paint(Graphics g)
Patin the label |
void |
setColor(Color c)
|
void |
setLocation(int x,
int y)
Deprecated. not coded ! |
Methods inherited from class mascoptLib.gui.views.GObject |
repaint, translate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Label(GObject source, String[] lines, double ratioX, double ratioY)
source
- the object which have the label.lines
- the comment, which is a StringratioX
- the size in xratioY
- the size in ypublic Label(GObject source, String[] lines, double ratioX, double ratioY, Color color)
source
- the object which have the label.lines
- the comment, which is a StringratioX
- the size in xratioY
- the size in ycolor
- the color of the labelpublic Label(GObject source, String[] lines, double ratioX, double ratioY, Color color, Color back, boolean transparent, int fontSize)
source
- the object which have the label.lines
- the comment, which is a StringratioX
- the size in xratioY
- the size in ycolor
- the color of the labelback
- the back colortransparent
- if the label is transparentfontSize
- the font sizeMethod Detail |
public void setLocation(int x, int y)
x
- x coordinatey
- y coordinatepublic void setColor(Color c)
public Color getColor()
public void paint(Graphics g)
g
- the graphic.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |