Java Platform 1.2
Beta 4

Uses of Interface
java.awt.Shape

Packages that use Shape
com.sun.java.swing Provides a set of "lightweight" (all-Java
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
com.sun.java.swing.text.html Provides the class (HTMLEditorKit) and supporting classes for creating HTML text editors.  
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.  
 

Uses of Shape in com.sun.java.swing
 

Methods in com.sun.java.swing that return Shape
 Shape DebugGraphics.getClip()
           
 

Methods in com.sun.java.swing with parameters of type Shape
 void DebugGraphics.setClip(Shape clip)
           
 

Uses of Shape in com.sun.java.swing.text
 

Methods in com.sun.java.swing.text that return Shape
 Shape View.getChildAllocation(int index, Shape a)
          Fetches the allocation for the given child view.
abstract  Shape View.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 View.modelToView(int pos, Shape a)
          Deprecated.  
 Shape CompositeView.getChildAllocation(int index, Shape a)
          Fetches the allocation for the given child view.
 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.
 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 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.
protected  Shape FieldView.adjustAllocation(Shape a)
          Adjusts the allocation given to the view to be a suitable allocation for a text field.
 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 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 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 LabelView.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.
 

Methods in com.sun.java.swing.text with parameters of type Shape
abstract  void View.paint(Graphics g, Shape allocation)
          Renders using the given rendering surface and area on that surface.
 Shape View.getChildAllocation(int index, Shape a)
          Fetches the allocation for the given child view.
 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 that one might place a caret.
abstract  Shape View.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  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.
 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 View.removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
          Gives notification from the document that attributes were removed 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.
 Shape View.modelToView(int pos, Shape a)
          Deprecated.  
 int View.viewToModel(float x, float y, Shape a)
          Deprecated.  
 Shape CompositeView.getChildAllocation(int index, Shape a)
          Fetches the allocation for the given child view.
 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.
 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.
protected  Rectangle CompositeView.getInsideAllocation(Shape a)
          Translates the allocation given to the view to the allocation used for composing the interior.
 void BoxView.paint(Graphics g, Shape allocation)
          Renders using the given rendering surface and area on that surface.
 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.
 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.
 void BoxView.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 BoxView.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 BoxView.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.paint(Graphics g, Shape a)
          Renders using the given rendering surface and area on that surface.
 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.
 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.
 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 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 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.
protected  Shape FieldView.adjustAllocation(Shape a)
          Adjusts the allocation given to the view to be a suitable allocation for a text field.
 void FieldView.paint(Graphics g, Shape a)
          Renders using the given rendering surface and area on that surface.
 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.
 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.
 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 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 DefaultHighlighter.DefaultHighlightPainter.paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)
          Paints a highlight.
 void WrappedPlainView.paint(Graphics g, Shape a)
          Renders using the given rendering surface and area on that surface.
 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 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 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 ComponentView.paint(Graphics g, Shape a)
          Paints a component view.
 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.
 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.
 void IconView.paint(Graphics g, Shape a)
          Paints the icon.
 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.
 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.
 void ParagraphView.paint(Graphics g, Shape a)
          Renders using the given rendering surface and area on that surface.
 View ParagraphView.breakView(int axis, float len, Shape a)
          Breaks this view on the given axis at the given length.
 void ParagraphView.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 ParagraphView.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 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 LabelView.paint(Graphics g, Shape a)
          Renders a portion of a text style run.
 Shape LabelView.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.
 int LabelView.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.
 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 Highlighter.HighlightPainter.paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
          Renders the highlight.
 

Uses of Shape in com.sun.java.swing.text.html
 

Methods in com.sun.java.swing.text.html with parameters of type Shape
 void ParagraphView.paint(Graphics g, Shape allocation)
          Renders using the given rendering surface and area on that surface.
 void BlockView.paint(Graphics g, Shape allocation)
          Renders using the given rendering surface and area on that surface.
 

Uses of Shape in java.awt
 

Classes in java.awt that implement Shape
  Polygon
          The Polygon class encapsulates a description of a closed, two-dimensional region within a coordinate space.
  Rectangle
          A rectangle specifies an area in a coordinate space that is defined by the rectangle's top-left point (xy) in the coordinate space, its width, and its height.
 

Methods in java.awt that return Shape
abstract  Shape Graphics.getClip()
          Gets the current clipping area.
 Shape BasicStroke.createStrokedShape(Shape s)
          Returns a shape whose interior defines the stroked outline of a given shape.
 Shape Stroke.createStrokedShape(Shape p)
          Returns a path which encloses the area that should be painted when the path is stroked according to the rules defined by the object implementing the Stroke interface.
 

Methods in java.awt with parameters of type Shape
abstract  void Graphics.setClip(Shape clip)
          Sets the current clipping area to an arbitrary clip shape.
 Shape BasicStroke.createStrokedShape(Shape s)
          Returns a shape whose interior defines the stroked outline of a given shape.
abstract  void Graphics2D.draw(Shape s)
          Strokes the outline of a Shape using the settings of the current graphics state.
abstract  void Graphics2D.fill(Shape s)
          Fills the interior of a Shape using the settings of the current graphics state.
abstract  boolean Graphics2D.hit(Rectangle rect, Shape s, boolean onStroke)
          Checks to see if the outline of a Shape intersects the specified Rectangle in device space.
abstract  void Graphics2D.clip(Shape s)
          Intersects the current clip with the interior of the specified Shape and sets the current clip to the resulting intersection.
 Shape Stroke.createStrokedShape(Shape p)
          Returns a path which encloses the area that should be painted when the path is stroked according to the rules defined by the object implementing the Stroke interface.
 

Uses of Shape in java.awt.font
 

