Class StaticTextReportItem
java.lang.Object
de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractRReportItem
de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.StaticTextReportItem
- All Implemented Interfaces:
IReportItem
Report item containing static text.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractRReportItem
DEFAULT_DESCRIPTION
-
Constructor Summary
ConstructorDescriptionConstructs a report item without text that is not a heading.StaticTextReportItem
(String text, boolean isHeading) Initializes a new report item containing static text. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes the generation of data for the report item.getText()
boolean
Checks if the static text is a heading.void
Set the static text of this report item.void
visit
(IReportRenderingVisitor renderingVisitor) Used by the visitor to display the report item.Methods inherited from class de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractRReportItem
getDescription
-
Constructor Details
-
StaticTextReportItem
Initializes a new report item containing static text.- Parameters:
text
- The static text of this item.isHeading
-true
if this static text is a heading.
-
StaticTextReportItem
public StaticTextReportItem()Constructs a report item without text that is not a heading.
-
-
Method Details
-
getText
- Returns:
- The static text that is represented by this report item.
-
setText
Set the static text of this report item.- Parameters:
newText
- The new static text to set.
-
isHeading
public boolean isHeading()Checks if the static text is a heading.- Returns:
true
if the text is a heading.
-
visit
Used by the visitor to display the report item. Used to render the report item.- Specified by:
visit
in interfaceIReportItem
- Specified by:
visit
in classAbstractRReportItem
- Parameters:
renderingVisitor
- Visitor used for rendering the content of each item.
-
generateData
Initializes the generation of data for the report item.- Parameters:
re
- connection to the R engine used for the generation
-