JClass DesktopViews 6.3.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(com.klg.jclass.swing.gauge.JCTick tick, double value, com.klg.jclass.swing.gauge.GaugeConstraint constraint)
          Callback called by gauge whenever a label is required.
 

Method Detail

makeLabel

public JComponent makeLabel(com.klg.jclass.swing.gauge.JCTick tick,
                            double value,
                            com.klg.jclass.swing.gauge.GaugeConstraint 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/position at which this label will be placed.
Note: this angle or position will be adjusted by the layoutContainer when the label is laid out.

Copyright © 2004 Quest Software Inc..
All rights reserved.