hep.wired.heprep.graphicspanel
Class HepRepGraphicsMode

java.lang.Object
  extended byhep.wired.heprep.graphicspanel.HepRepGraphicsMode
All Implemented Interfaces:
GraphicsMode, org.freehep.xml.io.XMLIO

public class HepRepGraphicsMode
extends java.lang.Object
implements GraphicsMode, org.freehep.xml.io.XMLIO

Defines the general graphics mode for each plot.

Version:
$Id: HepRepGraphicsMode.java 2181 2005-08-03 19:11:28Z duns $
Author:
Mark Donszelmann

Field Summary
 boolean antiAlias
           
 boolean drawFrames
           
 boolean drawWideLines
           
 boolean fillBoxes
           
 double lineWidthMultiplier
           
 double markSizeMultiplier
           
 boolean useLayering
           
 
Constructor Summary
HepRepGraphicsMode(boolean fast)
          Creates a graphics mode, with predefined and preset (fast) properties.
 
Method Summary
 void add(hep.wired.variable.Variable var)
          Adds a mode property with given name, default value (and implicit type) and description.
protected  hep.wired.variable.BooleanVariable addVariable(java.lang.String name, boolean def, java.lang.String description)
          Adds a named variable with default value.
protected  hep.wired.variable.DoubleVariable addVariable(java.lang.String name, double min, double max, double def, java.lang.String unit, java.lang.String description)
          Adds a named variable with minimum, maximum and default value.
protected  hep.wired.variable.IntegerVariable addVariable(java.lang.String name, int min, int max, int def, java.lang.String unit, java.lang.String description)
          Adds a named variable with minimum, maximum and default value.
 GraphicsMode copy()
          Returns a copy of this graphics mode.
 java.lang.Object getValue(java.lang.String name)
           
 hep.wired.variable.Variable getVariable(java.lang.String name)
          Returns the variable
 java.util.Collection getVariables()
           
 void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
           
 void save(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
           
 void setValue(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drawWideLines

public boolean drawWideLines

fillBoxes

public boolean fillBoxes

drawFrames

public boolean drawFrames

antiAlias

public boolean antiAlias

useLayering

public boolean useLayering

lineWidthMultiplier

public double lineWidthMultiplier

markSizeMultiplier

public double markSizeMultiplier
Constructor Detail

HepRepGraphicsMode

public HepRepGraphicsMode(boolean fast)
Creates a graphics mode, with predefined and preset (fast) properties.

Method Detail

copy

public GraphicsMode copy()
Returns a copy of this graphics mode.

Specified by:
copy in interface GraphicsMode

getVariables

public java.util.Collection getVariables()
Specified by:
getVariables in interface GraphicsMode

add

public void add(hep.wired.variable.Variable var)
Description copied from interface: GraphicsMode
Adds a mode property with given name, default value (and implicit type) and description. Return true if property did not exists yet.

Specified by:
add in interface GraphicsMode

addVariable

protected hep.wired.variable.DoubleVariable addVariable(java.lang.String name,
                                                        double min,
                                                        double max,
                                                        double def,
                                                        java.lang.String unit,
                                                        java.lang.String description)
Adds a named variable with minimum, maximum and default value.


addVariable

protected hep.wired.variable.IntegerVariable addVariable(java.lang.String name,
                                                         int min,
                                                         int max,
                                                         int def,
                                                         java.lang.String unit,
                                                         java.lang.String description)
Adds a named variable with minimum, maximum and default value.


addVariable

protected hep.wired.variable.BooleanVariable addVariable(java.lang.String name,
                                                         boolean def,
                                                         java.lang.String description)
Adds a named variable with default value.


getVariable

public hep.wired.variable.Variable getVariable(java.lang.String name)
Description copied from interface: GraphicsMode
Returns the variable

Specified by:
getVariable in interface GraphicsMode

getValue

public java.lang.Object getValue(java.lang.String name)
Specified by:
getValue in interface GraphicsMode

setValue

public void setValue(java.lang.String name,
                     java.lang.Object value)
Specified by:
setValue in interface GraphicsMode

save

public void save(org.freehep.xml.io.XMLIOManager xmlioManager,
                 org.jdom.Element nodeEl)
Specified by:
save in interface org.freehep.xml.io.XMLIO

restore

public void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
                    org.jdom.Element nodeEl)
Specified by:
restore in interface org.freehep.xml.io.XMLIO


Copyright © 1996-2005 WIRED - FreeHEP. All Rights Reserved.