public class TLcdKML22GXYLabelPainterProvider extends Object implements ILcdGXYLabelPainterProvider
A GXY label painter for KML features.
The current implementation supports the labeling of Placemarks and PhotoOverlays.
Constructor and Description |
---|
TLcdKML22GXYLabelPainterProvider(TLcdKML22ResourceProvider aResourceProvider)
Creates a new instance of this label painter
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines
Object.clone to make it public. |
Font |
getDefaultFont()
Gets the default font template used to derive any fonts from a label style.
|
ILcdGXYLabelPainter |
getGXYLabelPainter(Object aObject)
Finds an
ILcdGXYLabelPainter that can be used to label the object passed. |
double |
getMaximumFontSize()
Returns the maximum font size for this label painter
|
double |
getMinimumFontSize()
Returns the minimum font size for this label painter
|
void |
setDefaultFont(Font aDefaultFont)
Sets the default font template used to model any font from a label style.
|
void |
setMaximumFontSize(double aMaximumFontSize)
Sets the maximum font size for this label painter.
|
void |
setMinimumFontSize(double aMinimumFontSize)
Sets the minimum font size for this label painter.
|
public TLcdKML22GXYLabelPainterProvider(TLcdKML22ResourceProvider aResourceProvider)
Creates a new instance of this label painter
public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject)
ILcdGXYLabelPainterProvider
ILcdGXYLabelPainter
that can be used to label the object passed.
The label painter provider is responsible for setting the object to the label painter before returning the label painter. An implementation should therefore have the following structure:
public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject) {
ILcdGXYLabelPainter labelPainter = ... // find the label painter for the object
if (labelPainter != null) {
labelPainter.setObject(aObject);
}
return labelPainter;
}
getGXYLabelPainter
in interface ILcdGXYLabelPainterProvider
aObject
- the object to find a label painter forpublic Object clone()
ILcdGXYLabelPainterProvider
Object.clone
to make it public.clone
in interface ILcdGXYLabelPainterProvider
clone
in class Object
public void setDefaultFont(Font aDefaultFont)
Sets the default font template used to model any font from a label style. For instance, the scale attribute of a label style defines a relative scaling of the size of the font. This font will be used as a starting point.
aDefaultFont
- A fontpublic Font getDefaultFont()
Gets the default font template used to derive any fonts from a label style.
setDefaultFont(java.awt.Font)
public void setMinimumFontSize(double aMinimumFontSize)
Sets the minimum font size for this label painter. Setting this value prevents any fonts from being smaller than the given size
aMinimumFontSize
- The minimum font sizepublic void setMaximumFontSize(double aMaximumFontSize)
Sets the maximum font size for this label painter. Setting this value prevents any fonts from being larger than the given size
aMaximumFontSize
- The maximum font sizepublic double getMinimumFontSize()
Returns the minimum font size for this label painter
public double getMaximumFontSize()
Returns the maximum font size for this label painter