org.eclipse.graphiti.export.batik
Class GdiFont

java.lang.Object
  extended by org.eclipse.graphiti.export.batik.GdiFont

public class GdiFont
extends java.lang.Object

Represents a font on the system. There may be multiple fonts created in the system at any one time. The currently selected font can be retrieved from the DeviceContext.

Author:
dhabib

Field Summary
private  boolean m_bBold
           
private  boolean m_bItalic
           
private  boolean m_bStrikeout
           
private  boolean m_bUnderlined
           
private  int m_escapement
           
private  java.lang.String m_faceName
           
private  int m_height
           
 
Constructor Summary
GdiFont()
          Creates a default font.
GdiFont(GdiFont font)
          Copy constructor
GdiFont(int height, boolean bItalic, boolean bUnderlined, boolean bStrikeout, boolean bBold, java.lang.String faceName, int escapement)
          Creates a font with the specified parameters.
 
Method Summary
 int getEscapement()
           
 java.awt.Font getFont()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_height

private int m_height

m_bItalic

private boolean m_bItalic

m_bUnderlined

private boolean m_bUnderlined

m_bBold

private boolean m_bBold

m_bStrikeout

private boolean m_bStrikeout

m_faceName

private java.lang.String m_faceName

m_escapement

private int m_escapement
Constructor Detail

GdiFont

public GdiFont()
Creates a default font.


GdiFont

GdiFont(GdiFont font)
Copy constructor

Parameters:
font -

GdiFont

public GdiFont(int height,
               boolean bItalic,
               boolean bUnderlined,
               boolean bStrikeout,
               boolean bBold,
               java.lang.String faceName,
               int escapement)
Creates a font with the specified parameters.

Parameters:
height - Height of the font
bItalic - Whether or not the font is italic
bUnderlined - Whether or not the font is underlined
bStrikeout - Whether or not the font is a strikout font
bBold - Whether or not the font is bold
faceName - Name of the font
escapement - Font escapement (angle) of the text to be drawn.
Method Detail

getFont

public java.awt.Font getFont()
Returns:
The Java font object that represents most of the attributes for drawing the font.

getEscapement

public int getEscapement()
Returns:
The angle at which to draw the font.


Copyright (c) SAP AG 2005, 2012.