de.fhg.igd.earth.model.input
Class ShapeFileLoaderDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended byde.fhg.igd.earth.model.input.ShapeFileLoaderDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class ShapeFileLoaderDialog
extends JDialog

This class is used by the ShapeFileLoader. It shows a dialog to choose the records. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JDialog
JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  BorderLayout borderLayout1
           
(package private)  BorderLayout borderLayout11
           
(package private)  BorderLayout borderLayout12
           
(package private)  BorderLayout borderLayout2
           
(package private)  BorderLayout borderLayout3
           
(package private)  BorderLayout borderLayout4
           
(package private)  BorderLayout borderLayout5
           
(package private)  ButtonGroup buttonGroup1
           
(package private)  ButtonGroup buttonGroup2
           
private  Vector checkBoxes_
           
private  String directory_
           
private  String filename_
           
(package private)  FlowLayout flowLayout1
           
private  Frame frame_
           
(package private)  GridLayout gridLayout1
           
(package private)  GridLayout gridLayout2
           
(package private)  GridLayout gridLayout3
           
(package private)  GridLayout gridLayout4
           
(package private)  GridLayout gridLayout5
           
(package private)  GridLayout gridLayout6
           
(package private)  GridLayout gridLayout7
           
(package private)  JButton jButton1
           
(package private)  JButton jButton2
           
(package private)  JButton jButton3
           
(package private)  JButton jButton4
           
(package private)  JButton jButton5
           
(package private)  JCheckBox jCheckBox1
           
(package private)  JLabel jLabel1
           
(package private)  JLabel jLabel10
           
(package private)  JLabel jLabel11
           
(package private)  JLabel jLabel2
           
(package private)  JLabel jLabel3
           
(package private)  JLabel jLabel4
           
(package private)  JLabel jLabel5
           
(package private)  JLabel jLabel6
           
(package private)  JLabel jLabel7
           
(package private)  JLabel jLabel8
           
(package private)  JLabel jLabel9
           
(package private)  JPanel jPanel1
           
(package private)  JPanel jPanel10
           
(package private)  JPanel jPanel11
           
(package private)  JPanel jPanel110
           
(package private)  JPanel jPanel12
           
(package private)  JPanel jPanel13
           
(package private)  JPanel jPanel14
           
(package private)  JPanel jPanel15
           
(package private)  JPanel jPanel16
           
(package private)  JPanel jPanel17
           
(package private)  JPanel jPanel18
           
(package private)  JPanel jPanel19
           
(package private)  JPanel jPanel2
           
(package private)  JPanel jPanel3
           
(package private)  JPanel jPanel4
           
(package private)  JPanel jPanel5
           
(package private)  JPanel jPanel6
           
(package private)  JPanel jPanel7
           
(package private)  JPanel jPanel8
           
(package private)  JPanel jPanel9
           
(package private)  JRadioButton jRadioButton1
           
(package private)  JRadioButton jRadioButton2
           
(package private)  JRadioButton jRadioButton3
           
(package private)  JRadioButton jRadioButton4
           
(package private)  JScrollPane jScrollPane1
           
(package private)  JTextField jTextField1
           
(package private)  JTextField jTextField2
           
(package private)  JTextField jTextField3
           
(package private)  JTextField jTextField4
           
(package private)  JTextField jTextField5
           
(package private)  JPanel panel1
           
private  int recordCounter_
           
private  Vector recordNames_
           
private  boolean result_
           
private  Vector selected_
           
private  String shapeFileTypeName_
           
private  int style_
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ShapeFileLoaderDialog(Frame frame, String title, boolean modal, String directory, String filename, Vector recordNames, Vector selected, String shapeFileTypeName, int recordCounter)
          Creates an instance of this class.
 
Method Summary
 Color getColor()
          Returns the selected color.
 int getDetailLevel()
          Returns the distance level.
 float getDistance()
          Returns the distance.
 boolean getLOD()
          Returns the lod flag
 double getOffsetX()
          Returns the x-offset.
 double getOffsetY()
          Returns the y-offset.
 double getOffsetZ()
          Returns the z-offset.
 boolean getResult()
          Returns the result of this dialog.
 int getStyle()
          Returns the selected style.
 float getTransparency()
          Returns the selected transparency.
(package private)  void jbInit()
          GUI Init
(package private)  void jButton1_actionPerformed(ActionEvent e)
          GUI
(package private)  void jButton2_actionPerformed(ActionEvent e)
          GUI
(package private)  void jButton3_actionPerformed(ActionEvent e)
          GUI
(package private)  void jButton4_actionPerformed(ActionEvent e)
          GUI
(package private)  void jButton5_actionPerformed(ActionEvent e)
          GUI
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

panel1

JPanel panel1

borderLayout1

BorderLayout borderLayout1

jPanel1

JPanel jPanel1

jPanel3

JPanel jPanel3

jScrollPane1

JScrollPane jScrollPane1

borderLayout3

BorderLayout borderLayout3

jPanel4

JPanel jPanel4

jPanel5

JPanel jPanel5

jPanel6

JPanel jPanel6

gridLayout1

GridLayout gridLayout1

directory_

private String directory_

filename_

private String filename_

result_

private boolean result_

recordNames_

private Vector recordNames_

selected_

private Vector selected_

checkBoxes_

private Vector checkBoxes_

frame_

private Frame frame_

shapeFileTypeName_

private String shapeFileTypeName_

recordCounter_

private int recordCounter_

style_

private int style_

jPanel14

JPanel jPanel14

jPanel15

JPanel jPanel15

jLabel2

JLabel jLabel2

jLabel1

JLabel jLabel1

borderLayout11

BorderLayout borderLayout11

borderLayout12

BorderLayout borderLayout12

jPanel16

JPanel jPanel16

jLabel5

JLabel jLabel5

gridLayout2

GridLayout gridLayout2

gridLayout3

GridLayout gridLayout3

jTextField1

JTextField jTextField1

jLabel6

JLabel jLabel6

jTextField2

JTextField jTextField2

jPanel17

JPanel jPanel17

jLabel4

JLabel jLabel4

jLabel7

JLabel jLabel7

jTextField3

JTextField jTextField3

jTextField4

JTextField jTextField4

jLabel8

JLabel jLabel8

jTextField5

JTextField jTextField5

jCheckBox1

JCheckBox jCheckBox1

gridLayout4

GridLayout gridLayout4

jPanel8

JPanel jPanel8

gridLayout5

GridLayout gridLayout5

jPanel10

JPanel jPanel10

jButton3

JButton jButton3

jButton4

JButton jButton4

jPanel7

JPanel jPanel7

flowLayout1

FlowLayout flowLayout1

borderLayout2

BorderLayout borderLayout2

jPanel9

JPanel jPanel9

jButton5

JButton jButton5

jPanel11

JPanel jPanel11

borderLayout4

BorderLayout borderLayout4

jPanel12

JPanel jPanel12

jRadioButton1

JRadioButton jRadioButton1

jRadioButton2

JRadioButton jRadioButton2

gridLayout6

GridLayout gridLayout6

buttonGroup1

ButtonGroup buttonGroup1

buttonGroup2

ButtonGroup buttonGroup2

jPanel13

JPanel jPanel13

jPanel2

JPanel jPanel2

jButton2

JButton jButton2

jButton1

JButton jButton1

borderLayout5

BorderLayout borderLayout5

jPanel18

JPanel jPanel18

jLabel3

JLabel jLabel3

jLabel9

JLabel jLabel9

jPanel19

JPanel jPanel19

jLabel10

JLabel jLabel10

jLabel11

JLabel jLabel11

jRadioButton3

JRadioButton jRadioButton3

jRadioButton4

JRadioButton jRadioButton4

gridLayout7

GridLayout gridLayout7

jPanel110

JPanel jPanel110
Constructor Detail

ShapeFileLoaderDialog

public ShapeFileLoaderDialog(Frame frame,
                             String title,
                             boolean modal,
                             String directory,
                             String filename,
                             Vector recordNames,
                             Vector selected,
                             String shapeFileTypeName,
                             int recordCounter)
Creates an instance of this class.

Parameters:
frame - Parent frame
title - Dialog box title
modal - Modal flag
directory - Directory
filename - Filename of the shapefile
recordNames - A list with records
selected - A vector with predefined flags
shapeFileTypeName - The readable type name of shapefile
recordCounter - Number of records
Method Detail

jbInit

void jbInit()
      throws Exception
GUI Init

Throws:
Exception

jButton1_actionPerformed

void jButton1_actionPerformed(ActionEvent e)
GUI


jButton2_actionPerformed

void jButton2_actionPerformed(ActionEvent e)
GUI


jButton3_actionPerformed

void jButton3_actionPerformed(ActionEvent e)
GUI


jButton4_actionPerformed

void jButton4_actionPerformed(ActionEvent e)
GUI


jButton5_actionPerformed

void jButton5_actionPerformed(ActionEvent e)
GUI


getResult

public boolean getResult()
Returns the result of this dialog.

Returns:
true on OK, false on CANCEL

getColor

public Color getColor()
Returns the selected color.

Returns:
Color

getStyle

public int getStyle()
Returns the selected style.

Returns:
Style

getTransparency

public float getTransparency()
Returns the selected transparency.

Returns:
Transparency

getOffsetX

public double getOffsetX()
Returns the x-offset.

Returns:
x-offset

getOffsetY

public double getOffsetY()
Returns the y-offset.

Returns:
y-offset

getOffsetZ

public double getOffsetZ()
Returns the z-offset.

Returns:
z-offset

getDistance

public float getDistance()
Returns the distance.

Returns:
distance

getLOD

public boolean getLOD()
Returns the lod flag

Returns:
lod flag

getDetailLevel

public int getDetailLevel()
Returns the distance level.

Returns:
distance level


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.