hep.aida.ref.plotter
Class BaseStyle

java.lang.Object
  extended by hep.aida.ref.plotter.BaseStyle
All Implemented Interfaces:
hep.aida.IBaseStyle, StyleListener
Direct Known Subclasses:
AxisStyle, BoxStyle, DataStyle, FillStyle, InfoStyle, LegendBoxStyle, LineStyle, MarkerStyle, PlotterStyle, StatisticsBoxStyle, TextStyle, TitleStyle

public abstract class BaseStyle
extends java.lang.Object
implements hep.aida.IBaseStyle, StyleListener


Method Summary
 void addParent(hep.aida.IBaseStyle style)
           
 void addParentList(java.util.List pl)
           
 java.lang.String[] availableParameterOptions(java.lang.String parameterName)
          Below are the AIDA methods.
 java.lang.String[] availableParameters()
           
 hep.aida.IBaseStyle child(java.lang.String name)
           
 hep.aida.IBaseStyle[] children()
           
static java.util.List createParentListForName(BaseStyle bs, java.lang.String name)
           
static java.util.List createParentListForName(java.util.List pl, java.lang.String name)
           
 AbstractStyleParameter deepestSetParameter(java.lang.String parameterName)
           
 boolean isMyParent(hep.aida.IBaseStyle style)
           
 boolean isParameterSet(java.lang.String parameterName)
           
 boolean isParameterSet(java.lang.String parameterName, boolean recursive)
           
 boolean isVisible()
          Get isVisible of the data.
 java.lang.String name()
          Get the name of this BaseStyle.
 AbstractStyleParameter parameter(java.lang.String parName)
           
 java.lang.String parameterValue(java.lang.String parameterName)
           
 java.util.List parentList()
          Get the parent for this BaseStyle.
 void reset()
           
 boolean setParameter(java.lang.String parameterName)
           
 boolean setParameter(java.lang.String parameterName, java.lang.String parValue)
           
 boolean setParameter(java.lang.String parameterName, java.lang.String parValue, java.lang.String[] parAllowedValues)
           
 void setParameterDefault(java.lang.String parameterName, java.lang.String parDefaultValue)
           
 void setParentList(hep.aida.IBaseStyle style)
          Set the parent for this BaseStyle.
 void setParentList(java.util.List pl)
           
 boolean setVisible(boolean visible)
          Set isVisible of the data.
 void styleChanged(BaseStyle style)
           
 java.lang.Class type()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createParentListForName

public static java.util.List createParentListForName(BaseStyle bs,
                                                     java.lang.String name)

createParentListForName

public static java.util.List createParentListForName(java.util.List pl,
                                                     java.lang.String name)

name

public java.lang.String name()
Get the name of this BaseStyle.

Specified by:
name in interface hep.aida.IBaseStyle
Returns:
The name of the BaseStyle.

type

public java.lang.Class type()
Specified by:
type in interface hep.aida.IBaseStyle
Returns:
The type of the style.

child

public hep.aida.IBaseStyle child(java.lang.String name)
Specified by:
child in interface hep.aida.IBaseStyle
Returns:
A sub style, knowing its name.

children

public hep.aida.IBaseStyle[] children()
Specified by:
children in interface hep.aida.IBaseStyle
Returns:
The array of sub styles.

setVisible

public boolean setVisible(boolean visible)
Set isVisible of the data.

Specified by:
setVisible in interface hep.aida.IBaseStyle

isVisible

public boolean isVisible()
Get isVisible of the data. return The isVisible of the data.

Specified by:
isVisible in interface hep.aida.IBaseStyle

setParentList

public void setParentList(hep.aida.IBaseStyle style)
Set the parent for this BaseStyle. The parent can be set only once; if this is done a second time a RuntimeException is thrown.

Parameters:
p - The parent for this BaseStyle.

setParentList

public void setParentList(java.util.List pl)

addParent

public void addParent(hep.aida.IBaseStyle style)

addParentList

public void addParentList(java.util.List pl)

isMyParent

public boolean isMyParent(hep.aida.IBaseStyle style)

parentList

public java.util.List parentList()
Get the parent for this BaseStyle.

Returns:
The parent.

parameter

public AbstractStyleParameter parameter(java.lang.String parName)

deepestSetParameter

public AbstractStyleParameter deepestSetParameter(java.lang.String parameterName)

isParameterSet

public boolean isParameterSet(java.lang.String parameterName)

isParameterSet

public boolean isParameterSet(java.lang.String parameterName,
                              boolean recursive)

availableParameterOptions

public java.lang.String[] availableParameterOptions(java.lang.String parameterName)
Below are the AIDA methods.

Specified by:
availableParameterOptions in interface hep.aida.IBaseStyle

availableParameters

public java.lang.String[] availableParameters()
Specified by:
availableParameters in interface hep.aida.IBaseStyle

parameterValue

public java.lang.String parameterValue(java.lang.String parameterName)
Specified by:
parameterValue in interface hep.aida.IBaseStyle

reset

public void reset()
Specified by:
reset in interface hep.aida.IBaseStyle

setParameter

public boolean setParameter(java.lang.String parameterName)
Specified by:
setParameter in interface hep.aida.IBaseStyle

setParameter

public boolean setParameter(java.lang.String parameterName,
                            java.lang.String parValue)
Specified by:
setParameter in interface hep.aida.IBaseStyle

setParameter

public boolean setParameter(java.lang.String parameterName,
                            java.lang.String parValue,
                            java.lang.String[] parAllowedValues)

setParameterDefault

public void setParameterDefault(java.lang.String parameterName,
                                java.lang.String parDefaultValue)

styleChanged

public void styleChanged(BaseStyle style)
Specified by:
styleChanged in interface StyleListener


jHepWork 1.1 (C) Chekanov