类 MapFrame


  • public class MapFrame
    extends ItemNode
    作者:
    yaqiang
    • 构造器详细资料

      • MapFrame

        public MapFrame()
        Constructor
      • MapFrame

        public MapFrame​(LayersLegend legend)
        Constructor
        参数:
        legend - LayersLegend
    • 方法详细资料

      • addLayersUpdatedListener

        public void addLayersUpdatedListener​(ILayersUpdatedListener lul)
        Add layers updated event listener
        参数:
        lul - LayersUpdatedListener interface
      • fireLayersUpdatedEvent

        public void fireLayersUpdatedEvent()
      • fireMapViewUpdatedEvent

        public void fireMapViewUpdatedEvent()
      • fireLayoutBoundsChangedEvent

        public void fireLayoutBoundsChangedEvent()
      • getMapView

        public MapView getMapView()
        Get map view
        返回:
        The map view
      • setMapView

        public void setMapView​(MapView mapView)
        Set map view
        参数:
        mapView - The map view
      • getNodes

        public java.util.List<ItemNode> getNodes()
        Get nodes
        返回:
        The nodes
      • setNodes

        public void setNodes​(java.util.List<ItemNode> nodes)
        Set nodes
        参数:
        nodes - The nodes
      • getSelectedLayer

        public int getSelectedLayer()
        Get selected layer handle
        返回:
        The selected layer handle
      • setSelectedLayer

        public void setSelectedLayer​(int handle)
        Set selected layer handle
        参数:
        handle - The selected layer handle
      • getLegend

        public LayersLegend getLegend()
        Get layers legend
        返回:
        LayersLegend
      • setLegend

        public void setLegend​(LayersLegend legend)
        Set layers legend
        参数:
        legend -
      • isActive

        public boolean isActive()
        Get if is active
        返回:
        Boolean
      • setActive

        public void setActive​(boolean istrue)
        Set if is active
        参数:
        istrue - Boolean
      • getOrder

        public int getOrder()
        Get order
        返回:
        The order
      • setOrder

        public void setOrder​(int order)
        Set order
        参数:
        order - The order
      • isDrawNeatLine

        public boolean isDrawNeatLine()
        Get if draw neat line
        返回:
        Boolean
      • setDrawNeatLine

        public void setDrawNeatLine​(boolean istrue)
        Set if draw neat line
        参数:
        istrue - Boolean
      • getNeatLineColor

        public java.awt.Color getNeatLineColor()
        Get neat line color
        返回:
        The neat line color
      • setNeatLineColor

        public void setNeatLineColor​(java.awt.Color color)
        Set neat line color
        参数:
        color - The color
      • getNeatLineSize

        public float getNeatLineSize()
        Get neat line size
        返回:
        The neat line size
      • setNeatLineSize

        public void setNeatLineSize​(float size)
        Set neat line size
        参数:
        size - The size
      • isDrawGridLabel

        public boolean isDrawGridLabel()
        Get if draw grid label
        返回:
        Boolean
      • setDrawGridLabel

        public void setDrawGridLabel​(boolean istrue)
        Set if draw grid label
        参数:
        istrue - Boolean
      • isInsideTickLine

        public boolean isInsideTickLine()
        Get if draw tick line inside of the border
        返回:
        Boolean
      • setInsideTickLine

        public void setInsideTickLine​(boolean istrue)
        Set if draw tick line inside of the border
        参数:
        istrue - Boolean
      • getTickLineLength

        public int getTickLineLength()
        Get tick line length
        返回:
        Tick line length
      • setTickLineLength

        public void setTickLineLength​(int len)
        Set tick line length
        参数:
        len - The length
      • getGridLabelShift

        public int getGridLabelShift()
        Get grid label shift
        返回:
        Shift value
      • setGridLabelShift

        public void setGridLabelShift​(int shift)
        Set grid label shift
        参数:
        shift - Shift value
      • getGridLabelPosition

        public GridLabelPosition getGridLabelPosition()
        Get grid label position
        返回:
        Grid label position
      • setGridLabelPosition

        public void setGridLabelPosition​(GridLabelPosition pos)
        Set grid label position
        参数:
        pos - Grid label position
      • setGridLabelPosition

        public void setGridLabelPosition​(java.lang.String pos)
        Set grid label position
        参数:
        pos - Grid label position
      • getGridFont

        public java.awt.Font getGridFont()
        Get grid label font
        返回:
        Grid font
      • setGridFont

        public void setGridFont​(java.awt.Font font)
        Set grid label font
        参数:
        font - The font
      • getMapFrameName

        public java.lang.String getMapFrameName()
        Get map frame name
        返回:
        Map frmae name
      • setMapFrameName

        public void setMapFrameName​(java.lang.String name)
        Set map frame name
        参数:
        name - The name
      • getBackColor

        public java.awt.Color getBackColor()
        Get map view background color
        覆盖:
        getBackColor 在类中 ItemNode
        返回:
        Map view background color
      • setBackColor

        public void setBackColor​(java.awt.Color color)
        Set map view background color
        覆盖:
        setBackColor 在类中 ItemNode
        参数:
        color - The color
      • getForeColor

        public java.awt.Color getForeColor()
        Get map view foreground color
        覆盖:
        getForeColor 在类中 ItemNode
        返回:
        Map view foreground color
      • setForeColor

        public void setForeColor​(java.awt.Color color)
        Set map view foreground color
        覆盖:
        setForeColor 在类中 ItemNode
        参数:
        color - The color
      • getGridLineColor

        public java.awt.Color getGridLineColor()
        Get grid line color
        返回:
        Grid line color
      • setGridLineColor

        public void setGridLineColor​(java.awt.Color color)
        Set grid line color
        参数:
        color - Grid line color
      • getGridLineSize

        public float getGridLineSize()
        Get grid line size
        返回:
        Grid line size
      • setGridLineSize

        public void setGridLineSize​(float size)
        Set grid line size
        参数:
        size - Grid line size
      • getGridLineStyle

        public LineStyles getGridLineStyle()
        Get grid line style
        返回:
        Grid line style
      • setGridLineStyle

        public void setGridLineStyle​(LineStyles style)
        Set grid line style
        参数:
        style - Grid line style
      • isDrawGridLine

        public boolean isDrawGridLine()
        Get if draw grid line
        返回:
        Boolean
      • setDrawGridLine

        public void setDrawGridLine​(boolean istrue)
        Set if draw grid line
        参数:
        istrue - Boolean
      • isDrawGridTickLine

        public boolean isDrawGridTickLine()
        Get if draw grid tick line
        返回:
        Boolean
      • setDrawGridTickLine

        public void setDrawGridTickLine​(boolean istrue)
        Set if draw grid tick line
        参数:
        istrue - Boolean
      • getGridXDelt

        public double getGridXDelt()
        Get grid x delta
        返回:
        Grid x delta
      • setGridXDelt

        public void setGridXDelt​(double delta)
        Set grid x delta
        参数:
        delta - Grid x delta
      • getGridYDelt

        public double getGridYDelt()
        Get grid y delta
        返回:
        Grid y delta
      • setGridYDelt

        public void setGridYDelt​(double value)
        Set grid y delta
        参数:
        value - Grid y delta
      • getGridXOrigin

        public float getGridXOrigin()
        Get grid x origin
        返回:
        Grid x origin
      • setGridXOrigin

        public void setGridXOrigin​(float value)
        Set grid x origin
        参数:
        value - Grid x origin
      • getGridYOrigin

        public float getGridYOrigin()
        Get grid y origin
        返回:
        Grid y origin
      • setGridYOrigin

        public void setGridYOrigin​(float value)
        Set grid y origin
        参数:
        value - Grid y origin
      • getLayoutBounds

        public java.awt.Rectangle getLayoutBounds()
        Get layout bounds
        返回:
        The layout bounds
      • setLayoutBounds

        public void setLayoutBounds​(java.awt.Rectangle lb)
        Set layout bounds
        参数:
        lb - Layout bounds
      • addGroup

        public int addGroup​(GroupNode aGroup)
        Add a group node
        参数:
        aGroup - The group node
        返回:
        Group node handle
      • addNewGroup

        public int addNewGroup​(java.lang.String name)
        Add a new group
        参数:
        name - Group name
        返回:
        Group handle
      • removeGroup

        public void removeGroup​(GroupNode aGroup)
        Rmove a group
        参数:
        aGroup - The group node
      • addLayer

        public int addLayer​(MapLayer aLayer)
        Add a layer
        参数:
        aLayer - The layer
        返回:
        The layer handle
      • addLayer

        public int addLayer​(int index,
                            MapLayer layer)
        Add a layer
        参数:
        index - The index
        layer - The layer
        返回:
        The layer handle
      • addWindLayer

        public int addWindLayer​(VectorLayer aLayer,
                                boolean earthWind)
        Add wind layer
        参数:
        aLayer - Wind layer
        earthWind - If wind relative to earth
        返回:
        Layer handle
      • addLayer

        public int addLayer​(MapLayer aLayer,
                            int groupHandle)
        Add a layer in a group
        参数:
        aLayer - The layer
        groupHandle - The group handle
        返回:
        Layer handle
      • insertPolygonLayer

        public int insertPolygonLayer​(MapLayer aLayer)
        Insert polygon layer
        参数:
        aLayer - Polygon layer
        返回:
        Layer handle
      • insertPolylineLayer

        public int insertPolylineLayer​(VectorLayer aLayer)
        Insert polyline layer
        参数:
        aLayer - Polyline layer
        返回:
        Layer handle
      • insertImageLayer

        public int insertImageLayer​(MapLayer aLayer)
        Insert image layer
        参数:
        aLayer - Image layer
        返回:
        Layer handle
      • moveLayer

        public void moveLayer​(int handle,
                              int lNewIdx)
        Move layer position
        参数:
        handle - Layer handle
        lNewIdx - Move to index
      • moveLayer

        public void moveLayer​(MapLayer layer,
                              int lNewIdx)
        Move layer position
        参数:
        layer - The layer
        lNewIdx - Move to index
      • getLayerNodes

        public java.util.List<LayerNode> getLayerNodes()
        Get all layer nodes
        返回:
        Layer nodes
      • moveLayerNode

        public void moveLayerNode​(int lPreIdx,
                                  int lNewIdx)
        Move layer node
        参数:
        lPreIdx - Previous index
        lNewIdx - New index
      • addLayerNode

        public int addLayerNode​(LayerNode aLN)
        Add a layer node
        参数:
        aLN - The layer node
        返回:
        The layer handle
      • addLayerNode

        public int addLayerNode​(LayerNode aLN,
                                GroupNode aGN)
        Add a layer node in a group node
        参数:
        aLN - a layer node
        aGN - The group node
        返回:
        Layer handle
      • addLayerNode

        public int addLayerNode​(int index,
                                LayerNode aLN)
        Add layer node
        参数:
        index - The index
        aLN - A layer node
        返回:
        Layer node
      • addLayerNode

        public int addLayerNode​(int index,
                                LayerNode aLN,
                                GroupNode aGN)
        Add a layer node in a group node
        参数:
        index - The index
        aLN - The layer node
        aGN - The group node
        返回:
        Layer handle
      • addGroupNode

        public void addGroupNode​(GroupNode aGN)
        Add a group node
        参数:
        aGN - The group node
      • addGroupNode

        public void addGroupNode​(int index,
                                 GroupNode aGN)
        Insert a group node
        参数:
        index - The index
        aGN - The group node
      • addNode

        public void addNode​(ItemNode aNode)
        Add a node
        参数:
        aNode - The node
      • addNode

        public void addNode​(int idx,
                            ItemNode aNode)
        Insert a node
        参数:
        idx - The index
        aNode - The node
      • removeNode

        public void removeNode​(ItemNode aNode)
        Remove a node
        参数:
        aNode - The node
      • removeLayer

        public void removeLayer​(int lIdx)
        Remove a layer by index
        参数:
        lIdx - The layer index
      • removeLayerByHandle

        public void removeLayerByHandle​(int handle)
        Remove a layer by handle
        参数:
        handle - The layer handle
      • removeLayer

        public void removeLayer​(MapLayer aLayer)
        Remove a layer
        参数:
        aLayer - The layer
      • removeLayer

        public void removeLayer​(LayerNode aLN)
        Remove a layer node
        参数:
        aLN - The layer node
      • removeMeteoLayers

        public void removeMeteoLayers()
        Remove meteorological data layers
      • removeAllLayers

        public void removeAllLayers()
        Remove all layers
      • getGroupByHandle

        public GroupNode getGroupByHandle​(int handle)
        Get group node by handle
        参数:
        handle - The hanle
        返回:
        group node
      • getGroupByName

        public GroupNode getGroupByName​(java.lang.String name)
        Get group node by name
        参数:
        name - The node name
        返回:
        Group node
      • selectLayerByHandle

        public void selectLayerByHandle​(int handle)
        Select layer by handle
        参数:
        handle - Layer handle
      • unSelectNodes

        public void unSelectNodes()
        Unselect all nodes
      • getLayerNodeByHandle

        public LayerNode getLayerNodeByHandle​(int handle)
        Get layer node by handle
        参数:
        handle - The layer handle
        返回:
        The layer node
      • getLayerNodeByName

        public LayerNode getLayerNodeByName​(java.lang.String lName)
        Get layer node by name
        参数:
        lName - The layer name
        返回:
        The layer node
      • updateLayerNode

        public void updateLayerNode​(MapLayer aLayer)
        Update layer node
        参数:
        aLayer - The layer
      • updateLayerNode

        public void updateLayerNode​(int handle)
        Update layer node by handle
        参数:
        handle - The layer handle
      • UpdateLayerNodeLegendScheme

        public void UpdateLayerNodeLegendScheme​(int handle,
                                                LegendScheme aLS)
        Update layer node legend scheme
        参数:
        handle - The layer handle
        aLS - The legend scheme
      • reOrderMapViewLayers

        public void reOrderMapViewLayers()
        Reorder map view layers
      • getExpandedHeight

        public int getExpandedHeight()
        从类复制的说明: ItemNode
        Get expanded height
        指定者:
        getExpandedHeight 在类中 ItemNode
        返回:
        The expanded height
      • getDrawHeight

        public int getDrawHeight()
        从类复制的说明: ItemNode
        Get drawing height
        指定者:
        getDrawHeight 在类中 ItemNode
        返回:
        The drawing height
      • exportProjectXML

        public void exportProjectXML​(org.w3c.dom.Document m_Doc,
                                     org.w3c.dom.Element parent,
                                     java.lang.String projectFilePath)
        Export project XML content
        参数:
        m_Doc - XML document
        parent - parent XML element
        projectFilePath - Project file path
      • importProjectXML

        public void importProjectXML​(java.lang.String pPath,
                                     org.w3c.dom.Element parent)
        Import project XML content
        参数:
        pPath - Projection file parent path
        parent - Parent XML element