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.LineProperties
Nested 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, TEXTPART
Fields inherited from interface com.inet.report.BorderProperties
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE
Fields inherited from interface com.inet.report.GeneralProperties
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
FOR INTERNAL USE ONLYLines do not support drop shadows.List<? extends ReportComponent>
Returns allReportComponent
s that are descendants of this one.boolean
Lines do not support drop shadows.void
setDropShadow
(boolean newValue) Lines can not have drop shadows.void
setDropShadowFormula
(FormulaField newFormula) Lines can not have drop shadows.void
setHyperlinkUrl
(String url) Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationExceptionvoid
setHyperlinkUrlFormula
(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, spansMultipleSections
Methods 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, 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
Methods 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, setY
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, setTopLineStyleFormula
Methods inherited from interface com.inet.report.GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
Methods 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:
isDropShadow
in interfaceBorderProperties
- Overrides:
isDropShadow
in classElement
- Returns:
- always false
- Since:
- 6.1
-
getDropShadowFormula
Lines do not support drop shadows.- Specified by:
getDropShadowFormula
in interfaceBorderProperties
- Overrides:
getDropShadowFormula
in 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:
setDropShadow
in interfaceBorderProperties
- Overrides:
setDropShadow
in 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:
setDropShadowFormula
in interfaceBorderProperties
- Overrides:
setDropShadowFormula
in 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:
setHyperlinkUrl
in 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:
setHyperlinkUrlFormula
in classElement
- Parameters:
newFormula
- not used- Throws:
UnsupportedOperationException
- always because it is not possible to set hyperlinks on lines- Since:
- 9.0
-
getSubComponents
Returns allReportComponent
s that are descendants of this one. E.G. this will return all Element of aSection
. But it's as well useful forCrossTab
s orText
elements which have additional elements.- Specified by:
getSubComponents
in classReportComponent
- Returns:
- a list with all sub components which can be empty as well; will be
null
if the component has no descendants
-