|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface PictureProperties
Interface for elements that display pictures.
This class is part of the RDC.
| Field Summary | |
|---|---|
static int |
ALIGN_VERTICAL_BOTTOM
The vertical alignment will be bottom aligned. |
static int |
ALIGN_VERTICAL_CENTER
The vertical alignment will be centered. |
static int |
ALIGN_VERTICAL_TOP
The vertical alignment will be top aligned. |
static int |
SCALE_BEST_FIT_KEEP_ASPECT_RATIO
Scales the source image to fit in the bounds of its element size while keeping the correct aspect ratio. |
static int |
SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO
Scales the height of the source image to its element size while keeping the correct aspect ratio. |
static int |
SCALE_FIT_WIDTH_FIT_HEIGHT
Stretches the source image to the element frame |
static int |
SCALE_FIT_WIDTH_FIXED_HEIGHT
Scales the width of the source image to its element size and the height using the given scale factor. |
static int |
SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO
Scales the width of the source image to its element size while keeping the correct aspect ratio. |
static int |
SCALE_FIXED_WIDTH_FIT_HEIGHT
Scales the width of the source image by the given scaling factor and scales its height to the height of the element. |
static int |
SCALE_FIXED_WIDTH_FIXED_HEIGHT
Scales the source image by the given scaling factor |
| Method Summary | |
|---|---|
int |
getBottomCropping()
Gets the value of the property 'bottom cropping size'. |
FormulaField |
getCanGrowFormula()
Returns the formula of the property 'can grow'. |
FormulaField |
getCanShrinkFormula()
Returns the formula of the property 'can shrink'. |
int |
getHeight()
Gets the height of an element. |
double |
getHeightRenderingFactor()
Gets the property 'height rendering factor'. |
double |
getHeightScalingFactor()
Gets the property 'height scaling factor'. |
int |
getHorAlign()
Returns the value of the property 'horizontal alignment'. |
FormulaField |
getHorAlignFormula()
Returns the formula for the property 'horizontal alignment'. |
FormulaField |
getImageKeyFormula()
Return the image key formula for this picture. |
int |
getLeftCropping()
Gets the value of the property 'left cropping size'. |
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'. |
int |
getWidth()
Gets the width of an element. |
double |
getWidthRenderingFactor()
Gets the property 'width rendering factor'. |
double |
getWidthScalingFactor()
Gets the property 'width scaling factor'. |
boolean |
isCanGrow()
Returns the value of the property 'can grow'. |
boolean |
isCanShrink()
Returns the value of the property 'can shrink'. |
void |
setBottomCropping(int bottomCropping)
Sets the value of the property 'bottom cropping size'. |
void |
setCanGrow(boolean canGrow)
Sets the value of the property 'can grow'. |
void |
setCanGrowFormula(FormulaField newFormula)
Sets the formula for the property 'can grow'. |
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 |
setHeight(int height)
Sets the height of an element. |
void |
setHeightScalingFactor(double factor)
Sets the property 'height scaling factor'. |
void |
setHorAlign(int value)
Sets the value of the property 'horizontal alignment'. |
void |
setHorAlignFormula(FormulaField newFormula)
Sets the formula for 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 |
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 |
setWidth(int width)
Sets the width of an element. |
void |
setWidthScalingFactor(double factor)
Sets the property 'width scaling factor'. |
| Field Detail |
|---|
static final int ALIGN_VERTICAL_TOP
static final int ALIGN_VERTICAL_CENTER
static final int ALIGN_VERTICAL_BOTTOM
static final int SCALE_FIT_WIDTH_FIT_HEIGHT
static final int SCALE_FIXED_WIDTH_FIXED_HEIGHT
static final int SCALE_FIT_WIDTH_FIXED_HEIGHT
static final int SCALE_FIXED_WIDTH_FIT_HEIGHT
static final int SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO
static final int SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO
static final int SCALE_BEST_FIT_KEEP_ASPECT_RATIO
| Method Detail |
|---|
void setBottomCropping(int bottomCropping)
bottomCropping - The long value of the property 'bottom cropping size'.int getBottomCropping()
void setLeftCropping(int leftCropping)
leftCropping - The value of the property 'left cropping size'.int getLeftCropping()
void setRightCropping(int rightCropping)
rightCropping - The long value of the property 'right cropping size'.int getRightCropping()
void setTopCropping(int topCropping)
topCropping - The value of the property 'top cropping size'.int getTopCropping()
int getScalingOption()
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 setHeightScalingFactor(double).
SCALE_FIT_WIDTH_FIT_HEIGHT,
SCALE_FIXED_WIDTH_FIXED_HEIGHT,
SCALE_FIXED_WIDTH_FIT_HEIGHT,
SCALE_FIT_WIDTH_FIXED_HEIGHT,
SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO,
SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO,
SCALE_BEST_FIT_KEEP_ASPECT_RATIOvoid setScalingOption(int option)
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 setHeightScalingFactor(double).
option - An integer, which represents the scaling option.SCALE_FIT_WIDTH_FIT_HEIGHT,
SCALE_FIXED_WIDTH_FIXED_HEIGHT,
SCALE_FIXED_WIDTH_FIT_HEIGHT,
SCALE_FIT_WIDTH_FIXED_HEIGHT,
SCALE_FIT_WIDTH_KEEP_ASPECT_RATIO,
SCALE_FIT_HEIGHT_KEEP_ASPECT_RATIO,
SCALE_BEST_FIT_KEEP_ASPECT_RATIOdouble getWidthScalingFactor()
void setWidthScalingFactor(double factor)
factor - The value of the property 'width scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.void setHeightScalingFactor(double factor)
factor - The value of the property 'height scaling factor'. I.e. 0.1 means 10%, 5.0 means 500%.double getHeightScalingFactor()
double getWidthRenderingFactor()
double getHeightRenderingFactor()
FormulaField getVerAlignFormula()
ALIGN_VERTICAL_TOP,
ALIGN_VERTICAL_CENTER,
ALIGN_VERTICAL_BOTTOMvoid setVerAlignFormula(FormulaField newFormula)
newFormula - The new formula for the property 'horizontal alignment'.ALIGN_VERTICAL_TOP,
ALIGN_VERTICAL_CENTER,
ALIGN_VERTICAL_BOTTOMvoid setVerAlign(int value)
value - The new value of the property 'vertical alignment'.ALIGN_VERTICAL_TOP,
ALIGN_VERTICAL_CENTER,
ALIGN_VERTICAL_BOTTOMint getVerAlign()
ALIGN_VERTICAL_TOP,
ALIGN_VERTICAL_CENTER,
ALIGN_VERTICAL_BOTTOMboolean isCanShrink()
void setCanShrink(boolean canShrink)
canShrink - If true shrinking to the image size is allowed.FormulaField getCanShrinkFormula()
FormulaField The formula of the property 'can grow'.void setCanShrinkFormula(FormulaField newFormula)
newFormula - The new formula for the property 'can grow'.void setWidth(int width)
width - The width in twips.int getWidth()
java.lang.UnsupportedOperationException - if this element spans multiple sectionsvoid setHeight(int height)
height - The height in twips.
java.lang.UnsupportedOperationException - if this element spans multiple sectionsint getHeight()
java.lang.UnsupportedOperationException - if this element spans multiple sectionsboolean isCanGrow()
void setCanGrow(boolean canGrow)
canGrow - The new value of the property 'can grow'FormulaField getCanGrowFormula()
void setCanGrowFormula(FormulaField newFormula)
newFormula - The new formula for the property 'can grow'.FormulaField getHorAlignFormula()
void setHorAlignFormula(FormulaField newFormula)
newFormula - The new formula for the property 'horizontal alignment'. The result of the formula should be in range from 0 to 4.GeneralProperties.ALIGN_HORIZONTAL_DEFAULT,
GeneralProperties.ALIGN_HORIZONTAL_LEFT,
GeneralProperties.ALIGN_HORIZONTAL_CENTER,
GeneralProperties.ALIGN_HORIZONTAL_RIGHT,
GeneralProperties.ALIGN_HORIZONTAL_JUSTIFIEDvoid setHorAlign(int value)
value - The new value of the property 'horizontal alignment'.GeneralProperties.ALIGN_HORIZONTAL_DEFAULT,
GeneralProperties.ALIGN_HORIZONTAL_LEFT,
GeneralProperties.ALIGN_HORIZONTAL_CENTER,
GeneralProperties.ALIGN_HORIZONTAL_RIGHT,
GeneralProperties.ALIGN_HORIZONTAL_JUSTIFIEDint getHorAlign()
GeneralProperties.ALIGN_HORIZONTAL_DEFAULT,
GeneralProperties.ALIGN_HORIZONTAL_LEFT,
GeneralProperties.ALIGN_HORIZONTAL_CENTER,
GeneralProperties.ALIGN_HORIZONTAL_RIGHT,
GeneralProperties.ALIGN_HORIZONTAL_JUSTIFIEDvoid setImageKeyFormula(FormulaField newFormula)
newFormula - the formula containing the image key.FormulaField getImageKeyFormula()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||