Package com.treasure.hunt.jts.awt
Class CanvasBoundary
- java.lang.Object
-
- com.treasure.hunt.jts.awt.CanvasBoundary
-
public class CanvasBoundary extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CanvasBoundary(javafx.scene.canvas.Canvas canvas, PointTransformation transform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)doublecanvasDiameter()doublediameter()Get the length of the diagonal of the boundary rectanglebooleanequals(java.lang.Object o)javafx.beans.property.DoublePropertygetCanvasHeight()Bound canvas height property.javafx.beans.property.DoublePropertygetCanvasWidth()Bound canvas width property.java.util.List<org.locationtech.jts.geom.Coordinate>getCoordinates()org.locationtech.jts.math.Vector2DgetLeftUpper()doublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()org.locationtech.jts.math.Vector2DgetRightLower()PointTransformationgetTransform()Link to the related point transformation.inthashCode()java.util.List<org.locationtech.jts.geom.Coordinate>intersections(org.locationtech.jts.geom.LineSegment lineSegment)voidsetCanvasHeight(javafx.beans.property.DoubleProperty canvasHeight)Bound canvas height property.voidsetCanvasWidth(javafx.beans.property.DoubleProperty canvasWidth)Bound canvas width property.voidsetTransform(PointTransformation transform)Link to the related point transformation.java.util.List<org.locationtech.jts.geom.LineSegment>toLineSegments()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-