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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.String[]availableColors()Get a list of the colours supported by this implementation.java.lang.Stringcolor()Current colour of this brush style.doubleopacity()Current opacity (alpha) of this brush style.booleansetColor(java.lang.String newColor)Set current colour, e.g.booleansetOpacity(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
java.lang.String[] availableColors()
Get a list of the colours supported by this implementation.
-
color
java.lang.String color()
Current colour of this brush style.
-
opacity
double opacity()
Current opacity (alpha) of this brush style.
-
setColor
boolean setColor(java.lang.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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG