Uses of Class
java.awt.geom.Point2D
-
Packages that use Point2D 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 Provides classes for creating and modifying images.javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. -
-
Uses of Point2D in java.awt
Subclasses of Point2D in java.awt Modifier and Type Class Description classPointA point representing a location in(x,y)coordinate space, specified in integer precision.Methods in java.awt that return Point2D Modifier and Type Method Description Point2DRadialGradientPaint. getCenterPoint()Returns a copy of the center point of the radial gradient.Point2DLinearGradientPaint. getEndPoint()Returns a copy of the end point of the gradient axis.Point2DRadialGradientPaint. getFocusPoint()Returns a copy of the focus point of the radial gradient.Point2DGradientPaint. getPoint1()Returns a copy of the point P1 that anchors the first color.Point2DGradientPaint. getPoint2()Returns a copy of the point P2 which anchors the second color.Point2DLinearGradientPaint. getStartPoint()Returns a copy of the start point of the gradient axis.Methods in java.awt with parameters of type Point2D Modifier and Type Method Description booleanPolygon. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.booleanShape. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.Constructors in java.awt with parameters of type Point2D Constructor Description GradientPaint(Point2D pt1, Color color1, Point2D pt2, Color color2)Constructs a simple acyclicGradientPaintobject.GradientPaint(Point2D pt1, Color color1, Point2D pt2, Color color2, boolean cyclic)Constructs either a cyclic or acyclicGradientPaintobject depending on thebooleanparameter.LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors)Constructs aLinearGradientPaintwith a defaultNO_CYCLErepeating method andSRGBcolor space.LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)Constructs aLinearGradientPaintwith a defaultSRGBcolor space.LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform)Constructs aLinearGradientPaint.RadialGradientPaint(Point2D center, float radius, float[] fractions, Color[] colors)Constructs aRadialGradientPaintwith a defaultNO_CYCLErepeating method andSRGBcolor space, using the center as the focus point.RadialGradientPaint(Point2D center, float radius, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)Constructs aRadialGradientPaintwith a defaultSRGBcolor space, using the center as the focus point.RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)Constructs aRadialGradientPaintwith a defaultSRGBcolor space.RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform)Constructs aRadialGradientPaint. -
Uses of Point2D in java.awt.font
Methods in java.awt.font that return Point2D Modifier and Type Method Description abstract Point2DGlyphVector. getGlyphPosition(int glyphIndex)Returns the position of the specified glyph relative to the origin of thisGlyphVector.Methods in java.awt.font with parameters of type Point2D Modifier and Type Method Description voidTextLayout. hitToPoint(TextHitInfo hit, Point2D point)Convert a hit to a point in standard coordinates.abstract voidLayoutPath. pathToPoint(Point2D location, boolean preceding, Point2D point)Convert a location relative to the path to a point in user coordinates.abstract booleanLayoutPath. pointToPath(Point2D point, Point2D location)Convert a point in user space to a location relative to the path.abstract voidGlyphVector. setGlyphPosition(int glyphIndex, Point2D newPos)Sets the position of the specified glyph within thisGlyphVector. -
Uses of Point2D in java.awt.geom
Subclasses of Point2D in java.awt.geom Modifier and Type Class Description static classPoint2D.DoubleTheDoubleclass defines a point specified indoubleprecision.static classPoint2D.FloatTheFloatclass defines a point specified in float precision.Methods in java.awt.geom that return Point2D Modifier and Type Method Description Point2DAffineTransform. deltaTransform(Point2D ptSrc, Point2D ptDst)Transforms the relative distance vector specified byptSrcand stores the result inptDst.Point2DCubicCurve2D.Double. getCtrlP1()Returns the first control point.Point2DCubicCurve2D.Float. getCtrlP1()Returns the first control point.abstract Point2DCubicCurve2D. getCtrlP1()Returns the first control point.Point2DCubicCurve2D.Double. getCtrlP2()Returns the second control point.Point2DCubicCurve2D.Float. getCtrlP2()Returns the second control point.abstract Point2DCubicCurve2D. getCtrlP2()Returns the second control point.Point2DQuadCurve2D.Double. getCtrlPt()Returns the control point.Point2DQuadCurve2D.Float. getCtrlPt()Returns the control point.abstract Point2DQuadCurve2D. getCtrlPt()Returns the control point.Point2DPath2D. getCurrentPoint()Returns the coordinates most recently added to the end of the path as aPoint2Dobject.Point2DArc2D. getEndPoint()Returns the ending point of the arc.Point2DCubicCurve2D.Double. getP1()Returns the start point.Point2DCubicCurve2D.Float. getP1()Returns the start point.abstract Point2DCubicCurve2D. getP1()Returns the start point.Point2DLine2D.Double. getP1()Returns the startPoint2Dof thisLine2D.Point2DLine2D.Float. getP1()Returns the startPoint2Dof thisLine2D.abstract Point2DLine2D. getP1()Returns the startPoint2Dof thisLine2D.Point2DQuadCurve2D.Double. getP1()Returns the start point.Point2DQuadCurve2D.Float. getP1()Returns the start point.abstract Point2DQuadCurve2D. getP1()Returns the start point.Point2DCubicCurve2D.Double. getP2()Returns the end point.Point2DCubicCurve2D.Float. getP2()Returns the end point.abstract Point2DCubicCurve2D. getP2()Returns the end point.Point2DLine2D.Double. getP2()Returns the endPoint2Dof thisLine2D.Point2DLine2D.Float. getP2()Returns the endPoint2Dof thisLine2D.abstract Point2DLine2D. getP2()Returns the endPoint2Dof thisLine2D.Point2DQuadCurve2D.Double. getP2()Returns the end point.Point2DQuadCurve2D.Float. getP2()Returns the end point.abstract Point2DQuadCurve2D. getP2()Returns the end point.Point2DArc2D. getStartPoint()Returns the starting point of the arc.Point2DAffineTransform. inverseTransform(Point2D ptSrc, Point2D ptDst)Inverse transforms the specifiedptSrcand stores the result inptDst.Point2DAffineTransform. transform(Point2D ptSrc, Point2D ptDst)Transforms the specifiedptSrcand stores the result inptDst.Methods in java.awt.geom with parameters of type Point2D Modifier and Type Method Description voidRectangle2D. add(Point2D pt)Adds thePoint2Dobjectptto thisRectangle2D.booleanArea. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.booleanCubicCurve2D. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.booleanLine2D. contains(Point2D p)Tests if a givenPoint2Dis inside the boundary of thisLine2D.static booleanPath2D. contains(PathIterator pi, Point2D p)Tests if the specifiedPoint2Dis inside the closed boundary of the specifiedPathIterator.booleanPath2D. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.booleanQuadCurve2D. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.booleanRectangularShape. contains(Point2D p)Tests if a specifiedPoint2Dis inside the boundary of theShape, as described by the definition of insideness.Point2DAffineTransform. deltaTransform(Point2D ptSrc, Point2D ptDst)Transforms the relative distance vector specified byptSrcand stores the result inptDst.doublePoint2D. distance(Point2D pt)Returns the distance from thisPoint2Dto a specifiedPoint2D.doublePoint2D. distanceSq(Point2D pt)Returns the square of the distance from thisPoint2Dto a specifiedPoint2D.Point2DAffineTransform. inverseTransform(Point2D ptSrc, Point2D ptDst)Inverse transforms the specifiedptSrcand stores the result inptDst.intRectangle2D. outcode(Point2D p)Determines where the specifiedPoint2Dlies with respect to thisRectangle2D.doubleLine2D. ptLineDist(Point2D pt)Returns the distance from aPoint2Dto this line.doubleLine2D. ptLineDistSq(Point2D pt)Returns the square of the distance from a specifiedPoint2Dto this line.doubleLine2D. ptSegDist(Point2D pt)Returns the distance from aPoint2Dto this line segment.doubleLine2D. ptSegDistSq(Point2D pt)Returns the square of the distance from aPoint2Dto this line segment.intLine2D. relativeCCW(Point2D p)Returns an indicator of where the specifiedPoint2Dlies with respect to this line segment.voidArc2D. setAngles(Point2D p1, Point2D p2)Sets the starting angle and angular extent of this arc using two points.voidArc2D. setAngleStart(Point2D p)Sets the starting angle of this arc to the angle that the specified point defines relative to the center of this arc.voidArc2D. setArc(Point2D loc, Dimension2D size, double angSt, double angExt, int closure)Sets the location, size, angular extents, and closure type of this arc to the specified values.voidArc2D. setArcByTangent(Point2D p1, Point2D p2, Point2D p3, double radius)Sets the position, bounds, and angular extents of this arc to the specified value.voidCubicCurve2D. setCurve(Point2D[] pts, int offset)Sets the location of the end points and control points of this curve to the coordinates of thePoint2Dobjects at the specified offset in the specified array.voidCubicCurve2D. setCurve(Point2D p1, Point2D cp1, Point2D cp2, Point2D p2)Sets the location of the end points and control points of this curve to the specifiedPoint2Dcoordinates.voidQuadCurve2D. setCurve(Point2D[] pts, int offset)Sets the location of the end points and control points of thisQuadCurve2Dto the coordinates of thePoint2Dobjects at the specified offset in the specified array.voidQuadCurve2D. setCurve(Point2D p1, Point2D cp, Point2D p2)Sets the location of the end points and control point of thisQuadCurve2Dto the specifiedPoint2Dcoordinates.voidRectangularShape. setFrame(Point2D loc, Dimension2D size)Sets the location and size of the framing rectangle of thisShapeto the specifiedPoint2DandDimension2D, respectively.voidRectangularShape. setFrameFromCenter(Point2D center, Point2D corner)Sets the framing rectangle of thisShapebased on a specified centerPoint2Dand cornerPoint2D.voidRectangularShape. setFrameFromDiagonal(Point2D p1, Point2D p2)Sets the diagonal of the framing rectangle of thisShapebased on two specifiedPoint2Dobjects.voidLine2D. setLine(Point2D p1, Point2D p2)Sets the location of the end points of thisLine2Dto the specifiedPoint2Dcoordinates.voidPoint2D. setLocation(Point2D p)Sets the location of thisPoint2Dto the same coordinates as the specifiedPoint2Dobject.voidAffineTransform. transform(Point2D[] ptSrc, int srcOff, Point2D[] ptDst, int dstOff, int numPts)Transforms an array of point objects by this transform.Point2DAffineTransform. transform(Point2D ptSrc, Point2D ptDst)Transforms the specifiedptSrcand stores the result inptDst.Constructors in java.awt.geom with parameters of type Point2D Constructor Description Double(Point2D p1, Point2D p2)Constructs and initializes aLine2Dfrom the specifiedPoint2Dobjects.Float(Point2D p1, Point2D p2)Constructs and initializes aLine2Dfrom the specifiedPoint2Dobjects. -
Uses of Point2D in java.awt.image
Methods in java.awt.image that return Point2D Modifier and Type Method Description Point2DAffineTransformOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the corresponding destination point given a point in the source.Point2DBandCombineOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the corresponding destination point given a point in the sourceRaster.Point2DBufferedImageOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the corresponding destination point given a point in the source image.Point2DColorConvertOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Point2DConvolveOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Point2DLookupOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Point2DRasterOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source Raster.Point2DRescaleOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Methods in java.awt.image with parameters of type Point2D Modifier and Type Method Description Point2DAffineTransformOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the corresponding destination point given a point in the source.Point2DBandCombineOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the corresponding destination point given a point in the sourceRaster.Point2DBufferedImageOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the corresponding destination point given a point in the source image.Point2DColorConvertOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Point2DConvolveOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Point2DLookupOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source.Point2DRasterOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source Raster.Point2DRescaleOp. getPoint2D(Point2D srcPt, Point2D dstPt)Returns the location of the destination point given a point in the source. -
Uses of Point2D in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type Point2D Modifier and Type Method Description StringTextUI. getToolTipText2D(JTextComponent t, Point2D pt)Returns the string to be used as the tooltip at the passed in location.intTextUI. viewToModel2D(JTextComponent t, Point2D pt, Position.Bias[] biasReturn)Provides a mapping from the view coordinate space to the logical coordinate space of the model. -
Uses of Point2D in javax.swing.text
Methods in javax.swing.text with parameters of type Point2D Modifier and Type Method Description intJTextComponent. viewToModel2D(Point2D pt)Converts the given place in the view coordinate system to the nearest representative location in the model.
-