org.apache.felix.example.servicebased.square
Class Activator.Square
java.lang.Object
org.apache.felix.example.servicebased.square.Activator.Square
- All Implemented Interfaces:
- SimpleShape
- Enclosing class:
- Activator
public class Activator.Square
- extends Object
- implements SimpleShape
This inner class implements the square SimpleShape service.
It simply provides a draw() that paints a square.
Method Summary |
void |
draw(java.awt.Graphics2D g2,
java.awt.Point p)
Implements the SimpleShape.draw() method for painting
the shape. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Activator.Square
public Activator.Square()
draw
public void draw(java.awt.Graphics2D g2,
java.awt.Point p)
- Implements the SimpleShape.draw() method for painting
the shape.
- Specified by:
draw
in interface SimpleShape
- Parameters:
g2
- The graphics object used for painting.p
- The position to paint the triangle.
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.