public static class IlvMapDefaultLabeler.LabelLayer extends IlvManagerLayer
Note: do not instantiate directly.
Constructor and Description |
---|
LabelLayer(IlvInputStream stream)
Constructs a label layer from an
IlvInputStream . |
LabelLayer(IlvMapLabelManager labelManager)
Constructs a label layer from an
IlvMapLabelManager object. |
Modifier and Type | Method and Description |
---|---|
protected void |
draw(Graphics dst,
IlvManagerView view)
Draws the layer in a view of a manager.
|
boolean |
isVisible(IlvManagerView view)
Returns
true if the layer is visible in the specified view. |
void |
print(Graphics dst,
IlvRect area,
IlvTransformer t)
Prints the layer with a specified transformer.
|
void |
write(IlvOutputStream stream)
Writes this layer to an
IlvOutputStream . |
addVisibilityFilter, computeBBox, drawImpl, getAlpha, getIndex, getManager, getName, getNamedProperty, getProperty, getVisibilityFilters, isSelectable, isTemporarilyHidden, isVisible, removeNamedProperty, removeVisibilityFilter, setAlpha, setManager, setName, setNamedProperty, setProperty, writeIt
addObject, afterUpdate, beforeUpdate, collectObjects, collectSelectableObjects, deleteAll, getCardinal, getElements, getIndex, getManagers, getManagersCount, getObject, getObject, getSelectableObject, getSubsequentRemoveThreshold, isQuadtreeEnabled, isZOrdering, map, mapInside, mapInside, mapIntersects, mapIntersects, removeObject, setIndex, SetInitialNumberOfNonZoomablesCapacity, SetInitialNumberOfObjectsCapacity, setQuadtreeEnabled, setSubsequentRemoveThreshold, setZOrdering
public LabelLayer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
public LabelLayer(IlvMapLabelManager labelManager)
IlvMapLabelManager
object.labelManager
- The IlvMapLabelManager
to create the
LabelLayer
object from.public void write(IlvOutputStream stream)
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvManagerLayer
stream
- The stream to write to.protected void draw(Graphics dst, IlvManagerView view)
draw
in class IlvManagerLayer
dst
- The Graphics
object to draw to.view
- The view of the manager.IlvManagerLayer.draw(java.awt.Graphics, ilog.views.IlvManagerView)
public void print(Graphics dst, IlvRect area, IlvTransformer t)
print
in class IlvManagerLayer
dst
- The graphics.area
- The rectangle of the layer to print in the manager coordinate system.t
- The transformer used to print the content.public boolean isVisible(IlvManagerView view)
true
if the layer is visible in the specified view.
This method checks the visibility of the layer itself, the visibility of
the layer for the specified view, and then calls the visibility filters.isVisible
in class IlvManagerLayer
view
- The view of the manager.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.