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.voidCallspaintData(Paper,DataStore).protected abstract voidPerforms the drawing.
-
Constructor Details
-
UnplannedDrawing
public UnplannedDrawing()
-
-
Method Details
-
calculatePlan
Returns null.- Specified by:
calculatePlanin 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
paintDatamethod
-
paintData
CallspaintData(Paper,DataStore). -
getReport
Description copied from interface:DrawingObtains information associated with the plot. Theplanargument must be the result of an earlier call to this object'sDrawing.calculatePlan(java.lang.Object[], uk.ac.starlink.ttools.plot2.data.DataStore)method. ThehasReportsmethod 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
-