com.datamessenger.awt.graphics
Class TextPane


java.lang.Object

  |

  +--java.awt.geom.RectangularShape

        |

        +--java.awt.geom.Rectangle2D

              |

              +--java.awt.Rectangle

                    |

                    +--com.datamessenger.awt.graphics.GraphicsPane

                          |

                          +--com.datamessenger.awt.graphics.TextPane


public class TextPane
extends GraphicsPane

See Also:
Serialized Form

Inner classes inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
protected  int caretPadding
           
static java.awt.Font defaultFont
           
protected  java.lang.String text
           
 boolean truncate
           
 
Fields inherited from class com.datamessenger.awt.graphics.GraphicsPane
colors, colorState, isTransparent, paneList, silentValidate
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
TextPane(java.lang.String text)
           
 
Method Summary
 java.awt.Font getFont()
           
 java.awt.FontMetrics getFontMetrics(java.awt.Graphics g)
           
 java.awt.Rectangle getStringMetrics(java.lang.String str, java.awt.Graphics g)
           
 java.lang.String getText()
           
 int[] getWidths(java.lang.String str, java.awt.Graphics g)
           
 void pack()
           
 void paint(java.awt.Graphics g)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class com.datamessenger.awt.graphics.GraphicsPane
add, getBorder, getColors, getColorScheme, getComponent, getContainerContext, getLayout, getLayoutBounds, getTree, invalidate, layout, layoutGraphics, paintGraphics, remove, repaint, revalidate, setBorder, setColorScheme, setContainerContext, setFont, setLayout, translate, translate
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

text


protected java.lang.String text

truncate


public boolean truncate

caretPadding


protected int caretPadding

defaultFont


public static java.awt.Font defaultFont
Constructor Detail

TextPane


public TextPane(java.lang.String text)
Method Detail

getText


public java.lang.String getText()

setText


public void setText(java.lang.String text)

pack


public void pack()
Overrides:
pack in class GraphicsPane

getFont


public java.awt.Font getFont()
Overrides:
getFont in class GraphicsPane

paint


public void paint(java.awt.Graphics g)
Overrides:
paint in class GraphicsPane

getStringMetrics


public java.awt.Rectangle getStringMetrics(java.lang.String str,

                                           java.awt.Graphics g)

getWidths


public int[] getWidths(java.lang.String str,

                       java.awt.Graphics g)

getFontMetrics


public java.awt.FontMetrics getFontMetrics(java.awt.Graphics g)


Comments, suggestions, and bug reports are welcomed and encouraged.
Please refer them to our support page. Thank you.

Copyright © 1999-2001 Produx House, Corp. All rights reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.