Klasse Chart2
- Alle implementierten Schnittstellen:
BorderProperties, GeneralProperties, HyperlinkProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
To create a new chart use Section.addChart2(ChartStyle, int, int, int, int).
To change the chart style use setPlot(ChartPlot).
A chart instance contains properties of the chart titles (header, subtitle, footnote), legend and plot properties.
If you want to edit the style specific properties you can get the plot with getPlot() and cast it to
the plot which belong to this chart style. For more information see the class ChartStyle.
If you create a new chart all properties except dataset are initialized with default.
To set the dataset properties use ChartPlot.getDataset().
For more information see the class BaseDataset.
For the information how to use the old chart API please see ChartConverter.
- Seit:
- 8.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen Element
Element.BorderProps, Element.CommonProperties, Element.ElementTypes, Element.HyperlinkProps, Element.StringProps -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final ChartStyleDefault chart style.static final Stringthe default font used by chart.static final ChartTitlethe default font and color properties of footnote title of chart.static final ChartTitleThe default font and color properties of header title of chart.static final ChartTitlethe default font and color properties of subtitle title of chart.static final StringA constant for the horizontal orientation of chart.static final StringA constant for the vertical orientation of chart.Von Klasse geerbte Felder Element
BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPARTVon Schnittstelle geerbte Felder BorderProperties
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the footnote of this chart.Returns the header title of this chart.Returns the legend of this chart.getPlot()Returns the plot of chart.Returns the plot orientation of this chart.FOR INTERNAL USE ONLY Returns a list of all referenced property formulas.List<? extends ReportComponent> Returns allReportComponents that are descendants of this one.Returns the sub title of this chart.booleanFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidReads out the data column names from dataset and refreshes the chart labels.voidFOR INTERNAL USE ONLYvoidsetFootnote(ChartTitle footnote) Sets the footnote of this chart.voidsetHeaderTitle(ChartTitle headerTitle) Sets the header title of this chart.voidSets the legend of this chart.voidSets a new plot for this chart.voidsetPlotOrientation(String plotOrientation) Sets the plot orientation of this chart.voidFOR INTERNAL USE ONLYvoidsetSubtitle(ChartTitle subtitle) Sets the sub title of this chart.voidFOR INTERNAL USE ONLYVon Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getListStack, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, getTypeAsString, getVerAlign, getVerAlignFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isCloseBorderOnPageBreakInternal, isDropShadow, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, paramString, parseElement, parseText, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setListStack, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula, setVerAlign, setVerAlignFormulaVon Klasse geerbte Methoden ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getHeight, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getStructElem, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, setBackColor, setBackColorFormula, setCustomData, setHeight, setKeepTogether, setKeepTogetherFormula, setStructElem, setSuppress, setSuppressFormula, setWidth, setX, setYVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden BorderProperties
getBackColor, getBackColorFormula, getBottomLineStyle, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyle, getLeftLineStyleFormula, getRightLineStyle, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyle, getTopLineStyleFormula, isCloseBorderOnPageBreak, isDropShadow, isTightHorizontal, setBackColor, setBackColorFormula, setBottomLineStyle, setBottomLineStyleFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setForeColor, setForeColorFormula, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setTopLineStyle, setTopLineStyleFormulaVon Schnittstelle geerbte Methoden GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormulaVon Schnittstelle geerbte Methoden HyperlinkProperties
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormula
-
Felddetails
-
DEFAULT_CHART_STYLE
Default chart style. This style will be used by creating a chart without custom chart style. -
DEFAULT_FONT_NAME
-
DEFAULT_HEADER_TITLE
The default font and color properties of header title of chart. -
DEFAULT_SUBTITLE_TITLE
the default font and color properties of subtitle title of chart. -
DEFAULT_FOOTNOTE_TITLE
the default font and color properties of footnote title of chart. -
PLOT_ORIENTATION_VERTICAL
A constant for the vertical orientation of chart.- Siehe auch:
-
PLOT_ORIENTATION_HORIZONTAL
A constant for the horizontal orientation of chart.- Siehe auch:
-
-
Methodendetails
-
getPlotOrientation
Returns the plot orientation of this chart.- Gibt zurück:
- the orientation name.
- Seit:
- 8.0
- Siehe auch:
-
setPlotOrientation
Sets the plot orientation of this chart.- Parameter:
plotOrientation- the plot orientation name (nullnot permitted).- Löst aus:
IllegalArgumentException- bynullor unknown plot orientation.- Seit:
- 8.0
- Siehe auch:
-
getHeaderTitle
Returns the header title of this chart.- Gibt zurück:
- the chart title.
- Seit:
- 8.0
- Siehe auch:
-
setHeaderTitle
Sets the header title of this chart.- Parameter:
headerTitle- the title (nullnot permitted).- Seit:
- 8.0
- Siehe auch:
-
getSubtitle
Returns the sub title of this chart. The sub title is the title below the header.- Gibt zurück:
- the chart title.
- Seit:
- 8.0
- Siehe auch:
-
setSubtitle
Sets the sub title of this chart. The sub title is the title below the header.- Parameter:
subtitle- the title (nullnot permitted).- Seit:
- 8.0
- Siehe auch:
-
getFootnote
Returns the footnote of this chart. The footnote is the title of the bottom bound of chart.- Gibt zurück:
- the chart title.
- Seit:
- 8.0
- Siehe auch:
-
setFootnote
Sets the footnote of this chart. The footnote is the title of the bottom bound of chart.- Parameter:
footnote- the title (nullnot permitted).- Seit:
- 8.0
- Siehe auch:
-
getPlot
Returns the plot of chart. This can be a simple plot extended fromAbstractPlotor aCombinedPlotwith a list of simple plots. A plot of typeAbstractPlotyou can cast to a plot appropriate to chart style. See the implementations of interfaceChartStyle.- Gibt zurück:
- the plot.
- Seit:
- 8.0
- Siehe auch:
-
setPlot
Sets a new plot for this chart. This can be a simple plot extended fromAbstractPlotor aCombinedPlotwith a list of simple plots.
To change the chart style use a.s.LineStyle.LINE_MARKER_STACKEDto get a stacked line style, useLineStyle.getDefaultPlot()to get a new line plot and set it with this function.- Parameter:
plot- the plot (nullnot permitted).- Seit:
- 8.0
- Siehe auch:
-
getLegend
Returns the legend of this chart.- Gibt zurück:
- the legend.
- Seit:
- 8.0
- Siehe auch:
-
setLegend
Sets the legend of this chart. To disable legend showing useLegend.setLegendPlacement(com.inet.report.chart.LegendPlacement)with parameterLegendPlacement.NONE.- Parameter:
legend- the legend (nullnot permitted).- Seit:
- 8.0
- Siehe auch:
-
refreshAutoTitles
public void refreshAutoTitles()Reads out the data column names from dataset and refreshes the chart labels. Please use this function to refresh the chart labels if the data was be changed.- Seit:
- 8.0
-
getPropertyFormulas
FOR INTERNAL USE ONLY Returns a list of all referenced property formulas.- Setzt außer Kraft:
getPropertyFormulasin KlasseElement- Gibt zurück:
- the list of referenced objects.
-
resetReferences
public void resetReferences()FOR INTERNAL USE ONLY- Angegeben von:
resetReferencesin Schnittstellecom.inet.report.ReferenceHolder- Setzt außer Kraft:
resetReferencesin KlasseReportComponent
-
setReferences
public void setReferences()FOR INTERNAL USE ONLY- Angegeben von:
setReferencesin Schnittstellecom.inet.report.ReferenceHolder- Setzt außer Kraft:
setReferencesin KlasseElement
-
updateReferences
public void updateReferences()FOR INTERNAL USE ONLY -
isDOMParser
public boolean isDOMParser()FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLReturns whether this node is to be read via a DOM parser.
- Angegeben von:
isDOMParserin SchnittstelleNodeParser- Setzt außer Kraft:
isDOMParserin KlasseReportComponent- Gibt zurück:
- true if this node is to be read via a DOM parser, false otherwise.
-
parseDOM
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLParses the node.
- Angegeben von:
parseDOMin SchnittstelleNodeParser- Setzt außer Kraft:
parseDOMin KlasseReportComponent- Parameter:
node- the nodeparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
getSubComponents
Returns allReportComponents that are descendants of this one. E.G. this will return all Element of aSection. But it's as well useful forCrossTabs orTextelements which have additional elements.- Angegeben von:
getSubComponentsin KlasseReportComponent- Gibt zurück:
- a list with all sub components which can be empty as well; will be
nullif the component has no descendants
-