AIDA API
Version 3.3

hep.aida
Interface IBrushStyle

All Superinterfaces:
IBaseStyle
All Known Subinterfaces:
IBorderStyle, IFillStyle, IGridStyle, 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. 0 (transparent), 1 (opaque), 0.5 (halfway).
 
Methods inherited from interface hep.aida.IBaseStyle
availableParameterOptions, availableParameters, child, children, isVisible, name, parameterValue, reset, setParameter, setParameter, setVisible, type
 

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.

AIDA API
Version 3.3

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