summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java')
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java b/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java
deleted file mode 100644
index 288fcccceec..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// $Id$
-//
-// = FILENAME
-// VisCompFactory.java
-//
-// = AUTHOR
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// = DESCRIPTION
-// This class serves as factory for Visualization Components
-//
-// ============================================================================
-
-import java.beans.*;
-
-class VisCompFactory {
-
- VisComp getNewVisComp (int property, String name) {
-
- ClassLoader classLoader_ = this.getClass().getClassLoader();
-
- VisComp visComp_ = null;
- String visCompName_ = "VisComp";
- switch (property) {
- case Properties.DOUBLE:
- visCompName_ = "Double"+visCompName_;
- break;
- case Properties.NAVIGATION:
- visCompName_ = "Navigation"+visCompName_;
- break;
- case Properties.WEAPONS:
- visCompName_ = "Weapons"+visCompName_;
- break;
- default: return null;
- }
- try {
- System.out.println ("Trying to connect: " + visCompName_+ " .. ");
- visComp_ = (VisComp) Beans.instantiate (classLoader_, visCompName_);
- visComp_.setName (name);
- System.out.println ("Connected: " + visCompName_);
- return visComp_;
- }
- catch (Exception e) {
- System.out.println ("Unable to load JavaBean: " + e);
- return null;
- }
- }
-} \ No newline at end of file