Package org.jfree.ui

Class Layer

java.lang.Object
org.jfree.ui.Layer
All Implemented Interfaces:
Serializable

public final class Layer extends Object implements Serializable
Used to indicate either the foreground or background layer.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Layer
    Background.
    static final Layer
    Foreground.
    private String
    The name.
    private static final long
    For serialization.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Layer(String name)
    Private constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this object is equal to the specified object, and false otherwise.
    int
    Returns a hash code value for the object.
    private Object
    Ensures that serialization returns the unique instances.
    Returns a string representing the object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization.
      See Also:
    • FOREGROUND

      public static final Layer FOREGROUND
      Foreground.
    • BACKGROUND

      public static final Layer BACKGROUND
      Background.
    • name

      private String name
      The name.
  • Constructor Details

    • Layer

      private Layer(String name)
      Private constructor.
      Parameters:
      name - the name.
  • Method Details

    • toString

      public String toString()
      Returns a string representing the object.
      Overrides:
      toString in class Object
      Returns:
      The string.
    • equals

      public boolean equals(Object o)
      Returns true if this object is equal to the specified object, and false otherwise.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object.
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode
    • readResolve

      private Object readResolve() throws ObjectStreamException
      Ensures that serialization returns the unique instances.
      Returns:
      The object.
      Throws:
      ObjectStreamException - if there is a problem.