Inheritance diagram for FlexiblePatternCoordinateConverter:
Public Member Functions | |
FlexiblePatternCoordinateConverter (Region floatingRegion) | |
boolean | contains (StreamedPatternCoordinates coord) |
Override double | getArea () |
String | getRegionName () |
PercentageCoordinates | getRelativeLocation (StreamedPatternCoordinates coord) |
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.
Definition at line 28 of file FlexiblePatternCoordinateConverter.java.
FlexiblePatternCoordinateConverter | ( | Region | floatingRegion | ) |
floatingRegion |
Definition at line 53 of file FlexiblePatternCoordinateConverter.java.
References Region.getHeight(), Units.getValueInPatternDots(), and Region.getWidth().
boolean contains | ( | StreamedPatternCoordinates | coord | ) |
Implements PatternCoordinateConverter.
Definition at line 65 of file FlexiblePatternCoordinateConverter.java.
References StreamedPatternCoordinates.getXVal(), and StreamedPatternCoordinates.getYVal().
Override double getArea | ( | ) |
Implements PatternCoordinateConverter.
Definition at line 83 of file FlexiblePatternCoordinateConverter.java.