Klasse AbstractLineElement
java.lang.Object
com.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractLineElement
- Alle implementierten Schnittstellen:
BorderProperties, GeneralProperties, LineProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
public abstract class AbstractLineElement
extends Element
implements LineProperties, BorderProperties
This class is an abstract implementation of the interface LineProperties.
- Seit:
- 6.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic enumFOR INTERNAL USE ONLYVon Klasse geerbte verschachtelte Klassen/Schnittstellen Element
Element.BorderProps, Element.CommonProperties, Element.ElementTypes, Element.HyperlinkProps, Element.StringProps -
Feldübersicht
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 TypMethodeBeschreibungfinal intReturn the same as getLineStyle()Returns the value of the property 'end section'.intReturns the height of an element.final intReturn the same as getLineStyle()final intReturns the value of the property 'line style', with one of the following line styles: single line, double line, dashed line, dotted line or no line.intReturns the value of the property 'line width'.final intReturn the same as getLineStyle()final intReturn the same as getLineStyle()intgetWidth()Returns the width of an element.intgetX2()Returns the x position of the element in the end section, if the element does not end in the same section as it begins.intgetY2()Returns the x position of the element in the end section, if the element does not end in the same section as it begins.booleanGets the value of the property 'extend to bottom of section when printing'.booleanReturntrue, if this element span over more than one sectionparseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidsetEndSection(Section newValue) Sets the value of the property 'end section'.final voidsetExtendToBottomOfSectionWhenPrinting(boolean newValue) Sets the value of the property 'extend to bottom of section when printing'.final voidsetHeight(int h) Sets the height of an element.voidsetLineStyle(int lineStyle) Sets the value of the property 'line style' with one of the different line styles single line, double line, dashed line, dotted line or no line.final voidsetLineWidth(int newValue) Sets the value of the property 'line width'.final voidsetWidth(int w) Sets the width of an element.voidsetX2(int x2) Sets the x position of the element in the end section, if the element does not end in the same section as it begins.voidsetY2(int y2) Sets the y position of the element in the end section, if the element does not end in the same section as it begins.final booleanVon Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyleFormula, getListStack, getParent, getPropertyFormulas, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyleFormula, getTypeAsString, getVerAlign, getVerAlignFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isCloseBorderOnPageBreakInternal, isDropShadow, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setListStack, setReferences, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula, setVerAlign, setVerAlignFormulaVon Klasse geerbte Methoden ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getStructElem, getSubComponents, getSuppressFormula, getType, getX, getY, isDOMParser, isKeepTogether, isSuppress, parseDOM, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, resetReferences, setBackColor, setBackColorFormula, setCustomData, setKeepTogether, setKeepTogetherFormula, setStructElem, setSuppress, setSuppressFormula, setX, setYVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden BorderProperties
getBackColor, getBackColorFormula, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyleFormula, getRightLineStyleFormula, getTightHorizontalFormula, 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 LineProperties
getForeColor, getSuppressFormula, getX, getY, isSuppress, setForeColor, setSuppress, setSuppressFormula, setX, setY
-
Methodendetails
-
setExtendToBottomOfSectionWhenPrinting
public final void setExtendToBottomOfSectionWhenPrinting(boolean newValue) Sets the value of the property 'extend to bottom of section when printing'. Use this property if you want to extend the line/box to the bottom of section.- Angegeben von:
setExtendToBottomOfSectionWhenPrintingin SchnittstelleLineProperties- Parameter:
newValue-trueif the property should be set, elsefalse.- Seit:
- 7.0
-
isExtendToBottomOfSectionWhenPrinting
public boolean isExtendToBottomOfSectionWhenPrinting()Gets the value of the property 'extend to bottom of section when printing'. If this property is true, the vertical line will extend up to the end of the section when printing.- Angegeben von:
isExtendToBottomOfSectionWhenPrintingin SchnittstelleLineProperties- Gibt zurück:
trueif the line will be extended, otherwisefalse.- Seit:
- 7.0
-
setLineWidth
public final void setLineWidth(int newValue) Sets the value of the property 'line width'. With this property you can specify the width of the line of the line/box.- Angegeben von:
setLineWidthin SchnittstelleLineProperties- Parameter:
newValue- The new value of the property 'line width'.- Seit:
- 7.0
-
getLineWidth
public int getLineWidth()Returns the value of the property 'line width'. With this property you can specify the width of the line of the line/box.- Angegeben von:
getLineWidthin SchnittstelleLineProperties- Gibt zurück:
- The current value of the property 'line width'.
- Seit:
- 7.0
-
setLineStyle
public void setLineStyle(int lineStyle) Sets the value of the property 'line style' with one of the different line styles single line, double line, dashed line, dotted line or no line. If you have chosen one of the first 4 values, it inserts a line with the given style.- Angegeben von:
setLineStylein SchnittstelleLineProperties- Parameter:
lineStyle- The new value of the property 'line style'.- Löst aus:
IllegalArgumentException- if newValue is a invalid line style- Seit:
- 7.0
- Siehe auch:
-
getLineStyle
public final int getLineStyle()Returns the value of the property 'line style', with one of the following line styles: single line, double line, dashed line, dotted line or no line.- Angegeben von:
getLineStylein SchnittstelleLineProperties- Gibt zurück:
- The current value of the property 'line style'.
- Seit:
- 7.0
- Siehe auch:
-
getLeftLineStyle
public final int getLeftLineStyle()Return the same as getLineStyle()- Angegeben von:
getLeftLineStylein SchnittstelleBorderProperties- Setzt außer Kraft:
getLeftLineStylein KlasseElement- Gibt zurück:
- The current value of the property 'line style'.
- Seit:
- 10.0
- Siehe auch:
-
getTopLineStyle
public final int getTopLineStyle()Return the same as getLineStyle()- Angegeben von:
getTopLineStylein SchnittstelleBorderProperties- Setzt außer Kraft:
getTopLineStylein KlasseElement- Gibt zurück:
- The current value of the property 'line style'.
- Seit:
- 10.0
- Siehe auch:
-
getRightLineStyle
public final int getRightLineStyle()Return the same as getLineStyle()- Angegeben von:
getRightLineStylein SchnittstelleBorderProperties- Setzt außer Kraft:
getRightLineStylein KlasseElement- Gibt zurück:
- The current value of the property 'line style'.
- Seit:
- 10.0
- Siehe auch:
-
getBottomLineStyle
public final int getBottomLineStyle()Return the same as getLineStyle()- Angegeben von:
getBottomLineStylein SchnittstelleBorderProperties- Setzt außer Kraft:
getBottomLineStylein KlasseElement- Gibt zurück:
- The current value of the property 'line style'.
- Seit:
- 10.0
- Siehe auch:
-
setX2
public void setX2(int x2) Sets the x position of the element in the end section, if the element does not end in the same section as it begins. The unit is in twips.- Angegeben von:
setX2in SchnittstelleLineProperties- Parameter:
x2- The x position in twips.- Löst aus:
IllegalArgumentException- if x2 is negative- Seit:
- 7.0
-
getX2
public int getX2()Returns the x position of the element in the end section, if the element does not end in the same section as it begins. The unit is in twips.- Angegeben von:
getX2in SchnittstelleLineProperties- Gibt zurück:
- The x position in the end section in twips.
- Seit:
- 7.0
-
setY2
public void setY2(int y2) Sets the y position of the element in the end section, if the element does not end in the same section as it begins. The unit is in twips.- Angegeben von:
setY2in SchnittstelleLineProperties- Parameter:
y2- The y position in twips.- Löst aus:
IllegalArgumentException- if y2 is negative- Seit:
- 7.0
-
getY2
public int getY2()Returns the x position of the element in the end section, if the element does not end in the same section as it begins. The unit is in twips.- Angegeben von:
getY2in SchnittstelleLineProperties- Gibt zurück:
- The x position in the end section in twips.
- Seit:
- 7.0
-
getEndSection
Returns the value of the property 'end section'. When the line should span some sections, you have to specify the end-section of the line.- Angegeben von:
getEndSectionin SchnittstelleLineProperties- Gibt zurück:
- The section in that the line ends if the line goes across more than one section.
- Seit:
- 7.0
-
setEndSection
Sets the value of the property 'end section'. When the line should span some sections, you have to specify the end-section of the line.- Angegeben von:
setEndSectionin SchnittstelleLineProperties- Parameter:
newValue- The section in that the line should ends, if the line should go across more than one section.- Seit:
- 7.0
-
getWidth
public int getWidth()Returns the width of an element. Use the 'element width' property to change the width of the element. The unit is in twips.- Angegeben von:
getWidthin SchnittstelleLineProperties- Setzt außer Kraft:
getWidthin KlasseReportComponent- Gibt zurück:
- The width in twips.
- Seit:
- 7.0
-
getHeight
public int getHeight()Returns the height of an element. Use the 'element height' property to change the width of the element. The unit is in twips.- Angegeben von:
getHeightin SchnittstelleLineProperties- Setzt außer Kraft:
getHeightin KlasseReportComponent- Gibt zurück:
- The width in twips.
- Löst aus:
UnsupportedOperationException- if this element spans multiple sections- Seit:
- 7.0
-
setWidth
public final void setWidth(int w) Sets the width of an element. Use the 'element width' property to change the width of the element. The unit is in twips.- Angegeben von:
setWidthin SchnittstelleLineProperties- Setzt außer Kraft:
setWidthin KlasseReportComponent- Parameter:
w- The width in twips.- Löst aus:
UnsupportedOperationException- if this element spans multiple sectionsIllegalArgumentException- if w is negative- Seit:
- 7.0
-
setHeight
public final void setHeight(int h) Sets the height of an element. Use the 'element height' property to change the width of the element. The unit is in twips.- Angegeben von:
setHeightin SchnittstelleLineProperties- Setzt außer Kraft:
setHeightin KlasseReportComponent- Parameter:
h- The width in twips.- Löst aus:
UnsupportedOperationException- if this element spans multiple sectionsIllegalArgumentException- if h is negative- Seit:
- 7.0
-
spansMultipleSections
public final boolean spansMultipleSections()Returns whether this element spans multiple sections or not.
LineandBoxare the only elements which can span multiple section. If this method returns true the end section can be identified by callinggetEndSection().- Gibt zurück:
Trueif this elements spans multiple sections,falseotherwise.- Seit:
- 7.1
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLParses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Setzt außer Kraft:
parseElementin KlasseElement- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag- The XMLTag to be parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- 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.
-
parseText
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLThis method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
- Angegeben von:
parseTextin SchnittstelleNodeParser- Setzt außer Kraft:
parseTextin KlasseElement- Parameter:
text- text encountered and to be storedparserMap- The map of current Parser.
-
isMultiSectionElement
public boolean isMultiSectionElement()Returntrue, if this element span over more than one section- Gibt zurück:
true, if this element span over more than one section- Seit:
- 11.1
-