A C D E F G I J L M O P R S T U

A

AbstractDrawingModel - class org.jdrawing.AbstractDrawingModel.
This abstract class provides default implementations for most of the methods in the DrawingModel interface.
AbstractDrawingModel() - Constructor for class org.jdrawing.AbstractDrawingModel
 
AbstractDrawingModelCache - class org.jdrawing.AbstractDrawingModelCache.
This abstract class provides default implementations for most of the methods in the DrawingModelCache interface.
AbstractDrawingModelCache() - Constructor for class org.jdrawing.AbstractDrawingModelCache
 
addDrawingModelCacheListener(DrawingModelCacheListener) - Method in class org.jdrawing.AbstractDrawingModelCache
Adds a listener which will be notified about changes in this model cache.
addDrawingModelCacheListener(DrawingModelCacheListener) - Method in interface org.jdrawing.DrawingModelCache
Adds a listener which will be notified about changes in this model cache.
addDrawingModelListener(DrawingModelListener) - Method in class org.jdrawing.AbstractDrawingModel
Adds a listener which will be notified about changes in this model.
addDrawingModelListener(DrawingModelListener) - Method in interface org.jdrawing.DrawingModel
Adds a listener which will be notified about changes in this model.
addElement(Object) - Method in class org.jdrawing.DefaultDrawingModel
Adds new element to the model.
addElement(Object) - Method in class org.jdrawing.LayeredDrawingModel
Adds new element to the model at layer zero.
addElement(Object, int) - Method in class org.jdrawing.LayeredDrawingModel
Adds new element to the model at given layer.
areaChanged(DrawingModelCacheEvent) - Method in class org.jdrawing.JDrawing
Invoked after some area of the drawing has changed in some way.
areaChanged(DrawingModelCacheEvent) - Method in interface org.jdrawing.event.DrawingModelCacheListener
Invoked after some area of the drawing has changed in some way.

C

CompoundDrawingElement - interface org.jdrawing.CompoundDrawingElement.
Interface for drawing elements which consist of several subelements.
contains(Point2D) - Method in interface org.jdrawing.DrawingElement
Tests if the element containes given point.

D

DefaultDrawingModel - class org.jdrawing.DefaultDrawingModel.
This is default implementation of DrawingModel interface.
DefaultDrawingModel() - Constructor for class org.jdrawing.DefaultDrawingModel
 
DefaultDrawingModelCache - class org.jdrawing.DefaultDrawingModelCache.
Default implementation of DrawingModelCache interface.
DefaultDrawingModelCache() - Constructor for class org.jdrawing.DefaultDrawingModelCache
 
DrawingElement - interface org.jdrawing.DrawingElement.
Interface for self-renderable drawing elements.
DrawingElementRenderer - interface org.jdrawing.DrawingElementRenderer.
Defines the requirements for an object that displays a drawing element.
DrawingModel - interface org.jdrawing.DrawingModel.
The interface that defines a suitable data model for a JDrawing.
DrawingModelCache - interface org.jdrawing.DrawingModelCache.
The interface that defines a model cache for JDrawing.
DrawingModelCacheEvent - class org.jdrawing.event.DrawingModelCacheEvent.
Encapsulates information describing changes to a drawing model cache, and used to notify drawing model cache listeners of the change.
DrawingModelCacheEvent(Object) - Constructor for class org.jdrawing.event.DrawingModelCacheEvent
Used to create an event when the drawing has changed in some way.
DrawingModelCacheEvent(Object, Rectangle) - Constructor for class org.jdrawing.event.DrawingModelCacheEvent
Used to create an event when some area of the drawing has changed in some way.
DrawingModelCacheListener - interface org.jdrawing.event.DrawingModelCacheListener.
Defines the interface for an object that listens to changes in a DrawingModelCache.
DrawingModelEvent - class org.jdrawing.event.DrawingModelEvent.
Encapsulates information describing changes to a drawing model, and used to notify drawing model listeners of the change.
DrawingModelEvent(Object) - Constructor for class org.jdrawing.event.DrawingModelEvent
Used to create an event when the model has changed in some way.
DrawingModelEvent(Object, Object[]) - Constructor for class org.jdrawing.event.DrawingModelEvent
Used to create an event when some elements of the model have been changed, inserted or removed.
DrawingModelListener - interface org.jdrawing.event.DrawingModelListener.
Defines the interface for an object that listens to changes in a DrawingModel.
drawingChanged(DrawingModelCacheEvent) - Method in class org.jdrawing.JDrawing
Invoked after the drawing has changed in some way.
drawingChanged(DrawingModelCacheEvent) - Method in interface org.jdrawing.event.DrawingModelCacheListener
Invoked after the drawing has changed in some way.

