org.apache.felix.example.servicebased.square
Class Activator.Square

java.lang.Object
  extended by org.apache.felix.example.servicebased.square.Activator.Square
All Implemented Interfaces:
org.apache.felix.example.servicebased.host.service.SimpleShape
Enclosing class:
Activator

public class Activator.Square
extends java.lang.Object
implements org.apache.felix.example.servicebased.host.service.SimpleShape

This inner class implements the square SimpleShape service. It simply provides a draw() that paints a square.


Field Summary
 
Fields inherited from interface org.apache.felix.example.servicebased.host.service.SimpleShape
ICON_PROPERTY, NAME_PROPERTY
 
Constructor Summary
Activator.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
 

Constructor Detail

Activator.Square

public Activator.Square()
Method Detail

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 org.apache.felix.example.servicebased.host.service.SimpleShape
Parameters:
g2 - The graphics object used for painting.
p - The position to paint the triangle.