# Class LFrame

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Window
                               |
                               +----java.awt.Frame
                                       |
                                       +----LFrame

public class LFrame
extends Frame

`LFrame` is an extension of the `java.awt.Frame` class customized to display the legend of the color code used in the animation panel.

##

height
  The dimension of the frame in the number of pixels.
width
  The dimension of the frame in the number of pixels.

##

LFrame(Color[], String[])
  Creates a new legend frame.

##

handleEvent(Event)
  Legend window event handling method to dispose the legend frame when the WINDOW_DESTROY event is received.
preferredSize()
  Returns the dimension of the window when probed by the window manager.
setDimension(int, int)
  Set the dimension of the legend window.

##

width

     public int width

  The dimension of the frame in the number of pixels.

height

     public int height

  The dimension of the frame in the number of pixels.

##

LFrame

     public LFrame(Color colors[],
                   String strings[])

  Creates a new legend frame.

  Parameters:
    colors - Array of Color using in the DrawingPanel.
    strings - The descriptions of each color representation.

##

setDimension

     public void setDimension(int width,
                              int height)

  Set the dimension of the legend window.

  Parameters:
    width - The width of the window.
    height - The height of the window.

preferredSize

     public Dimension preferredSize()

  Returns the dimension of the window when probed by the window manager.

  Overrides:
    preferredSize in class Container

handleEvent

     public boolean handleEvent(Event event)

  Legend window event handling method to dispose the legend frame when the WINDOW_DESTROY event is received.

  Parameters:
    event - Event invoked.
  Overrides:
    handleEvent in class Component
  See Also:
    Event