public abstract class AbstractPictureElement extends Element implements PictureProperties, HyperlinkProperties, BorderProperties
BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPART
ALIGN_VERTICAL_BOTTOM, ALIGN_VERTICAL_CENTER, ALIGN_VERTICAL_TOP, SCALE_BEST_FIT_KEEP_ASPECT_RATIO, SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO, SCALE_FIT_WIDTH_FIT_HEIGHT, SCALE_FIT_WIDTH_FIXED_HEIGHT, SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO, SCALE_FIXED_WIDTH_FIT_HEIGHT, SCALE_FIXED_WIDTH_FIXED_HEIGHT
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 |
---|---|
java.awt.Image |
createPreviewImage(com.inet.report.encode.PictureMetaData metaData)
Creates a preview image of this picture.
|
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<FormulaField> |
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'.
|
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isDropShadow, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula
getBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSubComponents, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY
createPictureMetaData, getCanGrowFormula, getHeight, getHeightRenderingFactor, getHorAlign, getHorAlignFormula, getWidth, getWidthRenderingFactor, isCanGrow, setCanGrow, setCanGrowFormula, setHeight, setHorAlignFormula, setWidth
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormula
getBackColor, getBackColorFormula, getBottomLineStyle, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyle, getLeftLineStyleFormula, getRightLineStyle, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyle, 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 void setSuppressIfDuplicated(boolean newValue)
setSuppressIfDuplicated
in interface GeneralProperties
setSuppressIfDuplicated
in class Element
newValue
- This has no effect.public void setSuppressIfDuplicatedFormula(FormulaField newFormula)
setSuppressIfDuplicatedFormula
in interface GeneralProperties
setSuppressIfDuplicatedFormula
in class Element
newFormula
- This has no effect.public void setBottomCropping(int bottomCropping)
setBottomCropping
in interface PictureProperties
bottomCropping
- The long value of the property 'bottom cropping size'.public int getBottomCropping()
getBottomCropping
in interface PictureProperties
public void setLeftCropping(int leftCropping)
setLeftCropping
in interface PictureProperties
leftCropping
- The value of the property 'left cropping size'.public int getLeftCropping()
getLeftCropping
in interface PictureProperties
public void setRightCropping(int rightCropping)
setRightCropping
in interface PictureProperties
rightCropping
- The long value of the property 'right cropping size'.public int getRightCropping()
getRightCropping
in interface PictureProperties
public void setTopCropping(int topCropping)
setTopCropping
in interface PictureProperties
topCropping
- The value of the property 'top cropping size'.public int getTopCropping()
getTopCropping
in interface PictureProperties
public void setWidthScalingFactor(double factor)
setWidthScalingFactor
in interface PictureProperties
factor
- The value of the property 'width scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.public double getWidthScalingFactor()
getWidthScalingFactor
in interface PictureProperties
public void setHeightScalingFactor(double factor)
setHeightScalingFactor
in interface PictureProperties
factor
- The value of the property 'height scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.public double getHeightScalingFactor()
getHeightScalingFactor
in interface PictureProperties
public FormulaField getVerAlignFormula()
getVerAlignFormula
in interface PictureProperties
PictureProperties.ALIGN_VERTICAL_TOP
,
PictureProperties.ALIGN_VERTICAL_CENTER
,
PictureProperties.ALIGN_VERTICAL_BOTTOM
public void setVerAlignFormula(FormulaField newFormula)
setVerAlignFormula
in interface PictureProperties
newFormula
- The new formula for the property 'horizontal alignment'.PictureProperties.ALIGN_VERTICAL_TOP
,
PictureProperties.ALIGN_VERTICAL_CENTER
,
PictureProperties.ALIGN_VERTICAL_BOTTOM
public void setVerAlign(int value)
setVerAlign
in interface PictureProperties
value
- The new value of the property 'vertical alignment'.PictureProperties.ALIGN_VERTICAL_TOP
,
PictureProperties.ALIGN_VERTICAL_CENTER
,
PictureProperties.ALIGN_VERTICAL_BOTTOM
public int getVerAlign()
getVerAlign
in interface PictureProperties
PictureProperties.ALIGN_VERTICAL_TOP
,
PictureProperties.ALIGN_VERTICAL_CENTER
,
PictureProperties.ALIGN_VERTICAL_BOTTOM
public 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 PictureProperties
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_RATIO
public 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 PictureProperties
option
- 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_RATIO
public boolean isCanShrink()
isCanShrink
in interface PictureProperties
public void setCanShrink(boolean canShrink)
setCanShrink
in interface PictureProperties
canShrink
- If true shrinking to the image size is allowed.public FormulaField getCanShrinkFormula()
getCanShrinkFormula
in interface PictureProperties
FormulaField
The formula of the property 'can grow'.public void setCanShrinkFormula(FormulaField newFormula)
setCanShrinkFormula
in interface PictureProperties
newFormula
- The new formula for the property 'can grow'.public java.util.List<FormulaField> getPropertyFormulas()
ReportComponent
of this one. To get the property formulas for descendant ReportComponent
use ReportComponent.getSubComponents()
getPropertyFormulas
in class Element
public void setHorAlign(int value)
setHorAlign
in interface GeneralProperties
setHorAlign
in interface PictureProperties
setHorAlign
in class Element
value
- 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_RIGHT
public FormulaField getImageKeyFormula()
getImageKeyFormula
in interface PictureProperties
public void setImageKeyFormula(FormulaField newFormula)
setImageKeyFormula
in interface PictureProperties
newFormula
- the formula containing the image key.public java.awt.Image createPreviewImage(com.inet.report.encode.PictureMetaData metaData)
PictureMetaData.isAutoScaledAndAligned()
returns true for this picture format.metaData
- a meta data instance created by PictureProperties.createPictureMetaData()
java.lang.IllegalArgumentException
- if the specified meta data instance is not validCopyright © 1999-2020 by i-net software GmbH