E

elementContains(Object, Point2D) - Method in interface org.jdrawing.DrawingElementRenderer
Tests if the given element contains the given point.
elementContains(Object, Point2D) - Method in class org.jdrawing.TransformingDrawingElementRenderer
Tests if the given element contains the given point.
elementIntersects(Object, Rectangle2D) - Method in interface org.jdrawing.DrawingElementRenderer
Tests if the given element intersects with the given rectangle.
elementIntersects(Object, Rectangle2D) - Method in class org.jdrawing.TransformingDrawingElementRenderer
Tests if the given element intersects with the given rectangle.
elements() - Method in interface org.jdrawing.CompoundDrawingElement
Returns an enumeration of subelements of the compound element.
elements() - Method in class org.jdrawing.DefaultDrawingModel
Returns an enumeration of the elements of this model.
elements() - Method in interface org.jdrawing.DrawingModel
Returns an enumeration of the elements of this model.
elements() - Method in class org.jdrawing.LayeredDrawingModel
Returns an enumeration of the elements of this model.
elementsAdded(DrawingModelEvent) - Method in class org.jdrawing.AbstractDrawingModelCache
Invoked after elements have been inserted into the model.
elementsAdded(DrawingModelEvent) - Method in class org.jdrawing.GridDrawingModelCache
Invoked after elements have been inserted into the model.
elementsAdded(DrawingModelEvent) - Method in interface org.jdrawing.event.DrawingModelListener
Invoked after elements have been inserted into the model.
elementsChanged(DrawingModelEvent) - Method in class org.jdrawing.AbstractDrawingModelCache
Invoked after elements have been changed in some way.
elementsChanged(DrawingModelEvent) - Method in class org.jdrawing.GridDrawingModelCache
Invoked after elements have been changed in some way.
elementsChanged(DrawingModelEvent) - Method in interface org.jdrawing.event.DrawingModelListener
Invoked after elements have been changed in some way.
elementsRemoved(DrawingModelEvent) - Method in class org.jdrawing.AbstractDrawingModelCache
Invoked after elements have been removed from the model.
elementsRemoved(DrawingModelEvent) - Method in class org.jdrawing.GridDrawingModelCache
Invoked after elements have been removed from the model.
elementsRemoved(DrawingModelEvent) - Method in interface org.jdrawing.event.DrawingModelListener
Invoked after elements have been removed from the model.

F

fireAreaChanged(Rectangle) - Method in class org.jdrawing.AbstractDrawingModelCache
Notifies all listeners that the area has changed in some way.
fireDrawingChanged() - Method in class org.jdrawing.AbstractDrawingModelCache
Notifies all listeners that the drawing has changed in some way.
fireElementsAdded(Object[]) - Method in class org.jdrawing.AbstractDrawingModel
Notifies all listeners that elements have been inserted.
fireElementsChanged(Object[]) - Method in class org.jdrawing.AbstractDrawingModel
Notifies all listeners that elements have been changed.
fireElementsRemoved(Object[]) - Method in class org.jdrawing.AbstractDrawingModel
Notifies all listeners that elements have been removed.
fireModelChanged() - Method in class org.jdrawing.AbstractDrawingModel
Notifies all listeners that the model has changed.

G

GridDrawingModelCache - class org.jdrawing.GridDrawingModelCache.
This implementation of DrawingModelCache optimizes drawing operations by splitting all the drawing area into rectangular cells and caching elements intersecting each cell.
GridDrawingModelCache() - Constructor for class org.jdrawing.GridDrawingModelCache
 
