edu.stanford.hci.r3.pattern.coordinates.conversion
Interface PatternCoordinateConverter

All Known Implementing Classes:
FlexiblePatternCoordinateConverter, TiledPatternCoordinateConverter

public interface PatternCoordinateConverter

Represents a 2D region of pattern. It can convert an incoming coordinate into a relative location on this patch of pattern.

This software is distributed under the BSD License.


Method Summary
 boolean contains(StreamedPatternCoordinates coord)
           
 double getArea()
           
 java.lang.String getRegionName()
           
 PercentageCoordinates getRelativeLocation(StreamedPatternCoordinates coord)
           
 

Method Detail

contains

boolean contains(StreamedPatternCoordinates coord)

getRegionName

java.lang.String getRegionName()

getRelativeLocation

PercentageCoordinates getRelativeLocation(StreamedPatternCoordinates coord)

getArea

double getArea()
Returns:
the area, in pattern dots squared, of this patch.

Copyright 2006 Stanford University