org.deegree.tools.crs.georeferencing.model.dialog
Class OptionDialogModel

java.lang.Object
  extended by org.deegree.tools.crs.georeferencing.model.dialog.OptionDialogModel

public class OptionDialogModel
extends Object

Handles the option dialogs to show in the GUI.

Version:
$Revision: 28806 $, $Date: 2010-12-16 11:18:55 +0100 (Thu, 16 Dec 2010) $
Author:
Steffen Thomas, last edited by: $Author: aschmitz $

Field Summary
static String GENERAL
           
static String VIEW
           
 
Constructor Summary
OptionDialogModel()
          Creates a new instance of OptionDialogPanel.
 
Method Summary
 void createNodes(DefaultMutableTreeNode root)
          Creates the nodes that for the tree-representation.
 Pair<Double,Double> getResizeValue()
           
 Pair<Integer,Integer> getSelectionPointSize()
           
 Pair<Boolean,Boolean> getSnappingOnOff()
           
 Pair<String,String> getTextFieldKeyString()
           
 void setResizeValue(double resizeValue)
          Sets the second parameter of the Pair.
 void setSelectionPointSize(int selectionPointSize)
          Sets the second parameter of the Pair.
 void setSnappingOnOff(boolean setSnapping)
          Sets the second parameter of the Pair.
 void setTextFieldKeyString(String textFieldKeyString)
          Sets the second parameter of the Pair.
 void transferNewToOld()
          Handles the transfer of the newValue(second) to the oldValue(first).
 void transferOldToNew()
          Handles the transfer of the oldValue(first) to the newValue(second).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERAL

public static final String GENERAL
See Also:
Constant Field Values

VIEW

public static final String VIEW
See Also:
Constant Field Values
Constructor Detail

OptionDialogModel

public OptionDialogModel()
Creates a new instance of OptionDialogPanel.

Method Detail

createNodes

public void createNodes(DefaultMutableTreeNode root)
Creates the nodes that for the tree-representation.

Parameters:
root - the rootNode, not null.

getSnappingOnOff

public Pair<Boolean,Boolean> getSnappingOnOff()
Returns:
the snapping.

setSnappingOnOff

public void setSnappingOnOff(boolean setSnapping)
Sets the second parameter of the Pair.

Parameters:
setSnapping - , not null.

getSelectionPointSize

public Pair<Integer,Integer> getSelectionPointSize()
Returns:
the selectionPointSize.

setSelectionPointSize

public void setSelectionPointSize(int selectionPointSize)
Sets the second parameter of the Pair.

Parameters:
selectionPointSize - , not null.

getTextFieldKeyString

public Pair<String,String> getTextFieldKeyString()
Returns:
the text from the textfield.

setTextFieldKeyString

public void setTextFieldKeyString(String textFieldKeyString)
Sets the second parameter of the Pair.

Parameters:
textFieldKeyString - , not null.

getResizeValue

public Pair<Double,Double> getResizeValue()
Returns:
the double value of the resizeValue.

setResizeValue

public void setResizeValue(double resizeValue)
Sets the second parameter of the Pair.

Parameters:
resizeValue - , not null.

transferNewToOld

public void transferNewToOld()
Handles the transfer of the newValue(second) to the oldValue(first).
Whether there is a commit like ok.


transferOldToNew

public void transferOldToNew()
Handles the transfer of the oldValue(first) to the newValue(second).
If there is a reject like cancel.



Copyright © 2011. All Rights Reserved.