Package com.ms.awt Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class CaretX

Constructors , Methods

public class CaretX 
{
	// Constructors
	public CaretX(Component c, int w, int h);

	// Methods
	public void finalize();
	public void show();
	public void hide();
	public void setPos(Point p);
	public void setPos(int px, int py);
}

This class creates a text caret (a flashing block) for the given component. The caret's width and height values can be set. Also, the caret can be displayed at a given point, and can temporarily be hidden or shown as needed.


Constructors


CaretX

public CaretX(Component c, int w, int h);

Creates a text caret for the given component.

ParameterDescription
c Component that the caret is being created for.
w Width of the caret.
h Height of the caret.


Methods


finalize

public void finalize();

Removes and deletes a caret.

Return Value:

No return value.


show

public void show();

Shows the caret.

Return Value:

No return value.


hide

public void hide();

Hides the caret.

Return Value:

No return value.


setPos

public void setPos(Point p);

Sets the caret position to the coordinates of the given point.

Return Value:

No return value.

ParameterDescription
p Point at which the caret will be set.


setPos

public void setPos(int px, int py);

Sets the caret position to the given coordinates.

Return Value:

No return value.

ParameterDescription
px X-coordinate.
py Y-coordinate.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.