All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class grapher.TextLine

java.lang.Object
   |
   +----grapher.TextLine

public class TextLine
extends java.lang.Object
This class is designed to bundle together all the information required to draw short Strings


Variable Index

 o ascent
 o CENTER
Constants
 o color
 o descent
 o font
 o fontname
 o fontsize
 o fontstyle
 o justification
 o leading
 o LEFT
 o lg
 o list
 o MINIMUM_SIZE
 o parse
 o RIGHT
 o script_fraction
Protected Variables
 o sub_offset
 o sup_offset
 o text
 o width

Constructor Index

 o TextLine()
Constructors
 o TextLine(Font, Color, int)
 o TextLine(String)
 o TextLine(String, Color)
 o TextLine(String, Font)
 o TextLine(String, Font, Color, int)

Method Index

 o charWidth(Graphics, char)
 o copyState()
Public Methods
 o copyState(TextLine)
 o draw(Graphics, int, int)
 o draw(Graphics, int, int, int)
 o getAscent(Graphics)
 o getColor()
 o getDescent(Graphics)
 o getFM(Graphics)
 o getFont()
 o getFontName()
 o getFontSize()
 o getFontStyle()
 o getHeight(Graphics)
 o getJustification()
 o getLeading(Graphics)
 o getScriptFont(Font)
 o getText()
 o getWidth(Graphics)
 o isNull()
 o parseText(Graphics)
 o rebuildFont()
 o setColor(Color)
 o setFont(Font)
 o setFontName(String)
 o setFontSize(int)
 o setFontStyle(int)
 o setJustification(int)
 o setText(String)

Variables

 o CENTER
 static final int CENTER
Constants

 o LEFT
 static final int LEFT
 o RIGHT
 static final int RIGHT
 o MINIMUM_SIZE
 static final int MINIMUM_SIZE
 o script_fraction
 protected double script_fraction
Protected Variables

 o sup_offset
 protected double sup_offset
 o sub_offset
 protected double sub_offset
 o font
 protected java.awt.Font font
 o color
 protected java.awt.Color color
 o text
 protected java.lang.String text
 o fontname
 protected java.lang.String fontname
 o fontsize
 protected int fontsize
 o fontstyle
 protected int fontstyle
 o justification
 protected int justification
 o width
 protected int width
 o ascent
 protected int ascent
 o descent
 protected int descent
 o leading
 protected int leading
 o parse
 protected boolean parse
 o lg
 protected java.awt.Graphics lg
 o list
 java.util.Vector list

Constructors

 o TextLine
 public TextLine()
Constructors

 o TextLine
 public TextLine(java.lang.String s)
 o TextLine
 public TextLine(java.lang.String s,
                 java.awt.Font f)
 o TextLine
 public TextLine(java.lang.String s,
                 java.awt.Font f,
                 java.awt.Color c,
                 int j)
 o TextLine
 public TextLine(java.lang.String s,
                 java.awt.Color c)
 o TextLine
 public TextLine(java.awt.Font f,
                 java.awt.Color c,
                 int j)

Methods

 o copyState
 public grapher.TextLine copyState()
Public Methods

 o copyState
 public void copyState(grapher.TextLine t)
 o setFont
 public void setFont(java.awt.Font f)
 o setText
 public void setText(java.lang.String s)
 o setColor
 public void setColor(java.awt.Color c)
 o setJustification
 public void setJustification(int i)
 o getFont
 public java.awt.Font getFont()
 o getText
 public java.lang.String getText()
 o getColor
 public java.awt.Color getColor()
 o getJustification
 public int getJustification()
 o getFM
 public java.awt.FontMetrics getFM(java.awt.Graphics g)
 o charWidth
 public int charWidth(java.awt.Graphics g,
                      char ch)
 o getWidth
 public int getWidth(java.awt.Graphics g)
 o getHeight
 public int getHeight(java.awt.Graphics g)
 o getAscent
 public int getAscent(java.awt.Graphics g)
 o getDescent
 public int getDescent(java.awt.Graphics g)
 o getLeading
 public int getLeading(java.awt.Graphics g)
 o parseText
 public void parseText(java.awt.Graphics g)
 o isNull
 public boolean isNull()
 o draw
 public void draw(java.awt.Graphics g,
                  int x,
                  int y,
                  int j)
 o draw
 public void draw(java.awt.Graphics g,
                  int x,
                  int y)
 o getFontName
 public java.lang.String getFontName()
 o getFontStyle
 public int getFontStyle()
 o getFontSize
 public int getFontSize()
 o setFontName
 public void setFontName(java.lang.String s)
 o setFontStyle
 public void setFontStyle(int i)
 o setFontSize
 public void setFontSize(int i)
 o rebuildFont
 private void rebuildFont()
 o getScriptFont
 public java.awt.Font getScriptFont(java.awt.Font f)

All Packages  Class Hierarchy  This Package  Previous  Next  Index