public abstract class AbstractLineElement extends Element implements LineProperties, BorderProperties
AbstractLineElement.LineProperties
,
Serialized FormBOX, 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 |
---|---|
int |
getBottomLineStyle()
Return the same as getLineStyle()
|
Section |
getEndSection()
Returns the value of the property 'end section'.
|
int |
getHeight()
Returns the height of an element.
|
int |
getLeftLineStyle()
Return the same as getLineStyle()
|
int |
getLineStyle()
Returns the value of the property 'line style', with one of the following line styles: single line, double line, dashed line, dotted line or no line.
|
int |
getLineWidth()
Returns the value of the property 'line width'.
|
int |
getRightLineStyle()
Return the same as getLineStyle()
|
int |
getTopLineStyle()
Return the same as getLineStyle()
|
int |
getWidth()
Returns the width of an element.
|
int |
getX2()
Returns the x position of the element in the end section, if the element does not end in the same section as it begins.
|
int |
getY2()
Returns the x position of the element in the end section, if the element does not end in the same section as it begins.
|
boolean |
isExtendToBottomOfSectionWhenPrinting()
Gets the value of the property 'extend to bottom of section when printing'.
|
boolean |
isMultiSectionElement()
Return
true , if this element span over more than one section |
void |
setEndSection(Section newValue)
Sets the value of the property 'end section'.
|
void |
setExtendToBottomOfSectionWhenPrinting(boolean newValue)
Sets the value of the property 'extend to bottom of section when printing'.
|
void |
setHeight(int h)
Sets the height of an element.
|
void |
setLineStyle(int lineStyle)
Sets the value of the property 'line style' with one of the different line styles single line, double line, dashed line, dotted line or no line.
|
void |
setLineWidth(int newValue)
Sets the value of the property 'line width'.
|
void |
setWidth(int w)
Sets the width of an element.
|
void |
setX2(int x2)
Sets the x position of the element in the end section, if the element does not end in the same section as it begins.
|
void |
setY2(int y2)
Sets the y position of the element in the end section, if the element does not end in the same section as it begins.
|
boolean |
spansMultipleSections()
Returns whether this element spans multiple sections or not.
|
addListener, copy, getBottomLineStyleFormula, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyleFormula, getParent, getPropertyFormulas, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyleFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isDropShadow, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula
getBackColor, getBackColorFormula, getKeepTogetherFormula, getSubComponents, 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, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyleFormula, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyleFormula, isCloseBorderOnPageBreak, isDropShadow, isTightHorizontal, setBackColor, setBackColorFormula, setBottomLineStyle, setBottomLineStyleFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setForeColor, setForeColorFormula, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setTopLineStyle, setTopLineStyleFormula
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public final void setExtendToBottomOfSectionWhenPrinting(boolean newValue)
setExtendToBottomOfSectionWhenPrinting
in interface LineProperties
newValue
- true
if the property should be set, else false
.public boolean isExtendToBottomOfSectionWhenPrinting()
isExtendToBottomOfSectionWhenPrinting
in interface LineProperties
true
if the line will be extended, otherwise false
.public final void setLineWidth(int newValue)
setLineWidth
in interface LineProperties
newValue
- The new value of the property 'line width'.public int getLineWidth()
getLineWidth
in interface LineProperties
public void setLineStyle(int lineStyle)
setLineStyle
in interface LineProperties
lineStyle
- The new value of the property 'line style'.java.lang.IllegalArgumentException
- if newValue is a invalid line styleBorderPropertiesConstants.NO_LINE
,
BorderPropertiesConstants.LINE_STYLE_SINGLE
,
BorderPropertiesConstants.LINE_STYLE_DOUBLE
,
BorderPropertiesConstants.LINE_STYLE_DASHED
,
BorderPropertiesConstants.LINE_STYLE_DOTTED
public final int getLineStyle()
getLineStyle
in interface LineProperties
BorderPropertiesConstants.NO_LINE
,
BorderPropertiesConstants.LINE_STYLE_SINGLE
,
BorderPropertiesConstants.LINE_STYLE_DOUBLE
,
BorderPropertiesConstants.LINE_STYLE_DASHED
,
BorderPropertiesConstants.LINE_STYLE_DOTTED
public final int getLeftLineStyle()
getLeftLineStyle
in interface BorderProperties
getLeftLineStyle
in class Element
BorderProperties.NO_LINE
,
BorderProperties.LINE_STYLE_SINGLE
,
BorderProperties.LINE_STYLE_DOUBLE
,
BorderProperties.LINE_STYLE_DASHED
,
BorderProperties.LINE_STYLE_DOTTED
public final int getTopLineStyle()
getTopLineStyle
in interface BorderProperties
getTopLineStyle
in class Element
BorderProperties.NO_LINE
,
BorderProperties.LINE_STYLE_SINGLE
,
BorderProperties.LINE_STYLE_DOUBLE
,
BorderProperties.LINE_STYLE_DASHED
,
BorderProperties.LINE_STYLE_DOTTED
public final int getRightLineStyle()
getRightLineStyle
in interface BorderProperties
getRightLineStyle
in class Element
BorderProperties.NO_LINE
,
BorderProperties.LINE_STYLE_SINGLE
,
BorderProperties.LINE_STYLE_DOUBLE
,
BorderProperties.LINE_STYLE_DASHED
,
BorderProperties.LINE_STYLE_DOTTED
public final int getBottomLineStyle()
getBottomLineStyle
in interface BorderProperties
getBottomLineStyle
in class Element
BorderProperties.NO_LINE
,
BorderProperties.LINE_STYLE_SINGLE
,
BorderProperties.LINE_STYLE_DOUBLE
,
BorderProperties.LINE_STYLE_DASHED
,
BorderProperties.LINE_STYLE_DOTTED
public void setX2(int x2)
setX2
in interface LineProperties
x2
- The x position in twips.java.lang.IllegalArgumentException
- if x2 is negativepublic int getX2()
getX2
in interface LineProperties
public void setY2(int y2)
setY2
in interface LineProperties
y2
- The y position in twips.java.lang.IllegalArgumentException
- if y2 is negativepublic int getY2()
getY2
in interface LineProperties
public Section getEndSection()
getEndSection
in interface LineProperties
public void setEndSection(Section newValue)
setEndSection
in interface LineProperties
newValue
- The section in that the line should ends, if the line should go across more than one section.public int getWidth()
getWidth
in interface LineProperties
getWidth
in class ReportComponent
public int getHeight()
getHeight
in interface LineProperties
getHeight
in class ReportComponent
java.lang.UnsupportedOperationException
- if this element spans multiple sectionspublic final void setWidth(int w)
setWidth
in interface LineProperties
setWidth
in class ReportComponent
w
- The width in twips.java.lang.UnsupportedOperationException
- if this element spans multiple sectionsjava.lang.IllegalArgumentException
- if w is negativepublic final void setHeight(int h)
setHeight
in interface LineProperties
setHeight
in class ReportComponent
h
- The width in twips.java.lang.UnsupportedOperationException
- if this element spans multiple sectionsjava.lang.IllegalArgumentException
- if h is negativepublic final boolean spansMultipleSections()
Line
and Box
are the only elements which can span
multiple section. If this method returns true the end section can be
identified by calling getEndSection()
.True
if this elements spans multiple sections,
false
otherwise.public boolean isMultiSectionElement()
true
, if this element span over more than one sectiontrue
, if this element span over more than one sectionCopyright © 1999-2020 by i-net software GmbH