Methods in java.awt.font that return Shape
 Shape TextLayout.getCaretShape(TextHitInfo hit, Rectangle2D bounds)
          Return a shape representing the caret at hit inside the given bounds.
 Shape TextLayout.getCaretShape(TextHitInfo hit)
          Return a shape representing the caret at hit.
 Shape[] TextLayout.getCaretShapes(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy)
          Return two paths corresponding to the strong and weak caret.
 Shape[] TextLayout.getCaretShapes(int offset, Rectangle2D bounds)
          A convenience overload that uses the default caret policy.
 Shape[] TextLayout.getCaretShapes(int offset)
          A convenience overload that uses the natural bounds of the layout as the bounds, and the default caret policy.
 Shape TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)
          Return a path enclosing the visual selection in the given range, extended to bounds.
 Shape TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint)
          A convenience overload which uses the natural bounds of the layout.
 Shape TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds)
          Return a path enclosing the logical selection in the given range, extended to bounds.
 Shape TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint)
          A convenience overload which uses the natural bounds of the layout.
 Shape TextLayout.getBlackBoxBounds(int firstEndpoint, int secondEndpoint)
          Return the black box bounds of the characters in the given range.
 Shape TextLayout.getOutline(AffineTransform tx, float x, float y)
           
abstract  Shape GlyphVector.getOutline()
          Return a Shape whose interior corresponds to the visual representation of the GlyphVector.
abstract  Shape GlyphVector.getOutline(float x, float y)
          Return a Shape whose interior corresponds to the visual representation of the GlyphVector.
abstract  Shape GlyphVector.getGlyphOutline(int glyphIndex)
          Return a Shape whose interior corresponds to the visual representation of the specified glyph within the GlyphVector.
abstract  Shape GlyphVector.getGlyphLogicalBounds(int glyphIndex)
          Return the logical bounds of the specified Glyph within the GlyphVector.
abstract  Shape GlyphVector.getGlyphVisualBounds(int glyphIndex)
          Return the visual bounds of the specified Glyph within the GlyphVector.
 

Constructors in java.awt.font with parameters of type Shape
ShapeGraphicAttribute.ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke)
          Construct a ShapeGraphicAttribute for the specified Shape.
 

Uses of Shape in java.awt.geom
 

Classes in java.awt.geom that implement Shape
  Arc2D
          An arc defined by a bounding rectangle, start angle and angular extent, and a closure type (one of OPEN, CHORD, or PIE).
static  Arc2D.Double
          An arc specified in double precision,
static  Arc2D.Float
          An arc specified in float precision,
  Area
          Area is a device-independent specification of an arbitrarily-shaped area.
  CubicCurve2D
          A cubic parametric curve segment in (x, y) coordinate space.
static  CubicCurve2D.Double
          A cubic parametric curve segment specified with double coordinates.
static  CubicCurve2D.Float
          A cubic parametric curve segment specified with float coordinates.
  Ellipse2D
          An ellipse defined by a bounding rectangle.
static  Ellipse2D.Double
          An ellipse specified in double precision.
static  Ellipse2D.Float
          An ellipse specified in float precision.
  GeneralPath
          This class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves.
  Line2D
          A line segment in (x, y) coordinate space.
static  Line2D.Double
          A line segment specified with double coordinates.
static  Line2D.Float
          A line segment specified with float coordinates.
  QuadCurve2D
          A quadratic parametric curve segment in (x, y) coordinate space.
static  QuadCurve2D.Double
          A quadratic parametric curve segment specified with double coordinates.
static  QuadCurve2D.Float
          A quadratic parametric curve segment specified with float coordinates.
  Rectangle2D
          A rectangle defined by a location (x, y) and dimension (w x h).
static  Rectangle2D.Double
          A rectangle specified in double coordinates.
static  Rectangle2D.Float
          A rectangle specified in float coordinates.
  RectangularShape
          The base class for a number of shapes whose geometry is defined by a rectangular frame.
  RoundRectangle2D
          A rectangle with rounded corners defined by a location (x, y), a dimension (w x h), and the width and height of an arc to round the corners with.
static  RoundRectangle2D.Double
          A rectangle with rounded corners all specified in double coordinates.
static  RoundRectangle2D.Float
          A rectangle with rounded corners all specified in float coordinates.
 

Methods in java.awt.geom that return Shape
 Shape AffineTransform.createTransformedShape(Shape pSrc)
          Returns a new Shape object defined by the geometry of the specified Shape argument transformed by this transform.
 Shape GeneralPath.createTransformedShape(AffineTransform at)
          Returns a new transformed Path.
 

Methods in java.awt.geom with parameters of type Shape
 Shape AffineTransform.createTransformedShape(Shape pSrc)
          Returns a new Shape object defined by the geometry of the specified Shape argument transformed by this transform.
 void GeneralPath.append(Shape s, boolean connect)
          Appends the geometry of the specified Shape object to the path, possibly connecting the geometry to the existing path segments with a line segment.
 

Constructors in java.awt.geom with parameters of type Shape
Area.Area(Shape g)
          Creates an area geometry from the specified Shape object.
GeneralPath.GeneralPath(Shape s)
          Constructs a new GeneralPath object from an arbitrary Shape object.
 

Uses of Shape in java.awt.image.renderable
 

Methods in java.awt.image.renderable that return Shape
 Shape RenderContext.getAreaOfInterest()
          Gets the ares of interest currently contained in the RenderContext.
 

Methods in java.awt.image.renderable with parameters of type Shape
 void RenderContext.setAreaOfInterest(Shape newAoi)
          Sets the current area of interest.
 

Constructors in java.awt.image.renderable with parameters of type Shape
RenderContext.RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints)
          Constructs a RenderContext with a given transform.
RenderContext.RenderContext(AffineTransform usr2dev, Shape aoi)
          Constructs a RenderContext with a given transform and area of interest.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.