scenic.path
Interface Segment

All Known Implementing Classes:
ArcSegment, CubicBezierSegment, CurvedSegment, LineSegment, QuadraticBezierSegment

public interface Segment

This is the base interface for different kinds of segments.


Method Summary
 void getBounds(java.awt.geom.AffineTransform transform, java.awt.Rectangle r, java.awt.geom.Point2D.Double position)
          Gets the bounds of this segment using the given transform.
 void walk(PathWalker walker, java.awt.geom.Point2D.Double position, java.awt.geom.AffineTransform error)
          Walks the given walker through this segment.
 

Method Detail

walk

void walk(PathWalker walker,
          java.awt.geom.Point2D.Double position,
          java.awt.geom.AffineTransform error)
Walks the given walker through this segment.

Parameters:
walker - the walker.
position - the start position.
error - the error matrix.

getBounds

void getBounds(java.awt.geom.AffineTransform transform,
               java.awt.Rectangle r,
               java.awt.geom.Point2D.Double position)
Gets the bounds of this segment using the given transform.

Parameters:
transform - the transform
r - the bounds.
position - the start position.