From 2c146c894972e2c6ab701b3c66dcf242d7be656f Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Tue, 24 Dec 2019 16:16:13 -0500 Subject: Added Javadoc to the project. --- .../converterGUI/DelegateListModel.html | 959 ++++++++++++++++ .../converterGUI/FilterComparator.html | 489 +++++++++ .../unitConverter/converterGUI/GridBagBuilder.html | 1140 ++++++++++++++++++++ .../converterGUI/MutablePredicate.html | 428 ++++++++ .../unitConverter/converterGUI/SearchBoxList.html | 902 ++++++++++++++++ .../converterGUI/UnitConverterGUI.Presenter.html | 717 ++++++++++++ .../converterGUI/UnitConverterGUI.View.html | 853 +++++++++++++++ .../converterGUI/UnitConverterGUI.html | 341 ++++++ .../converterGUI/class-use/DelegateListModel.html | 195 ++++ .../converterGUI/class-use/FilterComparator.html | 149 +++ .../converterGUI/class-use/GridBagBuilder.html | 225 ++++ .../converterGUI/class-use/MutablePredicate.html | 149 +++ .../converterGUI/class-use/SearchBoxList.html | 218 ++++ .../class-use/UnitConverterGUI.Presenter.html | 197 ++++ .../class-use/UnitConverterGUI.View.html | 212 ++++ .../converterGUI/class-use/UnitConverterGUI.html | 149 +++ .../unitConverter/converterGUI/package-frame.html | 14 + .../converterGUI/package-summary.html | 139 +++ .../unitConverter/converterGUI/package-tree.html | 127 +++ .../unitConverter/converterGUI/package-use.html | 124 +++ 20 files changed, 7727 insertions(+) create mode 100644 doc/org/unitConverter/converterGUI/DelegateListModel.html create mode 100644 doc/org/unitConverter/converterGUI/FilterComparator.html create mode 100644 doc/org/unitConverter/converterGUI/GridBagBuilder.html create mode 100644 doc/org/unitConverter/converterGUI/MutablePredicate.html create mode 100644 doc/org/unitConverter/converterGUI/SearchBoxList.html create mode 100644 doc/org/unitConverter/converterGUI/UnitConverterGUI.Presenter.html create mode 100644 doc/org/unitConverter/converterGUI/UnitConverterGUI.View.html create mode 100644 doc/org/unitConverter/converterGUI/UnitConverterGUI.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/DelegateListModel.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/FilterComparator.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/GridBagBuilder.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/MutablePredicate.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/SearchBoxList.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.Presenter.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.View.html create mode 100644 doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.html create mode 100644 doc/org/unitConverter/converterGUI/package-frame.html create mode 100644 doc/org/unitConverter/converterGUI/package-summary.html create mode 100644 doc/org/unitConverter/converterGUI/package-tree.html create mode 100644 doc/org/unitConverter/converterGUI/package-use.html (limited to 'doc/org/unitConverter/converterGUI') diff --git a/doc/org/unitConverter/converterGUI/DelegateListModel.html b/doc/org/unitConverter/converterGUI/DelegateListModel.html new file mode 100644 index 0000000..916d94b --- /dev/null +++ b/doc/org/unitConverter/converterGUI/DelegateListModel.html @@ -0,0 +1,959 @@ + + + + + +DelegateListModel + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class DelegateListModel<E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • javax.swing.AbstractListModel<E>
    • +
    • +
        +
      • org.unitConverter.converterGUI.DelegateListModel<E>
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, javax.swing.ListModel<E>
    +
    +
    +
    final class DelegateListModel<E>
    +extends javax.swing.AbstractListModel<E>
    +implements java.util.List<E>
    +
    A list model that delegates to a list. +

    + It is recommended to use the delegate methods in DelegateListModel instead of the delegated list's methods because + the delegate methods handle updating the list. +

    +
    +
    Since:
    +
    2019-01-14, v0.1.0
    +
    Author:
    +
    Adrien Hopkins
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private java.util.List<E>delegate +
      The list that this model is a delegate to.
      +
      private static longserialVersionUID 
      +
        +
      • + + +

        Fields inherited from class javax.swing.AbstractListModel

        +listenerList
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      DelegateListModel() +
      Creates an empty DelegateListModel.
      +
      DelegateListModel​(java.util.List<E> delegate) +
      Creates the DelegateListModel.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidadd​(int index, + E element) 
      booleanadd​(E element) 
      booleanaddAll​(int index, + java.util.Collection<? extends E> c) 
      booleanaddAll​(java.util.Collection<? extends E> c) 
      voidclear() 
      booleancontains​(java.lang.Object elem) 
      booleancontainsAll​(java.util.Collection<?> c) 
      Eget​(int index) 
      EgetElementAt​(int index) 
      intgetSize() 
      intindexOf​(java.lang.Object elem) 
      booleanisEmpty() 
      java.util.Iterator<E>iterator() 
      intlastIndexOf​(java.lang.Object elem) 
      java.util.ListIterator<E>listIterator() 
      java.util.ListIterator<E>listIterator​(int index) 
      Eremove​(int index) 
      booleanremove​(java.lang.Object o) 
      booleanremoveAll​(java.util.Collection<?> c) 
      booleanretainAll​(java.util.Collection<?> c) 
      Eset​(int index, + E element) 
      intsize() 
      java.util.List<E>subList​(int fromIndex, + int toIndex) 
      java.lang.Object[]toArray() 
      <T> T[]toArray​(T[] a) 
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class javax.swing.AbstractListModel

        +addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Collection

        +parallelStream, removeIf, stream, toArray
      • +
      +
        +
      • + + +

        Methods inherited from interface java.lang.Iterable

        +forEach
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.List

        +equals, hashCode, replaceAll, sort, spliterator
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        serialVersionUID

        +
        private static final long serialVersionUID
        +
        +
        Since:
        +
        2019-01-14, v0.1.0
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        delegate

        +
        private final java.util.List<E> delegate
        +
        The list that this model is a delegate to.
        +
        +
        Since:
        +
        2019-01-14, v0.1.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DelegateListModel

        +
        public DelegateListModel()
        +
        Creates an empty DelegateListModel.
        +
        +
        Since:
        +
        2019-04-13
        +
        +
      • +
      + + + +
        +
      • +

        DelegateListModel

        +
        public DelegateListModel​(java.util.List<E> delegate)
        +
        Creates the DelegateListModel.
        +
        +
        Parameters:
        +
        delegate - list to delegate
        +
        Since:
        +
        2019-01-14, v0.1.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        add

        +
        public boolean add​(E element)
        +
        +
        Specified by:
        +
        add in interface java.util.Collection<E>
        +
        Specified by:
        +
        add in interface java.util.List<E>
        +
        +
      • +
      + + + + + +
        +
      • +

        add

        +
        public void add​(int index,
        +                E element)
        +
        +
        Specified by:
        +
        add in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        addAll

        +
        public boolean addAll​(java.util.Collection<? extends E> c)
        +
        +
        Specified by:
        +
        addAll in interface java.util.Collection<E>
        +
        Specified by:
        +
        addAll in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        addAll

        +
        public boolean addAll​(int index,
        +                      java.util.Collection<? extends E> c)
        +
        +
        Specified by:
        +
        addAll in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        +
        Specified by:
        +
        clear in interface java.util.Collection<E>
        +
        Specified by:
        +
        clear in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        contains

        +
        public boolean contains​(java.lang.Object elem)
        +
        +
        Specified by:
        +
        contains in interface java.util.Collection<E>
        +
        Specified by:
        +
        contains in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        containsAll

        +
        public boolean containsAll​(java.util.Collection<?> c)
        +
        +
        Specified by:
        +
        containsAll in interface java.util.Collection<E>
        +
        Specified by:
        +
        containsAll in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public E get​(int index)
        +
        +
        Specified by:
        +
        get in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        getElementAt

        +
        public E getElementAt​(int index)
        +
        +
        Specified by:
        +
        getElementAt in interface javax.swing.ListModel<E>
        +
        +
      • +
      + + + +
        +
      • +

        getSize

        +
        public int getSize()
        +
        +
        Specified by:
        +
        getSize in interface javax.swing.ListModel<E>
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public int indexOf​(java.lang.Object elem)
        +
        +
        Specified by:
        +
        indexOf in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
        +
        Specified by:
        +
        isEmpty in interface java.util.Collection<E>
        +
        Specified by:
        +
        isEmpty in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        iterator

        +
        public java.util.Iterator<E> iterator()
        +
        +
        Specified by:
        +
        iterator in interface java.util.Collection<E>
        +
        Specified by:
        +
        iterator in interface java.lang.Iterable<E>
        +
        Specified by:
        +
        iterator in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        lastIndexOf

        +
        public int lastIndexOf​(java.lang.Object elem)
        +
        +
        Specified by:
        +
        lastIndexOf in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        listIterator

        +
        public java.util.ListIterator<E> listIterator()
        +
        +
        Specified by:
        +
        listIterator in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        listIterator

        +
        public java.util.ListIterator<E> listIterator​(int index)
        +
        +
        Specified by:
        +
        listIterator in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public E remove​(int index)
        +
        +
        Specified by:
        +
        remove in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public boolean remove​(java.lang.Object o)
        +
        +
        Specified by:
        +
        remove in interface java.util.Collection<E>
        +
        Specified by:
        +
        remove in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        removeAll

        +
        public boolean removeAll​(java.util.Collection<?> c)
        +
        +
        Specified by:
        +
        removeAll in interface java.util.Collection<E>
        +
        Specified by:
        +
        removeAll in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        retainAll

        +
        public boolean retainAll​(java.util.Collection<?> c)
        +
        +
        Specified by:
        +
        retainAll in interface java.util.Collection<E>
        +
        Specified by:
        +
        retainAll in interface java.util.List<E>
        +
        +
      • +
      + + + + + +
        +
      • +

        set

        +
        public E set​(int index,
        +             E element)
        +
        +
        Specified by:
        +
        set in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        +
        Specified by:
        +
        size in interface java.util.Collection<E>
        +
        Specified by:
        +
        size in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        subList

        +
        public java.util.List<E> subList​(int fromIndex,
        +                                 int toIndex)
        +
        +
        Specified by:
        +
        subList in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        toArray

        +
        public java.lang.Object[] toArray()
        +
        +
        Specified by:
        +
        toArray in interface java.util.Collection<E>
        +
        Specified by:
        +
        toArray in interface java.util.List<E>
        +
        +
      • +
      + + + + + +
        +
      • +

        toArray

        +
        public <T> T[] toArray​(T[] a)
        +
        +
        Specified by:
        +
        toArray in interface java.util.Collection<E>
        +
        Specified by:
        +
        toArray in interface java.util.List<E>
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/FilterComparator.html b/doc/org/unitConverter/converterGUI/FilterComparator.html new file mode 100644 index 0000000..af91555 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/FilterComparator.html @@ -0,0 +1,489 @@ + + + + + +FilterComparator + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FilterComparator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.unitConverter.converterGUI.FilterComparator
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.Comparator<java.lang.String>
    +
    +
    +
    final class FilterComparator
    +extends java.lang.Object
    +implements java.util.Comparator<java.lang.String>
    +
    A comparator that compares strings using a filter.
    +
    +
    Since:
    +
    2019-01-15, v0.1.0
    +
    Author:
    +
    Adrien Hopkins
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private booleancaseSensitive +
      Whether or not the comparison is case-sensitive.
      +
      private java.util.Comparator<java.lang.String>comparator +
      The comparator to use if the arguments are otherwise equal.
      +
      private java.lang.Stringfilter +
      The filter that the comparator is filtered by.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      FilterComparator​(java.lang.String filter) +
      Creates the FilterComparator.
      +
      FilterComparator​(java.lang.String filter, + java.util.Comparator<java.lang.String> comparator) +
      Creates the FilterComparator.
      +
      FilterComparator​(java.lang.String filter, + java.util.Comparator<java.lang.String> comparator, + boolean caseSensitive) +
      Creates the FilterComparator.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intcompare​(java.lang.String arg0, + java.lang.String arg1) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        filter

        +
        private final java.lang.String filter
        +
        The filter that the comparator is filtered by.
        +
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        comparator

        +
        private final java.util.Comparator<java.lang.String> comparator
        +
        The comparator to use if the arguments are otherwise equal.
        +
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        caseSensitive

        +
        private final boolean caseSensitive
        +
        Whether or not the comparison is case-sensitive.
        +
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FilterComparator

        +
        public FilterComparator​(java.lang.String filter)
        +
        Creates the FilterComparator.
        +
        +
        Parameters:
        +
        filter -
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        FilterComparator

        +
        public FilterComparator​(java.lang.String filter,
        +                        java.util.Comparator<java.lang.String> comparator)
        +
        Creates the FilterComparator.
        +
        +
        Parameters:
        +
        filter - string to filter by
        +
        comparator - comparator to fall back to if all else fails, null is compareTo.
        +
        Throws:
        +
        java.lang.NullPointerException - if filter is null
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        FilterComparator

        +
        public FilterComparator​(java.lang.String filter,
        +                        java.util.Comparator<java.lang.String> comparator,
        +                        boolean caseSensitive)
        +
        Creates the FilterComparator.
        +
        +
        Parameters:
        +
        filter - string to filter by
        +
        comparator - comparator to fall back to if all else fails, null is compareTo.
        +
        caseSensitive - whether or not the comparator is case-sensitive
        +
        Throws:
        +
        java.lang.NullPointerException - if filter is null
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        compare

        +
        public int compare​(java.lang.String arg0,
        +                   java.lang.String arg1)
        +
        +
        Specified by:
        +
        compare in interface java.util.Comparator<java.lang.String>
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/GridBagBuilder.html b/doc/org/unitConverter/converterGUI/GridBagBuilder.html new file mode 100644 index 0000000..c8e80d2 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/GridBagBuilder.html @@ -0,0 +1,1140 @@ + + + + + +GridBagBuilder + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class GridBagBuilder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.unitConverter.converterGUI.GridBagBuilder
    • +
    +
  • +
