hep.aida
Interface IBrushStyle

All Superinterfaces:
IBaseStyle
All Known Subinterfaces:
IBorderStyle, IFillStyle, IGridStyle, ILineStyle, IMarkerStyle, ITextStyle
All Known Implementing Classes:
BorderStyle, FillStyle, GridStyle, LineStyle, MarkerStyle, TextStyle

public interface IBrushStyle
extends IBaseStyle

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


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, child, children, isVisible, name, parameterValue, reset, setParameter, setParameter, setVisible, type
 

Method Detail

availableColors

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


color

String color()
Current colour of this brush style.


opacity

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


setColor

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

Returns:
false if colour not recognised by the implementation.

setOpacity

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.


jHepWork 3.2 © jWork.org