plugins.big.bigsnakeutils.icy.gui.pair
Class PairEditor

java.lang.Object
  extended by plugins.adufour.vars.gui.VarEditor<Pair>
      extended by plugins.big.bigsnakeutils.icy.gui.pair.PairEditor
All Implemented Interfaces:
plugins.adufour.vars.util.VarListener<Pair>

public class PairEditor
extends plugins.adufour.vars.gui.VarEditor<Pair>

VarEditor for Pair objects. The editor is compose of tow JSpinner separated by a linking word (the default is '-'). This linking word cannot be changed in Protocol.

Version:
May 3, 2014
Author:
Julien Jacquemot

Constructor Summary
PairEditor(VarPair variable)
          default constructor
 
Method Summary
 void dispose()
           
 javax.swing.JComponent getEditorComponent()
           
 double getFirstMaximum()
          Returns the maximum for the first value of the pair.
 double getFirstMinimum()
          Returns the minimum for the first value of the pair.
 double getFirstStepSize()
          Returns the step size for the first value of the pair.
 java.lang.String getLinkingWord()
          Returns the linking word displayed between the first and the second value of the pair.
 java.awt.Dimension getPreferredSize()
           
 double getSecondMaximum()
          Returns the maximum for the second value of the pair.
 double getSecondMinimum()
          Returns the minimum for the second value of the pair.
 double getSecondStepSize()
          Returns the step size for the second value of the pair.
 boolean isComponentEnabled()
           
 boolean isComponentOpaque()
           
 void setBounds(double min, double max)
          Set the bounds for the both values of the pair.
 void setComponentToolTipText(java.lang.String s)
           
 void setFirstBounds(double min, double max)
          Set the bounds for the first value of the pair.
 void setFirstMaximum(double max)
          Set the maximum for the first value of the pair.
 void setFirstMinimum(double min)
          Set the minimum for the first value of the pair.
 void setFirstStepSize(double step)
          Set the step size for the first value of the pair.
 void setLinkingWord(java.lang.String word)
          Set the linking word displayed between the first and the second value of the pair.
 void setMaximum(double max)
          Set the maximum for the both values of the pair.
 void setMinimum(double min)
          Set the minimum for the both values of the pair.
 void setSecondBounds(double min, double max)
          Set the bounds for the second value of the pair.
 void setSecondMaximum(double max)
          Set the maximum for the second value of the pair.
 void setSecondMinimum(double min)
          Set the minimum for the second value of the pair.
 void setSecondStepSize(double step)
          Set the step size for the second value of the pair.
 void setStepSize(double step)
          Set the step size for the both values of the pair.
 
Methods inherited from class plugins.adufour.vars.gui.VarEditor
getComponentHorizontalResizeFactor, getComponentVerticalResizeFactor, getVariable, isComponentFocusable, isComponentResizeable, isNameVisible, referenceChanged, setComponentFocusable, setComponentResizeable, setEnabled, setNameVisible, valueChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairEditor

public PairEditor(VarPair variable)
default constructor

Method Detail

setFirstMinimum

public void setFirstMinimum(double min)
Set the minimum for the first value of the pair.


getFirstMinimum

public double getFirstMinimum()
Returns the minimum for the first value of the pair.


setFirstMaximum

public void setFirstMaximum(double max)
Set the maximum for the first value of the pair.


getFirstMaximum

public double getFirstMaximum()
Returns the maximum for the first value of the pair.


setFirstBounds

public void setFirstBounds(double min,
                           double max)
Set the bounds for the first value of the pair.


setSecondMinimum

public void setSecondMinimum(double min)
Set the minimum for the second value of the pair.


getSecondMinimum

public double getSecondMinimum()
Returns the minimum for the second value of the pair.


setSecondMaximum

public void setSecondMaximum(double max)
Set the maximum for the second value of the pair.


getSecondMaximum

public double getSecondMaximum()
Returns the maximum for the second value of the pair.


setSecondBounds

public void setSecondBounds(double min,
                            double max)
Set the bounds for the second value of the pair.


setMinimum

public void setMinimum(double min)
Set the minimum for the both values of the pair.


setMaximum

public void setMaximum(double max)
Set the maximum for the both values of the pair.


setBounds

public void setBounds(double min,
                      double max)
Set the bounds for the both values of the pair.


setFirstStepSize

public void setFirstStepSize(double step)
Set the step size for the first value of the pair.


getFirstStepSize

public double getFirstStepSize()
Returns the step size for the first value of the pair.


setSecondStepSize

public void setSecondStepSize(double step)
Set the step size for the second value of the pair.


getSecondStepSize

public double getSecondStepSize()
Returns the step size for the second value of the pair.


setStepSize

public void setStepSize(double step)
Set the step size for the both values of the pair.


setLinkingWord

public void setLinkingWord(java.lang.String word)
Set the linking word displayed between the first and the second value of the pair.


getLinkingWord

public java.lang.String getLinkingWord()
Returns the linking word displayed between the first and the second value of the pair.


getEditorComponent

public javax.swing.JComponent getEditorComponent()
Overrides:
getEditorComponent in class plugins.adufour.vars.gui.VarEditor<Pair>

getPreferredSize

public java.awt.Dimension getPreferredSize()
Specified by:
getPreferredSize in class plugins.adufour.vars.gui.VarEditor<Pair>

setComponentToolTipText

public void setComponentToolTipText(java.lang.String s)
Specified by:
setComponentToolTipText in class plugins.adufour.vars.gui.VarEditor<Pair>

dispose

public void dispose()
Overrides:
dispose in class plugins.adufour.vars.gui.VarEditor<Pair>

isComponentEnabled

public boolean isComponentEnabled()
Overrides:
isComponentEnabled in class plugins.adufour.vars.gui.VarEditor<Pair>

isComponentOpaque

public boolean isComponentOpaque()
Overrides:
isComponentOpaque in class plugins.adufour.vars.gui.VarEditor<Pair>