类 MapPlot
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.AbstractPlot2D
-
- org.meteoinfo.chart.plot.MapPlot
-
- 所有已实现的接口:
org.meteoinfo.data.mapdata.webmap.IWebMapPanel
public class MapPlot extends AbstractPlot2D implements org.meteoinfo.data.mapdata.webmap.IWebMapPanel
- 作者:
- wyq
-
-
字段概要
-
从类继承的字段 org.meteoinfo.chart.plot.AbstractPlot2D
aspect, aspectType, background, clip
-
从类继承的字段 org.meteoinfo.chart.plot.Plot
columnIndex, 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, positionArea, rowIndex, symbolAntialias, units
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.meteoinfo.geometry.graphic.GraphicaddCircle(float x, float y, float radius, org.meteoinfo.geometry.legend.PolygonBreak pgb)Add a circlevoidaddGraphic(org.meteoinfo.geometry.graphic.Graphic graphic)Add a graphicorg.meteoinfo.geometry.graphic.GraphicaddGraphic(org.meteoinfo.geometry.graphic.Graphic graphic, org.meteoinfo.projection.ProjectionInfo proj)Add a graphicvoidaddGraphics(org.meteoinfo.geometry.graphic.GraphicCollection graphics)Add graphicsorg.meteoinfo.geometry.graphic.GraphicCollectionaddGraphics(org.meteoinfo.geometry.graphic.GraphicCollection graphics, org.meteoinfo.projection.ProjectionInfo proj)Add graphicsvoidaddLayer(int idx, org.meteoinfo.geo.layer.MapLayer layer)Add a layervoidaddLayer(org.meteoinfo.geo.layer.MapLayer layer)Add a layervoidaddPoint(double lat, double lon, org.meteoinfo.geometry.legend.PointBreak pb)Add point graphicorg.meteoinfo.geometry.graphic.GraphicaddPoint(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PointBreak pb)Add point graphicorg.meteoinfo.geometry.graphic.GraphicaddPolygon(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PolygonBreak pgb)Add polygonorg.meteoinfo.geometry.graphic.GraphicaddPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PolylineBreak plb)Add polylineorg.meteoinfo.geometry.graphic.GraphicaddPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PolylineBreak plb, boolean iscurve)Add polylinevoidaddText(ChartText text)Add textvoidaddText(ChartText text, boolean isLonLat)voiddraw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Draw plotorg.meteoinfo.common.ExtentgetAutoExtent()Get auto extentjava.awt.ColorgetBackground()Get background colororg.meteoinfo.geometry.graphic.GraphicgetBoundary()Get map boundaryorg.meteoinfo.data.DatasetgetDataset()Get datasetorg.meteoinfo.common.ExtentgetFullExtent()Get full extentfloat[]getLatLim()Get latitude limitationsorg.meteoinfo.geo.layer.MapLayergetLayer(int i)Get layer by indexorg.meteoinfo.geo.layer.MapLayergetLayer(java.lang.String name)Get layer by nameintgetLayerNum()Get layer numberorg.meteoinfo.geo.layer.LayerCollectiongetLayers()Get layersorg.meteoinfo.geometry.legend.LegendSchemegetLegendScheme()Get legend schemefloat[]getLonLim()Get longitude limitationsorg.meteoinfo.geo.legend.MapFramegetMapFrame()Get map frameorg.meteoinfo.geo.mapview.MapViewgetMapView()Get map viewChartNorthArrowgetNorthArrow()Get north arrowPlotTypegetPlotType()Get plot typejava.awt.geom.Rectangle2DgetPositionArea(java.awt.geom.Rectangle2D area)Get position areaorg.meteoinfo.projection.ProjectionInfogetProjInfo()Get projection infoChartScaleBargetScaleBar()Get scale barorg.meteoinfo.geo.layer.MapLayergetSelectedLayer()Get selected layerintgetWebMapZoom()Get web map zoombooleanhasWebMapLayer()Check if has web map layerbooleanisAntialias()Get if is antialiasbooleanisDegreeSpace()Get if using space between degree and E/W/S/NbooleanisLonLatMap()Is lon/lat map or notvoidloadMIProjectFile(java.lang.String fn)Load MeteoInfo project filevoidloadMIProjectFile(java.lang.String fn, int mfidx)Load MeteoInfo project filevoidreDraw()voidremoveLastLayer()Remove last added layervoidsetAntialias(boolean value)Set if is antialiasvoidsetAutoExtent()voidsetAxisExtent(org.meteoinfo.common.Extent extent)Set axis extentvoidsetAxisOn(boolean value)Set all axis visible or notvoidsetBackground(java.awt.Color value)Set background colorvoidsetBoundary(org.meteoinfo.geometry.graphic.Graphic value)Set map boundaryvoidsetBoundary(org.meteoinfo.geometry.shape.PolygonShape value)Set map boundaryvoidsetBoundaryProp(org.meteoinfo.geometry.legend.PolygonBreak pb)Set boundary propertyvoidsetDataset(org.meteoinfo.data.Dataset dataset)Set datasetvoidsetDegreeSpace(boolean value)Set if using space between degree and E/W/S/NvoidsetLatLim(float[] value)Set latitude limitationsvoidsetLatLim(float lat1, float lat2)Set latitude limitationsvoidsetLonLatExtent(org.meteoinfo.common.Extent extent)Set longitude/latitude extentvoidsetLonLim(float[] value)Set longitude limitationsvoidsetLonLim(float lon1, float lon2)Set longitude limitationsvoidsetMapFrame(org.meteoinfo.geo.legend.MapFrame value)Set map framevoidsetMapView(org.meteoinfo.geo.mapview.MapView value, boolean isGeoMap)Set map viewvoidsetNorthArrow(ChartNorthArrow value)Set north arrowvoidsetParent(ChartPanel value)ChartPanel parentvoidsetProjInfo(org.meteoinfo.projection.ProjectionInfo proj)Set projection infovoidsetScaleBar(ChartScaleBar value)Set scale barvoidsetSelectedLayer(org.meteoinfo.geo.layer.MapLayer value)Set selected layervoidupdateLegendScheme()-
从类继承的方法 org.meteoinfo.chart.plot.AbstractPlot2D
addLegend, getAspect, getAspectType, getAxis, getDrawExtent, getExtent, getGraphArea, getGridLine, getLeftTitle, getLegend, getLegend, getLegends, getOuterPositionArea, getPlotOrientation, getPositionArea, getRightTitle, getSelectedColor, getTexts, getTightInset, getTightInsetArea, getTitle, getWindArrow, getXAxis, getXAxisLocation, getYAxis, getYAxisLocation, isClip, isDrawNeatLine, isDrawRightAxis, isDrawTopAxis, isInsideTick, isLogX, isLogY, isXReverse, isYReverse, projToScreen, projXLength, projYLength, removeLegend, removeLegend, screenToProj, setAspect, setAspectType, setAxis, setAxisLabelFont, setClip, 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, zoomToExtentScreen
-
从类继承的方法 org.meteoinfo.chart.plot.Plot
getGraphArea, 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, updatePostionAreaZoom
-
-
-
-
方法详细资料
-
setParent
public void setParent(ChartPanel value)
ChartPanel parent- 参数:
value- ChartPanel
-
getDataset
public org.meteoinfo.data.Dataset getDataset()
从类复制的说明:PlotGet dataset- 指定者:
getDataset在类中Plot- 返回:
- Dataset
-
setDataset
public void setDataset(org.meteoinfo.data.Dataset dataset)
从类复制的说明:PlotSet dataset- 指定者:
setDataset在类中Plot- 参数:
dataset- Dataset
-
getMapView
public org.meteoinfo.geo.mapview.MapView getMapView()
Get map view- 返回:
- Map view
-
setMapView
public void setMapView(org.meteoinfo.geo.mapview.MapView value, boolean isGeoMap)Set map view- 参数:
value- Map viewisGeoMap- If is geo map
-
getPlotType
public PlotType getPlotType()
从类复制的说明:PlotGet plot type- 覆盖:
getPlotType在类中AbstractPlot2D- 返回:
- Plot type
-
isAntialias
public boolean isAntialias()
Get if is antialias- 返回:
- Boolean
-
setAntialias
public void setAntialias(boolean value)
Set if is antialias- 参数:
value- Boolean
-
getBackground
public java.awt.Color getBackground()
Get background color- 覆盖:
getBackground在类中AbstractPlot2D- 返回:
- Background color
-
setBackground
public void setBackground(java.awt.Color value)
Set background color- 覆盖:
setBackground在类中AbstractPlot2D- 参数:
value- Background color
-
getMapFrame
public org.meteoinfo.geo.legend.MapFrame getMapFrame()
Get map frame- 返回:
- Map frame
-
setMapFrame
public void setMapFrame(org.meteoinfo.geo.legend.MapFrame value)
Set map frame- 参数:
value- Map frame
-
getProjInfo
public org.meteoinfo.projection.ProjectionInfo getProjInfo()
Get projection info- 返回:
- Projection info
-
setProjInfo
public void setProjInfo(org.meteoinfo.projection.ProjectionInfo proj)
Set projection info- 参数:
proj- Projection info
-
isLonLatMap
public boolean isLonLatMap()
Is lon/lat map or not- 返回:
- Boolean
-
getSelectedLayer
public org.meteoinfo.geo.layer.MapLayer getSelectedLayer()
Get selected layer- 返回:
- Selected layer
-
setSelectedLayer
public void setSelectedLayer(org.meteoinfo.geo.layer.MapLayer value)
Set selected layer- 参数:
value- Selected layer
-
getLonLim
public float[] getLonLim()
Get longitude limitations- 返回:
- Longitude limitations
-
setLonLim
public void setLonLim(float[] value)
Set longitude limitations- 参数:
value- Longitude limitations
-
setLonLim
public void setLonLim(float lon1, float lon2)Set longitude limitations- 参数:
lon1- Minimum longitudelon2- Maximum longitude
-
getLatLim
public float[] getLatLim()
Get latitude limitations- 返回:
- latitude limitations
-
setLatLim
public void setLatLim(float[] value)
Set latitude limitations- 参数:
value- latitude limitations
-
setLatLim
public void setLatLim(float lat1, float lat2)Set latitude limitations- 参数:
lat1- Minimum latitudelat2- Maximum latitude
-
getBoundary
public org.meteoinfo.geometry.graphic.Graphic getBoundary()
Get map boundary- 返回:
- Map boundary
-
setBoundary
public void setBoundary(org.meteoinfo.geometry.graphic.Graphic value)
Set map boundary- 参数:
value- Map boundary
-
setBoundary
public void setBoundary(org.meteoinfo.geometry.shape.PolygonShape value)
Set map boundary- 参数:
value- Map boundary
-
setBoundaryProp
public void setBoundaryProp(org.meteoinfo.geometry.legend.PolygonBreak pb)
Set boundary property- 参数:
pb- Boundary property
-
getScaleBar
public ChartScaleBar getScaleBar()
Get scale bar- 返回:
- Scale bar
-
setScaleBar
public void setScaleBar(ChartScaleBar value)
Set scale bar- 参数:
value- Scale bar
-
getNorthArrow
public ChartNorthArrow getNorthArrow()
Get north arrow- 返回:
- North arrow
-
setNorthArrow
public void setNorthArrow(ChartNorthArrow value)
Set north arrow- 参数:
value- North arrow
-
isDegreeSpace
public boolean isDegreeSpace()
Get if using space between degree and E/W/S/N- 返回:
- Boolean
-
setDegreeSpace
public void setDegreeSpace(boolean value)
Set if using space between degree and E/W/S/N- 参数:
value- Boolean
-
hasWebMapLayer
public boolean hasWebMapLayer()
Check if has web map layer- 返回:
- Boolean
-
getWebMapZoom
public int getWebMapZoom()
Get web map zoom- 指定者:
getWebMapZoom在接口中org.meteoinfo.data.mapdata.webmap.IWebMapPanel- 返回:
- Web map zoom
-
reDraw
public void reDraw()
- 指定者:
reDraw在接口中org.meteoinfo.data.mapdata.webmap.IWebMapPanel
-
draw
public void draw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Draw plot- 覆盖:
draw在类中AbstractPlot2D- 参数:
g- Graphics2Darea- Drawing area
-
getAutoExtent
public org.meteoinfo.common.Extent getAutoExtent()
Get auto extent- 返回:
- Auto extent
-
setAutoExtent
public void setAutoExtent()
- 指定者:
setAutoExtent在类中AbstractPlot2D
-
updateLegendScheme
public void updateLegendScheme()
- 指定者:
updateLegendScheme在类中AbstractPlot2D
-
addGraphic
public void addGraphic(org.meteoinfo.geometry.graphic.Graphic graphic)
Add a graphic- 参数:
graphic- The graphic
-
addGraphics
public void addGraphics(org.meteoinfo.geometry.graphic.GraphicCollection graphics)
Add graphics- 参数:
graphics- The graphics
-
addGraphic
public org.meteoinfo.geometry.graphic.Graphic addGraphic(org.meteoinfo.geometry.graphic.Graphic graphic, org.meteoinfo.projection.ProjectionInfo proj)Add a graphic- 参数:
graphic- The graphicproj- The graphic projection- 返回:
- Added graphic
-
addGraphics
public org.meteoinfo.geometry.graphic.GraphicCollection addGraphics(org.meteoinfo.geometry.graphic.GraphicCollection graphics, org.meteoinfo.projection.ProjectionInfo proj)Add graphics- 参数:
graphics- The graphicsproj- The graphic projection- 返回:
- Added graphics
-
addLayer
public void addLayer(org.meteoinfo.geo.layer.MapLayer layer)
Add a layer- 参数:
layer- The layer
-
addLayer
public void addLayer(int idx, org.meteoinfo.geo.layer.MapLayer layer)Add a layer- 参数:
idx- Indexlayer- Layer
-
removeLastLayer
public void removeLastLayer()
Remove last added layer
-
setAxisOn
public void setAxisOn(boolean value)
Set all axis visible or not- 覆盖:
setAxisOn在类中AbstractPlot2D- 参数:
value- Boolean
-
getFullExtent
public org.meteoinfo.common.Extent getFullExtent()
Get full extent- 返回:
- Full extent
-
setLonLatExtent
public void setLonLatExtent(org.meteoinfo.common.Extent extent)
Set longitude/latitude extent- 参数:
extent- Extent
-
setAxisExtent
public void setAxisExtent(org.meteoinfo.common.Extent extent)
Set axis extent- 参数:
extent- Extent
-
addText
public void addText(ChartText text)
从类复制的说明:AbstractPlot2DAdd text- 覆盖:
addText在类中AbstractPlot2D- 参数:
text- Chart text
-
addText
public void addText(ChartText text, boolean isLonLat)
-
addPoint
public void addPoint(double lat, double lon, org.meteoinfo.geometry.legend.PointBreak pb)Add point graphic- 参数:
lat- Latitudelon- Longitudepb- Point break
-
addPoint
public org.meteoinfo.geometry.graphic.Graphic addPoint(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PointBreak pb)Add point graphic- 参数:
lat- Latitudelon- Lontitudepb- Point break- 返回:
- Graphic
-
addPolyline
public org.meteoinfo.geometry.graphic.Graphic addPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PolylineBreak plb)Add polyline- 参数:
lat- Latitudelon- Longitudeplb- PolylineBreak- 返回:
- Graphic
-
addPolyline
public org.meteoinfo.geometry.graphic.Graphic addPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PolylineBreak plb, boolean iscurve)Add polyline- 参数:
lat- Latitudelon- Longitudeplb- PolylineBreakiscurve- Is curve line or not- 返回:
- Graphic
-
addPolygon
public org.meteoinfo.geometry.graphic.Graphic addPolygon(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, org.meteoinfo.geometry.legend.PolygonBreak pgb)Add polygon- 参数:
lat- Latitudelon- Longitudepgb- PolygonBreak- 返回:
- Graphic
-
addCircle
public org.meteoinfo.geometry.graphic.Graphic addCircle(float x, float y, float radius, org.meteoinfo.geometry.legend.PolygonBreak pgb)Add a circle- 参数:
x- Center xy- Center yradius-pgb- PolygonBreak- 返回:
- Graphic
-
getPositionArea
public java.awt.geom.Rectangle2D getPositionArea(java.awt.geom.Rectangle2D area)
Get position area- 覆盖:
getPositionArea在类中Plot- 参数:
area- Whole area- 返回:
- Graphic area
-
getLayerNum
public int getLayerNum()
Get layer number- 返回:
- Layer number
-
getLayers
public org.meteoinfo.geo.layer.LayerCollection getLayers()
Get layers- 返回:
- Layers
-
getLayer
public org.meteoinfo.geo.layer.MapLayer getLayer(int i)
Get layer by index- 参数:
i- The layer index- 返回:
- The layer
-
getLayer
public org.meteoinfo.geo.layer.MapLayer getLayer(java.lang.String name)
Get layer by name- 参数:
name- The layer name- 返回:
- The layer
-
getLegendScheme
public org.meteoinfo.geometry.legend.LegendScheme getLegendScheme()
Get legend scheme- 返回:
- Legend scheme
-
loadMIProjectFile
public void loadMIProjectFile(java.lang.String fn, int mfidx) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationExceptionLoad MeteoInfo project file- 参数:
fn- MeteoInfo project file namemfidx- Map frame index- 抛出:
org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationException
-
loadMIProjectFile
public void loadMIProjectFile(java.lang.String fn) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationExceptionLoad MeteoInfo project file- 参数:
fn- MeteoInfo project file name- 抛出:
org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationException
-
-