Package com.inet.report
Class Line
java.lang.Object
com.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractLineElement
com.inet.report.Line
- All Implemented Interfaces:
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 the RDC.-
Nested Class Summary
Nested classes/interfaces inherited from class com.inet.report.AbstractLineElement
AbstractLineElement.LinePropertiesNested classes/interfaces inherited from class com.inet.report.Element
Element.BorderProps, Element.CommonProperties, Element.ElementTypes, Element.HyperlinkProps, Element.StringProps -
Field Summary
Fields inherited from class com.inet.report.Element
BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPARTFields inherited from interface com.inet.report.BorderProperties
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINEFields inherited from interface com.inet.report.GeneralProperties
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT, ALIGN_VERTICAL_BOTTOM, ALIGN_VERTICAL_CENTER, ALIGN_VERTICAL_TOP -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 UnsupportedOperationExceptionMethods inherited from class com.inet.report.AbstractLineElement
getBottomLineStyle, getEndSection, getHeight, getLeftLineStyle, getLineStyle, getLineWidth, getRightLineStyle, getTopLineStyle, getWidth, getX2, getY2, isExtendToBottomOfSectionWhenPrinting, isMultiSectionElement, parseElement, parseText, setEndSection, setExtendToBottomOfSectionWhenPrinting, setHeight, setLineStyle, setLineWidth, setWidth, setX2, setY2, spansMultipleSectionsMethods inherited from class com.inet.report.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, setVerAlignFormulaMethods inherited from class com.inet.report.ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getSuppressFormula, getType, getX, getY, isDOMParser, isKeepTogether, isSuppress, parseDOM, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, resetReferences, setBackColor, setBackColorFormula, setCustomData, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setX, setYMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inet.report.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, setTopLineStyleFormulaMethods inherited from interface com.inet.report.GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormulaMethods inherited from interface com.inet.report.LineProperties
getForeColor, getSuppressFormula, getX, getY, isSuppress, setForeColor, setSuppress, setSuppressFormula, setX, setY
-
Method Details
-
clone
FOR INTERNAL USE ONLY -
isDropShadow
public boolean isDropShadow()Lines do not support drop shadows.- Specified by:
isDropShadowin interfaceBorderProperties- Overrides:
isDropShadowin classElement- Returns:
- always false
- Since:
- 6.1
-
getDropShadowFormula
Lines do not support drop shadows.- Specified by:
getDropShadowFormulain interfaceBorderProperties- Overrides:
getDropShadowFormulain classElement- Returns:
- always null Element
- Since:
- 6.1
-
setDropShadow
public void setDropShadow(boolean newValue) Lines can not have drop shadows. So this method throws anUnsupportedOperationException.- Specified by:
setDropShadowin interfaceBorderProperties- Overrides:
setDropShadowin classElement- Parameters:
newValue- has no effect- Throws:
UnsupportedOperationException- will always be thrown- Since:
- 6.1
-
setDropShadowFormula
Lines can not have drop shadows. So this method throws anUnsupportedOperationException.- Specified by:
setDropShadowFormulain interfaceBorderProperties- Overrides:
setDropShadowFormulain classElement- Parameters:
newFormula- has no effect- Throws:
UnsupportedOperationException- will always be thrown- Since:
- 6.1
-
setHyperlinkUrl
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException- Overrides:
setHyperlinkUrlin classElement- Parameters:
url- not used- Throws:
UnsupportedOperationException- always because it is not possible to set hyperlinks on lines- Since:
- 9.0
-
setHyperlinkUrlFormula
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException- Overrides:
setHyperlinkUrlFormulain classElement- Parameters:
newFormula- not used- Throws:
UnsupportedOperationException- always because it is not possible to set hyperlinks on lines- Since:
- 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.- Specified by:
getSubComponentsin classReportComponent- Returns:
- a list with all sub components which can be empty as well; will be
nullif the component has no descendants
-