-
Package |
Description |
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.geom |
Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry.
|
-
-
Modifier and Type |
Class and Description |
class |
Polygon
The Polygon class encapsulates a description of a
closed, two-dimensional region within a coordinate space.
|
class |
Rectangle
A Rectangle specifies an area in a coordinate space that is
enclosed by the Rectangle object's upper-left point
(x,y)
in the coordinate space, its width, and its height.
|
Modifier and Type |
Method and Description |
Shape |
Stroke.createStrokedShape(Shape p)
Returns an outline Shape which encloses the area that
should be painted when the Shape is stroked according
to the rules defined by the
object implementing the Stroke interface.
|
Shape |
BasicStroke.createStrokedShape(Shape s)
Returns a Shape whose interior defines the
stroked outline of a specified Shape .
|
abstract Shape |
Graphics.getClip()
Gets the current clipping area.
|
Shape |
Window.getShape()
Returns the shape of the window.
|
Modifier and Type |
Method and Description |
abstract void |
Graphics2D.clip(Shape s)
Intersects the current Clip with the interior of the
specified Shape and sets the Clip to the
resulting intersection.
|
Shape |
Stroke.createStrokedShape(Shape p)
Returns an outline Shape which encloses the area that
should be painted when the Shape is stroked according
to the rules defined by the
object implementing the Stroke interface.
|
Shape |
BasicStroke.createStrokedShape(Shape s)
Returns a Shape whose interior defines the
stroked outline of a specified Shape .
|
abstract void |
Graphics2D.draw(Shape s)
Strokes the outline of a Shape using the settings of the
current Graphics2D context.
|
abstract void |
Graphics2D.fill(Shape s)
Fills the interior of a Shape using the settings of the
Graphics2D context.
|
abstract boolean |
Graphics2D.hit(Rectangle rect,
Shape s,
boolean onStroke)
Checks whether or not the specified Shape intersects
the specified Rectangle , which is in device
space.
|
abstract void |
Graphics.setClip(Shape clip)
Sets the current clipping area to an arbitrary clip shape.
|
void |
Window.setShape(Shape shape)
Sets the shape of the window.
|
void |
Frame.setShape(Shape shape)
Sets the shape of the window.
|
void |
Dialog.setShape(Shape shape)
Sets the shape of the window.
|
-
Uses of in java.awt.geom
Modifier and Type |
Class and Description |
class |
java.awt.geom.Rectangle2D
The Rectangle2D class describes a rectangle
defined by a location (x,y) and dimension
(w x h) .
|
class |
java.awt.geom.RectangularShape
RectangularShape is the base class for a number of
Shape objects whose geometry is defined by a rectangular frame.
|
This document was created by
Dulcet from the OpenJDK sources.
Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.