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,java.io.Serializable,java.lang.Cloneable
public class Line extends AbstractLineElement implements java.lang.Cloneable
With theLineclass 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 aFieldElementor aTextelement. The line can span multiple sections, a border line cannot.
You can create a line using the methodsSection.addHorizontalLine(int, int, int)andSection.addVerticalLine(int, int, int)in classSection. 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 methodElement.setForeColor(int)inheritated fromElement.
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()FOR INTERNAL USE ONLYFormulaFieldgetDropShadowFormula()Lines do not support drop shadows.java.util.List<? extends ReportComponent>getSubComponents()Returns allReportComponents that are descendants of this one.booleanisDropShadow()Lines do not support drop shadows.voidsetDropShadow(boolean newValue)Lines can not have drop shadows.voidsetDropShadowFormula(FormulaField newFormula)Lines can not have drop shadows.voidsetHyperlinkUrl(java.lang.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 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.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 Detail
-
clone
protected java.lang.Object clone()
FOR INTERNAL USE ONLY- Overrides:
clonein classjava.lang.Object
-
isDropShadow
public boolean isDropShadow()
Lines do not support drop shadows.- Specified by:
isDropShadowin interfaceBorderProperties- Overrides:
isDropShadowin classElement- Returns:
- always false
- Since:
- 6.1
-
getDropShadowFormula
public FormulaField 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:
java.lang.UnsupportedOperationException- will always be thrown- Since:
- 6.1
-
setDropShadowFormula
public void setDropShadowFormula(FormulaField newFormula)
Lines can not have drop shadows. So this method throws anUnsupportedOperationException.- Specified by:
setDropShadowFormulain interfaceBorderProperties- Overrides:
setDropShadowFormulain classElement- Parameters:
newFormula- has no effect- Throws:
java.lang.UnsupportedOperationException- will always be thrown- Since:
- 6.1
-
setHyperlinkUrl
public void setHyperlinkUrl(java.lang.String url)
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException- Overrides:
setHyperlinkUrlin classElement- Parameters:
url- not used- Throws:
java.lang.UnsupportedOperationException- always because it is not possible to set hyperlinks on lines- Since:
- 9.0
-
setHyperlinkUrlFormula
public void setHyperlinkUrlFormula(FormulaField newFormula)
Setting hyperlinks on lines is not possible and will throw an UnsupportedOperationException- Overrides:
setHyperlinkUrlFormulain classElement- Parameters:
newFormula- not used- Throws:
java.lang.UnsupportedOperationException- always because it is not possible to set hyperlinks on lines- Since:
- 9.0
-
getSubComponents
public java.util.List<? extends ReportComponent> 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
-
-