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/gui/Overlay.java

    r919 r1102  
    2020
    2121import java.util.Collection;
     22import java.util.LinkedList;
     23import java.util.List;
    2224
    2325import org.expeditee.items.UserAppliedPermission;
     26import org.expeditee.items.widgets.Widget;
    2427
     28/** TODO: Comment. cts16 */
    2529public class Overlay {
     30        /** TODO: Comment. cts16 */
    2631        public Frame Frame;
    2732
     33        /** TODO: Comment. cts16 */
    2834        public UserAppliedPermission permission;
    2935
     36        /** TODO: Comment. cts16 */
    3037        public Overlay(Frame overlay, UserAppliedPermission level) {
    3138                Frame = overlay;
     
    3441
    3542        @Override
    36         public boolean equals(Object o) {
    37                 if (o == null || o.getClass() != Overlay.class)
    38                         return false;
     43        public boolean equals(Object o)
     44        {
     45                if (!(o instanceof Overlay)) return false;
    3946
    4047                return ((Overlay) o).Frame == Frame;
     
    4249
    4350        @Override
    44         public int hashCode() {
     51        public int hashCode()
     52        {
     53                // TODO: Comment. cts16
    4554                return 0;
    4655        }
    47        
    48         public static Overlay getOverlay(Collection<Overlay>overlays, Frame frame){
     56
     57        /** TODO: Comment. cts16 */
     58        public static Overlay getOverlay(Collection<Overlay> overlays, Frame frame)
     59        {
    4960                // Check the frame is in the list of overlays
    5061                for (Overlay o : overlays) {
Note: See TracChangeset for help on using the changeset viewer.