Changeset 1102 for trunk/src/org/expeditee/gui/AttributeUtils.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/AttributeUtils.java
r1048 r1102 19 19 package org.expeditee.gui; 20 20 21 import java.awt.Color;22 import java.awt.Font;23 import java.awt.Point;24 21 import java.lang.reflect.InvocationTargetException; 25 22 import java.lang.reflect.Method; … … 28 25 import java.util.List; 29 26 27 import org.expeditee.core.Colour; 28 import org.expeditee.core.Font; 29 import org.expeditee.core.Point; 30 30 import org.expeditee.io.Conversion; 31 31 import org.expeditee.items.DotType; … … 33 33 import org.expeditee.items.Justification; 34 34 import org.expeditee.items.PermissionPair; 35 import org.expeditee.items.Picture;36 35 import org.expeditee.items.Text; 37 36 import org.expeditee.simple.IncorrectTypeException; … … 137 136 Class<?>[] pFloat = { float.class }; 138 137 Class<?>[] pFloatO = { Float.class }; 139 Class<?>[] pColor = { Color.class }; 138 Class<?>[] pDouble = {double.class }; 139 Class<?>[] pColor = { Colour.class }; 140 140 Class<?>[] pBool = { boolean.class }; 141 141 //Class[] pDouble = { double.class }; … … 214 214 Item.class.getMethod("setBorderColor", pColor)); 215 215 _Attrib.put("AnchorLeft", Item.class.getMethod("getAnchorLeft"), 216 Item.class.getMethod("setAnchorLeft", p FloatO));216 Item.class.getMethod("setAnchorLeft", pIntO)); 217 217 _Attrib.put("AnchorRight", Item.class.getMethod("getAnchorRight"), 218 Item.class.getMethod("setAnchorRight", p FloatO));218 Item.class.getMethod("setAnchorRight", pIntO)); 219 219 _Attrib.put("AnchorTop", Item.class.getMethod("getAnchorTop"), 220 Item.class.getMethod("setAnchorTop", p FloatO));220 Item.class.getMethod("setAnchorTop", pIntO)); 221 221 _Attrib.put("AnchorBottom", Item.class.getMethod("getAnchorBottom"), 222 Item.class.getMethod("setAnchorBottom", p FloatO));222 Item.class.getMethod("setAnchorBottom", pIntO)); 223 223 _Attrib.put("Position", Item.class.getMethod("getPosition"), 224 224 Item.class.getMethod("setPosition", pPoint)); … … 248 248 Item.class.getMethod("setGradientColor", pColor)); 249 249 _Attrib.put("GradientAngle", Item.class.getMethod("getGradientAngle"), 250 Item.class.getMethod("setGradientAngle", p Int));250 Item.class.getMethod("setGradientAngle", pDouble)); 251 251 _Attrib.put("FillPattern", Item.class.getMethod("getFillPattern"), 252 252 Item.class.getMethod("setFillPattern", pString)); … … 417 417 418 418 // create the text Item 419 Frame current = Display IO.getCurrentFrame();419 Frame current = DisplayController.getCurrentFrame(); 420 420 Item attribs = current.getStatsTextItem(attributes.toString()); 421 421 return attribs; … … 486 486 if (((Double) o) < 0.0001) 487 487 return null; 488 } else if (o instanceof Colo r) {488 } else if (o instanceof Colour) { 489 489 // converts the color to the Expeditee code 490 o = Conversion.getExpediteeColorCode((Colo r) o);490 o = Conversion.getExpediteeColorCode((Colour) o); 491 491 if (o == null) 492 492 return null; … … 497 497 Font f = (Font) o; 498 498 499 String s = f.get Name() + "-";499 String s = f.getFamilyName() + "-"; 500 500 if (f.isPlain()) 501 501 s += "Plain";
Note:
See TracChangeset
for help on using the changeset viewer.