public class ShapePoint extends Point2D.Float
Point2D.Double, Point2D.Float
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_NORMAL |
static int |
TYPE_ROUND |
x, y
Constructor and Description |
---|
ShapePoint() |
ShapePoint(float x,
float y) |
ShapePoint(float x,
float y,
int type) |
ShapePoint(ShapePoint other) |
Modifier and Type | Method and Description |
---|---|
void |
assign(ShapePoint point) |
int |
getType() |
boolean |
isEastOf(ShapePoint point) |
boolean |
isInLineWith(ShapePoint point) |
boolean |
isLocked() |
boolean |
isNorthOf(ShapePoint point) |
boolean |
isSouthOf(ShapePoint point) |
boolean |
isWestOf(ShapePoint point) |
boolean |
isWithinEdge(ShapeEdge edge) |
void |
moveTo(ShapePoint point)
Does the same as assign, but respects the
locked attribute
|
void |
setLocked(boolean b) |
void |
setType(int i) |
String |
toString() |
getX, getY, setLocation, setLocation
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
public static final int TYPE_NORMAL
public static final int TYPE_ROUND
public ShapePoint()
public ShapePoint(float x, float y)
public ShapePoint(float x, float y, int type)
public ShapePoint(ShapePoint other)
public int getType()
public void setType(int i)
i
- public boolean isInLineWith(ShapePoint point)
public boolean isWithinEdge(ShapeEdge edge)
public boolean isNorthOf(ShapePoint point)
public boolean isSouthOf(ShapePoint point)
public boolean isWestOf(ShapePoint point)
public boolean isEastOf(ShapePoint point)
public String toString()
toString
in class Point2D.Float
public void assign(ShapePoint point)
public void moveTo(ShapePoint point)
point
- public boolean isLocked()
public void setLocked(boolean b)
b
- Copyright © 2015. All Rights Reserved.