hep.aida.ref.plotter
Class GridStyle

java.lang.Object
  extended by hep.aida.ref.plotter.WeakStyleListener
      extended by hep.aida.ref.plotter.BaseStyle
          extended by hep.aida.ref.plotter.LineStyle
              extended by hep.aida.ref.plotter.GridStyle
All Implemented Interfaces:
IBaseStyle, IBrushStyle, IGridStyle, ILineStyle, StyleListener

public class GridStyle
extends LineStyle
implements IGridStyle


Constructor Summary
GridStyle()
           
 
Method Summary
 String[] availableColors()
          Get a list of the colours supported by this implementation.
 double cellSize()
           
 String color()
          Current colour of this brush style.
 String color(int gi, int oi)
           
 double opacity()
          returns -1 if it not set
 boolean setCellSize(double size)
          Set and get the size of the cell.
 boolean setColor(String color)
          Set current colour, e.g.
 boolean setOpacity(double opacity)
          Set opacity (alpha), e.g.
 boolean setUnits(int unitsDefinition)
          Get and set the units used for the size of cell.
 int units()
           
 
Methods inherited from class hep.aida.ref.plotter.LineStyle
availableLineTypes, lineType, lineType, setLineType, setThickness, thickness
 
Methods inherited from class hep.aida.ref.plotter.BaseStyle
addParent, addParentList, availableParameterOptions, availableParameters, child, children, deepestSetParameter, isMyParent, isParameterSet, isParameterSet, isVisible, name, parameter, parameterValue, parentList, removeAllParents, removeParent, reset, setParameter, setParameter, setParameter, setParameterDefault, setParent, setParentList, setVisible, styleChanged, type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ILineStyle
availableLineTypes, lineType, setLineType, setThickness, thickness
 
Methods inherited from interface hep.aida.IBrushStyle
availableColors, color, opacity, setColor, setOpacity
 
Methods inherited from interface hep.aida.IBaseStyle
availableParameterOptions, availableParameters, child, children, isVisible, name, parameterValue, reset, setParameter, setParameter, setVisible, type
 

Constructor Detail

GridStyle

public GridStyle()
Method Detail

cellSize

public double cellSize()
Specified by:
cellSize in interface IGridStyle

setCellSize

public boolean setCellSize(double size)
Description copied from interface: IGridStyle
Set and get the size of the cell.

Specified by:
setCellSize in interface IGridStyle

setUnits

public boolean setUnits(int unitsDefinition)
Description copied from interface: IGridStyle
Get and set the units used for the size of cell.

Specified by:
setUnits in interface IGridStyle

units

public int units()
Specified by:
units in interface IGridStyle

availableColors

public String[] availableColors()
Description copied from interface: IBrushStyle
Get a list of the colours supported by this implementation.

Specified by:
availableColors in interface IBrushStyle

color

public String color()
Description copied from interface: IBrushStyle
Current colour of this brush style.

Specified by:
color in interface IBrushStyle

color

public String color(int gi,
                    int oi)

opacity

public double opacity()
returns -1 if it not set

Specified by:
opacity in interface IBrushStyle

setColor

public boolean setColor(String color)
Description copied from interface: IBrushStyle
Set current colour, e.g. "darkGreen"

Specified by:
setColor in interface IBrushStyle
Returns:
false if colour not recognised by the implementation.

setOpacity

public boolean setOpacity(double opacity)
Description copied from interface: IBrushStyle
Set opacity (alpha), e.g. 0 (transparent), 1 (opaque), 0.5 (halfway).

Specified by:
setOpacity in interface IBrushStyle
Returns:
false if value not supported by the implementation.


jHepWork 3.2 © jWork.org