Lines Matching refs:size
128 int w, h, size;
174 size = Math.min((h - 4) / 3, (w - 4) / 3);
175 size = Math.max(size, 2);
176 paintTriangle(g, (w - size) / 2, (h - size) / 2,
177 size, direction, isEnabled);
188 * Returns the preferred size of the {@code BasicArrowButton}.
190 * @return the preferred size
197 * Returns the minimum size of the {@code BasicArrowButton}.
199 * @return the minimum size
206 * Returns the maximum size of the {@code BasicArrowButton}.
208 * @return the maximum size
234 * @param size the size of the triangle to draw
241 public void paintTriangle(Graphics g, int x, int y, int size,
244 paintScaledTriangle(g, x, y, size, direction, isEnabled);
246 paintUnscaledTriangle(g, x, y, size, direction, isEnabled);
250 private void paintUnscaledTriangle(Graphics g, int x, int y, int size,
257 size = Math.max(size, 2);
258 mid = (size / 2) - 1;
268 for(i = 0; i < size; i++) {
280 for(i = size-1; i >= 0; i--) {
289 for(i = size-1; i >= 0; i--) {
295 for(i = 0; i < size; i++) {
307 for(i = size-1; i >= 0; i--) {
316 for(i = size-1; i >= 0; i--) {
326 private void paintScaledTriangle(Graphics g, double x, double y, double size,
328 size = Math.max(size, 2);
330 path.moveTo(-size, size / 2);
331 path.lineTo(size, size / 2);
332 path.lineTo(0, -size / 2);
339 double tx = x + size / 2;
340 double ty = y + size / 2;