|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stellarium.ui.components.Painter
public class Painter
Class used to manage all the drawings for a component. Stores informations like colors or used textures. Performs the primitives drawing.
Field Summary | |
---|---|
private SColor |
baseColor
|
private SFontIfc |
font
|
private boolean |
opaque
|
private STexture |
tex1
|
private SColor |
textColor
|
Constructor Summary | |
---|---|
Painter(Painter p)
|
|
Painter(STexture someTex1, SFontIfc someFont, SColor someBaseColor,
SColor someTextColor)
|
Method Summary | |
---|---|
void |
drawCross(Vector2i pos,
Vector2i sz)
Draw a cross with the default base color |
void |
drawLine(Vector2i pos1,
Vector2i pos2)
|
void |
drawLine(Vector2i pos1,
Vector2i pos2,
SColor c)
|
void |
drawSquareEdge(Vector2i pos,
Vector2i sz)
Draw the edges of the defined square with the default base color |
void |
drawSquareEdge(Vector2i pos,
Vector2i sz,
SColor c)
Draw the edges of the defined square with the given color |
void |
drawSquareFill(Vector2i pos,
Vector2i sz)
Fill the defined square with the default texture and default base color |
void |
drawSquareFill(Vector2i pos,
Vector2i sz,
SColor c)
Fill the defined square with the default texture and given color |
void |
drawSquareFill(Vector2i pos,
Vector2i sz,
SColor c,
STexture t)
Fill the defined square with the given texture and given color |
SColor |
getBaseColor()
|
SFontIfc |
getFont()
|
SColor |
getTextColor()
|
void |
print(int x,
int y, java.lang.String str)
Print the text with the default font and default text color |
void |
print(int x,
int y, java.lang.String str, SColor c)
Print the text with the default font and given text color |
void |
setBaseColor(SColor c)
|
void |
setFont(SFontIfc f)
|
void |
setOpaque(boolean opaque)
|
void |
setTextColor(SColor c)
|
void |
setTexture(STexture tex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private STexture tex1
private SFontIfc font
private SColor baseColor
private SColor textColor
private boolean opaque
Constructor Detail |
---|
public Painter(Painter p)
public Painter(STexture someTex1, SFontIfc someFont, SColor someBaseColor, SColor someTextColor)
Method Detail |
---|
public void drawSquareEdge(Vector2i pos, Vector2i sz)
public void drawSquareEdge(Vector2i pos, Vector2i sz, SColor c)
public void drawSquareFill(Vector2i pos, Vector2i sz)
public void drawSquareFill(Vector2i pos, Vector2i sz, SColor c)
public void drawSquareFill(Vector2i pos, Vector2i sz, SColor c, STexture t)
public void drawCross(Vector2i pos, Vector2i sz)
public void print(int x, int y, java.lang.String str)
public void print(int x, int y, java.lang.String str, SColor c)
public void drawLine(Vector2i pos1, Vector2i pos2)
public void drawLine(Vector2i pos1, Vector2i pos2, SColor c)
public void setTexture(STexture tex)
public void setFont(SFontIfc f)
public void setTextColor(SColor c)
public void setBaseColor(SColor c)
public SColor getBaseColor()
public SColor getTextColor()
public SFontIfc getFont()
public void setOpaque(boolean opaque)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |