Documentation of 'CH.ifa.draw.framework.Drawing' Java class
Drawing
CH.ifa.draw.framework

Interface Drawing

    • Method Detail

      • release

        void release()
        Releases the drawing and its contained figures.
      • figures

        FigureEnumeration figures()
        Returns an enumeration to iterate in Z-order back to front over the figures.
      • figuresReverse

        FigureEnumeration figuresReverse()
        Returns an enumeration to iterate in Z-order front to back over the figures.
      • findFigure

        Figure findFigure(int x,
                          int y)
        Finds a top level Figure. Use this call for hit detection that should not descend into the figure's children.
      • findFigure

        Figure findFigure(java.awt.Rectangle r)
        Finds a top level Figure that intersects the given rectangle.
      • findFigureWithout

        Figure findFigureWithout(int x,
                                 int y,
                                 Figure without)
        Finds a top level Figure, but supresses the passed in figure. Use this method to ignore a figure that is temporarily inserted into the drawing.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        without - the figure to be ignored during the find.
      • findFigure

        Figure findFigure(java.awt.Rectangle r,
                          Figure without)
        Finds a top level Figure that intersects the given rectangle. It supresses the passed in figure. Use this method to ignore a figure that is temporarily inserted into the drawing.
      • findFigureInside

        Figure findFigureInside(int x,
                                int y)
        Finds a figure but descends into a figure's children. Use this method to implement click-through hit detection, that is, you want to detect the inner most figure containing the given point.
      • findFigureInsideWithout

        Figure findFigureInsideWithout(int x,
                                       int y,
                                       Figure without)
        Finds a figure but descends into a figure's children. It supresses the passed in figure. Use this method to ignore a figure that is temporarily inserted into the drawing.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        without - the figure to be ignored during the find.
      • addDrawingChangeListener

        void addDrawingChangeListener(DrawingChangeListener listener)
        Adds a listener for this drawing.
      • removeDrawingChangeListener

        void removeDrawingChangeListener(DrawingChangeListener listener)
        Removes a listener from this drawing.
      • drawingChangeListeners

        java.util.Enumeration drawingChangeListeners()
        Gets the listeners of a drawing.
      • add

        Figure add(Figure figure)
        Adds a figure and sets its container to refer to this drawing.
        Returns:
        the figure that was inserted.
      • addAll

        void addAll(java.util.Vector newFigures)
        Adds a vector of figures.
      • remove

        Figure remove(Figure figure)
        Removes the figure from the drawing and releases it.
      • orphan

        Figure orphan(Figure figure)
        Removes a figure from the figure list, but doesn't release it. Use this method to temporarily manipulate a figure outside of the drawing.
      • orphanAll

        void orphanAll(java.util.Vector newFigures)
        Removes a vector of figures from the figure's list without releasing the figures.
        See Also:
        orphan(CH.ifa.draw.framework.Figure)
      • replace

        void replace(Figure figure,
                     Figure replacement)
        Replaces a figure in the drawing without removing it from the drawing.
      • sendToBack

        void sendToBack(Figure figure)
        Sends a figure to the back of the drawing.
      • bringToFront

        void bringToFront(Figure figure)
        Brings a figure to the front.
      • draw

        void draw(java.awt.Graphics g)
        Draws all the figures back to front.
      • lock

        void lock()
        Acquires the drawing lock.
      • unlock

        void unlock()
        Releases the drawing lock.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.