+
+
    +
  • +
    +
    final class GridBagBuilder
    +extends java.lang.Object
    +
    A builder for Java's GridBagConstraints class.
    +
    +
    Since:
    +
    2018-11-30, v0.1.0
    +
    Author:
    +
    Adrien Hopkins
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private intanchor +
      The built GridBagConstraints's anchor property.
      +
      private intfill +
      The built GridBagConstraints's fill property.
      +
      private intgridheight +
      The built GridBagConstraints's gridheight property.
      +
      private intgridwidth +
      The built GridBagConstraints's gridwidth property.
      +
      private intgridx +
      The built GridBagConstraints's gridx property.
      +
      private intgridy +
      The built GridBagConstraints's gridy property.
      +
      private java.awt.Insetsinsets +
      The built GridBagConstraints's insets property.
      +
      private intipadx +
      The built GridBagConstraints's ipadx property.
      +
      private intipady +
      The built GridBagConstraints's ipady property.
      +
      private doubleweightx +
      The built GridBagConstraints's weightx property.
      +
      private doubleweighty +
      The built GridBagConstraints's weighty property.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Constructors 
      ModifierConstructorDescription
       GridBagBuilder​(int gridx, + int gridy) 
       GridBagBuilder​(int gridx, + int gridy, + int gridwidth, + int gridheight) 
      private GridBagBuilder​(int gridx, + int gridy, + int gridwidth, + int gridheight, + double weightx, + double weighty, + int anchor, + int fill, + java.awt.Insets insets, + int ipadx, + int ipady) 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        gridx

        +
        private final int gridx
        +
        The built GridBagConstraints's gridx property. +

        + Specifies the cell containing the leading edge of the component's display area, where the first cell in a row has + gridx=0. The leading edge of a component's display area is its left edge for a horizontal, + left-to-right container and its right edge for a horizontal, right-to-left container. The value + RELATIVE specifies that the component be placed immediately following the component that was added + to the container just before this component was added. +

        + The default value is RELATIVE. gridx should be a non-negative value.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.gridy, +ComponentOrientation
        +
        +
      • +
      + + + +
        +
      • +

        gridy

        +
        private final int gridy
        +
        The built GridBagConstraints's gridy property. +

        + Specifies the cell at the top of the component's display area, where the topmost cell has gridy=0. + The value RELATIVE specifies that the component be placed just below the component that was added to + the container just before this component was added. +

        + The default value is RELATIVE. gridy should be a non-negative value.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.gridx
        +
        +
      • +
      + + + +
        +
      • +

        gridwidth

        +
        private final int gridwidth
        +
        The built GridBagConstraints's gridwidth property. +

        + Specifies the number of cells in a row for the component's display area. +

        + Use REMAINDER to specify that the component's display area will be from gridx to the + last cell in the row. Use RELATIVE to specify that the component's display area will be from + gridx to the next to the last one in its row. +

        + gridwidth should be non-negative and the default value is 1.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.gridheight
        +
        +
      • +
      + + + +
        +
      • +

        gridheight

        +
        private final int gridheight
        +
        The built GridBagConstraints's gridheight property. +

        + Specifies the number of cells in a column for the component's display area. +

        + Use REMAINDER to specify that the component's display area will be from gridy to the + last cell in the column. Use RELATIVE to specify that the component's display area will be from + gridy to the next to the last one in its column. +

        + gridheight should be a non-negative value and the default value is 1.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.gridwidth
        +
        +
      • +
      + + + +
        +
      • +

        weightx

        +
        private double weightx
        +
        The built GridBagConstraints's weightx property. +

        + Specifies how to distribute extra horizontal space. +

        + The grid bag layout manager calculates the weight of a column to be the maximum weightx of all the + components in a column. If the resulting layout is smaller horizontally than the area it needs to fill, the extra + space is distributed to each column in proportion to its weight. A column that has a weight of zero receives no + extra space. +

        + If all the weights are zero, all the extra space appears between the grids of the cell and the left and right + edges. +

        + The default value of this field is 0. weightx should be a non-negative value.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.weighty
        +
        +
      • +
      + + + +
        +
      • +

        weighty

        +
        private double weighty
        +
        The built GridBagConstraints's weighty property. +

        + Specifies how to distribute extra vertical space. +

        + The grid bag layout manager calculates the weight of a row to be the maximum weighty of all the + components in a row. If the resulting layout is smaller vertically than the area it needs to fill, the extra + space is distributed to each row in proportion to its weight. A row that has a weight of zero receives no extra + space. +

        + If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom + edges. +

        + The default value of this field is 0. weighty should be a non-negative value.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.weightx
        +
        +
      • +
      + + + +
        +
      • +

        anchor

        +
        private int anchor
        +
        The built GridBagConstraints's anchor property. +

        + This field is used when the component is smaller than its display area. It determines where, within the display + area, to place the component. +

        + There are three kinds of possible values: orientation relative, baseline relative and absolute. Orientation + relative values are interpreted relative to the container's component orientation property, baseline relative + values are interpreted relative to the baseline and absolute values are not. The absolute values are: + CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, + SOUTH, SOUTHWEST, WEST, and NORTHWEST. The orientation + relative values are: PAGE_START, PAGE_END, LINE_START, + LINE_END, FIRST_LINE_START, FIRST_LINE_END, LAST_LINE_START + and LAST_LINE_END. The baseline relative values are: BASELINE, + BASELINE_LEADING, BASELINE_TRAILING, ABOVE_BASELINE, + ABOVE_BASELINE_LEADING, ABOVE_BASELINE_TRAILING, BELOW_BASELINE, + BELOW_BASELINE_LEADING, and BELOW_BASELINE_TRAILING. The default value is + CENTER.

        +
        +
        See Also:
        +
        Object.clone(), +ComponentOrientation
        +
        +
      • +
      + + + +
        +
      • +

        fill

        +
        private int fill
        +
        The built GridBagConstraints's fill property. +

        + This field is used when the component's display area is larger than the component's requested size. It determines + whether to resize the component, and if so, how. +

        + The following values are valid for fill: + +

          +
        • NONE: Do not resize the component. +
        • HORIZONTAL: Make the component wide enough to fill its display area horizontally, but do not + change its height. +
        • VERTICAL: Make the component tall enough to fill its display area vertically, but do not change + its width. +
        • BOTH: Make the component fill its display area entirely. +
        +

        + The default value is NONE.

        +
        +
        See Also:
        +
        Object.clone()
        +
        +
      • +
      + + + +
        +
      • +

        insets

        +
        private java.awt.Insets insets
        +
        The built GridBagConstraints's insets property. +

        + This field specifies the external padding of the component, the minimum amount of space between the component and + the edges of its display area. +

        + The default value is new Insets(0, 0, 0, 0).

        +
        +
        See Also:
        +
        Object.clone()
        +
        +
      • +
      + + + +
        +
      • +

        ipadx

        +
        private int ipadx
        +
        The built GridBagConstraints's ipadx property. +

        + This field specifies the internal padding of the component, how much space to add to the minimum width of the + component. The width of the component is at least its minimum width plus ipadx pixels. +

        + The default value is 0.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.ipady
        +
        +
      • +
      + + + +
        +
      • +

        ipady

        +
        private int ipady
        +
        The built GridBagConstraints's ipady property. +

        + This field specifies the internal padding, that is, how much space to add to the minimum height of the component. + The height of the component is at least its minimum height plus ipady pixels. +

        + The default value is 0.

        +
        +
        See Also:
        +
        Object.clone(), +GridBagConstraints.ipadx
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GridBagBuilder

        +
        public GridBagBuilder​(int gridx,
        +                      int gridy)
        +
        +
        Parameters:
        +
        gridx - x position
        +
        gridy - y position
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        GridBagBuilder

        +
        public GridBagBuilder​(int gridx,
        +                      int gridy,
        +                      int gridwidth,
        +                      int gridheight)
        +
        +
        Parameters:
        +
        gridx - x position
        +
        gridy - y position
        +
        gridwidth - number of cells occupied horizontally
        +
        gridheight - number of cells occupied vertically
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        GridBagBuilder

        +
        private GridBagBuilder​(int gridx,
        +                       int gridy,
        +                       int gridwidth,
        +                       int gridheight,
        +                       double weightx,
        +                       double weighty,
        +                       int anchor,
        +                       int fill,
        +                       java.awt.Insets insets,
        +                       int ipadx,
        +                       int ipady)
        +
        +
        Parameters:
        +
        gridx - x position
        +
        gridy - y position
        +
        gridwidth - number of cells occupied horizontally
        +
        gridheight - number of cells occupied vertically
        +
        weightx -
        +
        weighty -
        +
        anchor -
        +
        fill -
        +
        insets -
        +
        ipadx -
        +
        ipady -
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        build

        +
        public java.awt.GridBagConstraints build()
        +
        +
        Returns:
        +
        GridBagConstraints created by this builder
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getAnchor

        +
        public int getAnchor()
        +
        +
        Returns:
        +
        anchor
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getFill

        +
        public int getFill()
        +
        +
        Returns:
        +
        fill
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getGridheight

        +
        public int getGridheight()
        +
        +
        Returns:
        +
        gridheight
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getGridwidth

        +
        public int getGridwidth()
        +
        +
        Returns:
        +
        gridwidth
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getGridx

        +
        public int getGridx()
        +
        +
        Returns:
        +
        gridx
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getGridy

        +
        public int getGridy()
        +
        +
        Returns:
        +
        gridy
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getInsets

        +
        public java.awt.Insets getInsets()
        +
        +
        Returns:
        +
        insets
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getIpadx

        +
        public int getIpadx()
        +
        +
        Returns:
        +
        ipadx
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getIpady

        +
        public int getIpady()
        +
        +
        Returns:
        +
        ipady
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getWeightx

        +
        public double getWeightx()
        +
        +
        Returns:
        +
        weightx
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getWeighty

        +
        public double getWeighty()
        +
        +
        Returns:
        +
        weighty
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setAnchor

        +
        public GridBagBuilder setAnchor​(int anchor)
        +
        +
        Parameters:
        +
        anchor - anchor to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setFill

        +
        public GridBagBuilder setFill​(int fill)
        +
        +
        Parameters:
        +
        fill - fill to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setInsets

        +
        public GridBagBuilder setInsets​(java.awt.Insets insets)
        +
        +
        Parameters:
        +
        insets - insets to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setIpadx

        +
        public GridBagBuilder setIpadx​(int ipadx)
        +
        +
        Parameters:
        +
        ipadx - ipadx to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setIpady

        +
        public GridBagBuilder setIpady​(int ipady)
        +
        +
        Parameters:
        +
        ipady - ipady to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setWeightx

        +
        public GridBagBuilder setWeightx​(double weightx)
        +
        +
        Parameters:
        +
        weightx - weightx to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setWeighty

        +
        public GridBagBuilder setWeighty​(double weighty)
        +
        +
        Parameters:
        +
        weighty - weighty to set
        +
        Since:
        +
        2018-11-30, v0.1.0
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/MutablePredicate.html b/doc/org/unitConverter/converterGUI/MutablePredicate.html new file mode 100644 index 0000000..d7af17c --- /dev/null +++ b/doc/org/unitConverter/converterGUI/MutablePredicate.html @@ -0,0 +1,428 @@ + + + + + +MutablePredicate + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class MutablePredicate<T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.unitConverter.converterGUI.MutablePredicate<T>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.function.Predicate<T>
    +
    +
    +
    final class MutablePredicate<T>
    +extends java.lang.Object
    +implements java.util.function.Predicate<T>
    +
    A container for a predicate, which can be changed later.
    +
    +
    Since:
    +
    2019-04-13, v0.2.0
    +
    Author:
    +
    Adrien Hopkins
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private java.util.function.Predicate<T>predicate +
      The predicate stored in this MutablePredicate
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      MutablePredicate​(java.util.function.Predicate<T> predicate) +
      Creates the MutablePredicate.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.util.function.Predicate<T>getPredicate() 
      voidsetPredicate​(java.util.function.Predicate<T> predicate) 
      booleantest​(T t) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.function.Predicate

        +and, negate, or
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        predicate

        +
        private java.util.function.Predicate<T> predicate
        +
        The predicate stored in this MutablePredicate
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MutablePredicate

        +
        public MutablePredicate​(java.util.function.Predicate<T> predicate)
        +
        Creates the MutablePredicate.
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPredicate

        +
        public final java.util.function.Predicate<T> getPredicate()
        +
        +
        Returns:
        +
        predicate
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        setPredicate

        +
        public final void setPredicate​(java.util.function.Predicate<T> predicate)
        +
        +
        Parameters:
        +
        predicate - new value of predicate
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + + + +
        +
      • +

        test

        +
        public boolean test​(T t)
        +
        +
        Specified by:
        +
        test in interface java.util.function.Predicate<T>
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/SearchBoxList.html b/doc/org/unitConverter/converterGUI/SearchBoxList.html new file mode 100644 index 0000000..1831fbd --- /dev/null +++ b/doc/org/unitConverter/converterGUI/SearchBoxList.html @@ -0,0 +1,902 @@ + + + + + +SearchBoxList + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SearchBoxList

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.awt.Component
    • +
    • +
        +
      • java.awt.Container
      • +
      • +
          +
        • javax.swing.JComponent
        • +
        • +
            +
          • javax.swing.JPanel
          • +
          • +
              +
            • org.unitConverter.converterGUI.SearchBoxList
            • +
            +
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    +
    +
    +
    final class SearchBoxList
    +extends javax.swing.JPanel
    +
    +
    Since:
    +
    2019-04-13, v0.2.0
    +
    Author:
    +
    Adrien Hopkins
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JPanel

        +javax.swing.JPanel.AccessibleJPanel
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private booleancaseSensitive 
      private java.util.function.Predicate<java.lang.String>customSearchFilter 
      private java.util.Comparator<java.lang.String>defaultOrdering 
      private static java.awt.ColorEMPTY_FOREGROUND +
      The color to use for an empty foreground.
      +
      private static java.lang.StringEMPTY_TEXT +
      The text to place in an empty search box.
      +
      private java.util.Collection<java.lang.String>itemsToFilter 
      private DelegateListModel<java.lang.String>listModel 
      private javax.swing.JTextFieldsearchBox 
      private booleansearchBoxEmpty 
      private booleansearchBoxFocused 
      private javax.swing.JList<java.lang.String>searchItems 
      private static longserialVersionUID 
      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • +
      +
        +
      • + + +

        Fields inherited from interface java.awt.image.ImageObserver

        +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      SearchBoxList​(java.util.Collection<java.lang.String> itemsToFilter) +
      Creates the SearchBoxList.
      +
      SearchBoxList​(java.util.Collection<java.lang.String> itemsToFilter, + java.util.Comparator<java.lang.String> defaultOrdering, + boolean caseSensitive) +
      Creates the SearchBoxList.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidaddSearchFilter​(java.util.function.Predicate<java.lang.String> filter) +
      Adds an additional filter for searching.
      +
      voidclearSearchFilters() +
      Resets the search filter.
      +
      javax.swing.JTextFieldgetSearchBox() 
      private java.util.function.Predicate<java.lang.String>getSearchFilter​(java.lang.String searchText) 
      javax.swing.JList<java.lang.String>getSearchList() 
      intgetSelectedIndex() 
      java.lang.StringgetSelectedValue() 
      voidreapplyFilter() +
      Re-applies the filters.
      +
      private voidsearchBoxFocusGained​(java.awt.event.FocusEvent e) +
      Runs whenever the search box gains focus.
      +
      private voidsearchBoxFocusLost​(java.awt.event.FocusEvent e) +
      Runs whenever the search box loses focus.
      +
      private voidsearchBoxTextChanged() +
      Runs whenever the text in the search box is changed.
      +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JPanel

        +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        serialVersionUID

        +
        private static final long serialVersionUID
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        EMPTY_TEXT

        +
        private static final java.lang.String EMPTY_TEXT
        +
        The text to place in an empty search box.
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        EMPTY_FOREGROUND

        +
        private static final java.awt.Color EMPTY_FOREGROUND
        +
        The color to use for an empty foreground.
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        itemsToFilter

        +
        private final java.util.Collection<java.lang.String> itemsToFilter
        +
      • +
      + + + + + + + +
        +
      • +

        searchBox

        +
        private final javax.swing.JTextField searchBox
        +
      • +
      + + + +
        +
      • +

        searchItems

        +
        private final javax.swing.JList<java.lang.String> searchItems
        +
      • +
      + + + +
        +
      • +

        searchBoxEmpty

        +
        private boolean searchBoxEmpty
        +
      • +
      + + + +
        +
      • +

        searchBoxFocused

        +
        private boolean searchBoxFocused
        +
      • +
      + + + +
        +
      • +

        customSearchFilter

        +
        private java.util.function.Predicate<java.lang.String> customSearchFilter
        +
      • +
      + + + +
        +
      • +

        defaultOrdering

        +
        private final java.util.Comparator<java.lang.String> defaultOrdering
        +
      • +
      + + + +
        +
      • +

        caseSensitive

        +
        private final boolean caseSensitive
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SearchBoxList

        +
        public SearchBoxList​(java.util.Collection<java.lang.String> itemsToFilter)
        +
        Creates the SearchBoxList.
        +
        +
        Parameters:
        +
        itemsToFilter - items to put in the list
        +
        Since:
        +
        2019-04-14
        +
        +
      • +
      + + + +
        +
      • +

        SearchBoxList

        +
        public SearchBoxList​(java.util.Collection<java.lang.String> itemsToFilter,
        +                     java.util.Comparator<java.lang.String> defaultOrdering,
        +                     boolean caseSensitive)
        +
        Creates the SearchBoxList.
        +
        +
        Parameters:
        +
        itemsToFilter - items to put in the list
        +
        defaultOrdering - default ordering of items after filtration (null=Comparable)
        +
        caseSensitive - whether or not the filtration is case-sensitive
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addSearchFilter

        +
        public void addSearchFilter​(java.util.function.Predicate<java.lang.String> filter)
        +
        Adds an additional filter for searching.
        +
        +
        Parameters:
        +
        filter - filter to add.
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        clearSearchFilters

        +
        public void clearSearchFilters()
        +
        Resets the search filter.
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getSearchBox

        +
        public final javax.swing.JTextField getSearchBox()
        +
        +
        Returns:
        +
        this component's search box component
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getSearchFilter

        +
        private java.util.function.Predicate<java.lang.String> getSearchFilter​(java.lang.String searchText)
        +
        +
        Parameters:
        +
        searchText - text to search for
        +
        Returns:
        +
        a filter that filters out that text, based on this list's case sensitive setting
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getSearchList

        +
        public final javax.swing.JList<java.lang.String> getSearchList()
        +
        +
        Returns:
        +
        this component's list component
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getSelectedIndex

        +
        public int getSelectedIndex()
        +
        +
        Returns:
        +
        index selected in item list
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getSelectedValue

        +
        public java.lang.String getSelectedValue()
        +
        +
        Returns:
        +
        value selected in item list
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        reapplyFilter

        +
        public void reapplyFilter()
        +
        Re-applies the filters.
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        searchBoxFocusGained

        +
        private void searchBoxFocusGained​(java.awt.event.FocusEvent e)
        +
        Runs whenever the search box gains focus.
        +
        +
        Parameters:
        +
        e - focus event
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        searchBoxFocusLost

        +
        private void searchBoxFocusLost​(java.awt.event.FocusEvent e)
        +
        Runs whenever the search box loses focus.
        +
        +
        Parameters:
        +
        e - focus event
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        searchBoxTextChanged

        +
        private void searchBoxTextChanged()
        +
        Runs whenever the text in the search box is changed. +

        + Reapplies the search filter, and custom filters. +

        +
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/UnitConverterGUI.Presenter.html b/doc/org/unitConverter/converterGUI/UnitConverterGUI.Presenter.html new file mode 100644 index 0000000..a33e4d8 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/UnitConverterGUI.Presenter.html @@ -0,0 +1,717 @@ + + + + + +UnitConverterGUI.Presenter + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class UnitConverterGUI.Presenter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.unitConverter.converterGUI.UnitConverterGUI.Presenter
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    UnitConverterGUI
    +
    +
    +
    private static class UnitConverterGUI.Presenter
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private UnitDatabasedatabase +
      The units known by the program.
      +
      private java.util.List<java.lang.String>dimensionNames +
      The names of all of the dimensions
      +
      private java.util.Comparator<java.lang.String>prefixNameComparator 
      private java.util.List<java.lang.String>prefixNames +
      The names of all of the prefixes
      +
      private intsignificantFigures 
      private java.util.List<java.lang.String>unitNames +
      The names of all of the units
      +
      private UnitConverterGUI.Viewview +
      The presenter's associated view.
      +
      +
    • +
    +
    + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      private static voidaddDefaults​(UnitDatabase database) +
      Adds default units and dimensions to a database.
      +
      voidconvertDimensionBased() +
      Converts in the dimension-based converter
      +
      voidconvertExpressions() +
      Runs whenever the convert button is pressed.
      +
      java.util.List<java.lang.String>dimensionNameList() 
      java.util.Comparator<java.lang.String>getPrefixNameComparator() 
      private java.lang.StringgetRoundedString​(double value) 
      java.util.Set<java.lang.String>prefixNameSet() 
      voidprefixSelected() +
      Runs whenever a prefix is selected in the viewer.
      +
      voidsetSignificantFigures​(int significantFigures) 
      booleanunitMatchesDimension​(java.lang.String unitName, + java.lang.String dimensionName) +
      Returns true if and only if the unit represented by unitName has the dimension represented by + dimensionName.
      +
      voidunitNameSelected() +
      Runs whenever a unit is selected in the viewer.
      +
      java.util.Set<java.lang.String>unitNameSet() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        database

        +
        private final UnitDatabase database
        +
        The units known by the program.
        +
      • +
      + + + +
        +
      • +

        unitNames

        +
        private final java.util.List<java.lang.String> unitNames
        +
        The names of all of the units
        +
      • +
      + + + +
        +
      • +

        prefixNames

        +
        private final java.util.List<java.lang.String> prefixNames
        +
        The names of all of the prefixes
        +
      • +
      + + + +
        +
      • +

        dimensionNames

        +
        private final java.util.List<java.lang.String> dimensionNames
        +
        The names of all of the dimensions
        +
      • +
      + + + +
        +
      • +

        prefixNameComparator

        +
        private final java.util.Comparator<java.lang.String> prefixNameComparator
        +
      • +
      + + + +
        +
      • +

        significantFigures

        +
        private int significantFigures
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Presenter

        +
        Presenter​(UnitConverterGUI.View view)
        +
        Creates the presenter.
        +
        +
        Parameters:
        +
        view - presenter's associated view
        +
        Since:
        +
        2018-12-27, v0.1.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addDefaults

        +
        private static void addDefaults​(UnitDatabase database)
        +
        Adds default units and dimensions to a database.
        +
        +
        Parameters:
        +
        database - database to add to
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        convertDimensionBased

        +
        public final void convertDimensionBased()
        +
        Converts in the dimension-based converter
        +
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        convertExpressions

        +
        public final void convertExpressions()
        +
        Runs whenever the convert button is pressed. + +

        + Reads and parses a unit expression from the from and to boxes, then converts from to to. Any + errors are shown in JOptionPanes. +

        +
        +
        Since:
        +
        2019-01-26, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        dimensionNameList

        +
        public final java.util.List<java.lang.String> dimensionNameList()
        +
        +
        Returns:
        +
        a list of all of the unit dimensions
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getPrefixNameComparator

        +
        public final java.util.Comparator<java.lang.String> getPrefixNameComparator()
        +
        +
        Returns:
        +
        a comparator to compare prefix names
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getRoundedString

        +
        private final java.lang.String getRoundedString​(double value)
        +
        +
        Parameters:
        +
        value - value to round
        +
        Returns:
        +
        string of that value rounded to significantDigits significant digits.
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        prefixNameSet

        +
        public final java.util.Set<java.lang.String> prefixNameSet()
        +
        +
        Returns:
        +
        a set of all prefix names in the database
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        prefixSelected

        +
        public final void prefixSelected()
        +
        Runs whenever a prefix is selected in the viewer. +

        + Shows its information in the text box to the right. +

        +
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setSignificantFigures

        +
        public final void setSignificantFigures​(int significantFigures)
        +
        +
        Parameters:
        +
        significantFigures - new value of significantFigures
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        unitMatchesDimension

        +
        public final boolean unitMatchesDimension​(java.lang.String unitName,
        +                                          java.lang.String dimensionName)
        +
        Returns true if and only if the unit represented by unitName has the dimension represented by + dimensionName.
        +
        +
        Parameters:
        +
        unitName - name of unit to test
        +
        dimensionName - name of dimension to test
        +
        Returns:
        +
        whether unit has dimenision
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        unitNameSelected

        +
        public final void unitNameSelected()
        +
        Runs whenever a unit is selected in the viewer. +

        + Shows its information in the text box to the right. +

        +
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        unitNameSet

        +
        public final java.util.Set<java.lang.String> unitNameSet()
        +
        +
        Returns:
        +
        a set of all of the unit names
        +
        Since:
        +
        2019-04-14, v0.2.0
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/UnitConverterGUI.View.html b/doc/org/unitConverter/converterGUI/UnitConverterGUI.View.html new file mode 100644 index 0000000..708050f --- /dev/null +++ b/doc/org/unitConverter/converterGUI/UnitConverterGUI.View.html @@ -0,0 +1,853 @@ + + + + + +UnitConverterGUI.View + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class UnitConverterGUI.View

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.unitConverter.converterGUI.UnitConverterGUI.View
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    UnitConverterGUI
    +
    +
    +
    private static class UnitConverterGUI.View
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      private javax.swing.JTextAreadimensionBasedOutput +
      The output area in the dimension-based converter
      +
      private javax.swing.JFrameframe +
      The view's frame.
      +
      private javax.swing.JTextFieldfromEntry +
      The "From" entry in the conversion panel
      +
      private SearchBoxListfromSearch +
      The panel for "From" in the dimension-based converter
      +
      private javax.swing.JTextAreaoutput +
      The output area in the conversion panel
      +
      private SearchBoxListprefixNameList +
      The searchable list of prefix names in the prefix viewer
      +
      private javax.swing.JTextAreaprefixTextBox +
      The text box for prefix data in the prefix viewer
      +
      private UnitConverterGUI.Presenterpresenter +
      The view's associated presenter.
      +
      private javax.swing.JTextFieldtoEntry +
      The "To" entry in the conversion panel
      +
      private SearchBoxListtoSearch +
      The panel for "To" in the dimension-based converter
      +
      private SearchBoxListunitNameList +
      The searchable list of unit names in the unit viewer
      +
      private javax.swing.JTextAreaunitTextBox +
      The text box for unit data in the unit viewer
      +
      private javax.swing.JTextFieldvalueInput +
      The panel for inputting values in the dimension-based converter
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      View() +
      Creates the View.
      +
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        frame

        +
        private final javax.swing.JFrame frame
        +
        The view's frame.
        +
      • +
      + + + + + + + +
        +
      • +

        valueInput

        +
        private final javax.swing.JTextField valueInput
        +
        The panel for inputting values in the dimension-based converter
        +
      • +
      + + + +
        +
      • +

        fromSearch

        +
        private final SearchBoxList fromSearch
        +
        The panel for "From" in the dimension-based converter
        +
      • +
      + + + +
        +
      • +

        toSearch

        +
        private final SearchBoxList toSearch
        +
        The panel for "To" in the dimension-based converter
        +
      • +
      + + + +
        +
      • +

        dimensionBasedOutput

        +
        private final javax.swing.JTextArea dimensionBasedOutput
        +
        The output area in the dimension-based converter
        +
      • +
      + + + +
        +
      • +

        fromEntry

        +
        private final javax.swing.JTextField fromEntry
        +
        The "From" entry in the conversion panel
        +
      • +
      + + + +
        +
      • +

        toEntry

        +
        private final javax.swing.JTextField toEntry
        +
        The "To" entry in the conversion panel
        +
      • +
      + + + +
        +
      • +

        output

        +
        private final javax.swing.JTextArea output
        +
        The output area in the conversion panel
        +
      • +
      + + + +
        +
      • +

        unitNameList

        +
        private final SearchBoxList unitNameList
        +
        The searchable list of unit names in the unit viewer
        +
      • +
      + + + +
        +
      • +

        prefixNameList

        +
        private final SearchBoxList prefixNameList
        +
        The searchable list of prefix names in the prefix viewer
        +
      • +
      + + + +
        +
      • +

        unitTextBox

        +
        private final javax.swing.JTextArea unitTextBox
        +
        The text box for unit data in the unit viewer
        +
      • +
      + + + +
        +
      • +

        prefixTextBox

        +
        private final javax.swing.JTextArea prefixTextBox
        +
        The text box for prefix data in the prefix viewer
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        View

        +
        public View()
        +
        Creates the View.
        +
        +
        Since:
        +
        2019-01-14, v0.1.0
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDimensionConverterInput

        +
        public java.lang.String getDimensionConverterInput()
        +
        +
        Returns:
        +
        value in dimension-based converter
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getFromSelection

        +
        public java.lang.String getFromSelection()
        +
        +
        Returns:
        +
        selection in "From" selector in dimension-based converter
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getFromText

        +
        public java.lang.String getFromText()
        +
        +
        Returns:
        +
        text in "From" box in converter panel
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getPrefixViewerSelection

        +
        public java.lang.String getPrefixViewerSelection()
        +
        +
        Returns:
        +
        index of selected prefix in prefix viewer
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getToSelection

        +
        public java.lang.String getToSelection()
        +
        +
        Returns:
        +
        selection in "To" selector in dimension-based converter
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        getToText

        +
        public java.lang.String getToText()
        +
        +
        Returns:
        +
        text in "To" box in converter panel
        +
        Since:
        +
        2019-01-26, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        getUnitViewerSelection

        +
        public java.lang.String getUnitViewerSelection()
        +
        +
        Returns:
        +
        index of selected unit in unit viewer
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        init

        +
        public final void init()
        +
        Starts up the application.
        +
        +
        Since:
        +
        2018-12-27, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        initComponents

        +
        private final void initComponents()
        +
        Initializes the view's components.
        +
        +
        Since:
        +
        2018-12-27, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setDimensionConverterOutputText

        +
        public void setDimensionConverterOutputText​(java.lang.String text)
        +
        Sets the text in the output of the dimension-based converter.
        +
        +
        Parameters:
        +
        text - text to set
        +
        Since:
        +
        2019-04-13, v0.2.0
        +
        +
      • +
      + + + +
        +
      • +

        setExpressionConverterOutputText

        +
        public void setExpressionConverterOutputText​(java.lang.String text)
        +
        Sets the text in the output of the conversion panel.
        +
        +
        Parameters:
        +
        text - text to set
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setPrefixTextBoxText

        +
        public void setPrefixTextBoxText​(java.lang.String text)
        +
        Sets the text of the prefix text box in the prefix viewer.
        +
        +
        Parameters:
        +
        text - text to set
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        setUnitTextBoxText

        +
        public void setUnitTextBoxText​(java.lang.String text)
        +
        Sets the text of the unit text box in the unit viewer.
        +
        +
        Parameters:
        +
        text - text to set
        +
        Since:
        +
        2019-01-15, v0.1.0
        +
        +
      • +
      + + + +
        +
      • +

        showErrorDialog

        +
        public void showErrorDialog​(java.lang.String title,
        +                            java.lang.String message)
        +
        Shows an error dialog.
        +
        +
        Parameters:
        +
        title - title of dialog
        +
        message - message in dialog
        +
        Since:
        +
        2019-01-14, v0.1.0
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/UnitConverterGUI.html b/doc/org/unitConverter/converterGUI/UnitConverterGUI.html new file mode 100644 index 0000000..a61d917 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/UnitConverterGUI.html @@ -0,0 +1,341 @@ + + + + + +UnitConverterGUI + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class UnitConverterGUI

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.unitConverter.converterGUI.UnitConverterGUI
    • +
    +
  • +
