public class TLcdMS2525bGXYPainterProvider extends Object implements ILcdGXYPainterProvider
ILcdMS2525bShape
objects.
The painter provider looks for a painter based on the objects signature.
If the object set on this painter is an instance of ILcdMS2525bStyled
, the
style it contains will be used to determine the actual display of the object on the map
Otherwise, a default style will be used which can be customized using the methods
getDefaultStyle()
and setDefaultStyle(ILcdMS2525bStyle)
.ILcdMS2525bStyle
,
Serialized FormConstructor and Description |
---|
TLcdMS2525bGXYPainterProvider() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines
Object.clone to make it public. |
ILcdMS2525bStyle |
getDefaultStyle()
Returns the default
ILcdMS2525bStyle instance that is used for objects which
don't implement ILcdMS2525bStyled . |
ILcdGXYPainter |
getGXYPainter(Object aObject)
Returns a valid
ILcdGXYPainter for painting aObject. |
ILcdObjectIconProvider |
getIconProvider()
Returns the icon provider that is used.
|
int |
getIconSize()
Deprecated.
Replaced by the more general method
getDefaultStyle() . |
boolean |
getOutlined()
Deprecated.
Replaced by the more general method
getDefaultStyle() . |
void |
setDefaultStyle(ILcdMS2525bStyle aDefaultMS2525bStyle)
Sets a default
ILcdMS2525bStyle instance that is used for objects which
don't implement ILcdMS2525bStyled . |
void |
setIconProvider(ILcdObjectIconProvider aObjectIconProvider)
Sets the icon provider to be used.
|
void |
setIconSize(int aSize)
Deprecated.
Replaced by the more general method
setDefaultStyle(ILcdMS2525bStyle) . |
void |
setOutlined(boolean aIsOutlined)
Deprecated.
Replaced by the more general method
setDefaultStyle(ILcdMS2525bStyle) . |
public ILcdGXYPainter getGXYPainter(Object aObject)
ILcdGXYPainter
for painting aObject.getGXYPainter
in interface ILcdGXYPainterProvider
aObject
- An object representing a MIL-STD 2525b symbol. This means that it should at least
implement the interface ILcdMS2525bShape
.ILcdGXYPainter
for painting the given object.IllegalArgumentException
- if the given object doesn't implement ILcdMS2525bShape
or doesn't
represent a valid MIL-STD 2525b code.public Object clone()
ILcdGXYPainterProvider
Object.clone
to make it public.clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class Object
Object.clone()
public void setIconProvider(ILcdObjectIconProvider aObjectIconProvider)
TLcdMS2525bObjectIconProvider
is used.
A custom icon provider should use the default style associated with this painter provider
(see method getDefaultStyle()
).aObjectIconProvider
- An implementation of ILcdObjectIconProvider
.public ILcdObjectIconProvider getIconProvider()
TLcdMS2525bObjectIconProvider
.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
.public void setIconSize(int aSize)
setDefaultStyle(ILcdMS2525bStyle)
.ILcdMS2525bStyled
.aSize
- the default icon size.public int getIconSize()
getDefaultStyle()
.public void setOutlined(boolean aIsOutlined)
setDefaultStyle(ILcdMS2525bStyle)
.ILcdMS2525bStyled
.aIsOutlined
- the default outline property.public boolean getOutlined()
getDefaultStyle()
.