Class TLcdGXYAsynchronousPaintHint.EqualsCombinable

java.lang.Object
com.luciad.view.gxy.asynchronous.manager.TLcdGXYAsynchronousPaintHint.EqualsCombinable
All Implemented Interfaces:
TLcdGXYAsynchronousPaintHint.Combinable
Enclosing class:
TLcdGXYAsynchronousPaintHint

public static class TLcdGXYAsynchronousPaintHint.EqualsCombinable extends Object implements TLcdGXYAsynchronousPaintHint.Combinable

Wrapper class around any Object, allowing it to implement the Combinable interface.

EqualsCombinable instances will only combine with other EqualsCombinable instances when the wrapped Objects are equal.

  • Constructor Details

    • EqualsCombinable

      public EqualsCombinable(Object aDelegate)
      Wrap aDelegate with the Combinable interface
      Parameters:
      aDelegate - The delegate object
  • Method Details

    • getDelegate

      public Object getDelegate()
      Returns the wrapped object
      Returns:
      the wrapped object
    • combine

      Combine this property with another Combinable instance.

      If for example a Combinable specifies the maximal refresh interval of an ILcdGXYLayer, and for two instances these intervals are 20ms and 30 ms respectively, the combine method could return a Combinable which specifies a maximal refresh interval of 20ms. This way, the timings of both Combinables are respected.

      The result of this method should be independent of the order of this and aOtherProperty, e.g. A.combine(B) should return an Combinable instance which is equivalent to the Combinable instance returned by calling B.combine(A).

      Combining a EqualsCombinable instance with another Combinable instance can only return a non-null Combinable instance if the Combinable is an instance of EqualsCombinable as well. In such case, the returned Combinable will be a EqualsCombinable when both wrapped objects are equal. The returned EqualsCombinable will then have that particular object as delegate object. If both wrapped objects are not equal, null will be returned.

      Specified by:
      combine in interface TLcdGXYAsynchronousPaintHint.Combinable
      Parameters:
      aOtherProperty - The other Combinable instance
      Returns:
      The combined instance, or null when both instances were not combinable with each other.
    • toString

      public String toString()
      Overrides:
      toString in class Object