FlexiblePatternCoordinateConverter Class Reference

Inheritance diagram for FlexiblePatternCoordinateConverter:

PatternCoordinateConverter List of all members.

Public Member Functions

 FlexiblePatternCoordinateConverter (Region floatingRegion)
boolean contains (StreamedPatternCoordinates coord)
Override double getArea ()
String getRegionName ()
PercentageCoordinates getRelativeLocation (StreamedPatternCoordinates coord)

Detailed Description

This coordinate converter will automatically move to wherever the anchor point is set, and will take on the width and height of its associated region. The anchor will be set to the first sample that comes in, if it is not otherwise set. Thus, this pattern coordinate converter can be easily changed at runtime.

Be careful if you have more than one of these in your paper application, as the first one encountered may consume the event before the other one sees if (if the two regions somehow become "overlapped"). Also, if you never set your anchor point, this region may opportunistically steal pen input from another region on your sheet, if it is encountered first by the EventEngine.

This software is distributed under the BSD License.

Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 28 of file FlexiblePatternCoordinateConverter.java.

Constructor & Destructor Documentation

FlexiblePatternCoordinateConverter ( Region  floatingRegion  ) 


Definition at line 53 of file FlexiblePatternCoordinateConverter.java.

References Region.getHeight(), Units.getValueInPatternDots(), and Region.getWidth().

Member Function Documentation

boolean contains ( StreamedPatternCoordinates  coord  ) 

See also:

Implements PatternCoordinateConverter.

Definition at line 65 of file FlexiblePatternCoordinateConverter.java.

References StreamedPatternCoordinates.getXVal(), and StreamedPatternCoordinates.getYVal().

Override double getArea (  ) 

the area, in pattern dots squared, of this patch.

Implements PatternCoordinateConverter.

Definition at line 83 of file FlexiblePatternCoordinateConverter.java.

The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:42 2007 for R3 Paper Toolkit by  doxygen 1.4.7