java.lang.Object
com.inductiveautomation.ignition.designer.designable.tools.EdgeHandler

public abstract class EdgeHandler extends Object
  • Constructor Details

    • EdgeHandler

      public EdgeHandler()
  • Method Details

    • getPosition

      public abstract double getPosition(Rectangle2D rect)
      Returns this edge's value for the given Rectangle2D
    • move

      public abstract void move(Rectangle2D rect, double position)
      Moves the Rectangle2D to the given edge position
    • compare

      public abstract int compare(Double pos1, Double pos2)
      Compares two edge positions, making the more "extreme" position with respect to this edge the "lower" value. For example, comparing to bottom edges, the larger value will be "lower". Comparing to top edges, the smaller value will be "lower". This makes ordering a list by a given edge's comparator be ordered such that the most extreme component is 1st in the list.
    • handler

      public static EdgeHandler handler(EdgeHandler.Edge edge)