com.jniwrapper.win32.gdi
Class LogFont

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.gdi.LogFont
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class LogFont
extends com.jniwrapper.Structure

The LogFont class represents the LOGFONT structure. LOGFONT in MSDN Library


Field Summary
protected  com.jniwrapper.UInt8 lfCharSet
          Specifies the character set.
protected  com.jniwrapper.UInt8 lfClipPrecision
          Specifies the clipping precision.
protected  com.jniwrapper.LongInt lfEscapement
          Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.
protected  com.jniwrapper.Str lfFaceName
          Specifies a null-terminated string that contains the typeface name of the font.
protected  com.jniwrapper.LongInt lfHeight
          Specifies the height, in logical units, of the font's character cell or character.
protected  com.jniwrapper.UInt8 lfItalic
          Specifies an italic font if set to true.
protected  com.jniwrapper.LongInt lfOrientation
          Specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
protected  com.jniwrapper.UInt8 lfOutPrecision
          Specifies the output precision.
protected  com.jniwrapper.UInt8 lfPitchAndFamily
          Specifies the pitch and family of the font.
protected  com.jniwrapper.UInt8 lfQuality
          Specifies the output quality.
protected  com.jniwrapper.UInt8 lfStrikeOut
          Specifies a strikeout font if set to true.
protected  com.jniwrapper.UInt8 lfUnderline
          Specifies an underlined font if set to true.
protected  com.jniwrapper.LongInt lfWeight
          Specifies the weight of the font in the range 0 through 1000.
protected  com.jniwrapper.LongInt lfWidth
          Specifies the average width, in logical units, of characters in the font.
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
LogFont()
          Creates new set of the attributes of a font.
LogFont(LogFont that)
          Create new instance of the LogFont and initializes it by the specified one.
 
Method Summary
 java.lang.Object clone()
          Creates copy of this object.
 com.jniwrapper.UInt8 getLfCharSet()
          Returns the character set.
 com.jniwrapper.UInt8 getLfClipPrecision()
          Returns the clipping precision.
 com.jniwrapper.LongInt getLfEscapement()
          Returns value that specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.
 com.jniwrapper.Str getLfFaceName()
          Returns null-terminated string that specifies the typeface name of the font.
 com.jniwrapper.LongInt getLfHeight()
          Returns value that specifies the height, in logical units, of the font character cell or character.
 com.jniwrapper.UInt8 getLfItalic()
           
 com.jniwrapper.LongInt getLfOrientation()
          Returns value that specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
 com.jniwrapper.UInt8 getLfOutPrecision()
          Returns the output precision.
 com.jniwrapper.UInt8 getLfPitchAndFamily()
          Returns the pitch and family of the font.
 com.jniwrapper.UInt8 getLfQuality()
          Returns the output quality.
 com.jniwrapper.UInt8 getLfStrikeOut()
          Returns value that specifies a strikeout font if set to true.
 com.jniwrapper.UInt8 getLfUnderline()
          Returns value that specifies an underlined font if set to true.
 com.jniwrapper.LongInt getLfWeight()
          Returns value that specifies the weight of the font in the range 0 through 1000.
 com.jniwrapper.LongInt getLfWidth()
          Returns value that specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lfHeight

protected com.jniwrapper.LongInt lfHeight
Specifies the height, in logical units, of the font's character cell or character.


lfWidth

protected com.jniwrapper.LongInt lfWidth
Specifies the average width, in logical units, of characters in the font.


lfEscapement

protected com.jniwrapper.LongInt lfEscapement
Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.


lfOrientation

protected com.jniwrapper.LongInt lfOrientation
Specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.


lfWeight

protected com.jniwrapper.LongInt lfWeight
Specifies the weight of the font in the range 0 through 1000.


lfItalic

protected com.jniwrapper.UInt8 lfItalic
Specifies an italic font if set to true.


lfUnderline

protected com.jniwrapper.UInt8 lfUnderline
Specifies an underlined font if set to true.


lfStrikeOut

protected com.jniwrapper.UInt8 lfStrikeOut
Specifies a strikeout font if set to true.


lfCharSet

protected com.jniwrapper.UInt8 lfCharSet
Specifies the character set.


lfOutPrecision

protected com.jniwrapper.UInt8 lfOutPrecision
Specifies the output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, pitch, and font type.


lfClipPrecision

protected com.jniwrapper.UInt8 lfClipPrecision
Specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.


lfQuality

protected com.jniwrapper.UInt8 lfQuality
Specifies the output quality. The output quality defines how carefully the graphics device interface (GDI) must attempt to match the logical-font attributes to those of an actual physical font.


lfPitchAndFamily

protected com.jniwrapper.UInt8 lfPitchAndFamily
Specifies the pitch and family of the font.


lfFaceName

protected com.jniwrapper.Str lfFaceName
Specifies a null-terminated string that contains the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character.

Constructor Detail

LogFont

public LogFont()
Creates new set of the attributes of a font.


LogFont

public LogFont(LogFont that)
Create new instance of the LogFont and initializes it by the specified one.

Parameters:
that - Instance of the LogFont that will be used for initializing a new instance.
Method Detail

getLfHeight

public com.jniwrapper.LongInt getLfHeight()
Returns value that specifies the height, in logical units, of the font character cell or character.

Returns:
The height, in logical units, of the font character cell or character.

getLfWidth

public com.jniwrapper.LongInt getLfWidth()
Returns value that specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.

Returns:
The angle, in tenths of degrees, between the escapement vector and the x-axis of the device.

getLfEscapement

public com.jniwrapper.LongInt getLfEscapement()
Returns value that specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.

Returns:
The angle, in tenths of degrees, between the escapement vector and the x-axis of the device.

getLfOrientation

public com.jniwrapper.LongInt getLfOrientation()
Returns value that specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.

Returns:
The angle, in tenths of degrees, between each character's base line and the x-axis of the device.

getLfWeight

public com.jniwrapper.LongInt getLfWeight()
Returns value that specifies the weight of the font in the range 0 through 1000.

Returns:
The weight of the font in the range 0 through 1000.

getLfItalic

public com.jniwrapper.UInt8 getLfItalic()

getLfUnderline

public com.jniwrapper.UInt8 getLfUnderline()
Returns value that specifies an underlined font if set to true.

Returns:
Value that specifies an underlined font if set to true

getLfStrikeOut

public com.jniwrapper.UInt8 getLfStrikeOut()
Returns value that specifies a strikeout font if set to true.

Returns:
Value that specifies a strikeout font if set to true.

getLfCharSet

public com.jniwrapper.UInt8 getLfCharSet()
Returns the character set.

Returns:
The character set.

getLfOutPrecision

public com.jniwrapper.UInt8 getLfOutPrecision()
Returns the output precision.

Returns:
The output precision.

getLfClipPrecision

public com.jniwrapper.UInt8 getLfClipPrecision()
Returns the clipping precision.

Returns:
The clipping precision.

getLfQuality

public com.jniwrapper.UInt8 getLfQuality()
Returns the output quality.

Returns:
The output quality.

getLfPitchAndFamily

public com.jniwrapper.UInt8 getLfPitchAndFamily()
Returns the pitch and family of the font.

Returns:
The pitch and family of the font.

getLfFaceName

public com.jniwrapper.Str getLfFaceName()
Returns null-terminated string that specifies the typeface name of the font.

Returns:
null-terminated string that specifies the typeface name of the font.

clone

public java.lang.Object clone()
Creates copy of this object.

Returns:
Copy of this object.