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, reclaimSegmentNode
public 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 IFigureManager
public int[] getSizes()
getSizes
in class IFigureManager
public boolean isThereUnprocessedFigures()
isThereUnprocessedFigures
in class IFigureManager
public void flush()
flush
in class IFigureManager
public SegmentNode addNewFigure(int code, RectangleNode pnew)
addNewFigure
in class IFigureManager
public void mergeFigures(int buget_size)
mergeFigures
in class IFigureManager
public void removeUselessSegments()
removeUselessSegments
in class IFigureManager