Klasse Line
java.lang.Object
com.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractLineElement
com.inet.report.Line
- Alle implementierten Schnittstellen:
BorderProperties, GeneralProperties, LineProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
With the
You can create a line using the methods
If you want to change the color of a line, use the method
Line class you can draw a vertical or horizontal line anywhere in your report.
You can draw a line in one section only or a line which spans multiple sections. A line differs from
a border line in the report. You can place a line anywhere with any length, a border
line is always attached to an element, i.e. to a FieldElement or a Text
element. The line can span multiple sections,
a border line cannot.You can create a line using the methods
Section.addHorizontalLine(int, int, int) and Section.addVerticalLine(int, int, int)
in class Section. For vertical lines there are two methods, one adds a vertical line to one section,
the other can add a line which spans multiple sections.If you want to change the color of a line, use the method
Element.setForeColor(int) inheritated from Element.Please note: When the line is rendered, it is drawn from (x1, y1) (included) to (x2, y2) (excluded). This is different from the Java drawLine behavior, which draws both start point and end point of a line.
This class is part of theRDC.- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen AbstractLineElement
AbstractLineElement.LinePropertiesVon 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 TypMethodeBeschreibungprotected Objectclone()FOR INTERNAL USE ONLYLines do not support drop shadows.List<? extends ReportComponent> Returns allReportComponents that are descendants of this one.booleanLines do not support drop shadows.voidsetDropShadow(boolean newValue) Lines can not have drop shadows.voidsetDropShadowFormula(FormulaField newFormula) Lines can not have drop shadows.voidsetHyperlinkUrl(String url) Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationExceptionvoidsetHyperlinkUrlFormula(FormulaField newFormula) Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationExceptionVon Klasse geerbte Methoden AbstractLineElement
getBottomLineStyle, getEndSection, getHeight, getLeftLineStyle, getLineStyle, getLineWidth, getRightLineStyle, getTopLineStyle, getWidth, getX2, getY2, isExtendToBottomOfSectionWhenPrinting, isMultiSectionElement, parseElement, parseText, setEndSection, setExtendToBottomOfSectionWhenPrinting, setHeight, setLineStyle, setLineWidth, setWidth, setX2, setY2, spansMultipleSectionsVon Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, 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, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, 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, 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden BorderProperties
getBackColor, getBackColorFormula, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getForeColor, getForeColorFormula, getLeftLineStyleFormula, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyleFormula, isCloseBorderOnPageBreak, isTightHorizontal, setBackColor, setBackColorFormula, setBottomLineStyle, setBottomLineStyleFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, 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
-
clone
-
isDropShadow
public boolean isDropShadow()Lines do not support drop shadows.- Angegeben von:
isDropShadowin SchnittstelleBorderProperties- Setzt außer Kraft:
isDropShadowin KlasseElement- Gibt zurück:
- always false
- Seit:
- 6.1
-
getDropShadowFormula
Lines do not support drop shadows.- Angegeben von:
getDropShadowFormulain SchnittstelleBorderProperties- Setzt außer Kraft:
getDropShadowFormulain KlasseElement- Gibt zurück:
- always null Element
- Seit:
- 6.1
-
setDropShadow
public void setDropShadow(boolean newValue) Lines can not have drop shadows. So this method throws anUnsupportedOperationException.- Angegeben von:
setDropShadowin SchnittstelleBorderProperties- Setzt außer Kraft:
setDropShadowin KlasseElement- Parameter:
newValue- has no effect- Löst aus:
UnsupportedOperationException- will always be thrown- Seit:
- 6.1
-
setDropShadowFormula
Lines can not have drop shadows. So this method throws anUnsupportedOperationException.- Angegeben von:
setDropShadowFormulain SchnittstelleBorderProperties- Setzt außer Kraft:
setDropShadowFormulain KlasseElement- Parameter:
newFormula- has no effect- Löst aus:
UnsupportedOperationException- will always be thrown- Seit:
- 6.1
-
setHyperlinkUrl
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException- Setzt außer Kraft:
setHyperlinkUrlin KlasseElement- Parameter:
url- not used- Löst aus:
UnsupportedOperationException- always because it is not possible to set hyperlinks on lines- Seit:
- 9.0
-
setHyperlinkUrlFormula
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException- Setzt außer Kraft:
setHyperlinkUrlFormulain KlasseElement- Parameter:
newFormula- not used- Löst aus:
UnsupportedOperationException- always because it is not possible to set hyperlinks on lines- Seit:
- 9.0
-
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
-