IWebMapPanelpublic class MapPlot extends AbstractPlot2D implements IWebMapPanel
backgroundcolumnIndex, DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, isSubPlot, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, outerPosition, position, rowIndex, symbolAntialias, units| 构造器 | 说明 |
|---|---|
MapPlot() |
Constructor
|
MapPlot(MapFrame mapFrame) |
Constructor
|
MapPlot(MapView mapView) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Graphic |
addCircle(float x,
float y,
float radius,
PolygonBreak pgb) |
Add a circle
|
Graphic |
addGrahic(Graphic graphic,
ProjectionInfo proj) |
Add a graphic
|
void |
addGraphic(Graphic graphic) |
Add a graphic
|
void |
addLayer(int idx,
MapLayer layer) |
Add a layer
|
void |
addLayer(MapLayer layer) |
Add a layer
|
void |
addPoint(double lat,
double lon,
PointBreak pb) |
Add point graphic
|
Graphic |
addPoint(List<Number> lat,
List<Number> lon,
PointBreak pb) |
Add point graphic
|
Graphic |
addPolygon(List<Number> lat,
List<Number> lon,
PolygonBreak pgb) |
Add polygon
|
Graphic |
addPolyline(List<Number> lat,
List<Number> lon,
PolylineBreak plb) |
Add polyline
|
Graphic |
addPolyline(List<Number> lat,
List<Number> lon,
PolylineBreak plb,
boolean iscurve) |
Add polyline
|
void |
addText(ChartText text) |
Add text
|
void |
draw(Graphics2D g,
Rectangle2D area) |
Draw plot
|
Extent |
getAutoExtent() |
Get auto extent
|
Color |
getBackground() |
Get background color
|
Graphic |
getBoundary() |
Get map boundary
|
Dataset |
getDataset() |
Get dataset
|
Extent |
getFullExtent() |
Get full extent
|
float[] |
getLatLim() |
Get latitude limitations
|
MapLayer |
getLayer(int i) |
Get layer by index
|
MapLayer |
getLayer(String name) |
Get layer by name
|
int |
getLayerNum() |
Get layer number
|
LayerCollection |
getLayers() |
Get layers
|
LegendScheme |
getLegendScheme() |
Get legend scheme
|
float[] |
getLonLim() |
Get longitude limitations
|
MapFrame |
getMapFrame() |
Get map frame
|
MapView |
getMapView() |
Get map view
|
ChartNorthArrow |
getNorthArrow() |
Get north arrow
|
PlotType |
getPlotType() |
Get plot type
|
Rectangle2D |
getPositionArea(Rectangle2D area) |
Get position area
|
ProjectionInfo |
getProjInfo() |
Get projection info
|
ChartScaleBar |
getScaleBar() |
Get scale bar
|
MapLayer |
getSelectedLayer() |
Get selected layer
|
int |
getWebMapZoom() |
Get web map zoom
|
boolean |
hasWebMapLayer() |
Check if has web map layer
|
boolean |
isAntialias() |
Get if is antialias
|
boolean |
isLonLatMap() |
Is lon/lat map or not
|
void |
loadMIProjectFile(String fn) |
Load MeteoInfo project file
|
void |
loadMIProjectFile(String fn,
int mfidx) |
Load MeteoInfo project file
|
void |
reDraw() |
Re draw function
|
void |
removeLastLayer() |
Remove last added layer
|
void |
setAntialias(boolean value) |
Set if is antialias
|
void |
setAutoExtent() |
|
void |
setAxisExtent(Extent extent) |
Set axis extent
|
void |
setAxisOn(boolean value) |
Set all axis visible or not
|
void |
setBackground(Color value) |
Set background color
|
void |
setBoundary(Graphic value) |
Set map boundary
|
void |
setBoundary(PolygonShape value) |
Set map boundary
|
void |
setBoundaryProp(PolygonBreak pb) |
Set boundary property
|
void |
setDataset(Dataset dataset) |
Set dataset
|
void |
setLatLim(float[] value) |
Set latitude limitations
|
void |
setLatLim(float lat1,
float lat2) |
Set latitude limitations
|
void |
setLonLatExtent(Extent extent) |
Set longitude/latitude extent
|
void |
setLonLim(float[] value) |
Set longitude limitations
|
void |
setLonLim(float lon1,
float lon2) |
Set longitude limitations
|
void |
setMapFrame(MapFrame value) |
Set map frame
|
void |
setMapView(MapView value,
boolean isGeoMap) |
Set map view
|
void |
setNorthArrow(ChartNorthArrow value) |
Set north arrow
|
void |
setParent(ChartPanel value) |
ChartPanel parent
|
void |
setScaleBar(ChartScaleBar value) |
Set scale bar
|
void |
setSelectedLayer(MapLayer value) |
Set selected layer
|
void |
updateLegendScheme() |
addLegend, getAspect, getAxis, getDrawExtent, getExtent, getGraphArea, getGridLine, getLeftTitle, getLegend, getLegend, getLegends, getOuterPositionArea, getPlotOrientation, getPositionArea, getRightTitle, getSelectedColor, getTexts, getTightInset, getTightInsetArea, getTitle, getWindArrow, getXAxis, getXAxisLocation, getYAxis, getYAxisLocation, isAutoAspect, isDrawNeatLine, isDrawRightAxis, isDrawTopAxis, isInsideTick, isLogX, isLogY, isXReverse, isYReverse, projToScreen, projXLength, projYLength, removeLegend, removeLegend, screenToProj, setAspect, setAutoAspect, setAxis, setAxisLabelFont, setDrawExtent, setDrawExtent1, setDrawLegend, setDrawNeatLine, setDrawRightAxis, setDrawTopAxis, setExtent, setInsideTick, setLeftTitle, setLeftTitle, setLegend, setLegends, setPlotOrientation, setRightTitle, setRightTitle, setSelectedColor, setTexts, setTitle, setTitle, setWindArrow, setXAxis, setXAxisLocation, setYAxis, setYAxisLocation, updateDrawExtent, zoomToExtentScreenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGraphArea, getOuterPosition, getOuterPositionArea, getPlotShrink, getPosition, getPositionArea, getPositionAreaZoom, getTightInset, getUnits, isOuterPosActive, isSameShrink, isSymbolAntialias, setGraphArea, setOuterPosActive, setOuterPosition, setOuterPosition, setOuterPosition, setOuterPositionArea, setPlotShrink, setPosition, setPosition, setPosition, setPositionArea, setPositionAreaZoom, setSameShrink, setSymbolAntialias, setTightInset, setUnits, setUnits, updatePosition, updatePosition, updatePositionArea, updatePostionAreaZoompublic MapPlot()
public MapPlot(MapView mapView)
mapView - MapViewpublic MapPlot(MapFrame mapFrame)
mapFrame - MapFramepublic void setParent(ChartPanel value)
value - ChartPanelpublic Dataset getDataset()
PlotgetDataset 在类中 Plotpublic void setDataset(Dataset dataset)
PlotsetDataset 在类中 Plotdataset - Datasetpublic MapView getMapView()
public void setMapView(MapView value, boolean isGeoMap)
value - Map viewisGeoMap - If is geo mappublic PlotType getPlotType()
PlotgetPlotType 在类中 AbstractPlot2Dpublic boolean isAntialias()
public void setAntialias(boolean value)
value - Booleanpublic Color getBackground()
getBackground 在类中 AbstractPlot2Dpublic void setBackground(Color value)
setBackground 在类中 AbstractPlot2Dvalue - Background colorpublic MapFrame getMapFrame()
public void setMapFrame(MapFrame value)
value - Map framepublic ProjectionInfo getProjInfo()
public boolean isLonLatMap()
public MapLayer getSelectedLayer()
public void setSelectedLayer(MapLayer value)
value - Selected layerpublic float[] getLonLim()
public void setLonLim(float[] value)
value - Longitude limitationspublic void setLonLim(float lon1,
float lon2)
lon1 - Minimum longitudelon2 - Maximum longitudepublic float[] getLatLim()
public void setLatLim(float[] value)
value - latitude limitationspublic void setLatLim(float lat1,
float lat2)
lat1 - Minimum latitudelat2 - Maximum latitudepublic Graphic getBoundary()
public void setBoundary(Graphic value)
value - Map boundarypublic void setBoundary(PolygonShape value)
value - Map boundarypublic void setBoundaryProp(PolygonBreak pb)
pb - Boundary propertypublic ChartScaleBar getScaleBar()
public void setScaleBar(ChartScaleBar value)
value - Scale barpublic ChartNorthArrow getNorthArrow()
public void setNorthArrow(ChartNorthArrow value)
value - North arrowpublic boolean hasWebMapLayer()
public int getWebMapZoom()
getWebMapZoom 在接口中 IWebMapPanelpublic void reDraw()
IWebMapPanelreDraw 在接口中 IWebMapPanelpublic void draw(Graphics2D g, Rectangle2D area)
draw 在类中 AbstractPlot2Dg - Graphics2Darea - Drawing areapublic Extent getAutoExtent()
public void setAutoExtent()
setAutoExtent 在类中 AbstractPlot2Dpublic void updateLegendScheme()
updateLegendScheme 在类中 AbstractPlot2Dpublic void addGraphic(Graphic graphic)
graphic - The graphicpublic Graphic addGrahic(Graphic graphic, ProjectionInfo proj)
graphic - The graphicproj - The graphic projectionpublic void addLayer(MapLayer layer)
layer - The layerpublic void addLayer(int idx,
MapLayer layer)
idx - Indexlayer - Layerpublic void removeLastLayer()
public void setAxisOn(boolean value)
setAxisOn 在类中 AbstractPlot2Dvalue - Booleanpublic Extent getFullExtent()
public void setLonLatExtent(Extent extent)
extent - Extentpublic void setAxisExtent(Extent extent)
extent - Extentpublic void addText(ChartText text)
AbstractPlot2DaddText 在类中 AbstractPlot2Dtext - Chart textpublic void addPoint(double lat,
double lon,
PointBreak pb)
lat - Latitudelon - Lontitudepb - Point breakpublic Graphic addPoint(List<Number> lat, List<Number> lon, PointBreak pb)
lat - Latitudelon - Lontitudepb - Point breakpublic Graphic addPolyline(List<Number> lat, List<Number> lon, PolylineBreak plb)
lat - Latitudelon - Longitudeplb - PolylineBreakpublic Graphic addPolyline(List<Number> lat, List<Number> lon, PolylineBreak plb, boolean iscurve)
lat - Latitudelon - Longitudeplb - PolylineBreakiscurve - Is curve line or notpublic Graphic addPolygon(List<Number> lat, List<Number> lon, PolygonBreak pgb)
lat - Latitudelon - Longitudepgb - PolygonBreakpublic Graphic addCircle(float x, float y, float radius, PolygonBreak pgb)
x - Center xy - Center yradius - pgb - PolygonBreakpublic Rectangle2D getPositionArea(Rectangle2D area)
getPositionArea 在类中 Plotarea - Whole areapublic int getLayerNum()
public LayerCollection getLayers()
public MapLayer getLayer(int i)
i - The layer indexpublic MapLayer getLayer(String name)
name - The layer namepublic LegendScheme getLegendScheme()
public void loadMIProjectFile(String fn, int mfidx) throws SAXException, IOException, ParserConfigurationException
fn - MeteoInfo project file namemfidx - Map frame indexSAXExceptionIOExceptionParserConfigurationExceptionpublic void loadMIProjectFile(String fn) throws SAXException, IOException, ParserConfigurationException
fn - MeteoInfo project file nameSAXExceptionIOExceptionParserConfigurationExceptionCopyright © 2019. All rights reserved.