org.apache.felix.example.servicebased.triangle
Class Activator.Triangle
java.lang.Object
org.apache.felix.example.servicebased.triangle.Activator.Triangle
- All Implemented Interfaces:
- SimpleShape
- Enclosing class:
- Activator
public class Activator.Triangle
- extends Object
- implements SimpleShape
This inner class implements the triangle SimpleShape service.
It simply provides a draw() that paints a triangle.
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.Triangle
public Activator.Triangle()
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.