Ignore:
Timestamp:
04/07/14 08:42:08 (10 years ago)
Author:
pharms
Message:
  • added support and initial implementation of a platform specific distance measure between GUI elements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java

    r1433 r1490  
    109109     */ 
    110110    public void addEqualGUIElement(IGUIElement equalElement); 
     111 
     112    /** 
     113     * <p> 
     114     * Returns a measure for the distance of this {@link IGUIElement} to the provided one. Distance 
     115     * means a measure for the distance in display of the rendered GUI. The returned values must be 
     116     * between 0.0 and 1.0 inclusive. 0.0 means no distance, e.g., if the distance to itself shall be 
     117     * returned. 1.0 means the highest distance possible. Two GUI elements that are not visible 
     118     * at the same time independent of the screen resolution (e.g., because they resist in separate 
     119     * views) must have a distance of at least 0.5.   
     120     * </p> 
     121     *  
     122     * @param guiElement 
     123     *            the GUI element to measure the distance for 
     124     */ 
     125    public double getDistanceTo(IGUIElement otherElement); 
    111126} 
Note: See TracChangeset for help on using the changeset viewer.