pt.despodata.java.ddata
Class DDataCaret

java.lang.Object
  extended byjava.awt.geom.RectangularShape
      extended byjava.awt.geom.Rectangle2D
          extended byjava.awt.Rectangle
              extended byjavax.swing.text.DefaultCaret
                  extended bypt.despodata.java.ddata.DDataCaret
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 DDataCaret
extends javax.swing.text.DefaultCaret

Title: DData

Description: Beans para criação de forms

Cursores diversos a vonta do fregues Copyright:

     Copyright (C) 2000  Despodata

     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 : Despodata

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
           
static int THIN
           
 
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
DDataCaret()
          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
See Also:
Constant Field Values

THICK

public static final int THICK
See Also:
Constant Field Values
Constructor Detail

DDataCaret

public DDataCaret()
Construtor do cursor

Method Detail

setCaretType

public void setCaretType(int _caretType)
Afecta tipo do cursor


setCaretWidth

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


paint

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


paintThick

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


damage

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