| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.font | Provides classes and interface relating to fonts. | 
| java.awt.geom | Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry. | 
| java.awt.image.renderable | Provides classes and interfaces for producing
rendering-independent images. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| javax.swing.text.html | Provides the class  HTMLEditorKitand supporting classes
for creating HTML text editors. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | PolygonThe  Polygonclass encapsulates a description of a
 closed, two-dimensional region within a coordinate space. | 
| class  | RectangleA  Rectanglespecifies an area in a coordinate space that is
 enclosed by theRectangleobject's upper-left point(x,y)in the coordinate space, its width, and its height. | 
| Modifier and Type | Method and Description | 
|---|---|
| Shape | BasicStroke. createStrokedShape(Shape s)Returns a  Shapewhose interior defines the
 stroked outline of a specifiedShape. | 
| Shape | Stroke. createStrokedShape(Shape p)Returns an outline  Shapewhich encloses the area that
 should be painted when theShapeis stroked according
 to the rules defined by the
 object implementing theStrokeinterface. | 
| 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  Clipwith the interior of the
 specifiedShapeand sets theClipto the
 resulting intersection. | 
| Shape | BasicStroke. createStrokedShape(Shape s)Returns a  Shapewhose interior defines the
 stroked outline of a specifiedShape. | 
| Shape | Stroke. createStrokedShape(Shape p)Returns an outline  Shapewhich encloses the area that
 should be painted when theShapeis stroked according
 to the rules defined by the
 object implementing theStrokeinterface. | 
| abstract void | Graphics2D. draw(Shape s)Strokes the outline of a  Shapeusing the settings of the
 currentGraphics2Dcontext. | 
| abstract void | Graphics2D. fill(Shape s)Fills the interior of a  Shapeusing the settings of theGraphics2Dcontext. | 
| abstract boolean | Graphics2D. hit(Rectangle rect,
   Shape s,
   boolean onStroke)Checks whether or not the specified  Shapeintersects
 the specifiedRectangle, which is in device
 space. | 
| abstract void | Graphics. setClip(Shape clip)Sets the current clipping area to an arbitrary clip shape. | 
| void | Frame. setShape(Shape shape)Sets the shape of the window. | 
| void | Dialog. setShape(Shape shape)Sets the shape of the window. | 
| void | Window. setShape(Shape shape)Sets the shape of the window. | 
| Modifier and Type | Method and Description | 
|---|---|
| Shape | TextLayout. getBlackBoxBounds(int firstEndpoint,
                 int secondEndpoint)Returns the black box bounds of the characters in the specified range. | 
| Shape | TextLayout. getCaretShape(TextHitInfo hit)Returns a  Shaperepresenting the caret at the specified
 hit inside the natural bounds of thisTextLayout. | 
| Shape | TextLayout. getCaretShape(TextHitInfo hit,
             Rectangle2D bounds)Returns a  Shaperepresenting 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 this
  GlyphVector. | 
| abstract Shape | GlyphVector. getGlyphOutline(int glyphIndex)Returns a  Shapewhose interior corresponds to the
 visual representation of the specified glyph
 within thisGlyphVector. | 
| Shape | GlyphVector. getGlyphOutline(int glyphIndex,
               float x,
               float y)Returns a  Shapewhose 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 the
  GlyphVector. | 
| Shape | TextLayout. getLogicalHighlightShape(int firstEndpoint,
                        int secondEndpoint)Returns a  Shapeenclosing the logical selection in the
 specified range, extended to the natural bounds of thisTextLayout. | 
| Shape | TextLayout. getLogicalHighlightShape(int firstEndpoint,
                        int secondEndpoint,
                        Rectangle2D bounds)Returns a  Shapeenclosing the logical selection in the
 specified range, extended to the specifiedbounds. | 
| abstract Shape | GlyphVector. getOutline()Returns a  Shapewhose interior corresponds to the
 visual representation of thisGlyphVector. | 
| Shape | GraphicAttribute. getOutline(AffineTransform tx)Return a  Shapethat represents the region that
 thisGraphicAttributerenders. | 
