JClass 4.5.0 API
Documentation

com.klg.jclass.swing.gauge
Interface JCLabelGenerator


public interface JCLabelGenerator

JCLabelGenerator is an interface that can be used to generate labels for a JCTick. It has one method, makeLabel(), which is called by the gauge when a label is required at a particular value.


Method Summary
 JComponent makeLabel(JCTick tick, double value, RadialConstraint constraint)
          Callback called by gauge whenever a label is required.
 

Method Detail

makeLabel

public JComponent makeLabel(JCTick tick,
                            double value,
                            RadialConstraint constraint)
Callback called by gauge whenever a label is required.
Parameters:
tick - The JCTick for which the label is to be generated
value - The current value of the tick
constraint - The encapsulation of the extent and angle at which this label will be placed. NOTE: this angle will be adjusted by the startAngle when it is laid out.

Copyright© 1999-2000 KL Group Inc.
All rights reserved.