com.cosylab.vdct.graphics.objects
Class LayoutManager
java.lang.Object
com.cosylab.vdct.graphics.objects.LayoutManager
public class LayoutManager
- extends java.lang.Object
A simple manager that has info on empty spaces in the 2d plane. Uses n^2 space on a grid of variable density,
and supports filling in O(1), but no emptying.
- Author:
- ssah
Constructor Summary |
LayoutManager(int width,
int height,
int positionWidth,
int positionHeight,
int offsetX,
int offsetY)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutManager
public LayoutManager(int width,
int height,
int positionWidth,
int positionHeight,
int offsetX,
int offsetY)
- Parameters:
width
- height
- positionWidth
- positionHeight
- offsetX
- offsetY
-
getVacantPosition
public LayoutPosition getVacantPosition()
fillPosition
public void fillPosition(int posX,
int posY)