Class PadMode

java.lang.Object
org.apache.batik.ext.awt.image.PadMode
All Implemented Interfaces:
Serializable

public final class PadMode extends Object implements Serializable
This 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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    The pad mode for this object.
    static final int
    Pad edges by replicating edge pixels
    static final int
    Pad edges by wrapping around edge pixels
    static final int
    Pad edges with zeros
    static final PadMode
    Pad edges by replicating edge pixels
    static final PadMode
    Pad edges by replicating edge pixels
    static final PadMode
    Pad edges with zeros
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    PadMode(int mode)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the mode of this pad mode.
    private Object
    This is called by the serialization code before it returns an unserialized object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODE_ZERO_PAD

      public static final int MODE_ZERO_PAD
      Pad edges with zeros
      See Also:
    • MODE_REPLICATE

      public static final int MODE_REPLICATE
      Pad edges by replicating edge pixels
      See Also:
    • MODE_WRAP

      public static final int MODE_WRAP
      Pad edges by wrapping around edge pixels
      See Also:
    • 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.
  • Constructor Details

    • PadMode

      private PadMode(int mode)
  • Method Details

    • getMode

      public int getMode()
      Returns the mode of this pad mode.
    • readResolve

      private Object readResolve() throws ObjectStreamException
      This 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:
      ObjectStreamException