getArea() - Method in class org.jdrawing.event.DrawingModelCacheEvent
Returns the rectangular bounds of the changed area.
getBounds() - Method in interface org.jdrawing.DrawingElement
Returns bounding box of the element.
getBounds2D() - Method in interface org.jdrawing.DrawingElement
Returns high precision bounding box of the element.
getCellSize() - Method in class org.jdrawing.GridDrawingModelCache
Return size of cells used by this cache.
getDrawingModelCacheListeners() - Method in class org.jdrawing.AbstractDrawingModelCache
Returns an array of all the drawing model cache listeners registered on this model cache.
getDrawingModelListeners() - Method in class org.jdrawing.AbstractDrawingModel
Returns an array of all the drawing model listeners registered on this model.
getElementBounds(Object) - Method in interface org.jdrawing.DrawingElementRenderer
Gets the bounding box for the element.
getElementBounds(Object) - Method in class org.jdrawing.TransformingDrawingElementRenderer
Gets the bounding box for the element.
getElementBounds2D(Object) - Method in interface org.jdrawing.DrawingElementRenderer
Return the high precision bounding box of the element.
getElementBounds2D(Object) - Method in class org.jdrawing.TransformingDrawingElementRenderer
Return the high precision bounding box of the element.
getElementLayer(Object) - Method in class org.jdrawing.LayeredDrawingModel
Returns current layer of the element.
getElementRenderer() - Method in class org.jdrawing.AbstractDrawingModelCache
Returns the DrawingElementRenderer that is used by this cache.
getElementRenderer() - Method in class org.jdrawing.JDrawing
Returns the current DrawingElementRenderer that is rendering each element.
getElements() - Method in class org.jdrawing.event.DrawingModelEvent
Returns the elements.
getElementsForPoint(Point2D) - Method in class org.jdrawing.DefaultDrawingModelCache
Returns elements, which containes given point.
getElementsForPoint(Point2D) - Method in interface org.jdrawing.DrawingModelCache
Returns elements, which containes given point.
getElementsForPoint(Point2D) - Method in class org.jdrawing.GridDrawingModelCache
Returns elements, which containes given point.
getElementsForRectangle(Rectangle2D) - Method in class org.jdrawing.DefaultDrawingModelCache
Returns elements neccessary for repainting given area.
getElementsForRectangle(Rectangle2D) - Method in interface org.jdrawing.DrawingModelCache
Returns elements neccessary for repainting given area.
getElementsForRectangle(Rectangle2D) - Method in class org.jdrawing.GridDrawingModelCache
Returns elements neccessary for repainting given area.
getModel() - Method in class org.jdrawing.AbstractDrawingModelCache
Returns the DrawingModel that is cached by this cache.
getModel() - Method in class org.jdrawing.JDrawing
Returns the DrawingModel that is providing the data.
getModelBounds() - Method in class org.jdrawing.AbstractDrawingModelCache
Returns the bounding box of all elements of the model.
getModelBounds() - Method in interface org.jdrawing.DrawingModelCache
Returns the bounding box of all elements of the model.
getModelBounds2D() - Method in class org.jdrawing.DefaultDrawingModelCache
Returns the high precision bounding box of all elements of the model.
getModelBounds2D() - Method in interface org.jdrawing.DrawingModelCache
Returns the high precision bounding box of all elements of the model.
getModelBounds2D() - Method in class org.jdrawing.GridDrawingModelCache
Returns the high precision bounding box of all elements of the model.
getModelCache() - Method in class org.jdrawing.JDrawing
Returns the DrawingModelCache that is optimizing redrawing.
getOrigin() - Method in class org.jdrawing.JDrawing
Returnss the coordination of origin point of the drawing in to client coordinate space.
getRenderer() - Method in class org.jdrawing.TransformingDrawingElementRenderer
Gets the DrawingElementRenderer which is used by this renderer to delegate rendering requests to.
getTransform() - Method in class org.jdrawing.TransformingDrawingElementRenderer
Gets the AffineTransform used by this transforming renderer.

I

intersects(Rectangle2D) - Method in interface org.jdrawing.DrawingElement
Tests if the element intersects with the given rectangle.

J

JDrawing - class org.jdrawing.JDrawing.
A control that displays a set of graphical objects.
JDrawing() - Constructor for class org.jdrawing.JDrawing
Returns a JDrawing with an empty model.
JDrawing(DrawingModel) - Constructor for class org.jdrawing.JDrawing
Returns an instance of JDrawing which displays the specified model.

L

LayeredDrawingModel - class org.jdrawing.LayeredDrawingModel.
This implementation of DrawingModel interface allows user to specify layer for each element.
LayeredDrawingModel() - Constructor for class org.jdrawing.LayeredDrawingModel
 

M

modelChanged(DrawingModelEvent) - Method in class org.jdrawing.AbstractDrawingModelCache
Invoked after the model has drastically changed in some way.
modelChanged(DrawingModelEvent) - Method in class org.jdrawing.GridDrawingModelCache
Invoked after the model has drastically changed in some way.
modelChanged(DrawingModelEvent) - Method in interface org.jdrawing.event.DrawingModelListener
Invoked after the model has drastically changed in some way.

