|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrafica.GAxisLabel
public class GAxisLabel
Axis label class.
Field Summary |
---|
Constructor Summary | |
---|---|
GAxisLabel(PApplet parent,
int type,
float[] dim)
Constructor |
Method Summary | |
---|---|
void |
draw()
Draws the axis label |
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 axis label offset |
void |
setRelativePos(float newRelativePos)
Sets the label relative position in the axis |
void |
setRotate(boolean newRotate)
Sets if the axis label should be rotated or not |
void |
setText(String newText)
Sets the axis label text |
void |
setTextAlignment(int newTextAlignment)
Sets the axis label type of text alignment |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GAxisLabel(PApplet parent, int type, float[] dim)
parent
- the parent Processing applettype
- the axis label type. It can be X, Y, TOP or RIGHTdim
- 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 axispublic void setOffset(float newOffset)
newOffset
- the new axis label offsetpublic void setRotate(boolean newRotate)
newRotate
- true if the axis label should be rotatedpublic void setText(String newText)
newText
- the new axis label 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 |