Lines Matching defs:center
41 * which is described by a center point and a radius. The user can also
44 * set to be the center of the circle.
82 * <center>
84 * </center>
86 * the user sets the focus so that it coincides with the center of the circle,
87 * the gradient color proportions are equal for any line drawn from the center.
89 * <center>
91 * </center>
103 * {@code RadialGradientPaint}, where the center and focus points are
107 * Point2D center = new Point2D.Float(50, 50);
112 * new RadialGradientPaint(center, radius, dist, colors);
119 * <center>
121 * </center>
128 * Point2D center = new Point2D.Float(50, 50);
134 * new RadialGradientPaint(center, radius, focus,
143 * <center>
145 * </center>
158 private final Point2D center;
166 * using the center as the focus point.
168 * @param cx the X coordinate in user space of the center point of the
171 * @param cy the Y coordinate in user space of the center point of the
206 * using the center as the focus point.
208 * @param center the center point, in user space, of the circle defining
219 * if {@code center} point is null,
229 public RadialGradientPaint(Point2D center, float radius,
232 this(center,
234 center,
242 * {@code SRGB} color space, using the center as the focus point.
244 * @param cx the X coordinate in user space of the center point of the
247 * @param cy the Y coordinate in user space of the center point of the
285 * {@code SRGB} color space, using the center as the focus point.
287 * @param center the center point, in user space, of the circle defining
300 * if {@code center} point is null,
311 public RadialGradientPaint(Point2D center, float radius,
315 this(center,
317 center,
327 * @param cx the X coordinate in user space of the center point of the
330 * @param cy the Y coordinate in user space of the center point of the
375 * @param center the center point, in user space, of the circle defining
401 public RadialGradientPaint(Point2D center, float radius,
406 this(center,
419 * @param center the center point in user space of the circle defining the
451 public RadialGradientPaint(Point2D center,
462 if (center == null) {
476 this.center = new Point2D.Double(center.getX(), center.getY());
495 * Point2D center = new Point2D.Double(cx, cy);
503 * new RadialGradientPaint(center, 1.0f, center,
536 // gradient center/focal point is the center of the bounding box,
606 (float)center.getX(),
607 (float)center.getY(),
616 * Returns a copy of the center point of the radial gradient.
618 * @return a {@code Point2D} object that is a copy of the center point
621 return new Point2D.Double(center.getX(), center.getY());
629 * the rendering may center the rings of color on a different