|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAxisScalePolicy
Method Summary | |
---|---|
java.util.List<LabeledValue> |
getScaleValues(java.awt.Graphics g2d,
IAxis<?> axis)
Returns the array of labeled values that will be used by the to paint labels. |
void |
initPaintIteration(IAxis<?> axis)
Performs expensive calculations for various values that are used by many calls throughout a paint iterations. |
Method Detail |
---|
java.util.List<LabeledValue> getScaleValues(java.awt.Graphics g2d, IAxis<?> axis)
Chart2D
to paint labels.
g2d
- Provides information about the graphic context (e.g. font
metrics).axis
- the axis to work for.
Chart2D
to paint labels.void initPaintIteration(IAxis<?> axis)
These values are constant throughout a paint iteration by the contract that no point is added removed or changed in this period. Because these values are used from many methods it is impossible to calculate them at a "transparent" method that may perform this caching over a paint period without knowledge from outside. The first method called in a paint iteration is called several further times in the iteration. So this is the common hook to invoke before painting a chart.
axis
- the axis to read data from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |