gnu.x11
Class Fontable.FontReply

java.lang.Object
  extended by gnu.x11.Data
      extended by gnu.x11.Fontable.FontReply
Enclosing class:
Fontable

public static class Fontable.FontReply
extends Data

Reply of Fontable.info().


Nested Class Summary
 class Fontable.FontReply.CharInfo
          Encapsulates information about one character.
 class Fontable.FontReply.FontProperty
          Encapsulate an additional font property.
 
Field Summary
static int LEFT_TO_RIGHT
           
static int RIGHT_TO_LEFT
           
 
Fields inherited from class gnu.x11.Data
data, index, offset
 
Constructor Summary
Fontable.FontReply(Data data)
           
 
Method Summary
 boolean all_chars_exist()
           
 java.util.List char_infos()
          Returns the char infos of the response.
 int default_char()
           
 int direction()
           
 int font_ascent()
           
 int font_descent()
           
 Fontable.FontReply.CharInfo max_bounds()
          Reads the max-bounds field of the response.
 int max_byte1()
           
 int max_char_or_byte2()
           
 Fontable.FontReply.CharInfo min_bounds()
          Reads the min-bounds field of the response.
 int min_byte1()
           
 int min_char_or_byte2()
           
 int number_of_char_infos()
          Returns the number of char info fields that follow in the response.
 java.util.List properties()
          Returns additional font properties.
 int reply_length()
          Reads the reply-length field of the response.
 int sequence_number()
          Reads the sequence-number field of the response.
 
Methods inherited from class gnu.x11.Data
byte_to_string, len, len, n, np, p, pad, read_boolean, read_double, read_float, read_string, read1, read2, read4_boolean, read4, read8, to_string, toString, unit, unit, unit, write_string16, write_string16, write_unused, write1_unused, write1, write1, write1, write1, write1, write1, write1, write1, write1, write1, write1, write1, write1, write1, write2_unused, write2, write2, write2, write2, write2, write2, write2, write2, write2, write2, write2, write2, write2, write2, write3_unused, write4_unused, write4, write4, write4, write4, write4, write4, write4, write4, write4, write4, write4, write4, write4, write4, write4, write8, write8, write8, write8, write8, write8, write8, write8
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEFT_TO_RIGHT

public static final int LEFT_TO_RIGHT
See Also:
Constant Field Values

RIGHT_TO_LEFT

public static final int RIGHT_TO_LEFT
See Also:
Constant Field Values
Constructor Detail

Fontable.FontReply

public Fontable.FontReply(Data data)
Method Detail

sequence_number

public int sequence_number()
Reads the sequence-number field of the response.

Returns:
the sequence-number field of the response

reply_length

public int reply_length()
Reads the reply-length field of the response. This is made up of 7 bytes + 2*n bytes (FontProperty) + 3*m bytes(CharInfo).

Returns:
the reply-length field of the response

min_bounds

public Fontable.FontReply.CharInfo min_bounds()
Reads the min-bounds field of the response.

Returns:
the min-bounds field of the response

max_bounds

public Fontable.FontReply.CharInfo max_bounds()
Reads the max-bounds field of the response.

Returns:
the max-bounds field of the response

min_char_or_byte2

public int min_char_or_byte2()

max_char_or_byte2

public int max_char_or_byte2()

default_char

public int default_char()

direction

public int direction()

min_byte1

public int min_byte1()

max_byte1

public int max_byte1()

all_chars_exist

public boolean all_chars_exist()

font_ascent

public int font_ascent()

font_descent

public int font_descent()

number_of_char_infos

public int number_of_char_infos()
Returns the number of char info fields that follow in the response.

Returns:
the number of char info fields

properties

public java.util.List properties()
Returns additional font properties. The values in the enumeration will be of the type Fontable.FontReply.FontProperty.

Returns:
additional font properties

char_infos

public java.util.List char_infos()
Returns the char infos of the response. The items in the enumeration are of the type Fontable.FontReply.CharInfo.

Returns:
the char infos of the response