public interface IAxisTitlePainter extends Serializable
Modifier and Type | Method and Description |
---|---|
int |
getHeight(IAxis<?> axis,
Graphics2D 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,
Graphics2D g2d)
Returns the width of this axis title in px with respect to the current
title of the given axis.
|
void |
paintTitle(IAxis<?> axis,
Graphics2D g)
Invoked to let implementations paint the given title of the given axis.
|
int getHeight(IAxis<?> axis, Graphics2D g2d)
axis
- the instance this title painter is working for.g2d
- needed for size informations (e.g. font widths).int getWidth(IAxis<?> axis, Graphics2D g2d)
axis
- the instance this title painter is working for.g2d
- needed for size informations (e.g. font widths).void paintTitle(IAxis<?> axis, Graphics2D g)
Implementations should make use of the information about the axis coordinates (start pixel,end pixel) and the graphics context (for font dimensions) to do it right.
axis
- the axis to paint the title of.g
- needed for size informations.Copyright © 2019. All rights reserved.