Uses of Interface
java.awt.Shape
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes and interface relating to fonts.
Provides the Java 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides classes and interfaces for producing rendering-independent images.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.-
Uses of Shape in java.awt
Modifier and TypeClassDescriptionclass
ThePolygon
class encapsulates a description of a closed, two-dimensional region within a coordinate space.class
ARectangle
specifies an area in a coordinate space that is enclosed by theRectangle
object's upper-left point(x,y)
in the coordinate space, its width, and its height.Modifier and TypeMethodDescriptionBasicStroke.createStrokedShape
(Shape s) Returns aShape
whose interior defines the stroked outline of a specifiedShape
.Stroke.createStrokedShape
(Shape p) Returns an outlineShape
which encloses the area that should be painted when theShape
is stroked according to the rules defined by the object implementing theStroke
interface.abstract Shape
Graphics.getClip()
Gets the current clipping area.Window.getShape()
Returns the shape of the window.Modifier and TypeMethodDescriptionabstract void
Intersects the currentClip
with the interior of the specifiedShape
and sets theClip
to the resulting intersection.BasicStroke.createStrokedShape
(Shape s) Returns aShape
whose interior defines the stroked outline of a specifiedShape
.Stroke.createStrokedShape
(Shape p) Returns an outlineShape
which encloses the area that should be painted when theShape
is stroked according to the rules defined by the object implementing theStroke
interface.abstract void
Strokes the outline of aShape
using the settings of the currentGraphics2D
context.abstract void
Fills the interior of aShape
using the settings of theGraphics2D
context.abstract boolean
Checks whether or not the specifiedShape
intersects the specifiedRectangle
, which is in device space.abstract void
Sets the current clipping area to an arbitrary clip shape.void
Component.setMixingCutoutShape
(Shape shape) Sets a 'mixing-cutout' shape for this lightweight component.void
Sets the shape of the window. -
Uses of Shape in java.awt.font
Modifier and TypeMethodDescriptionTextLayout.getBlackBoxBounds
(int firstEndpoint, int secondEndpoint) Returns the black box bounds of the characters in the specified range.TextLayout.getCaretShape
(TextHitInfo hit) Returns aShape
representing the caret at the specified hit inside the natural bounds of thisTextLayout
.TextLayout.getCaretShape
(TextHitInfo hit, Rectangle2D bounds) Returns aShape
representing the caret at the specified hit inside the specified bounds.Shape[]
TextLayout.getCaretShapes
(int offset) Returns two paths corresponding to the strong and weak caret.Shape[]
TextLayout.getCaretShapes
(int offset, Rectangle2D bounds) Returns two paths corresponding to the strong and weak caret.Shape[]
TextLayout.getCaretShapes
(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy) Returns two paths corresponding to the strong and weak caret.abstract Shape
GlyphVector.getGlyphLogicalBounds
(int glyphIndex) Returns the logical bounds of the specified glyph within thisGlyphVector
.abstract Shape
GlyphVector.getGlyphOutline
(int glyphIndex) Returns aShape
whose interior corresponds to the visual representation of the specified glyph within thisGlyphVector
.GlyphVector.getGlyphOutline
(int glyphIndex, float x, float y) Returns aShape
whose interior corresponds to the visual representation of the specified glyph within thisGlyphVector
, offset to x, y.abstract Shape
GlyphVector.getGlyphVisualBounds
(int glyphIndex) Returns the visual bounds of the specified glyph within theGlyphVector
.TextLayout.getLogicalHighlightShape
(int firstEndpoint, int secondEndpoint) Returns aShape
enclosing the logical selection in the specified range, extended to the natural bounds of thisTextLayout
.TextLayout.getLogicalHighlightShape
(int firstEndpoint, int secondEndpoint, Rectangle2D bounds) Returns aShape
enclosing the logical selection in the specified range, extended to the specifiedbounds
.abstract Shape
GlyphVector.getOutline()
Returns aShape
whose interior corresponds to the visual representation of thisGlyphVector
.abstract Shape
GlyphVector.getOutline
(float x, float y) Returns aShape
whose interior corresponds to the visual representation of thisGlyphVector
when rendered at x, y.GraphicAttribute.getOutline
(AffineTransform tx) Return aShape
that represents the region that thisGraphicAttribute
renders.ShapeGraphicAttribute.getOutline
(AffineTransform tx) Return aShape
that represents the region that thisShapeGraphicAttribute
renders.TextLayout.getOutline
(AffineTransform tx) Returns aShape
representing the outline of thisTextLayout
.TextLayout.getVisualHighlightShape
(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) Returns aShape
enclosing the visual selection in the specified range, extended to the bounds.TextLayout.getVisualHighlightShape
(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds) Returns a path enclosing the visual selection in the specified range, extended tobounds
.ModifierConstructorDescriptionShapeGraphicAttribute
(Shape shape, int alignment, boolean stroke) Constructs aShapeGraphicAttribute
for the specifiedShape
. -
Uses of Shape in java.awt.geom
Modifier and TypeClassDescriptionclass
Arc2D
is the abstract superclass for all objects that store a 2D arc defined by a framing rectangle, start angle, angular extent (length of the arc), and a closure type (OPEN
,CHORD
, orPIE
).static class
This class defines an arc specified indouble
precision.static class
This class defines an arc specified infloat
precision.class
AnArea
object stores and manipulates a resolution-independent description of an enclosed area of 2-dimensional space.class
TheCubicCurve2D
class defines a cubic parametric curve segment in(x,y)
coordinate space.static class
A cubic parametric curve segment specified withdouble
coordinates.static class
A cubic parametric curve segment specified withfloat
coordinates.class
TheEllipse2D
class describes an ellipse that is defined by a framing rectangle.static class
TheDouble
class defines an ellipse specified indouble
precision.static class
TheFloat
class defines an ellipse specified infloat
precision.final class
TheGeneralPath
class represents a geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves.class
ThisLine2D
represents a line segment in(x,y)
coordinate space.static class
A line segment specified with double coordinates.static class
A line segment specified with float coordinates.class
ThePath2D
class provides a simple, yet flexible shape which represents an arbitrary geometric path.static class
TheDouble
class defines a geometric path with coordinates stored in double precision floating point.static class
TheFloat
class defines a geometric path with coordinates stored in single precision floating point.class
TheQuadCurve2D
class defines a quadratic parametric curve segment in(x,y)
coordinate space.static class
A quadratic parametric curve segment specified withdouble
coordinates.static class
A quadratic parametric curve segment specified withfloat
coordinates.class
TheRectangle2D
class describes a rectangle defined by a location(x,y)
and dimension(w x h)
.static class
TheDouble
class defines a rectangle specified in double coordinates.static class
TheFloat
class defines a rectangle specified in float coordinates.class
RectangularShape
is the base class for a number ofShape
objects whose geometry is defined by a rectangular frame.class
TheRoundRectangle2D
class defines a rectangle with rounded corners defined by a location(x,y)
, a dimension(w x h)
, and the width and height of an arc with which to round the corners.static class
TheDouble
class defines a rectangle with rounded corners all specified indouble
coordinates.static class
TheFloat
class defines a rectangle with rounded corners all specified infloat
coordinates.Modifier and TypeMethodDescriptionAffineTransform.createTransformedShape
(Shape pSrc) Returns a newShape
object defined by the geometry of the specifiedShape
after it has been transformed by this transform.final Shape
Path2D.createTransformedShape
(AffineTransform at) Returns a newShape
representing a transformed version of thisPath2D
.Modifier and TypeMethodDescriptionfinal void
Appends the geometry of the specifiedShape
object to the path, possibly connecting the new geometry to the existing path segments with a line segment.AffineTransform.createTransformedShape
(Shape pSrc) Returns a newShape
object defined by the geometry of the specifiedShape
after it has been transformed by this transform.ModifierConstructorDescriptionTheArea
class creates an area geometry from the specifiedShape
object.Constructs a new double precisionPath2D
object from an arbitraryShape
object.Double
(Shape s, AffineTransform at) Constructs a new double precisionPath2D
object from an arbitraryShape
object, transformed by anAffineTransform
object.Constructs a new single precisionPath2D
object from an arbitraryShape
object.Float
(Shape s, AffineTransform at) Constructs a new single precisionPath2D
object from an arbitraryShape
object, transformed by anAffineTransform
object.GeneralPath
(Shape s) Constructs a newGeneralPath
object from an arbitraryShape
object. -
Uses of Shape in java.awt.image.renderable
Modifier and TypeMethodDescriptionRenderContext.getAreaOfInterest()
Gets the ares of interest currently contained in the RenderContext.Modifier and TypeMethodDescriptionvoid
RenderContext.setAreaOfInterest
(Shape newAoi) Sets the current area of interest.ModifierConstructorDescriptionRenderContext
(AffineTransform usr2dev, Shape aoi) Constructs a RenderContext with a given transform and area of interest.RenderContext
(AffineTransform usr2dev, Shape aoi, RenderingHints hints) Constructs a RenderContext with a given transform. -
Uses of Shape in javax.swing
-
Uses of Shape in javax.swing.plaf.basic
Modifier and TypeClassDescriptionstatic class
Default implementation of the interfaceCaret
. -
Uses of Shape in javax.swing.text
Modifier and TypeMethodDescriptionprotected Shape
FieldView.adjustAllocation
(Shape a) Adjusts the allocation given to the view to be a suitable allocation for a text field.protected Shape
AsyncBoxView.ChildLocator.getChildAllocation
(int index) Fetch the allocation to use for a child view.AsyncBoxView.ChildLocator.getChildAllocation
(int index, Shape a) Fetch the allocation to use for a child view.AsyncBoxView.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view.BoxView.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view.CompositeView.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view to render into.View.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view.AsyncBoxView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.BoxView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.ComponentView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the coordinate space of the model to that of the view.CompositeView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.CompositeView.modelToView
(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.FieldView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.abstract Shape
GlyphView.GlyphPainter.modelToView
(GlyphView v, int pos, Position.Bias bias, Shape a) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.GlyphView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.IconView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.PasswordView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.PlainView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.View.modelToView
(int pos, Shape a) Deprecated.abstract Shape
View.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping, for a given character, from the document model coordinate space to the view coordinate space.View.modelToView
(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) Provides a mapping, for a given region, from the document model coordinate space to the view coordinate space.DefaultHighlighter.DefaultHighlightPainter.paintLayer
(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) Paints a portion of a highlight.abstract Shape
LayeredHighlighter.LayerPainter.paintLayer
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) Paints a portion of a highlight.Modifier and TypeMethodDescriptionprotected Shape
FieldView.adjustAllocation
(Shape a) Adjusts the allocation given to the view to be a suitable allocation for a text field.Breaks this view on the given axis at the given length.void
FlowView.changedUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.void
GlyphView.changedUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.void
LabelView.changedUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.void
ParagraphView.changedUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.void
PlainView.changedUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.void
View.changedUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.void
WrappedPlainView.changedUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.protected void
PlainView.damageLineRange
(int line0, int line1, Shape a, Component host) Repaint the given line range.protected void
BoxView.forwardUpdate
(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f) Forwards the givenDocumentEvent
to the child views that need to be notified of the change to the model.protected void
View.forwardUpdate
(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f) Forwards the givenDocumentEvent
to the child views that need to be notified of the change to the model.protected void
View.forwardUpdateToView
(View v, DocumentEvent e, Shape a, ViewFactory f) Forwards theDocumentEvent
to the give child view.AsyncBoxView.ChildLocator.getChildAllocation
(int index, Shape a) Fetch the allocation to use for a child view.AsyncBoxView.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view.BoxView.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view.CompositeView.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view to render into.View.getChildAllocation
(int index, Shape a) Fetches the allocation for the given child view.protected int
ParagraphView.getClosestPositionTo
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet, int rowIndex, int x) Returns the closest model position tox
.protected Rectangle
CompositeView.getInsideAllocation
(Shape a) Translates the immutable allocation given to the view to a mutable allocation that represents the interior allocation (i.e. the bounds of the given allocation with the top, left, bottom, and right insets removed.protected int
CompositeView.getNextEastWestVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Returns the next visual position for the cursor, in either the east or west direction.protected int
CompositeView.getNextNorthSouthVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Returns the next visual position for the cursor, in either the north or south direction.protected int
ParagraphView.getNextNorthSouthVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Returns the next visual position for the cursor, in either the east or west direction.int
AsyncBoxView.getNextVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Provides a way to determine the next visually represented model location that one might place a caret.int
CompositeView.getNextVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Provides a way to determine the next visually represented model location that one might place a caret.int
GlyphView.getNextVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Provides a way to determine the next visually represented model location that one might place a caret.int
GlyphView.GlyphPainter.getNextVisualPositionFrom
(GlyphView v, int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Provides a way to determine the next visually represented model location that one might place a caret.int
View.getNextVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) Provides a way to determine the next visually represented model location at which one might place a caret.View.getToolTipText
(float x, float y, Shape allocation) Returns the tooltip text at the specified location.int
View.getViewIndex
(float x, float y, Shape allocation) Returns the child view index representing the given position in the view.int
AsyncBoxView.ChildLocator.getViewIndexAtPoint
(float x, float y, Shape a) Fetches the child view index at the given point.void
FieldView.insertUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.void
FlowView.insertUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.void
GlyphView.insertUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.void
PlainView.insertUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.void
View.insertUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.void
WrappedPlainView.insertUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.void
ZoneView.insertUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.protected Rectangle
PlainView.lineToRect
(Shape a, int line) Determine the rectangle that represents the given line.AsyncBoxView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.BoxView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.ComponentView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the coordinate space of the model to that of the view.CompositeView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.CompositeView.modelToView
(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.FieldView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.abstract Shape
GlyphView.GlyphPainter.modelToView
(GlyphView v, int pos, Position.Bias bias, Shape a) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.GlyphView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.IconView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.PasswordView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.PlainView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.View.modelToView
(int pos, Shape a) Deprecated.abstract Shape
View.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping, for a given character, from the document model coordinate space to the view coordinate space.View.modelToView
(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) Provides a mapping, for a given region, from the document model coordinate space to the view coordinate space.void
Render the view using the given allocation and rendering surface.void
Renders theBoxView
using the given rendering surface and area on that surface.void
The real paint behavior occurs naturally from the association that the component has with its parent container (the same container hosting this view).void
DefaultHighlighter.DefaultHighlightPainter.paint
(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c) Paints a highlight.void
Renders using the given rendering surface and area on that surface.abstract void
Paint the glyphs representing the given range.void
Renders a portion of a text style run.void
Highlighter.HighlightPainter.paint
(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) Renders the highlight.void
Paints the icon.void
Renders using the given rendering surface and area on that surface.void
Renders using the given rendering surface and area on that surface.abstract void
Renders using the given rendering surface and area on that surface.void
Renders using the given rendering surface and area on that surface.DefaultHighlighter.DefaultHighlightPainter.paintLayer
(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) Paints a portion of a highlight.abstract Shape
LayeredHighlighter.LayerPainter.paintLayer
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) Paints a portion of a highlight.void
DefaultHighlighter.paintLayeredHighlights
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) When leaf Views (such as LabelView) are rendering they should call into this method.abstract void
LayeredHighlighter.paintLayeredHighlights
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) When leaf Views (such as LabelView) are rendering they should call into this method.void
FieldView.removeUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.void
FlowView.removeUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.void
GlyphView.removeUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.void
PlainView.removeUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.void
View.removeUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.void
WrappedPlainView.removeUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.void
ZoneView.removeUpdate
(DocumentEvent changes, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for.protected void
AsyncBoxView.ChildLocator.setAllocation
(Shape a) Copy the currently allocated shape into the Rectangle used to store the current allocation.protected void
PlainView.updateDamage
(DocumentEvent changes, Shape a, ViewFactory f) Repaint the region of change covered by the given document event.protected void
AsyncBoxView.updateLayout
(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) Update the layout in response to receiving notification of change from the model.protected void
View.updateLayout
(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) Updates the layout in response to receiving notification of change from the model.int
AsyncBoxView.viewToModel
(float x, float y, Shape a, Position.Bias[] biasReturn) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
BoxView.viewToModel
(float x, float y, Shape a, Position.Bias[] bias) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
ComponentView.viewToModel
(float x, float y, Shape a, Position.Bias[] bias) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
CompositeView.viewToModel
(float x, float y, Shape a, Position.Bias[] bias) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
FieldView.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.abstract int
GlyphView.GlyphPainter.viewToModel
(GlyphView v, float x, float y, Shape a, Position.Bias[] biasReturn) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
GlyphView.viewToModel
(float x, float y, Shape a, Position.Bias[] biasReturn) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
IconView.viewToModel
(float x, float y, Shape a, Position.Bias[] bias) Provides a mapping from the view coordinate space to the logical coordinate space of the 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[] bias) Provides a mapping from the view coordinate space to the logical coordinate space of the model.int
View.viewToModel
(float x, float y, Shape a) Deprecated.abstract int
View.viewToModel
(float x, float y, Shape a, Position.Bias[] biasReturn) Provides a mapping from the view coordinate space to the logical coordinate space of the model. -
Uses of Shape in javax.swing.text.html
Modifier and TypeMethodDescriptionImageView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.Modifier and TypeMethodDescriptionvoid
ImageView.changedUpdate
(DocumentEvent e, Shape a, ViewFactory f) Invoked when the Elements attributes have changed.void
InlineView.changedUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for.ImageView.getToolTipText
(float x, float y, Shape allocation) For images the tooltip text comes from text specified with theALT
attribute.void
InlineView.insertUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for.ImageView.modelToView
(int pos, Shape a, Position.Bias b) Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.void
Renders using the given rendering surface and area on that surface.void
Paints the View.void
Renders using the given rendering surface and area on that surface.void
Renders using the given rendering surface and area on that surface.void
InlineView.removeUpdate
(DocumentEvent e, Shape a, ViewFactory f) Gives 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 a, Position.Bias[] bias) Provides a mapping from the view coordinate space to the logical coordinate space of the model.