public class CartesianPlotBandAnnotationModel extends SingleAxisAnnotationModel
PlotBandAnnotationModel
that displays an annotation in cartesian charts.ChartElement.Predicate<T>
children
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
CartesianPlotBandAnnotationModel()
Creates a new instance of the
CartesianPlotBandAnnotationModel class. |
Modifier and Type | Method and Description |
---|---|
Object |
getFrom()
Gets the object from which the band starts.
|
Object |
getTo()
Gets the object at which the band ends.
|
boolean |
isUpdated()
States whether the current annotation has been updated.
|
void |
resetState()
Used to reset the update state of the two plots.
|
void |
setFrom(Object value)
Sets the object from which the band starts.
|
void |
setTo(Object value)
Sets the object at which the band ends.
|
getAxis, setAxis
canAddChild, enumDescendants, enumDescendants, enumDescendants, findAncestor, findDescendant, getPresenter, isAncestorOf, setPresenter
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public CartesianPlotBandAnnotationModel()
CartesianPlotBandAnnotationModel
class.public Object getFrom()
public void setFrom(Object value)
value
- the new starting object.public Object getTo()
public void setTo(Object value)
value
- the new object at which the band ends.public void resetState()
resetState
in class ChartAnnotationModel
public boolean isUpdated()
ChartAnnotationModel
isUpdated
in class SingleAxisAnnotationModel
true
if the current annotation was updated and false
otherwise.