Documentation of 'CH.ifa.draw.figures.AttributeFigure' Java class
AttributeFigure
CH.ifa.draw.figures

Class AttributeFigure

    • Method Detail

      • draw

        public void draw(java.awt.Graphics g)
        Draws the figure in the given graphics. Draw is a template method calling drawBackground followed by drawFrame.
        Parameters:
        g - the Graphics to draw into
      • getFillColor

        public java.awt.Color getFillColor()
        Gets the fill color of a figure. This is a convenience method.
        See Also:
        getAttribute(java.lang.String)
      • getFrameColor

        public java.awt.Color getFrameColor()
        Gets the frame color of a figure. This is a convenience method.
        See Also:
        getAttribute(java.lang.String)
      • getDefaultAttribute

        public static java.lang.Object getDefaultAttribute(java.lang.String name)
        Gets a the default value for a named attribute
        See Also:
        getAttribute(java.lang.String)
      • getAttribute

        public java.lang.Object getAttribute(java.lang.String name)
        Returns the named attribute or null if a a figure doesn't have an attribute. All figures support the attribute names FillColor and FrameColor
        Specified by:
        getAttribute in interface Figure
        Overrides:
        getAttribute in class AbstractFigure
      • setAttribute

        public void setAttribute(java.lang.String name,
                                 java.lang.Object value)
        Sets the named attribute to the new value
        Specified by:
        setAttribute in interface Figure
        Overrides:
        setAttribute in class AbstractFigure
      • read

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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.