1 11 package org.eclipse.swt.graphics; 12 13 import org.eclipse.swt.*; 14 15 29 public class LineAttributes { 30 31 34 public float width; 35 36 46 public int style; 47 48 55 public int cap; 56 57 64 public int join; 65 66 69 public float[] dash; 70 71 74 public float dashOffset; 75 76 79 public float miterLimit; 80 81 86 public LineAttributes(float width) { 87 this(width, SWT.CAP_FLAT, SWT.JOIN_MITER, SWT.LINE_SOLID, null, 0, 10); 88 } 89 90 97 public LineAttributes(float width, int cap, int join) { 98 this(width, cap, join, SWT.LINE_SOLID, null, 0, 10); 99 } 100 101 112 public LineAttributes(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) { 113 this.width = width; 114 this.cap = cap; 115 this.join = join; 116 this.style = style; 117 this.dash = dash; 118 this.dashOffset = dashOffset; 119 this.miterLimit = miterLimit; 120 } 121 } 122 | Popular Tags |