|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.network.ArrowInfo
public class ArrowInfo
箭头图形数据,可用于Link和ShapeNode
Field Summary | |
---|---|
float[] |
dashPattern
边线虚线样式 |
int |
fillColor
填充色 |
IShader |
fillShader
填充着色器,比如渐变 |
float |
height
高度,准确地说是y方向缩放比例 |
boolean |
isFrom
是否为起始端 |
Path |
path
箭头图形 |
twaver.core.util.GraphicsUtils.PositionInfo |
position
箭头位置 |
java.lang.String |
shape
箭头类型
Consts#SHAPE_***
|
Cap |
strokeCap
端点样式 |
int |
strokeColor
边线颜色 |
Join |
strokeJoin
拐点样式 |
float |
strokeWidth
边线宽度 |
float |
width
宽度,准确地说是x方向缩放比例 |
float |
xoffset
x偏移量,沿线方向 |
float |
yoffset
y方向偏移量,垂直线方向 |
Constructor Summary | |
---|---|
ArrowInfo()
|
|
ArrowInfo(IPathUI linkOrShapeNodeUI,
boolean isFrom)
箭头图形数据 |
Method Summary | |
---|---|
void |
drawArrow(Canvas canvas,
Paint paint)
绘制箭头 |
boolean |
validate(IPathUI shapeUI,
boolean isFrom)
生效箭头相关信息,默认会取网元的箭头相关样式 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isFrom
public Path path
public twaver.core.util.GraphicsUtils.PositionInfo position
public int fillColor
public IShader fillShader
public java.lang.String shape
Consts#SHAPE_***
Consts
public float xoffset
public float yoffset
public float width
public float height
public float strokeWidth
public float[] dashPattern
public int strokeColor
public Join strokeJoin
public Cap strokeCap
Constructor Detail |
---|
public ArrowInfo()
public ArrowInfo(IPathUI linkOrShapeNodeUI, boolean isFrom)
linkOrShapeNodeUI
- isFrom
- 位于起始端还是尾端Method Detail |
---|
public boolean validate(IPathUI shapeUI, boolean isFrom)
shapeUI
- isFrom
-
public void drawArrow(Canvas canvas, Paint paint)
canvas
- paint
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |