Class CanvasBoundary


  • public class CanvasBoundary
    extends java.lang.Object
    • Constructor Detail

      • CanvasBoundary

        public CanvasBoundary​(javafx.scene.canvas.Canvas canvas,
                              PointTransformation transform)
    • Method Detail

      • getMinX

        public double getMinX()
      • getMaxX

        public double getMaxX()
      • getMinY

        public double getMinY()
      • getMaxY

        public double getMaxY()
      • getLeftUpper

        public org.locationtech.jts.math.Vector2D getLeftUpper()
      • getRightLower

        public org.locationtech.jts.math.Vector2D getRightLower()
      • diameter

        public double diameter()
        Get the length of the diagonal of the boundary rectangle
        Returns:
        length of diagonal
      • canvasDiameter

        public double canvasDiameter()
      • toLineSegments

        public java.util.List<org.locationtech.jts.geom.LineSegment> toLineSegments()
      • getCoordinates

        @NotNull
        public java.util.List<org.locationtech.jts.geom.Coordinate> getCoordinates()
      • intersections

        public java.util.List<org.locationtech.jts.geom.Coordinate> intersections​(org.locationtech.jts.geom.LineSegment lineSegment)
      • getTransform

        public PointTransformation getTransform()
        Link to the related point transformation.
      • getCanvasWidth

        public javafx.beans.property.DoubleProperty getCanvasWidth()
        Bound canvas width property.
      • getCanvasHeight

        public javafx.beans.property.DoubleProperty getCanvasHeight()
        Bound canvas height property.
      • setTransform

        public void setTransform​(PointTransformation transform)
        Link to the related point transformation.
      • setCanvasWidth

        public void setCanvasWidth​(javafx.beans.property.DoubleProperty canvasWidth)
        Bound canvas width property.
      • setCanvasHeight

        public void setCanvasHeight​(javafx.beans.property.DoubleProperty canvasHeight)
        Bound canvas height property.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object