- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/settings/templates/TemplateSettings.java
r919 r1102 19 19 package org.expeditee.settings.templates; 20 20 21 import java.awt.Color; 22 23 import org.expeditee.gui.DisplayIO; 21 import org.expeditee.core.Colour; 22 import org.expeditee.gui.DisplayController; 24 23 import org.expeditee.gui.Frame; 25 24 import org.expeditee.gui.FrameUtils; … … 50 49 i.setParent(null); 51 50 } 52 Display IO.setCursor(Item.HIDDEN_CURSOR);53 Display IO.setCursor(Item.DEFAULT_CURSOR);51 DisplayController.setCursor(Item.HIDDEN_CURSOR); 52 DisplayController.setCursor(Item.DEFAULT_CURSOR); 54 53 } 55 54 }; 56 55 57 public static final ArraySetting<Colo r> ColorWheel = new ArraySetting<Color>("The colours of items in the child frame are used to populate the colour wheel",58 new Colo r[] { Color.BLACK, Color.RED, Color.BLUE, Item.GREEN, Color.MAGENTA, Color.YELLOW.darker(), Color.WHITE }) {56 public static final ArraySetting<Colour> ColorWheel = new ArraySetting<Colour>("The colours of items in the child frame are used to populate the colour wheel", 57 new Colour[] { Colour.BLACK, Colour.RED, Colour.BLUE, Item.GREEN, Colour.MAGENTA, Colour.YELLOW.darker(), Colour.WHITE }) { 59 58 @Override 60 59 public boolean setSetting(Text text) { … … 68 67 }; 69 68 70 public static final ArraySetting<Colo r> FillColorWheel = new ArraySetting<Color>("The colours of items in the child frame are used to populate the colour wheel",71 new Colo r[] { new Color(255, 150, 150), new Color(150, 150, 255), new Color(150, 255, 150),72 new Color(255, 150, 255), new Color(255, 255, 100), Color.WHITE, Color.BLACK }) {69 public static final ArraySetting<Colour> FillColorWheel = new ArraySetting<Colour>("The colours of items in the child frame are used to populate the colour wheel", 70 new Colour[] { Colour.FromRGB255(255, 150, 150), Colour.FromRGB255(150, 150, 255), Colour.FromRGB255(150, 255, 150), 71 Colour.FromRGB255(255, 150, 255), Colour.FromRGB255(255, 255, 100), Colour.WHITE, Colour.BLACK }) { 73 72 @Override 74 73 public boolean setSetting(Text text) { … … 82 81 }; 83 82 84 public static final ArraySetting<Colo r> BackgroundColorWheel = new ArraySetting<Color>("The colours of items in the child frame are used to populate the colour wheel",85 new Colo r[] { new Color(235, 235, 235), new Color(225, 225, 255), new Color(195, 255, 255),86 new Color(225, 255, 225), new Color(255, 255, 195), new Color(255, 225, 225),87 new Color(255, 195, 255), Color.WHITE, Color.GRAY, Color.DARK_GRAY, Color.BLACK, null }) {83 public static final ArraySetting<Colour> BackgroundColorWheel = new ArraySetting<Colour>("The colours of items in the child frame are used to populate the colour wheel", 84 new Colour[] { Colour.FromRGB255(235, 235, 235), Colour.FromRGB255(225, 225, 255), Colour.FromRGB255(195, 255, 255), 85 Colour.FromRGB255(225, 255, 225), Colour.FromRGB255(255, 255, 195), Colour.FromRGB255(255, 225, 225), 86 Colour.FromRGB255(255, 195, 255), Colour.WHITE, Colour.GREY, Colour.DARK_GREY, Colour.BLACK, null }) { 88 87 @Override 89 88 public boolean setSetting(Text text) { … … 107 106 public Text generateText() { 108 107 Text t = new Text("AnnotationTemplate"); 109 t.setColor(Colo r.gray);108 t.setColor(Colour.GREY); 110 109 return t; 111 110 } … … 116 115 public Text generateText() { 117 116 Text t = new Text("CommentTemplate"); 118 t.setColor(Colo r.green.darker());117 t.setColor(Colour.GREEN.darker()); 119 118 return t; 120 119 } … … 125 124 public Text generateText() { 126 125 Text t = new Text("StatsTemplate"); 127 t.setColor(Colo r.BLACK);128 t.setBackgroundColor(new Colo r(0.9F, 0.9F, 0.9F));126 t.setColor(Colour.BLACK); 127 t.setBackgroundColor(new Colour(0.9F, 0.9F, 0.9F)); 129 128 t.setFamily(Text.MONOSPACED_FONT); 130 129 t.setSize(14); … … 140 139 t.setFontStyle("Bold"); 141 140 t.setFamily("SansSerif"); 142 t.setColor(Colo r.BLUE);141 t.setColor(Colour.BLUE); 143 142 t.setPosition(25, 50); 144 143 return t; … … 157 156 public Text generateText() { 158 157 Text t = new Text("TooltipTemplate"); 159 t.setColor(Colo r.BLACK);160 t.setBackgroundColor(new Colo r(0.7F, 0.7F, 0.9F));158 t.setColor(Colour.BLACK); 159 t.setBackgroundColor(new Colour(0.7F, 0.7F, 0.9F)); 161 160 // t.setFamily(Text.MONOSPACED_FONT); 162 161 t.setSize(14);
Note:
See TracChangeset
for help on using the changeset viewer.