Class EdgeHandler
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.designable.tools.EdgeHandler
-
public abstract class EdgeHandler extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EdgeHandler.Edge
-
Constructor Summary
Constructors Constructor Description EdgeHandler()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
compare(java.lang.Double pos1, java.lang.Double pos2)
Compares two edge positions, making the more "extreme" position with respect to this edge the "lower" value.abstract double
getPosition(java.awt.geom.Rectangle2D rect)
Returns this edge's value for the given Rectangle2Dstatic EdgeHandler
handler(EdgeHandler.Edge edge)
abstract void
move(java.awt.geom.Rectangle2D rect, double position)
Moves the Rectangle2D to the given edge position
-
-
-
Method Detail
-
getPosition
public abstract double getPosition(java.awt.geom.Rectangle2D rect)
Returns this edge's value for the given Rectangle2D
-
move
public abstract void move(java.awt.geom.Rectangle2D rect, double position)
Moves the Rectangle2D to the given edge position
-
compare
public abstract int compare(java.lang.Double pos1, java.lang.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)
-
-