public class Line extends AbstractLineElement implements java.lang.Cloneable
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.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.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.BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPART
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT
Modifier and Type | Method and Description |
---|---|
FormulaField |
getDropShadowFormula()
Lines do not support drop shadows.
|
java.util.List<? extends ReportComponent> |
getSubComponents()
Returns all
ReportComponent s that are descendants of this one. |
boolean |
isDropShadow()
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(java.lang.String url)
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException
|
void |
setHyperlinkUrlFormula(FormulaField newFormula)
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException
|
getBottomLineStyle, getEndSection, getHeight, getLeftLineStyle, getLineStyle, getLineWidth, getRightLineStyle, getTopLineStyle, getWidth, getX2, getY2, isExtendToBottomOfSectionWhenPrinting, isMultiSectionElement, setEndSection, setExtendToBottomOfSectionWhenPrinting, setHeight, setLineStyle, setLineWidth, setWidth, setX2, setY2, spansMultipleSections
addListener, copy, getBottomLineStyleFormula, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyleFormula, getParent, getPropertyFormulas, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyleFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula
getBackColor, getBackColorFormula, getKeepTogetherFormula, getSuppressFormula, getType, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setX, setY
getForeColor, getSuppressFormula, getX, getY, isSuppress, setForeColor, setSuppress, setSuppressFormula, setX, setY
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
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public boolean isDropShadow()
isDropShadow
in interface BorderProperties
isDropShadow
in class Element
public FormulaField getDropShadowFormula()
getDropShadowFormula
in interface BorderProperties
getDropShadowFormula
in class Element
public void setDropShadow(boolean newValue)
UnsupportedOperationException
.setDropShadow
in interface BorderProperties
setDropShadow
in class Element
newValue
- has no effectjava.lang.UnsupportedOperationException
- will always be thrownpublic void setDropShadowFormula(FormulaField newFormula)
UnsupportedOperationException
.setDropShadowFormula
in interface BorderProperties
setDropShadowFormula
in class Element
newFormula
- has no effectjava.lang.UnsupportedOperationException
- will always be thrownpublic void setHyperlinkUrl(java.lang.String url)
setHyperlinkUrl
in class Element
url
- not usedjava.lang.UnsupportedOperationException
- always because it is not possible to set hyperlinks on linespublic void setHyperlinkUrlFormula(FormulaField newFormula)
setHyperlinkUrlFormula
in class Element
newFormula
- not usedjava.lang.UnsupportedOperationException
- always because it is not possible to set hyperlinks on linespublic java.util.List<? extends ReportComponent> getSubComponents()
ReportComponent
s that are descendants of this one. E.G. this will return all Element
of a Section
. But it's as well useful for CrossTab
s or Text
elements which have
additional elements.getSubComponents
in class ReportComponent
null
if the component has no descendantsCopyright © 1999-2020 by i-net software GmbH