com.cosylab.vdct.graphics.objects
Class LayoutManager

java.lang.Object
  extended by 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)
           
 
Method Summary
 void fillPosition(int posX, int posY)
           
 LayoutPosition getVacantPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutManager

public LayoutManager(int width,
                     int height,
                     int positionWidth,
                     int positionHeight,
                     int offsetX,
                     int offsetY)
Parameters:
width -
height -
positionWidth -
positionHeight -
offsetX -
offsetY -
Method Detail

getVacantPosition

public LayoutPosition getVacantPosition()

fillPosition

public void fillPosition(int posX,
                         int posY)