A B C D E F G H I J L M N P R S T U W X Y

A

add(GraphicObject) - Method in class jdraw.GraphicObjectManager
Adds the specified graphic object to the list of managed objects.
alignment - Variable in class jdraw.graphicobjects.TextArea
The position of the text from the position of this object (a constant from SwingConstants like CENTER, SOUTH_EAST, ...).
ascent - Variable in class jdraw.graphicobjects.TextArea
The ascent of this text.

B

BACKGROUND - Static variable in class jdraw.ui.GraphicObjectCanvas
The background color.
bounding_box - Variable in class jdraw.graphicobjects.TextArea
The bounding box of this text.
buildCursor(String, Point, String) - Static method in class jdraw.ui.Misc
Buils a cursor from the specified image.

C

center - Variable in class jdraw.graphicobjects.Rectangle
The center of this rectangle.
center - Variable in class jdraw.graphicobjects.Ellipse
The center of this ellipse.
centerWindow(Window) - Static method in class jdraw.ui.Misc
Centers a window on the screen.
color - Variable in class jdraw.graphicobjects.GraphicObject
The color of this object.
CROSS_RADIUS - Static variable in class jdraw.graphicobjects.Point
The radius, in pixels, of the cross representing this point.
CURSOR - Static variable in class jdraw.graphicobjects.TextArea
The mouse cursor for this object.
CURSOR - Static variable in class jdraw.graphicobjects.Segment
The mouse cursor for this object.
CURSOR - Static variable in class jdraw.graphicobjects.Rectangle
The mouse cursor for this object.
CURSOR - Static variable in class jdraw.graphicobjects.Point
The mouse cursor for this object.
CURSOR - Static variable in class jdraw.graphicobjects.Ellipse
The mouse cursor for this object.

D

DUMMY_GRAPHIC_OBJECTS - Static variable in class jdraw.JDraw
Some dummy graphic objects.

E

Ellipse - class jdraw.graphicobjects.Ellipse.
An ellipse.
Ellipse(int, int, Color, int, int) - Constructor for class jdraw.graphicobjects.Ellipse
Creates a new Ellipse with specified position, color, width and height.

F

font - Variable in class jdraw.graphicobjects.TextArea
The font used to display the text.
FRIENDLY_NAME - Static variable in class jdraw.graphicobjects.TextArea
The friendly name of objects of this class.
FRIENDLY_NAME - Static variable in class jdraw.graphicobjects.Segment
The friendly name of objects of this class.
FRIENDLY_NAME - Static variable in class jdraw.graphicobjects.Rectangle
The friendly name of objects of this class.
FRIENDLY_NAME - Static variable in class jdraw.graphicobjects.Point
The friendly name of objects of this class.
FRIENDLY_NAME - Static variable in class jdraw.graphicobjects.Ellipse
The friendly name of objects of this class.

G

