org.apache.batik.ext.awt.image.renderable

Interface PadRable

public interface PadRable extends Filter

Pads image to the given Rectangle (the rect may be smaller than the image in which case this is actually a crop). The rectangle is specified in the user coordinate system of this Renderable.
Method Summary
PadModegetPadMode()
Get the current extension mode for pad
Rectangle2DgetPadRect()
Get the current rectangle for padding
FiltergetSource()
Returns the source to be padded
voidsetPadMode(PadMode mode)
Set the current extension mode for pad
voidsetPadRect(Rectangle2D rect)
Set the current rectangle for padding.
voidsetSource(Filter src)
Sets the source to be padded

Method Detail

getPadMode

public PadMode getPadMode()
Get the current extension mode for pad

Returns: Mode currently in use for pad

getPadRect

public Rectangle2D getPadRect()
Get the current rectangle for padding

Returns: Rectangle currently in use for pad.

getSource

public Filter getSource()
Returns the source to be padded

setPadMode

public void setPadMode(PadMode mode)
Set the current extension mode for pad

Parameters: mode the new pad mode

setPadRect

public void setPadRect(Rectangle2D rect)
Set the current rectangle for padding.

Parameters: rect the new rectangle to use for pad.

setSource

public void setSource(Filter src)
Sets the source to be padded

Parameters: src image to offset.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.