/** * Resizes the given Paint. By default, only Gradients, LinearGradients, and RadialGradients are resized * in this method. If you have special resizing needs, override this method. This * method is mainly used to make gradient paints resize with the component this * painter is attached to. This method is internal to the painter api and should * not be called elsewhere. It is used by the paintStretched property and * painter subclasses. In the future it may be made public for use by other classes. * If this happens it should probably be turned into a static utility method. */ Paint calculateSnappedPaint(Paint p, int width, int height) { return PaintUtils.resizeGradient(p, width, height); }
/** * Resizes the given Paint. By default, only Gradients, LinearGradients, and RadialGradients are resized * in this method. If you have special resizing needs, override this method. This * method is mainly used to make gradient paints resize with the component this * painter is attached to. This method is internal to the painter api and should * not be called elsewhere. It is used by the paintStretched property and * painter subclasses. In the future it may be made public for use by other classes. * If this happens it should probably be turned into a static utility method. */ Paint calculateSnappedPaint(Paint p, int width, int height) { return PaintUtils.resizeGradient(p, width, height); }
/** * Resizes the given Paint. By default, only Gradients, LinearGradients, and RadialGradients are resized * in this method. If you have special resizing needs, override this method. This * method is mainly used to make gradient paints resize with the component this * painter is attached to. This method is internal to the painter api and should * not be called elsewhere. It is used by the paintStretched property and * painter subclasses. In the future it may be made public for use by other classes. * If this happens it should probably be turned into a static utility method. */ Paint calculateSnappedPaint(Paint p, int width, int height) { return PaintUtils.resizeGradient(p, width, height); }
/** * Resizes the given Paint. By default, only Gradients, LinearGradients, and RadialGradients are resized * in this method. If you have special resizing needs, override this method. This * method is mainly used to make gradient paints resize with the component this * painter is attached to. This method is internal to the painter api and should * not be called elsewhere. It is used by the paintStretched property and * painter subclasses. In the future it may be made public for use by other classes. * If this happens it should probably be turned into a static utility method. */ Paint calculateSnappedPaint(Paint p, int width, int height) { return PaintUtils.resizeGradient(p, width, height); }