ImageObserver, MenuContainer, Serializable, Accessible, IWebMapPanelpublic class MapView extends JPanel implements IWebMapPanel
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyContainer.AccessibleAWTContainerJComponent.AccessibleJComponentJPanel.AccessibleJPanel| 限定符和类型 | 字段 | 说明 |
|---|---|---|
boolean |
_drawIdentiferShape |
|
FrmIdentiferGrid |
_frmIdentiferGrid |
|
FrmIdentifer |
frmIdentifer |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| 构造器 | 说明 |
|---|---|
MapView() |
Constructor
|
MapView(ProjectionInfo proj) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addGraphic(Graphic graphic) |
Add a graphic
|
void |
addGraphicSelectedListener(IGraphicSelectedListener listener) |
|
int |
addLayer(int index,
MapLayer aLayer) |
Add a layer
|
int |
addLayer(MapLayer aLayer) |
Add a layer
|
void |
addLayersUpdatedListener(ILayersUpdatedListener listener) |
|
void |
addProjectionChangedListener(IProjectionChangedListener listener) |
|
void |
addShapeSelectedListener(IShapeSelectedListener listener) |
|
void |
addUndoEditListener(IUndoEditListener listener) |
|
void |
addViewExtentChangedListener(IViewExtentChangedListener listener) |
|
int |
addWindLayer(VectorLayer aLayer,
boolean EarthWind) |
Add wind layer
|
void |
drawBarbLayerWithLegendScheme(VectorLayer aLayer,
Graphics2D g,
double LonShift) |
Draw wind barb layer with legendscheme
|
void |
drawGraphic(Graphics2D g,
Graphic aGraphic,
double lonShift) |
Draw a graphic
|
void |
drawGraphic(Graphics2D g,
Graphic graphic,
Rectangle rect) |
Draw a graphic
|
void |
drawGraphicList(Graphics2D g,
double lonShift) |
Draw graphic list
|
void |
drawIdShape(Graphics2D g,
Shape aShape) |
Draw identifer shape
|
void |
drawIdShape(Graphics2D g,
Shape aShape,
Rectangle rect) |
Draw identifer shape
|
void |
drawLayerWithLegendScheme(VectorLayer aLayer,
Graphics2D g,
double LonShift) |
Draw layer with legend scheme
|
void |
drawVectLayerWithLegendScheme(VectorLayer aLayer,
Graphics2D g,
double LonShift) |
Draw vector layer with legend scheme
|
void |
exportExtentsElement(Document m_Doc,
Element parent) |
Add extent element
|
void |
exportGraphics(Document m_Doc,
Element parent,
List<Graphic> graphicList) |
Export graphics
|
void |
exportGridLineElement(Document m_Doc,
Element parent) |
Export grid line element
|
void |
exportImageLayer(Document m_Doc,
Element parent,
ImageLayer aILayer,
String projectFilePath) |
Export image layer element
|
void |
exportMapPropElement(Document m_Doc,
Element parent) |
Export map property element
|
void |
exportMaskOutElement(Document m_Doc,
Element parent) |
Export maskout element
|
void |
exportProjectionElement(Document m_Doc,
Element parent) |
Export projection element
|
void |
exportRasterLayer(Document m_Doc,
Element parent,
RasterLayer aILayer,
String projectFilePath) |
Export raster layer element
|
void |
exportToPicture(String aFile) |
Export to a picture file
|
void |
exportToPicture(String fileName,
Integer dpi) |
Export to a picture file
|
void |
exportVectorLayerElement(Document m_Doc,
Element parent,
VectorLayer aVLayer,
String projectFilePath) |
Export vector layer element
|
void |
exportWebMapLayer(Document m_Doc,
Element parent,
WebMapLayer wmLayer,
String projectFilePath) |
Export web map layer element
|
void |
fireGraphicSelectedEvent() |
|
void |
fireLayersUpdatedEvent() |
|
void |
fireProjectionChangedEvent() |
|
void |
fireShapeSelectedEvent() |
|
void |
fireUndoEditEvent(UndoableEdit undoEdit) |
|
void |
fireViewExtentChangedEvent() |
|
VectorLayer |
generateLonLatLayer() |
Generate longitude/latitude grid line layer
|
LabelBreak |
getDefLabelBreak() |
Get default label break
|
PointBreak |
getDefPointBreak() |
Get default point break
|
PolygonBreak |
getDefPolygonBreak() |
Get default polygon break
|
PolylineBreak |
getDefPolylineBreak() |
Get default polyline break
|
Extent |
getExtent() |
Get extent of all layers
|
PointD |
getGeoCenter() |
Get geographic center with longitude/latitude
|
double |
getGeoScale() |
Get geographic scale
|
GraphicCollection |
getGraphicCollection() |
Get graphic collection
|
Rectangle |
getGraphicRectangle(Graphics2D g,
Graphic aGraphic,
double lonShift) |
Get graphic rectangle
|
Rectangle |
getGraphicRectangle(Graphic aGraphic) |
Get graphic rectangle
|
Rectangle |
getGraphicRectangle(Graphic aGraphic,
double lonShift) |
Get graphic rectangle
|
List<GridLabel> |
getGridLabels() |
Get grid labels
|
Color |
getGridLineColor() |
Get grid line color
|
float |
getGridLineSize() |
Get grid line size
|
LineStyles |
getGridLineStyle() |
Get grid line style
|
double |
getGridXDelt() |
Get grid x/longitude delt
|
float |
getGridXOrigin() |
Get grid x/longitude origin
|
double |
getGridYDelt() |
Get grid y/latitude delt
|
float |
getGridYOrigin() |
Get grid y/latitude origin
|
int |
getImageLayerIdx() |
Get last image layer index
|
MapLayer |
getLastAddedLayer() |
Get last added layer
|
MapLayer |
getLayer(String name) |
Get layer by layer name
|
MapLayer |
getLayerByHandle(int handle) |
Get layer by handle
|
int |
getLayerHandleFromIdx(int lIdx) |
Get layer handle from layer index
|
int |
getLayerHandleFromName(String name) |
Get layer handle from layer name
|
int |
getLayerIdxFromHandle(int handle) |
Get layer index from layer handle
|
int |
getLayerNum() |
Get layer number
|
LayerCollection |
getLayers() |
Get layers
|
Extent |
getLayersWholeExtent() |
Get layers whole extent
|
int |
getLineLayerIdx() |
Get last polyline layer index
|
VectorLayer |
getLonLatLayer() |
Get lon/lat layer
|
double |
getLonShift(double lon) |
Get longitude shift
|
double |
getLonShift(Extent aExtent) |
Get longitude shift
|
MaskOut |
getMaskOut() |
Get maskout
|
FrmMeasurement |
getMeasurementForm() |
Get measurement form
|
Extent |
getMeteoLayersExtent() |
Get layers whole extent
|
MouseTools |
getMouseTool() |
Get mouse tool
|
int |
getNewLayerHandle() |
Get new layer handle
|
int |
getPolygonLayerIdx() |
Get last polygon layer index
|
ProjectionSet |
getProjection() |
Get projection set
|
Color |
getSelectColor() |
Get selected color
|
GraphicCollection |
getSelectedGraphics() |
Get selected graphics
|
MapLayer |
getSelectedLayer() |
Get selected layer
|
int |
getSelectedLayerHandle() |
Get selected layer handle
|
PointD |
getViewCenter() |
Get view center point
|
Extent |
getViewExtent() |
Get view extent
|
BufferedImage |
getViewImage() |
Get view image
|
WebMapLayer |
getWebMapLayer() |
Get web map layer
|
int |
getWebMapZoom() |
Get web map layer zoom
|
List<String> |
getXGridStrs() |
Get X grid labels
|
double |
getXScale() |
Get x scale
|
double |
getXYScaleFactor() |
Get x/y scale factor
|
List<String> |
getYGridStrs() |
Get Y grid labels
|
double |
getYScale() |
Get y scale
|
boolean |
hasWebMapLayer() |
Check if web map layer is included
|
boolean |
isAntiAlias() |
Get if antialias
|
boolean |
isDrawGridLine() |
Get if draw grid line
|
boolean |
isDrawGridTickLine() |
Get if draw grid tick line
|
boolean |
isDrawIdentiferShape() |
Get if draw identifer shape
|
boolean |
isGeoMap() |
Get if is geo map
|
boolean |
isHighSpeedWheelZoom() |
Get if is high speed mouse wheel zoom
|
boolean |
isLayoutMap() |
Get if is layout map
|
boolean |
isLockViewUpdate() |
Get if lock view update
|
boolean |
isMultiGlobalDraw() |
Get if draw multi global map
|
boolean |
isPointAntiAlias() |
Get if is point antialias
|
void |
loadExtentsElement(Element parent) |
Load extent element
|
void |
loadGraphics(Element parent) |
Load graphics
|
void |
loadGridLineElement(Element parent) |
Load grid line element
|
ImageLayer |
loadImageLayer(Node aILayer) |
Load image layer
|
void |
loadMapPropElement(Element parent) |
Load map property element
|
void |
loadMaskOutElement(Element parent) |
Load mask out element
|
void |
loadProjectionElement(Element parent) |
Load projection element
|
RasterLayer |
loadRasterLayer(Node aILayer) |
Load raster layer
|
VectorLayer |
loadVectorLayer(Node aVLayer) |
Load vector layer
|
WebMapLayer |
loadWebMapLayer(Node wmLayer) |
Load web map layer
|
double[] |
lonLatToScreen(double lon,
double lat) |
Longitude/Latitude convert to screen X/Y
|
void |
moveGraphic(Graphic graphic,
double x,
double y,
boolean screen) |
Move a graphic
|
void |
moveLayer(int lPreIdx,
int lNewIdx) |
Move layer position
|
void |
moveShapeOnScreen(Shape aShape,
double x,
double y) |
Move shape by screen coordinates
|
void |
moveShapeOnScreen(Shape aShape,
Point point1,
Point point2) |
Move shape by screen coordinates
|
void |
paintComponent(Graphics g) |
Paint component
|
void |
paintGraphics(Graphics2D g) |
Paint graphics
|
void |
paintGraphics(Graphics2D g,
Rectangle2D area,
TileLoadListener tll) |
Paint graphics
|
void |
paintGraphics(Graphics2D g,
Rectangle rect,
TileLoadListener tll) |
Paint graphics
|
void |
paintLayers() |
|
void |
projectLayers(ProjectionInfo toProj) |
Projection layers
|
double[] |
projToScreen(double projX,
double projY) |
Convert coordinate from map to screen
|
double[] |
projToScreen(double projX,
double projY,
double LonShift) |
Convert coordinate from map to screen
|
Rectangle2D.Double |
projToScreen(Extent extent,
double lonShift) |
Convert coordinate from map to screen
|
void |
reDraw() |
Re draw function
|
void |
refreshXYScale() |
Refresh X/Y scale
|
void |
refreshXYScale(int width,
int height) |
Refresh X/Y scale
|
void |
removeAllLayers() |
Remove all layers
|
void |
removeGraphic(Graphic aGraphic) |
Remove a graphic
|
void |
removeGraphicSelectedListener(IGraphicSelectedListener listener) |
|
void |
removeLayer(int aIdx) |
Remove a layer by index
|
void |
removeLayer(MapLayer aLayer) |
Remove a layer
|
void |
removeLayerHandle(int handle) |
Remove layer by handle
|
void |
removeLayersUpdatedListener(ILayersUpdatedListener listener) |
|
void |
removeSelectedGraphics() |
Remove selected graphics
|
void |
removeShapeSelectedListener(IShapeSelectedListener listener) |
|
void |
removeUndoEditListener(IUndoEditListener listener) |
|
void |
removeViewExtentChangedListener(IProjectionChangedListener listener) |
|
void |
removeViewExtentChangedListener(IViewExtentChangedListener listener) |
|
void |
resizeShapeOnScreen(Graphic graphic,
Rectangle newRect) |
Resize shape on screen
|
void |
resizeShapeOnScreen(Shape aShape,
ColorBreak legend,
Rectangle newRect) |
Resize shape on screen
|
double[] |
screenToProj(double screenX,
double screenY) |
Convert coordinate from screen to map
|
double[] |
screenToProj(double screenX,
double screenY,
double zoom) |
Convert coordiante from screen to map
|
float[] |
screenToProj(float screenX,
float screenY) |
Convert coordinate from screen to map
|
float[] |
screenToProj(float screenX,
float screenY,
double LonShift) |
Convert coordinate from screen to map
|
boolean |
selectGraphics(Rectangle aRect,
GraphicCollection selectedGraphics,
double lonShift) |
Select graphics by rectangle
|
boolean |
selectGraphics(Rectangle aRect,
GraphicCollection baseGraphics,
GraphicCollection selectedGraphics,
double lonShift) |
Select graphics by rectangle
|
boolean |
selectGraphics(PointF aPoint,
GraphicCollection selectedGraphics,
double lonShift) |
Select graphics by point
|
boolean |
selectGraphics(PointF aPoint,
GraphicCollection baseGraphics,
GraphicCollection selectedGraphics,
double lonShift,
int limit) |
Select graphics by point
|
boolean |
selectGraphics_back(Rectangle aRect,
GraphicCollection baseGraphics,
GraphicCollection selectedGraphics,
double lonShift) |
Select graphics by rectangle
|
boolean |
selectGraphics_back(PointF aPoint,
GraphicCollection baseGraphics,
GraphicCollection selectedGraphics,
double lonShift,
int limit) |
Select graphics by point
|
int[] |
selectGridCell(RasterLayer aLayer,
PointF aPoint) |
Select grid cell
|
Object[] |
selectPolygonHole(VectorLayer layer,
PointF p) |
Get polygon hole index by point
|
PolygonShape |
selectShape(VectorLayer layer,
PointF p) |
Select polygon shape
|
List<Integer> |
selectShapes(VectorLayer aLayer,
Rectangle2D.Float rect) |
Select shapes by rectangle
|
List<Integer> |
selectShapes(VectorLayer aLayer,
Rectangle2D.Float rect,
boolean isSingleSel) |
Select shapes by rectangle
|
List<Integer> |
selectShapes(VectorLayer aLayer,
List<Shape> baseShapes,
Rectangle2D.Float rect,
boolean isSingleSel,
boolean isSel) |
Select shapes
|
List<Integer> |
selectShapes(VectorLayer aLayer,
PointF aPoint) |
Select shapes
|
List<Integer> |
selectShapes(VectorLayer aLayer,
PointF aPoint,
boolean onlyVisible,
boolean isSel) |
Select shaped
|
void |
setAntiAlias(boolean istrue) |
Set if antialias
|
void |
setDefLabelBreak(LabelBreak lb) |
Set default label break
|
void |
setDefPointBreak(PointBreak pb) |
Set default point break
|
void |
setDefPolygonBreak(PolygonBreak pb) |
Set default polygon break
|
void |
setDefPolylineBreak(PolylineBreak pb) |
Set default polyline break
|
void |
setDrawGridLine(boolean istrue) |
Set if draw grid line
|
void |
setDrawGridTickLine(boolean istrue) |
Set if draw grid tick line
|
void |
setDrawIdentiferShape(boolean istrue) |
Set if draw identifer shape
|
void |
setExtent(Extent extent) |
Set extent of all layers
|
void |
setGeoMap(boolean value) |
Set if is geo map
|
void |
setGraphicCollection(GraphicCollection aGCollection) |
Set graphic collection
|
void |
setGridLineColor(Color color) |
Set grid line color
|
void |
setGridLineSize(float size) |
Set grid line size
|
void |
setGridLineStyle(LineStyles style) |
Set grid line style
|
void |
setGridXDelt(double delt) |
Set grid x/longitude delt
|
void |
setGridXOrigin(float origin) |
Set grid x/longitude origin
|
void |
setGridYDelt(double delt) |
Set grid y/latitude delt
|
void |
setGridYOrigin(float origin) |
Set grid y/latitude origin
|
void |
setHighSpeedWheelZoom(boolean value) |
Set if is high speed mouse wheel zoom
|
void |
setIsLayoutMap(boolean istrue) |
Set if is layout map
|
void |
setLayers(LayerCollection layers) |
Set layers
|
void |
setLockViewUpdate(boolean istrue) |
Set if lock view update
|
void |
setLonLatLayer(VectorLayer layer) |
Set lon/lat layer
|
void |
setMaskOut(MaskOut value) |
Set maskout
|
void |
setMeasurementForm(FrmMeasurement form) |
set measurement form
|
void |
setMouseTool(MouseTools mt) |
Set mouse tool
|
void |
setMultiGlobalDraw(boolean istrue) |
Set if draw multi global map
|
void |
setPointAntiAlias(boolean value) |
Set if point antialias
|
void |
setSelectColor(Color color) |
Set selected color
|
void |
setSelectedLayerHandle(int handle) |
Set selected layer handle
|
void |
setTileLoadListener(TileLoadListener value) |
Set TileLoadListner for web map plot
|
void |
setViewCenter(PointD center) |
Set view center point
|
void |
setViewExtent(Extent extent) |
Set view extent
|
void |
setXGridStrs(List<String> value) |
Set X grid labels
|
void |
setXYScaleFactor(double value) |
Set x/y scale factor
|
void |
setYGridStrs(List<String> value) |
Set Y grid labels
|
void |
showMeasurementForm() |
Show measurment form
|
void |
zoomToExtent(double minX,
double maxX,
double minY,
double maxY) |
Zoom to extent
|
void |
zoomToExtent(Extent aExtent) |
Zoom to extent
|
void |
zoomToExtentLonLatEx(Extent aExtent) |
Zoom to exactly lon/lat extent
|
void |
zoomToExtentLonLatEx_back(Extent aExtent) |
Zoom to exactly lon/lat extent
|
void |
zoomToExtentScreen(double minX,
double maxX,
double minY,
double maxY,
double zoom) |
Zoom to extent by screen coordinate
|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updategetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIpublic FrmIdentifer frmIdentifer
public FrmIdentiferGrid _frmIdentiferGrid
public boolean _drawIdentiferShape
public MapView()
public MapView(ProjectionInfo proj)
proj - Projectionpublic void setTileLoadListener(TileLoadListener value)
value - TileLoadListenerpublic LayerCollection getLayers()
public void setLayers(LayerCollection layers)
layers - The layer collectionpublic int getLayerNum()
public int getSelectedLayerHandle()
public void setSelectedLayerHandle(int handle)
handle - public MapLayer getLastAddedLayer()
public boolean isLayoutMap()
public void setIsLayoutMap(boolean istrue)
istrue - Booleanpublic boolean isGeoMap()
public void setGeoMap(boolean value)
value - Booleanpublic Extent getExtent()
public void setExtent(Extent extent)
extent - The extentpublic Extent getViewExtent()
public void setViewExtent(Extent extent)
extent - View extentpublic Color getSelectColor()
public void setSelectColor(Color color)
color - Selected Colorpublic boolean isMultiGlobalDraw()
public void setMultiGlobalDraw(boolean istrue)
istrue - Booleanpublic double getXScale()
public double getYScale()
public double getXYScaleFactor()
public void setXYScaleFactor(double value)
value - X/Y scale factorpublic MouseTools getMouseTool()
public void setMouseTool(MouseTools mt)
mt - The mouse toolpublic ProjectionSet getProjection()
public boolean isLockViewUpdate()
public void setLockViewUpdate(boolean istrue)
istrue - If lock view updatepublic boolean isAntiAlias()
public void setAntiAlias(boolean istrue)
istrue - Booleanpublic boolean isPointAntiAlias()
public void setPointAntiAlias(boolean value)
value - Booleanpublic boolean isHighSpeedWheelZoom()
public void setHighSpeedWheelZoom(boolean value)
value - Booleanpublic GraphicCollection getSelectedGraphics()
public PointBreak getDefPointBreak()
public void setDefPointBreak(PointBreak pb)
pb - Default point breakpublic LabelBreak getDefLabelBreak()
public void setDefLabelBreak(LabelBreak lb)
lb - Default label breakpublic PolylineBreak getDefPolylineBreak()
public void setDefPolylineBreak(PolylineBreak pb)
pb - Default polyline breakpublic PolygonBreak getDefPolygonBreak()
public void setDefPolygonBreak(PolygonBreak pb)
pb - Default polygon breakpublic boolean isDrawIdentiferShape()
public void setDrawIdentiferShape(boolean istrue)
istrue - booleanpublic boolean isDrawGridTickLine()
public void setDrawGridTickLine(boolean istrue)
istrue - Booleanpublic Color getGridLineColor()
public void setGridLineColor(Color color)
color - The colorpublic float getGridLineSize()
public void setGridLineSize(float size)
size - The sizepublic LineStyles getGridLineStyle()
public void setGridLineStyle(LineStyles style)
style - public boolean isDrawGridLine()
public void setDrawGridLine(boolean istrue)
istrue - public double getGridXDelt()
public void setGridXDelt(double delt)
delt - Grid x deltpublic double getGridYDelt()
public void setGridYDelt(double delt)
delt - Grid y deltapublic float getGridXOrigin()
public void setGridXOrigin(float origin)
origin - Grid x originpublic float getGridYOrigin()
public void setGridYOrigin(float origin)
origin - Grid y originpublic void setXGridStrs(List<String> value)
value - X grid lablespublic void setYGridStrs(List<String> value)
value - Y grid labelspublic GraphicCollection getGraphicCollection()
public void setGraphicCollection(GraphicCollection aGCollection)
aGCollection - The graphic collectionpublic VectorLayer getLonLatLayer()
public void setLonLatLayer(VectorLayer layer)
layer - The lon/lat layerpublic FrmMeasurement getMeasurementForm()
public void setMeasurementForm(FrmMeasurement form)
form - Measurement formpublic MaskOut getMaskOut()
public void setMaskOut(MaskOut value)
value - Maskoutpublic BufferedImage getViewImage()
public void addViewExtentChangedListener(IViewExtentChangedListener listener)
public void removeViewExtentChangedListener(IViewExtentChangedListener listener)
public void fireViewExtentChangedEvent()
public void addUndoEditListener(IUndoEditListener listener)
public void removeUndoEditListener(IUndoEditListener listener)
public void fireUndoEditEvent(UndoableEdit undoEdit)
public void addLayersUpdatedListener(ILayersUpdatedListener listener)
public void removeLayersUpdatedListener(ILayersUpdatedListener listener)
public void fireLayersUpdatedEvent()
public void addGraphicSelectedListener(IGraphicSelectedListener listener)
public void removeGraphicSelectedListener(IGraphicSelectedListener listener)
public void fireGraphicSelectedEvent()
public void addShapeSelectedListener(IShapeSelectedListener listener)
public void removeShapeSelectedListener(IShapeSelectedListener listener)
public void fireShapeSelectedEvent()
public void addProjectionChangedListener(IProjectionChangedListener listener)
public void removeViewExtentChangedListener(IProjectionChangedListener listener)
public void fireProjectionChangedEvent()
public int addLayer(MapLayer aLayer)
aLayer - The layerpublic int addLayer(int index,
MapLayer aLayer)
index - The indexaLayer - The layerpublic int addWindLayer(VectorLayer aLayer, boolean EarthWind)
aLayer - Wind layerEarthWind - If wind relative to earthpublic int getNewLayerHandle()
public MapLayer getSelectedLayer()
public Extent getLayersWholeExtent()
public Extent getMeteoLayersExtent()
public int getLayerHandleFromName(String name)
name - The layer namepublic int getLayerHandleFromIdx(int lIdx)
lIdx - Layer indexpublic MapLayer getLayerByHandle(int handle)
handle - The layer handlepublic MapLayer getLayer(String name)
name - The layer namepublic int getLayerIdxFromHandle(int handle)
handle - The layer handlepublic void moveLayer(int lPreIdx,
int lNewIdx)
lPreIdx - Previous indexlNewIdx - New indexpublic void removeLayer(int aIdx)
aIdx - Layer indexpublic void removeLayerHandle(int handle)
handle - Layer handlepublic void removeLayer(MapLayer aLayer)
aLayer - The layerpublic void removeAllLayers()
public int getLineLayerIdx()
public int getPolygonLayerIdx()
public int getImageLayerIdx()
public boolean hasWebMapLayer()
public void paintComponent(Graphics g)
paintComponent 在类中 JComponentg - Graphicspublic int getWebMapZoom()
IWebMapPanelgetWebMapZoom 在接口中 IWebMapPanelpublic void reDraw()
IWebMapPanelreDraw 在接口中 IWebMapPanelpublic void paintLayers()
public void paintGraphics(Graphics2D g)
g - Graphics2Dpublic void paintGraphics(Graphics2D g, Rectangle2D area, TileLoadListener tll)
g - Graphics2Darea - Target rectangle areatll - TileLoadListenerpublic void paintGraphics(Graphics2D g, Rectangle rect, TileLoadListener tll)
g - Graphics2Drect - Target rectangletll - TileLoadListenerpublic void drawLayerWithLegendScheme(VectorLayer aLayer, Graphics2D g, double LonShift)
aLayer - Vector layerg - GraphicsLonShift - Longitude shiftpublic void drawVectLayerWithLegendScheme(VectorLayer aLayer, Graphics2D g, double LonShift)
aLayer - The vector layerg - Graphics2DLonShift - Longitude shiftpublic void drawBarbLayerWithLegendScheme(VectorLayer aLayer, Graphics2D g, double LonShift)
aLayer - The layerg - Graphics2DLonShift - Longitude shiftpublic WebMapLayer getWebMapLayer()
public void drawGraphicList(Graphics2D g, double lonShift)
g - Graphics2DlonShift - Longitude shiftpublic void drawGraphic(Graphics2D g, Graphic graphic, Rectangle rect)
g - The Graphics2Dgraphic - The graphicrect - Drawing rectanglepublic void drawGraphic(Graphics2D g, Graphic aGraphic, double lonShift)
g - Graphics2DaGraphic - The GraphiclonShift - Longitude shiftpublic void drawIdShape(Graphics2D g, Shape aShape)
g - Graphics2DaShape - A shapepublic void drawIdShape(Graphics2D g, Shape aShape, Rectangle rect)
g - Graphics2DaShape - The identifer shaperect - Rectangle extentpublic void exportToPicture(String aFile) throws FileNotFoundException, PrintException, IOException
aFile - File pathFileNotFoundExceptionPrintExceptionIOExceptionpublic void exportToPicture(String fileName, Integer dpi) throws FileNotFoundException, PrintException, IOException
fileName - File pathdpi - DPIFileNotFoundExceptionPrintExceptionIOExceptionpublic VectorLayer generateLonLatLayer()
public double[] projToScreen(double projX,
double projY)
projX - Map XprojY - Map Ypublic double[] projToScreen(double projX,
double projY,
double LonShift)
projX - Map XprojY - Map YLonShift - Longitude shiftpublic Rectangle2D.Double projToScreen(Extent extent, double lonShift)
extent - The extentlonShift - Longitude shiftpublic double[] lonLatToScreen(double lon,
double lat)
lon - Longitudelat - Latitudepublic double[] screenToProj(double screenX,
double screenY)
screenX - Screen XscreenY - Screen Ypublic double[] screenToProj(double screenX,
double screenY,
double zoom)
screenX - Screen XscreenY - Screen Yzoom - Zoom factorpublic float[] screenToProj(float screenX,
float screenY)
screenX - Screen XscreenY - Screen Ypublic float[] screenToProj(float screenX,
float screenY,
double LonShift)
screenX - Screen XscreenY - Screen YLonShift - Longitude shiftpublic void moveShapeOnScreen(Shape aShape, double x, double y)
aShape - The shapex - X shifty - Y shiftpublic void moveGraphic(Graphic graphic, double x, double y, boolean screen)
graphic - The graphicx - X shifty - Y shiftscreen - Is screen coordinate or not.public void moveShapeOnScreen(Shape aShape, Point point1, Point point2)
aShape - The shapepoint1 - From pointpoint2 - To pointpublic void resizeShapeOnScreen(Shape aShape, ColorBreak legend, Rectangle newRect)
aShape - The shapelegend - The legendnewRect - New rectanglepublic void resizeShapeOnScreen(Graphic graphic, Rectangle newRect)
graphic - The graphicnewRect - New rectanglepublic double getLonShift(Extent aExtent)
aExtent - Extentpublic double getLonShift(double lon)
lon - Longitudepublic void zoomToExtent(Extent aExtent)
aExtent - The extentpublic void zoomToExtent(double minX,
double maxX,
double minY,
double maxY)
minX - Minimum xmaxX - Maximum xminY - Minimum ymaxY - Maximum ypublic void zoomToExtentScreen(double minX,
double maxX,
double minY,
double maxY,
double zoom)
minX - Minimum xmaxX - Maximum xminY - Minimum ymaxY - Maximum yzoom - Zoompublic void zoomToExtentLonLatEx(Extent aExtent)
aExtent - The extentpublic void zoomToExtentLonLatEx_back(Extent aExtent)
aExtent - The extentpublic void refreshXYScale()
public void refreshXYScale(int width,
int height)
width - The widthheight - The heightpublic double getGeoScale()
public PointD getGeoCenter()
public PointD getViewCenter()
public void setViewCenter(PointD center)
center - The view center pointpublic boolean selectGraphics(PointF aPoint, GraphicCollection selectedGraphics, double lonShift)
aPoint - The pointselectedGraphics - Selected graphicslonShift - Longitue shiftpublic boolean selectGraphics_back(PointF aPoint, GraphicCollection baseGraphics, GraphicCollection selectedGraphics, double lonShift, int limit)
aPoint - The pointbaseGraphics - Base graphicsselectedGraphics - Selected graphicslonShift - Longitude shiftlimit - Tolerance limitpublic boolean selectGraphics(PointF aPoint, GraphicCollection baseGraphics, GraphicCollection selectedGraphics, double lonShift, int limit)
aPoint - The pointbaseGraphics - Base graphicsselectedGraphics - Selected graphicslonShift - Longitude shiftlimit - Tolerance limitpublic boolean selectGraphics(Rectangle aRect, GraphicCollection selectedGraphics, double lonShift)
aRect - The rectangleselectedGraphics - Selected graphicslonShift - Longitude shiftpublic boolean selectGraphics_back(Rectangle aRect, GraphicCollection baseGraphics, GraphicCollection selectedGraphics, double lonShift)
aRect - Select rectanglebaseGraphics - Base graphicsselectedGraphics - Selected graphicslonShift - Logitude shiftpublic boolean selectGraphics(Rectangle aRect, GraphicCollection baseGraphics, GraphicCollection selectedGraphics, double lonShift)
aRect - Select rectanglebaseGraphics - Base graphicsselectedGraphics - Selected graphicslonShift - Logitude shiftpublic PolygonShape selectShape(VectorLayer layer, PointF p)
layer - Polygon layerp - The pointpublic Object[] selectPolygonHole(VectorLayer layer, PointF p)
layer - The layerp - The pointpublic List<Integer> selectShapes(VectorLayer aLayer, PointF aPoint, boolean onlyVisible, boolean isSel)
aLayer - Vector layeraPoint - The pointonlyVisible - If only select the shapes from visible shapesisSel - If the selected shapes will be set as selectedpublic List<Integer> selectShapes(VectorLayer aLayer, PointF aPoint)
aLayer - Vector layeraPoint - The pointpublic List<Integer> selectShapes(VectorLayer aLayer, List<Shape> baseShapes, Rectangle2D.Float rect, boolean isSingleSel, boolean isSel)
aLayer - The vector layerbaseShapes - The base shapes which is used for selectionrect - Select rectangleisSingleSel - If just select the first object shapeisSel - if the selected shapes will be set as selectedpublic List<Integer> selectShapes(VectorLayer aLayer, Rectangle2D.Float rect, boolean isSingleSel)
aLayer - The vector layerrect - Select rectangleisSingleSel - If just select the first object shapepublic List<Integer> selectShapes(VectorLayer aLayer, Rectangle2D.Float rect)
aLayer - The vector layerrect - Select rectanglepublic int[] selectGridCell(RasterLayer aLayer, PointF aPoint)
aLayer - Raster layeraPoint - Pointpublic Rectangle getGraphicRectangle(Graphics2D g, Graphic aGraphic, double lonShift)
g - The graphicsaGraphic - The graphiclonShift - Longitude shiftpublic Rectangle getGraphicRectangle(Graphic aGraphic, double lonShift)
aGraphic - The graphiclonShift - Longitude shiftpublic Rectangle getGraphicRectangle(Graphic aGraphic)
aGraphic - The graphicpublic void addGraphic(Graphic graphic)
graphic - Graphicpublic void removeGraphic(Graphic aGraphic)
aGraphic - The graphicpublic void removeSelectedGraphics()
public void exportExtentsElement(Document m_Doc, Element parent)
m_Doc - XML documentparent - Parent XML elementpublic void exportMapPropElement(Document m_Doc, Element parent)
m_Doc - XML documentparent - Parent XML elementpublic void exportGridLineElement(Document m_Doc, Element parent)
m_Doc - XML documentparent - Parent XML elementpublic void exportMaskOutElement(Document m_Doc, Element parent)
m_Doc - XML documentparent - Parent XML elementpublic void exportProjectionElement(Document m_Doc, Element parent)
m_Doc - XML documentparent - Parent XML elementpublic void exportVectorLayerElement(Document m_Doc, Element parent, VectorLayer aVLayer, String projectFilePath)
m_Doc - XML documentparent - Parent XML elementaVLayer - The vector layerprojectFilePath - Project file pathpublic void exportGraphics(Document m_Doc, Element parent, List<Graphic> graphicList)
m_Doc - XML documentparent - Parent XML elementgraphicList - Graphic listpublic void exportImageLayer(Document m_Doc, Element parent, ImageLayer aILayer, String projectFilePath)
m_Doc - XML documentparent - Parent elementaILayer - The image layerprojectFilePath - Project file pathpublic void exportRasterLayer(Document m_Doc, Element parent, RasterLayer aILayer, String projectFilePath)
m_Doc - XML documentparent - Parent elementaILayer - The raster layerprojectFilePath - Project file pathpublic void exportWebMapLayer(Document m_Doc, Element parent, WebMapLayer wmLayer, String projectFilePath)
m_Doc - XML documentparent - Parent elementwmLayer - The web map layerprojectFilePath - Project file pathpublic void loadMapPropElement(Element parent)
parent - Parent XML elementpublic void loadGridLineElement(Element parent)
parent - Parent XML elementpublic void loadMaskOutElement(Element parent)
parent - Parent XML elementpublic void loadProjectionElement(Element parent)
parent - Parent XML elementpublic void loadExtentsElement(Element parent)
parent - Parent XML elementpublic VectorLayer loadVectorLayer(Node aVLayer)
aVLayer - Vector layer XML nodepublic ImageLayer loadImageLayer(Node aILayer)
aILayer - Image layer XML nodepublic RasterLayer loadRasterLayer(Node aILayer) throws Exception
aILayer - Raster layer XML nodeExceptionpublic WebMapLayer loadWebMapLayer(Node wmLayer) throws Exception
wmLayer - Web map layer XML nodeExceptionpublic void loadGraphics(Element parent)
parent - Parent XML elementpublic void projectLayers(ProjectionInfo toProj)
toProj - To projection infopublic void showMeasurementForm()
Copyright © 2019. All rights reserved.