public class FDFIconFit extends Object implements COSObjectable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
FDFIconFit()
Default constructor.
|
FDFIconFit(COSDictionary f)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
COSDictionary |
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.
|
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
public FDFIconFit()
public FDFIconFit(COSDictionary f)
f
- The icon fit dictionary.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
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.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.