A D G I M N O P R S

A

Activator - Class in org.apache.felix.example.servicebased.host
The activator of the host application bundle.
Activator() - Constructor for class org.apache.felix.example.servicebased.host.Activator
 
addingService(ServiceReference) - Method in class org.apache.felix.example.servicebased.host.ShapeTracker
Overrides the ServiceTracker functionality to inform the application object about the added service.
addShape(String, Icon, SimpleShape) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Injects an available SimpleShape into the drawing frame.

D

draw(Graphics2D, Point) - Method in interface org.apache.felix.example.servicebased.host.service.SimpleShape
Method to draw the shape of the service.
DrawingFrame - Class in org.apache.felix.example.servicebased.host
This class represents the main application class, which is a JFrame subclass that manages a toolbar of shapes and a drawing canvas.
DrawingFrame() - Constructor for class org.apache.felix.example.servicebased.host.DrawingFrame
Default constructor that populates the main window.

G

getShape(String) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Retrieves the available SimpleShape associated with the given name.

I

ICON_PROPERTY - Static variable in interface org.apache.felix.example.servicebased.host.service.SimpleShape
A service property for the icon of the shape.

M

main(String[]) - Static method in class org.apache.felix.example.servicebased.host.Activator
Enables the bundle to run as a stand-alone application.
modifiedService(ServiceReference, Object) - Method in class org.apache.felix.example.servicebased.host.ShapeTracker
Overrides the ServiceTracker functionality to inform the application object about the modified service.
mouseClicked(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements method for the MouseListener interface to draw the selected shape into the drawing canvas.
mouseDragged(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements method for the MouseMotionListener interface to move a dragged shape.
mouseEntered(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements an empty method for the MouseListener interface.
mouseExited(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements an empty method for the MouseListener interface.
mouseMoved(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements an empty method for the MouseMotionListener interface.
mousePressed(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements method for the MouseListener interface to initiate shape dragging.
mouseReleased(MouseEvent) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Implements method for the MouseListener interface to complete shape dragging.

N

NAME_PROPERTY - Static variable in interface org.apache.felix.example.servicebased.host.service.SimpleShape
A service property for the name of the shape.

O

org.apache.felix.example.servicebased.host - package org.apache.felix.example.servicebased.host
 
org.apache.felix.example.servicebased.host.service - package org.apache.felix.example.servicebased.host.service
 

P

paintComponent(Graphics) - Method in class org.apache.felix.example.servicebased.host.ShapeComponent
Paints the contents of the component.

R

removedService(ServiceReference, Object) - Method in class org.apache.felix.example.servicebased.host.ShapeTracker
Overrides the ServiceTracker functionality to inform the application object about the removed service.
removeShape(String) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
Removes a no longer available SimpleShape from the drawing frame.
run() - Method in class org.apache.felix.example.servicebased.host.Activator
This method actually performs the creation of the application window.

S

selectShape(String) - Method in class org.apache.felix.example.servicebased.host.DrawingFrame
This method sets the currently selected shape to be used for drawing on the canvas.
ShapeComponent - Class in org.apache.felix.example.servicebased.host
Simple component class used to represent a drawn shape.
ShapeComponent(DrawingFrame, String) - Constructor for class org.apache.felix.example.servicebased.host.ShapeComponent
Construct a component for the specified drawing frame with the specified named shape.
ShapeTracker - Class in org.apache.felix.example.servicebased.host
Extends the ServiceTracker to create a tracker for SimpleShape services.
ShapeTracker(BundleContext, DrawingFrame) - Constructor for class org.apache.felix.example.servicebased.host.ShapeTracker
Constructs a tracker that uses the specified bundle context to track services and notifies the specified application object about changes.
SimpleShape - Interface in org.apache.felix.example.servicebased.host.service
This interface defines the SimpleShape service.
start(BundleContext) - Method in class org.apache.felix.example.servicebased.host.Activator
Displays the applications window and starts service tracking; everything is done on the Swing event thread to avoid synchronization and repainting issues.
stop(BundleContext) - Method in class org.apache.felix.example.servicebased.host.Activator
Stops service tracking and disposes of the application window.

A D G I M N O P R S

Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.