类 Trace
- java.lang.Object
-
- cc.chungkwong.mathocr.online.Trace
-
public class Trace extends Object
Stroke- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 Trace()Create a empty strokeTrace(String id)Create a empty strokeTrace(List<TracePoint> points)Create a strokeTrace(List<TracePoint> points, String id)Create a stroke
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BoundBoxgetBoundBox()TracePointgetEnd()StringgetId()List<TracePoint>getPoints()TracePointgetStart()voidinvalidBoundBox()Clear cached bounding boxStringtoString()
-
-
-
构造器详细资料
-
Trace
public Trace()
Create a empty stroke
-
Trace
public Trace(List<TracePoint> points)
Create a stroke- 参数:
points- underlying points
-
Trace
public Trace(String id)
Create a empty stroke- 参数:
id- ID
-
Trace
public Trace(List<TracePoint> points, String id)
Create a stroke- 参数:
points- underlying pointsid- ID
-
-
方法详细资料
-
getPoints
public List<TracePoint> getPoints()
- 返回:
- underlying points
-
getStart
public TracePoint getStart()
- 返回:
- first point
-
getEnd
public TracePoint getEnd()
- 返回:
- last point
-
getId
public String getId()
- 返回:
- ID
-
getBoundBox
public BoundBox getBoundBox()
- 返回:
- bounding box of the stroke(cached)
-
invalidBoundBox
public void invalidBoundBox()
Clear cached bounding box
-
-