public class ShapeLineStyle
Example:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Create a new shape of type Rectangle
Shape rectangle = new Shape(doc, ShapeType.RECTANGLE);
// Change stroke properties
Stroke stroke = rectangle.getStroke();
stroke.setOn(true);
stroke.setWeight(5.0);
stroke.setColor(Color.RED);
stroke.setDashStyle(DashStyle.SHORT_DASH_DOT_DOT);
stroke.setJoinStyle(JoinStyle.MITER);
stroke.setEndCap(EndCap.SQUARE);
stroke.setLineStyle(ShapeLineStyle.TRIPLE);
// Insert shape object
builder.insertNode(rectangle);
Field Summary | ||
---|---|---|
static final int | SINGLE | |
Single line.
|
||
static final int | DOUBLE | |
Double lines of equal width.
|
||
static final int | THICK_THIN | |
Double lines, one thick, one thin.
|
||
static final int | THIN_THICK | |
Double lines, one thin, one thick.
|
||
static final int | TRIPLE | |
Three lines, thin, thick, thin.
|
||
static final int | DEFAULT | |
Default value is |
public static final int SINGLE
public static final int DOUBLE
public static final int THICK_THIN
public static final int THIN_THICK
public static final int TRIPLE
public static final int DEFAULT