Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv static final int | |
| pack-priv Composite | |
| pack-priv Font | |
| pack-priv int | |
| pack-priv Image | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Canvas | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| private void | |
| public Rectangle | Returns: the receiver's bounding rectangleReturns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null). |
| pack-priv Rectangle | |
| public Font | Returns: the receiver's fontReturns the font that the receiver will use to paint textual information. |
| public Image | Returns: the receiver's imageReturns the image that the receiver will use to paint the caret. |
| public Point | Returns: the receiver's locationReturns a point describing the receiver's location relative to its parent (or its display if its parent is null). |
| pack-priv Point | |
| public Canvas | |
| public Point | |
| pack-priv Point | |
| public boolean | Returns: the receiver's visibility stateReturns |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | Returns: the receiver's visibility stateReturns |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setBounds(int
the new x coordinate for the receiver x, int the new y coordinate for the receiver y, int the new width for the receiver width, int the new height for the receiver height)Sets the receiver's size and location to the rectangular area specified by the arguments. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | setLocation(int
the new x coordinate for the receiver x, int the new y coordinate for the receiver y)Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null). |
| public void | setLocation(Point
the new location for the receiver location)Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null). |
| pack-priv void | |
| pack-priv void | |
| public void | setSize(int
the new width for the receiver width, int the new height for the receiver height)Sets the receiver's size to the point specified by the arguments. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | setVisible(boolean
the new visibility state visible)Marks the receiver as visible if the argument is |
| pack-priv boolean |
| blinkRate | back to summary |
|---|---|
| pack-priv int blinkRate | |
| DEFAULT_WIDTH | back to summary |
|---|---|
| pack-priv static final int DEFAULT_WIDTH | |
| embeddedInto | back to summary |
|---|---|
| pack-priv Composite embeddedInto | |
| font | back to summary |
|---|---|
| pack-priv Font font | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| image | back to summary |
|---|---|
| pack-priv Image image | |
| isShowing | back to summary |
|---|---|
| pack-priv boolean isShowing | |
| isVisible | back to summary |
|---|---|
| pack-priv boolean isVisible | |
| parent | back to summary |
|---|---|
| pack-priv Canvas parent | |
| width | back to summary |
|---|---|
| pack-priv int width | |
| x | back to summary |
|---|---|
| pack-priv int x | |
| y | back to summary |
|---|---|
| pack-priv int y | |
| Caret | back to summary |
|---|---|
| public Caret(Canvas parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| blinkCaret | back to summary |
|---|---|
| pack-priv boolean blinkCaret() | |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| drawCaret | back to summary |
|---|---|
| pack-priv boolean drawCaret() | |
| drawInCellEditor | back to summary |
|---|---|
| private void drawInCellEditor(long window) | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).
| |
| getBoundsInPixels | back to summary |
|---|---|
| pack-priv Rectangle getBoundsInPixels() | |
| getFont | back to summary |
|---|---|
| public Font getFont() Returns the font that the receiver will use to paint textual information.
| |
| getImage | back to summary |
|---|---|
| public Image getImage() Returns the image that the receiver will use to paint the caret.
| |
| getLocation | back to summary |
|---|---|
| public Point getLocation() Returns a point describing the receiver's location relative to its parent (or its display if its parent is null).
| |
| getLocationInPixels | back to summary |
|---|---|
| pack-priv Point getLocationInPixels() | |
| getParent | back to summary |
|---|---|
| public Canvas getParent() Returns the receiver's parent, which must be a
| |
| getSize | back to summary |
|---|---|
| public Point getSize() Returns a point describing the receiver's size.
| |
| getSizeInPixels | back to summary |
|---|---|
| pack-priv Point getSizeInPixels() | |
| getVisible | back to summary |
|---|---|
| public boolean getVisible() Returns If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.
| |
| hideCaret | back to summary |
|---|---|
| pack-priv boolean hideCaret() | |
| isFocusCaret | back to summary |
|---|---|
| pack-priv boolean isFocusCaret() | |
| isVisible | back to summary |
|---|---|
| public boolean isVisible() Returns
| |
| killFocus | back to summary |
|---|---|
| pack-priv void killFocus() | |
| releaseParent | back to summary |
|---|---|
| pack-priv void releaseParent() Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| setBounds | back to summary |
|---|---|
| public void setBounds(int x, int y, int width, int height) Sets the receiver's size and location to the rectangular
area specified by the arguments. The
| |
| setBounds | back to summary |
|---|---|
| public void setBounds(Rectangle rect) Sets the receiver's size and location to the rectangular
area specified by the argument. The
| |
| setBoundsInPixels | back to summary |
|---|---|
| pack-priv void setBoundsInPixels(int x, int y, int width, int height) | |
| setBoundsInPixels | back to summary |
|---|---|
| pack-priv void setBoundsInPixels(Rectangle rect) | |
| setFocus | back to summary |
|---|---|
| pack-priv void setFocus() | |
| setFont | back to summary |
|---|---|
| public void setFont(Font font) Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null.
| |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Sets the image that the receiver will use to paint the caret to the image specified by the argument, or to the default which is a filled rectangle if the argument is null
| |
| setLocation | back to summary |
|---|---|
| public void setLocation(int x, int y) Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null).
| |
| setLocation | back to summary |
|---|---|
| public void setLocation(Point location) Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null).
| |
| setLocationInPixels | back to summary |
|---|---|
| pack-priv void setLocationInPixels(int x, int y) | |
| setLocationInPixels | back to summary |
|---|---|
| pack-priv void setLocationInPixels(Point location) | |
| setSize | back to summary |
|---|---|
| public void setSize(int width, int height) Sets the receiver's size to the point specified by the arguments.
| |
| setSize | back to summary |
|---|---|
| public void setSize(Point size) Sets the receiver's size to the point specified by the argument.
| |
| setSizeInPixels | back to summary |
|---|---|
| pack-priv void setSizeInPixels(int width, int height) | |
| setSizeInPixels | back to summary |
|---|---|
| pack-priv void setSizeInPixels(Point size) | |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean visible) Marks the receiver as visible if the argument is If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.
| |
| showCaret | back to summary |
|---|---|
| pack-priv boolean showCaret() | |