View Javadoc

1   // Copyright 2004, FreeHEP.
2   package hep.wired.heprep.services;
3   
4   import java.util.*;
5   
6   import hep.wired.variable.Variable;
7   
8   /***
9    * Defines the general graphics mode for each plot.
10   *
11   * @author Mark Donszelmann
12   * @version $Id: GraphicsMode.java 2136 2005-07-30 00:25:21Z duns $
13   */
14  public interface GraphicsMode {
15    
16      /***
17       * Returns a copy of this graphics mode.
18       */
19      public GraphicsMode copy();
20  
21      public Collection getVariables();
22  
23      /***
24       * Adds a mode property with given name, default value (and implicit type) and description.
25       * Return true if property did not exists yet.
26       */
27      public void add(Variable variable);
28      
29      /***
30       * Returns the variable
31       */
32      public Variable getVariable(String name);
33      
34      public Object getValue(String name);
35      
36      public void setValue(String name, Object value);
37      
38  }