+
+
    +
  • +
    +
    final class UnitConverterGUI
    +extends java.lang.Object
    +
    +
    Since:
    +
    2018-12-27, v0.1.0
    +
    Author:
    +
    Adrien Hopkins
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      UnitConverterGUI() 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static voidmain​(java.lang.String[] args) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnitConverterGUI

        +
        UnitConverterGUI()
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main​(java.lang.String[] args)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/doc/org/unitConverter/converterGUI/class-use/DelegateListModel.html b/doc/org/unitConverter/converterGUI/class-use/DelegateListModel.html new file mode 100644 index 0000000..11be7c6 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/DelegateListModel.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.DelegateListModel + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.DelegateListModel

+
+
+ +
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/FilterComparator.html b/doc/org/unitConverter/converterGUI/class-use/FilterComparator.html new file mode 100644 index 0000000..45696dc --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/FilterComparator.html @@ -0,0 +1,149 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.FilterComparator + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.FilterComparator

+
+
No usage of org.unitConverter.converterGUI.FilterComparator
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/GridBagBuilder.html b/doc/org/unitConverter/converterGUI/class-use/GridBagBuilder.html new file mode 100644 index 0000000..6dbde14 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/GridBagBuilder.html @@ -0,0 +1,225 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.GridBagBuilder + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.GridBagBuilder

+
+
+ +
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/MutablePredicate.html b/doc/org/unitConverter/converterGUI/class-use/MutablePredicate.html new file mode 100644 index 0000000..91113cd --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/MutablePredicate.html @@ -0,0 +1,149 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.MutablePredicate + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.MutablePredicate

+
+
No usage of org.unitConverter.converterGUI.MutablePredicate
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/SearchBoxList.html b/doc/org/unitConverter/converterGUI/class-use/SearchBoxList.html new file mode 100644 index 0000000..ef2d34c --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/SearchBoxList.html @@ -0,0 +1,218 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.SearchBoxList + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.SearchBoxList

+
+
+ +
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.Presenter.html b/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.Presenter.html new file mode 100644 index 0000000..e2116c8 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.Presenter.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.UnitConverterGUI.Presenter + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.UnitConverterGUI.Presenter

+
+
+ +
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.View.html b/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.View.html new file mode 100644 index 0000000..0660499 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.View.html @@ -0,0 +1,212 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.UnitConverterGUI.View + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.UnitConverterGUI.View

+
+
+ +
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.html b/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.html new file mode 100644 index 0000000..4cfc3f6 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/class-use/UnitConverterGUI.html @@ -0,0 +1,149 @@ + + + + + +Uses of Class org.unitConverter.converterGUI.UnitConverterGUI + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
org.unitConverter.converterGUI.UnitConverterGUI

