java.lang.Object
java.awt.FontMetrics
- All Implemented Interfaces:
- Serializable
- See Also:
- Top Examples, Source Code,
charsWidth(char[], int, int)
, charWidth(char)
, getMaxAdvance()
, getLeading()
, getAscent()
, Font
public int bytesWidth(byte[] data,
int off,
int len)
- See Also:
stringWidth(String)
, charsWidth(char[], int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int charsWidth(char[] data,
int off,
int len)
- See Also:
stringWidth(String)
, bytesWidth(byte[], int, int)
, charWidth(char)
, charWidth(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int charWidth(char ch)
- See Also:
stringWidth(String)
, charsWidth(char[], int, int)
, charWidth(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int charWidth(int codePoint)
- See Also:
stringWidth(String)
, charsWidth(char[], int, int)
, Character.isValidCodePoint
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Font font
- See Also:
getFont()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected FontMetrics(Font font)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getAscent()
- See Also:
getMaxAscent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getDescent()
- See Also:
getMaxDescent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font getFont()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getHeight()
- See Also:
getDescent()
, getAscent()
, getLeading()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getLeading()
- See Also:
getDescent()
, getAscent()
, getHeight()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(char[] chars,
int beginIndex,
int limit,
Graphics context)
- See Also:
Font.getLineMetrics(char[], int, int, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(String str,
int beginIndex,
int limit,
Graphics context)
- See Also:
Font.getLineMetrics(String, int, int, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(String str,
Graphics context)
- See Also:
Font.getLineMetrics(String, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(CharacterIterator ci,
int beginIndex,
int limit,
Graphics context)
- See Also:
Font.getLineMetrics(CharacterIterator, int, int, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getMaxAdvance()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getMaxAscent()
- See Also:
getAscent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getMaxCharBounds(Graphics context)
- See Also:
Font.getMaxCharBounds(FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
@Deprecated
public int getMaxDecent()
- See Also:
getMaxDescent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getMaxDescent()
- See Also:
getDescent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(char[] chars,
int beginIndex,
int limit,
Graphics context)
- See Also:
Font.getStringBounds(char[], int, int, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(String str,
int beginIndex,
int limit,
Graphics context)
- See Also:
Font.getStringBounds(String, int, int, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(String str,
Graphics context)
- See Also:
Font.getStringBounds(String, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(CharacterIterator ci,
int beginIndex,
int limit,
Graphics context)
- See Also:
Font.getStringBounds(CharacterIterator, int, int, FontRenderContext)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int[] getWidths()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean hasUniformLineMetrics()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int stringWidth(String str)
- See Also:
getStringBounds(String, Graphics)
, charsWidth(char[], int, int)
, bytesWidth(byte[], int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[843]String Width
By Anonymous on 2005/03/15 02:23:59 Rate
import java.awt.*;
import java.lang.*;
import java.applet.*;
class Str {
int StrLength ( )
{
String s = "Hello" ;
int i = stringWidth ( s ) ;
return i;
}
}
public class Str1 {
public static void main ( String args [ ] ) {
Str st = new Str ( ) ;
int j= st.StrLength ( ) ;
System.out.println ( "*******"+j ) ;
}
}
import java.awt.*;
import java.lang.*;
import java.applet.*;
class Str {
int StrLength ( )
{
String s = "Hello" ;
int i = stringWidth ( s ) ;
return i;
}
}
public class Str1 {
public static void main ( String args [ ] ) {
Str st = new Str ( ) ;
int j= st.StrLength ( ) ;
System.out.println ( "*******"+j ) ;
}
}
public String toString()
- See Also:
- Object
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples