Uses of Interface java.awt.Shape

Uses in package java.awt.geom

Classes implementing java.awt.Shape

class
This class represents all arcs (segments of an ellipse in 2-D space).
class
This class implements an arc in double precision.
class
This class implements an arc in float precision.
class
The Area class represents any area for the purpose of Constructive Area Geometry (CAG) manipulations.
class
A two-dimensional curve that is parameterized with a cubic function.
class
A two-dimensional curve that is parameterized with a cubic function and stores coordinate values in double-precision floating-point format.
class
A two-dimensional curve that is parameterized with a cubic function and stores coordinate values in single-precision floating-point format.
class
Ellipse2D is the shape of an ellipse.
class
An Ellipse2D that stores its coordinates using double primitives.
class
An Ellipse2D that stores its coordinates using float primitives.
class
A general geometric path, consisting of any number of subpaths constructed out of straight lines and cubic or quadratic Bezier curves.
class
Represents a directed line bewteen two points in (x,y) Cartesian space.
class
This class defines a point in double precision.
class
This class defines a point in float precision.
class
A two-dimensional curve that is parameterized with a quadratic function.
class
A two-dimensional curve that is parameterized with a quadratic function and stores coordinate values in double-precision floating-point format.
class
A two-dimensional curve that is parameterized with a quadratic function and stores coordinate values in single-precision floating-point format.
class
This class describes a rectangle by a point (x,y) and dimension (w x h).
class
This class defines a rectangle in double precision.
class
This class defines a rectangle in float precision.
class
This class provides a generic framework, and several helper methods, for subclasses which represent geometric objects inside a rectangular frame.
class
This class implements a rectangle with rounded corners.
class
A subclass of RoundRectangle which keeps its parameters as doubles.
class
A subclass of RoundRectangle which keeps its parameters as floats.

Constructors with parameter type java.awt.Shape

Constructs an Area from any given Shape.
Constructs a GeneralPath from an arbitrary shape object.

Methods with parameter type java.awt.Shape

void
GeneralPath.append(Shape s, boolean connect)
Appends the segments of a Shape to the path.
Shape
Return a new Shape, based on the given one, where the path of the shape has been transformed by this transform.

Methods with return type java.awt.Shape

Shape
Return a new Shape, based on the given one, where the path of the shape has been transformed by this transform.
Shape
Creates a transformed version of the path.

Uses in package gnu.awt.xlib

Methods with parameter type java.awt.Shape

void

Uses in package gnu.java.awt.font

Methods with return type java.awt.Shape

Shape
Shape
Determines the shape of the specified glyph.
Shape
GNUGlyphVector.getGlyphOutline(int glyphIndex, int type)
Shape
Shape
Returns the shape of this GlyphVector.
Shape
GNUGlyphVector.getOutline(float x, float y)
Returns the shape of this GlyphVector, translated to the specified position.
Shape
GNUGlyphVector.getOutline(float x, float y, int type)

Uses in package javax.swing.plaf.basic

Classes implementing java.awt.Shape

class
A DefaultCaret that implements UIResource.

Uses in package javax.swing.text

Classes implementing java.awt.Shape

class
The default implementation of the Caret interface.

Methods with parameter type java.awt.Shape

Shape
Vertically centers the single line of text within the bounds of the input shape.
View
ParagraphView.breakView(int axis, float len, Shape a)
void
This method is called when attributes were changed in the Document in a location that this view is responsible for.
void
Receice notification that some attributes changed in the region that this view is responsible for.
void
Receives notification that some text attributes have changed within the text fragment that this view is responsible for.
void
Receives notification when text attributes change in the chunk of text that this view is responsible for.
void
Receives notification when some attributes of the displayed element changes.
void
This method is called when attributes were changed in the Document in a location that this view is responsible for.
void
Receive notification about a change update to the text model.
void
Called when the portion of the Document that this View is responsible for changes.
void
PlainView.damageLineRange(int line0, int line1, Shape a, Component host)
Repaint the given line range.
void
Forwards the DocumentEvent to child views that need to get notified of the change to the model.
void
Forwards the DocumentEvent to child views that need to get notified of the change to the model.
void
Forwards the DocumentEvent to child views that need to get notified of the change to the model.
void
Forwards an update event to the given child view.
Shape
Returns the child allocation for the child view with the specified index.
Shape
Returns the current allocation for a child view.
Shape
Returns the child allocation for the child view with the specified index.
Shape
Returns the allocation for the specified child View.
Shape
View.getChildAllocation(int index, Shape a)
int
ParagraphView.getClosestPositionTo(int pos, Position.Bias bias, Shape a, int direction, Position.Bias[] biasRet, int rowIndex, int x)
Rectangle
Returns the allocation that is given to this CompositeView minus this CompositeView's insets.
int
Returns the next model location that is visible in east or west direction.
int
Returns the next model location that is visible in north or south direction.
int
CompositeView.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet)
Returns the next model location that is visible in eiter north / south direction or east / west direction.
int
GlyphView.getNextVisualPositionFrom(int pos, Position.Bias bias, Shape a, int direction, Position.Bias[] biasRet)
Returns the model location that should be used to place a caret when moving the caret through the document.
int
View.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet)
Returns the document position that is (visually) nearest to the given document position pos in the given direction d.
int
Returns the model location that should be used to place a caret when moving the caret through the document.
String
View.getToolTipText(float x, float y, Shape allocation)
int
View.getViewIndex(float x, float y, Shape allocation)
int
Returns the view index of the view that occupies the specified area, or -1 if there is no such child view.
void
This method is called when something is inserted into the Document that this View is displaying.
void
Receice notification that some content has been inserted in the region that this view is responsible for.
void
Receives notification that some text has been inserted within the text fragment that this view is responsible for.
void
This method is called when something is inserted into the Document that this View is displaying.
void
Receive notification about an insert update to the text model.
void
Called when something was inserted.
void
Receive notification about an insert update to the text model.
Rectangle
PlainView.lineToRect(Shape a, int line)
Shape
View.modelToView(int pos, Shape a)
Maps a position in the document into the coordinate space of the View.
Shape
Maps a model location to view coordinates.
Shape
BoxView.modelToView(int pos, Shape a, Position.Bias bias)
Maps the document model position pos to a Shape in the view coordinate space.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.
Shape
PlainView.modelToView(int position, Shape a, Position.Bias b)
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a region in the document into the coordinate space of the View.
Shape
View.modelToView(int p1, Position.Bias b1, int p2, Position.Bias b2, Shape a)
Maps a region in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
void
void
void
Paints the view.
void
Renders the Element that is associated with this View.
void
The real painting behavour is performed by normal component painting, triggered by the text component that hosts this view.
void
void
Renders the Element that is associated with this View.
void
Renders the Element that is associated with this View.
void
void
void
Renders the Element that is associated with this View.
void
GlyphView.GlyphPainter.paint(GlyphView view, Graphics g, Shape a, int p0, int p1)
Paints the glyphs.
Shape
Shape
LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
void
DefaultHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
void
LayeredHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
void
This method is called when something is removed from the Document that this View is displaying.
void
Receice notification that some content has been removed from the region that this view is responsible for.
void
Receives notification that some text has been removed within the text fragment that this view is responsible for.
void
This method is called when something is removed from the Document that this View is displaying.
void
Receive notification about a remove update to the text model.
void
Called when something is removed.
void
Receive notification about a remove update to the text model.
void
Sets the current allocation for this view.
void
Since insertUpdate and removeUpdate each deal with children Elements being both added and removed, they both have to perform the same checks.
void
Updates the layout for this view.
void
Updates the layout.
int
View.viewToModel(float x, float y, Shape a)
Maps coordinates from the View's space into a position in the document model.
int
AsyncBoxView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps view coordinates to a model location.
int
BoxView.viewToModel(float x, float y, Shape a, Position.Bias[] bias)
Maps coordinates from the View's space into a position in the document model.
int
ComponentView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
CompositeView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
FieldView.viewToModel(float fx, float fy, Shape a, Position.Bias[] bias)
Maps coordinates from the View's space into a position in the document model.
int
GlyphView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
IconView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
PasswordView.viewToModel(float fx, float fy, Shape a, Position.Bias[] bias)
Provides a mapping from the view coordinate space to the logical coordinate space of the model.
int
PlainView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
View.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
GlyphView.GlyphPainter.viewToModel(GlyphView v, float x, float y, Shape a, Position.Bias[] biasRet)
Maps a visual position into a document location.

