talx x1.0.5

wizx.desktop
Class FatCaret

java.lang.Object
  extended byjava.awt.geom.RectangularShape
      extended byjava.awt.geom.Rectangle2D
          extended byjava.awt.Rectangle
              extended byjavax.swing.text.DefaultCaret
                  extended bywizx.desktop.FatCaret
All Implemented Interfaces:
javax.swing.text.Caret, java.lang.Cloneable, java.util.EventListener, java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, SettingsConstants, java.awt.Shape

public class FatCaret
extends javax.swing.text.DefaultCaret
implements SettingsConstants

A Caret with a configurable appearance. This class does not override any logical behavior of DefaultCaret. It merely overrides the paint method to make the appearance configurable.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
 
Fields inherited from class javax.swing.text.DefaultCaret
changeEvent, listenerList
 
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
 
Fields inherited from interface wizx.util.SettingsConstants
BACK_TEXT, BACKGROUND, CARET_BLINK_RATE, CARET_WIDTH, FONT_ATTRIBUTES, FONT_FACE, FONT_SIZE, HEADING_FONT_COLOR, HOME_TEXT, LOGGER_CLASS, LOGGER_DIRECTORY, LOGGER_PARAM, NEXT_TEXT, NORMAL_FONT_COLOR, QUIT_TEXT, SCROLLBAR_WIDTH, TITLE, TOC_TEXT
 
Constructor Summary
FatCaret(Settings settings)
          Creates a new caret with the appearance found in settings.
 
Method Summary
protected  void damage(java.awt.Rectangle r)
           
 void paint(java.awt.Graphics g)
          Draws the cursor.
 
Methods inherited from class javax.swing.text.DefaultCaret
addChangeListener, adjustVisibility, deinstall, equals, fireStateChanged, focusGained, focusLost, getBlinkRate, getChangeListeners, getComponent, getDot, getListeners, getMagicCaretPosition, getMark, getSelectionPainter, install, isSelectionVisible, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, moveCaret, moveDot, positionCaret, removeChangeListener, repaint, setBlinkRate, setDot, setMagicCaretPosition, setSelectionVisible, setVisible, toString
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, 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
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

FatCaret

public FatCaret(Settings settings)
Creates a new caret with the appearance found in settings.

Method Detail

paint

public void paint(java.awt.Graphics g)
Draws the cursor.

Specified by:
paint in interface javax.swing.text.Caret

damage

protected void damage(java.awt.Rectangle r)

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.