Package whistlesAndMoans
Class NullFragmenter
java.lang.Object
whistlesAndMoans.NullFragmenter
- All Implemented Interfaces:
RegionFragmenter
the Null fragmenter doesn't break Connected Regions at all.
- Author:
- Doug
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
fragmentRegion
(ConnectedRegion connectedRegion) Fragment a connected regiongetFragment
(int fragment) Get a specific fragmentint
Get the number of fragments
-
Constructor Details
-
NullFragmenter
public NullFragmenter()
-
-
Method Details
-
fragmentRegion
Description copied from interface:RegionFragmenter
Fragment a connected region- Specified by:
fragmentRegion
in interfaceRegionFragmenter
- Parameters:
connectedRegion
- region to fragment- Returns:
- number of fragments.
-
getFragment
Description copied from interface:RegionFragmenter
Get a specific fragment- Specified by:
getFragment
in interfaceRegionFragmenter
- Parameters:
fragment
- fragment number (0 to getNumFragments);- Returns:
- the ith fragment
-
getNumFragments
public int getNumFragments()Description copied from interface:RegionFragmenter
Get the number of fragments- Specified by:
getNumFragments
in interfaceRegionFragmenter
- Returns:
- the number of fragments
-