Klasse AbstractPictureElement
java.lang.Object
com.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractPictureElement
- Alle implementierten Schnittstellen:
BorderProperties, GeneralProperties, HyperlinkProperties, NodeParser, PictureProperties, com.inet.report.ReferenceHolder, Serializable, Cloneable
- Bekannte direkte Unterklassen:
DatabasePicture, Picture
public abstract class AbstractPictureElement
extends Element
implements PictureProperties, HyperlinkProperties, BorderProperties
Parent class of all elements which shows a picture.
This class implements PictureProperties interface.
- Seit:
- 6.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic enumFOR INTERNAL USE ONLYVon 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 TypMethodeBeschreibungcreatePreviewImage(com.inet.report.encode.PictureMetaData metaData) Creates a preview image of this picture.intGets the value of the property 'bottom cropping size'.Returns the formula of the property 'can shrink'.doubleGets the property 'height scaling factor'.Return the image key formula for this picture.intGets the value of the property 'left cropping size'.Returns a list with all property formulas that are set for this report element.intGets the value of the property 'right cropping size'.intGets the scaling option which represents the way to scale the source image into its element frame.FOR INTERNAL USE ONLY.
Returns the list of supported document file suffixes.FOR INTERNAL USE ONLY.
Returns the list of supported image file suffixes.intGets the value of the property 'top cropping size'.doubleGets the property 'width scaling factor'.booleanReturns the value of the property 'can shrink'.voidsetBottomCropping(int bottomCropping) Sets the value of the property 'bottom cropping size'.voidsetCanShrink(boolean canShrink) Sets the value of the property 'can shrink'.voidsetCanShrinkFormula(FormulaField newFormula) Sets the formula for the property 'can shrink'.voidsetHeightScalingFactor(double factor) Sets the property 'height scaling factor'.voidsetHorAlign(int value) Sets the value of the property 'horizontal alignment'.voidsetImageKeyFormula(FormulaField newFormula) Sets a Formulafield which contains a key string to identify identical images.voidsetLeftCropping(int leftCropping) Sets the value of the property 'left cropping size'.voidsetRightCropping(int rightCropping) Sets the value of the property 'right cropping size'.voidsetScalingOption(int option) Sets the scaling option which represents the way to scale the source image into its element frame.voidsetSuppressIfDuplicated(boolean newValue) The property 'suppress if duplicated' is not defined for instances of AbstractPictureElement.voidsetSuppressIfDuplicatedFormula(FormulaField newFormula) The property 'suppress if duplicated' is not defined for instances of AbstractPictureElement.voidsetTopCropping(int topCropping) Sets the value of the property 'top cropping size'.voidsetWidthScalingFactor(double factor) Sets the property 'width scaling factor'.Von Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getListStack, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, getTypeAsString, getVerAlign, getVerAlignFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isCloseBorderOnPageBreakInternal, isDropShadow, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, paramString, parseElement, parseText, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setListStack, setReferences, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula, setVerAlign, setVerAlignFormulaVon Klasse geerbte Methoden ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getHeight, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getStructElem, getSubComponents, getSuppressFormula, getType, getWidth, getX, getY, isDOMParser, isKeepTogether, isSuppress, parseDOM, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, resetReferences, setBackColor, setBackColorFormula, setCustomData, setHeight, setKeepTogether, setKeepTogetherFormula, setStructElem, setSuppress, setSuppressFormula, setWidth, setX, setYVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden BorderProperties
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, setTopLineStyleFormulaVon Schnittstelle geerbte Methoden GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormulaVon Schnittstelle geerbte Methoden HyperlinkProperties
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormulaVon Schnittstelle geerbte Methoden PictureProperties
createPictureMetaData, getCanGrowFormula, getHeight, getHeightRenderingFactor, getHorAlign, getHorAlignFormula, getVerAlign, getVerAlignFormula, getWidth, getWidthRenderingFactor, isCanGrow, setCanGrow, setCanGrowFormula, setHeight, setHorAlignFormula, setVerAlign, setVerAlignFormula, setWidth
-
Methodendetails
-
setSuppressIfDuplicated
public void setSuppressIfDuplicated(boolean newValue) The property 'suppress if duplicated' is not defined for instances of AbstractPictureElement. Setting this property will have no effect.- Angegeben von:
setSuppressIfDuplicatedin SchnittstelleGeneralProperties- Setzt außer Kraft:
setSuppressIfDuplicatedin KlasseElement- Parameter:
newValue- This has no effect.- Seit:
- 6.0
-
setSuppressIfDuplicatedFormula
The property 'suppress if duplicated' is not defined for instances of AbstractPictureElement. Setting this property will have no effect.- Angegeben von:
setSuppressIfDuplicatedFormulain SchnittstelleGeneralProperties- Setzt außer Kraft:
setSuppressIfDuplicatedFormulain KlasseElement- Parameter:
newFormula- This has no effect.- Seit:
- 6.0
-
setBottomCropping
public void setBottomCropping(int bottomCropping) Sets the value of the property 'bottom cropping size'.- Angegeben von:
setBottomCroppingin SchnittstellePictureProperties- Parameter:
bottomCropping- The long value of the property 'bottom cropping size'.
-
getBottomCropping
public int getBottomCropping()Gets the value of the property 'bottom cropping size'.- Angegeben von:
getBottomCroppingin SchnittstellePictureProperties- Gibt zurück:
- The long value of the property 'bottom cropping size'.
-
setLeftCropping
public void setLeftCropping(int leftCropping) Sets the value of the property 'left cropping size'.- Angegeben von:
setLeftCroppingin SchnittstellePictureProperties- Parameter:
leftCropping- The value of the property 'left cropping size'.
-
getLeftCropping
public int getLeftCropping()Gets the value of the property 'left cropping size'.- Angegeben von:
getLeftCroppingin SchnittstellePictureProperties- Gibt zurück:
- The value of the property 'left cropping size'.
-
setRightCropping
public void setRightCropping(int rightCropping) Sets the value of the property 'right cropping size'.- Angegeben von:
setRightCroppingin SchnittstellePictureProperties- Parameter:
rightCropping- The long value of the property 'right cropping size'.
-
getRightCropping
public int getRightCropping()Gets the value of the property 'right cropping size'.- Angegeben von:
getRightCroppingin SchnittstellePictureProperties- Gibt zurück:
- The value of the property 'right cropping size'.
-
setTopCropping
public void setTopCropping(int topCropping) Sets the value of the property 'top cropping size'.- Angegeben von:
setTopCroppingin SchnittstellePictureProperties- Parameter:
topCropping- The value of the property 'top cropping size'.
-
getTopCropping
public int getTopCropping()Gets the value of the property 'top cropping size'.- Angegeben von:
getTopCroppingin SchnittstellePictureProperties- Gibt zurück:
- The long value of the property 'top cropping size'.
-
setWidthScalingFactor
public void setWidthScalingFactor(double factor) Sets the property 'width scaling factor'.- Angegeben von:
setWidthScalingFactorin SchnittstellePictureProperties- Parameter:
factor- The value of the property 'width scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.
-
getWidthScalingFactor
public double getWidthScalingFactor()Gets the property 'width scaling factor'.- Angegeben von:
getWidthScalingFactorin SchnittstellePictureProperties- Gibt zurück:
- The value of the property 'width scaling factor'. I.e. 0.1 means 10%, 1.0 5.0 means 500%.
-
setHeightScalingFactor
public void setHeightScalingFactor(double factor) Sets the property 'height scaling factor'.- Angegeben von:
setHeightScalingFactorin SchnittstellePictureProperties- Parameter:
factor- The value of the property 'height scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.
-
getHeightScalingFactor
public double getHeightScalingFactor()Gets the property 'height scaling factor'.- Angegeben von:
getHeightScalingFactorin SchnittstellePictureProperties- Gibt zurück:
- The value of the property 'height scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.
-
getScalingOption
public int getScalingOption()Gets the scaling option which represents the way to scale the source image into its element frame. E.g.PictureProperties.SCALE_FIT_WIDTH_FIXED_HEIGHTwill scale the width of source image to the width of the element and the height by the given scale factor set using thePictureProperties.setHeightScalingFactor(double).- Angegeben von:
getScalingOptionin SchnittstellePictureProperties- Gibt zurück:
- An integer values which represents the scale option.
- Siehe auch:
-
setScalingOption
public void setScalingOption(int option) Sets the scaling option which represents the way to scale the source image into its element frame. E.g.PictureProperties.SCALE_FIT_WIDTH_FIXED_HEIGHTwill scale the width of source image to the width of the element and the height by the given scale factor set using thePictureProperties.setHeightScalingFactor(double).- Angegeben von:
setScalingOptionin SchnittstellePictureProperties- Parameter:
option- An integer, which represents the scaling option.- Siehe auch:
-
isCanShrink
public boolean isCanShrink()Returns the value of the property 'can shrink'. If this property is enabled an element with dynamic state will be shrunk when the content of the element is smaller than its container.- Angegeben von:
isCanShrinkin SchnittstellePictureProperties- Gibt zurück:
- The value of the property 'can shrink'.
-
setCanShrink
public void setCanShrink(boolean canShrink) Sets the value of the property 'can shrink'. If this property is enabled an element with dynamic state will be shrunk when the content of the element is smaller than its container.- Angegeben von:
setCanShrinkin SchnittstellePictureProperties- Parameter:
canShrink- If true shrinking to the image size is allowed.
-
getCanShrinkFormula
Returns the formula of the property 'can shrink'. If this property is enabled an element with dynamic state will be shrunk dynamically when the content of the element is larger than its container.- Angegeben von:
getCanShrinkFormulain SchnittstellePictureProperties- Gibt zurück:
FormulaFieldThe formula of the property 'can grow'.
-
setCanShrinkFormula
Sets the formula for the property 'can shrink'. If this property is enabled an element with dynamic state will be shrunk dynamically when then content of the element is larger than its container.- Angegeben von:
setCanShrinkFormulain SchnittstellePictureProperties- Parameter:
newFormula- The new formula for the property 'can grow'.
-
getPropertyFormulas
Returns a list with all property formulas that are set for this report element. This includes property formulas for any type of sub-component but excludes formulas for any descendantReportComponentof this one. To get the property formulas for descendantReportComponentuseReportComponent.getSubComponents()- Setzt außer Kraft:
getPropertyFormulasin KlasseElement- Gibt zurück:
- List of property formulas
-
setHorAlign
public void setHorAlign(int value) Sets the value of the property 'horizontal alignment'. Possible alignments are default, left, center or right.- Angegeben von:
setHorAlignin SchnittstelleGeneralProperties- Angegeben von:
setHorAlignin SchnittstellePictureProperties- Setzt außer Kraft:
setHorAlignin KlasseElement- Parameter:
value- The new value of the property 'horizontal alignment'.- Löst aus:
IllegalArgumentException- when parameter 'value' is none of the four possible horizontal alignments- Seit:
- 6.0
- Siehe auch:
-
getImageKeyFormula
Return the image key formula for this picture. Renderers which are using a cache mechanism (e.g. PDF) can use this key to optimize its rendering and memory performance. Picture Objects with the same key will be treated as the picture objects with the same image.- Angegeben von:
getImageKeyFormulain SchnittstellePictureProperties- Gibt zurück:
- Return the image key formula for this picture.
-
setImageKeyFormula
Sets a Formulafield which contains a key string to identify identical images. Renderers which are using a cache mechanism (e.g. PDF) can use this key to optimize its rendering and memory performance. Picture Objects with the same key will be treated as the picture objects with the same image.- Angegeben von:
setImageKeyFormulain SchnittstellePictureProperties- Parameter:
newFormula- the formula containing the image key.
-
createPreviewImage
Creates a preview image of this picture. The image is scaled and aligned to the properties of this model object only ifPictureMetaData.isAutoScaledAndAligned()returnstruefor this picture format.- Parameter:
metaData- a meta data instance created byPictureProperties.createPictureMetaData()- Gibt zurück:
- the created preview image
- Löst aus:
IllegalArgumentException- if the specified meta data instance is not valid- Seit:
- 12.1
-
getSupportedImageSuffixes
-
getSupportedDocumentSuffixes
-