public class RegionQuad<T extends Parallelogram> extends Quad<T>
bottomLeft, bottomRight, ELEMENT_COLOR, elementLimitPerQuad, elements, parent, QUAD_COLOR, topLeft, topRight| Constructor and Description |
|---|
RegionQuad(int elementLimit,
float x,
float y,
float width,
float height) |
RegionQuad(RegionQuad<T> parent,
float x,
float y,
float width,
float height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element) |
protected boolean |
addElementToChild(T element) |
List<T> |
getElements() |
void |
getElementsIntersectingLineSegment(Collection<T> result,
LineSegment lineSegment) |
List<T> |
getElementsIntersectingLineSegment(LineSegment lineSegment) |
void |
getElementsWithinRegion(Collection<T> result,
Parallelogram parallelogram) |
List<T> |
getElementsWithinRegion(Parallelogram parallelogram) |
boolean |
remove(T element) |
void |
render(Graphics g) |
protected void |
subdivide() |
addElement, getElementLimitPerQuad, getParent, getTotalQuads, positionChanged, removeElement, removeElementFromChildaddPostionChangeListener, contains, contains, contains, draw, getCenterX, getCenterY, getDistanceTo, getMaxX, getMaxY, getMinX, getMinY, getNumberOfSides, getRotation, intersection, intersects, intersects, intersects, intersects, removePositionChangeListener, rotate, rotateAround, set, set, set, setHeight, setRotation, setRotationAround, setWidth, setX, setYcontains, contains, getHeight, getWidth, getX, getY, merge, overlaps, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeight, getWidthgetX, getYpublic RegionQuad(int elementLimit,
float x,
float y,
float width,
float height)
public RegionQuad(RegionQuad<T> parent, float x, float y, float width, float height)
public void render(Graphics g)
render in class Quad<T extends Parallelogram>public boolean add(T element)
add in class Quad<T extends Parallelogram>protected boolean addElementToChild(T element)
addElementToChild in class Quad<T extends Parallelogram>protected void subdivide()
subdivide in class Quad<T extends Parallelogram>public boolean remove(T element)
remove in class Quad<T extends Parallelogram>public List<T> getElementsWithinRegion(Parallelogram parallelogram)
getElementsWithinRegion in class Quad<T extends Parallelogram>public void getElementsWithinRegion(Collection<T> result, Parallelogram parallelogram)
getElementsWithinRegion in class Quad<T extends Parallelogram>public List<T> getElementsIntersectingLineSegment(LineSegment lineSegment)
getElementsIntersectingLineSegment in class Quad<T extends Parallelogram>public void getElementsIntersectingLineSegment(Collection<T> result, LineSegment lineSegment)
getElementsIntersectingLineSegment in class Quad<T extends Parallelogram>public List<T> getElements()
getElements in class Quad<T extends Parallelogram>Copyright © 2014. All rights reserved.