Lines Matching refs:focus

42  * specify a separate focus point within that circle, which controls the
43 * location of the first color of the gradient. By default the focus is
46 * This paint will map the first color of the gradient to the focus point,
49 * from the focus point to the circumference will thus span all the gradient
52 * Specifying a focus point outside of the radius of the circle will cause
54 * the edge of the circle in the direction of the focus point.
56 * the specified focus point.
80 * from the focus point. The following figure shows that the distance AB
86 * the user sets the focus so that it coincides with the center of the circle,
103 * {@code RadialGradientPaint}, where the center and focus points are
117 * (centered) focus for each of the three cycle methods:
124 * It is also possible to specify a non-centered focus point, as
130 * Point2D focus = new Point2D.Float(40, 40);
134 * new RadialGradientPaint(center, radius, focus,
141 * focus for each of the three cycle methods:
155 private final Point2D focus;
166 * using the center as the focus point.
179 * is used at the focus point, the last color around the
206 * using the center as the focus point.
215 * is used at the focus point, the last color around the
242 * {@code SRGB} color space, using the center as the focus point.
255 * is used at the focus point, the last color around the
285 * {@code SRGB} color space, using the center as the focus point.
294 * is used at the focus point, the last color around the
342 * is used at the focus point, the last color around the
380 * @param focus the point in user space to which the first color is mapped
384 * is used at the focus point, the last color around the
402 Point2D focus,
408 focus,
424 * @param focus the point in user space to which the first color is mapped
428 * is used at the focus point, the last color around the
453 Point2D focus,
466 if (focus == null) {
477 this.focus = new Point2D.Double(focus.getX(), focus.getY());
515 * is used at the focus point, the last color around the
609 (float)focus.getX(),
610 (float)focus.getY(),
625 * Returns a copy of the focus point of the radial gradient.
626 * Note that if the focus point specified when the radial gradient
628 * method will still return the original focus point even though
632 * @return a {@code Point2D} object that is a copy of the focus point
635 return new Point2D.Double(focus.getX(), focus.getY());