public abstract class UnplannedDrawing extends Object implements Drawing
paintData(Paper,DataStore)
method.Constructor and Description |
---|
UnplannedDrawing() |
Modifier and Type | Method and Description |
---|---|
Object |
calculatePlan(Object[] knownPlans,
DataStore dataStore)
Returns null.
|
ReportMap |
getReport(Object plan)
Obtains information associated with the plot.
|
void |
paintData(Object plan,
Paper paper,
DataStore dataStore)
Calls
paintData(Paper,DataStore) . |
protected abstract void |
paintData(Paper paper,
DataStore dataStore)
Performs the drawing.
|
public Object calculatePlan(Object[] knownPlans, DataStore dataStore)
calculatePlan
in interface Drawing
knownPlans
- list of zero or more plans that may have been
previously calculated by this classdataStore
- data-bearing objectpaintData
methodpublic void paintData(Object plan, Paper paper, DataStore dataStore)
paintData(Paper,DataStore)
.public ReportMap getReport(Object plan)
Drawing
plan
argument must be the result of an earlier call
to this object's Drawing.calculatePlan(java.lang.Object[], uk.ac.starlink.ttools.plot2.data.DataStore)
method.
The hasReports
method of the corresponding Plotter
indicates whether the return value may contain general-interest
reports; special-purpose reports may be returned in any case.
If there is nothing interesting to report, which will often be the case, the return value may be null, which is shorthand for an empty map.
This ought not to be an expensive operation.
getReport
in interface Drawing
plan
- drawing plan, from calculatePlan
Plotter.hasReports()
protected abstract void paintData(Paper paper, DataStore dataStore)
paintData(Object,Paper,DataStore)
.paper
- graphics destinationdataStore
- data-bearing objectCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.