FreeHEP API
Version 3.2.1

hep.aida
Interface IBrushStyle

All Superinterfaces:
IBaseStyle
All Known Subinterfaces:
IFillStyle, ILineStyle, IMarkerStyle, ITextStyle

public interface IBrushStyle
extends IBaseStyle

Superclass for anything which can be drawn in different colours and with (possibly) transparent/opaque/translucent effect.

Author:
The AIDA team (http://aida.freehep.org/)

Method Summary
 String[] availableColors()
          Get a list of the colours supported by this implementation.
 String color()
          Current colour of this brush style.
 double opacity()
          Current opacity (alpha) of this brush style.
 boolean setColor(String newColor)
          Set current colour, e.g.
 boolean setOpacity(double newOpacity)
          Set opacity (alpha), e.g.
 
Methods inherited from interface hep.aida.IBaseStyle
availableParameterOptions, availableParameters, parameterValue, reset, setParameter, setParameter
 

Method Detail

availableColors

public String[] availableColors()
Get a list of the colours supported by this implementation.


color

public String color()
Current colour of this brush style.


opacity

public double opacity()
Current opacity (alpha) of this brush style.


setColor

public boolean setColor(String newColor)
Set current colour, e.g. "darkGreen"

Returns:
false if colour not recognised by the implementation.

setOpacity

public boolean setOpacity(double newOpacity)
Set opacity (alpha), e.g. 0 (transparent), 1 (opaque), 0.5 (halfway).

Returns:
false if value not supported by the implementation.

FreeHEP API
Version 3.2.1

Copyright © 2000-2003 AIDA Team, All Rights Reserved.