Ignore:
Timestamp:
05/10/18 16:04:51 (6 years ago)
Author:
davidb
Message:

Reworking of the code-base to separate logic from graphics. This version of Expeditee now supports a JFX graphics as an alternative to SWING

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r990 r1102  
    1919package org.expeditee.actions;
    2020
    21 import java.awt.GraphicsEnvironment;
    22 import java.io.Serializable;
    2321import java.lang.reflect.Constructor;
    2422import java.lang.reflect.Method;
     
    2624import java.rmi.UnexpectedException;
    2725import java.util.ArrayList;
    28 import java.util.Arrays;
    2926import java.util.Collection;
    3027import java.util.Comparator;
     
    3532
    3633import org.expeditee.agents.Agent;
    37 import org.expeditee.gui.DisplayIO;
     34import org.expeditee.gio.EcosystemManager;
     35import org.expeditee.gui.DisplayController;
    3836import org.expeditee.gui.Frame;
    39 import org.expeditee.gui.FrameGraphics;
    4037import org.expeditee.gui.FrameIO;
    4138import org.expeditee.gui.FrameUtils;
     
    217214         *         actions.
    218215         */
    219         public static Collection<String> Init() {
    220 
    221                 Collection<String> warnings = new LinkedList<String>();
     216        public static List<String> Init() {
     217
     218                List<String> warnings = new LinkedList<String>();
    222219                List<Class<?>> classes;
    223220
     
    436433                //      loose changes
    437434                if (firstCanditate.getDeclaringClass().getName().equals(NAVIGATIONS_CLASS)) {
    438                         FrameIO.SaveFrame(DisplayIO.getCurrentFrame());
     435                        FrameIO.SaveFrame(DisplayController.getCurrentFrame());
    439436                }
    440437                final List<Method> canditates = new LinkedList<Method>();
     
    825822                                        + nameWithCorrectCase + "'");
    826823                }
    827                 FrameGraphics.refresh(false);
     824                DisplayController.requestRefresh(false);
    828825        }
    829826
     
    10311028        private static void initFonts() {
    10321029                if (_Fonts.size() == 0) {
    1033                         String[] availableFonts = GraphicsEnvironment
    1034                                         .getLocalGraphicsEnvironment()
    1035                                         .getAvailableFontFamilyNames();
     1030                        String[] availableFonts = EcosystemManager.getFontManager().getRegisteredFontFamilies();
    10361031                        for (String s : availableFonts) {
    10371032                                _Fonts.put(s.toLowerCase(), s);
Note: See TracChangeset for help on using the changeset viewer.