public class TLcdMS2525bGXYLabelPainterProvider extends Object implements ILcdGXYLabelPainterProvider
ILcdMS2525bShape
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 ILcdMS2525bStyled
, 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(ILcdMS2525bStyle)
.ILcdMS2525bStyle
,
Serialized FormConstructor and Description |
---|
TLcdMS2525bGXYLabelPainterProvider()
Creates a new
TLcdMS2525bGXYLabelPainterProvider object. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object using the default constructor.
|
ILcdMS2525bStyle |
getDefaultStyle()
Returns the default
ILcdMS2525bStyle instance that is used for objects which
don't implement ILcdMS2525bStyled . |
ILcdGXYLabelPainter |
getGXYLabelPainter(Object aObject)
Finds a label painter for the object passed.
|
void |
setDefaultStyle(ILcdMS2525bStyle aDefaultMS2525bStyle)
Sets a default
ILcdMS2525bStyle instance that is used for objects which
don't implement ILcdMS2525bStyled . |
public TLcdMS2525bGXYLabelPainterProvider()
TLcdMS2525bGXYLabelPainterProvider
object.public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject)
getGXYLabelPainter
in interface ILcdGXYLabelPainterProvider
aObject
- An object representing a MIL-STD 2525b symbol. This means that it should at least
implement the interface ILcdMS2525bShape
.IllegalArgumentException
- if aObject doesn't implement ILcdMS2525bShape
or doesn't
represent a valid MIL-STD 2525b code.public Object clone()
clone
in interface ILcdGXYLabelPainterProvider
clone
in class Object
public void setDefaultStyle(ILcdMS2525bStyle aDefaultMS2525bStyle)
ILcdMS2525bStyle
instance that is used for objects which
don't implement ILcdMS2525bStyled
.aDefaultMS2525bStyle
- A ILcdMS2525bStyle
instance.public ILcdMS2525bStyle getDefaultStyle()
ILcdMS2525bStyle
instance that is used for objects which
don't implement ILcdMS2525bStyled
.ILcdMS2525bStyle
instance that is used for objects which
don't implement ILcdMS2525bStyled
.