Documentation of 'org.jhotdraw.draw.AbstractAttributedDecoratedFigure' Java class
AbstractAttributedDecoratedFigure
org.jhotdraw.draw

Class AbstractAttributedDecoratedFigure

    • Constructor Detail

      • AbstractAttributedDecoratedFigure

        public AbstractAttributedDecoratedFigure()
    • Method Detail

      • draw

        public final void draw(java.awt.Graphics2D g)
        Description copied from interface: Figure
        Draws the figure.
        Specified by:
        draw in interface Figure
        Overrides:
        draw in class AbstractAttributedFigure
        Parameters:
        g - The Graphics2D to draw to.
      • getDrawingArea

        public final java.awt.geom.Rectangle2D.Double getDrawingArea()
        Description copied from interface: Figure
        Returns the drawing area of the figure as a Rectangle.

        The drawing area is used to inform DrawingView about the area that is needed to draw this figure.

        The drawing area needs to be large enough, to take line width, line caps and other decorations into account that exceed the bounds of the Figure.

        Specified by:
        getDrawingArea in interface Figure
        Overrides:
        getDrawingArea in class AbstractAttributedFigure
      • setDecorator

        public void setDecorator(Figure newValue)
        Description copied from interface: DecoratedFigure
        Sets a decorator Figure, for example a visual adornment to this Figure. Set this to null, if no decorator is desired. The decorator uses the same logical bounds as this Figure plus AttributeKeys.DECORATOR_INSETS. The decorator does not handle events. The decorator is drawn when the figure is drawn.
        Specified by:
        setDecorator in interface DecoratedFigure
      • contains

        public final boolean contains(java.awt.geom.Point2D.Double p)
        Description copied from interface: Figure
        Checks if a point is contained by the figure.

        This is used for hit testing by Tool's.

        Specified by:
        contains in interface Figure

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.