| Shape | ShapeGraphicAttribute. getOutline(AffineTransform tx)Return a  Shapethat represents the region that
 thisShapeGraphicAttributerenders. | 
| Shape | TextLayout. getOutline(AffineTransform tx)Returns a  Shaperepresenting the outline of thisTextLayout. | 
| abstract Shape | GlyphVector. getOutline(float x,
          float y)Returns a  Shapewhose interior corresponds to the
 visual representation of thisGlyphVectorwhen
 rendered at x, y. | 
| Shape | TextLayout. getVisualHighlightShape(TextHitInfo firstEndpoint,
                       TextHitInfo secondEndpoint)Returns a  Shapeenclosing the visual selection in the
 specified range, extended to the bounds. | 
| Shape | TextLayout. getVisualHighlightShape(TextHitInfo firstEndpoint,
                       TextHitInfo secondEndpoint,
                       Rectangle2D bounds)Returns a path enclosing the visual selection in the specified range,
 extended to  bounds. | 
| Constructor and Description | 
|---|
| ShapeGraphicAttribute(Shape shape,
                     int alignment,
                     boolean stroke)Constructs a  ShapeGraphicAttributefor the specifiedShape. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | Arc2DArc2Dis 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  | Arc2D.DoubleThis class defines an arc specified in  doubleprecision. | 
| static class  | Arc2D.FloatThis class defines an arc specified in  floatprecision. | 
| class  | AreaAn  Areaobject stores and manipulates a
 resolution-independent description of an enclosed area of
 2-dimensional space. | 
| class  | CubicCurve2DThe  CubicCurve2Dclass defines a cubic parametric curve
 segment in(x,y)coordinate space. | 
| static class  | CubicCurve2D.DoubleA cubic parametric curve segment specified with
  doublecoordinates. | 
| static class  | CubicCurve2D.FloatA cubic parametric curve segment specified with
  floatcoordinates. | 
| class  | Ellipse2DThe  Ellipse2Dclass describes an ellipse that is defined
 by a framing rectangle. | 
| static class  | Ellipse2D.DoubleThe  Doubleclass defines an ellipse specified
 indoubleprecision. | 
| static class  | Ellipse2D.FloatThe  Floatclass defines an ellipse specified
 infloatprecision. | 
| class  | GeneralPathThe  GeneralPathclass represents a geometric path
 constructed from straight lines, and quadratic and cubic
 (Bézier) curves. | 
| class  | Line2DThis  Line2Drepresents a line segment in(x,y)coordinate space. | 
| static class  | Line2D.DoubleA line segment specified with double coordinates. | 
| static class  | Line2D.FloatA line segment specified with float coordinates. | 
| class  | Path2DThe  Path2Dclass provides a simple, yet flexible
 shape which represents an arbitrary geometric path. | 
| static class  | Path2D.DoubleThe  Doubleclass defines a geometric path with
 coordinates stored in double precision floating point. | 
| static class  | Path2D.FloatThe  Floatclass defines a geometric path with
 coordinates stored in single precision floating point. | 
| class  | QuadCurve2DThe  QuadCurve2Dclass defines a quadratic parametric curve
 segment in(x,y)coordinate space. | 
| static class  | QuadCurve2D.DoubleA quadratic parametric curve segment specified with
  doublecoordinates. | 
| static class  | QuadCurve2D.FloatA quadratic parametric curve segment specified with
  floatcoordinates. | 
| class  | Rectangle2DThe  Rectangle2Dclass describes a rectangle
 defined by a location(x,y)and dimension(w x h). | 
| static class  | Rectangle2D.DoubleThe  Doubleclass defines a rectangle specified in
 double coordinates. | 
| static class  | Rectangle2D.FloatThe  Floatclass defines a rectangle specified in float
 coordinates. | 
| class  | RectangularShapeRectangularShapeis the base class for a number ofShapeobjects whose geometry is defined by a rectangular frame. | 
| class  | RoundRectangle2DThe  RoundRectangle2Dclass 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  | RoundRectangle2D.DoubleThe  Doubleclass defines a rectangle with rounded
 corners all specified indoublecoordinates. | 
