Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Package Attributes
rene.zirkel.graphics.FontStruct Class Reference
Collaboration diagram for rene.zirkel.graphics.FontStruct:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void storeFont (int size, boolean bold, Font f)
Font getFont (int size, boolean bold)

Static Public Member Functions

static void main (String[] args)

Package Attributes

final int max = 4
int Size [] = new int[max]
boolean Bold [] = new boolean[max]
Font F [] = new Font[4]
int Next = 0

Detailed Description

Author:
Rene An internal class to hold a font sructure (size, face and font object)

Definition at line 14 of file FontStruct.java.


Member Function Documentation

Font rene.zirkel.graphics.FontStruct.getFont ( int  size,
boolean  bold 
) [inline]

Definition at line 29 of file FontStruct.java.

       {      for (int i=0; i<max; i++)
              {      if (F[i]==null) break;
                     if (Size[i]==size && Bold[i]==bold)
                            return F[i];
              }
              return null;
       }

Here is the caller graph for this function:

static void rene.zirkel.graphics.FontStruct.main ( String[]  args) [inline, static]

Definition at line 38 of file FontStruct.java.

       {}
void rene.zirkel.graphics.FontStruct.storeFont ( int  size,
boolean  bold,
Font  f 
) [inline]

Definition at line 21 of file FontStruct.java.

       {      if (Next>=max) Next=0;
              Size[Next]=size;
              Bold[Next]=bold;
              F[Next]=f;
              Next++;
       }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 17 of file FontStruct.java.

Font rene.zirkel.graphics.FontStruct.F[] = new Font[4] [package]

Definition at line 18 of file FontStruct.java.

final int rene.zirkel.graphics.FontStruct.max = 4 [package]

Definition at line 15 of file FontStruct.java.

Definition at line 19 of file FontStruct.java.

int rene.zirkel.graphics.FontStruct.Size[] = new int[max] [package]

Definition at line 16 of file FontStruct.java.


The documentation for this class was generated from the following file: