类 Trace


  • public class Trace
    extends Object
    Stroke
    作者:
    Chan Chung Kwong
    • 构造器详细资料

      • 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 points
        id - 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