org.jopendocument.util
Class DummyFontMetrics

java.lang.Object
  extended by java.awt.FontMetrics
      extended by org.jopendocument.util.DummyFontMetrics
All Implemented Interfaces:
Serializable

public class DummyFontMetrics
extends FontMetrics

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.FontMetrics
font
 
Constructor Summary
protected DummyFontMetrics(Font font)
           
 
Method Summary
 int bytesWidth(byte[] data, int off, int len)
           
 int charsWidth(char[] data, int off, int len)
           
 int charWidth(char ch)
           
 int charWidth(int codePoint)
           
 int getAscent()
           
 int getDescent()
           
 int getHeight()
           
 int getLeading()
           
 int getMaxAdvance()
           
 int getMaxAscent()
           
 int getMaxDescent()
           
 boolean hasUniformLineMetrics()
           
 
Methods inherited from class java.awt.FontMetrics
getFont, getFontRenderContext, getLineMetrics, getLineMetrics, getLineMetrics, getLineMetrics, getMaxCharBounds, getMaxDecent, getStringBounds, getStringBounds, getStringBounds, getStringBounds, getWidths, stringWidth, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyFontMetrics

protected DummyFontMetrics(Font font)
Method Detail

getLeading

public int getLeading()
Overrides:
getLeading in class FontMetrics

getAscent

public int getAscent()
Overrides:
getAscent in class FontMetrics

getDescent

public int getDescent()
Overrides:
getDescent in class FontMetrics

getHeight

public int getHeight()
Overrides:
getHeight in class FontMetrics

getMaxAscent

public int getMaxAscent()
Overrides:
getMaxAscent in class FontMetrics

getMaxDescent

public int getMaxDescent()
Overrides:
getMaxDescent in class FontMetrics

getMaxAdvance

public int getMaxAdvance()
Overrides:
getMaxAdvance in class FontMetrics

charWidth

public int charWidth(int codePoint)
Overrides:
charWidth in class FontMetrics

charWidth

public int charWidth(char ch)
Overrides:
charWidth in class FontMetrics

charsWidth

public int charsWidth(char[] data,
                      int off,
                      int len)
Overrides:
charsWidth in class FontMetrics

bytesWidth

public int bytesWidth(byte[] data,
                      int off,
                      int len)
Overrides:
bytesWidth in class FontMetrics

hasUniformLineMetrics

public boolean hasUniformLineMetrics()
Overrides:
hasUniformLineMetrics in class FontMetrics


Copyright © 2010 jOpenDocument All Rights Reserved.