CloneableChartText, PointShape, PolygonShape, PolylineShapepublic abstract class Shape extends Object implements Cloneable
| 构造器 | 说明 |
|---|---|
Shape() |
Contructor
|
Shape(org.locationtech.jts.geom.Geometry geometry) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addVertice(int vIdx,
PointD vertice) |
Add a vertice
|
Shape |
buffer(double distance) |
Get buffer shape
|
Object |
clone() |
Clone
|
void |
cloneValue(Shape other) |
Clone value
|
boolean |
contains(Shape other) |
If this shape contains another one
|
Shape |
convexHull() |
Get convexhull shape
|
boolean |
coveredBy(Shape other) |
If this shape covered by another one
|
boolean |
covers(Shape other) |
If this shape covers another one
|
boolean |
crosses(Shape other) |
Is shapes cross each other or not
|
Shape |
difference(Shape b) |
Get difference shape
|
boolean |
disjoint(Shape other) |
If this shape disjoint another one
|
boolean |
equals(Shape other) |
If this shape equals another one
|
static Shape |
geometry2Shape(org.locationtech.jts.geom.Geometry geo) |
|
Extent |
getExtent() |
Get extent
|
int |
getLegendIndex() |
Get legend index
|
List<? extends PointD> |
getPoints() |
Get points
|
abstract ShapeTypes |
getShapeType() |
Get shape type
|
double |
getValue() |
Get value
|
Shape |
intersection(Shape b) |
Get intersection shape
|
boolean |
intersects(Shape other) |
If this shape intersects another one
|
boolean |
isEditing() |
Get if is editing
|
boolean |
isSelected() |
Get if the shape is selected
|
boolean |
isVisible() |
Get if visible
|
void |
move(double xShift,
double yShift) |
Move the shape
|
void |
moveVertice(int vIdx,
double newX,
double newY) |
Vertice edited update
|
boolean |
overlaps(Shape other) |
If this shape overlaps another one
|
Shape |
reform(Shape line) |
Reform the shape by a line
|
void |
removeVerice(int vIdx) |
Remove a vertice
|
void |
reverse() |
Reverse points direction
|
void |
setEditing(boolean value) |
Set if is editing
|
void |
setExtent(Extent aExtent) |
Set extent
|
void |
setLegendIndex(int value) |
Set legend index
|
void |
setPoints(List<? extends PointD> points) |
Set points
|
void |
setSelected(boolean isTrue) |
Set selected
|
void |
setValue(double value) |
Set value
|
void |
setVisible(boolean isTrue) |
Set visible
|
List<Shape> |
split(Shape line) |
Split shape
|
Shape |
symDifference(Shape b) |
Get system difference shape
|
org.locationtech.jts.geom.Geometry |
toGeometry() |
To geometry method
|
abstract org.locationtech.jts.geom.Geometry |
toGeometry(org.locationtech.jts.geom.GeometryFactory factory) |
To geometry method
|
boolean |
touches(Shape other) |
If this shape touches another one
|
Shape |
union(Shape b) |
Get union shape
|
boolean |
within(Shape other) |
If this shape within another one
|
public Shape()
public Shape(org.locationtech.jts.geom.Geometry geometry)
geometry - Geometrypublic abstract ShapeTypes getShapeType()
public boolean isVisible()
public void setVisible(boolean isTrue)
isTrue - True or notpublic boolean isSelected()
public void setSelected(boolean isTrue)
isTrue - True or notpublic boolean isEditing()
public void setEditing(boolean value)
value - Booleanpublic Extent getExtent()
public void setExtent(Extent aExtent)
aExtent - Extentpublic int getLegendIndex()
public void setLegendIndex(int value)
value - Legend indexpublic double getValue()
public void setValue(double value)
value - Valuepublic void addVertice(int vIdx,
PointD vertice)
vIdx - Vertice indexvertice - The verticepublic void removeVerice(int vIdx)
vIdx - Vertice indexpublic void moveVertice(int vIdx,
double newX,
double newY)
vIdx - Vertice indexnewX - New XnewY - New Ypublic void move(double xShift,
double yShift)
xShift - X shiftyShift - Y shiftpublic void reverse()
public abstract org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
factory - GeometryFactorypublic org.locationtech.jts.geom.Geometry toGeometry()
public static Shape geometry2Shape(org.locationtech.jts.geom.Geometry geo)
public Shape intersection(Shape b)
b - Other shapepublic Shape difference(Shape b)
b - Other shapepublic Shape symDifference(Shape b)
b - Other shapepublic Shape buffer(double distance)
distance - Distancepublic Shape convexHull()
public Shape reform(Shape line)
line - The linepublic boolean crosses(Shape other)
other - Other shapepublic boolean contains(Shape other)
other - Other shapepublic boolean coveredBy(Shape other)
other - Other shapepublic boolean covers(Shape other)
other - Other shapepublic boolean disjoint(Shape other)
other - Other shapepublic boolean equals(Shape other)
other - Other shapepublic boolean intersects(Shape other)
other - Other shapepublic boolean overlaps(Shape other)
other - Other shapepublic boolean touches(Shape other)
other - Other shapepublic boolean within(Shape other)
other - Other shapepublic void cloneValue(Shape other)
other - Other shapeCopyright © 2019. All rights reserved.