+
+
No usage of org.unitConverter.converterGUI.UnitConverterGUI
+
+ + + diff --git a/doc/org/unitConverter/converterGUI/package-frame.html b/doc/org/unitConverter/converterGUI/package-frame.html new file mode 100644 index 0000000..33d1aeb --- /dev/null +++ b/doc/org/unitConverter/converterGUI/package-frame.html @@ -0,0 +1,14 @@ + + + + + +org.unitConverter.converterGUI + + + + + +

org.unitConverter.converterGUI

+ + diff --git a/doc/org/unitConverter/converterGUI/package-summary.html b/doc/org/unitConverter/converterGUI/package-summary.html new file mode 100644 index 0000000..fd85478 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/package-summary.html @@ -0,0 +1,139 @@ + + + + + +org.unitConverter.converterGUI + + + + + + + + +
+ + + + + + + +
+ + +
+

Package org.unitConverter.converterGUI

+
+
The GUI interface of the Unit Converter.
+
+

See: Description

+
+
+ + +

Package org.unitConverter.converterGUI Description

+
The GUI interface of the Unit Converter.
+
+
Since:
+
2019-01-25, v0.2.0
+
Author:
+
Adrien Hopkins
+
+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/org/unitConverter/converterGUI/package-tree.html b/doc/org/unitConverter/converterGUI/package-tree.html new file mode 100644 index 0000000..007991a --- /dev/null +++ b/doc/org/unitConverter/converterGUI/package-tree.html @@ -0,0 +1,127 @@ + + + + + +org.unitConverter.converterGUI Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package org.unitConverter.converterGUI

+Package Hierarchies: + +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/org/unitConverter/converterGUI/package-use.html b/doc/org/unitConverter/converterGUI/package-use.html new file mode 100644 index 0000000..83a9bc5 --- /dev/null +++ b/doc/org/unitConverter/converterGUI/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package org.unitConverter.converterGUI + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
org.unitConverter.converterGUI

+
+
No usage of org.unitConverter.converterGUI
+ +
+ + + + + + + +
+ + + + -- cgit v1.2.3