Ignore:
Timestamp:
07/24/19 11:23:45 (5 years ago)
Author:
bln4
Message:

Renamed Frame.getItems() to Frame.getSortedItems() to better represent its functionality.

-> org.apollo.ApolloGestureActions
-> org.apollo.ApolloSystem
-> org.expeditee.actions.Actions
-> org.expeditee.actions.Debug
-> org.expeditee.actions.ExploratorySearchActions
-> org.expeditee.actions.JfxBrowserActions
-> org.expeditee.actions.Misc
-> org.expeditee.actions.Navigation
-> org.expeditee.actions.ScriptBase
-> org.expeditee.actions.Simple
-> org.expeditee.agents.ComputeTree
-> org.expeditee.agents.CopyTree
-> org.expeditee.agents.DisplayComet
-> org.expeditee.agents.DisplayTree
-> org.expeditee.agents.DisplayTreeLeaves
-> org.expeditee.agents.GraphFramesetLinks
-> org.expeditee.agents.TreeProcessor
-> org.expeditee.gio.gesture.StandardGestureActions
-> org.expeditee.gui.DisplayController
-> org.expeditee.gui.FrameCreator
-> org.expeditee.gui.FrameIO
-> org.expeditee.io.DefaultTreeWriter
-> org.expeditee.io.JavaWriter
-> org.expeditee.io.PDF2Writer
-> org.expeditee.io.TXTWriter
-> org.expeditee.io.WebParser
-> org.expeditee.io.flowlayout.XGroupItem
-> org.expeditee.items.Dot
-> org.expeditee.items.Item
-> org.expeditee.items.ItemUtils
-> org.expeditee.network.FrameShare
-> org.expeditee.stats.TreeStats


Created ItemsList class to wrap ArrayList<Item>. Frames now use this new class to store its body list (used for display) as well as its primaryBody and surrogateBody.

-> org.expeditee.agents.Format
-> org.expeditee.agents.HFormat
-> org.expeditee.gio.gesture.StandardGestureActions
-> org.expeditee.gui.Frame
-> org.expeditee.gui.FrameUtils


Refactorted Frame.setResort(bool) to Frame.invalidateSorted() to better function how it is intended to with a more accurate name.

-> org.expeditee.agents.Sort


When writing out .exp files and getting attributes to respond to LEFT + RIGHT click, boolean items are by default true. This has always been the case. An ammendment to this is that defaults can now be established.
Also added 'EnterClick' functionality. If cursored over a item with this property and you press enter, it acts as if you have clicked on it instead.

-> org.expeditee.assets.resources-public.framesets.authentication.1.exp to 6.exp
-> org.expeditee.gio.gesture.StandardGestureActions
-> org.expeditee.gio.input.KBMInputEvent
-> org.expeditee.gio.javafx.JavaFXConversions
-> org.expeditee.gio.swing.SwingConversions
-> org.expeditee.gui.AttributeUtils
-> org.expeditee.io.Conversion
-> org.expeditee.io.DefaultFrameWriter
-> org.expeditee.items.Item


Fixed a bug caused by calling Math.abs on Integer.MIN_VALUE returning unexpected result. Due to zero being a thing, you cannot represent Math.abs(Integer.MIN_VALUE) in a Integer object. The solution is to use Integer.MIN_VALUE + 1 instead of Integer.MIN_VALUE.

-> org.expeditee.core.bounds.CombinationBounds
-> org.expeditee.io.flowlayout.DimensionExtent


Recoded the contains function in EllipticalBounds so that intersection tests containing circles work correctly.

-> org.expeditee.core.bounds.EllipticalBounds


Added toString() to PolygonBounds to allow for useful printing during debugging.

-> org.expeditee.core.bounds.PolygonBounds

Implemented Surrogate Mode!

-> org.expeditee.encryption.io.EncryptedExpReader
-> org.expeditee.encryption.io.EncryptedExpWriter
-> org.expeditee.encryption.items.surrogates.EncryptionDetail
-> org.expeditee.encryption.items.surrogates.Label
-> org.expeditee.gui.FrameUtils
-> org.expeditee.gui.ItemsList
-> org.expeditee.items.Item
-> org.expeditee.items.Text


???? Use Integer.MAX_VALUE cast to a float instead of Float.MAX_VALUE. This fixed some bug which I cannot remember.

-> org.expeditee.gio.TextLayoutManager
-> org.expeditee.gio.swing.SwingTextLayoutManager


Improved solution for dealing with the F10 key taking focus away from Expeditee due to it being a assessibility key.

-> org.expeditee.gio.swing.SwingInputManager


Renamed variable visibleItems in FrameGraphics.paintFrame to itemsToPaintCanditates to better represent functional intent.

-> org.expeditee.gui.FrameGraphics


