Ignore:
Timestamp:
09/27/18 16:53:45 (6 years ago)
Author:
bln4
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/GraphicsManager.java

    r1142 r1162  
    99import org.expeditee.core.Cursor;
    1010import org.expeditee.core.Dimension;
     11import org.expeditee.core.EnforcedClipStack.EnforcedClipKey;
    1112import org.expeditee.core.Fill;
    1213import org.expeditee.core.Font;
     
    1617import org.expeditee.core.Stroke;
    1718import org.expeditee.core.TextLayout;
    18 import org.expeditee.core.EnforcedClipStack.EnforcedClipKey;
    1919import org.expeditee.core.bounds.AxisAlignedBoxBounds;
    2020import org.expeditee.core.bounds.EllipticalBounds;
     
    6666        public static final void setWindowIcon(String filename)
    6767        {
    68                 if (_windowIcon == "") _windowIcon = filename;
     68                if (_windowIcon == "") {
     69                        _windowIcon = filename;
     70                }
    6971        }
    7072       
     
    194196        {
    195197                // Can't clear to no colour
    196                 if (colour == null) return;
     198                if (colour == null) {
     199                        return;
     200                }
    197201               
    198202                Dimension fullSurface = getCurrentDrawingSurfaceSize();
     
    205209        public void drawRectangle(AxisAlignedBoxBounds rect, double angle, Fill fill, Colour borderColour, Stroke borderStroke, Dimension cornerRadius)
    206210        {
    207                 if (rect == null) return;
     211                if (rect == null) {
     212                        return;
     213                }
    208214               
    209215                drawRectangle(rect.getTopLeft(), rect.getSize(), angle, fill, borderColour, borderStroke, cornerRadius);
     
    216222        public void drawOval(EllipticalBounds oval, double angle, Fill fill, Colour borderColour, Stroke borderStroke)
    217223        {
    218                 if (oval == null) return;
     224                if (oval == null) {
     225                        return;
     226                }
    219227               
    220228                drawOval(oval.getCentre(), oval.getDiameters(), angle, fill, borderColour, borderStroke);
     
    230238        public void drawLine(Line line, Colour colour, Stroke stroke)
    231239        {
    232                 if (line == null) return;
     240                if (line == null) {
     241                        return;
     242                }
    233243               
    234244                drawLine(line.getFirstEnd(), line.getSecondEnd(), colour, stroke);
     
    238248        public void drawLine(Point p1, Point p2, Colour colour, Stroke stroke)
    239249        {
    240                 if (p1 == null || p2 == null) return;
     250                if (p1 == null || p2 == null) {
     251                        return;
     252                }
    241253               
    242254                drawLine(p1.getX(), p1.getY(), p2.getX(), p2.getY(), colour, stroke);
     
    294306        public boolean addInteractiveWidget(Widget iw)
    295307        {
    296                 if (iw == null) return false;
     308                if (iw == null) {
     309                        return false;
     310                }
    297311               
    298312                return _widgets.add(iw);
     
    302316        public boolean removeInteractiveWidget(Widget iw)
    303317        {
    304                 if (iw == null) return false;
     318                if (iw == null) {
     319                        return false;
     320                }
    305321               
    306322                return _widgets.remove(iw);
Note: See TracChangeset for help on using the changeset viewer.