|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.AbstractDrawingModelCache org.jdrawing.DefaultDrawingModelCache
Default implementation of DrawingModelCache
interface.
This implementation does not do any optimizations.
Constructor Summary | |
DefaultDrawingModelCache()
|
Method Summary | |
java.lang.Object[] |
getElementsForPoint(java.awt.geom.Point2D point)
Returns elements which contains a given point. |
java.lang.Object[] |
getElementsForRectangle(java.awt.geom.Rectangle2D rectangle)
Returns elements neccessary for repainting given area. |
java.awt.geom.Rectangle2D |
getModelBounds2D()
Returns the high precision bounding box of all elements of the model. |
Methods inherited from class org.jdrawing.AbstractDrawingModelCache |
addDrawingModelCacheListener, elementsAdded, elementsChanged, elementsRemoved, fireAreaChanged, fireDrawingChanged, getDrawingModelCacheListeners, getElementRenderer, getModel, getModelBounds, modelChanged, removeDrawingModelCacheListener, setElementRenderer, setModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultDrawingModelCache()
Method Detail |
public java.awt.geom.Rectangle2D getModelBounds2D()
public java.lang.Object[] getElementsForRectangle(java.awt.geom.Rectangle2D rectangle)
rectangle
- area that will be repainted
public java.lang.Object[] getElementsForPoint(java.awt.geom.Point2D point)
point
- the Point2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |