Klasse Box
- Alle implementierten Schnittstellen:
BorderProperties, BoxProperties, GeneralProperties, HyperlinkProperties, LineProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
This class represents a box in the report. You can use boxes to enclose other visible elements in the report or to create some
graphics. A box can inserted in a single section (use
A box differs from borders of an object in the report. Boxes have freeform size and position, where borders has fixed size and are positioned around the bordered object. The border of a field will drawed around each coming value, where a box enclose all. A border cann't be enclose nothing, a box can placed everywhere in the report and don't need to enclose something. No border can span some sections.
If you want to change the color of the box, use methods
This class is part of the
Section.addBox(int, int, int, int)method in class
Section) and can span some sections (use method Section.addBox(int, int, int, int, int, Section)in
class Section).
In second case the last argument of the Section.addBox(int, int, int, int, int, Section) method is the
section in that the box will end.
A box differs from borders of an object in the report. Boxes have freeform size and position, where borders has fixed size and are positioned around the bordered object. The border of a field will drawed around each coming value, where a box enclose all. A border cann't be enclose nothing, a box can placed everywhere in the report and don't need to enclose something. No border can span some sections.
If you want to change the color of the box, use methods
Element.setForeColor(int) to change the color of the border and
method ReportComponent.setBackColor(int) to change the background color of the box inheritated from Element.This class is part of the
RDC.- Seit:
- 1.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen AbstractLineElement
AbstractLineElement.LinePropertiesVon Klasse geerbte verschachtelte Klassen/Schnittstellen Element
Element.BorderProps, Element.CommonProperties, Element.ElementTypes, Element.HyperlinkProps, Element.StringProps -
Feldübersicht
Von Klasse geerbte Felder Element
BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPARTVon Schnittstelle geerbte Felder BorderProperties
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns the value of the property 'corner ellipse height'.intReturns the value of the property 'corner ellipse width'.List<? extends ReportComponent> Returns allReportComponents that are descendants of this one.booleanReturns the value of the property 'close border on page break'.parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidsetCloseBorderOnPageBreak(boolean newValue) Sets the value of the property 'close border on page break'.voidsetCornerEllipseHeight(int newValue) Sets the value of the property 'corner ellipse height'.voidsetCornerEllipseWidth(int newValue) Sets the value of the property 'corner ellipse width'.Von Klasse geerbte Methoden AbstractLineElement
getBottomLineStyle, getEndSection, getHeight, getLeftLineStyle, getLineStyle, getLineWidth, getRightLineStyle, getTopLineStyle, getWidth, getX2, getY2, isExtendToBottomOfSectionWhenPrinting, isMultiSectionElement, parseText, setEndSection, setExtendToBottomOfSectionWhenPrinting, setHeight, setLineStyle, setLineWidth, setWidth, setX2, setY2, spansMultipleSectionsVon Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyleFormula, getListStack, getParent, getPropertyFormulas, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyleFormula, getTypeAsString, getVerAlign, getVerAlignFormula, indexOf, isCanGrow, isCloseBorderOnPageBreakInternal, isDropShadow, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setListStack, setReferences, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula, setVerAlign, setVerAlignFormulaVon Klasse geerbte Methoden ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getStructElem, getSuppressFormula, getType, getX, getY, isDOMParser, isKeepTogether, isSuppress, parseDOM, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, resetReferences, setBackColor, setBackColorFormula, setCustomData, setKeepTogether, setKeepTogetherFormula, setStructElem, setSuppress, setSuppressFormula, setX, setYVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden BorderProperties
getBackColor, getBackColorFormula, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyleFormula, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyleFormula, isDropShadow, isTightHorizontal, setBackColor, setBackColorFormula, setBottomLineStyle, setBottomLineStyleFormula, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setForeColor, setForeColorFormula, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setTopLineStyle, setTopLineStyleFormulaVon Schnittstelle geerbte Methoden BoxProperties
getBackColor, getBackColorFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, isDropShadow, setBackColor, setBackColorFormula, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormulaVon Schnittstelle geerbte Methoden GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormulaVon Schnittstelle geerbte Methoden HyperlinkProperties
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormulaVon Schnittstelle geerbte Methoden LineProperties
getForeColor, getSuppressFormula, getX, getY, isSuppress, setForeColor, setSuppress, setSuppressFormula, setX, setY
-
Methodendetails
-
getCornerEllipseHeight
public int getCornerEllipseHeight()Returns the value of the property 'corner ellipse height'. This property allows you to round off the edges of the box. The result depends on the form of the box; if it was a square the result becomes more and more a circle with using greater values; if it was a rectangle it becomes an ellipse.- Angegeben von:
getCornerEllipseHeightin SchnittstelleBoxProperties- Gibt zurück:
- The current value of the property 'corner ellipse height'.
- Seit:
- 3.0
-
setCornerEllipseHeight
public void setCornerEllipseHeight(int newValue) Sets the value of the property 'corner ellipse height'. This property allows you to round off the edges of the box. The result depends on the form of the box; if it was a square the result becomes more and more a circle with using greater values; if it was a rectangle it becomes an ellipse.- Angegeben von:
setCornerEllipseHeightin SchnittstelleBoxProperties- Parameter:
newValue- The new value of the property 'corner ellipse height'.- Löst aus:
IllegalArgumentException- if newValue is negative- Seit:
- 3.0
-
getCornerEllipseWidth
public int getCornerEllipseWidth()Returns the value of the property 'corner ellipse width'. This property allows you to round off the edges of the box. The result depends on the form of the box; if it was a square the result becomes more and more a circle with using greater values; if it was a rectangle it becomes an ellipse.- Angegeben von:
getCornerEllipseWidthin SchnittstelleBoxProperties- Gibt zurück:
- The current value of the property 'corner ellipse width'.
- Seit:
- 3.0
-
setCornerEllipseWidth
public void setCornerEllipseWidth(int newValue) Sets the value of the property 'corner ellipse width'. This property allows you to round off the edges of the box. The result depends on the form of the box; if it was a square the result becomes more and more a circle with using greater values; if it was a rectangle it becomes an ellipse.- Angegeben von:
setCornerEllipseWidthin SchnittstelleBoxProperties- Parameter:
newValue- The new value of the property 'corner ellipse width'.- Löst aus:
IllegalArgumentException- if newValue is negative- Seit:
- 3.0
-
isCloseBorderOnPageBreak
public boolean isCloseBorderOnPageBreak()Returns the value of the property 'close border on page break'. If this property is enabled and if the element has a border and will break over two pages, then the border of both parts will be closed (on bottom of the first, on top of the second part). If not the borders of both parts will be partial (on bottom of the first, on top of the second part are no borders).- Angegeben von:
isCloseBorderOnPageBreakin SchnittstelleBorderProperties- Angegeben von:
isCloseBorderOnPageBreakin SchnittstelleBoxProperties- Setzt außer Kraft:
isCloseBorderOnPageBreakin KlasseElement- Gibt zurück:
- FormulaField The value of the property 'close border on page break'.
-
setCloseBorderOnPageBreak
public void setCloseBorderOnPageBreak(boolean newValue) Sets the value of the property 'close border on page break'. If this property is enabled and if the element has a border and will break over two pages, then the border of both parts will be closed (on bottom of the first, on top of the second part). If not the borders of both parts will be partial (on bottom of the first, on top of the second part are no borders).- Angegeben von:
setCloseBorderOnPageBreakin SchnittstelleBorderProperties- Angegeben von:
setCloseBorderOnPageBreakin SchnittstelleBoxProperties- Setzt außer Kraft:
setCloseBorderOnPageBreakin KlasseElement- Parameter:
newValue- The new value of the property 'close border on page break'.
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLParses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Setzt außer Kraft:
parseElementin KlasseAbstractLineElement- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag- The XMLTag to be parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
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.- Angegeben von:
getSubComponentsin KlasseReportComponent- Gibt zurück:
- a list with all sub components which can be empty as well; will be
nullif the component has no descendants
-