class: FontStyle

public class: FontStyle
Author: makarenko (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1570 $ $LastChangedDate: 2009-02-17 00:; Complexity: 1
Dates: Created: 16.07.2009 15:12:18; Modified: 16.07.2009 15:12:18;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {44D7CAEB-83CF-42f1-AAFC-7EFEB4AA2501}
An instance of the class represents a font style definition
 

Goto: Custom Properties, Fields, Methods

See also: FontStylesCollection

Appears in: data

Connections
 
Custom Properties
 
FontStyle Attributes
Attribute Details
private String
  backColor
Notes: background color of the font
public static const String
  CSS_CLASS_REGEXP
Initial: "\\[span class="(\\w+?)"\\](.*?)\\[/span\\]"
public static const String
  CSS_CLASS_REPORT_TAG
Initial: "\"[span class=\\\"%s\\\"]\"+%s+\"[/span]\""
public static const String
  CSS_CLASS_SUBST
Initial: "$2"
private String
  cssClass
Notes: Alternative class name for css
private boolean
  def
Notes: font is default
private String
  fontName
Notes: font TypeFace
private int
  fontSize
Notes: font size
private String
  foreColor
Notes: foreground color of the font
private boolean
  isBold
private boolean
  isItalic
private boolean
  isPdfEmbedded
private boolean
  isStrikeThrough
private boolean
  isUnderline
private static const Logger
  logger
Initial: Logger.getLogger(FontStyle.class)
private String
  name
Notes: name of font
private String
  pdfEncoding
Notes: encoding for PDF
private String
  pdfFontName
Notes: fontname for PDF
 
FontStyle Methods
Operation Details
public
applyCssClass(
   String expr):String
Sequential
Notes: Adds css class definition to an element
public
applyStyle(
   String expr):String
Sequential
Notes: Creates JasperReport representation of the style If font is default, there is nothing to define, definition will be taken from the JasperReport itself.
@return String of the JasperReport font tag. String.format should be used to resolve %s
public
clone():Object
Sequential
public
FontStyle():
Sequential
Notes: Constructor
public
getBackColor():String
Sequential
Notes: backColor getter
@return backColor
public
getCssClass():String
Sequential
public
getDef():boolean
Sequential
Notes: def getter
@return def
public
getFontName():String
Sequential
Notes: fontName getter
@return fontName
public
getFontSize():int
Sequential
Notes: fontSize getter
@return fontSize
public
getForeColor():String
Sequential
Notes: foreColor getter
@return foreColor
public
getIsBold():boolean
Sequential
Notes: isBold getter
@return isBold
public
getIsItalic():boolean
Sequential
Notes: isItalic getter
@return isItalic
public
getIsPdfEmbedded():boolean
Sequential
Notes: isPdfEmbedded getter
@return isPdfEmbedded
public
getIsStrikeThrough():boolean
Sequential
Notes: isStrikeThrough getter
@return isStrikeThrough
public
getIsUnderline():boolean
Sequential
Notes: isUnderline getter
@return isUnderline
public
getName():String
Sequential
Notes: name getter
@return name
public
getPdfEncoding():String
Sequential
Notes: pdfEncoding getter
@return pdfEncoding
public
getPdfFontName():String
Sequential
Notes: pdfFontName getter
@return pdfFontName
public static
main(
   String[] args):void
Sequential
public
setBackColor(
   String newBackColor):void
Sequential
Notes: backColor setter
public
setCssClass(
   String cssClass):void
Sequential
public
setDef(
   boolean newDef):void
Sequential
Notes: def setter
public
setDefault():void
Sequential
Notes: Sets default values for the font TODO: to be moved to properties
public
setFontName(
   String newFontName):void
Sequential
Notes: fontName setter
public
setFontSize(
   int newFontSize):void
Sequential
Notes: fontSize setter
public
setForeColor(
   String newForeColor):void
Sequential
Notes: foreColor setter
public
setIsBold(
   boolean newIsBold):void
Sequential
Notes: isBold setter
public
setIsItalic(
   boolean newIsItalic):void
Sequential
Notes: isItalic setter
public
setIsPdfEmbedded(
   boolean newIsPdfEmbedded):void
Sequential
Notes: isPdfEmbedded setter
public
setIsStrikeThrough(
   boolean newIsStrikeThrough):void
Sequential
Notes: isStrikeThrogh setter
public
setIsUnderline(
   boolean newIsUnderline):void
Sequential
Notes: isUnderline setter
public
setName(
   String newName):void
Sequential
Notes: name setter
public
setPdfEncoding(
   String newPdfEncoding):void
Sequential
Notes: pdfEncoding setter
public
setPdfFontName(
   String newPdfFontName):void
Sequential
Notes: pdfFontName setter
public
toString():String
Sequential