Methods with return type java.awt.Shape

Shape
Vertically centers the single line of text within the bounds of the input shape.
Shape
Returns the current allocation of the child view with the specified index.
Shape
Returns the child allocation for the child view with the specified index.
Shape
Returns the current allocation for a child view.
Shape
Returns the child allocation for the child view with the specified index.
Shape
Returns the allocation for the specified child View.
Shape
View.getChildAllocation(int index, Shape a)
Shape
View.modelToView(int pos, Shape a)
Maps a position in the document into the coordinate space of the View.
Shape
Maps a model location to view coordinates.
Shape
BoxView.modelToView(int pos, Shape a, Position.Bias bias)
Maps the document model position pos to a Shape in the view coordinate space.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.
Shape
PlainView.modelToView(int position, Shape a, Position.Bias b)
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a region in the document into the coordinate space of the View.
Shape
View.modelToView(int p1, Position.Bias b1, int p2, Position.Bias b2, Shape a)
Maps a region in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Shape
LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)

Uses in package java.awt.font

Constructors with parameter type java.awt.Shape

ShapeGraphicAttribute.ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke)
Constructor.

Methods with return type java.awt.Shape

Shape
TextLayout.getBlackBoxBounds(int firstEndpoint, int secondEndpoint)
Shape
Shape
Shape[]
Shape[]
TextLayout.getCaretShapes(int offset, Rectangle2D bounds)
Shape[]
Shape
Shape
GlyphVector.getGlyphOutline(int glyphIndex)
Shape
GlyphVector.getGlyphOutline(int glyphIndex, float x, float y)
Shape
Shape
TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint)
Shape
TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds)
Shape
Shape
GlyphVector.getOutline(float x, float y)
Shape
Shape
Shape
TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)

Uses in package javax.swing

Methods with parameter type java.awt.Shape

void
Sets the current clipping region

Methods with return type java.awt.Shape

Shape
Returns the current clipping region.

Uses in package gnu.awt.j2d

Methods with parameter type java.awt.Shape

void
Sets the clip region to the intersection of the current clipping region and s.
void
void
Draws an outline around a shape using the current stroke and paint.
void
void
void
Fills the interior of the specified shape using the current paint.
void
boolean
AbstractGraphicsState.hit(Rectangle rect, Shape text, boolean onStroke)
boolean
Graphics2DImpl.hit(Rectangle rect, Shape text, boolean onStroke)
boolean
IntegerGraphicsState.hit(Rectangle rect, Shape text, boolean onStroke)
void
void
void
void

Methods with return type java.awt.Shape

Shape
Shape
Shape

Uses in package java.awt.image.renderable

Constructors with parameter type java.awt.Shape

Methods with parameter type java.awt.Shape

void

Methods with return type java.awt.Shape

Shape

Uses in package gnu.java.awt.print

Methods with parameter type java.awt.Shape

void

Methods with return type java.awt.Shape

Shape

Uses in package gnu.java.awt.peer.gtk

Methods with parameter type java.awt.Shape

void
void
Overloaded methods that do actual drawing need to enter the gdk threads and also do certain things before and after.
void
void
Overloaded methods that do actual drawing need to account for custom composites
void
Overloaded methods that do actual drawing need to enter the gdk threads and also do certain things before and after.
void
Overloaded methods that do actual drawing need to enter the gdk threads and also do certain things before and after.
void
void
void
void
Fills the interior of the specified shape using the current paint.
void
void
void
Rectangle
Utility method to find the bounds of a shape, including the stroke width.
boolean
CairoGraphics2D.hit(Rectangle rect, Shape s, boolean onStroke)
void

Methods with return type java.awt.Shape

