|
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.AbstractPictureElement
public abstract class AbstractPictureElement
Parent class of all elements which shows a picture. This class implements PictureProperties interface.
| 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 |
getBottomCropping()
Gets the value of the property 'bottom cropping size'. |
FormulaField |
getCanShrinkFormula()
Returns the formula of the property 'can shrink'. |
double |
getHeightScalingFactor()
Gets the property 'height scaling factor'. |
FormulaField |
getImageKeyFormula()
Return the image key formula for this picture. |
int |
getLeftCropping()
Gets the value of the property 'left cropping size'. |
java.util.List |
getPropertyFormulas()
Returns a list with all property formulas that are set for this report element. |
int |
getRightCropping()
Gets the value of the property 'right cropping size'. |
int |
getScalingOption()
Gets the scaling option which represents the way to scale the source image into its element frame. |
int |
getTopCropping()
Gets the value of the property 'top cropping size'. |
int |
getVerAlign()
Returns the value of the property 'vertical alignment'. |
FormulaField |
getVerAlignFormula()
Gets the formula for the property 'vertical alignment'. |
double |
getWidthScalingFactor()
Gets the property 'width scaling factor'. |
boolean |
isCanShrink()
Returns the value of the property 'can shrink'. |
void |
setBottomCropping(int bottomCropping)
Sets the value of the property 'bottom cropping size'. |
void |
setCanShrink(boolean canShrink)
Sets the value of the property 'can shrink'. |
void |
setCanShrinkFormula(FormulaField newFormula)
Sets the formula for the property 'can shrink'. |
void |
setHeightScalingFactor(double factor)
Sets the property 'height scaling factor'. |
void |
setHorAlign(int value)
Sets the value of the property 'horizontal alignment'. |
void |
setImageKeyFormula(FormulaField newFormula)
Sets a Formulafield which contains a key string to identify identical images. |
void |
setLeftCropping(int leftCropping)
Sets the value of the property 'left cropping size'. |
void |
setRightCropping(int rightCropping)
Sets the value of the property 'right cropping size'. |
void |
setScalingOption(int option)
Sets the scaling option which represents the way to scale the source image into its element frame. |
void |
setSuppressIfDuplicated(boolean newValue)
The property 'suppress if duplicated' is not defined for instances of AbstractPictureElement. |
void |
setSuppressIfDuplicatedFormula(FormulaField newFormula)
The property 'suppress if duplicated' is not defined for instances of AbstractPictureElement. |
void |
setTopCropping(int topCropping)
Sets the value of the property 'top cropping size'. |
void |
setVerAlign(int value)
Sets the value of the property 'vertical alignment'. |
void |
setVerAlignFormula(FormulaField newFormula)
Sets the formula for the property 'vertical alignment'. |
void |
setWidthScalingFactor(double factor)
Sets the property 'width scaling factor'. |
| Methods inherited from class com.inet.report.ReportComponent |
|---|
getBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY |
| Methods inherited from interface com.inet.report.PictureProperties |
|---|
getCanGrowFormula, getHeight, getHeightRenderingFactor, getHorAlign, getHorAlignFormula, getWidth, getWidthRenderingFactor, isCanGrow, setCanGrow, setCanGrowFormula, setHeight, setHorAlignFormula, setWidth |
| Methods inherited from interface com.inet.report.HyperlinkProperties |
|---|
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormula |
| 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, parseElement, parseEndElement, parseText |
| Method Detail |
|---|
public void setSuppressIfDuplicated(boolean newValue)
setSuppressIfDuplicated in interface GeneralPropertiessetSuppressIfDuplicated in class ElementnewValue - This has no effect.public void setSuppressIfDuplicatedFormula(FormulaField newFormula)
setSuppressIfDuplicatedFormula in interface GeneralPropertiessetSuppressIfDuplicatedFormula in class ElementnewFormula - This has no effect.public void setBottomCropping(int bottomCropping)
setBottomCropping in interface PicturePropertiesbottomCropping - The long value of the property 'bottom cropping size'.public int getBottomCropping()
getBottomCropping in interface PicturePropertiespublic void setLeftCropping(int leftCropping)
setLeftCropping in interface PicturePropertiesleftCropping - The value of the property 'left cropping size'.public int getLeftCropping()
getLeftCropping in interface PicturePropertiespublic void setRightCropping(int rightCropping)
setRightCropping in interface PicturePropertiesrightCropping - The long value of the property 'right cropping size'.public int getRightCropping()
getRightCropping in interface PicturePropertiespublic void setTopCropping(int topCropping)
setTopCropping in interface PicturePropertiestopCropping - The value of the property 'top cropping size'.public int getTopCropping()
getTopCropping in interface PicturePropertiespublic void setWidthScalingFactor(double factor)
setWidthScalingFactor in interface PicturePropertiesfactor - The value of the property 'width scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.public double getWidthScalingFactor()
getWidthScalingFactor in interface PicturePropertiespublic void setHeightScalingFactor(double factor)
setHeightScalingFactor in interface PicturePropertiesfactor - The value of the property 'height scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.public double getHeightScalingFactor()
getHeightScalingFactor in interface PicturePropertiespublic FormulaField getVerAlignFormula()
getVerAlignFormula in interface PicturePropertiesPictureProperties.ALIGN_VERTICAL_TOP,
PictureProperties.ALIGN_VERTICAL_CENTER,
PictureProperties.ALIGN_VERTICAL_BOTTOMpublic void setVerAlignFormula(FormulaField newFormula)
setVerAlignFormula in interface PicturePropertiesnewFormula - The new formula for the property 'horizontal alignment'.PictureProperties.ALIGN_VERTICAL_TOP,
PictureProperties.ALIGN_VERTICAL_CENTER,
PictureProperties.ALIGN_VERTICAL_BOTTOMpublic void setVerAlign(int value)
setVerAlign in interface PicturePropertiesvalue - The new value of the property 'vertical alignment'.PictureProperties.ALIGN_VERTICAL_TOP,
PictureProperties.ALIGN_VERTICAL_CENTER,
PictureProperties.ALIGN_VERTICAL_BOTTOMpublic int getVerAlign()
getVerAlign in interface PicturePropertiesPictureProperties.ALIGN_VERTICAL_TOP,
PictureProperties.ALIGN_VERTICAL_CENTER,
PictureProperties.ALIGN_VERTICAL_BOTTOMpublic int getScalingOption()
PictureProperties.SCALE_FIT_WIDTH_FIXED_HEIGHT will scale the width of source image to the width
of the element and the height by the given scale factor set using the PictureProperties.setHeightScalingFactor(double).
getScalingOption in interface PicturePropertiesPictureProperties.SCALE_FIT_WIDTH_FIT_HEIGHT,
PictureProperties.SCALE_FIXED_WIDTH_FIXED_HEIGHT,
PictureProperties.SCALE_FIXED_WIDTH_FIT_HEIGHT,
PictureProperties.SCALE_FIT_WIDTH_FIXED_HEIGHT,
PictureProperties.SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO,
PictureProperties.SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO,
PictureProperties.SCALE_BEST_FIT_KEEP_ASPECT_RATIOpublic void setScalingOption(int option)
PictureProperties.SCALE_FIT_WIDTH_FIXED_HEIGHT will scale the width of source image to the width
of the element and the height by the given scale factor set using the PictureProperties.setHeightScalingFactor(double).
setScalingOption in interface PicturePropertiesoption - An integer, which represents the scaling option.PictureProperties.SCALE_FIT_WIDTH_FIT_HEIGHT,
PictureProperties.SCALE_FIXED_WIDTH_FIXED_HEIGHT,
PictureProperties.SCALE_FIXED_WIDTH_FIT_HEIGHT,
PictureProperties.SCALE_FIT_WIDTH_FIXED_HEIGHT,
PictureProperties.SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO,
PictureProperties.SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO,
PictureProperties.SCALE_BEST_FIT_KEEP_ASPECT_RATIOpublic boolean isCanShrink()
isCanShrink in interface PicturePropertiespublic void setCanShrink(boolean canShrink)
setCanShrink in interface PicturePropertiescanShrink - If true shrinking to the image size is allowed.public FormulaField getCanShrinkFormula()
getCanShrinkFormula in interface PicturePropertiesFormulaField The formula of the property 'can grow'.public void setCanShrinkFormula(FormulaField newFormula)
setCanShrinkFormula in interface PicturePropertiesnewFormula - The new formula for the property 'can grow'.public java.util.List getPropertyFormulas()
getPropertyFormulas in class Elementpublic void setHorAlign(int value)
setHorAlign in interface GeneralPropertiessetHorAlign in interface PicturePropertiessetHorAlign in class Elementvalue - The new value of the property 'horizontal alignment'.
java.lang.IllegalArgumentException - when parameter 'value' is none of the four possible horizontal alignmentsGeneralProperties.ALIGN_HORIZONTAL_DEFAULT,
GeneralProperties.ALIGN_HORIZONTAL_LEFT,
GeneralProperties.ALIGN_HORIZONTAL_CENTER,
GeneralProperties.ALIGN_HORIZONTAL_RIGHTpublic FormulaField getImageKeyFormula()
getImageKeyFormula in interface PicturePropertiespublic void setImageKeyFormula(FormulaField newFormula)
setImageKeyFormula in interface PicturePropertiesnewFormula - the formula containing the image key.
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||