public class TLcdS52GXYLevelLayerList extends TLcdGXYLayerList
TLcdS52GXYLevelLayerList
should be created for each ECDIS level
(each level corresponds to a navigational purpose). For proper visualisation,
conforming the S-52 Standard, the initial model, decoded by the S-57 model
decoder, should be first converted to a modellist, with the TLcdS52ModelListBuilder
(see developer guide and TLcdS52ModelListBuilder
class for more information).
The resulting modellist will be structured as follows:
TLcdModelList | +-- TLcdModelList (one for each level) | +-- TLcdModelList (one for each display priority) | +-- TLcdModelList (one for each feature type (point/line/area)) | +-- ILcdModel (one for each ENC cell)This modellist structure should be put in a similar layer list structure as follows:
TLcdS52GXYCatalogueLayerList | +-- TLcdS52GXYLevelLayerList (one for each level) | +-- TLcdGXYLayerList (one for each display priority) | +-- TLcdGXYLayer (one for each feature type (point/line/area))The layer list structure will guarantee that the painting order of the elements in the model will be compliant with the S-52 specification. The level layer lists should be TLcdS52GXYLevelLayerList for proper visualization of the DATCVR procedure, all other layer lists can be ordinary
TLcdGXYLayerList
instances.TRACEON
Constructor and Description |
---|
TLcdS52GXYLevelLayerList(TLcdModelList aModelList,
ILcdGXYLayerFactory aLayerFactory)
Deprecated.
Creates a new TLcdS52GXYLevelLayerList, containing a layer for each model in the
given modellist.
|
Modifier and Type | Method and Description |
---|---|
int |
applyOnInteract(ILcdFunction aFunction,
Rectangle aRectangle,
boolean aStrictInteract,
ILcdGXYView aGXYView)
Deprecated.
Passes the function to apply to all of the visible sub layers as long as the function returns true for objects
in that sublayer.
|
ILcdS52Symbology |
getS52Symbology()
Deprecated.
Returns the S-52 symbology that is used by this layer list.
|
ILcdInterval |
getScaleRange()
Deprecated.
Returns the scalerange in which this layer list should be painted.
|
Color |
getUnderscaleIndicationColor()
Deprecated.
Returns the underscale indication color.
|
boolean |
isPaintChartScaleBoundaries()
Deprecated.
Returns whether to paint the chart scale boundaries.
|
boolean |
isPaintOverscaleIndication()
Deprecated.
Returns whether to paint the overscale indication.
|
boolean |
isPaintUnderscaleIndication()
Deprecated.
Returns whether to paint the underscale indication.
|
void |
paint(Graphics aGraphics,
int aMode,
ILcdGXYView aGXYView)
Deprecated.
Paints all sublayers, one by one.
|
void |
setPaintChartScaleBoundaries(boolean aPaintChartScaleBoundaries)
Deprecated.
Flag indicating whether to paint the chart scale boundaries.
|
void |
setPaintOverscaleIndication(boolean aPaintOverscaleIndication)
Deprecated.
Flag indicating whether to paint the overscale indication.
|
void |
setPaintUnderscaleIndication(boolean aPaintUnderscaleIndication)
Deprecated.
Flag indicating whether to paint the underscale indication.
|
void |
setS52Symbology(ILcdS52Symbology s52Symbology)
Deprecated.
Sets the symbology that is required for painting.
|
void |
setScaleRange(ILcdInterval aScaleRange)
Deprecated.
Sets the scalerange in which this layer list should be painted.
|
void |
setUnderscaleIndicationColor(Color aUnderscaleIndicationColor)
Deprecated.
Sets the color in which to paint the underscale indication.
|
addPropertyChangeListener, addSelectionListener, addSubGXYLayer, addSubGXYLayer, canAddSubGXYLayer, clearSelection, containsSubGXYLayer, fireCollectedSelectionChanges, firePropertyChange, getBounds, getGXYEditor, getGXYLabelPainter, getGXYPainter, getGXYPen, getIcon, getLabel, getLabelScaleRange, getModel, getModelXYWorldTransfoClass, getObjectInLayerFilter, getSelectionCount, getSubGXYLayer, getSubGXYLayerCount, indexOf, insertSubGXYLayerAt, insertSubGXYLayerAt, isEditable, isEditableSupported, isLabeled, isLabeledSupported, isObjectInLayer, isSelectable, isSelectableSupported, isSelected, isVisible, moveSubGXYLayerAt, removeAllSubGXYLayers, removePropertyChangeListener, removeSelectionListener, removeSubGXYLayer, selectedObjects, selectObject, setEditable, setGXYPen, setIcon, setLabel, setLabeled, setSelectable, setVisible, stopPainting
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabelMapScaleRange, getMapScaleRange
getSelectedObjects
public TLcdS52GXYLevelLayerList(TLcdModelList aModelList, ILcdGXYLayerFactory aLayerFactory)
aModelList
- the modellist for which a layer list should be
created.aLayerFactory
- the layer factory to be used for the creation of the
sublayers.public void setS52Symbology(ILcdS52Symbology s52Symbology)
s52Symbology
- the S-52 symbology to be used.public ILcdS52Symbology getS52Symbology()
public void setScaleRange(ILcdInterval aScaleRange)
aScaleRange
- public ILcdInterval getScaleRange()
getScaleRange
in interface ILcdGXYLayer
getScaleRange
in class TLcdGXYLayerList
ILcdGXYLayer.getMapScaleRange()
public void setPaintOverscaleIndication(boolean aPaintOverscaleIndication)
public boolean isPaintOverscaleIndication()
public void setPaintUnderscaleIndication(boolean aPaintUnderscaleIndication)
public boolean isPaintUnderscaleIndication()
public void setUnderscaleIndicationColor(Color aUnderscaleIndicationColor)
public Color getUnderscaleIndicationColor()
public void setPaintChartScaleBoundaries(boolean aPaintChartScaleBoundaries)
public boolean isPaintChartScaleBoundaries()
public void paint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView)
TLcdGXYLayerList
paint
in interface ILcdGXYLayer
paint
in class TLcdGXYLayerList
aGraphics
- the Graphics to paint on.aMode
- indicates what should be painted and how it should be painted.aGXYView
- the view to paint for.ILcdGXYLayer.getGXYPainter(Object)
,
ILcdGXYLayer.getGXYLabelPainter(Object)
,
ILcdGXYLayer.getScaleRange()
,
ILcdGXYLayer.getLabelScaleRange()
,
ILcdGXYLayer.stopPainting()
public int applyOnInteract(ILcdFunction aFunction, Rectangle aRectangle, boolean aStrictInteract, ILcdGXYView aGXYView)
TLcdGXYLayerList
applyOnInteract
in interface ILcdGXYLayer
applyOnInteract
in class TLcdGXYLayerList
aFunction
- the function to apply to all objects in the models of the sublayers. Note that this function
may be wrapped and sublayers must not assume that this function is applied directly to them.aRectangle
- the view bounds containing the objects to which the function will be applied.aStrictInteract
- whether or not only objects strictly interacting with the view bounds should be taken
into accountaGXYView
- the view in which the objects are rendered.ILcdGXYLayer.applyOnInteract(com.luciad.util.ILcdFunction, java.awt.Rectangle, boolean, ILcdGXYView)