Package org.apache.batik.ext.awt.image
Class PadMode
- java.lang.Object
-
- org.apache.batik.ext.awt.image.PadMode
-
- All Implemented Interfaces:
java.io.Serializable
public final class PadMode extends java.lang.Object implements java.io.SerializableThis is a typesafe enumeration of the standard Composite rules for the CompositeRable operation. (over, in, out, atop, xor, arith)- Version:
- $Id: PadMode.java 1808888 2017-09-19 14:22:11Z ssteiner $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intmodeThe pad mode for this object.static intMODE_REPLICATEPad edges by replicating edge pixelsstatic intMODE_WRAPPad edges by wrapping around edge pixelsstatic intMODE_ZERO_PADPad edges with zerosstatic PadModeREPLICATEPad edges by replicating edge pixelsstatic PadModeWRAPPad edges by replicating edge pixelsstatic PadModeZERO_PADPad edges with zeros
-
Constructor Summary
Constructors Modifier Constructor Description privatePadMode(int mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMode()Returns the mode of this pad mode.private java.lang.ObjectreadResolve()This is called by the serialization code before it returns an unserialized object.
-
-
-
Field Detail
-
MODE_ZERO_PAD
public static final int MODE_ZERO_PAD
Pad edges with zeros- See Also:
- Constant Field Values
-
MODE_REPLICATE
public static final int MODE_REPLICATE
Pad edges by replicating edge pixels- See Also:
- Constant Field Values
-
MODE_WRAP
public static final int MODE_WRAP
Pad edges by wrapping around edge pixels- See Also:
- Constant Field Values
-
ZERO_PAD
public static final PadMode ZERO_PAD
Pad edges with zeros
-
REPLICATE
public static final PadMode REPLICATE
Pad edges by replicating edge pixels
-
WRAP
public static final PadMode WRAP
Pad edges by replicating edge pixels
-
mode
private int mode
The pad mode for this object.
-
-
Method Detail
-
getMode
public int getMode()
Returns the mode of this pad mode.
-
readResolve
private java.lang.Object readResolve() throws java.io.ObjectStreamExceptionThis is called by the serialization code before it returns an unserialized object. To provide for unicity of instances, the instance that was read is replaced by its static equivalent. See the serialiazation specification for further details on this method's logic.- Throws:
java.io.ObjectStreamException
-
-