public class Guide
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Guide.Orientation
Guide orientation.
|
Constructor and Description |
---|
Guide(Guide.Orientation orientation,
double coord,
javafx.scene.paint.Color color)
Creates a guide.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
javafx.scene.paint.Color |
getColor() |
double |
getCoord() |
Guide.Orientation |
getOrientation() |
int |
hashCode() |
void |
paint(javafx.scene.canvas.GraphicsContext ctx,
IViewport viewport)
Paints guide on a canvas.
|
public Guide(Guide.Orientation orientation, double coord, javafx.scene.paint.Color color)
Creates a guide.
orientation
- guide orientationcoord
- X coordinate for vertical guides, or Y coordinate for horizontal guidescolor
- guide colorpublic Guide.Orientation getOrientation()
public double getCoord()
public javafx.scene.paint.Color getColor()
public void paint(javafx.scene.canvas.GraphicsContext ctx, IViewport viewport)
ctx
- graphics context to paint onviewport
- current viewportpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object