Class UnplannedDrawing
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.UnplannedDrawing
- All Implemented Interfaces:
Drawing
Convenience partial implementation of Drawing where no plan is used.
Concrete impleentations have to provide an implementation of the
plan-less
paintData(Paper,DataStore)
method.- Since:
- 15 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculatePlan
(Object[] knownPlans, DataStore dataStore) Returns null.Obtains information associated with the plot.void
CallspaintData(Paper,DataStore)
.protected abstract void
Performs the drawing.
-
Constructor Details
-
UnplannedDrawing
public UnplannedDrawing()
-
-
Method Details
-
calculatePlan
Returns null.- Specified by:
calculatePlan
in interfaceDrawing
- Parameters:
knownPlans
- list of zero or more plans that may have been previously calculated by this classdataStore
- data-bearing object- Returns:
- plan to present to the
paintData
method
-
paintData
CallspaintData(Paper,DataStore)
. -
getReport
Description copied from interface:Drawing
Obtains information associated with the plot. Theplan
argument must be the result of an earlier call to this object'sDrawing.calculatePlan(java.lang.Object[], uk.ac.starlink.ttools.plot2.data.DataStore)
method. ThehasReports
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.
-
paintData
Performs the drawing. Invoked bypaintData(Object,Paper,DataStore)
.- Parameters:
paper
- graphics destinationdataStore
- data-bearing object
-