|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.monitorenter.gui.chart.axistitlepainters.AxisTitlePainterDefault
public class AxisTitlePainterDefault
An
implementation that will render
titles in a default way while adapting to x or y axis use.
IAxisTitlePainter
For x axis the title will be displayed centered below the axis. For y axis the title will be displayed rotated by 90 degrees centered left of the axis.
The y axis rotation will only be performed when the given
Object is of type
Graphics
.
Graphics2D
Constructor Summary | |
---|---|
AxisTitlePainterDefault()
Defcon. |
Method Summary | |
---|---|
int |
getHeight(IAxis<?> axis,
java.awt.Graphics g2d)
Returns the height of this axis title in px with respect to the current title of the given axis title. |
int |
getWidth(IAxis<?> axis,
java.awt.Graphics g2d)
Returns the width of this axis title in px with respect to the current title of the given axis. |
void |
paintTitle(IAxis<?> axis,
java.awt.Graphics g)
TODO: This will not work for multiple axis in the same dimension and position (overwriting titles)! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisTitlePainterDefault()
Method Detail |
---|
public int getHeight(IAxis<?> axis, java.awt.Graphics g2d)
IAxisTitlePainter
getHeight
in interface IAxisTitlePainter
axis
- the instance this title painter is working for.g2d
- needed for size informations (e.g. font widths).
IAxisTitlePainter.getHeight(info.monitorenter.gui.chart.IAxis,
java.awt.Graphics)
public int getWidth(IAxis<?> axis, java.awt.Graphics g2d)
IAxisTitlePainter
getWidth
in interface IAxisTitlePainter
axis
- the instance this title painter is working for.g2d
- needed for size informations (e.g. font widths).
IAxisTitlePainter.getWidth(info.monitorenter.gui.chart.IAxis,
java.awt.Graphics)
public void paintTitle(IAxis<?> axis, java.awt.Graphics g)
paintTitle
in interface IAxisTitlePainter
axis
- the axis to paint the title of.g
- needed for size informations.IAxisTitlePainter.paintTitle(info.monitorenter.gui.chart.IAxis,
java.awt.Graphics)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |