Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.optional.image.ImageOperation
org.apache.tools.ant.types.optional.image.TransformOperation
org.apache.tools.ant.types.optional.image.Scale
Image
Nested Class Summary | |
static class |
|
Field Summary |
Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperation | |
instructions |
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
description , location , project |
Method Summary | |
PlanarImage | |
PlanarImage |
|
float |
|
float |
|
PlanarImage |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.tools.ant.types.optional.image.TransformOperation | |
addRectangle , executeTransformOperation |
Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperation | |
addDraw , addRectangle , addRotate , addScale , addText |
Methods inherited from class org.apache.tools.ant.types.DataType | |
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
clone , getDescription , getLocation , getProject , log , log , setDescription , setLocation , setProject |
public PlanarImage executeDrawOperation()
.
- Specified by:
- executeDrawOperation in interface DrawOperation
public PlanarImage executeTransformOperation(PlanarImage image)
.
- Overrides:
- executeTransformOperation in interface TransformOperation
public float getHeight()
Get the height.
- Returns:
- the value converted from the height string.
public float getWidth()
Get the width.
- Returns:
- the value converted from the width string.
public PlanarImage performScale(PlanarImage image)
Scale an image.
- Parameters:
image
- the image to scale.
- Returns:
- the scaled image.
public void setHeight(String height)
Sets the height of the image, either as an integer or a %. Defaults to 100%.
- Parameters:
height
- the value to use.
public void setProportions(Scale.ProportionsAttribute pa)
Sets the behaviour regarding the image proportions.
- Parameters:
pa
- the enumerated value.
public void setWidth(String width)
Sets the width of the image, either as an integer or a %. Defaults to 100%.
- Parameters:
width
- the value to use.