Class PadMode

  • All Implemented Interfaces:
    java.io.Serializable

    public final class PadMode
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMode()
      Returns the mode of this pad mode.
      private java.lang.Object readResolve()
      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 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.
    • Constructor Detail

      • PadMode

        private PadMode​(int mode)
    • Method Detail

      • getMode

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

        private java.lang.Object readResolve()
                                      throws java.io.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:
        java.io.ObjectStreamException