Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dinopolis.gpstool.* (222)org.dinopolis.util.* (49)

Package Samples:

org.dinopolis.gpstool.projection: Holds classes for handling data from a gps device (serial, network, file, etc.) and provides some applications to work with this data.  
org.dinopolis.gpstool.plugin.memorymonitor
org.dinopolis.gpstool.plugin.writesvgimage
org.dinopolis.util.gui.property_editor
org.dinopolis.util.gui
org.dinopolis.util.debug
org.dinopolis.util.io
org.dinopolis.util.servicediscovery
org.dinopolis.util.resource
org.dinopolis.util.commandarguments
org.dinopolis.util
org.dinopolis.gpstool.gui.layer.location
org.dinopolis.gpstool.gui.layer
org.dinopolis.gpstool.gui.util
org.dinopolis.gpstool.gui
org.dinopolis.gpstool.alarm
org.dinopolis.gpstool.gpsinput.garmin
org.dinopolis.gpstool.gpsinput.nmea
org.dinopolis.gpstool.gpsinput.sirf
org.dinopolis.gpstool.gpsinput

Classes:

Debug: Debug helps the programmer to print various debug messages. This class is a frontend to the org.dinopolis.util.debug.Debug class. Its only purpose is to ease the use of the mentioned class. All methods in this class are static so the usage simply is Debug.methodName(arguments) . No instance must be handed from one class to the other. Debug Levels The Debug class provides the possibility to print debug messages depending on the debug level. There is a status for a given debug level that indicates if messages for this level should be put out or not. This status can be requested from the debug class. ...
VisibleImage: The algorithm implemented in this class searches the smallest map to show, paint it, and find the rectangles on the screen that are not covered by this map. For the remaining empty rectangles, the algorithm is repeated until the screen is filled, or no more maps are available. The following shows, how a map may be location on a given viewport: viewport_xmin viewport_xmax | | ..................... -viewport_ymin . . . ######## . -image_ymin . ######## . . ######## . . ######## . -image_ymax . . ..................... -viewport_ymax | | | image_xmax image_xmin figure 01: figure 02: ..................... ...
Tokenizer: This tokenizer merges the benefits of the java.lang.StringTokenizer class and the java.io.StreamTokenizer class. It provides a low level and a high level interface to the tokenizer. The low level interface consists of the method pair nextToken() and getWord(), where the first returns the type of token in the parsing process, and the latter returns the String element itself. The high level interface consists of the methods hasNextLine() and nextLine(). They use the low level interface to parse the data line by line and create a list of strings from it. It is unsure, if it is wise to mix the usage ...
AngleFormat: Parse and format angle according a specified pattern. The pattern is a string containing any characters, with a special meaning for the following characters: D   The integer part of degrees d   The fractional part of degrees M   The integer part of minutes m   The fractional part of minutes S   The integer part of seconds s   The fractional part of seconds .   The decimal separator Upper-case letters D , M and S are for the integer parts of degrees, minutes and seconds respectively. They must appear in this order (e.g. " M'D " is illegal because "M" and "S" are inverted; " D?S " is illegal too ...
AbstractResources: AbstractResources represents an abstract, base class that may be userd by Other Resources implementations. Stored resources can not only be requested as Strings , but also in many different other types, like integers , StringArrays , booleans , Colors , Icons and others. Resource entries contain key/value pairs. The keys uniquely identify a specific object in the bundle. Here's an example resource that contains two key/value pairs: my_app.dimension.width=300 my_app.dimension.height=200 Keys are always String s. In this example, the keys are my_app.dimension.width and my_app.dimension.height . In ...
Resources: This Interface is used to access any Resources. Resources may be given in a file, database, memory or wherever. Resources may also be locale-specific. (see java.util.ResourceBundle for further details.) Stored resources can not only be requested as Strings , but also in many different other types, like integers , StringArrays , booleans , Colors , Icons and others. When your program needs a specific object, it loads the ResourceManager class using one of the getResources methods: Resources my_resources = ResourceManager.getResources(this, "MyResources"); If a lookup fails, getBundle() throws a ...
LocationMarkerFilter: This class is used as a filter for the location markers. The getLocationMarker method of LocationMarkerSource objects accept this kind of filters to choose the LocationMarkers. The key is a uniquely identifier of the different filterable properties (e.g. category, name, creation date, ...), whereas the operator indicates the wanted selection (equals, not equals, greater than, ...). The objects to match the given key with the given operation can be set by the get/setValues method. So if one wants to create a filter that filters entries of a given set of categories (e.g. cat.equals("abc") || cat.equals("xyz"), ...
FileResources: This class provides the functionality to read resources from a system or user resource file. The way that this is done is: It looks for a resource file within the users home directory and if a proper file is found, it looks for the specific proporty. If no file or the specific property was not found, the system resource file is being asked for the property. Stored resources can not only be requested as Strings , but also in many different other types, like integers , StringArrays , booleans , Colors , Icons and others. Resource files contain key/value pairs. The keys uniquely identify a locale-specific ...
GPSDataProcessor: All classes implementing this interface are interpreting data from a GPSDevice (serial gps-receivier, file containing gps data, ...) and provide this information in a uniform way. So an NMEA-processor interprets NMEA sentences, while a Garmin-Processor understands the garmin protocol. Other classes may register as a GPSDataListener and receive gps events. The following events are supported (if provided by the gps device): LOCATION : the value is a GPSPosition object HEADING : the value is a Float SPEED : the value is a Float and is in kilometers per hour NUMBER_SATELLITES : the value is a Integer ...
BasicLayer: BasicLayer provide a layer in the application to display geographical data. This means they are informed about any changes of the projection (zoom in, out, move, etc.) and have to react accordingly. Usually this reaction is to recalculate the data (calculate the screen coordinates from the geographical (WGS84) coordinates). This task is done by using the forward(...) methods of the projection passed in the projectionChanged() method. This calculation should be done in a separate task, so the JComponent.paintComponent(java.awt.Graphics) > JComponent.paintComponent(java.awt.Graphics) 55 method terminates ...
GarminPVTD800: This class handles PVT-information received from GPS-devices. It stores the following values: alt - altitude above wgs84-ellipsoid [m] epe - estimated position error 2sigma [m] eph - estimated position error horizontal only [m] epv - estimated position error vertical only [m] fix - type of position fix (0:unusable, 1:invalid, 2:2D, 3:3D, 4:2D-differential, 5:3D-differential) tow - time of week [s]: number of seconds since the beginning of the current week lat - latitude [degrees]: reported in rad, has to be converted to degrees lon - longitude [degreees]: reported in rad, has to be converted to ...
CommandArguments: CommandArguments takes care of command line arguments and options. It checks, if arguments are valid and simplifies checking, if an argument is set or not. There are two different kinds of arguments: those starting with one or two minus(es) ('-', '--') (called options here) and those without. The first type is used to set options, those without are 'real' arguments. There are short and long options. Short options are only one character long and need to be prefixed by a single minus ( '-' ). When they are parsed, it makes no difference, if they are written separately or all in one: e.g. -dfl is ...
FlatProjection: Implements the Flat projection for use of mapblast and expedia maps. The algorithms are mostly copied from Fritz Ganter's gpsdrive application. (http://gpsdrive.kraftvoll.at). As this class extends an openmap base projection, the usage might not be clear. The main methods are forward and inverse . The forward method forwards latitude/longitude to screen coordinates, the inverse method the other way round. Usage: java.awt.Point forward(float latitude, float longitude) java.awt.Point forward(float latitude, float longitude, java.awt.point reuse) java.awt.Point forward(com.bbn.openmap.LatLonPoint ...
DownloadMouseModeLayer: This class provides a plugin that allows the user to download maps from servers from the internet (mapblast, expedia, etc.). It provides a org.dinopolis.gpstool.gui.MouseMode and draws some things in a layer. Therefore it is a LayerPlugin. The following describes the collaboration between the different classes used (Layer, MouseMode, Frame): the mouse mode tells the layer about mouse clicks and mouse drags. The layer calculates the geo coordinates of the mouse clicks and sets them into the frame. Whenever the user changes anything in the frame (scale, coordinates, etc.), the preview rectangles ...
ServiceDiscovery: Implement the JDK1.3 'Service Provider' specification. ( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html ) The caller will first configure the discoverer by adding (in the desired order) all the places to look for the META-INF/services. Currently we support loaders. The directory META-INF/services contains the following information: for every service a file exists that is named like the service interface/class/abstract class. This files contains names of classes that implement this interface or extend this class/abstract class. The findServices() method will check every class loader for the ...
PrintUtilities: A simple utility class that lets you very simply print an arbitrary component. Just pass the component to the PrintUtilities.printComponent. The component you want to print doesn't need a print method and doesn't have to implement any interface or do anything special at all. If you are going to be printing many times, it is marginally more efficient to first do the following: PrintUtilities printHelper = new PrintUtilities(theComponent); then later do printHelper.print(). But this is a very tiny difference, so in most cases just do the simpler PrintUtilities.printComponent(componentToBePrinted). ...
Debug: Debug helps the programmer to print various debug messages. If this class is only used by the getInstance 55 method, it can be used as a singleton. So the instance of this class must not known everywhere in the source code. An easier way to use it, is the usage of the class org.dinopolis.util.Debug which is a static frontend for this class. For a detailed description of the Debug class see the javadoc of org.dinopolis.util.Debug .
RepositoryClassLoader: ClassLoader that allows to add all jar files in one or more repositories (directories). Additionally, a specific directory or a jar file can be added. This behavior allows to search in directories for jars even if they are not in the classpath (e.g. for plugin functionality). Usage: create an instance of this classloader, add the repositories and urls the classloader should look for and call the loadClass method: RepositoryClassLoader loader = new RepositoryClassLoader(); loader.addRepository("/home/cdaller/plugins"); SuperPlugin plugin = (SuperPlugin)loader.loadClass("org.dinopolis.plugin.SuperPlugin") ...
GuiPlugin: This interface is used for all plugins that want to provide any kind of gui-interface for the application. The plugins may provide menu items that are placed into a sub menu (in the "plugins" menu) or if they provide a larger quantity of actions, the plugin may provide actions for a main menu item. The plugins are informed about start and stop, so they may initialize and free their resources on startup and on closing of the application. If the plugin wants to draw anything on the map, it may return a layer in the getLayer() 55 method.
ExtensionFileFilter: A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about. Extensions are of the type ".foo", which is typically found on Windows and Unix boxes, but not on Macinthosh. Case is ignored. Example - create a new filter that filerts out all files but gif and jpg image files: JFileChooser chooser = new JFileChooser(); ExampleFileFilter filter = new ExampleFileFilter( new String{"gif", "jpg"}, "JPEG & GIF Images") chooser.addChoosableFileFilter(filter); chooser.showOpenDialog(this);
LoginDialog: A dialog box that asks for a username and a password. Example: LoginDialog dialog = new LoginDialog(null,"Login","Enter your name/password"); System.out.println("after dialog"); int result = dialog.getValue(); System.out.println("result: "+result); if(result == LoginDialog.CLOSED_OPTION) System.out.println("closed"); else if(result == LoginDialog.CANCEL_OPTION) System.out.println("canceled"); else { System.out.println("username: "+dialog.getUsername()); System.out.println("password: "+dialog.getPassword()); } dialog = null; *
XMath: Simple mathematical functions. Some of these functions will be removed if JavaSoft provide a standard implementation or fix some issues in Bug Parade: Implement log10 (base 10 logarithm) implement pow10 (power of 10) with optimization for integer powers /li> Math.acos is very slow
HttpRequester: The HttpRequester is able perform a HTTP get request and set any HTTP-Headers wanted. The response headers and the content is read and stored in a map that can be used afterwards. This class is not so powerful as the java.net.URLConnection but does not hide anything from the programmer. It respects the proxy settings in the system properties. This class is especially usefull if you want to request more than one url from the same server. Do not forget to set "Keep-Alive" in the http header!
GPSDataChangeEvent: A "GPSDataChange" event gets delivered whenever GPS data changes. A GPSDataChangeEvent object is sent as an argument to the GPSDataChangeListener. Normally GPSDataChangeEvents are accompanied by the name and the old and new value of the changed gps data. If the new value is a primitive type (such as int or boolean) it must be wrapped as the corresponding java.lang.Object type (such as Integer or Boolean). Null values may be provided for the old and the new values if their true values are not known.

Home | Contact Us | Privacy Policy | Terms of Service