public class TLcdGXYILSPainter extends ALcdGXYPainter
ILcdILS
objects. An
ILcdILS
consists of
ILS
object.
These painters can either be specified at construction time,
or later on by using the setters.
Each component painter must handle objects of a specific type:
ILcdGlidePath
ILcdLocalizer
ILcdDME
ILcdMarker
.An ILcdILS
can
have several markers, each of which will be painted with the marker painter.ILcdPoint
, so that a single
point painter could be used to paint them all.defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
Constructor and Description |
---|
TLcdGXYILSPainter()
Constructs a new
TLcdGXYILSPainter object. |
TLcdGXYILSPainter(ILcdGXYPainter aGlidePathPainter,
ILcdGXYPainter aLocalizerPainter,
ILcdGXYPainter aMarkerPainter,
ILcdGXYPainter aDMEPainter)
Constructs a new
TLcdGXYILSPainter object. |
Modifier and Type | Method and Description |
---|---|
void |
boundsSFCT(Graphics aGraphics,
int aMode,
ILcdGXYContext aContext,
ILcd2DEditableBounds a2DEditableBounds)
Sets
aBoundsSFCT to the union of the bounds of the representations
of the components of the ILS object to be painted. |
Object |
clone()
Makes
Object.clone() public. |
ILcdGXYPainter |
getDMEPainter()
Returns the painter that is used to paint
DMEs.
|
ILcdGXYPainter |
getGlidePathPainter()
Returns the painter that is used to paint
glide paths.
|
ILcdGXYPainter |
getLocalizerPainter()
Returns the painter that is used to paint
localizers.
|
ILcdGXYPainter |
getMarkerPainter()
Returns the painter that is used to paint markers.
|
Object |
getObject()
Returns the
ILS object whose components are to be painted
by this painter. |
boolean |
isTouched(Graphics aGraphics,
int aMode,
ILcdGXYContext aContext)
Returns true if one of the representations of the components of the
ILS object to
be painted, is touched in the mode aMode at view location (aGXYContext.getX() ,
aGXYContext.getY() ). |
void |
paint(Graphics aGraphics,
int aMode,
ILcdGXYContext aContext)
Calls, for each not null component of the
ILS object to be painted,
the paint method of the corresponding painter. |
void |
setDMEPainter(ILcdGXYPainter aPainter)
Specifies a painter that is able to paint DMEs.
|
void |
setGlidePathPainter(ILcdGXYPainter aPainter)
Specifies a painter that is able to paint glide paths.
|
void |
setLocalizerPainter(ILcdGXYPainter aPainter)
Specifies a painter that is able to paint localizers.
|
void |
setMarkerPainter(ILcdGXYPainter aPainter)
Specifies a painter that is able to paint
ILcdMarker objects. |
void |
setObject(Object aObject)
Checks whether the given object is an instanceof the
ILcdILS interface. |
addPropertyChangeListener, anchorPointSFCT, firePropertyChangeEvent, firePropertyChangeEvent, getCursor, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOn, snapTarget, supportSnap
public TLcdGXYILSPainter()
TLcdGXYILSPainter
object. The painters used to paint the ILS
components are set to:
TLcdAISPointPainter
for glide paths,TLcdAISPointPainter
for localizers,TLcdAISPointPainter
for DMEs,TLcdAISPointPainter
for markers.TLcdICAODefaultSymbolProvider
class as their symbolProvider.public TLcdGXYILSPainter(ILcdGXYPainter aGlidePathPainter, ILcdGXYPainter aLocalizerPainter, ILcdGXYPainter aMarkerPainter, ILcdGXYPainter aDMEPainter)
TLcdGXYILSPainter
object.aGlidePathPainter
- the painter to be used to draw glide pathsaLocalizerPainter
- the painter to be used to draw localizersaMarkerPainter
- the painter to be used to draw markersaDMEPainter
- the painter to be used to draw DMEspublic Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class ALcdGXYPainter
Object.clone()
public void setObject(Object aObject)
ILcdILS
interface.
If true, each not null component of the given ILS
will be set on the corresponding
painter.aObject
- an instance of an implementation of the ILcdILS
interface that
is to be painted by this painterILcdGXYPainter.getObject()
public Object getObject()
ILS
object whose components are to be painted
by this painter.ILS
objectILcdGXYPainter.setObject(Object)
public void paint(Graphics aGraphics, int aMode, ILcdGXYContext aContext)
ILS
object to be painted,
the paint
method of the corresponding painter.aGraphics
- the Graphics
on which to paintaMode
- the painting mode to useaContext
- the ILcdGXYContext
the drawing depends onpublic void boundsSFCT(Graphics aGraphics, int aMode, ILcdGXYContext aContext, ILcd2DEditableBounds a2DEditableBounds) throws TLcdNoBoundsException
aBoundsSFCT
to the union of the bounds of the representations
of the components of the ILS
object to be painted.aGraphics
- the Graphics
on which to paintaMode
- the painting mode to useaContext
- the ILcdGXYContext
the drawing depends ona2DEditableBounds
- the ILcd2DEditableBounds
to be modifiedTLcdNoBoundsException
- if the one of the components doesn't have any valid bounds, e.g. if it is always invisible in the current projectionisTouched
public boolean isTouched(Graphics aGraphics, int aMode, ILcdGXYContext aContext)
ILS
object to
be painted, is touched in the mode aMode
at view location (aGXYContext.getX()
,
aGXYContext.getY()
).aGraphics
- the Graphics
on which to paintaMode
- the mode to consideraContext
- the ILcdGXYContext
to considerboundsSFCT
public void setGlidePathPainter(ILcdGXYPainter aPainter)
getGlidePathPainter()
public void setLocalizerPainter(ILcdGXYPainter aPainter)
getLocalizerPainter()
public void setMarkerPainter(ILcdGXYPainter aPainter)
ILcdMarker
objects.getMarkerPainter()
public void setDMEPainter(ILcdGXYPainter aPainter)
getDMEPainter()
public ILcdGXYPainter getGlidePathPainter()
public ILcdGXYPainter getLocalizerPainter()
public ILcdGXYPainter getMarkerPainter()
public ILcdGXYPainter getDMEPainter()