|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractLineElement
com.inet.report.Line
public class Line
With the 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.
Section.addHorizontalLine(int, int, int),
Section.addVerticalLine(int, int, int),
Section.addVerticalLine(int, int, int, Section),
Section.remove(Element),
Section.getElements(),
Section.getElementsV()| Field Summary |
|---|
| Fields inherited from class com.inet.report.Element |
|---|
BOX, CHART, CROSSTAB, CROSSTABCELL, CROSSTABCOLUMN, CROSSTABROW, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, 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 | |
|---|---|
FormulaField |
getDropShadowFormula()
Lines do not support drop shadows. |
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 |
| Methods 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.ReportComponent |
|---|
getBackColor, getBackColorFormula, getKeepTogetherFormula, getSuppressFormula, getType, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setX, setY |
| Methods inherited from interface com.inet.report.LineProperties |
|---|
getForeColor, getSuppressFormula, getX, getY, isSuppress, setForeColor, setSuppress, setSuppressFormula, setX, setY |
| Methods inherited from interface com.inet.report.BorderProperties |
|---|
getBackColor, getBackColorFormula, setBackColor, setBackColorFormula |
| Methods inherited from interface com.inet.report.GeneralProperties |
|---|
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseEndElement |
| Method Detail |
|---|
public boolean isDropShadow()
isDropShadow in interface BorderPropertiesisDropShadow in class Elementpublic FormulaField getDropShadowFormula()
getDropShadowFormula in interface BorderPropertiesgetDropShadowFormula in class Elementpublic void setDropShadow(boolean newValue)
UnsupportedOperationException.
setDropShadow in interface BorderPropertiessetDropShadow in class ElementnewValue - has no effect
java.lang.UnsupportedOperationException - will always be thrownpublic void setDropShadowFormula(FormulaField newFormula)
UnsupportedOperationException.
setDropShadowFormula in interface BorderPropertiessetDropShadowFormula in class ElementnewFormula - has no effect
java.lang.UnsupportedOperationException - will always be thrownpublic void setHyperlinkUrl(java.lang.String url)
setHyperlinkUrl in class Elementurl - not used
java.lang.UnsupportedOperationException - always because it is not possible to set hyperlinks on linespublic void setHyperlinkUrlFormula(FormulaField newFormula)
setHyperlinkUrlFormula in class ElementnewFormula - not used
java.lang.UnsupportedOperationException - always because it is not possible to set hyperlinks on lines
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||