| VisualResource |

    1   /*
    2    *  VisualResource.java
    3    *
    4    *  Copyright (c) 2000-2001, The University of Sheffield.
    5    *
    6    *  This file is part of GATE (see http://gate.ac.uk/), and is free
    7    *  software, licenced under the GNU Library General Public License,
    8    *  Version 2, June1991.
    9    *
    10   *  A copy of this licence is included in the distribution in the file
    11   *  licence.html, and is also available at http://gate.ac.uk/gate/licence.html.
    12   *
    13   *  Hamish Cunningham, 16/Oct/2000
    14   *
    15   *  $Id: VisualResource.java,v 1.8 2001/09/26 18:23:05 valyt Exp $
    16   */
    17
    18  package gate;
    19
    20  import java.util.*;
    21  import javax.swing.*;
    22
    23  import gate.util.*;
    24  import gate.gui.Handle;
    25
    26  /** Models all sorts of visual resources.
    27    */
    28  public interface VisualResource extends Resource{
    29    /**
    30     * Called by the GUI when this viewer/editor has to initialise itself for a
    31     * specific object.
    32     * @param target the object (be it a {@link gate.Resource},
    33     * {@link gate.DataStore} or whatever) this viewer has to display
    34     */
    35    public void setTarget(Object target);
    36
    37
    38    /**
    39     * Used by the main GUI to tell this VR what handle created it. The VRs can
    40     * use this information e.g. to add items to the popup for the resource.
    41     */
    42    public void setHandle(Handle handle);
    43
    44  } // interface VisualResource
    45

| VisualResource |