protected static class Timeline.TimelineObjectPlotter extends Object implements ItemPlotter<TimelineObject,Float[],MBFImage>
TimelineObject
s. The size of each band needs
to be updated here when the diversity axis band size changes.Modifier | Constructor and Description |
---|---|
protected |
TimelineObjectPlotter() |
Modifier and Type | Method and Description |
---|---|
void |
plotObject(MBFImage visImage,
XYPlotVisualisation.LocatedObject<TimelineObject> object,
AxesRenderer2D<Float[],MBFImage> renderer)
Plots a specific object to the visualisation using the
AxesRenderer2D to
provide the position of the object. |
void |
renderRestarting()
Called just before a render of the visualisation is about to start.
|
void |
setBandSize(int bandSize)
Set the size of a band.
|
protected TimelineObjectPlotter()
public void renderRestarting()
renderRestarting
in interface ItemPlotter<TimelineObject,Float[],MBFImage>
ItemPlotter.renderRestarting()
public void plotObject(MBFImage visImage, XYPlotVisualisation.LocatedObject<TimelineObject> object, AxesRenderer2D<Float[],MBFImage> renderer)
AxesRenderer2D
to
provide the position of the object. Should side affect the given image.plotObject
in interface ItemPlotter<TimelineObject,Float[],MBFImage>
visImage
- The image to draw toobject
- The objectrenderer
- The axes rendererItemPlotter.plotObject(org.openimaj.image.Image, org.openimaj.vis.general.XYPlotVisualisation.LocatedObject, org.openimaj.vis.general.AxesRenderer2D)
public void setBandSize(int bandSize)
bandSize
- The size of a band.