org.apache.felix.example.servicebased.host.service
Interface SimpleShape


public interface SimpleShape

This interface defines the SimpleShape service. This service is used to draw shapes. It has two service properties:


Field Summary
static java.lang.String ICON_PROPERTY
          A service property for the icon of the shape.
static java.lang.String NAME_PROPERTY
          A service property for the name of the shape.
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.Point p)
          Method to draw the shape of the service.
 

Field Detail

NAME_PROPERTY

static final java.lang.String NAME_PROPERTY
A service property for the name of the shape.

See Also:
Constant Field Values

ICON_PROPERTY

static final java.lang.String ICON_PROPERTY
A service property for the icon of the shape.

See Also:
Constant Field Values
Method Detail

draw

void draw(java.awt.Graphics2D g2,
          java.awt.Point p)
Method to draw the shape of the service.

Parameters:
g2 - The graphics object used for painting.
p - The position to paint the triangle.