FreeHEP API
Version current

hep.aida.ref.plotter
Class TextStyle

java.lang.Object
  extended byhep.aida.ref.plotter.BaseStyle
      extended byhep.aida.ref.plotter.BrushStyle
          extended byhep.aida.ref.plotter.TextStyle
All Implemented Interfaces:
hep.aida.IBaseStyle, hep.aida.IBrushStyle, hep.aida.ITextStyle, StyleListener

public class TextStyle
extends hep.aida.ref.plotter.BrushStyle
implements hep.aida.ITextStyle

Author:
The FreeHEP team @ SLAC.
Source Code:
TextStyle.java

Constructor Summary
TextStyle()
           
 
Method Summary
 String[] availableColors()
           
 String[] availableFonts()
           
 String color()
           
 String font()
           
 double fontSize()
           
protected  void initializeBaseStyle()
          Initialize the BaseStyle.
 boolean isBold()
           
 boolean isItalic()
           
 boolean isUnderlined()
           
 double opacity()
          returns -1 if it not set
 boolean setBold()
           
 boolean setBold(boolean isBold)
           
 boolean setColor(String color)
           
 boolean setFont(String font)
           
 boolean setFontSize(double fontSize)
           
 boolean setItalic()
           
 boolean setItalic(boolean isItalic)
           
 boolean setOpacity(double opacity)
           
 boolean setUnderlined()
           
 boolean setUnderlined(boolean isUnderlined)
           
 
Methods inherited from class hep.aida.ref.plotter.BaseStyle
addBaseStyle, addParameter, availableParameterOptions, availableParameters, child, children, deepestSetParameter, isParameterSet, isVisible, name, numberOfParameters, parameter, parameters, parameterValue, parent, reset, setName, setParameter, setParameter, setParameterDefault, setParent, setVisible, styleChanged, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

TextStyle

public TextStyle()
Method Detail

initializeBaseStyle

protected void initializeBaseStyle()
Description copied from class: BaseStyle
Initialize the BaseStyle. This method has to be overwritten by all Style that has to add parameters or internal BaseStyles.


availableFonts

public String[] availableFonts()
Specified by:
availableFonts in interface hep.aida.ITextStyle

font

public String font()
Specified by:
font in interface hep.aida.ITextStyle

fontSize

public double fontSize()
Specified by:
fontSize in interface hep.aida.ITextStyle

isBold

public boolean isBold()
Specified by:
isBold in interface hep.aida.ITextStyle

isItalic

public boolean isItalic()
Specified by:
isItalic in interface hep.aida.ITextStyle

isUnderlined

public boolean isUnderlined()
Specified by:
isUnderlined in interface hep.aida.ITextStyle

setBold

public boolean setBold()
Specified by:
setBold in interface hep.aida.ITextStyle

setBold

public boolean setBold(boolean isBold)
Specified by:
setBold in interface hep.aida.ITextStyle

setFont

public boolean setFont(String font)
Specified by:
setFont in interface hep.aida.ITextStyle

setFontSize

public boolean setFontSize(double fontSize)
Specified by:
setFontSize in interface hep.aida.ITextStyle

setItalic

public boolean setItalic()
Specified by:
setItalic in interface hep.aida.ITextStyle

setItalic

public boolean setItalic(boolean isItalic)
Specified by:
setItalic in interface hep.aida.ITextStyle

setUnderlined

public boolean setUnderlined()
Specified by:
setUnderlined in interface hep.aida.ITextStyle

setUnderlined

public boolean setUnderlined(boolean isUnderlined)
Specified by:
setUnderlined in interface hep.aida.ITextStyle

availableColors

public String[] availableColors()
Specified by:
availableColors in interface hep.aida.IBrushStyle

color

public String color()
Specified by:
color in interface hep.aida.IBrushStyle

opacity

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

Specified by:
opacity in interface hep.aida.IBrushStyle

setColor

public boolean setColor(String color)
Specified by:
setColor in interface hep.aida.IBrushStyle

setOpacity

public boolean setOpacity(double opacity)
Specified by:
setOpacity in interface hep.aida.IBrushStyle

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.