Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hartmath
Class FormulaIcons.ExpressionIcon  view FormulaIcons.ExpressionIcon download FormulaIcons.ExpressionIcon.java

java.lang.Object
  extended byorg.hartmath.FormulaIcons.ExpressionIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
FormulaIcons

public class FormulaIcons.ExpressionIcon
extends java.lang.Object
implements javax.swing.Icon

Description of the Class


Field Summary
private  com.hartmath.prettyprint.PrettyPrintBox box
           
private  java.awt.Color color
           
private  com.hartmath.prettyprint.BoxMetrics size
           
 
Constructor Summary
FormulaIcons.ExpressionIcon(com.hartmath.prettyprint.PrettyPrintBox box, java.lang.String font, int fontSize, java.awt.Color color)
          Constructor for the ExpressionIcon object
 
Method Summary
 int getIconHeight()
          Gets the iconHeight attribute of the HartMathPrettyPrinter object
 int getIconWidth()
          Gets the iconWidth attribute of the HartMathPrettyPrinter object
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          paint the formula in pretty printer mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

private java.awt.Color color

box

private com.hartmath.prettyprint.PrettyPrintBox box

size

private com.hartmath.prettyprint.BoxMetrics size
Constructor Detail

FormulaIcons.ExpressionIcon

public FormulaIcons.ExpressionIcon(com.hartmath.prettyprint.PrettyPrintBox box,
                                   java.lang.String font,
                                   int fontSize,
                                   java.awt.Color color)
Constructor for the ExpressionIcon object

Method Detail

getIconWidth

public int getIconWidth()
Gets the iconWidth attribute of the HartMathPrettyPrinter object

Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Gets the iconHeight attribute of the HartMathPrettyPrinter object

Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
paint the formula in pretty printer mode

Specified by:
paintIcon in interface javax.swing.Icon