org.apache.tools.ant.types.optional.image
Class Scale
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
- All Implemented Interfaces: 
- DrawOperation
- public class Scale- extends TransformOperation- implements DrawOperation
- See Also:
- Image
 
 
 
 
 
| Constructor Summary | 
| Scale()
 | 
 
| Method Summary | 
|  javax.media.jai.PlanarImage | executeDrawOperation()Abstract method which is intended to create an image buffer
 and return it so it can be drawn into another object.
 | 
|  javax.media.jai.PlanarImage | executeTransformOperation(javax.media.jai.PlanarImage image)
 | 
|  float | getHeight()
 | 
|  float | getWidth()
 | 
|  javax.media.jai.PlanarImage | performScale(javax.media.jai.PlanarImage image)
 | 
|  void | setHeight(java.lang.String height)Sets the height of the image, either as an integer or a %.
 | 
|  void | setProportions(Scale.ProportionsAttribute pa)Sets the behaviour regarding the image proportions.
 | 
|  void | setWidth(java.lang.String width)Sets the width of the image, either as an integer or a %.
 | 
 
 
 
| Methods inherited from class org.apache.tools.ant.types.DataType | 
| checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Scale
public Scale()
setProportions
public void setProportions(Scale.ProportionsAttribute pa)
- Sets the behaviour regarding the image proportions.
 
- 
 
- 
 
setWidth
public void setWidth(java.lang.String width)
- Sets the width of the image, either as an integer or a %.  Defaults to 100%.
 
- 
 
- 
 
setHeight
public void setHeight(java.lang.String height)
- Sets the height of the image, either as an integer or a %.  Defaults to 100%.
 
- 
 
- 
 
getWidth
public float getWidth()
- 
 
- 
 
getHeight
public float getHeight()
- 
 
- 
 
performScale
public javax.media.jai.PlanarImage performScale(javax.media.jai.PlanarImage image)
- 
 
- 
 
executeTransformOperation
public javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image)
- 
- Specified by:
- executeTransformOperationin class- TransformOperation
 
- 
 
executeDrawOperation
public javax.media.jai.PlanarImage executeDrawOperation()
- Description copied from interface: DrawOperation
- Abstract method which is intended to create an image buffer
 and return it so it can be drawn into another object.  Use
 an Alpha channel for a "transparent" background.
 
- 
- Specified by:
- executeDrawOperationin interface- DrawOperation
 
- 
 
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.