TLcdGXYLayer
to show VPF data.public class TLcdVPFLayer extends TLcdGXYLayer implements ILcdGXYLayer
TLcdVPFLayer
is an implementation of the ILcdGXYLayer
interface. It allows to paint VPF data without requiring an underlying ILcdModel
to contain an element for each of the VPF features that have to be painted.Editing is not allowed and the non-text VPF features are labeled only when selected.
ALL, BODIES, HANDLES, LABELS, SELECTION
PLACED_LABELS
Constructor and Description |
---|
TLcdVPFLayer()
Deprecated.
|
TLcdVPFLayer(TLcdVPFFeatureClass aVPFFeatureClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
applyOnInteract(ILcdFunction aFunction,
Rectangle aBounds,
boolean aStrictInteract,
ILcdGXYView aGXYView)
Deprecated.
Applies the function to (at the least) all objects that are contained (partially or completely) in the bounds of the view.
|
ILcdBounds |
getBounds(int aMode,
ILcdGXYView aGXYView)
Deprecated.
Gets the union of the painter bounds.
|
ILcdBounds |
getMaxPaintingBounds()
Deprecated.
|
TLcdVPFFeatureClass |
getVPFFeatureClass()
Deprecated.
|
TLcdVPFLibrary |
getVPFLibrary()
Deprecated.
|
boolean |
isTileTraceOn()
Deprecated.
|
static String |
modeToString(int aMode)
Deprecated.
|
void |
setMaxPaintingBounds(ILcdBounds aPaintingBounds)
Deprecated.
|
void |
setTileTraceOn(boolean aTileTraceOn)
Deprecated.
|
applyOnInteract, applyOnInteract, applyOnInteractLabels, asFactory, create, getGXYEditor, getGXYEditorProvider, getGXYLabelEditor, getGXYLabelEditorProvider, getGXYLabelingAlgorithm, getGXYLabelingAlgorithmProvider, getGXYLabelPainter, getGXYLabelPainterProvider, getGXYLayerLabelPainter, getGXYPainter, getGXYPainterProvider, getGXYPainterProviderArray, getGXYPainters, getGXYPen, getIcon, getInteractMargin, getLabelLocations, getLabelMapScaleRange, getLabelScaleRange, getMapScaleRange, getMinimumObjectSizeForPainting, getModelElementComparator, getModelQueryConfiguration, getModelXYWorldTransfoClass, getPaintLabelsScaleRatioInterval, getScaleRange, isEditableSupported, isLabeled, isLabeledSupported, isLabelsEditable, isLabelsEditableSupported, isPaintFromOverlaps, isSelectionLabeled, isStopPainting, isTraceOn, paint, paintFromModel, paintFromOverlaps, setClassTraceOn, setFilter, setGXYEditorProvider, setGXYLabelEditorProvider, setGXYLabelingAlgorithmProvider, setGXYLabelPainterProvider, setGXYLayerLabelPainter, setGXYPainterProvider, setGXYPainterProviderArray, setGXYPen, setIcon, setInteractMargin, setLabeled, setLabelLocations, setLabelMapScaleRange, setLabelScaleRange, setLabelsEditable, setMapScaleRange, setMinimumObjectSizeForPainting, setModel, setModelElementComparator, setModelQueryConfiguration, setModelXYWorldTransfoClass, setPaintFromOverlaps, setPaintLabelsScaleRatioInterval, setScaleRange, setSelectionLabeled, setTraceOn, setVisible, startPainting, stopPainting
addPropertyChangeListener, addSelectionListener, clearSelection, fireCollectedSelectionChanges, firePropertyChangeEvent, getFilter, getLabel, getModel, getSelectionCount, invalidate, isEditable, isSelectable, isSelectableSupported, isSelected, isVisible, removePropertyChangeListener, removeSelectionListener, selectedObjects, selectObject, selectObjects, setEditable, setLabel, setSelectable, setSelectableSupported, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGXYEditor, getGXYLabelPainter, getGXYPainter, getGXYPen, getLabelMapScaleRange, getLabelScaleRange, getMapScaleRange, getModelXYWorldTransfoClass, getScaleRange, isLabeled, isLabeledSupported, paint, setLabeled, stopPainting
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setEditable, setIcon, setLabel, setSelectable, setVisible
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
addPropertyChangeListener, removePropertyChangeListener
public TLcdVPFLayer()
public TLcdVPFLayer(TLcdVPFFeatureClass aVPFFeatureClass)
public void setMaxPaintingBounds(ILcdBounds aPaintingBounds)
public ILcdBounds getMaxPaintingBounds()
public TLcdVPFFeatureClass getVPFFeatureClass()
public TLcdVPFLibrary getVPFLibrary()
public ILcdBounds getBounds(int aMode, ILcdGXYView aGXYView) throws TLcdNoBoundsException
getBounds
in interface ILcdGXYLayer
getBounds
in class TLcdGXYLayer
aMode
- a bitwise combination of ALL or SELECTION and one or more of BODIES and HANDLES.
The ILcdGXYLayer.LABELS
mode is not supported.aGXYView
- the view in which the layer could be placed. This enables taking into account the views settings,
for example the scale.TLcdNoBoundsException
- if the layer doesn't have any valid bounds,
for example when none of the elements have a representation for the views current settings.public void setTileTraceOn(boolean aTileTraceOn)
public boolean isTileTraceOn()
public int applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView)
TLcdGXYLayer
The function shall be applied successively to all objects in the bounds as long as the function returns
true
for an object. This allows developers to indicate a stop condition. Note that the order in
which the objects are passed to the function is not specified.
When strict interaction is required, only objects whose representation lies within the given bounds, completely or partially, are candidates to be passed to the function. An object whose representation does not interact with the bounds should not be passed to the function. Applying non strict interaction can be useful to avoid heavy computations to determine whether an objects representation lies within the bounds.
This method behaves similar to the paint method, and as such is allowed to omit small or invisible objects for performance reasons.
Objects smaller than the set minimum object size may be omitted.
applyOnInteract
in interface ILcdGXYLayer
applyOnInteract
in class TLcdGXYLayer
aFunction
- the function to apply. When the function returns false, no more objects should be passed to
the function.aBounds
- all objects who lie partially or completely in this area in the view are candidates to be passed to
the function.aStrictInteract
- if true
, the ILcdFunction
shall be applied only to the objects
interacting with the given bounds. When false is passed, other objects may be taken into account too.
When applying the function to an object consumes less time than checking whether an objects representation
interacts with the bounds, non-strict interaction is generally faster.aGXYView
- the view in whose bounds the objects representations should be in order to be passed to the
function.public static String modeToString(int aMode)