| 构造器 | 说明 |
|---|---|
VectorLayer(ShapeTypes shapeType) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addChart(ChartGraphic aCP) |
Add a chart point
|
void |
addCharts() |
Add charts
|
void |
addLabel(Graphic aLP) |
Add label point
|
void |
addLabels() |
Add labels
|
void |
addLabelsContourDynamic(Extent sExtent) |
Add labels of contour layer dynamicly
|
void |
addShape(Shape aShape) |
Add a shape
|
VectorLayer |
buffer(double distance,
boolean onlySel,
boolean isMerge) |
Buffer the shapes
|
void |
clearEditingShape() |
Clear editing shape
|
void |
clearSelectedShapes() |
Clear selected shapes
|
VectorLayer |
clip(List<PolygonShape> clipPolys) |
Clip the layer by clipping polygons
|
VectorLayer |
clip(VectorLayer clipLayer) |
Clip the layer by a clipping layer
|
VectorLayer |
clip(VectorLayer clipLayer,
boolean onlySel) |
Clip the layer by a clipping layer
|
VectorLayer |
clip_bak(List<PolygonShape> clipPolys) |
Clip the layer by clipping polygons
|
Object |
clone() |
Clone VectorLayer object
|
Object |
cloneShapes() |
Clone VectorLayer object - without attribute table
|
Object |
cloneValue() |
Clone VectorLayer object - only parameters
|
VectorLayer |
convexhull(boolean onlySel,
boolean isMerge) |
Get convex hull of the shapes
|
LegendScheme |
createLegendScheme(LegendType aLT,
String fieldName) |
Create legend scheme
|
VectorLayer |
difference(List<PolygonShape> clipPolys,
boolean onlySel) |
Difference the layer by polygons
|
void |
editAddField(String fieldName,
DataType fieldType) |
Edit: Add a field
|
void |
editAddField(Field aField) |
Edit: Add a field
|
boolean |
editAddShape(Shape aShape) |
Edit: Add a shape
|
void |
editAddShape(Shape aShape,
List<Object> fvalues) |
Edit: Add a shape
|
void |
editCellValue(int fieldIndex,
int shapeIndex,
Object value) |
Edit: Edit cell value
|
void |
editCellValue(String fieldName,
int shapeIndex,
Object value) |
Edit: Edit cell value
|
boolean |
editInsertShape(Shape aShape,
int position) |
Edit: Insert shape
|
boolean |
editInsertShape(Shape aShape,
int position,
DataRow record) |
Edit: Insert shape
|
void |
editRemoveField(String fieldName) |
Edit: Remove a field
|
void |
editRemoveShape(Shape shape) |
Edit: Remove a shape
|
void |
editRenameField(String fieldName,
String newFieldName) |
Edit: Rename a field
|
Shape |
findReformShape(PolylineShape other) |
Find a shape for reformation by a polyline shape
|
Shape |
findShape_contains(Shape other) |
Find a shape contains anthor shape
|
Shape |
findShape_crosses(Shape other) |
Find a shape crosses anthor shape
|
AttributeTable |
getAttributeTable() |
Get attribute table
|
boolean |
getAvoidCollision() |
Get if avoid collision
|
Object |
getCellValue(int fieldIndex,
int shapeIndex) |
Get cell value
|
Object |
getCellValue(String fieldName,
int shapeIndex) |
Get cell value
|
List<ChartGraphic> |
getChartPoints() |
Get chart points
|
ChartSet |
getChartSet() |
Get chart set
|
List<DataRow> |
getDataRows() |
Get all data rows
|
float |
getDrawingZoom() |
Get drawing zoom
|
Shape |
getEditingShape() |
Get editing shape
|
Field |
getField(int idx) |
Get field by index
|
Field |
getField(String fieldName) |
Get field by field name
|
int |
getFieldIdxByName(String fieldName) |
Get field index by name
|
String |
getFieldName(int FieldIndex) |
Get field name by index
|
List<String> |
getFieldNames() |
Get field name list
|
int |
getFieldNumber() |
Get field number
|
List<Field> |
getFields() |
Get fields
|
int |
getIdentiferShape() |
Get identifer shape index
|
Graphic |
getLabel(String text) |
Get a label by text
|
List<Graphic> |
getLabelPoints() |
Get label points
|
LabelSet |
getLabelSet() |
Get label set
|
String |
getLayerInfo() |
To string
|
double |
getMinValue(String fieldName) |
Get minimum data value of a field
|
void |
getOriginData() |
Get origin data
|
List<DataRow> |
getSelectedDataRows() |
Get seleted data rows
|
List<Integer> |
getSelectedShapeIndexes() |
Get selected shape index list
|
List<? extends Shape> |
getSelectedShapes() |
Get selected shapes
|
Shape |
getShape(int idx) |
Get a shape by index
|
int |
getShapeNum() |
Get shape number
|
List<? extends Shape> |
getShapes() |
Get shape list
|
UndoManager |
getUndoManager() |
Get UndoManager
|
List<Shape> |
getVisibleShapes() |
Get visible shapes
|
boolean |
hasSelectedShapes() |
Get if has selected shape
|
VectorLayer |
intersection(List<PolygonShape> clipPolys,
boolean onlySel) |
Intersection the layer by polygons
|
VectorLayer |
intersection(VectorLayer ilayer,
boolean onlySel,
boolean onlySelOther) |
Intersection the layer by another layer
|
boolean |
isEditing() |
Get if is editing
|
boolean |
isProjected() |
Get if is projected
|
void |
joinTable(DataTable dataTable,
String colName) |
Join data table
|
void |
joinTable(DataTable dataTable,
String colName,
boolean isUpdate) |
Join data table
|
void |
joinTable(DataTable dataTable,
String colName_this,
String colName_in,
boolean isUpdate) |
Join data table
|
void |
moveLabel(String text,
float x,
float y) |
Move label
|
void |
moveLabel(Graphic lb,
float x,
float y) |
Move label
|
void |
removeCharts() |
Remove all charts
|
void |
removeJoins() |
Remove joined data columns
|
void |
removeLabels() |
Remove all labels
|
void |
saveAsKMLFile(String fileName) |
Save as KML (Google Earth data format) file
|
void |
saveFile() |
Save layer as a shape file
|
void |
saveFile(String shpfilepath) |
Save layer as a shape file
|
void |
saveFile(String shpfilepath,
String encoding) |
Save layer as a shape file
|
Object[] |
selectPolygonHole(PointD p) |
Get polygon hole index by point
|
Shape |
selectShape(PointD p) |
Select a shape by point
|
List<Integer> |
selectShapes(Extent extent) |
Select shapes
|
List<Integer> |
selectShapes(Extent aExtent,
boolean isSingleSel) |
Select shapes
|
List<Integer> |
selectShapes(Extent aExtent,
List<Shape> shapes,
boolean isSingleSel) |
Select shapes
|
List<Integer> |
selectShapes(PolygonShape polygonShape) |
Select shapes by a polygon shape
|
void |
setAttributeTable(AttributeTable table) |
Set attribute table
|
void |
setAvoidCollision(boolean istrue) |
Set if avoid collision
|
void |
setChartPoints(List<ChartGraphic> cps) |
Set chart pints
|
void |
setChartSet(ChartSet cs) |
Set chart set
|
void |
setDrawingZoom(float zoom) |
Set drawing zoom
|
void |
setEditing(boolean value) |
Set if is editing
|
void |
setEditingShape(Shape value) |
Set editing shape
|
void |
setIdentiferShape(int idx) |
Set identifer shape index
|
void |
setLabelPoints(List<Graphic> lps) |
Set label points
|
void |
setLabelSet(LabelSet ls) |
Set label set
|
void |
setLegendScheme(LegendScheme value) |
Override set legend scheme
|
void |
setProjected(boolean istrue) |
Set if is projected
|
void |
setShapes(List<? extends Shape> shapes) |
Set shape list
|
void |
setTransparency(int trans) |
Set transparency percent
|
void |
sqlSelect(String expression) |
Select shapes by SQL expression
|
void |
sqlSelect(String expression,
String selType) |
Select shapes by SQL expression
|
void |
sqlSelect(String expression,
org.meteoinfo.layer.VectorLayer.SelectType selType) |
Select shapes by SQL expression
|
VectorLayer |
symDifference(List<PolygonShape> clipPolys,
boolean onlySel) |
Symmetrical difference the layer by polygons
|
void |
updateCharts() |
Update charts
|
void |
updateChartSet() |
Update chart set with minimum and maximum values
|
void |
updateChartsProp() |
Update charts properties
|
void |
updateExtent() |
Update extent
|
void |
updateLegendIndexes() |
Update legend scheme - update legend indexes of the shapes
|
void |
updateLegendScheme(LegendType aLT,
String fieldName) |
Update legend scheme
|
void |
updateOriginData() |
Update data to origion set
|
getExtent, getFileName, getHandle, getLayerDrawType, getLayerName, getLayerType, getLegendScheme, getProjInfo, getShapeType, getTag, getTransparency, getVisibleScale, hasLegendScheme, isExpanded, isMaskout, isVisible, setExpanded, setExtent, setFileName, setHandle, setLayerDrawType, setLayerName, setLayerType, setMaskout, setProjInfo, setShapeType, setTag, setVisible, setVisibleScale, toStringpublic VectorLayer(ShapeTypes shapeType)
shapeType - Shape typepublic UndoManager getUndoManager()
public boolean getAvoidCollision()
public void setAvoidCollision(boolean istrue)
istrue - Booleanpublic int getShapeNum()
public void setShapes(List<? extends Shape> shapes)
shapes - Shape listpublic AttributeTable getAttributeTable()
public void setAttributeTable(AttributeTable table)
table - The attribute tablepublic int getIdentiferShape()
public void setIdentiferShape(int idx)
idx - Identifer shape indexpublic void setTransparency(int trans)
MapLayersetTransparency 在类中 MapLayertrans - Transparency percentpublic LabelSet getLabelSet()
public void setLabelSet(LabelSet ls)
ls - Label setpublic void setLabelPoints(List<Graphic> lps)
lps - The lable pointspublic ChartSet getChartSet()
public void setChartSet(ChartSet cs)
cs - Chart setpublic List<ChartGraphic> getChartPoints()
public void setChartPoints(List<ChartGraphic> cps)
cps - The chart pointspublic float getDrawingZoom()
public void setDrawingZoom(float zoom)
zoom - Drawing zoompublic boolean isProjected()
public void setProjected(boolean istrue)
istrue - Booleanpublic void setLegendScheme(LegendScheme value)
setLegendScheme 在类中 MapLayervalue - Legend schemepublic boolean isEditing()
public void setEditing(boolean value)
value - Booleanpublic Shape getEditingShape()
public void setEditingShape(Shape value)
value - The shapepublic void updateChartsProp()
public void addCharts()
public void updateChartSet()
public void updateCharts()
public void addChart(ChartGraphic aCP)
aCP - Chart pointpublic void removeCharts()
public Shape getShape(int idx)
idx - Shape indexpublic void addShape(Shape aShape)
aShape - Shapepublic Shape findShape_contains(Shape other)
other - Another shapepublic Shape findShape_crosses(Shape other)
other - Another shapepublic Shape findReformShape(PolylineShape other)
other - The polyline shapepublic List<Integer> selectShapes(Extent extent)
extent - The extentpublic List<Integer> selectShapes(Extent aExtent, boolean isSingleSel)
aExtent - The extentisSingleSel - If just select one shapepublic List<Integer> selectShapes(Extent aExtent, List<Shape> shapes, boolean isSingleSel)
aExtent - The extentshapes - The shape list to be selectedisSingleSel - If just select one shapepublic List<Integer> selectShapes(PolygonShape polygonShape)
polygonShape - The polygon shapepublic void sqlSelect(String expression)
expression - The SQL expressionpublic void sqlSelect(String expression, String selType)
expression - The SQL expressionselType - Selection typepublic void sqlSelect(String expression, org.meteoinfo.layer.VectorLayer.SelectType selType)
expression - The SQL expressionselType - Selection typepublic Shape selectShape(PointD p)
p - The pointpublic Object[] selectPolygonHole(PointD p)
p - The pointpublic List<DataRow> getSelectedDataRows()
public List<? extends Shape> getSelectedShapes()
public List<Integer> getSelectedShapeIndexes()
public void clearSelectedShapes()
public boolean hasSelectedShapes()
public void clearEditingShape()
public int getFieldNumber()
public String getFieldName(int FieldIndex)
FieldIndex - Field indexpublic Field getField(int idx)
idx - The field indexpublic Field getField(String fieldName)
fieldName - Field namepublic int getFieldIdxByName(String fieldName)
fieldName - The field namepublic Object getCellValue(int fieldIndex, int shapeIndex)
fieldIndex - Field indexshapeIndex - Shape indexpublic Object getCellValue(String fieldName, int shapeIndex)
fieldName - Field nameshapeIndex - Shape indexpublic void editAddField(Field aField)
aField - The fieldpublic void editAddField(String fieldName, DataType fieldType)
fieldName - Field namefieldType - Field data typepublic void editRemoveField(String fieldName)
fieldName - Field namepublic void editRenameField(String fieldName, String newFieldName)
fieldName - Origin field namenewFieldName - New field namepublic void editCellValue(String fieldName, int shapeIndex, Object value)
fieldName - Field nameshapeIndex - Shape indexvalue - The data valuepublic void editCellValue(int fieldIndex,
int shapeIndex,
Object value)
fieldIndex - Field indexshapeIndex - Shape indexvalue - Data valuepublic double getMinValue(String fieldName)
fieldName - Field namepublic void joinTable(DataTable dataTable, String colName)
dataTable - The input data tablecolName - The column name for joinpublic void joinTable(DataTable dataTable, String colName, boolean isUpdate)
dataTable - The input data tablecolName - The column name for joinisUpdate - public void joinTable(DataTable dataTable, String colName_this, String colName_in, boolean isUpdate)
dataTable - The input data tablecolName_this - The column name of this data table for joincolName_in - The column name of the input data table for joinisUpdate - If update the existing values with same column namepublic void removeJoins()
public boolean editInsertShape(Shape aShape, int position) throws Exception
aShape - The shapeposition - The position indexExceptionpublic boolean editInsertShape(Shape aShape, int position, DataRow record) throws Exception
aShape - The shapeposition - The position indexrecord - Exceptionpublic boolean editAddShape(Shape aShape) throws Exception
aShape - The shapeExceptionpublic void editAddShape(Shape aShape, List<Object> fvalues) throws Exception
aShape - The shapefvalues - Field valuesExceptionpublic void editRemoveShape(Shape shape)
shape - The shapepublic void saveFile(String shpfilepath)
public void saveFile(String shpfilepath, String encoding)
shpfilepath - Shape file pathencoding - Encodingpublic VectorLayer buffer(double distance, boolean onlySel, boolean isMerge)
distance - DistanceonlySel - If only buffer selected shapesisMerge - If merge or notpublic VectorLayer convexhull(boolean onlySel, boolean isMerge)
onlySel - If only buffer selected shapesisMerge - If merge or notpublic VectorLayer clip(VectorLayer clipLayer)
clipLayer - Clipping layerpublic VectorLayer clip(VectorLayer clipLayer, boolean onlySel)
clipLayer - Clipping layeronlySel - If only using selected shapes in clipping layerpublic VectorLayer clip(List<PolygonShape> clipPolys)
clipPolys - Clipping polygonspublic VectorLayer clip_bak(List<PolygonShape> clipPolys)
clipPolys - Clipping polygonspublic VectorLayer intersection(VectorLayer ilayer, boolean onlySel, boolean onlySelOther)
ilayer - Intersection layeronlySel - Only selected shapes in this layeronlySelOther - Only selected shapes inpublic VectorLayer intersection(List<PolygonShape> clipPolys, boolean onlySel)
clipPolys - Intersection polygonsonlySel - Only selected shapespublic VectorLayer difference(List<PolygonShape> clipPolys, boolean onlySel)
clipPolys - Difference polygonsonlySel - Only selected shapespublic VectorLayer symDifference(List<PolygonShape> clipPolys, boolean onlySel)
clipPolys - Symmetrical difference polygonsonlySel - Only selected shapespublic void addLabel(Graphic aLP)
aLP - Label pointpublic void moveLabel(String text, float x, float y)
text - Label textx - Xy - Ypublic void moveLabel(Graphic lb, float x, float y)
lb - Labelx - Xy - Ypublic void removeLabels()
public void addLabels()
public void addLabelsContourDynamic(Extent sExtent)
sExtent - View extent of MapViewpublic void updateOriginData()
public void getOriginData()
public void saveAsKMLFile(String fileName)
fileName - KML file namepublic void updateExtent()
public void updateLegendScheme(LegendType aLT, String fieldName)
aLT - Legend typefieldName - Field namepublic void updateLegendIndexes()
public LegendScheme createLegendScheme(LegendType aLT, String fieldName)
aLT - Legend typefieldName - Field namepublic Object cloneShapes()
public Object cloneValue()
public String getLayerInfo()
getLayerInfo 在类中 MapLayerCopyright © 2019. All rights reserved.