public class GeometricManager extends IFigureManager
| Modifier and Type | Field and Description |
|---|---|
static int |
Divisions |
static int |
MANY_TO_MANY |
static int |
ONE_TO_ONE |
static int |
Undefined_Mapping |
| Constructor and Description |
|---|
GeometricManager() |
| Modifier and Type | Method and Description |
|---|---|
SegmentNode |
addNewFigure(int code,
RectangleNode pnew)
Insert a new figure into this manager if it is not covered by any exisiting figure.
|
void |
flush()
Remove the new labels for all the figures.
|
SegmentNode[] |
getFigures() |
int[] |
getSizes() |
boolean |
isThereUnprocessedFigures() |
void |
mergeFigures(int buget_size)
Merge the set of objects in the same category into one.
|
void |
removeUselessSegments()
The lines that are included in some rectangles can be deleted.
|
cleanCache, getRectangleNode, getSegmentNode, reclaimRectangleNode, reclaimSegmentNodepublic static final int Divisions
public static final int ONE_TO_ONE
public static final int MANY_TO_MANY
public static final int Undefined_Mapping
public SegmentNode[] getFigures()
getFigures in class IFigureManagerpublic int[] getSizes()
getSizes in class IFigureManagerpublic boolean isThereUnprocessedFigures()
isThereUnprocessedFigures in class IFigureManagerpublic void flush()
flush in class IFigureManagerpublic SegmentNode addNewFigure(int code, RectangleNode pnew)
addNewFigure in class IFigureManagerpublic void mergeFigures(int buget_size)
mergeFigures in class IFigureManagerpublic void removeUselessSegments()
removeUselessSegments in class IFigureManager