Documentation of 'CH.ifa.draw.contrib.DiamondFigure' Java class
DiamondFigure
CH.ifa.draw.contrib

Class DiamondFigure

  • All Implemented Interfaces:
    Figure, Storable, java.io.Serializable, java.lang.Cloneable


    public class DiamondFigure
    extends RectangleFigure
    A diamond with vertices at the midpoints of its enclosing rectangle
    See Also:
    Serialized Form
    • Constructor Detail

      • DiamondFigure

        public DiamondFigure()
      • DiamondFigure

        public DiamondFigure(java.awt.Point origin,
                             java.awt.Point corner)
    • Method Detail

      • draw

        public void draw(java.awt.Graphics g)
        Description copied from class: AttributeFigure
        Draws the figure in the given graphics. Draw is a template method calling drawBackground followed by drawFrame.
        Specified by:
        draw in interface Figure
        Overrides:
        draw in class AttributeFigure
        Parameters:
        g - the Graphics to draw into
      • connectionInsets

        public java.awt.Insets connectionInsets()
        Description copied from class: AbstractFigure
        Returns the connection inset. The connection inset defines the area where the display box of a figure can't be connected. By default the entire display box can be connected.
        Specified by:
        connectionInsets in interface Figure
        Overrides:
        connectionInsets in class AbstractFigure

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.