| static class  | RoundRectangle2D.FloatThe  Floatclass defines a rectangle with rounded
 corners all specified infloatcoordinates. | 
| Modifier and Type | Method and Description | 
|---|---|
| Shape | Path2D. createTransformedShape(AffineTransform at)Returns a new  Shaperepresenting a transformed version
 of thisPath2D. | 
| Shape | AffineTransform. createTransformedShape(Shape pSrc)Returns a new  Shapeobject defined by the geometry of the
 specifiedShapeafter it has been transformed by
 this transform. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Path2D. append(Shape s,
      boolean connect)Appends the geometry of the specified  Shapeobject to the
 path, possibly connecting the new geometry to the existing path
 segments with a line segment. | 
| Shape | AffineTransform. createTransformedShape(Shape pSrc)Returns a new  Shapeobject defined by the geometry of the
 specifiedShapeafter it has been transformed by
 this transform. | 
| Constructor and Description | 
|---|
| Area(Shape s)The  Areaclass creates an area geometry from the
 specifiedShapeobject. | 
| Double(Shape s)Constructs a new double precision  Path2Dobject
 from an arbitraryShapeobject. | 
| Double(Shape s,
      AffineTransform at)Constructs a new double precision  Path2Dobject
 from an arbitraryShapeobject, transformed by anAffineTransformobject. | 
| Float(Shape s)Constructs a new single precision  Path2Dobject
 from an arbitraryShapeobject. | 
| Float(Shape s,
     AffineTransform at)Constructs a new single precision  Path2Dobject
 from an arbitraryShapeobject, transformed by anAffineTransformobject. | 
| GeneralPath(Shape s)Constructs a new  GeneralPathobject from an arbitraryShapeobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| Shape | RenderContext. getAreaOfInterest()Gets the ares of interest currently contained in the
 RenderContext. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RenderContext. setAreaOfInterest(Shape newAoi)Sets the current area of interest. | 
| Constructor and Description | 
|---|
| RenderContext(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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Shape | DebugGraphics. getClip()Overrides  Graphics.getClip. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DebugGraphics. setClip(Shape clip)Overrides  Graphics.setClip. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BasicTextUI.BasicCaret | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultCaretA default implementation of Caret. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected 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. | 
| Shape | CompositeView. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view to
 render into. | 
| Shape | View. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view. | 
| Shape | BoxView. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view. | 
| Shape | AsyncBoxView. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view. | 
| Shape | AsyncBoxView.ChildLocator. getChildAllocation(int index,
                  Shape a)Fetch the allocation to use for a child view. | 
| 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | View. modelToView(int pos,
           Shape a)Deprecated.   | 
| Shape | 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. | 
| Shape | 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. | 
| 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | ComponentView. modelToView(int pos,
           Shape a,
           Position.Bias b)Provides a mapping from the coordinate space of the model to
 that of the view. | 
| Shape | 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. | 
| Shape | 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) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Shape | FieldView. adjustAllocation(Shape a)Adjusts the allocation given to the view
 to be a suitable allocation for a text field. | 
| View | ParagraphView. breakView(int axis,
         float len,
         Shape a)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 | 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 | 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. | 
| 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 | 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. | 
| protected void | PlainView. damageLineRange(int line0,
               int line1,
               Shape a,
               Component host)Repaint the given line range. | 
| protected void | View. forwardUpdate(DocumentEvent.ElementChange ec,
             DocumentEvent e,
             Shape a,
             ViewFactory f)Forwards the given  DocumentEventto the child views
 that need to be notified of the change to the model. | 
| protected void | BoxView. forwardUpdate(DocumentEvent.ElementChange ec,
             DocumentEvent e,
             Shape a,
             ViewFactory f)Forwards the given  DocumentEventto the child views
 that need to be notified of the change to the model. | 
| protected void | TableView. forwardUpdate(DocumentEvent.ElementChange ec,
             DocumentEvent e,
             Shape a,
             ViewFactory f) | 
