Class InterimPointsCalculator

java.lang.Object
org.eclnt.ccaddons.diagram.util.InterimPointsCalculator

public class InterimPointsCalculator extends Object
  • Field Details

    • SELECTION_VISIBLE_RECT_SIZE

      public static int SELECTION_VISIBLE_RECT_SIZE
    • SELECTION_RECT_SIZE

      public static int SELECTION_RECT_SIZE
    • SELECTION_VISIBLE_RECT_SIZE_MID

      public static double SELECTION_VISIBLE_RECT_SIZE_MID
    • ANCHOROFFSET

      public static final int ANCHOROFFSET
      See Also:
  • Constructor Details

    • InterimPointsCalculator

      public InterimPointsCalculator()
  • Method Details

    • calculateAnchorPositionInShape

      public static int[] calculateAnchorPositionInShape(ChartShapeInstance csi, int anchorCount, ENUMLineAnchor anchor, int anchorNumber, boolean startAtCorner)
    • calculateInterimPoints

      public static String calculateInterimPoints(ChartLineInstance line, int[] coordsFrom, int shapeFromAnchorCount, boolean fromAnchorStartAtCorner, int[] coordsTo, int shapeToAnchorCount, boolean toAnchorStartAtCorner)
    • recalculateFirstLastInterimPoint

      public static int[] recalculateFirstLastInterimPoint(int[] bounds, int[] interimPoints, ENUMLineAnchor fromAnchor, ENUMLineAnchor toAnchor)
    • calculateLinePoints

      public static int[] calculateLinePoints(ChartLineInstance cli, Chart chart, int shapeFromAnchorCount, boolean fromAnchorStartAtCorner, int shapeToAnchorCount, boolean toAnchorStartAtCorner)
    • calculateLineTextPositionOffset

      public static int[] calculateLineTextPositionOffset(ChartLineInstance cli, Chart chart, ChartShapeInstance shapeFrom, int shapeFromAnchorCount, boolean fromAnchorStartAtCorner, ChartShapeInstance shapeTo, int shapeToAnchorCount, boolean toAnchorStartAtCorner)
    • updatedPointsWithEdges

      public static int[] updatedPointsWithEdges(int[] points)
    • updatedPointsWithEdges

      public static String updatedPointsWithEdges(String s)
    • removeObsoletePoints

      public static int[] removeObsoletePoints(int[] points)