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 boolean
canEqual(java.lang.Object other)
double
canvasDiameter()
double
diameter()
Get the length of the diagonal of the boundary rectangleboolean
equals(java.lang.Object o)
javafx.beans.property.DoubleProperty
getCanvasHeight()
Bound canvas height property.javafx.beans.property.DoubleProperty
getCanvasWidth()
Bound canvas width property.java.util.List<org.locationtech.jts.geom.Coordinate>
getCoordinates()
org.locationtech.jts.math.Vector2D
getLeftUpper()
double
getMaxX()
double
getMaxY()
double
getMinX()
double
getMinY()
org.locationtech.jts.math.Vector2D
getRightLower()
PointTransformation
getTransform()
Link to the related point transformation.int
hashCode()
java.util.List<org.locationtech.jts.geom.Coordinate>
intersections(org.locationtech.jts.geom.LineSegment lineSegment)
void
setCanvasHeight(javafx.beans.property.DoubleProperty canvasHeight)
Bound canvas height property.void
setCanvasWidth(javafx.beans.property.DoubleProperty canvasWidth)
Bound canvas width property.void
setTransform(PointTransformation transform)
Link to the related point transformation.java.util.List<org.locationtech.jts.geom.LineSegment>
toLineSegments()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-