Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class BorderStrokeStyle extends java.lang.Object
Shape
.Modifier and Type | Field and Description |
---|---|
static BorderStrokeStyle |
DASHED
A predefined dashed pattern to be used for stroking
|
static BorderStrokeStyle |
DOTTED
A predefined dotted pattern to be used for stroking
|
static BorderStrokeStyle |
NONE
Indicates that no stroke should be drawn.
|
static BorderStrokeStyle |
SOLID
A predefined solid line to be used for stroking
|
Constructor and Description |
---|
BorderStrokeStyle(StrokeType type,
StrokeLineJoin lineJoin,
StrokeLineCap lineCap,
double miterLimit,
double dashOffset,
java.util.List<java.lang.Double> dashArray)
Creates a new BorderStrokeStyle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.Double> |
getDashArray() |
double |
getDashOffset() |
StrokeLineCap |
getLineCap() |
StrokeLineJoin |
getLineJoin() |
double |
getMiterLimit() |
StrokeType |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public static final BorderStrokeStyle NONE
public static final BorderStrokeStyle DOTTED
public static final BorderStrokeStyle DASHED
public static final BorderStrokeStyle SOLID
public BorderStrokeStyle(StrokeType type, StrokeLineJoin lineJoin, StrokeLineCap lineCap, double miterLimit, double dashOffset, java.util.List<java.lang.Double> dashArray)
type
- The type of stroke, whether rendered OUTSIDE, INSIDE, or CENTERED on the
border line. If null, defaults to CENTERED.lineJoin
- The line join. If null, defaults to MITERlineCap
- The line cap. If null, defaults to BUTT.miterLimit
- The miter limit. 10 is a good default value.dashOffset
- The dashOffset. 0 is a good default value.dashArray
- The dash array. If null, defaults to an empty list.public final StrokeType getType()
public final StrokeLineJoin getLineJoin()
public final StrokeLineCap getLineCap()
public final double getMiterLimit()
public final double getDashOffset()
public final java.util.List<java.lang.Double> getDashArray()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to