Changeset 1162 for trunk/src/org/expeditee/gio
- Timestamp:
- 09/27/18 16:53:45 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gio/GraphicsManager.java
r1142 r1162 9 9 import org.expeditee.core.Cursor; 10 10 import org.expeditee.core.Dimension; 11 import org.expeditee.core.EnforcedClipStack.EnforcedClipKey; 11 12 import org.expeditee.core.Fill; 12 13 import org.expeditee.core.Font; … … 16 17 import org.expeditee.core.Stroke; 17 18 import org.expeditee.core.TextLayout; 18 import org.expeditee.core.EnforcedClipStack.EnforcedClipKey;19 19 import org.expeditee.core.bounds.AxisAlignedBoxBounds; 20 20 import org.expeditee.core.bounds.EllipticalBounds; … … 66 66 public static final void setWindowIcon(String filename) 67 67 { 68 if (_windowIcon == "") _windowIcon = filename; 68 if (_windowIcon == "") { 69 _windowIcon = filename; 70 } 69 71 } 70 72 … … 194 196 { 195 197 // Can't clear to no colour 196 if (colour == null) return; 198 if (colour == null) { 199 return; 200 } 197 201 198 202 Dimension fullSurface = getCurrentDrawingSurfaceSize(); … … 205 209 public void drawRectangle(AxisAlignedBoxBounds rect, double angle, Fill fill, Colour borderColour, Stroke borderStroke, Dimension cornerRadius) 206 210 { 207 if (rect == null) return; 211 if (rect == null) { 212 return; 213 } 208 214 209 215 drawRectangle(rect.getTopLeft(), rect.getSize(), angle, fill, borderColour, borderStroke, cornerRadius); … … 216 222 public void drawOval(EllipticalBounds oval, double angle, Fill fill, Colour borderColour, Stroke borderStroke) 217 223 { 218 if (oval == null) return; 224 if (oval == null) { 225 return; 226 } 219 227 220 228 drawOval(oval.getCentre(), oval.getDiameters(), angle, fill, borderColour, borderStroke); … … 230 238 public void drawLine(Line line, Colour colour, Stroke stroke) 231 239 { 232 if (line == null) return; 240 if (line == null) { 241 return; 242 } 233 243 234 244 drawLine(line.getFirstEnd(), line.getSecondEnd(), colour, stroke); … … 238 248 public void drawLine(Point p1, Point p2, Colour colour, Stroke stroke) 239 249 { 240 if (p1 == null || p2 == null) return; 250 if (p1 == null || p2 == null) { 251 return; 252 } 241 253 242 254 drawLine(p1.getX(), p1.getY(), p2.getX(), p2.getY(), colour, stroke); … … 294 306 public boolean addInteractiveWidget(Widget iw) 295 307 { 296 if (iw == null) return false; 308 if (iw == null) { 309 return false; 310 } 297 311 298 312 return _widgets.add(iw); … … 302 316 public boolean removeInteractiveWidget(Widget iw) 303 317 { 304 if (iw == null) return false; 318 if (iw == null) { 319 return false; 320 } 305 321 306 322 return _widgets.remove(iw);
Note:
See TracChangeset
for help on using the changeset viewer.