|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.util.collections.HeirarchicalLinkedListItem
org.pentaho.chart.core.ChartElement
public class ChartElement
Defines the element information for the elements in the chart definition file
Field Summary | |
---|---|
static String |
BYROW
Attribute name for specifying a chart's data should be interpreted "byrow" |
static String |
CATEGORICAL
Attribute name for specifying a chart's data should be represented categorically |
static String |
COLUMN_NAME
Attribute name used to refer to a column in the data by column name |
static String |
COLUMN_POSITION
Attribute name used to refer to a column in the data positionally (starting with column 0) |
static String |
HREF
Attribute name for making an external reference |
static String |
ID
Attributes nam for specifying a taq's user specified id (used in referencing one tag from another tag) |
static String |
ID_ATTRIBUTE
The ID attribute which defines an element's id (in the xml namespace) |
static String |
NAME_ATTRIBUTE
The name attribute which defines the element name (if specified) |
static String |
NAMESPACE
The namespace for all the charting items |
static String |
NAMESPACE_ATTRIBUTE
See XML-Namespaces for the idea of that one ... |
static String |
ROW_POSITION
Attribute name used to refer to a row in the data positionally (starting with row 0) (Used for Pie Charts) |
static String |
STACKED
Attribute name used to mark a group as stacked instead of a normal groupingmv |
static String |
TAG_NAME_AXIS
The name of the XML tag which represents the chart axis |
static String |
TAG_NAME_CHART
Chart Definition tag for the base chart |
static String |
TAG_NAME_DOMAIN_LABEL
Chart Definition tag for the range label |
static String |
TAG_NAME_GROUP
The name of the XML tag which represents a data grouping for the chart |
static String |
TAG_NAME_LABEL
The name of the XML tag which represents a tick label in the chart |
static String |
TAG_NAME_LEGEND
The name of the XML tag which represents the chart legend |
static String |
TAG_NAME_PLOT
The name of the XML tag which represents the chart plot |
static String |
TAG_NAME_RANGE_LABEL
Chart Definition tag for the range label |
static String |
TAG_NAME_SERIES
The name of the XML tag which represents a series in the chart |
static String |
TAG_NAME_STYLESHEET
The name of the XML tag which represents the CSS information |
static String |
TAG_NAME_TICK_LABEL
The name of the XML tag which represents a label in the chart |
static String |
TAG_NAME_TITLE
The name of the XML tag which represents the chart title |
Constructor Summary | |
---|---|
ChartElement()
Constructs an element. |
Method Summary | |
---|---|
void |
addChildElement(ChartElement chartElement)
|
Object |
clone()
Clones this object. |
ChartElement[] |
findChildrenByName(String tagNameToMatch)
Returns all child ChartElements to this ChartElement which
has the specified tagName . |
Object |
getAttribute(String name)
|
Object |
getAttribute(String namespace,
String name)
|
org.pentaho.reporting.libraries.xmlns.common.AttributeMap |
getAttributeMap()
Returns a copy of the attributes for this chart element |
String[] |
getAttributeNameSpaces()
Returns a set of namespaces used in the attributes for this chart elements |
Map |
getAttributes(String namespace)
|
Map |
getCounters()
|
ChartElement |
getFirstChildItem()
Returns the first ChartElement that is a child of this ChartElement . |
String |
getId()
Returns the id for this chart element |
Locale |
getLanguage()
|
ChartElement |
getLastChildItem()
Returns the last ChartElement that is a child of this ChartElement . |
org.pentaho.reporting.libraries.css.dom.LayoutStyle |
getLayoutStyle()
|
String |
getName()
Returns the name of the Element. |
String |
getNamespace()
|
ChartElement |
getNextDepthFirstItem()
Returns the next ChartElement based on a "depth-first" search. |
ChartElement |
getNextItem()
Returns the ChartElement this follows this element. |
ChartElement |
getParentItem()
Returns the parent ChartElement for the current ChartElement . |
org.pentaho.reporting.libraries.css.dom.LayoutElement |
getParentLayoutElement()
|
ChartElement |
getPreviousItem()
Returns the ChartElement that is previous to this element. |
org.pentaho.reporting.libraries.css.dom.LayoutElement |
getPreviousLayoutElement()
|
String |
getPseudoElement()
|
Map |
getStrings()
|
org.pentaho.reporting.libraries.css.values.CSSValue |
getStyle(org.pentaho.reporting.libraries.css.model.StyleKey key)
Quick accessor method to return the style value for the style key for this chart element |
String |
getTagName()
Returns the tag name that this element represents |
String |
getText()
|
boolean |
isPseudoElement()
|
boolean |
isStyleResolved()
Indicates if style information contained in the attributes has been resolved into |
void |
setAttribute(String name,
Object value)
|
void |
setAttribute(String namespace,
String name,
Object value)
|
void |
setId(String id)
Sets the id for this chart elements |
void |
setName(String name)
Defines the name for this Element. |
void |
setNamespace(String id)
|
void |
setTagName(String tagName)
Sets the tagname for this element. |
void |
setText(String text)
|
String |
toString()
Dumps the content of this ChartElement |
String |
toString(String prefix)
Performs a "deep" toString() where this element and all the children of this element are included |
Methods inherited from class org.pentaho.util.collections.HeirarchicalLinkedListItem |
---|
getChildCount, getModNumber, removeItem |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NAME_ATTRIBUTE
public static final String ID_ATTRIBUTE
public static final String NAMESPACE_ATTRIBUTE
public static final String NAMESPACE
public static final String TAG_NAME_CHART
public static final String TAG_NAME_RANGE_LABEL
public static final String TAG_NAME_DOMAIN_LABEL
public static final String TAG_NAME_STYLESHEET
public static final String TAG_NAME_TITLE
public static final String TAG_NAME_LEGEND
public static final String TAG_NAME_AXIS
public static final String TAG_NAME_PLOT
public static final String TAG_NAME_SERIES
public static final String TAG_NAME_GROUP
public static final String TAG_NAME_LABEL
public static final String TAG_NAME_TICK_LABEL
public static final String CATEGORICAL
public static final String BYROW
public static final String ID
public static final String HREF
public static final String COLUMN_POSITION
public static final String ROW_POSITION
public static final String COLUMN_NAME
public static final String STACKED
Constructor Detail |
---|
public ChartElement()
Method Detail |
---|
public boolean isStyleResolved()
true
if this ChartElement
contains style information,
false
otherwisepublic String getNamespace()
getNamespace
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public void setNamespace(String id)
public String getId()
public void setId(String id)
public String getTagName()
getTagName
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public void setTagName(String tagName)
public void setName(String name)
name
- the name of this elementpublic String getName()
public void setAttribute(String name, Object value)
name
- value
- public void setAttribute(String namespace, String name, Object value)
namespace
- name
- value
- public Object getAttribute(String name)
name
-
public Object getAttribute(String namespace, String name)
getAttribute
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
namespace
- name
-
public Map getAttributes(String namespace)
namespace
-
public org.pentaho.reporting.libraries.xmlns.common.AttributeMap getAttributeMap()
public String[] getAttributeNameSpaces()
public Object clone() throws CloneNotSupportedException
HeirarchicalLinkedListItem
clone
in class HeirarchicalLinkedListItem
CloneNotSupportedException
public Map getCounters()
getCounters
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public Locale getLanguage()
getLanguage
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public org.pentaho.reporting.libraries.css.dom.LayoutStyle getLayoutStyle()
getLayoutStyle
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public String getPseudoElement()
getPseudoElement
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public Map getStrings()
getStrings
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public boolean isPseudoElement()
isPseudoElement
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public org.pentaho.reporting.libraries.css.dom.LayoutElement getPreviousLayoutElement()
getPreviousLayoutElement
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public org.pentaho.reporting.libraries.css.dom.LayoutElement getParentLayoutElement()
getParentLayoutElement
in interface org.pentaho.reporting.libraries.css.dom.LayoutElement
public void addChildElement(ChartElement chartElement)
public String getText()
public void setText(String text)
public String toString()
toString
in class Object
public String toString(String prefix)
prefix
- used for indenting the outputpublic ChartElement getParentItem()
ChartElement
for the current ChartElement
.
If this ChartElement
is the root element of the document, this method
will return null
getParentItem
in class HeirarchicalLinkedListItem
public ChartElement getPreviousItem()
ChartElement
that is previous to this element. If there is none,
this method will return null
getPreviousItem
in class HeirarchicalLinkedListItem
public ChartElement getNextItem()
ChartElement
this follows this element. If there is none,
this method will return null
getNextItem
in class HeirarchicalLinkedListItem
public ChartElement getFirstChildItem()
ChartElement
that is a child of this ChartElement
.
If this ChartElement
does not have any children, this method will return null
.
getFirstChildItem
in class HeirarchicalLinkedListItem
public ChartElement getLastChildItem()
ChartElement
that is a child of this ChartElement
.
If this ChartElement
does not have any children, this method will return null
.
getLastChildItem
in class HeirarchicalLinkedListItem
public ChartElement getNextDepthFirstItem()
ChartElement
based on a "depth-first" search. This will return
(in the following order)
ChartElement
ChartElement
ChartElement
null
(indicates that this is the last ChartElements
from a depth-first point of view
getNextDepthFirstItem
in class HeirarchicalLinkedListItem
null
if this is the last item.public ChartElement[] findChildrenByName(String tagNameToMatch)
ChartElements
to this ChartElement
which
has the specified tagName
.
tagNameToMatch
- the name of the tag used in searching
ChartElement
objects that match the search criteriapublic org.pentaho.reporting.libraries.css.values.CSSValue getStyle(org.pentaho.reporting.libraries.css.model.StyleKey key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |