pt.moredata.widgets
Class Caret

java.lang.Object
  extended byjava.awt.geom.RectangularShape
      extended byjava.awt.geom.Rectangle2D
          extended byjava.awt.Rectangle
              extended byjavax.swing.text.DefaultCaret
                  extended bypt.moredata.widgets.Caret
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, java.awt.Shape

public class Caret
extends javax.swing.text.DefaultCaret

Title: DataCaret

Description: Beans para criação de forms

Cursores diversos a volta do fregues Copyright:

     Copyright (C) 2002 Moredata This program is free
  software; you can redistribute it and/or modify it under the terms of the
  GNU General Public License as published by the Free Software Foundation;
  either version 2 of the License, or (at your option) any later version. This
  program is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  details. You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation, Inc,
  59 Temple Place-Suite 330, Boston, MA 02111-1307, USA. 

Company : Moredata

Version:
1.0
Author:
Sérgio Ferreira
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
static int THICK
          Description of the Field
static int THIN
          Description of the Field
 
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
 
Constructor Summary
Caret()
          Construtor do cursor
 
Method Summary
protected  void damage(java.awt.Rectangle r)
          Reescreve a area relativa ao sitio onde estava o cursor
 void paint(java.awt.Graphics g)
          Afecta a cor do cursor
 void paintThick(java.awt.Graphics g)
          Pinta um cursor em triangulo
 void setCaretType(int _caretType)
          Afecta tipo do cursor
 void setCaretWidth(int _caretWidth)
          Afecta a grossura do 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
 

Field Detail

THIN

public static final int THIN
Description of the Field

See Also:
Constant Field Values

THICK

public static final int THICK
Description of the Field

See Also:
Constant Field Values
Constructor Detail

Caret

public Caret()
Construtor do cursor

Method Detail

setCaretType

public void setCaretType(int _caretType)
Afecta tipo do cursor

Parameters:
_caretType - The new caretType value

setCaretWidth

public void setCaretWidth(int _caretWidth)
Afecta a grossura do cursor

Parameters:
_caretWidth - The new caretWidth value

paint

public void paint(java.awt.Graphics g)
Afecta a cor do cursor

Parameters:
g - Description of the Parameter

paintThick

public void paintThick(java.awt.Graphics g)
Pinta um cursor em triangulo

Parameters:
g - Description of the Parameter

damage

protected void damage(java.awt.Rectangle r)
Reescreve a area relativa ao sitio onde estava o cursor

Parameters:
r - Description of the Parameter