org.apache.felix.example.servicebased.circle
Class Activator.Circle

java.lang.Object
  extended by org.apache.felix.example.servicebased.circle.Activator.Circle
All Implemented Interfaces:
SimpleShape
Enclosing class:
Activator

public class Activator.Circle
extends Object
implements SimpleShape

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


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

public Activator.Circle()
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 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.