hep.aida.ref.plotter
Class TextStyle

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

public class TextStyle
extends BaseStyle
implements ITextStyle


Constructor Summary
TextStyle()
           
 
Method Summary
 String[] availableColors()
          Get a list of the colours supported by this implementation.
 String[] availableFonts()
          Get list of fonts available in this implementation.
 String color()
          Current colour of this brush style.
 String color(int gi, int oi)
           
 String font()
          Get name of current font.
 double fontSize()
          Get current font size.
 boolean isBold()
           
 boolean isItalic()
           
 boolean isUnderlined()
           
 double opacity()
          returns -1 if it not set
 boolean setBold()
           
 boolean setBold(boolean isBold)
           
 boolean setColor(String color)
          Set current colour, e.g.
 boolean setFont(String font)
          Set current font, e.g.
 boolean setFontSize(double fontSize)
          Set current font size.
 boolean setItalic()
           
 boolean setItalic(boolean isItalic)
           
 boolean setOpacity(double opacity)
          Set opacity (alpha), e.g.
 boolean setUnderlined()
           
 boolean setUnderlined(boolean isUnderlined)
           
 
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

TextStyle

public TextStyle()
Method Detail

availableFonts

public String[] availableFonts()
Description copied from interface: ITextStyle
Get list of fonts available in this implementation.

Specified by:
availableFonts in interface ITextStyle

font

public String font()
Description copied from interface: ITextStyle
Get name of current font.

Specified by:
font in interface ITextStyle

fontSize

public double fontSize()
Description copied from interface: ITextStyle
Get current font size.

Specified by:
fontSize in interface ITextStyle

isBold

public boolean isBold()
Specified by:
isBold in interface ITextStyle

isItalic

public boolean isItalic()
Specified by:
isItalic in interface ITextStyle

isUnderlined

public boolean isUnderlined()
Specified by:
isUnderlined in interface ITextStyle

setBold

public boolean setBold()
Specified by:
setBold in interface ITextStyle

setBold

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

setFont

public boolean setFont(String font)
Description copied from interface: ITextStyle
Set current font, e.g. "timesNewRoman" or "courier".

Specified by:
setFont in interface ITextStyle
Returns:
false if font not supported by this implementation.

setFontSize

public boolean setFontSize(double fontSize)
Description copied from interface: ITextStyle
Set current font size.

Specified by:
setFontSize in interface ITextStyle
Returns:
false if size not supported by this implementation.

setItalic

public boolean setItalic()
Specified by:
setItalic in interface ITextStyle

setItalic

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

setUnderlined

public boolean setUnderlined()
Specified by:
setUnderlined in interface ITextStyle

setUnderlined

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

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