O

org.jdrawing - package org.jdrawing
Provides JDrawing class as well as related classes and interfaces.
org.jdrawing.event - package org.jdrawing.event
Provides event classes and listener interfaces that are used to react to events fired by JDrawing and related classes.

P

paint(Graphics) - Method in interface org.jdrawing.DrawingElement
Paint the element.
paintComponent(Graphics) - Method in class org.jdrawing.JDrawing
Paints this JDrawing component.
paintDrawingElement(Graphics, Object) - Method in interface org.jdrawing.DrawingElementRenderer
Paints the given element.
paintDrawingElement(Graphics, Object) - Method in class org.jdrawing.TransformingDrawingElementRenderer
Paints the given element.

R

removeDrawingModelCacheListener(DrawingModelCacheListener) - Method in class org.jdrawing.AbstractDrawingModelCache
Removes a listener from the list that is notified about changes in this model cache.
removeDrawingModelCacheListener(DrawingModelCacheListener) - Method in interface org.jdrawing.DrawingModelCache
Removes a listener from the list that is notified about changes in this model cache.
removeDrawingModelListener(DrawingModelListener) - Method in class org.jdrawing.AbstractDrawingModel
Removes a listener from the list that is notified about changes in this model.
removeDrawingModelListener(DrawingModelListener) - Method in interface org.jdrawing.DrawingModel
Removes a listener from the list that is notified about changes in this model.
removeElement(Object) - Method in class org.jdrawing.DefaultDrawingModel
Remove element from the model.
removeElement(Object) - Method in class org.jdrawing.LayeredDrawingModel
Remove element from the model.

S

setCellSize(Dimension2D) - Method in class org.jdrawing.GridDrawingModelCache
Set size for rectangular cells.
setElementLayer(Object, int) - Method in class org.jdrawing.LayeredDrawingModel
Sets layer for element.
setElementRenderer(DrawingElementRenderer) - Method in class org.jdrawing.AbstractDrawingModelCache
Sets the DrawingElementRenderer that will be used this cache.
setElementRenderer(DrawingElementRenderer) - Method in interface org.jdrawing.DrawingModelCache
Sets the DrawingElementRenderer that will be used this cache.
setElementRenderer(DrawingElementRenderer) - Method in class org.jdrawing.GridDrawingModelCache
Sets the DrawingElementRenderer that will be used this cache.
setElementRenderer(DrawingElementRenderer) - Method in class org.jdrawing.JDrawing
Sets the DrawingElementRenderer that will be used to draw each element.
setModel(DrawingModel) - Method in class org.jdrawing.AbstractDrawingModelCache
Sets the DrawingModel that will be cached by this cache.
setModel(DrawingModel) - Method in interface org.jdrawing.DrawingModelCache
Sets the DrawingModel that will be cached by this cache.
setModel(DrawingModel) - Method in class org.jdrawing.GridDrawingModelCache
Sets the DrawingModel that will be cached by this cache.
setModel(DrawingModel) - Method in class org.jdrawing.JDrawing
Sets the DrawingModel that will provide the data.
setModelCache(DrawingModelCache) - Method in class org.jdrawing.JDrawing
Sets the DrawingModelCache that will optimize redrawing.
setOrigin(Point) - Method in class org.jdrawing.JDrawing
Sets the coordination of origin point of the drawing in to client coordinate space.
sortElements(Object[]) - Method in class org.jdrawing.DefaultDrawingModel
Reorder elements to be in order suitable for painting.
sortElements(Object[]) - Method in interface org.jdrawing.DrawingModel
Reorder elements to be in order suitable for painting.
sortElements(Object[]) - Method in class org.jdrawing.LayeredDrawingModel
Reorder elements to be in order suitable for painting.

T

TransformingDrawingElementRenderer - class org.jdrawing.TransformingDrawingElementRenderer.
This implementation of DrawingElementRenderer allows user to apply affine transform to drawing.
TransformingDrawingElementRenderer(AffineTransform, DrawingElementRenderer) - Constructor for class org.jdrawing.TransformingDrawingElementRenderer
Returns a TransformingDrawingElementRenderer with given transform and renderer.

U

updateElement(Object) - Method in class org.jdrawing.DefaultDrawingModel
Notify all listeners that element has changed.
updateElement(Object) - Method in class org.jdrawing.LayeredDrawingModel
Notify all listeners that element has changed.

A C D E F G I J L M O P R S T U