getAligment() - Method in class jdraw.graphicobjects.TextArea
Returns the position of the text from the position of this object (a constant from SwingConstants like CENTER, SOUTH_EAST, ...).
getBoundingBox() - Method in class jdraw.graphicobjects.TextArea
Returns the bounding box of this text area.
getBoundingBox() - Method in class jdraw.graphicobjects.SizedGraphicObject
Returns the bounding box of this graphic object.
getBoundingBox() - Method in class jdraw.graphicobjects.Point
Returns the bounding box of this point.
getBoundingBox() - Method in class jdraw.graphicobjects.GraphicObject
Returns the bounding box of this object.
getCenter() - Method in class jdraw.graphicobjects.Ellipse
Returns the center of this ellipse.
getClosestObject(Point) - Method in class jdraw.GraphicObjectManager
Returns the closest object to the specified point, with respect to distance thresold.
getColor() - Method in class jdraw.graphicobjects.GraphicObject
Returns the color of this object.
getCursor() - Method in class jdraw.graphicobjects.TextArea
Returns the mouse cursor for this object.
getCursor() - Method in class jdraw.graphicobjects.Segment
Returns the mouse cursor for this object.
getCursor() - Method in class jdraw.graphicobjects.Rectangle
Returns the mouse cursor for this object.
getCursor() - Method in class jdraw.graphicobjects.Point
Returns the mouse cursor for this object.
getCursor() - Method in class jdraw.graphicobjects.GraphicObject
Returns the mouse cursor for this object.
getCursor() - Method in class jdraw.graphicobjects.Ellipse
Returns the mouse cursor for this object.
getDistance(Point) - Method in class jdraw.graphicobjects.GraphicObject
Returns the minimal distance between this object and the specified point.
getDistanceSq(double, double, double, double) - Static method in class jdraw.graphicobjects.GraphicObject
Returns the square of the distance between two points, stated by their coordinates (doubles).
getDistanceSq(int, int, int, int) - Static method in class jdraw.graphicobjects.GraphicObject
Returns the square of the distance between two points, stated by their coordinates (integers).
getDistanceSq(Point) - Method in class jdraw.graphicobjects.TextArea
Returns the square of the minimal distance between this text area and the specified point.
getDistanceSq(Point) - Method in class jdraw.graphicobjects.Segment
Returns the square of the minimal distance between this segment and the specified point.
getDistanceSq(Point) - Method in class jdraw.graphicobjects.Rectangle
Returns the square of the minimal distance between this rectangle and the specified point.
getDistanceSq(Point) - Method in class jdraw.graphicobjects.Point
Returns the square of the minimal distance between this point and the specified point.
getDistanceSq(Point) - Method in class jdraw.graphicobjects.GraphicObject
Returns the square of the minimal distance between this object and the specified point.
getDistanceSq(Point) - Method in class jdraw.graphicobjects.Ellipse
Returns the square of the minimal distance between this ellipse and the specified point.
getDistanceThresold() - Method in class jdraw.GraphicObjectManager
Returns the distance thresold used to find closest objects.
getFont() - Method in class jdraw.graphicobjects.TextArea
Returns the font used to display the text.
getFontName() - Method in class jdraw.graphicobjects.TextArea
Returns name of the font used to display the text.
getFontSize() - Method in class jdraw.graphicobjects.TextArea
Returns the size of the font used to display the text.
getFontStyle() - Method in class jdraw.graphicobjects.TextArea
Returns the style of the font used to display the text.
getFriendlyName() - Method in class jdraw.graphicobjects.TextArea
Returns the friendly name of this text area.
getFriendlyName() - Method in class jdraw.graphicobjects.Segment
Returns the friendly name of this segment.
getFriendlyName() - Method in class jdraw.graphicobjects.Rectangle
Returns the friendly name of this retangle.
getFriendlyName() - Method in class jdraw.graphicobjects.Point
Returns the friendly name of this point.
getFriendlyName() - Method in class jdraw.graphicobjects.GraphicObject
Returns the friendly name of this object.
getFriendlyName() - Method in class jdraw.graphicobjects.Ellipse
Returns the friendly name of this ellipse.
getHeight() - Method in class jdraw.graphicobjects.SizedGraphicObject
Returns the height of this object.
getText() - Method in class jdraw.graphicobjects.TextArea
Returns the text to be displayed.
getWidth() - Method in class jdraw.graphicobjects.SizedGraphicObject
Returns the width of this object.
getX() - Method in class jdraw.graphicobjects.GraphicObject
Returns the abscissa of this object.
getXRadius() - Method in class jdraw.graphicobjects.Ellipse
Returns the X-axis radius of this ellipse.
getY() - Method in class jdraw.graphicobjects.GraphicObject
Returns the ordinate of this object.
getYRadius() - Method in class jdraw.graphicobjects.Ellipse
Returns the Y-axis radius of this ellipse.
graphic_object_manager - Variable in class jdraw.ui.GraphicObjectCanvas
The graphic objects manager.
graphic_objects - Variable in class jdraw.GraphicObjectManager
The collection containing the graphic objects.
GraphicObject - class jdraw.graphicobjects.GraphicObject.
The abstract parent class of all graphic objects.
GraphicObject(int, int, Color) - Constructor for class jdraw.graphicobjects.GraphicObject
Creates a new GraphicObject with specified position and color.
GraphicObjectCanvas - class jdraw.ui.GraphicObjectCanvas.
The component in which graphic objects are painted.
GraphicObjectCanvas(GraphicObjectManager) - Constructor for class jdraw.ui.GraphicObjectCanvas
Creates a new GraphicObjectCanvas object, which will display objects managed by the specified graphic object manager.
GraphicObjectManager - class jdraw.GraphicObjectManager.
A repository for graphic objects.
GraphicObjectManager() - Constructor for class jdraw.GraphicObjectManager
Creates a new empty GraphicObjectManager object.
GraphicObjectManager(GraphicObject[]) - Constructor for class jdraw.GraphicObjectManager
Creates a new GraphicObjectManager object, with the specified GraphicObjects.

H

height - Variable in class jdraw.graphicobjects.SizedGraphicObject
The height of this object.

I

iterator() - Method in class jdraw.GraphicObjectManager
Returns an iterator over the graphic objects managed.

J

jdraw - package jdraw
Root package of JDraw.
JDraw - class jdraw.JDraw.
The JDraw entry-point class.
jdraw.graphicobjects - package jdraw.graphicobjects
Package containing all the graphic objects managed by JDraw.
jdraw.ui - package jdraw.ui
Package containing all components and frames of the JDraw user interface.
JDraw() - Constructor for class jdraw.JDraw
This class is not intended to be instancied.

L

line - Variable in class jdraw.graphicobjects.Segment
The Line2D object used to compute distances.

M

