MetaDone
metadone.client.grasyla2.base.FontEngine Class Reference
Inheritance diagram for metadone.client.grasyla2.base.FontEngine:
Collaboration diagram for metadone.client.grasyla2.base.FontEngine:

List of all members.

Public Member Functions

 FontEngine (GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition

Static Public Attributes

static final Font DEFAULT_FONT = Font.decode(null)

Protected Member Functions

AttributeBuilder< Font > getBuilder (String type)
AttributeBuilder< Font > getDefaultBuilder (String type)

Static Private Attributes

static AttributeBuilder< Font > fontBuilder

Detailed Description

Creates a font.

Attributes
  • bold: Boolean
  • italic: Boolean
  • size: Number, if integral, it is the new size, if a floating value, the existing size is scaled by that factor.

Contents

none

Result
A Font. Firstly, the type is decoded, then attributes are applied to that decoded font.
Author:
kma
See also:
Font.decode(String)

Constructor & Destructor Documentation

metadone.client.grasyla2.base.FontEngine.FontEngine ( GrasylaContext  context,
ConcreteObject  expression,
Engine  parent 
) throws BadPreCondition

Member Function Documentation

AttributeBuilder<Font> metadone.client.grasyla2.base.FontEngine.getBuilder ( String  type) [protected]
AttributeBuilder<Font> metadone.client.grasyla2.base.FontEngine.getDefaultBuilder ( String  type) [protected]

Member Data Documentation

AttributeBuilder<Font> metadone.client.grasyla2.base.FontEngine.fontBuilder [static, private]

Creates a font.

First the type is decoded for a base font. Otherwise a default one is chosen. Then its style is changed using the given properties.

Referenced by metadone.client.grasyla2.base.FontEngine.getDefaultBuilder().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations