aboutsummaryrefslogtreecommitdiffstats
path: root/doc/jcgp/gui/GUI.html
blob: c8274c9b4a79aded45e973a984c84d64a16a63d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_05) on Thu May 22 06:02:32 BST 2014 -->
<title>GUI</title>
<meta name="date" content="2014-05-22">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="GUI";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":9,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GUI.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?jcgp/gui/GUI.html" target="_top">Frames</a></li>
<li><a href="GUI.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.javafx.application.Application">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">jcgp.gui</div>
<h2 title="Class GUI" class="title">Class GUI</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>javafx.application.Application</li>
<li>
<ul class="inheritance">
<li>jcgp.gui.GUI</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">GUI</span>
extends javafx.application.Application</pre>
<div class="block">Main class for the graphical user interface (GUI).
 <br><br>
 This class declares the main method used when running the GUI.
 In addition, all main GUI panes are declared and instantiated here.
 <br><br>
 The user interface is divided into 3 main components: the node grid
 (<a href="../../jcgp/gui/population/PopulationPane.html" title="class in jcgp.gui.population"><code>PopulationPane</code></a>), the control pane (<a href="../../jcgp/gui/settings/SettingsPane.html" title="class in jcgp.gui.settings"><code>SettingsPane</code></a>) and
 the console (<a href="../../jcgp/gui/console/ConsolePane.html" title="class in jcgp.gui.console"><code>ConsolePane</code></a>). Click on any of the links in
 brackets to see more information about each interface component.
 <br><br>
 This class also contains the instance of JCGP responsible for
 running the experiments in GUI mode. JCGP's execution must be delegated
 to a separate thread so that the GUI remains unblocked. This is done using
 a JavaFX <code>Service</code> which calls <code>nextGeneration()</code> in a loop
 until it is interrupted by the main JavaFX thread.
 <br>
 This service also handles flushing the console in a thread safe way. This
 is done by synchronizing the <code>nextGeneration()</code> and <code>flush()</code>
 method calls on a lock object.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Eduardo Pedroni</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.javafx.application.Application">
<!--   -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;javafx.application.Application</h3>
<code>javafx.application.Application.Parameters</code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#BAD_SELECTION_COLOUR">BAD_SELECTION_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for representing a bad selection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#CONSOLE_MIN_HEIGHT">CONSOLE_MIN_HEIGHT</a></span></code>
<div class="block">The minimum width of the console pane, to prevent it
 from being resized beyond visibility.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#GOOD_SELECTION_COLOUR">GOOD_SELECTION_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for representing a good selection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#HARD_HIGHLIGHT_COLOUR">HARD_HIGHLIGHT_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for representing a hard highlight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#MEDIUM_HIGHLIGHT_COLOUR">MEDIUM_HIGHLIGHT_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for a medium highlight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#NEUTRAL_COLOUR">NEUTRAL_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for representing neutrality.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#NEUTRAL_SELECTION_COLOUR">NEUTRAL_SELECTION_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for representing a neutral selection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#RESIZE_MARGIN">RESIZE_MARGIN</a></span></code>
<div class="block">The width or height of the area that can be clicked on
 to drag-resize a pane.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#SETTINGS_MIN_WIDTH">SETTINGS_MIN_WIDTH</a></span></code>
<div class="block">The minimum width of the settings pane, to prevent it
 from being resized beyond visibility.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#SOFT_HIGHLIGHT_COLOUR">SOFT_HIGHLIGHT_COLOUR</a></span></code>
<div class="block">A string containing the hexadecimal colour used for a soft highlight.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.javafx.application.Application">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;javafx.application.Application</h3>
<code>STYLESHEET_CASPIAN, STYLESHEET_MODENA</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#GUI--">GUI</a></span>()</code>
<div class="block">Makes a new instance of GUI.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#bringFunctionSelector-javafx.scene.input.MouseEvent-jcgp.gui.population.GUINode-">bringFunctionSelector</a></span>(javafx.scene.input.MouseEvent&nbsp;event,
                     <a href="../../jcgp/gui/population/GUINode.html" title="class in jcgp.gui.population">GUINode</a>&nbsp;node)</code>
<div class="block">Relocate the function selector to the right position
 relative to the specified node and set it visible.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#evaluateTestCase-jcgp.backend.modules.problem.TestCaseProblem.TestCase-">evaluateTestCase</a></span>(<a href="../../jcgp/backend/modules/problem/TestCaseProblem.TestCase.html" title="class in jcgp.backend.modules.problem">TestCaseProblem.TestCase</a>&lt;java.lang.Object&gt;&nbsp;testCase)</code>
<div class="block">Starts the evaluation process with the given test case.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#flushConsole--">flushConsole</a></span>()</code>
<div class="block">Writes all buffered content out to the GUI console.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#getChromosomeIndex--">getChromosomeIndex</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../jcgp/JCGP.html" title="class in jcgp">JCGP</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#getExperiment--">getExperiment</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>javafx.stage.Stage</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#getStage--">getStage</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#hideGeneValues--">hideGeneValues</a></span>()</code>
<div class="block">Hide all evaluated values.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#isWorking--">isWorking</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#main-java.lang.String:A-">main</a></span>(java.lang.String[]&nbsp;args)</code>
<div class="block">Start JCGP with the user interface.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#reDraw--">reDraw</a></span>()</code>
<div class="block">Does a complete GUI refresh.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#reset--">reset</a></span>()</code>
<div class="block">Reset button callback.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#runPause--">runPause</a></span>()</code>
<div class="block">Run/pause method.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#setEvaluating-boolean-">setEvaluating</a></span>(boolean&nbsp;value)</code>
<div class="block">Set the system into evaluation mode.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#start-javafx.stage.Stage-">start</a></span>(javafx.stage.Stage&nbsp;primaryStage)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#step--">step</a></span>()</code>
<div class="block">Perform a single generation using <code>nextGeneration()</code>.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jcgp/gui/GUI.html#updateFunctionSelector--">updateFunctionSelector</a></span>()</code>
<div class="block">Refresh the function selector, used when functions are enabled or disabled.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javafx.application.Application">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;javafx.application.Application</h3>
<code>getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="NEUTRAL_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NEUTRAL_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String NEUTRAL_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for representing neutrality.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.NEUTRAL_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="HARD_HIGHLIGHT_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HARD_HIGHLIGHT_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String HARD_HIGHLIGHT_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for representing a hard highlight.
 A "hard" select, for instance, happens when an output path is locked on the chromosome
 pane.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.HARD_HIGHLIGHT_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="MEDIUM_HIGHLIGHT_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MEDIUM_HIGHLIGHT_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String MEDIUM_HIGHLIGHT_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for a medium highlight.
 One example of such a selection is the colour applied to a node
 when it is hovered over.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.MEDIUM_HIGHLIGHT_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SOFT_HIGHLIGHT_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SOFT_HIGHLIGHT_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String SOFT_HIGHLIGHT_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for a soft highlight.
 When hovering over a node, its connections are soft-selected.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.SOFT_HIGHLIGHT_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GOOD_SELECTION_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GOOD_SELECTION_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String GOOD_SELECTION_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for representing a good selection.
 Ideally a shade of green, used for instance when a manual connection is valid.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.GOOD_SELECTION_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NEUTRAL_SELECTION_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NEUTRAL_SELECTION_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String NEUTRAL_SELECTION_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for representing a neutral selection.
 Ideally a shade of yellow, used for instance when a manual connection is already the
 current connection.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.NEUTRAL_SELECTION_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="BAD_SELECTION_COLOUR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BAD_SELECTION_COLOUR</h4>
<pre>public static final&nbsp;java.lang.String BAD_SELECTION_COLOUR</pre>
<div class="block">A string containing the hexadecimal colour used for representing a bad selection.
 Ideally a shade of red, use for instance when a manual connection is not valid.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.BAD_SELECTION_COLOUR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="RESIZE_MARGIN">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RESIZE_MARGIN</h4>
<pre>public static final&nbsp;double RESIZE_MARGIN</pre>
<div class="block">The width or height of the area that can be clicked on
 to drag-resize a pane.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.RESIZE_MARGIN">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SETTINGS_MIN_WIDTH">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SETTINGS_MIN_WIDTH</h4>
<pre>public static final&nbsp;double SETTINGS_MIN_WIDTH</pre>
<div class="block">The minimum width of the settings pane, to prevent it
 from being resized beyond visibility.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.SETTINGS_MIN_WIDTH">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="CONSOLE_MIN_HEIGHT">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CONSOLE_MIN_HEIGHT</h4>
<pre>public static final&nbsp;double CONSOLE_MIN_HEIGHT</pre>
<div class="block">The minimum width of the console pane, to prevent it
 from being resized beyond visibility.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#jcgp.gui.GUI.CONSOLE_MIN_HEIGHT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="GUI--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GUI</h4>
<pre>public&nbsp;GUI()</pre>
<div class="block">Makes a new instance of GUI. This initialises the JCGP experiment and 
 instantiates the function selector. It also creates the console flush task
 and the service responsible for running the JCGP experiment.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="main-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>main</h4>
<pre>public static&nbsp;void&nbsp;main(java.lang.String[]&nbsp;args)</pre>
<div class="block">Start JCGP with the user interface.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>args</code> - no arguments are used.</dd>
</dl>
</li>
</ul>
<a name="start-javafx.stage.Stage-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre>public&nbsp;void&nbsp;start(javafx.stage.Stage&nbsp;primaryStage)
           throws java.lang.Exception</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>start</code>&nbsp;in class&nbsp;<code>javafx.application.Application</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a name="runPause--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runPause</h4>
<pre>public&nbsp;void&nbsp;runPause()</pre>
<div class="block">Run/pause method.
 Run the experiment if it is paused, or pause it if it is running.
 <br>
 This method is the callback used by the run/pause button. It
 controls the jcgp service.</div>
</li>
</ul>
<a name="step--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>step</h4>
<pre>public&nbsp;void&nbsp;step()</pre>
<div class="block">Perform a single generation using <code>nextGeneration()</code>. 
 <br>
 On top of that, this method performs all of the housekeeping 
 that is normally done before and after running, such as 
 refreshing the chromosome panes.</div>
</li>
</ul>
<a name="reset--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public&nbsp;void&nbsp;reset()</pre>
<div class="block">Reset button callback. If the parameters are valid, 
 this resets the entire experiment by calling <code>reset()</code>
 on jcgp.</div>
</li>
</ul>
<a name="reDraw--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reDraw</h4>
<pre>public&nbsp;void&nbsp;reDraw()</pre>
<div class="block">Does a complete GUI refresh. 
 This is potentially lengthy, so use with care.</div>
</li>
</ul>
<a name="updateFunctionSelector--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateFunctionSelector</h4>
<pre>public&nbsp;void&nbsp;updateFunctionSelector()</pre>
<div class="block">Refresh the function selector, used when functions are enabled or disabled.</div>
</li>
</ul>
<a name="isWorking--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isWorking</h4>
<pre>public&nbsp;boolean&nbsp;isWorking()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if jcgp is evolving.</dd>
</dl>
</li>
</ul>
<a name="bringFunctionSelector-javafx.scene.input.MouseEvent-jcgp.gui.population.GUINode-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bringFunctionSelector</h4>
<pre>public&nbsp;void&nbsp;bringFunctionSelector(javafx.scene.input.MouseEvent&nbsp;event,
                                  <a href="../../jcgp/gui/population/GUINode.html" title="class in jcgp.gui.population">GUINode</a>&nbsp;node)</pre>
<div class="block">Relocate the function selector to the right position
 relative to the specified node and set it visible.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>event</code> - the mouse event containing cursor coordinates.</dd>
<dd><code>node</code> - the node whose function should be changed.</dd>
</dl>
</li>
</ul>
<a name="getExperiment--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExperiment</h4>
<pre>public&nbsp;<a href="../../jcgp/JCGP.html" title="class in jcgp">JCGP</a>&nbsp;getExperiment()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a reference to the <code>JCGP</code> experiment.</dd>
</dl>
</li>
</ul>
<a name="evaluateTestCase-jcgp.backend.modules.problem.TestCaseProblem.TestCase-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>evaluateTestCase</h4>
<pre>public&nbsp;void&nbsp;evaluateTestCase(<a href="../../jcgp/backend/modules/problem/TestCaseProblem.TestCase.html" title="class in jcgp.backend.modules.problem">TestCaseProblem.TestCase</a>&lt;java.lang.Object&gt;&nbsp;testCase)</pre>
<div class="block">Starts the evaluation process with the given test case.
 It does so by calling <code>evaluateTestCase()</code> on
 the population pane.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>testCase</code> - the test case to evaluate.</dd>
</dl>
</li>
</ul>
<a name="hideGeneValues--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hideGeneValues</h4>
<pre>public&nbsp;void&nbsp;hideGeneValues()</pre>
<div class="block">Hide all evaluated values. This should be called when
 evaluations are no longer being performed.</div>
</li>
</ul>
<a name="setEvaluating-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEvaluating</h4>
<pre>public&nbsp;void&nbsp;setEvaluating(boolean&nbsp;value)</pre>
<div class="block">Set the system into evaluation mode. 
 When in evaluation mode, the population pane
 refreshes the node values whenever connection
 changes happen.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - true if evaluations are happening, false otherwise.</dd>
</dl>
</li>
</ul>
<a name="getStage--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStage</h4>
<pre>public&nbsp;javafx.stage.Stage&nbsp;getStage()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a reference to the GUI stage.</dd>
</dl>
</li>
</ul>
<a name="flushConsole--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flushConsole</h4>
<pre>public&nbsp;void&nbsp;flushConsole()</pre>
<div class="block">Writes all buffered content out to the GUI console.</div>
</li>
</ul>
<a name="getChromosomeIndex--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getChromosomeIndex</h4>
<pre>public&nbsp;int&nbsp;getChromosomeIndex()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index of the chromosome currently being looked at.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GUI.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?jcgp/gui/GUI.html" target="_top">Frames</a></li>
<li><a href="GUI.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.javafx.application.Application">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>