| protected void | View. forwardUpdateToView(View v,
                   DocumentEvent e,
                   Shape a,
                   ViewFactory f)Forwards the  DocumentEventto the give child view. | 
| Shape | CompositeView. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view to
 render into. | 
| Shape | View. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view. | 
| Shape | BoxView. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view. | 
| Shape | AsyncBoxView. getChildAllocation(int index,
                  Shape a)Fetches the allocation for the given child view. | 
| Shape | AsyncBoxView.ChildLocator. getChildAllocation(int index,
                  Shape a)Fetch the allocation to use for a 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 to  x. | 
| 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. | 
| 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 | 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 | 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 | 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. | 
| 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 | 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. | 
| String | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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. | 
| 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | View. modelToView(int pos,
           Shape a)Deprecated.   | 
| Shape | 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. | 
| Shape | 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. | 
| 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | 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. | 
| Shape | ComponentView. modelToView(int pos,
           Shape a,
           Position.Bias b)Provides a mapping from the coordinate space of the model to
 that of the view. | 
| Shape | 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. | 
| abstract void | GlyphView.GlyphPainter. paint(GlyphView v,
     Graphics g,
     Shape a,
     int p0,
     int p1)Paint the glyphs representing the given range. | 
| void | DefaultHighlighter.DefaultHighlightPainter. paint(Graphics g,
     int offs0,
     int offs1,
     Shape bounds,
     JTextComponent c)Paints a highlight. | 
| void | Highlighter.HighlightPainter. paint(Graphics g,
     int p0,
     int p1,
     Shape bounds,
     JTextComponent c)Renders the highlight. | 
| void | IconView. paint(Graphics g,
     Shape a)Paints the icon. | 
| void | ParagraphView. paint(Graphics g,
     Shape a)Renders using the given rendering surface and area on that
 surface. | 
| abstract void | View. paint(Graphics g,
     Shape allocation)Renders using the given rendering surface and area on that
 surface. | 
| void | BoxView. paint(Graphics g,
     Shape allocation)Renders the  BoxViewusing the given
 rendering surface and area
 on that surface. | 
| void | FieldView. paint(Graphics g,
     Shape a)Renders using the given rendering surface and area on that surface. | 
| void | WrappedPlainView. paint(Graphics g,
     Shape a)Renders using the given rendering surface and area
 on that surface. | 
| void | PlainView. paint(Graphics g,
     Shape a)Renders using the given rendering surface and area on that surface. | 
| void | GlyphView. paint(Graphics g,
     Shape a)Renders a portion of a text style run. | 
| void | ComponentView. paint(Graphics g,
     Shape a)The real paint behavior occurs naturally from the association
 that the component has with its parent container (the same
 container hosting this view). | 
| void | AsyncBoxView. paint(Graphics g,
     Shape alloc)Render the view using the given allocation and
 rendering surface. | 
| Shape | 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) | 
| 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | View. updateLayout(DocumentEvent.ElementChange ec,
            DocumentEvent e,
            Shape a)Updates the layout in response to receiving notification of
 change from the model. | 
| protected void | AsyncBoxView. updateLayout(DocumentEvent.ElementChange ec,
            DocumentEvent e,
            Shape a)Update the layout in response to receiving notification of
 change from the model. | 
| int | View. viewToModel(float x,
           float y,
           Shape a)Deprecated.   | 
| 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 | 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. | 
| 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. | 
| 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 | 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. | 
| 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 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 | 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 | 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 | 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. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Shape | 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BlockView. changedUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f) | 
| void | 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. | 
| String | ImageView. getToolTipText(float x,
              float y,
              Shape allocation)For images the tooltip text comes from text specified with the
  ALTattribute. | 
| 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. | 
| Shape | 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 | BlockView. paint(Graphics g,
     Shape allocation)Renders using the given rendering surface and area on that
 surface. | 
| void | ImageView. paint(Graphics g,
     Shape a)Paints the View. | 
| void | ParagraphView. paint(Graphics g,
     Shape a)Renders using the given rendering surface and area on that
 surface. | 
| void | ListView. paint(Graphics g,
     Shape allocation)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. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.