/** * Create a new LabelRenderer. Draws a text label using the given * text data field and does not draw an image. * @param textField the data field for the text label. */ public LabelRenderer(String textField) { this.setTextField(textField); }
/** * Create a new LabelRenderer. Draws a text label using the given text * data field, and draws the image at the location reported by the * given image data field. * @param textField the data field for the text label * @param imageField the data field for the image location. This value * in the data field should be a URL, a file within the current classpath, * a file on the filesystem, or null for no image. If the * <code>imageField</code> parameter is null, no images at all will be * drawn. */ public LabelRenderer(String textField, String imageField) { setTextField(textField); setImageField(imageField); }
((LabelRenderer)drf.getDefaultRenderer()).setTextField(LABEL);