Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

void javamorph::CPopupMenuDecorator::paint ( Graphics  g  )  [inline]

Draw the mouse symbol to the graphics context of the parent JComponent.

Implements javamorph::IDecorator.

Definition at line 134 of file CPopupMenuDecorator.java.

References BUTTON, CABLE, FRAME, and MOUSE.

Referenced by javamorph::CFrame::paint().

                                 {
        g.setColor(MOUSE);
        g.fillRect(10, 10, 30, 30);
        g.setColor(FRAME);
        g.drawRect(10, 10, 30, 30);
        g.setColor(CABLE);
        g.fillRect(24, 41, 2, 15);
        g.fillPolygon(new int[]{24, 34, 36, 26}, new int[]{55, 65, 65, 55}, 4);
        g.setColor(BUTTON);
        g.fillRect(10, 10, 10, 10);
        g.fillRect(30, 10, 10, 10);
    }


Generated by  Doxygen 1.6.0   Back to index