hep.aida.ref.plotter
Class MarkerStyle

java.lang.Object
  extended by hep.aida.ref.plotter.WeakStyleListener
      extended by hep.aida.ref.plotter.BaseStyle
          extended by hep.aida.ref.plotter.MarkerStyle
All Implemented Interfaces:
IBaseStyle, IBrushStyle, IMarkerStyle, StyleListener

public class MarkerStyle
extends BaseStyle
implements IMarkerStyle


Constructor Summary
MarkerStyle()
           
 
Method Summary
 String[] availableColors()
          Get a list of the colours supported by this implementation.
 String[] availableShapes()
          Get list of shapes available in this implementation.
 String color()
          Current colour of this brush style.
 String color(int gi, int oi)
           
 double opacity()
          returns -1 if it not set
 boolean setColor(String color)
          Set current colour, e.g.
 boolean setOpacity(double opacity)
          Set opacity (alpha), e.g.
 boolean setShape(String markerShape)
          Set current marker shape, e.g.
 boolean setSize(int size)
          Set the marker's size.
 String shape()
          Get current marker shape.
 String shape(int globalIndex, int overlayIndex)
           
 int size()
          Get the marker's size.
 
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
 

Constructor Detail

MarkerStyle

public MarkerStyle()
Method Detail

availableShapes

public String[] availableShapes()
Description copied from interface: IMarkerStyle
Get list of shapes available in this implementation.

Specified by:
availableShapes in interface IMarkerStyle

setShape

public boolean setShape(String markerShape)
Description copied from interface: IMarkerStyle
Set current marker shape, e.g. "openCircle".

Specified by:
setShape in interface IMarkerStyle
Returns:
false if shape not available in this implementation.

shape

public String shape()
Description copied from interface: IMarkerStyle
Get current marker shape.

Specified by:
shape in interface IMarkerStyle

shape

public String shape(int globalIndex,
                    int overlayIndex)

setSize

public boolean setSize(int size)
Set the marker's size.

Specified by:
setSize in interface IMarkerStyle
Parameters:
size - The marker's size.
Returns:
false if the implementation cannot perform the requested change in the marker's size.

size

public int size()
Get the marker's size.

Specified by:
size in interface IMarkerStyle
Returns:
The marker's size.

availableColors

public String[] availableColors()
Description copied from interface: IBrushStyle
Get a list of the colours supported by this implementation.

Specified by:
availableColors in interface IBrushStyle

color

public String color()
Description copied from interface: IBrushStyle
Current colour of this brush style.

Specified by:
color in interface IBrushStyle

color

public String color(int gi,
                    int oi)

opacity

public double opacity()
returns -1 if it not set

Specified by:
opacity in interface IBrushStyle

setColor

public boolean setColor(String color)
Description copied from interface: IBrushStyle
Set current colour, e.g. "darkGreen"

Specified by:
setColor in interface IBrushStyle
Returns:
false if colour not recognised by the implementation.

setOpacity

public boolean setOpacity(double opacity)
Description copied from interface: IBrushStyle
Set opacity (alpha), e.g. 0 (transparent), 1 (opaque), 0.5 (halfway).

Specified by:
setOpacity in interface IBrushStyle
Returns:
false if value not supported by the implementation.


jHepWork 3.2 © jWork.org