public final class LinkVisualizer extends ServiceProviderVisualizer
ServiceProviderVisualizer that draws a line defined
by ILinkGraphicsService service at the location
provided by the receiver and transmitted defined in
ILinkService. LinkGraphicsExtension
can be used to add the required services to an object.| Constructor and Description |
|---|
LinkVisualizer()
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all primitives and evaluators and prepares the visualizer to be re-used by a future call to
LinkVisualizer.createEvaluators(java.lang.Iterable<? extends agi.foundation.IServiceProvider>, agi.foundation.EvaluatorGroup) |
void |
createEvaluators(Iterable<? extends IServiceProvider> serviceProviders,
EvaluatorGroup group)
Called by
ServiceProviderDisplay to instruct the visualizer to create an Evaluator
objects needed for visualization. |
protected void |
dispose(boolean disposing)
Releases any resources associated with this instance.
|
void |
initialUpdate()
Called by the
ServiceProviderDisplay after all evaluators have been created to instruct
the visualizer to finish any remaining initialization and draw its static graphics. |
Collection<IServiceProvider> |
pick(PickResult pickResult)
Returns a list of
IServiceProvider instances that were contained in the
provided PickResult |
void |
update(JulianDate time)
Updates any dynamic graphics to the provided time.
|
void |
updateReferences(EvaluatorGroup group)
Called by
ServiceProviderDisplay to instruct the visualizer to update its evaluator references. |
disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected void dispose(boolean disposing)
dispose in class ServiceProviderVisualizerdisposing - true to release both managed and unmanaged resources;
false to release only unmanaged resources.public void createEvaluators(Iterable<? extends IServiceProvider> serviceProviders, EvaluatorGroup group)
ServiceProviderDisplay to instruct the visualizer to create an Evaluator
objects needed for visualization.createEvaluators in class ServiceProviderVisualizerserviceProviders - The list of service providers being visualized.group - The EvaluatorGroup in which evaluators should be created.public void updateReferences(EvaluatorGroup group)
ServiceProviderDisplay to instruct the visualizer to update its evaluator references.updateReferences in class ServiceProviderVisualizergroup - The group from which to update evaluator references.public void initialUpdate()
ServiceProviderDisplay after all evaluators have been created to instruct
the visualizer to finish any remaining initialization and draw its static graphics.initialUpdate in class ServiceProviderVisualizerpublic void update(@Nonnull JulianDate time)
update in class ServiceProviderVisualizertime - The time for which to draw graphics.public void clear()
LinkVisualizer.createEvaluators(java.lang.Iterable<? extends agi.foundation.IServiceProvider>, agi.foundation.EvaluatorGroup)clear in class ServiceProviderVisualizerpublic Collection<IServiceProvider> pick(PickResult pickResult)
IServiceProvider instances that were contained in the
provided PickResultpick in class ServiceProviderVisualizerpickResult - The pick result for which to retrieve data.ArgumentNullException - Thrown when pickResult is null.