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/io/KMSReader.java

    r1049 r1102  
    2929import java.util.LinkedHashMap;
    3030
     31import org.expeditee.core.Point;
    3132import org.expeditee.gui.Frame;
    3233import org.expeditee.gui.MessageBay;
    3334import org.expeditee.items.Constraint;
    3435import org.expeditee.items.Dot;
    35 import org.expeditee.items.DotType;
    3636import org.expeditee.items.Item;
    3737import org.expeditee.items.Line;
     
    107107                        _ItemTags.put("e", Item.class.getMethod("setFillColor", pColor));
    108108                        _ItemTags.put("E", Item.class.getMethod("setGradientColor", pColor));
    109                         _ItemTags.put("Q", Item.class.getMethod("setGradientAngle", pInt));
     109                        _ItemTags.put("Q", Item.class.getMethod("setGradientAngle", pDouble));
    110110                       
    111111                        _ItemTags.put("i", Item.class.getMethod("setFillPattern", pString));
     
    267267
    268268                // get the line ID and type
    269                 java.awt.Point idtype = separateValues(s);
     269                Point idtype = separateValues(s);
    270270
    271271                // get the end points
     
    273273                _data.remove("s");
    274274
    275                 java.awt.Point startend = separateValues(s);
     275                Point startend = separateValues(s);
    276276
    277277                int start = startend.x;
     
    299299         */
    300300        private void createConstraint() {
    301                 java.awt.Point idtype = separateValues(_data.get("C"));
    302                 java.awt.Point startend = separateValues(_data.get("s"));
     301                Point idtype = separateValues(_data.get("C"));
     302                Point startend = separateValues(_data.get("s"));
    303303
    304304                Item a = _linePoints.get(startend.x);
     
    398398
    399399        // returns two ints separated by a space from the given String
    400         private java.awt.Point separateValues(String line) {
     400        private Point separateValues(String line) {
    401401                int x = Integer.parseInt(line.substring(0, line.indexOf(" ")));
    402402                int y = Integer.parseInt(line.substring(line.indexOf(" ") + 1));
    403403
    404                 return new java.awt.Point(x, y);
     404                return new Point(x, y);
    405405        }
    406406
Note: See TracChangeset for help on using the changeset viewer.