main(String[]) - Static method in class jdraw.JDraw
The JDraw main function
MainFrame - class jdraw.ui.MainFrame.
The JDraw main frame.
MainFrame(GraphicObjectManager) - Constructor for class jdraw.ui.MainFrame
Creates a new MainFrame object.
Misc - class jdraw.ui.Misc.
A class for miscellaneous helper functions.
Misc() - Constructor for class jdraw.ui.Misc
This class is not intended to be instancied.

N

NODRAGANDDROPCURSOR - Static variable in class jdraw.ui.GraphicObjectCanvas
The mouse cursor for this object.

P

paint(Graphics) - Method in class jdraw.graphicobjects.TextArea
Paints this text area.
paint(Graphics) - Method in class jdraw.graphicobjects.Segment
Paints this segment.
paint(Graphics) - Method in class jdraw.graphicobjects.Rectangle
Paints this rectangle.
paint(Graphics) - Method in class jdraw.graphicobjects.Point
Paints this point.
paint(Graphics) - Method in class jdraw.graphicobjects.GraphicObject
Paints this object.
paint(Graphics) - Method in class jdraw.graphicobjects.Ellipse
Paints this ellipse.
paintComponent(Graphics) - Method in class jdraw.ui.GraphicObjectCanvas
Paints this component.
Point - class jdraw.graphicobjects.Point.
A point.
Point(int, int, Color) - Constructor for class jdraw.graphicobjects.Point
Creates a new Point with specified position and color.
PREFERRED_SIZE - Static variable in class jdraw.ui.MainFrame
The preferred size of this frame.

R

Rectangle - class jdraw.graphicobjects.Rectangle.
A rectangle.
Rectangle(int, int, Color, int, int) - Constructor for class jdraw.graphicobjects.Rectangle
Creates a new Rectangle with specified position, color, width and height.
remove(GraphicObject) - Method in class jdraw.GraphicObjectManager
Removes the specified graphic object to the list of managed objects.
right_line - Variable in class jdraw.graphicobjects.Rectangle
The Line2D object used to compute distances from right edge.

S

Segment - class jdraw.graphicobjects.Segment.
A segment.
Segment(int, int, Color, int, int) - Constructor for class jdraw.graphicobjects.Segment
Creates a new Segment with specified position, color, "width" and "height".
setLookAndFeel(Component, String) - Static method in class jdraw.ui.Misc
Sets the specified look and feel for the specified component tree.
SizedGraphicObject - class jdraw.graphicobjects.SizedGraphicObject.
A graphic object with width and height.
SizedGraphicObject(int, int, Color, int, int) - Constructor for class jdraw.graphicobjects.SizedGraphicObject
Creates a new SizedGraphicObject with specified position, color, width and height.
SQUARED_DISTANCE_THRESHOLD - Variable in class jdraw.GraphicObjectManager
The squared distance thresold, used to find the closest object.

T

text - Variable in class jdraw.graphicobjects.TextArea
The text to be displayed.
TextArea - class jdraw.graphicobjects.TextArea.
A text area.
TextArea(int, int, Color, String) - Constructor for class jdraw.graphicobjects.TextArea
Creates a new TextArea with specified position, color, text and default font, centered on both axis.
TextArea(int, int, Color, String, Font) - Constructor for class jdraw.graphicobjects.TextArea
Creates a new TextArea with specified position, color, text and font, centered on both axis.
TextArea(int, int, Color, String, Font, int) - Constructor for class jdraw.graphicobjects.TextArea
Creates a new TextArea with specified position, color, text, font and alignment.
TextArea(int, int, Color, String, int) - Constructor for class jdraw.graphicobjects.TextArea
Creates a new TextArea with specified position, color, text, alignment and default font.
top_line - Variable in class jdraw.graphicobjects.Rectangle
The Line2D object used to compute distances from top edge.

U

updateCachedData() - Method in class jdraw.graphicobjects.Segment
Invoked when cached data have to be updated.
updateCachedData() - Method in class jdraw.graphicobjects.Rectangle
Invoked when cached data have to be updated.
updateCachedData() - Method in class jdraw.graphicobjects.GraphicObject
Invoked when cached data have to be updated.
updateCachedData() - Method in class jdraw.graphicobjects.Ellipse
Invoked when cached data have to be updated.
updateCenter() - Method in class jdraw.graphicobjects.Ellipse
Updates the center of this ellipse.
updateRadii() - Method in class jdraw.graphicobjects.Ellipse
Updates the radii of this ellipse.

W

width - Variable in class jdraw.graphicobjects.SizedGraphicObject
The width of this object.

X

x - Variable in class jdraw.graphicobjects.GraphicObject
The abscissa of this object.
x_radius - Variable in class jdraw.graphicobjects.Ellipse
The X-axis radius of this ellipse.

Y

y - Variable in class jdraw.graphicobjects.GraphicObject
The ordinate of this object.
y_radius - Variable in class jdraw.graphicobjects.Ellipse
The Y-axis radius of this ellipse.

A B C D E F G H I J L M N P R S T U W X Y