|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrafica.GTitle
public class GTitle
Title class.
Field Summary |
---|
Constructor Summary | |
---|---|
GTitle(PApplet parent,
float[] dim)
Constructor |
Method Summary | |
---|---|
void |
draw()
Draws the plot title |
void |
setDim(float[] newDim)
Sets the plot box dimensions information |
void |
setDim(float xDim,
float yDim)
Sets the plot box dimensions information |
void |
setFontColor(int newFontColor)
Sets the font color |
void |
setFontName(String newFontName)
Sets the font name |
void |
setFontProperties(String newFontName,
int newFontColor,
int newFontSize)
Sets all the font properties at once |
void |
setFontSize(int newFontSize)
Sets the font size |
void |
setOffset(float newOffset)
Sets the title offset |
void |
setRelativePos(float newRelativePos)
Sets the title relative position in the plot |
void |
setText(String newText)
Sets the title text |
void |
setTextAlignment(int newTextAlignment)
Sets the title type of text alignment |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GTitle(PApplet parent, float[] dim)
parent
- the parent Processing appletdim
- the plot box dimensions in pixelsMethod Detail |
---|
public void draw()
public void setDim(float xDim, float yDim)
xDim
- the new plot box x dimensionyDim
- the new plot box y dimensionpublic void setDim(float[] newDim)
newDim
- the new plot box dimensions informationpublic void setRelativePos(float newRelativePos)
newRelativePos
- the new relative position in the plotpublic void setOffset(float newOffset)
newOffset
- the new title offsetpublic void setText(String newText)
newText
- the new title textpublic void setTextAlignment(int newTextAlignment)
newTextAlignment
- the new type of text alignmentpublic void setFontName(String newFontName)
newFontName
- the name of the new fontpublic void setFontColor(int newFontColor)
newFontColor
- the new font colorpublic void setFontSize(int newFontSize)
newFontSize
- the new font sizepublic void setFontProperties(String newFontName, int newFontColor, int newFontSize)
newFontName
- the name of the new fontnewFontColor
- the new font colornewFontSize
- the new font size
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |