Documentation of 'CH.ifa.draw.standard.CompositeFigure' Java class
CompositeFigure
CH.ifa.draw.standard

Class CompositeFigure

    • Method Detail

      • add

        public Figure add(Figure figure)
        Adds a figure to the list of figures. Initializes the the figure's container.
      • orphan

        public 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

        public 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

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

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

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

        public void draw(java.awt.Graphics g)
        Draws all the contained figures
        Specified by:
        draw in interface Figure
        Parameters:
        g - the Graphics to draw into
        See Also:
        Figure.draw(java.awt.Graphics)
      • figureAt

        public Figure figureAt(int i)
        Gets a figure at the given index.
      • figureCount

        public int figureCount()
        Gets number of child figures.
      • figuresReverse

        public final FigureEnumeration figuresReverse()
        Returns an Enumeration for accessing the contained figures in the reverse drawing order.
      • findFigure

        public 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

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

        public 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

        public 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.
      • findFigureInsideWithout

        public 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.
      • includes

        public boolean includes(Figure figure)
        Checks if the composite figure has the argument as one of its children.
        Specified by:
        includes in interface Figure
        Overrides:
        includes in class AbstractFigure
      • read

        public void read(StorableInput dr)
                  throws java.io.IOException
        Reads the contained figures from StorableInput.
        Specified by:
        read in interface Storable
        Overrides:
        read in class AbstractFigure
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.