public class SpenLineStyleEffect extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ARROW_SIZE_BIG
Arrow size is big.
|
static int |
ARROW_SIZE_NORMAL
Arrow size is normal.
|
static int |
ARROW_SIZE_SMALL
Arrow size is small.
|
static int |
ARROW_TYPE_ARROW
Arrow type of a line is a normal arrow.
|
static int |
ARROW_TYPE_DIAMOND_ARROW
Arrow type of a line is a diamond arrow.
|
static int |
ARROW_TYPE_NONE
Don't have arrow
|
static int |
ARROW_TYPE_OPEN_ARROW
Arrow type of a line is a open arrow.
|
static int |
ARROW_TYPE_OVAL_ARROW
Arrow type of a line is a oval arrow.
|
static int |
ARROW_TYPE_STEALTH_ARROW
Arrow type of a line is a stealth arrow.
|
static int |
COMPOUND_TYPE_DOUBLE
Compound type of a line is double.
|
static int |
COMPOUND_TYPE_SIMPLE
Compound type of a line is simple.
|
static int |
COMPOUND_TYPE_TRIPLE
Compound type of a line is triple.
|
static int |
DASH_TYPE_DASH
Dash type of a line is dash.
|
static int |
DASH_TYPE_DASH_DOT
Dash type of a line is dash dot.
|
static int |
DASH_TYPE_LONG_DASH
Dash type of a line is long dash.
|
static int |
DASH_TYPE_LONG_DASH_DOT
Dash type of a line is long dash dot.
|
static int |
DASH_TYPE_LONG_DASH_DOT_DOT
Dash type of a line is long dash dot dot.
|
static int |
DASH_TYPE_ROUND_DOT
Dash type of a line is round dot.
|
static int |
DASH_TYPE_SOLID
Dash type of a line is solid.
|
static int |
DASH_TYPE_SQUARE_DOT
Dash type of a line is square dot.
|
| Constructor and Description |
|---|
SpenLineStyleEffect() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBeginArrowSize()
Get begin arrow size.
|
int |
getBeginArrowType()
Get begin arrow type.
|
int |
getCompoundType()
Get compound type of a line.
|
int |
getDashType()
Get dash type of a line.
|
int |
getEndArrowSize()
Get end arrow size.
|
int |
getEndArrowType()
Get end arrow type.
|
float |
getWidth()
Get width of a line.
|
void |
setBeginArrow(int type,
int size)
Set begin arrow type and size.
|
void |
setCompoundType(int type)
Set compound type of a line.
|
void |
setDashType(int type)
Set dash type of a line.
|
void |
setEndArrow(int type,
int size)
Set end arrow type and size.
|
void |
setWidth(float width)
Set width of a line.
|
public static final int COMPOUND_TYPE_SIMPLE
setCompoundType(int),
Constant Field Valuespublic static final int COMPOUND_TYPE_DOUBLE
setCompoundType(int),
Constant Field Valuespublic static final int COMPOUND_TYPE_TRIPLE
setCompoundType(int),
Constant Field Valuespublic static final int DASH_TYPE_SOLID
public static final int DASH_TYPE_ROUND_DOT
public static final int DASH_TYPE_SQUARE_DOT
public static final int DASH_TYPE_DASH
public static final int DASH_TYPE_DASH_DOT
public static final int DASH_TYPE_LONG_DASH
public static final int DASH_TYPE_LONG_DASH_DOT
public static final int DASH_TYPE_LONG_DASH_DOT_DOT
public static final int ARROW_TYPE_NONE
public static final int ARROW_TYPE_ARROW
public static final int ARROW_TYPE_OPEN_ARROW
public static final int ARROW_TYPE_STEALTH_ARROW
public static final int ARROW_TYPE_DIAMOND_ARROW
public static final int ARROW_TYPE_OVAL_ARROW
public static final int ARROW_SIZE_NORMAL
public static final int ARROW_SIZE_SMALL
public static final int ARROW_SIZE_BIG
public void setWidth(float width)
width - Line width. The value of width should not be too big.width is negative, it will be set to 0.getWidth()public float getWidth()
setWidth(float)public void setCompoundType(int type)
SpenObjectLine supports a compound type of COMPOUND_TYPE_SIMPLE only. COMPOUND_TYPE_SIMPLE.type - Compound type.IllegalArgumentException - Thrown if the type is not COMPOUND_TYPE_SIMPLE, COMPOUND_TYPE_DOUBLE
or COMPOUND_TYPE_TRIPLE.getCompoundType()public int getCompoundType()
setCompoundType(int)public void setDashType(int type)
type - Dash type.getDashType()public int getDashType()
setDashType(int)public void setBeginArrow(int type,
int size)
type - Arrow type.size - Arrow size.getBeginArrowType(),
getBeginArrowSize()public int getBeginArrowType()
setBeginArrow(int, int),
getBeginArrowSize()public int getBeginArrowSize()
setBeginArrow(int, int),
getBeginArrowType()public void setEndArrow(int type,
int size)
type - Arrow type.size - Arrow size.getEndArrowType(),
getEndArrowSize()public int getEndArrowType()
setEndArrow(int, int),
getEndArrowSize()public int getEndArrowSize()
setEndArrow(int, int),
getEndArrowType()