org.eclipse.graphiti.export.batik
Class GdiFont
java.lang.Object
org.eclipse.graphiti.export.batik.GdiFont
public class GdiFont
- extends 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
|
Constructor Summary |
GdiFont()
Creates a default font. |
GdiFont(GdiFont font)
Copy constructor |
GdiFont(int height,
boolean bItalic,
boolean bUnderlined,
boolean bStrikeout,
boolean bBold,
String faceName,
int escapement)
Creates a font with the specified parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 String m_faceName
m_escapement
private int m_escapement
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,
String faceName,
int escapement)
- Creates a font with the specified parameters.
- Parameters:
height - Height of the fontbItalic - Whether or not the font is italicbUnderlined - Whether or not the font is underlinedbStrikeout - Whether or not the font is a strikout fontbBold - Whether or not the font is boldfaceName - Name of the fontescapement - Font escapement (angle) of the text to be drawn.
getFont
public 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.