com.datamessenger.awt.graphics
Class TextSelectorPane


java.lang.Object

  |

  +--java.awt.geom.RectangularShape

        |

        +--java.awt.geom.Rectangle2D

              |

              +--java.awt.Rectangle

                    |

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

                          |

                          +--com.datamessenger.awt.graphics.TextSelectorPane

Direct Known Subclasses:
CaretPane

public class TextSelectorPane
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[] cwid
           
protected  int endPos
           
protected  int startPos
           
protected  TextPane text
           
 
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
TextSelectorPane()
           
 
Method Summary
 int getIndexAt(int pixel)
          Note: pixel must be relative to the TextPane
 int getSelectionEnd()
           
 int getSelectionStart()
           
 void layout()
           
 void paint(java.awt.Graphics g)
           
 void select(int strPos, int endPos)
           
 void setContainerContext(ContainerContext context)
          Set automatically when the component is added to a ContainerPane.
 
Methods inherited from class com.datamessenger.awt.graphics.GraphicsPane
add, getBorder, getColors, getColorScheme, getComponent, getContainerContext, getFont, getLayout, getLayoutBounds, getTree, invalidate, layoutGraphics, pack, paintGraphics, remove, repaint, revalidate, setBorder, setColorScheme, 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 TextPane text

startPos


protected int startPos

endPos


protected int endPos

cwid


protected int[] cwid
Constructor Detail

TextSelectorPane


public TextSelectorPane()
Method Detail

setContainerContext


public void setContainerContext(ContainerContext context)
Description copied from class: GraphicsPane
Set automatically when the component is added to a ContainerPane.
Overrides:
setContainerContext in class GraphicsPane

select


public void select(int strPos,

                   int endPos)

getSelectionStart


public int getSelectionStart()

getSelectionEnd


public int getSelectionEnd()

getIndexAt


public int getIndexAt(int pixel)
Note: pixel must be relative to the TextPane

layout


public void layout()
Overrides:
layout in class GraphicsPane

paint


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


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.