info.magnolia.imaging.operations.text
Class TextStyle

java.lang.Object
  extended by info.magnolia.imaging.operations.text.TextStyle

public class TextStyle
extends Object

A simple bean holding font-related configuration.

Version:
$Id$

Field Summary
static double CHARSPACING_DIV_FACTOR
           
static double SHEARING_DIV_FACTOR
           
 
Constructor Summary
TextStyle()
           
 
Method Summary
 float calculateCharSpacing()
           
 double calculateShearingValue()
           
 Color getBackgroundColor()
           
 double getCharSpacing()
           
 Color getColor()
           
 Font getFont()
           
 String getFontName()
           
 int getFontSize()
           
 int getFontStyle()
           
 int getShearingValue()
           
 void setBackgroundColor(Color backgroundColor)
           
 void setCharSpacing(double charSpacing)
           
 void setColor(Color color)
           
 void setFontName(String fontName)
           
 void setFontSize(int fontSize)
           
 void setFontStyle(int fontStyle)
           
 void setShearingValue(int shearingValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHEARING_DIV_FACTOR

public static final double SHEARING_DIV_FACTOR
See Also:
Constant Field Values

CHARSPACING_DIV_FACTOR

public static final double CHARSPACING_DIV_FACTOR
See Also:
Constant Field Values
Constructor Detail

TextStyle

public TextStyle()
Method Detail

calculateShearingValue

public double calculateShearingValue()

calculateCharSpacing

public float calculateCharSpacing()

getFont

public Font getFont()

getFontName

public String getFontName()

setFontName

public void setFontName(String fontName)

getFontStyle

public int getFontStyle()

setFontStyle

public void setFontStyle(int fontStyle)

getFontSize

public int getFontSize()

setFontSize

public void setFontSize(int fontSize)

getColor

public Color getColor()

setColor

public void setColor(Color color)

getBackgroundColor

public Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)

getCharSpacing

public double getCharSpacing()

setCharSpacing

public void setCharSpacing(double charSpacing)

getShearingValue

public int getShearingValue()

setShearingValue

public void setShearingValue(int shearingValue)


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.