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.
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 generatedvalue
- The current value of the tickconstraint
- 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.