|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Point | |
---|---|
twaver | |
twaver.model | |
twaver.model.attachment | |
twaver.network | |
twaver.network.interaction |
Uses of Point in twaver |
---|
Fields in twaver declared as Point | |
---|---|
Point[] |
PathSegment.points
坐标点 |
Methods in twaver that return Point | |
---|---|
Point |
Point.clone()
|
Point |
Rect.getCenter()
|
Point |
PathSegment.getControlPoint()
|
Point |
PathSegment.getFirstPoint()
|
Point |
Rect.getLocation()
|
Point |
PathSegment.getPoint()
|
Point |
Point.offset(double dx,
double dy)
偏移坐标 |
Point |
Point.offset(float dx,
float dy)
偏移坐标 |
Point |
Point.offset(Point offset)
偏移坐标 |
Point |
Point.translate(float dx,
float dy)
偏移坐标,与 offset(float, float) 相同 |
Methods in twaver with parameters of type Point | |
---|---|
void |
Rect.add(Point p)
添加点,扩大矩形范围 |
double |
Point.distance(Point p2)
两点距离 |
double |
PathSegment.getLength(Point prev)
路径长度 |
boolean |
Rect.intersects(Point point)
是否包含坐标点 |
boolean |
Rect.intersects(Point point,
float tolerance)
是否包含坐标点 |
Rect |
Rect.offset(Point p)
偏移矩形 |
Point |
Point.offset(Point offset)
偏移坐标 |
void |
Point.set(Point p)
设置坐标点位置 |
void |
Rect.set(Point location,
Size size)
设置矩形参数 |
Constructors in twaver with parameters of type Point | |
---|---|
PathSegment.LineSegment(Point p)
构造函数,设置路径坐标点 |
|
PathSegment.MoveSegment(Point p)
构造函数,设置路径坐标点 |
|
PathSegment(Point[] points,
int type)
构造函数,设置路径坐标点和,片段类型 |
|
PathSegment(Point point,
int type)
构造函数 |
|
Point(Point src)
构造函数 |
|
Rect(Point location,
Size size)
构造函数 |
Uses of Point in twaver.model |
---|
Fields in twaver.model declared as Point | |
---|---|
protected Point |
Node.location
节点坐标 |
Methods in twaver.model that return Point | |
---|---|
Point |
Node.getAnchorPoint()
获取挂载点坐标 |
Point |
Node.getLocation()
节点坐标 |
Methods in twaver.model with parameters of type Point | |
---|---|
boolean |
Node.setLocation(Point location)
设置节点坐标 |
Uses of Point in twaver.model.attachment |
---|
Fields in twaver.model.attachment declared as Point | |
---|---|
protected Point |
Attachment.offset
附件偏移量 |
Methods in twaver.model.attachment that return Point | |
---|---|
Point |
Attachment.getOffset()
获取偏移量 |
Methods in twaver.model.attachment with parameters of type Point | |
---|---|
void |
Attachment.setOffset(Point offset)
设置附件偏移量 |
Constructors in twaver.model.attachment with parameters of type Point | |
---|---|
ImageAttachment(java.lang.String name,
java.lang.Object image,
Point offset)
构造函数,图片附件,可用于在网元上挂载图片元素,对应的UI类是: ImageUI |
Uses of Point in twaver.network |
---|
Methods in twaver.network that return Point | |
---|---|
Point |
GroupUI.getAnchorPoint()
|
Point |
LinkUI.getLinkBundleOffset()
获取连线绑定偏移量 如果该连线不参与捆绑,或者连线没有展开,则返回null |
Point |
Network.getLogicalPoint(MotionEvent evt)
获取触摸事件所在拓扑图的逻辑坐标,会根据缩放比例和偏移量作转换 |
Point |
Network.getLogicalPoint(TouchEvent evt)
获取触摸事件所在拓扑图的逻辑坐标,会根据缩放比例和偏移量作转换 |
Point |
Network.getPointStyle(Element element,
java.lang.String name)
获取 Point 样式属性 |
Point |
Network.getTranslate()
获取当前拓扑图偏移量 |
Point |
Network.toLogicalPoint(float relativeScreenX,
float relativeScreenY)
根据屏幕坐标获取对应在拓扑图的逻辑坐标,会根据缩放比例和偏移量作转换 |
Point |
Network.toLogicalPoint(Point screenPoint)
根据屏幕坐标获取对应在拓扑图的逻辑坐标,会根据缩放比例和偏移量作转换 |
Point |
Network.toScreenPoint(float logicalX,
float logicalY)
逻辑坐标转换成屏幕坐标,比如网元节点设置位置(100, 100),通过这个方法可以获取该节点位于屏幕的坐标位置 |
Point |
Network.toScreenPoint(Point logicalPoint)
逻辑坐标转换成屏幕坐标,比如网元节点设置位置(100, 100),通过这个方法可以获取该节点位于屏幕的坐标位置 |
Methods in twaver.network with parameters of type Point | |
---|---|
Element |
Network.getElementAt(Point p)
获取逻辑坐标位置的网元,存在多个网元时,取最上面的一个 |
Element |
Network.getElementByScreenPoint(Point screenPoint)
获取屏幕指定位置相交的网元,如果该位置存在多个网元时,取最上面的一个,如果没有,返回null |
java.util.List<Element> |
Network.getElementsAt(Point p)
获取逻辑坐标位置所有相交的网元 |
java.util.List<Element> |
Network.getElementsByScreenPoint(Point screenPoint)
获取屏幕指定位置所有相交的网元 |
UI<?> |
ElementUI.hitTest(Point point)
获取该坐标点位置的UI元素,如果不与任何UI元素相交,则返回null |
boolean |
UI.intersect(Point point)
点相交 |
boolean |
ShapeUI.intersect(Point point)
|
boolean |
ImageUI.intersect(Point point)
|
boolean |
ElementUI.intersect(Point point)
是否与指定点相交 |
boolean |
IImage.intersect(Point point,
float width,
float height)
判断坐标点是否与图片相交 |
boolean |
Network.moveNodeTo(Node node,
Point location)
移动节点到某个位置 |
void |
Network.panByInertia(Point speed)
按惯性平移 |
Point |
Network.toLogicalPoint(Point screenPoint)
根据屏幕坐标获取对应在拓扑图的逻辑坐标,会根据缩放比例和偏移量作转换 |
Point |
Network.toScreenPoint(Point logicalPoint)
逻辑坐标转换成屏幕坐标,比如网元节点设置位置(100, 100),通过这个方法可以获取该节点位于屏幕的坐标位置 |
Method parameters in twaver.network with type arguments of type Point | |
---|---|
ImageButton |
Network.addPopupButton(int icon,
Action2<Element,Point> call,
java.lang.String tooltip)
添加弹出菜单项 |
ImageButton |
Network.addPopupButton(int icon,
Action2<Element,Point> call,
java.lang.String tooltip,
IFilter<Element> visibleFilter)
添加弹出菜单项 |
Link |
Network.createLinkByInteraction(Node from,
Node to,
java.util.List<Point> points)
创建连线,创建连线交互时会调用此方法,同时会派发创建网元交互事件 InteractionEvent.ELEMENT_CREATE |
ShapeNode |
Network.createShapeByInteraction(java.util.List<Point> points)
创建多边形,创建多边形交互时会调用此方法,同时会派发创建网元交互事件 InteractionEvent.ELEMENT_CREATE |
Uses of Point in twaver.network.interaction |
---|
Fields in twaver.network.interaction with type parameters of type Point | |
---|---|
protected java.util.List<Point> |
CreateShapeInteraction.points
当前拐点集合 |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |