Java Doc for StandardPirolPlugIn.java in  » GIS » openjump » de » fho » jump » pirol » utilities » plugIns » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » openjump » de.fho.jump.pirol.utilities.plugIns 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
      de.fho.jump.pirol.utilities.plugIns.StandardPirolPlugIn

StandardPirolPlugIn
abstract public class StandardPirolPlugIn extends AbstractPlugIn implements ErrorHandler(Code)
Overrides most of the abstract methods of the AbstractPlugIn to implement a default behavior, that fits the needs for a plugIn in the PIROL context. Also implements the ErrorHandler interface and offers methods to post error messages to the GUI.
author:
   Ole Rahn, Stefan Ostermann
author:
  

author:
  
FH Osnabrück - University of Applied Sciences Osnabrück,
author:
  
Project: PIROL (2005),
author:
  
Subproject: Daten- und Wissensmanagement
version:
   $Rev: 856 $


Field Summary
protected  booleanbringUpMessages
    
protected static  EnableCheckFactorycheckFactory
    
protected static  GeometryFactorygeometryFactory
    
protected  ImageIconicon
    
protected  PersonalLoggerlogger
     logger reference for use with the StandardPirolPlugIn.
protected  StringBuffermessages
    
protected  booleanuseToolIconSize
    

Constructor Summary
public  StandardPirolPlugIn(PersonalLogger logger)
    

Method Summary
public static  MultiEnableCheckcreateEnableCheck(WorkbenchContext workbenchContext, boolean needFence)
    
abstract public  booleanexecute(PlugInContext context)
     This method is called to execute the PlugIn.
protected  booleanfinishExecution(PlugInContext context, boolean retVal)
     To be called, when leaving the execute()-method.
public  StringgetCategoryName()
    
public static  Feature[]getFeaturesInFenceOrInLayer(PlugInContext context, Layer layer)
    
public  IcongetIcon()
     Method to load an icon from the surrounding jar-file if necessary.
abstract public  StringgetIconString()
     Method to enable loading an icon from the surrounding jar-file if necessary. If the plugin doesn't need an icon, just return null else return the file name, e.g.
public  PersonalLoggergetLogger()
    
public static  TaskMonitorDialoggetMonitor(PlugInContext context)
    
public  StringgetName()
     Name of the PlugIn to be shown in the menus or as a tooltip in JUMP.
Looks for a key (the PlugIn's name with no path) in the i18n resources, if none is found the standard jump name generation will be used.
public static  LayergetSelectedLayer(PlugInContext context)
    
public static  Layer[]getSelectedLayers(PlugInContext context, int num)
     Get a given number of selected Layers.
Parameters:
  context - the current PlugInContext
Parameters:
  num - max.
public  StringgetShortClassName()
    
public  voidhandleThrowable(Throwable t)
    
public  voidinitialize(PlugInContext context)
     The PlugIn will be added to the PIROL Tools/[return value of getCategoryName()] menu and a standard com.vividsolutions.jump.workbench.plugin.EnableCheck is applied.
public  voidinitialize(PlugInContext context, String subMenuName)
     Standard intialization: PlugIn is added to the PIROL Tools/subMenuName (or localized menu name) menu and a standard com.vividsolutions.jump.workbench.plugin.EnableCheck is applied.
protected  voidpostMessagesToGui(PlugInContext context)
    
protected  voidprintln(String function, String msg)
     Prints output to the stdout.
public static  voidprintln(Class c, String function, String message)
     Writes the given message and function string to the stdout.
public  voidsetLogger(PersonalLogger logger)
    
public  voidsetUseInToolbox(boolean toolboxUse)
    
public static  voidwarnUser(PlugInContext context, String msg)
     Puts a warning message into the statusbar of JUMP
Parameters:
  context - curr.

Field Detail
bringUpMessages
protected boolean bringUpMessages(Code)
Are errors to be shown in the statusbar (bringUpMessages = false, DEFAULT) or in an output window (bringUpMessages = true)?



checkFactory
protected static EnableCheckFactory checkFactory(Code)



geometryFactory
protected static GeometryFactory geometryFactory(Code)



icon
protected ImageIcon icon(Code)
see description for method getIconString() for more information



logger
protected PersonalLogger logger(Code)
logger reference for use with the StandardPirolPlugIn. Since loggers are personalized, this member has to be initialized in derived classes by the programmer, before it can be used. For downward compatibility no abstract method or constructur parameter was introduced to do this.
since:
   rev.1.12



messages
protected StringBuffer messages(Code)
buffer for messages of errors that occured during execution - needed to implement the ErrorHandler interface



useToolIconSize
protected boolean useToolIconSize(Code)




Constructor Detail
StandardPirolPlugIn
public StandardPirolPlugIn(PersonalLogger logger)(Code)
Please, use this constructor in the deriving class!
Parameters:
  logger - the logger that will controll console outputs
since:
   rev.1.17




Method Detail
createEnableCheck
public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext, boolean needFence)(Code)



execute
abstract public boolean execute(PlugInContext context) throws Exception(Code)
This method is called to execute the PlugIn. always true ?
Parameters:
  context - the snapshot of the current workbench.
throws:
  Exception -
See Also:   com.vividsolutions.jump.workbench.plugin.AbstractPlugIn.execute(com.vividsolutions.jump.workbench.plugin.PlugInContext)



finishExecution
protected boolean finishExecution(PlugInContext context, boolean retVal)(Code)
To be called, when leaving the execute()-method. Puts out the error messages collected during execution if any and returns the given boolean value. Example:
return finishExecution(context, true);

Parameters:
  context - the current PlugInContext
Parameters:
  retVal - the value to be returned by execute() retVal



getCategoryName
public String getCategoryName()(Code)
The name of the category, a PlugIn can be found in - this method should be overridden by any derived class! name of the category, a PlugIn can be found in



getFeaturesInFenceOrInLayer
public static Feature[] getFeaturesInFenceOrInLayer(PlugInContext context, Layer layer)(Code)
Get a List of Features (from the given Layer) that reside within the fence (if there is a fence) or just the features of the layer (if there is currently no fence)
Parameters:
  context - the plugIn context
Parameters:
  layer - the layer holding the features List of features within fence if present or just within the layer



getIcon
public Icon getIcon()(Code)
Method to load an icon from the surrounding jar-file if necessary. the icon or null if the getIconString() returned null (or problems occured)



getIconString
abstract public String getIconString()(Code)
Method to enable loading an icon from the surrounding jar-file if necessary. If the plugin doesn't need an icon, just return null else return the file name, e.g. "xyz.png" and put the picture in the same folder (package) as the deriving class. the filename of the icon or null if the plugin has no icon.



getLogger
public PersonalLogger getLogger()(Code)
the personal logger
See Also:   PersonalLogger



getMonitor
public static TaskMonitorDialog getMonitor(PlugInContext context)(Code)

Parameters:
  context - the current PlugIn context a TaskMonitorDialog, to show progress information to the user



getName
public String getName()(Code)
Name of the PlugIn to be shown in the menus or as a tooltip in JUMP.
Looks for a key (the PlugIn's name with no path) in the i18n resources, if none is found the standard jump name generation will be used.



getSelectedLayer
public static Layer getSelectedLayer(PlugInContext context)(Code)
get one Layer that is selected
Parameters:
  context - the current PlugInContext one selected Layer, null if no Layers are selected



getSelectedLayers
public static Layer[] getSelectedLayers(PlugInContext context, int num)(Code)
Get a given number of selected Layers.
Parameters:
  context - the current PlugInContext
Parameters:
  num - max. number of layers to return, -1 returns all selected layers a given number of selected Layers, null if no Layers are selected



getShortClassName
public String getShortClassName()(Code)



handleThrowable
public void handleThrowable(Throwable t)(Code)



initialize
public void initialize(PlugInContext context) throws Exception(Code)
The PlugIn will be added to the PIROL Tools/[return value of getCategoryName()] menu and a standard com.vividsolutions.jump.workbench.plugin.EnableCheck is applied.
Parameters:
  context - PlugInContext
throws:
  Exception -
See Also:   StandardPirolPlugIn.getCategoryName



initialize
public void initialize(PlugInContext context, String subMenuName) throws Exception(Code)
Standard intialization: PlugIn is added to the PIROL Tools/subMenuName (or localized menu name) menu and a standard com.vividsolutions.jump.workbench.plugin.EnableCheck is applied.



postMessagesToGui
protected void postMessagesToGui(PlugInContext context)(Code)



println
protected void println(String function, String msg)(Code)
Prints output to the stdout. Can be invoked by deriving classes.
Parameters:
  function - the name of the method from within this one is called.E.g. "myMethod()".
Parameters:
  msg - the message String.
See Also:   StandardPirolPlugIn.println(Class,String,String)



println
public static void println(Class c, String function, String message)(Code)
Writes the given message and function string to the stdout. The output will be formated as "classname.function: message".
Parameters:
  c - the calling class
Parameters:
  function - the method from within this one is called.
Parameters:
  message - the text with some useful information.



setLogger
public void setLogger(PersonalLogger logger)(Code)
Sets the personal logger - enables debug statement handling
Parameters:
  logger - the new personal logger
See Also:   PersonalLogger



setUseInToolbox
public void setUseInToolbox(boolean toolboxUse)(Code)



warnUser
public static void warnUser(PlugInContext context, String msg)(Code)
Puts a warning message into the statusbar of JUMP
Parameters:
  context - curr. PlugInContext
Parameters:
  msg - message to be shown to the user



Methods inherited from com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
public static String createName(Class plugInClass)(Code)(Java Doc)
protected void execute(UndoableCommand command, PlugInContext context)(Code)(Java Doc)
public boolean execute(PlugInContext context) throws Exception(Code)(Java Doc)
public static void execute(UndoableCommand command, LayerManagerProxy layerManagerProxy)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void initialize(PlugInContext context) throws Exception(Code)(Java Doc)
protected boolean isRollingBackInvalidEdits(PlugInContext context)(Code)(Java Doc)
protected void reportNothingToUndoYet(PlugInContext context)(Code)(Java Doc)
public static ActionListener toActionListener(PlugIn plugIn, WorkbenchContext workbenchContext, TaskMonitorManager taskMonitorManager)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.