Back to index

moin  1.9.0~rc2
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
CH.ifa.draw.standard.StandardDrawingView Class Reference

The standard implementation of DrawingView. More...

Collaboration diagram for CH.ifa.draw.standard.StandardDrawingView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StandardDrawingView (DrawingEditor editor, int width, int height)
 Constructs the view.
void setEditor (DrawingEditor editor)
 Sets the view's editor.
Tool tool ()
 Gets the current tool.
Drawing drawing ()
 Gets the drawing.
void setDrawing (Drawing d)
 Sets and installs another drawing in the view.
DrawingEditor editor ()
 Gets the editor.
Figure add (Figure figure)
 Adds a figure to the drawing.
Figure remove (Figure figure)
 Removes a figure from the drawing.
void addAll (Vector figures)
 Adds a vector of figures to the drawing.
Dimension getMinimumSize ()
 Gets the minimum dimension of the drawing.
Dimension getPreferredSize ()
 Gets the preferred dimension of the drawing.
void setDisplayUpdate (Painter updateStrategy)
 Sets the current display update strategy.
Vector selection ()
 Gets the currently selected figures.
FigureEnumeration selectionElements ()
 Gets an enumeration over the currently selected figures.
Vector selectionZOrdered ()
 Gets the currently selected figures in Z order.
int selectionCount ()
 Gets the number of selected figures.
void addToSelection (Figure figure)
 Adds a figure to the current selection.
void addToSelectionAll (Vector figures)
 Adds a vector of figures to the current selection.
void removeFromSelection (Figure figure)
 Removes a figure from the selection.
void toggleSelection (Figure figure)
 If a figure isn't selected it is added to the selection.
void clearSelection ()
 Clears the current selection.
FigureSelection getFigureSelection ()
 Gets the current selection as a FigureSelection.
void moveSelection (int dx, int dy)
 Move current selection by dx and dy.
Handle findHandle (int x, int y)
 Finds a handle at the given coordinates.
Point lastClick ()
 Gets the position of the last click inside the view.
void setConstrainer (PointConstrainer c)
 Sets the grid spacing that is used to constrain points.
PointConstrainer getConstrainer ()
 Gets the current constrainer.
void mousePressed (MouseEvent e)
 Handles mouse down events.
void mouseDragged (MouseEvent e)
 Handles mouse drag events.
void mouseMoved (MouseEvent e)
 Handles mouse move events.
void mouseReleased (MouseEvent e)
 Handles mouse up events.
void keyPressed (KeyEvent e)
 Handles key down events.
synchronized void checkDamage ()
 Refreshes the drawing if there is some accumulated damage.
void repairDamage ()
void drawingInvalidated (DrawingChangeEvent e)
void drawingRequestUpdate (DrawingChangeEvent e)
void update (Graphics g)
 Updates the drawing view.
void paint (Graphics g)
 Paints the drawing view.
void drawAll (Graphics g)
 Draws the contents of the drawing view.
void drawHandles (Graphics g)
 Draws the currently active handles.
void drawDrawing (Graphics g, boolean showGuides)
 Draws the drawing.
void drawBackground (Graphics g)
 Draws the background.
void addBackground (Painter painter)
 Adds a background.
void removeBackground (Painter painter)
 Removes a background.
void removeForeground (Painter painter)
 Removes a foreground.
void addForeground (Painter painter)
 Adds a foreground.
void freezeView ()
 Freezes the view by acquiring the drawing lock.
void unfreezeView ()
 Unfreezes the view by releasing the drawing lock.
boolean isFocusTraversable ()
void enableGuides (boolean enable)
boolean guidesEnabled ()
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void mouseClicked (MouseEvent e)
void keyTyped (KeyEvent e)
void keyReleased (KeyEvent e)

Protected Member Functions

void selectionChanged ()
 Informs that the current selection changed.
Point constrainPoint (Point p)
 Constrains a point to the current grid.
void handleCursorKey (int key)
 Handles cursor keys by moving all the selected figures one grid point in the cursor direction.

Private Member Functions

Enumeration selectionHandles ()
 Gets an enumeration of the currently active handles.
void drawPainters (Graphics g, Vector v)
void readObject (ObjectInputStream s) throws ClassNotFoundException, IOException
Dimension getDrawingSize ()
void checkMinimumSize ()
 Bloat the drawing if necessary to contain all objects.

Private Attributes

transient DrawingEditor fEditor
 The DrawingEditor of the view.
Drawing fDrawing
 The shown drawing.
transient Rectangle fDamage = null
 the accumulated damaged area
transient Vector fSelection
 The list of currently selected figures.
transient Vector fSelectionHandles
 The shown selection handles.
Dimension fViewSize
 The preferred size of the view.
Point fLastClick
 The position of the last mouse click inside the view.
Vector fBackgrounds = null
 A vector of optional backgrounds.
Vector fForegrounds = null
 A vector of optional foregrounds.
Painter fUpdateStrategy
 The update strategy used to repair the view.
PointConstrainer fConstrainer
 The grid used to constrain points for snap to grid functionality.
boolean showGuides
int drawingViewSerializedDataVersion = 1

Static Private Attributes

static final long serialVersionUID = -3878153366174603336L

Detailed Description

The standard implementation of DrawingView.

See also:
DrawingView
Painter
Tool

Definition at line 22 of file StandardDrawingView.java.


Constructor & Destructor Documentation

CH.ifa.draw.standard.StandardDrawingView.StandardDrawingView ( DrawingEditor  editor,
int  width,
int  height 
) [inline]

Constructs the view.

Definition at line 105 of file StandardDrawingView.java.

                                                                            {
        fEditor = editor;
        fViewSize = new Dimension(width,height);
        fLastClick = new Point(0, 0);
        fConstrainer = null;
        fSelection = new Vector();
       showGuides = true;
        setDisplayUpdate(new BufferedUpdateStrategy());
        setBackground(Color.lightGray);

        addMouseListener(this);
        addMouseMotionListener(this);
        addKeyListener(this);
    }

Here is the call graph for this function:


Member Function Documentation

Figure CH.ifa.draw.standard.StandardDrawingView.add ( Figure  figure) [inline]

Adds a figure to the drawing.

Returns:
the added figure.

