TEntity - The type of entity.public class LabelVisualizer<TEntity extends IEntityIdentifier & IEntityPosition> extends EntityVisualizer<TEntity>
EntityVisualizer which creates a label for each entity.
 This visualizer uses a TextBatchPrimitive
 to efficiently render each entity label.
| Constructor and Description | 
|---|
LabelVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
Initializes a new instance. 
 | 
LabelVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
               EntitySet<TEntity> entities,
               LabelCallback<TEntity> callback)
Creates a new instance with the provided  
EntitySet and LabelCallback. | 
LabelVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
               EntitySet<TEntity> entities,
               LabelCallback<TEntity> callback,
               SetHint setHint)
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
dispose(boolean disposing)
Releases any resources associated with this instance. 
 | 
LabelCallback<TEntity> | 
getCallback()
Gets the  
LabelCallback used to determine the label. | 
Color | 
getColor()
Gets the color. 
 | 
boolean | 
getDisplay()
Gets a value indicating whether the entities are displayed. 
 | 
DisplayCondition | 
getDisplayCondition()
Gets the  
DisplayCondition. | 
EntitySet<TEntity> | 
getEntities()
Gets the entities being visualized. 
 | 
Cartesian | 
getEyeOffset()
Gets the eye offset of each label from the position of the entity. 
 | 
GraphicsFont | 
getFont()
Gets the  
GraphicsFont to use to draw label text. | 
Origin | 
getOrigin()
Gets the origin of each label. 
 | 
Color | 
getOutlineColor()
Gets the outline color for the label text. 
 | 
float | 
getOutlineTranslucency()
Gets the translucency of the label outline. 
 | 
PointF | 
getPixelOffset()
Gets the pixel offset of each label from the position of the entity. 
 | 
SetHint | 
getSetHint()
Gets the  
SetHint (get) of the underlying primitive. | 
TextureFilter2D | 
getTextureFilter()
Gets filter to use. 
 | 
float | 
getTranslucency()
Gets the translucency. 
 | 
Iterable<TEntity> | 
pick(PickResult pickResult)
Given a  
PickResult, returns the entities that were picked. | 
void | 
setCallback(LabelCallback<TEntity> value)
Sets the  
LabelCallback used to determine the label. | 
void | 
setColor(Color value)
Sets the color. 
 | 
void | 
setDisplay(boolean value)
Sets a value indicating whether the entities are displayed. 
 | 
void | 
setDisplayCondition(DisplayCondition value)
Sets the  
DisplayCondition. | 
void | 
setEntities(EntitySet<TEntity> value)
Sets the entities being visualized. 
 | 
void | 
setEyeOffset(Cartesian value)
Sets the eye offset of each label from the position of the entity. 
 | 
void | 
setFont(GraphicsFont value)
Sets the  
GraphicsFont to use to draw label text. | 
void | 
setOrigin(Origin value)
Sets the origin of each label. 
 | 
void | 
setOutlineColor(Color value)
Sets the outline color for the label text. 
 | 
void | 
setOutlineTranslucency(float value)
Sets the translucency of the label outline. 
 | 
void | 
setPixelOffset(PointF value)
Sets the pixel offset of each label from the position of the entity. 
 | 
void | 
setTextureFilter(TextureFilter2D value)
Sets filter to use. 
 | 
void | 
setTranslucency(float value)
Sets the translucency. 
 | 
void | 
update(Transaction transaction)
Updates the underlying primitive to reflect the latest entity state. 
 | 
dispose, pick, pickclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic LabelVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.public LabelVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities, LabelCallback<TEntity> callback)
EntitySet and LabelCallback.typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.entities - The entities to be visualized.callback - The callback used to determine each entity's label.public LabelVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities, LabelCallback<TEntity> callback, @Nonnull SetHint setHint)
typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.entities - The entities to be visualized.callback - The callback used to determine each entity's label.setHint - The SetHint (get) to use for the underlying primitives./>protected void dispose(boolean disposing)
dispose in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>disposing - true to release both managed and unmanaged resources;
    false to release only unmanaged resources.@Nonnull public final TextureFilter2D getTextureFilter()
public final void setTextureFilter(@Nonnull TextureFilter2D value)
@Nonnull public final GraphicsFont getFont()
GraphicsFont to use to draw label text.ArgumentNullException - Thrown if value is null.public final void setFont(@Nonnull GraphicsFont value)
GraphicsFont to use to draw label text.ArgumentNullException - Thrown if value is null.public final LabelCallback<TEntity> getCallback()
LabelCallback used to determine the label.public final void setCallback(LabelCallback<TEntity> value)
LabelCallback used to determine the label.@Nonnull public final Cartesian getEyeOffset()
public final void setEyeOffset(@Nonnull Cartesian value)
@Nonnull public final PointF getPixelOffset()
public final void setPixelOffset(@Nonnull PointF value)
@Nonnull public final Color getOutlineColor()
public final void setOutlineColor(@Nonnull Color value)
public final float getOutlineTranslucency()
public final void setOutlineTranslucency(float value)
@Nonnull public final SetHint getSetHint()
SetHint (get) of the underlying primitive.public EntitySet<TEntity> getEntities()
getEntities in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public void setEntities(EntitySet<TEntity> value)
setEntities in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>@Nonnull public Color getColor()
EntityVisualizergetColor in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public void setColor(@Nonnull Color value)
EntityVisualizersetColor in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public float getTranslucency()
getTranslucency in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public void setTranslucency(float value)
setTranslucency in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public boolean getDisplay()
getDisplay in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public void setDisplay(boolean value)
setDisplay in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public DisplayCondition getDisplayCondition()
EntityVisualizerDisplayCondition.getDisplayCondition in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public void setDisplayCondition(DisplayCondition value)
EntityVisualizerDisplayCondition.setDisplayCondition in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>public void update(Transaction transaction)
update in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>transaction - The transaction to use.ArgumentNullException - Thrown if transaction is null.PropertyInvalidException - Thrown if Entities (get / set) is null.PropertyInvalidException - Thrown if Callback (get / set) is null.public Iterable<TEntity> pick(PickResult pickResult)
PickResult, returns the entities that were picked.pick in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>pickResult - The result of the Insight3D pick.ArgumentNullException - Thrown if pickResult is null.