|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.IndexedChartElementEntity
public class IndexedChartElementEntity extends java.lang.Object implements ChartEntity, java.io.Serializable
Simple entity class for virtual chart objects which do not have a corresponding UI object and are indexed by an index. Bar chart bars and pie chart segments fall into this category.
ChartEntity,
Serialized Form| Constructor and Description |
|---|
IndexedChartElementEntity(ChartEntity parentEntity,
MetaDataModel metaModel,
DataModel model,
int index)
Constructs a new IndexedChartElementEntity object with
the specified parent entity, data model and index. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
void |
fillEntitySheet(java.util.Properties id)
Fills in the property sheet of the entity. |
protected DataModel |
getDataModel()
|
java.lang.String |
getDescription()
Returns a textual description of the chart entity. |
int |
getIndex()
Returns index of the entity. |
protected MetaDataModel |
getMetaDataModel()
|
ChartEntity |
getParentEntity()
Returns parent chart entity. |
java.lang.String |
getShortDescription()
Returns a short textual description. |
int |
hashCode()
Returns a nodeHash code value for the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexedChartElementEntity(ChartEntity parentEntity,
MetaDataModel metaModel,
DataModel model,
int index)
IndexedChartElementEntity object with
the specified parent entity, data model and index. If the data
model implements ChartDataModelAnnotations interface,
it's getLabelAt and getDescriptionAt
methods are used for this entity description.
parentEntity - the parent chart entitymetaModel - meta data modelmodel - the chart data modelindex - the entity indexgetShortDescription(),
getDescription()| Method Detail |
|---|
public int hashCode()
getParentEntity().hashCode() + getIndex() + 1
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.true if (o != null) && (getClass() != o.getClass())
and both these entities have the same parent entity and indexpublic java.lang.String getShortDescription()
ChartDataModelAnnotations interface,
then value returned by model's getLabelAt method
is used as short description of this entity. If data model isn't
set returns null.
getShortDescription in interface ChartEntitypublic java.lang.String getDescription()
ChartDataModelAnnotations
interface, then value returned by model's getLabelAt
method is used as description of the entity. If data model isn't
set returns null.
getDescription in interface ChartEntitypublic ChartEntity getParentEntity()
getParentEntity in interface ChartEntitypublic int getIndex()
public void fillEntitySheet(java.util.Properties id)
"index"
property into the property sheet. The value of the property is string
representation of the entity index.
fillEntitySheet in interface ChartEntityid - the property sheetChartEntity.fillEntitySheet(java.util.Properties)protected MetaDataModel getMetaDataModel()
protected DataModel getDataModel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||