Definition at line 168 of file StandardDrawingView.java.

                                     {
        return drawing().add(figure);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.addAll ( Vector  figures) [inline]

Adds a vector of figures to the drawing.

Definition at line 183 of file StandardDrawingView.java.

                                       {
        FigureEnumeration k = new FigureEnumerator(figures);
        while (k.hasMoreElements())
            add(k.nextFigure());
    }

Here is the call graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.addBackground ( Painter  painter) [inline]

Adds a background.

Definition at line 610 of file StandardDrawingView.java.

                                                {
        if (fBackgrounds == null)
            fBackgrounds = new Vector(3);
        fBackgrounds.addElement(painter);
        repaint();
    }
void CH.ifa.draw.standard.StandardDrawingView.addForeground ( Painter  painter) [inline]

Adds a foreground.

Definition at line 638 of file StandardDrawingView.java.

                                                {
        if (fForegrounds == null)
            fForegrounds = new Vector(3);
        fForegrounds.addElement(painter);
        repaint();
    }

Adds a figure to the current selection.

Definition at line 257 of file StandardDrawingView.java.

                                              {
        if (!fSelection.contains(figure)) {
            fSelection.addElement(figure);
            fSelectionHandles = null;
            figure.invalidate();
            selectionChanged();
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Adds a vector of figures to the current selection.

Definition at line 269 of file StandardDrawingView.java.

                                                  {
        FigureEnumeration k = new FigureEnumerator(figures);
        while (k.hasMoreElements())
            addToSelection(k.nextFigure());
    }

Here is the call graph for this function:

Refreshes the drawing if there is some accumulated damage.

Definition at line 514 of file StandardDrawingView.java.

                                           {
        Enumeration each = drawing().drawingChangeListeners();
        while (each.hasMoreElements()) {
            Object l = each.nextElement();
            if (l instanceof DrawingView) {
                ((DrawingView)l).repairDamage();
            }
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Bloat the drawing if necessary to contain all objects.

Do not shrink it, though!

Definition at line 686 of file StandardDrawingView.java.

                                    {
        Dimension d = getDrawingSize();
       boolean bloat = false;
        if (fViewSize.height < d.height) {
            fViewSize.height = d.height+10;
           bloat = true;
       }
       if (fViewSize.width < d.width) {
            fViewSize.width = d.width+10;
           bloat = true;
       }
       if (bloat)
            setSize(fViewSize);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Clears the current selection.

Definition at line 302 of file StandardDrawingView.java.

                                 {
        Figure figure;

        FigureEnumeration k = selectionElements();

        while (k.hasMoreElements())
            k.nextFigure().invalidate();
        fSelection = new Vector();
        fSelectionHandles = null;
        selectionChanged();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Point CH.ifa.draw.standard.StandardDrawingView.constrainPoint ( Point  p) [inline, protected]

Constrains a point to the current grid.

Definition at line 403 of file StandardDrawingView.java.

                                            {
        // constrin to view size
        Dimension size = getSize();
        //p.x = Math.min(size.width, Math.max(1, p.x));
        //p.y = Math.min(size.height, Math.max(1, p.y));
        p.x = Geom.range(1, size.width, p.x);
        p.y = Geom.range(1, size.height, p.y);

        if (fConstrainer != null )
            return fConstrainer.constrainPoint(p);
        return p;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.drawAll ( Graphics  g) [inline]

Draws the contents of the drawing view.

The view has three layers: background, drawing, handles. The layers are drawn in back to front order.

Definition at line 564 of file StandardDrawingView.java.

                                    {
       boolean isPrinting = (g instanceof PrintGraphics);
        drawBackground(g);
        if (fBackgrounds != null && !isPrinting)
            drawPainters(g, fBackgrounds);
        drawDrawing(g, showGuides);
        if (fForegrounds != null && !isPrinting)
            drawPainters(g, fForegrounds);
        if (!isPrinting)
            drawHandles(g);
    }

Here is the call graph for this function:

Draws the background.

If a background pattern is set it is used to fill the background. Otherwise the background is filled in the background color.

Definition at line 597 of file StandardDrawingView.java.

                                           {
        g.setColor(getBackground());
        g.fillRect(0, 0, getBounds().width, getBounds().height);
    }

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.drawDrawing ( Graphics  g,
boolean  showGuides 
) [inline]

Draws the drawing.

Definition at line 588 of file StandardDrawingView.java.

                                                            {
        fDrawing.draw(g, showGuides);
    }

Here is the caller graph for this function:

Draws the currently active handles.

Definition at line 579 of file StandardDrawingView.java.

                                        {
        Enumeration k = selectionHandles();
        while (k.hasMoreElements())
            ((Handle) k.nextElement()).draw(g);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the drawing.

Definition at line 137 of file StandardDrawingView.java.

                             {
        return fDrawing;
    }

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.drawingInvalidated ( DrawingChangeEvent  e) [inline]

Definition at line 531 of file StandardDrawingView.java.

                                                         {
        Rectangle r = e.getInvalidatedRectangle();
        if (fDamage == null)
            fDamage = r;
        else
            fDamage.add(r);
    }
void CH.ifa.draw.standard.StandardDrawingView.drawingRequestUpdate ( DrawingChangeEvent  e) [inline]

Definition at line 539 of file StandardDrawingView.java.

                                                           {
        repairDamage();
    }

Here is the call graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.drawPainters ( Graphics  g,
Vector  v 
) [inline, private]

Definition at line 602 of file StandardDrawingView.java.

                                                    {
        for (int i = 0; i < v.size(); i++)
            ((Painter)v.elementAt(i)).draw(g, this);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the editor.

Definition at line 160 of file StandardDrawingView.java.

                                  {
        return fEditor;
    }

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.enableGuides ( boolean  enable) [inline]

Definition at line 705 of file StandardDrawingView.java.

                                             {
       showGuides = enable;
    }
Handle CH.ifa.draw.standard.StandardDrawingView.findHandle ( int  x,
int  y 
) [inline]

Finds a handle at the given coordinates.

Returns:
the hit handle, null if no handle is found.

Definition at line 358 of file StandardDrawingView.java.

                                           {
        Handle handle;

        Enumeration k = selectionHandles();
        while (k.hasMoreElements()) {
            handle = (Handle) k.nextElement();
            if (handle.containsPoint(x, y))
                return handle;
        }
        return null;
    }

Here is the call graph for this function:

Freezes the view by acquiring the drawing lock.

See also:
Drawing::lock

Definition at line 649 of file StandardDrawingView.java.

                             {
        drawing().lock();
    }

Here is the call graph for this function:

Gets the current constrainer.

Definition at line 396 of file StandardDrawingView.java.

                                             {
        return fConstrainer;
    }

Definition at line 671 of file StandardDrawingView.java.

                                       {
        FigureEnumeration k = drawing().figures();
        Dimension d = new Dimension(0, 0);
        while (k.hasMoreElements()) {
            Rectangle r = k.nextFigure().displayBox();
            d.width = Math.max(d.width, r.x+r.width);
            d.height = Math.max(d.height, r.y+r.height);
        }
       return d;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the current selection as a FigureSelection.

A FigureSelection can be cut, copied, pasted.

Definition at line 335 of file StandardDrawingView.java.

                                                {
        return new FigureSelection(selectionZOrdered());
    }

Here is the call graph for this function:

Gets the minimum dimension of the drawing.

Definition at line 192 of file StandardDrawingView.java.

                                      {
        return fViewSize;
    }

Here is the caller graph for this function:

Gets the preferred dimension of the drawing.

Definition at line 199 of file StandardDrawingView.java.

                                        {
        return getMinimumSize();
    }

Here is the call graph for this function:

Definition at line 709 of file StandardDrawingView.java.

                                   {
       return showGuides;
    }
void CH.ifa.draw.standard.StandardDrawingView.handleCursorKey ( int  key) [inline, protected]

Handles cursor keys by moving all the selected figures one grid point in the cursor direction.

Definition at line 485 of file StandardDrawingView.java.

                                            {
        int dx = 0, dy = 0;
        int stepX = 1, stepY = 1;
        // should consider Null Object.
        if (fConstrainer != null) {
            stepX = fConstrainer.getStepX();
            stepY = fConstrainer.getStepY();
        }

        switch (key) {
        case KeyEvent.VK_DOWN:
            dy = stepY;
            break;
        case KeyEvent.VK_UP:
            dy = -stepY;
            break;
        case KeyEvent.VK_RIGHT:
            dx = stepX;
            break;
        case KeyEvent.VK_LEFT:
            dx = -stepX;
            break;
        }
        moveSelection(dx, dy);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 701 of file StandardDrawingView.java.

                                        {
        return true;
    }

Handles key down events.

Cursor keys are handled by the view the other key events are delegated to the currently active tool.

Returns:
whether the event was handled.

Definition at line 467 of file StandardDrawingView.java.

                                       {
        int code = e.getKeyCode();
        if ((code == KeyEvent.VK_BACK_SPACE) || (code == KeyEvent.VK_DELETE)) {
            Command cmd = new DeleteCommand("Delete", this);
            cmd.execute();
        } else if (code == KeyEvent.VK_DOWN || code == KeyEvent.VK_UP ||
            code == KeyEvent.VK_RIGHT || code == KeyEvent.VK_LEFT) {
            handleCursorKey(code);
        } else {
            tool().keyDown(e, code);
        }
        checkDamage();
    }

Here is the call graph for this function:

Definition at line 718 of file StandardDrawingView.java.

{}

Definition at line 717 of file StandardDrawingView.java.

{}

Gets the position of the last click inside the view.

Definition at line 382 of file StandardDrawingView.java.

                             {
        return fLastClick;
    }

Definition at line 716 of file StandardDrawingView.java.

{}

Handles mouse drag events.

The event is delegated to the currently active tool.

Returns:
whether the event was handled.

Definition at line 434 of file StandardDrawingView.java.

                                           {
        Point p = constrainPoint(new Point(e.getX(), e.getY()));
        tool().mouseDrag(e, p.x, p.y);
        checkDamage();
    }

Here is the call graph for this function:

Definition at line 714 of file StandardDrawingView.java.

{}

Definition at line 715 of file StandardDrawingView.java.

{}
void CH.ifa.draw.standard.StandardDrawingView.mouseMoved ( MouseEvent  e) [inline]

Handles mouse move events.

The event is delegated to the currently active tool.

Returns:
whether the event was handled.

Definition at line 445 of file StandardDrawingView.java.

                                         {
        tool().mouseMove(e, e.getX(), e.getY());
    }

Here is the call graph for this function:

Handles mouse down events.

The event is delegated to the currently active tool.

Returns:
whether the event was handled.

Definition at line 421 of file StandardDrawingView.java.

                                           {
        requestFocus(); // JDK1.1
        Point p = constrainPoint(new Point(e.getX(), e.getY()));
        fLastClick = new Point(e.getX(), e.getY());
        tool().mouseDown(e, p.x, p.y);
        checkDamage();
    }

Here is the call graph for this function:

Handles mouse up events.

The event is delegated to the currently active tool.

Returns:
whether the event was handled.

Definition at line 454 of file StandardDrawingView.java.

                                            {
        Point p = constrainPoint(new Point(e.getX(), e.getY()));
        tool().mouseUp(e, p.x, p.y);
        checkDamage();
       checkMinimumSize();
    }

Here is the call graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.moveSelection ( int  dx,
int  dy 
) [inline]

Move current selection by dx and dy.

Definition at line 342 of file StandardDrawingView.java.

                                              {
        FigureEnumeration figures = selectionElements();
        while (figures.hasMoreElements()) {
            Figure fig = figures.nextFigure();
            Figure obsrvd = (Figure) fig.getAttribute("observed.figure");
            if (obsrvd == null || !figures.contains(obsrvd)){
                fig.moveBy(dx, dy);
            }
        }
        checkDamage();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.paint ( Graphics  g) [inline]

Paints the drawing view.

The actual drawing is delegated to the current update strategy.

See also:
Painter

Definition at line 555 of file StandardDrawingView.java.

                                  {
        fUpdateStrategy.draw(g, this);
    }

Here is the caller graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.readObject ( ObjectInputStream  s) throws ClassNotFoundException, IOException [inline, private]

Definition at line 661 of file StandardDrawingView.java.

                                                   {

        s.defaultReadObject();

        fSelection = new Vector(); // could use lazy initialization instead
        if (fDrawing != null)
            fDrawing.addDrawingChangeListener(this);
    }
Figure CH.ifa.draw.standard.StandardDrawingView.remove ( Figure  figure) [inline]

Removes a figure from the drawing.

Returns:
the removed figure

Definition at line 176 of file StandardDrawingView.java.

                                        {
        return drawing().remove(figure);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Removes a background.

Definition at line 620 of file StandardDrawingView.java.

                                                   {
        if (fBackgrounds != null)
            fBackgrounds.removeElement(painter);
        repaint();
    }

Removes a foreground.

Definition at line 629 of file StandardDrawingView.java.

                                                   {
        if (fForegrounds != null)
            fForegrounds.removeElement(painter);
        repaint();
    }

Removes a figure from the selection.

Definition at line 278 of file StandardDrawingView.java.

                                                   {
        if (fSelection.contains(figure)) {
            fSelection.removeElement(figure);
            fSelectionHandles = null;
            figure.invalidate();
            selectionChanged();
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 524 of file StandardDrawingView.java.

                               {
        if (fDamage != null) {
            repaint(fDamage.x, fDamage.y, fDamage.width, fDamage.height);
            fDamage = null;
        }
    }

Here is the caller graph for this function:

Gets the currently selected figures.

Returns:
a vector with the selected figures. The vector is a copy of the current selection.

Definition at line 216 of file StandardDrawingView.java.

                              {
        // protect the vector with the current selection
        return (Vector)fSelection.clone();
    }

Informs that the current selection changed.

By default this event is forwarded to the drawing editor.

Definition at line 375 of file StandardDrawingView.java.

                                      {
        fEditor.selectionChanged(this);
    }

Here is the caller graph for this function:

Gets the number of selected figures.

Definition at line 250 of file StandardDrawingView.java.

                                {
        return fSelection.size();
    }

Gets an enumeration over the currently selected figures.

Definition at line 224 of file StandardDrawingView.java.

                                                 {
        return new FigureEnumerator(fSelection);
    }

Here is the caller graph for this function:

Gets an enumeration of the currently active handles.

Definition at line 317 of file StandardDrawingView.java.

                                           {
        if (fSelectionHandles == null) {
            fSelectionHandles = new Vector();
            FigureEnumeration k = selectionElements();
            while (k.hasMoreElements()) {
                Figure figure = k.nextFigure();
                Enumeration kk = figure.handles().elements();
                while (kk.hasMoreElements())
                    fSelectionHandles.addElement(kk.nextElement());
            }
        }
        return fSelectionHandles.elements();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the currently selected figures in Z order.

See also:
selection
Returns:
a vector with the selected figures. The vector is a copy of the current selection.

Definition at line 234 of file StandardDrawingView.java.

                                      {
        Vector result = new Vector(fSelection.size());
        FigureEnumeration figures = drawing().figures();

        while (figures.hasMoreElements()) {
            Figure f= figures.nextFigure();
            if (fSelection.contains(f)) {
                result.addElement(f);
            }
        }
        return result;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Sets the grid spacing that is used to constrain points.

Definition at line 389 of file StandardDrawingView.java.

                                                   {
        fConstrainer = c;
    }
void CH.ifa.draw.standard.StandardDrawingView.setDisplayUpdate ( Painter  updateStrategy) [inline]

Sets the current display update strategy.

See also:
UpdateStrategy

Definition at line 207 of file StandardDrawingView.java.

                                                         {
        fUpdateStrategy = updateStrategy;
    }

Here is the caller graph for this function:

Sets and installs another drawing in the view.

Definition at line 144 of file StandardDrawingView.java.

                                      {
        clearSelection();

        if (fDrawing != null)
            fDrawing.removeDrawingChangeListener(this);

        fDrawing = d;
        if (fDrawing != null)
            fDrawing.addDrawingChangeListener(this);
        checkMinimumSize();
        repaint();
    }

Here is the call graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.setEditor ( DrawingEditor  editor) [inline]

Sets the view's editor.

Definition at line 123 of file StandardDrawingView.java.

                                                {
        fEditor = editor;
    }

Here is the call graph for this function:

If a figure isn't selected it is added to the selection.

Otherwise it is removed from the selection.

Definition at line 291 of file StandardDrawingView.java.

                                               {
        if (fSelection.contains(figure))
            removeFromSelection(figure);
        else
            addToSelection(figure);
        selectionChanged();
    }

Here is the call graph for this function:

Gets the current tool.

Definition at line 130 of file StandardDrawingView.java.

                       {
        return fEditor.tool();
    }

Here is the caller graph for this function:

Unfreezes the view by releasing the drawing lock.

See also:
Drawing::unlock

Definition at line 657 of file StandardDrawingView.java.

                               {
        drawing().unlock();
    }

Here is the call graph for this function:

void CH.ifa.draw.standard.StandardDrawingView.update ( Graphics  g) [inline]

Updates the drawing view.

Definition at line 546 of file StandardDrawingView.java.

                                   {
        paint(g);
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 100 of file StandardDrawingView.java.

A vector of optional backgrounds.

The vector maintains a list a view painters that are drawn before the contents, that is in the background.

Definition at line 72 of file StandardDrawingView.java.

The grid used to constrain points for snap to grid functionality.

Definition at line 90 of file StandardDrawingView.java.

transient Rectangle CH.ifa.draw.standard.StandardDrawingView.fDamage = null [private]

the accumulated damaged area

Definition at line 44 of file StandardDrawingView.java.

The shown drawing.

Definition at line 39 of file StandardDrawingView.java.

transient DrawingEditor CH.ifa.draw.standard.StandardDrawingView.fEditor [private]

The DrawingEditor of the view.

See also:
tool
#setStatus

Definition at line 34 of file StandardDrawingView.java.

A vector of optional foregrounds.

The vector maintains a list a view painters that are drawn after the contents, that is in the foreground.

Definition at line 79 of file StandardDrawingView.java.

The position of the last mouse click inside the view.

Definition at line 65 of file StandardDrawingView.java.

The list of currently selected figures.

Definition at line 49 of file StandardDrawingView.java.

The shown selection handles.

Definition at line 54 of file StandardDrawingView.java.

The update strategy used to repair the view.

Definition at line 84 of file StandardDrawingView.java.

The preferred size of the view.

Definition at line 59 of file StandardDrawingView.java.

final long CH.ifa.draw.standard.StandardDrawingView.serialVersionUID = -3878153366174603336L [static, private]

Definition at line 99 of file StandardDrawingView.java.

Definition at line 92 of file StandardDrawingView.java.


The documentation for this class was generated from the following file: