hep.aida.ref.plotter
Class LineStyle
- java.lang.Object
-
- hep.aida.ref.plotter.WeakStyleListener
-
- hep.aida.ref.plotter.BaseStyle
-
- hep.aida.ref.plotter.LineStyle
-
- All Implemented Interfaces:
- IBaseStyle, IBrushStyle, ILineStyle, StyleListener
- Direct Known Subclasses:
- BorderStyle, GridStyle
public class LineStyle extends BaseStyle implements ILineStyle
-
-
Constructor Summary
Constructors Constructor and Description LineStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]availableColors()Get a list of the colours supported by this implementation.java.lang.String[]availableLineTypes()Get list of line types supported by this implementation.java.lang.Stringcolor()Current colour of this brush style.java.lang.Stringcolor(int gi, int oi)java.lang.StringlineType()Get line type currently in use.java.lang.StringlineType(int globalIndex, int overlayIndex)doubleopacity()returns -1 if it not setbooleansetColor(java.lang.String color)Set current colour, e.g.booleansetLineType(java.lang.String lineType)Set current line type e.g.booleansetOpacity(double opacity)Set opacity (alpha), e.g.booleansetThickness(int lineThickness)Set thickness (exact meaning is implementation-dependent, but <0 means invisible).intthickness()Get current line 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.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
-
-
-
-
Method Detail
-
availableLineTypes
public java.lang.String[] availableLineTypes()
Description copied from interface:ILineStyleGet list of line types supported by this implementation.- Specified by:
availableLineTypesin interfaceILineStyle
-
lineType
public java.lang.String lineType()
Description copied from interface:ILineStyleGet line type currently in use.- Specified by:
lineTypein interfaceILineStyle
-
lineType
public java.lang.String lineType(int globalIndex, int overlayIndex)
-
setLineType
public boolean setLineType(java.lang.String lineType)
Description copied from interface:ILineStyleSet current line type e.g. "dotted".- Specified by:
setLineTypein interfaceILineStyle- Returns:
- false if line type not known to this implementation.
-
setThickness
public boolean setThickness(int lineThickness)
Description copied from interface:ILineStyleSet thickness (exact meaning is implementation-dependent, but <0 means invisible).- Specified by:
setThicknessin interfaceILineStyle- Returns:
- false if value not supported by this implementation.
-
thickness
public int thickness()
Description copied from interface:ILineStyleGet current line thickness.- Specified by:
thicknessin interfaceILineStyle
-
availableColors
public java.lang.String[] availableColors()
Description copied from interface:IBrushStyleGet a list of the colours supported by this implementation.- Specified by:
availableColorsin interfaceIBrushStyle
-
color
public java.lang.String color()
Description copied from interface:IBrushStyleCurrent colour of this brush style.- Specified by:
colorin interfaceIBrushStyle
-
color
public java.lang.String color(int gi, int oi)
-
opacity
public double opacity()
returns -1 if it not set- Specified by:
opacityin interfaceIBrushStyle
-
setColor
public boolean setColor(java.lang.String color)
Description copied from interface:IBrushStyleSet current colour, e.g. "darkGreen"- Specified by:
setColorin interfaceIBrushStyle- Returns:
- false if colour not recognised by the implementation.
-
setOpacity
public boolean setOpacity(double opacity)
Description copied from interface:IBrushStyleSet opacity (alpha), e.g. 0 (transparent), 1 (opaque), 0.5 (halfway).- Specified by:
setOpacityin interfaceIBrushStyle- Returns:
- false if value not supported by the implementation.
-
-
DMelt 3.0 © DataMelt by jWork.ORG