|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.fdf.FDFIconFit
public class FDFIconFit
This represents an Icon fit dictionary for an FDF field.
Field Summary | |
---|---|
static String |
SCALE_OPTION_ALWAYS
A scale option. |
static String |
SCALE_OPTION_NEVER
A scale option. |
static String |
SCALE_OPTION_ONLY_WHEN_ICON_IS_BIGGER
A scale option. |
static String |
SCALE_OPTION_ONLY_WHEN_ICON_IS_SMALLER
A scale option. |
static String |
SCALE_TYPE_ANAMORPHIC
Scale to fill with of annotation, disregarding aspect ratio. |
static String |
SCALE_TYPE_PROPORTIONAL
Scale to fit width or height, smaller of two, while retaining aspect ration. |
Constructor Summary | |
---|---|
FDFIconFit()
Default constructor. |
|
FDFIconFit(COSDictionary f)
Constructor. |
Method Summary | |
---|---|
COSDictionary |
getCOSDictionary()
Convert this standard java object to a COS object. |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
PDRange |
getFractionalSpaceToAllocate()
This is guaranteed to never return null. |
String |
getScaleOption()
This will get the scale option. |
String |
getScaleType()
This will get the scale type. |
void |
setFractionalSpaceToAllocate(PDRange space)
This will set frational space to allocate. |
void |
setScaleOption(String option)
This will set the scale option for the icon. |
void |
setScaleToFitAnnotation(boolean value)
This will tell the icon to scale. |
void |
setScaleType(String scale)
This will set the scale type. |
boolean |
shouldScaleToFitAnnotation()
This will tell if the icon should scale to fit the annotation bounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SCALE_OPTION_ALWAYS
public static final String SCALE_OPTION_ONLY_WHEN_ICON_IS_BIGGER
public static final String SCALE_OPTION_ONLY_WHEN_ICON_IS_SMALLER
public static final String SCALE_OPTION_NEVER
public static final String SCALE_TYPE_ANAMORPHIC
public static final String SCALE_TYPE_PROPORTIONAL
Constructor Detail |
---|
public FDFIconFit()
public FDFIconFit(COSDictionary f)
f
- The icon fit dictionary.Method Detail |
---|
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public COSDictionary getCOSDictionary()
public String getScaleOption()
public void setScaleOption(String option)
option
- The scale option.public String getScaleType()
public void setScaleType(String scale)
scale
- The scale type.public PDRange getFractionalSpaceToAllocate()
public void setFractionalSpaceToAllocate(PDRange space)
space
- The space to allocate.public boolean shouldScaleToFitAnnotation()
public void setScaleToFitAnnotation(boolean value)
value
- The flag value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |