public abstract class ChartNode extends PropertyBagObject
Modifier and Type | Field and Description |
---|---|
static int |
PROPERTY_CHANGED_MESSAGE |
static int |
PROPERTY_CHANGING_MESSAGE |
boolean |
trackPropertyChanged |
boolean |
trackPropertyChanging |
Modifier and Type | Method and Description |
---|---|
void |
applyLayoutRounding()
Applies layout snapping and corrects rounding errors.
|
RadRect |
arrange(RadRect rect)
|
RadRect |
arrange(RadRect rect,
boolean shouldRoundLayout)
|
ChartAreaModel |
chartArea()
Returns an instance of the
ChartAreaModel
class representing the chart model which this node is part of. |
boolean |
clearValue(int key)
Clears the current value for the specified property key.
|
int |
collectionIndex()
Gets the index of the
ChartNode instance in its parent ElementCollection . |
RadRect |
getLayoutSlot()
|
NodeState |
getNodeState()
|
ChartElement |
getParent()
Gets the parent element of the current
ChartNode . |
ChartElementPresenter |
getPresenter()
Gets the
ChartElementPresenter instance whichrepresents the visual element in which
this ChartNode is visualised. |
int |
index()
Gets the index of the
ChartNode instance in its parent NodeCollection . |
void |
invalidate()
Invalidates the layout parameters of the current
ChartNode instance in the context of
the owning chart area. |
boolean |
isTreeLoaded()
Gets a value determining whether the node three of the parent chart is been loaded.
|
boolean |
isVisible()
Returns a boolean value indicating whether the current node is visible
and takes part in the chart layout.
|
void |
load(LoadContext context)
Loads the current
ChartNode into the provided LoadContext instance. |
void |
setIsVisible(boolean value)
Sets a boolean value indicating whether the current node is visible
and takes part in the chart layout.
|
void |
setParent(ChartElement value)
Initializes the parent of the current
ChartNode to the specified ChartElement . |
boolean |
setValue(int key,
Object value)
Sets the property specified by the provided key to the provided object.
|
getTypedValue, getValue, isLocalValue
public static final int PROPERTY_CHANGING_MESSAGE
public static final int PROPERTY_CHANGED_MESSAGE
public boolean trackPropertyChanging
public boolean trackPropertyChanged
public boolean isVisible()
true
if the node is visible, otherwise false
.public void setIsVisible(boolean value)
value
- true
if the ChartNode
instance is visible, otherwise false
.public ChartAreaModel chartArea()
ChartAreaModel
class representing the chart model which this node is part of.ChartAreaModel
model.public int index()
ChartNode
instance in its parent NodeCollection
.ChartNode
.public int collectionIndex()
ChartNode
instance in its parent ElementCollection
.ChartNode
.public boolean isTreeLoaded()
true
if the tree is loaded, otherwise false
.public ChartElement getParent()
ChartNode
.ChartElement
class representing the parent of the current
ChartNode
.public void setParent(ChartElement value)
ChartNode
to the specified ChartElement
.value
- the ChartElement
instance which represents the parent of this
ChartNode
.public ChartElementPresenter getPresenter()
ChartElementPresenter
instance whichrepresents the visual element in which
this ChartNode
is visualised.ChartElementPresenter
instance.public void invalidate()
ChartNode
instance in the context of
the owning chart area.public void applyLayoutRounding()
public boolean setValue(int key, Object value)
PropertyBagObject
setValue
in class PropertyBagObject
key
- the key of the property to set.value
- the value of the property.true
if the property has been successfully set, otherwise false
.public boolean clearValue(int key)
PropertyBagObject
clearValue
in class PropertyBagObject
key
- the key of the property to clear.true
if the property has been successfully cleared, otherwise false
.public void load(LoadContext context)
ChartNode
into the provided LoadContext
instance.context
- the LoadContext
into which the current ChartNode
will be loaded.