public final class VectorVisualizer extends ServiceProviderVisualizer
ServiceProviderVisualizer
that draws the vector
defined by IVectorService
, ILocationPointService
and IVectorGraphicsService
.Constructor and Description |
---|
VectorVisualizer()
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
VectorVisualizer.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. |
dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected void dispose(boolean disposing)
dispose
in class ServiceProviderVisualizer
disposing
- 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 ServiceProviderVisualizer
serviceProviders
- 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 ServiceProviderVisualizer
group
- 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 ServiceProviderVisualizer
public void update(@Nonnull JulianDate time)
update
in class ServiceProviderVisualizer
time
- The time for which to draw graphics.public void clear()
VectorVisualizer.createEvaluators(java.lang.Iterable<? extends agi.foundation.IServiceProvider>, agi.foundation.EvaluatorGroup)
clear
in class ServiceProviderVisualizer
public Collection<IServiceProvider> pick(PickResult pickResult)
IServiceProvider
instances that were contained in the
provided PickResult
pick
in class ServiceProviderVisualizer
pickResult
- The pick result for which to retrieve data.ArgumentNullException
- Thrown when pickResult
is null
.