|
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
public abstract class AbstractLineElement
This class is an abstract implementation of the interface LineProperties.
AbstractLineElement.LineProperties,
Serialized Form| 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 | |
|---|---|
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 |
NodeParser |
parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XML Parses 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. |
void |
parseText(java.lang.String text,
java.util.Map parserMap)
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XML This method is called if text was encountered in the context of this node. |
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. |
| 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 final void setExtendToBottomOfSectionWhenPrinting(boolean newValue)
setExtendToBottomOfSectionWhenPrinting in interface LinePropertiesnewValue - true if the property should be set, else false.public boolean isExtendToBottomOfSectionWhenPrinting()
isExtendToBottomOfSectionWhenPrinting in interface LinePropertiestrue if the line will be extended, otherwise false.public final void setLineWidth(int newValue)
setLineWidth in interface LinePropertiesnewValue - The new value of the property 'line width'.public final int getLineWidth()
getLineWidth in interface LinePropertiespublic void setLineStyle(int lineStyle)
setLineStyle in interface LinePropertieslineStyle - The new value of the property 'line style'.
java.lang.IllegalArgumentException - if newValue is a invalid line styleBorderProperties.NO_LINE,
BorderProperties.LINE_STYLE_SINGLE,
BorderProperties.LINE_STYLE_DOUBLE,
BorderProperties.LINE_STYLE_DASHED,
BorderProperties.LINE_STYLE_DOTTEDpublic final int getLineStyle()
getLineStyle in interface LinePropertiesBorderProperties.NO_LINE,
BorderProperties.LINE_STYLE_SINGLE,
BorderProperties.LINE_STYLE_DOUBLE,
BorderProperties.LINE_STYLE_DASHED,
BorderProperties.LINE_STYLE_DOTTEDpublic final int getLeftLineStyle()
getLeftLineStyle in interface BorderPropertiesgetLeftLineStyle in class ElementBorderProperties.NO_LINE,
BorderProperties.LINE_STYLE_SINGLE,
BorderProperties.LINE_STYLE_DOUBLE,
BorderProperties.LINE_STYLE_DASHED,
BorderProperties.LINE_STYLE_DOTTEDpublic final int getTopLineStyle()
getTopLineStyle in interface BorderPropertiesgetTopLineStyle in class ElementBorderProperties.NO_LINE,
BorderProperties.LINE_STYLE_SINGLE,
BorderProperties.LINE_STYLE_DOUBLE,
BorderProperties.LINE_STYLE_DASHED,
BorderProperties.LINE_STYLE_DOTTEDpublic final int getRightLineStyle()
getRightLineStyle in interface BorderPropertiesgetRightLineStyle in class ElementBorderProperties.NO_LINE,
BorderProperties.LINE_STYLE_SINGLE,
BorderProperties.LINE_STYLE_DOUBLE,
BorderProperties.LINE_STYLE_DASHED,
BorderProperties.LINE_STYLE_DOTTEDpublic final int getBottomLineStyle()
getBottomLineStyle in interface BorderPropertiesgetBottomLineStyle in class ElementBorderProperties.NO_LINE,
BorderProperties.LINE_STYLE_SINGLE,
BorderProperties.LINE_STYLE_DOUBLE,
BorderProperties.LINE_STYLE_DASHED,
BorderProperties.LINE_STYLE_DOTTEDpublic final void setX2(int x2)
setX2 in interface LinePropertiesx2 - The x position in twips.
java.lang.IllegalArgumentException - if x2 is negativepublic final int getX2()
getX2 in interface LinePropertiespublic final void setY2(int y2)
setY2 in interface LinePropertiesy2 - The y position in twips.
java.lang.IllegalArgumentException - if y2 is negativepublic final int getY2()
getY2 in interface LinePropertiespublic Section getEndSection()
getEndSection in interface LinePropertiespublic void setEndSection(Section newValue)
setEndSection in interface LinePropertiesnewValue - The section in that the line should ends, if the line should go accross more than one section.public final int getWidth()
getWidth in interface LinePropertiesgetWidth in class ReportComponentpublic final int getHeight()
getHeight in interface LinePropertiesgetHeight in class ReportComponentjava.lang.UnsupportedOperationException - if this element spans multiple sectionspublic final void setWidth(int w)
setWidth in interface LinePropertiessetWidth in class ReportComponentw - The width in twips.
java.lang.UnsupportedOperationException - if this element spans multiple sections
java.lang.IllegalArgumentException - if w is negativepublic final void setHeight(int h)
setHeight in interface LinePropertiessetHeight in class ReportComponenth - The width in twips.
java.lang.UnsupportedOperationException - if this element spans multiple sections
java.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 NodeParser parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
throws FatalParserException
Parses 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.
parseElement in interface NodeParsergroup - 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.
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.
public void parseText(java.lang.String text,
java.util.Map parserMap)
This method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
parseText in interface NodeParsertext - text encountered and to be storedparserMap - The map of current Parser.public boolean isMultiSectionElement()
true, if this element span over more than one section
true, if this element span over more than one section
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||