public class TLcdAPP6AGXYLabelPainterProvider extends Object implements ILcdGXYLabelPainterProvider
ILcdAPP6AShape
objects.
To find a label painter for a given object, the label painter provider will search a properties
file based on the objects signature. If none can be found it will return a
default ILcdGXYLabelPainter
.
If the object set on this painter is an instance of ILcdAPP6AStyled
, the
style it contains will be used to place the labels and to determine what
the labels should look like. Otherwise, a default style
will be used which can be customized using the methods getDefaultStyle()
and
setDefaultStyle(ILcdAPP6AStyle)
.ILcdAPP6AStyle
,
Serialized FormConstructor and Description |
---|
TLcdAPP6AGXYLabelPainterProvider()
Creates a new
TLcdAPP6AGXYLabelPainterProvider object. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object using the default constructor.
|
ILcdAPP6AStyle |
getDefaultStyle()
Returns the default
ILcdAPP6AStyle instance that is used for objects which
don't implement ILcdAPP6AStyled . |
ILcdGXYLabelPainter |
getGXYLabelPainter(Object aObject)
Finds a label painter for the object passed.
|
void |
setDefaultStyle(ILcdAPP6AStyle aDefaultAPP6AStyle)
Sets a default
ILcdAPP6AStyle instance that is used for objects which
don't implement ILcdAPP6AStyled . |
public TLcdAPP6AGXYLabelPainterProvider()
TLcdAPP6AGXYLabelPainterProvider
object.public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject)
getGXYLabelPainter
in interface ILcdGXYLabelPainterProvider
aObject
- An object representing an APP-6A symbol. This means that it should at least
implement the interface ILcdAPP6AShape
.IllegalArgumentException
- if aObject doesn't implement ILcdAPP6AShape
or doesn't
represent a valid APP-6A code.public Object clone()
clone
in interface ILcdGXYLabelPainterProvider
clone
in class Object
public void setDefaultStyle(ILcdAPP6AStyle aDefaultAPP6AStyle)
ILcdAPP6AStyle
instance that is used for objects which
don't implement ILcdAPP6AStyled
.aDefaultAPP6AStyle
- A ILcdAPP6AStyle
instance.public ILcdAPP6AStyle getDefaultStyle()
ILcdAPP6AStyle
instance that is used for objects which
don't implement ILcdAPP6AStyled
.ILcdAPP6AStyle
instance that is used for objects which
don't implement ILcdAPP6AStyled
.