Shape
Shape
Shape
Returns the outline of a single glyph.
Shape
Returns the visual bounds of a glyph May be off by a pixel or two due to hinting/rasterization.
Shape
Returns the outline of the entire GlyphVector.
Shape
FreetypeGlyphVector.getOutline(float x, float y)
Returns the outline of the entire vector, drawn at (x,y).

Uses in package java.awt

Classes implementing java.awt.Shape

class
This class represents a polygon, a closed, two-dimensional region in a coordinate space.
class
This class represents a rectangle and all the interesting things you might want to do with it.

Methods with parameter type java.awt.Shape

void
Sets the clip region to the intersection of the current clipping region and s.
Shape
Creates a shape representing the stroked outline of the given shape.
Shape
Returns a shape which outlines the boundary of the given shape, in effect converting the infinitely thin line into a new shape.
void
Draws an outline around a shape using the current stroke and paint.
void
Fills the interior of the specified shape using the current paint.
boolean
Graphics2D.hit(Rectangle rect, Shape text, boolean onStroke)
void
Sets the clipping region to the specified Shape.

Methods with return type java.awt.Shape

Shape
Creates a shape representing the stroked outline of the given shape.
Shape
Returns a shape which outlines the boundary of the given shape, in effect converting the infinitely thin line into a new shape.
Shape
Returns the current clipping region as a Shape object.

Uses in package gnu.java.awt.peer.x

Methods with parameter type java.awt.Shape

void
XGraphics2D.fillShape(Shape s, boolean isFont)
void

Uses in package gnu.java.awt.peer.qt

Constructors with parameter type java.awt.Shape

Fields of type java.awt.Shape

Shape
Shape

Methods with parameter type java.awt.Shape

void
Intersects the current clip with the shape
void
Draws an outline around a shape using the current stroke and paint.
void
void
Fills the interior of the specified shape using the current paint.
void
boolean
QtGraphics.hit(Rectangle rect, Shape s, boolean onStroke)
void
Sets the clip

Methods with return type java.awt.Shape

Shape

Uses in package javax.swing.text.html

Methods with parameter type java.awt.Shape

void
Gives notification from the document that attributes were changed in a location that this view is responsible for.
void
Receives notification that attributes have changed in the document in a location that this view is responsible for.
String
ImageView.getToolTipText(float x, float y, Shape shape)
Get the tool tip text.
void
Receives notification that something was inserted into the document in a location that this view is responsible for.
Shape
ImageView.modelToView(int pos, Shape area, Position.Bias bias)
This is currently implemented always to return the area of the image view, as the image is not divideable by character positions.
void
Paints using the given graphics configuration and shape.
void
Paints the image or one of the two image state icons.
void
ListView.paint(Graphics g, Shape allocation)
Paints the ListView.
void
Paints this view.
void
Receives notification that something was removed from the document in a location that this view is responsible for.
int
ImageView.viewToModel(float x, float y, Shape shape, Position.Bias[] bias)
Maps the picture co-ordinates into the image position in the model.

Methods with return type java.awt.Shape

Shape
ImageView.modelToView(int pos, Shape area, Position.Bias bias)
This is currently implemented always to return the area of the image view, as the image is not divideable by character positions.

Uses in package gnu.java.awt.java2d

Classes implementing java.awt.Shape

class
Protects any other shape from beeing modified by wrapping it.

Constructors with parameter type java.awt.Shape

Creates a new ShapeWrapper.

Methods with parameter type java.awt.Shape

void
Intersects the clip of this graphics object with the specified clip.
void
Draws the specified shape.
void
Fills the specified shape with the current foreground.
void
AbstractGraphics2D.fillShape(Shape s, boolean isFont)
Fills the specified shape.
boolean
AbstractGraphics2D.hit(Rectangle rect, Shape text, boolean onStroke)
void
ScanlineConverter.renderShape(Pixelizer p, Shape shape, Shape clip, AffineTransform trans, int res, int yRes, RenderingHints hints)
Renders the specified shape using the specified clip and transform.
void
Sets the current clipping area to clip.

Methods with return type java.awt.Shape

Shape
Returns the current clip.