Improved checking for if personal resources exist before recreating them

-> org.expeditee.gui.FrameIO


Repeated messages to message bay now have a visual feedback instead of just a beep. This visual feedback is in the form of a count of the amount of times it has repeated.

-> org.expeditee.gui.MessageBay


Updated comment on the Vector class to explain what vectors are.

-> org.expeditee.gui.Vector


Added constants to represent all of the property keys in DefaultFrameReader and DefaultFrameWriter.

-> org.expeditee.io.DefaultFrameReader
-> org.expeditee.io.DefaultFrameWriter


Updated the KeyList setting to be more heirarcial with how users will store their Secrets.

-> org.expeditee.settings.identity.secrets.KeyList

Location:
trunk/src/org/expeditee/io
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/Conversion.java

    r1374 r1415  
    691691                        return getExpediteeColorCode((Colour) output);
    692692
    693                 // covert points
     693                // convert points
    694694                if (output instanceof Point)
    695695                        return ((Point) output).getX() + " " + ((Point) output).getY();
    696696
    697                 if (output instanceof Boolean)
    698                         if ((Boolean) output)
    699                                 return null;
    700                         else
    701                                 return "F";
     697                if (output instanceof Boolean) {
     698                        try {
     699                                Class<?> parentClass = method.getDeclaringClass();
     700                                Field defaultValueField = parentClass.getField(method.getName() + "Default");
     701                                boolean defaultValue = defaultValueField.getBoolean(null);
     702                                if (defaultValue == (boolean) output) {
     703                                        return null;
     704                                }
     705                        } catch (IllegalArgumentException e) {
     706                                e.printStackTrace();
     707                        } catch (SecurityException e) {
     708                                e.printStackTrace();
     709                        } catch (NoSuchFieldException e) {
     710                                // true is the default for boolean values when no other default is provided
     711                                if ((boolean) output) {
     712                                        return null;
     713                                } else {
     714                                        return "F";
     715                                }
     716                        } catch (IllegalAccessException e) {
     717                                e.printStackTrace();
     718                        }
     719                        return output;
     720                }
    702721
    703722                if (output instanceof int[]) {
  • trunk/src/org/expeditee/io/DefaultFrameReader.java

    r1414 r1415  
    181181                        _DelayedItemTags.add('/');
    182182                       
    183                         _ItemTagsExt.put(DefaultFrameWriter.ENCRYPTION_LABEL_STR, Item.class.getMethod("setEncryptionLabel", pString));
     183                        _ItemTagsExt.put(DefaultFrameWriter.ENCRYPTION_LABEL_STR, Item.class.getMethod("setEncryptionLabelOnLoad", pString));
    184184                       
    185185                        _ItemTagsExt.put(DefaultFrameWriter.PLACEHOLDER_STR, Text.class.getMethod("setPlaceholder", pString));
    186186                        _ItemTagsExt.put(DefaultFrameWriter.SINGLE_LINE_ONLY_STR, Text.class.getMethod("setSingleLineOnly", pBool));
    187187                        _ItemTagsExt.put(DefaultFrameWriter.TAB_INDEX_STR, Text.class.getMethod("setTabIndex", pInt));
     188                        _ItemTagsExt.put(DefaultFrameWriter.ACCEPTS_ENTER, Item.class.getMethod("setAcceptsEnter", pBool));
    188189                } catch (Exception e) {
    189190                        e.printStackTrace();
  • trunk/src/org/expeditee/io/DefaultFrameWriter.java

    r1413 r1415  
    9999        public static final String PLACEHOLDER_STR = "_ph";
    100100        public static final String ENCRYPTION_LABEL_STR = "_el";
     101        public static final String ACCEPTS_ENTER = "_ae";
    101102        public static final String MAGNETIZED_ITEM_BOTTOM_STR = MAGNETIZED_ITEM_BOTTOM + "";
    102103        public static final String MAGNETIZED_ITEM_TOP_STR = MAGNETIZED_ITEM_TOP + "";
     
    263264                        _ItemTagsExt.put(DefaultFrameWriter.SINGLE_LINE_ONLY_STR, Text.class.getMethod("isSingleLineOnly"));
    264265                        _ItemTagsExt.put(DefaultFrameWriter.TAB_INDEX_STR, Text.class.getMethod("getTabIndex"));
     266                        _ItemTagsExt.put(DefaultFrameWriter.ACCEPTS_ENTER, Item.class.getMethod("acceptsKeyboardEnter"));
    265267                } catch (Exception e) {
    266268                        e.printStackTrace();
     
    308310                                this.writeAnnotationTitle(starting.getTitleItem());
    309311                        else
    310                                 this.writeTitle(starting.getTitleItem(), starting.getItems());
     312                                this.writeTitle(starting.getTitleItem(), starting.getSortedItems());
    311313                }
    312314        }
  • trunk/src/org/expeditee/io/DefaultTreeWriter.java

    r919 r1415  
    8888        protected List<Item> getSortedItems(Frame frame)
    8989        {
    90                 List<Item> items = frame.getItems();
     90                List<Item> items = frame.getSortedItems();
    9191                return items;
    9292        }
  • trunk/src/org/expeditee/io/JavaWriter.java

    r1102 r1415  
    6161        protected List<Item> getSortedItems(Frame frame)
    6262        {
    63                 List<Item> y_ordered_items = frame.getItems();
     63                List<Item> y_ordered_items = frame.getSortedItems();
    6464               
    6565                for (Item item: y_ordered_items) {
  • trunk/src/org/expeditee/io/PDF2Writer.java

    r1258 r1415  
    186186               
    187187                Frame child;
    188                 for(Item i : current.getItems()) {
     188                for(Item i : current.getSortedItems()) {
    189189                        if(i.isAnnotation())
    190190                                continue;
     
    209209                        writeStartFrame(f);
    210210                Text title = f.getTitleItem();
    211                 for(Item i : f.getItems()) {
     211                for(Item i : f.getSortedItems()) {
    212212                        if(i != title) {
    213213                                this.writeItem(i);
     
    220220                                this.writeAnnotationTitle(title);
    221221                        else
    222                                 this.writeTitle(title, f.getItems());
     222                                this.writeTitle(title, f.getSortedItems());
    223223                }
    224224                }
  • trunk/src/org/expeditee/io/TXTWriter.java

    r919 r1415  
    4242        @Override
    4343        protected void writeStartFrame(Frame toParse) throws IOException {
    44                 if (ItemUtils.ContainsTag(toParse.getItems(), "@join"))
     44                if (ItemUtils.ContainsTag(toParse.getSortedItems(), "@join"))
    4545                        _join = !_join;
    4646
    47                 if (ItemUtils.ContainsTag(toParse.getItems(), "@indent"))
     47                if (ItemUtils.ContainsTag(toParse.getSortedItems(), "@indent"))
    4848                        _indent++;
    4949
     
    7373        @Override
    7474        protected void writeEndFrame(Frame toParse) throws IOException {
    75                 if (ItemUtils.ContainsTag(toParse.getItems(), "@indent"))
     75                if (ItemUtils.ContainsTag(toParse.getSortedItems(), "@indent"))
    7676                        if (_indent > 0)
    7777                                _indent--;
    7878
    79                 if (ItemUtils.ContainsTag(toParse.getItems(), "@join"))
     79                if (ItemUtils.ContainsTag(toParse.getSortedItems(), "@join"))
    8080                        _join = !_join;
    8181
     
    8585        @Override
    8686        protected void resumeFrame(Frame resuming) {
    87                 _join = ItemUtils.ContainsTag(resuming.getItems(), "@join");
     87                _join = ItemUtils.ContainsTag(resuming.getSortedItems(), "@join");
    8888        }
    8989
  • trunk/src/org/expeditee/io/WebParser.java

    r1258 r1415  
    366366
    367367                                                frameToAddTo = FrameIO.CreateFrame(frameToAddTo.getFramesetName(), pageTitle, null);
    368                                                 frameToAddTo.removeAllItems(frameToAddTo.getItems());
     368                                                frameToAddTo.removeAllItems(frameToAddTo.getSortedItems());
    369369
    370370                                                try {
  • trunk/src/org/expeditee/io/flowlayout/DimensionExtent.java

    r1102 r1415  
    3838        public static DimensionExtent calcMinMaxXExtent(List<Item>items)
    3939        {
    40 
    4140                int min_x = Integer.MAX_VALUE;
    42                 int max_x = Integer.MIN_VALUE;
     41                int max_x = Integer.MIN_VALUE + 1; // +1 makes it safe to do math.abs on
    4342               
    4443                for (Item item : items) {
     
    5958        public static DimensionExtent calcMinMaxYExtent(List<Item>items)
    6059        {
    61 
    6260                int min_y = Integer.MAX_VALUE;
    63                 int max_y = Integer.MIN_VALUE;
     61                int max_y = Integer.MIN_VALUE + 1; // +1 makes it safe to do math.abs on
    6462               
    6563                for (Item item : items) {
  • trunk/src/org/expeditee/io/flowlayout/XGroupItem.java

    r1102 r1415  
    635635                double enclosureArea = 0.0;
    636636
    637                 for (Item i : frame.getItems()) {
     637                for (Item i : frame.getSortedItems()) {
    638638
    639639                        // Go through all the enclosures ...
Note: See TracChangeset for help on using the changeset viewer.