类 MapPlot
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.AbstractPlot2D
-
- org.meteoinfo.chart.plot.MapPlot
-
- 所有已实现的接口:
IWebMapPanel
public class MapPlot extends AbstractPlot2D implements IWebMapPanel
- 作者:
- wyq
-
-
字段概要
-
从类继承的字段 org.meteoinfo.chart.plot.AbstractPlot2D
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
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 GraphicaddCircle(float x, float y, float radius, PolygonBreak pgb)Add a circleGraphicaddGrahic(Graphic graphic, ProjectionInfo proj)Add a graphicvoidaddGraphic(Graphic graphic)Add a graphicvoidaddLayer(int idx, MapLayer layer)Add a layervoidaddLayer(MapLayer layer)Add a layervoidaddPoint(double lat, double lon, PointBreak pb)Add point graphicGraphicaddPoint(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PointBreak pb)Add point graphicGraphicaddPolygon(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PolygonBreak pgb)Add polygonGraphicaddPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PolylineBreak plb)Add polylineGraphicaddPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PolylineBreak plb, boolean iscurve)Add polylinevoidaddText(ChartText text)Add textvoiddraw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Draw plotExtentgetAutoExtent()Get auto extentjava.awt.ColorgetBackground()Get background colorGraphicgetBoundary()Get map boundaryDatasetgetDataset()Get datasetExtentgetFullExtent()Get full extentfloat[]getLatLim()Get latitude limitationsMapLayergetLayer(int i)Get layer by indexMapLayergetLayer(java.lang.String name)Get layer by nameintgetLayerNum()Get layer numberLayerCollectiongetLayers()Get layersLegendSchemegetLegendScheme()Get legend schemefloat[]getLonLim()Get longitude limitationsMapFramegetMapFrame()Get map frameMapViewgetMapView()Get map viewChartNorthArrowgetNorthArrow()Get north arrowPlotTypegetPlotType()Get plot typejava.awt.geom.Rectangle2DgetPositionArea(java.awt.geom.Rectangle2D area)Get position areaProjectionInfogetProjInfo()Get projection infoChartScaleBargetScaleBar()Get scale barMapLayergetSelectedLayer()Get selected layerintgetWebMapZoom()Get web map zoombooleanhasWebMapLayer()Check if has web map layerbooleanisAntialias()Get if is antialiasbooleanisLonLatMap()Is lon/lat map or notvoidloadMIProjectFile(java.lang.String fn)Load MeteoInfo project filevoidloadMIProjectFile(java.lang.String fn, int mfidx)Load MeteoInfo project filevoidreDraw()Re draw functionvoidremoveLastLayer()Remove last added layervoidsetAntialias(boolean value)Set if is antialiasvoidsetAutoExtent()voidsetAxisExtent(Extent extent)Set axis extentvoidsetAxisOn(boolean value)Set all axis visible or notvoidsetBackground(java.awt.Color value)Set background colorvoidsetBoundary(Graphic value)Set map boundaryvoidsetBoundary(PolygonShape value)Set map boundaryvoidsetBoundaryProp(PolygonBreak pb)Set boundary propertyvoidsetDataset(Dataset dataset)Set datasetvoidsetLatLim(float[] value)Set latitude limitationsvoidsetLatLim(float lat1, float lat2)Set latitude limitationsvoidsetLonLatExtent(Extent extent)Set longitude/latitude extentvoidsetLonLim(float[] value)Set longitude limitationsvoidsetLonLim(float lon1, float lon2)Set longitude limitationsvoidsetMapFrame(MapFrame value)Set map framevoidsetMapView(MapView value, boolean isGeoMap)Set map viewvoidsetNorthArrow(ChartNorthArrow value)Set north arrowvoidsetParent(ChartPanel value)ChartPanel parentvoidsetProjInfo(ProjectionInfo proj)Set projection infovoidsetScaleBar(ChartScaleBar value)Set scale barvoidsetSelectedLayer(MapLayer value)Set selected layervoidupdateLegendScheme()-
从类继承的方法 org.meteoinfo.chart.plot.AbstractPlot2D
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, isClip, isDrawNeatLine, isDrawRightAxis, isDrawTopAxis, isInsideTick, isLogX, isLogY, isXReverse, isYReverse, projToScreen, projXLength, projYLength, removeLegend, removeLegend, screenToProj, setAspect, setAutoAspect, 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 Dataset getDataset()
从类复制的说明:PlotGet dataset- 指定者:
getDataset在类中Plot- 返回:
- Dataset
-
setDataset
public void setDataset(Dataset dataset)
从类复制的说明:PlotSet dataset- 指定者:
setDataset在类中Plot- 参数:
dataset- Dataset
-
getMapView
public MapView getMapView()
Get map view- 返回:
- Map view
-
setMapView
public void setMapView(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 MapFrame getMapFrame()
Get map frame- 返回:
- Map frame
-
setMapFrame
public void setMapFrame(MapFrame value)
Set map frame- 参数:
value- Map frame
-
getProjInfo
public ProjectionInfo getProjInfo()
Get projection info- 返回:
- Projection info
-
setProjInfo
public void setProjInfo(ProjectionInfo proj)
Set projection info- 参数:
proj- Projection info
-
isLonLatMap
public boolean isLonLatMap()
Is lon/lat map or not- 返回:
- Boolean
-
getSelectedLayer
public MapLayer getSelectedLayer()
Get selected layer- 返回:
- Selected layer
-
setSelectedLayer
public void setSelectedLayer(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 Graphic getBoundary()
Get map boundary- 返回:
- Map boundary
-
setBoundary
public void setBoundary(Graphic value)
Set map boundary- 参数:
value- Map boundary
-
setBoundary
public void setBoundary(PolygonShape value)
Set map boundary- 参数:
value- Map boundary
-
setBoundaryProp
public void setBoundaryProp(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
-
hasWebMapLayer
public boolean hasWebMapLayer()
Check if has web map layer- 返回:
- Boolean
-
getWebMapZoom
public int getWebMapZoom()
Get web map zoom- 指定者:
getWebMapZoom在接口中IWebMapPanel- 返回:
- Web map zoom
-
reDraw
public void reDraw()
从接口复制的说明:IWebMapPanelRe draw function- 指定者:
reDraw在接口中IWebMapPanel
-
draw
public void draw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Draw plot- 覆盖:
draw在类中AbstractPlot2D- 参数:
g- Graphics2Darea- Drawing area
-
getAutoExtent
public Extent getAutoExtent()
Get auto extent- 返回:
- Auto extent
-
setAutoExtent
public void setAutoExtent()
- 指定者:
setAutoExtent在类中AbstractPlot2D
-
updateLegendScheme
public void updateLegendScheme()
- 指定者:
updateLegendScheme在类中AbstractPlot2D
-
addGraphic
public void addGraphic(Graphic graphic)
Add a graphic- 参数:
graphic- The graphic
-
addGrahic
public Graphic addGrahic(Graphic graphic, ProjectionInfo proj)
Add a graphic- 参数:
graphic- The graphicproj- The graphic projection- 返回:
- Added graphic
-
addLayer
public void addLayer(MapLayer layer)
Add a layer- 参数:
layer- The layer
-
addLayer
public void addLayer(int idx, 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 Extent getFullExtent()
Get full extent- 返回:
- Full extent
-
setLonLatExtent
public void setLonLatExtent(Extent extent)
Set longitude/latitude extent- 参数:
extent- Extent
-
setAxisExtent
public void setAxisExtent(Extent extent)
Set axis extent- 参数:
extent- Extent
-
addText
public void addText(ChartText text)
从类复制的说明:AbstractPlot2DAdd text- 覆盖:
addText在类中AbstractPlot2D- 参数:
text- Chart text
-
addPoint
public void addPoint(double lat, double lon, PointBreak pb)Add point graphic- 参数:
lat- Latitudelon- Lontitudepb- Point break
-
addPoint
public Graphic addPoint(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PointBreak pb)
Add point graphic- 参数:
lat- Latitudelon- Lontitudepb- Point break- 返回:
- Graphic
-
addPolyline
public Graphic addPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PolylineBreak plb)
Add polyline- 参数:
lat- Latitudelon- Longitudeplb- PolylineBreak- 返回:
- Graphic
-
addPolyline
public Graphic addPolyline(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PolylineBreak plb, boolean iscurve)
Add polyline- 参数:
lat- Latitudelon- Longitudeplb- PolylineBreakiscurve- Is curve line or not- 返回:
- Graphic
-
addPolygon
public Graphic addPolygon(java.util.List<java.lang.Number> lat, java.util.List<java.lang.Number> lon, PolygonBreak pgb)
Add polygon- 参数:
lat- Latitudelon- Longitudepgb- PolygonBreak- 返回:
- Graphic
-
addCircle
public Graphic addCircle(float x, float y, float radius, 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 LayerCollection getLayers()
Get layers- 返回:
- Layers
-
getLayer
public MapLayer getLayer(int i)
Get layer by index- 参数:
i- The layer index- 返回:
- The layer
-
getLayer
public MapLayer getLayer(java.lang.String name)
Get layer by name- 参数:
name- The layer name- 返回:
- The layer
-
getLegendScheme
public 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
-
-