net.avh4.framework.uilayer
Class Font

java.lang.Object
  extended by net.avh4.framework.uilayer.Font

public class Font
extends Object


Field Summary
static Font PFENNIG
           
static UILayerService service
          This should only be set directly for testing
 
Constructor Summary
Font(String fontResourceName)
           
Font(String resourceName, int fontSize)
           
 
Method Summary
 boolean equals(Object o)
           
 int getLineHeight()
           
 String getResourceName()
           
 int getSize()
           
 int hashCode()
           
 int measureText(String text)
           
 Font size(int fontSize)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

service

public static UILayerService service
This should only be set directly for testing


PFENNIG

public static final Font PFENNIG
Constructor Detail

Font

public Font(String fontResourceName)

Font

public Font(String resourceName,
            int fontSize)
Method Detail

measureText

public int measureText(String text)

getLineHeight

public int getLineHeight()

getResourceName

public String getResourceName()

size

public Font size(int fontSize)

getSize

public int getSize()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.