|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Shape | |
java.awt | |
java.awt.geom |
Uses of Shape in java.awt |
Classes in java.awt that implement Shape | |
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 top-left point
(x, y)
in the coordinate space, its width, and its height. |
Methods in java.awt that return Shape | |
Shape |
BasicStroke.createStrokedShape(Shape s)
Returns a Shape whose interior defines the
stroked outline of a specified Shape . |
Shape |
BasicStroke.FillAdapter.getShape()
|
abstract Shape |
Graphics.getClip()
Gets the current clipping area. |
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. |
Methods in java.awt with parameters of type Shape | |
Shape |
BasicStroke.createStrokedShape(Shape s)
Returns a Shape whose interior defines the
stroked outline of a specified Shape . |
abstract void |
Graphics.setClip(Shape clip)
Sets the current clipping area to an arbitrary clip 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 |
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. |
Uses of Shape in java.awt.geom |
Classes in java.awt.geom that implement Shape | |
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |