\hypertarget{classAdvancedDialog}{
\subsection{AdvancedDialog Class Reference}
\label{classAdvancedDialog}\index{AdvancedDialog@{AdvancedDialog}}
}


Control panel which basically presents the .cfg file in a large edit box along with additional necessary things (frame range and pixel size).  


\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
boolean \hyperlink{classAdvancedDialog_a91a1ae66368e6634bbd2cf8b67b0673d}{dialogItemChanged} (GenericDialog gd, java.awt.AWTEvent e)
\item 
double \hyperlink{classAdvancedDialog_a701de2e2eed1ef493db4343f221c1f86}{parseDouble} (String s)
\end{DoxyCompactItemize}
\subsubsection*{Package Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classAdvancedDialog_a630997cc03035e74dc5b2cc2a231050b}{AdvancedDialog} (String cfg, int nframes\_\-)
\item 
int \hyperlink{classAdvancedDialog_a8de8cb5419a6c9a31a5625d76f1784b0}{parseInt} (String s)
\item 
TextField \hyperlink{classAdvancedDialog_adfb83e7e66b2c0e2f6ae0e03463afa57}{getPixelSizeField} ()
\item 
TextField \hyperlink{classAdvancedDialog_ab9bba5169e49fae7413ae2a40fbec99a}{getFirstFrameField} ()
\item 
TextField \hyperlink{classAdvancedDialog_aba43043aaf763bbf1fbd66a7807813d9}{getLastFrameField} ()
\item 
double \hyperlink{classAdvancedDialog_a0150dbc6e1970ba84ab29f292b245418}{getPixelSize} ()
\item 
int \hyperlink{classAdvancedDialog_aca3cd606fcc46ae5fe35718645f6af66}{getFirstFrame} ()
\item 
int \hyperlink{classAdvancedDialog_ab5df079d29946c9467160d7cf6f6050c}{getLastFrame} ()
\end{DoxyCompactItemize}
\subsubsection*{Package Attributes}
\begin{DoxyCompactItemize}
\item 
boolean \hyperlink{classAdvancedDialog_a87ad44f55465d93de5f79cf73912904d}{ok} = true
\item 
int \hyperlink{classAdvancedDialog_ad6311731c653eb69f475435672387a78}{nframes}
\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Control panel which basically presents the .cfg file in a large edit box along with additional necessary things (frame range and pixel size). 

Also make the user acknowledge that they might be getting into trouble. This is uglier than I would like. 

Definition at line 307 of file three\_\-B.java.



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classAdvancedDialog_a630997cc03035e74dc5b2cc2a231050b}{
\index{AdvancedDialog@{AdvancedDialog}!AdvancedDialog@{AdvancedDialog}}
\index{AdvancedDialog@{AdvancedDialog}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{AdvancedDialog}]{\setlength{\rightskip}{0pt plus 5cm}AdvancedDialog::AdvancedDialog (
\begin{DoxyParamCaption}
\item[{String}]{cfg, }
\item[{int}]{nframes\_\-}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_a630997cc03035e74dc5b2cc2a231050b}


Definition at line 311 of file three\_\-B.java.



References dialogItemChanged(), and nframes.


\begin{DoxyCode}
    {
        super("3B Analysis");
        nframes=nframes_;

        addMessage("Advanced configuration");
        addMessage("                                 ");
        addCheckbox("I understand 3B enough to be editing the text below", false)
      ;
        addTextAreas(cfg, null, 40, 100);

        addNumericField("Pixel size (nm / pixel)", 100., 1, 10, "nm");
        addNumericField("First frame", 0., 0, 10, ""); 
        addNumericField("Last frame", nframes-1., 0, 10, ""); 
        addDialogListener(this);

        dialogItemChanged(null, null);

        showDialog();
    }
\end{DoxyCode}


\subsubsection{Member Function Documentation}
\hypertarget{classAdvancedDialog_a91a1ae66368e6634bbd2cf8b67b0673d}{
\index{AdvancedDialog@{AdvancedDialog}!dialogItemChanged@{dialogItemChanged}}
\index{dialogItemChanged@{dialogItemChanged}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{dialogItemChanged}]{\setlength{\rightskip}{0pt plus 5cm}boolean AdvancedDialog::dialogItemChanged (
\begin{DoxyParamCaption}
\item[{GenericDialog}]{gd, }
\item[{java.awt.AWTEvent}]{e}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classAdvancedDialog_a91a1ae66368e6634bbd2cf8b67b0673d}


Definition at line 331 of file three\_\-B.java.



References getFirstFrame(), getFirstFrameField(), getLastFrame(), getLastFrameField(), getPixelSizeField(), nframes, and ok.



Referenced by AdvancedDialog().


\begin{DoxyCode}
    {
        boolean v = ((Checkbox)(getCheckboxes().get(0))).getState();

        if(v != ok)
        {
            ok=v;

            if(ok)
            {
                getTextArea1().setEditable(true);
                ((Label)getMessage()).setText("Warning: strange behaviour may res
      ult!");
                getPixelSizeField().setEditable(true);
                getFirstFrameField().setEditable(true);
                getLastFrameField().setEditable(true);

            }
            else
            {
                getTextArea1().setEditable(false);
                ((Label)getMessage()).setText("                                  
                 ");
                getPixelSizeField().setEditable(false);
                getFirstFrameField().setEditable(false);
                getLastFrameField().setEditable(false);
            }
        }


        //Clamp the frames
        int first = getFirstFrame();
        int last  = getLastFrame();

        int nfirst = Math.max(0, Math.min(nframes-1, first));
        int nlast = Math.max(nfirst, Math.min(nframes-1, last));

        if(first != nfirst)
            getFirstFrameField().setText(Integer.toString(nfirst));
        if(last != nlast)
            getLastFrameField().setText(Integer.toString(nlast));
        return ok;
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_a8de8cb5419a6c9a31a5625d76f1784b0}{
\index{AdvancedDialog@{AdvancedDialog}!parseInt@{parseInt}}
\index{parseInt@{parseInt}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{parseInt}]{\setlength{\rightskip}{0pt plus 5cm}int AdvancedDialog::parseInt (
\begin{DoxyParamCaption}
\item[{String}]{s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_a8de8cb5419a6c9a31a5625d76f1784b0}


Definition at line 373 of file three\_\-B.java.



Referenced by getFirstFrame(), and getLastFrame().


\begin{DoxyCode}
    {
        try
        {
            return Integer.parseInt(s);
        }
        catch(Exception e)
        {
            return 0;
        }
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_a701de2e2eed1ef493db4343f221c1f86}{
\index{AdvancedDialog@{AdvancedDialog}!parseDouble@{parseDouble}}
\index{parseDouble@{parseDouble}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{parseDouble}]{\setlength{\rightskip}{0pt plus 5cm}double AdvancedDialog::parseDouble (
\begin{DoxyParamCaption}
\item[{String}]{s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classAdvancedDialog_a701de2e2eed1ef493db4343f221c1f86}


Definition at line 385 of file three\_\-B.java.



Referenced by getPixelSize().


\begin{DoxyCode}
    {
        try
        {
            return Double.parseDouble(s);
        }
        catch(Exception e)
        {
            return 0;
        }
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_adfb83e7e66b2c0e2f6ae0e03463afa57}{
\index{AdvancedDialog@{AdvancedDialog}!getPixelSizeField@{getPixelSizeField}}
\index{getPixelSizeField@{getPixelSizeField}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{getPixelSizeField}]{\setlength{\rightskip}{0pt plus 5cm}TextField AdvancedDialog::getPixelSizeField (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_adfb83e7e66b2c0e2f6ae0e03463afa57}


Definition at line 397 of file three\_\-B.java.



Referenced by dialogItemChanged(), and getPixelSize().


\begin{DoxyCode}
    {
        return (TextField)(getNumericFields().get(0));
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_ab9bba5169e49fae7413ae2a40fbec99a}{
\index{AdvancedDialog@{AdvancedDialog}!getFirstFrameField@{getFirstFrameField}}
\index{getFirstFrameField@{getFirstFrameField}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{getFirstFrameField}]{\setlength{\rightskip}{0pt plus 5cm}TextField AdvancedDialog::getFirstFrameField (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_ab9bba5169e49fae7413ae2a40fbec99a}


Definition at line 402 of file three\_\-B.java.



Referenced by dialogItemChanged(), and getFirstFrame().


\begin{DoxyCode}
    {
        return (TextField)(getNumericFields().get(1));
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_aba43043aaf763bbf1fbd66a7807813d9}{
\index{AdvancedDialog@{AdvancedDialog}!getLastFrameField@{getLastFrameField}}
\index{getLastFrameField@{getLastFrameField}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{getLastFrameField}]{\setlength{\rightskip}{0pt plus 5cm}TextField AdvancedDialog::getLastFrameField (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_aba43043aaf763bbf1fbd66a7807813d9}


Definition at line 408 of file three\_\-B.java.



Referenced by dialogItemChanged(), and getLastFrame().


\begin{DoxyCode}
    {
        return (TextField)(getNumericFields().get(2));
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_a0150dbc6e1970ba84ab29f292b245418}{
\index{AdvancedDialog@{AdvancedDialog}!getPixelSize@{getPixelSize}}
\index{getPixelSize@{getPixelSize}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{getPixelSize}]{\setlength{\rightskip}{0pt plus 5cm}double AdvancedDialog::getPixelSize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_a0150dbc6e1970ba84ab29f292b245418}


Definition at line 413 of file three\_\-B.java.



References getPixelSizeField(), and parseDouble().


\begin{DoxyCode}
    {
        return parseDouble(getPixelSizeField().getText());
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_aca3cd606fcc46ae5fe35718645f6af66}{
\index{AdvancedDialog@{AdvancedDialog}!getFirstFrame@{getFirstFrame}}
\index{getFirstFrame@{getFirstFrame}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{getFirstFrame}]{\setlength{\rightskip}{0pt plus 5cm}int AdvancedDialog::getFirstFrame (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_aca3cd606fcc46ae5fe35718645f6af66}


Definition at line 417 of file three\_\-B.java.



References getFirstFrameField(), and parseInt().



Referenced by dialogItemChanged().


\begin{DoxyCode}
    {
        return parseInt(getFirstFrameField().getText());
    }
\end{DoxyCode}
\hypertarget{classAdvancedDialog_ab5df079d29946c9467160d7cf6f6050c}{
\index{AdvancedDialog@{AdvancedDialog}!getLastFrame@{getLastFrame}}
\index{getLastFrame@{getLastFrame}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{getLastFrame}]{\setlength{\rightskip}{0pt plus 5cm}int AdvancedDialog::getLastFrame (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, package\mbox{]}}}}
\label{classAdvancedDialog_ab5df079d29946c9467160d7cf6f6050c}


Definition at line 422 of file three\_\-B.java.



References getLastFrameField(), and parseInt().



Referenced by dialogItemChanged().


\begin{DoxyCode}
    {
        return parseInt(getLastFrameField().getText());
    }
\end{DoxyCode}


\subsubsection{Member Data Documentation}
\hypertarget{classAdvancedDialog_a87ad44f55465d93de5f79cf73912904d}{
\index{AdvancedDialog@{AdvancedDialog}!ok@{ok}}
\index{ok@{ok}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{ok}]{\setlength{\rightskip}{0pt plus 5cm}boolean {\bf AdvancedDialog::ok} = true\hspace{0.3cm}{\ttfamily  \mbox{[}package\mbox{]}}}}
\label{classAdvancedDialog_a87ad44f55465d93de5f79cf73912904d}


Definition at line 309 of file three\_\-B.java.



Referenced by dialogItemChanged().

\hypertarget{classAdvancedDialog_ad6311731c653eb69f475435672387a78}{
\index{AdvancedDialog@{AdvancedDialog}!nframes@{nframes}}
\index{nframes@{nframes}!AdvancedDialog@{AdvancedDialog}}
\paragraph[{nframes}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf AdvancedDialog::nframes}\hspace{0.3cm}{\ttfamily  \mbox{[}package\mbox{]}}}}
\label{classAdvancedDialog_ad6311731c653eb69f475435672387a78}


Definition at line 310 of file three\_\-B.java.



Referenced by AdvancedDialog(), and dialogItemChanged().



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
\hyperlink{three__B_8java}{three\_\-B.java}\end{DoxyCompactItemize}
