public class MapFrame extends ItemNode
| 限定符和类型 | 类 | 说明 |
|---|---|---|
class |
MapFrame.MapFrameBean |
|
static class |
MapFrame.MapFrameBeanBeanInfo |
| 构造器 | 说明 |
|---|---|
MapFrame() |
Constructor
|
MapFrame(LayersLegend legend) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
addGroup(GroupNode aGroup) |
Add a group node
|
void |
addGroupNode(int index,
GroupNode aGN) |
Insert a group node
|
void |
addGroupNode(GroupNode aGN) |
Add a group node
|
int |
addLayer(int index,
MapLayer layer) |
Add a layer
|
int |
addLayer(MapLayer aLayer) |
Add a layer
|
int |
addLayer(MapLayer aLayer,
int groupHandle) |
Add a layer in a group
|
int |
addLayerNode(int index,
LayerNode aLN) |
Add layer node
|
int |
addLayerNode(int index,
LayerNode aLN,
GroupNode aGN) |
Add a layer node in a group node
|
int |
addLayerNode(LayerNode aLN) |
Add a layer node
|
int |
addLayerNode(LayerNode aLN,
GroupNode aGN) |
Add a layer node in a group node
|
void |
addLayersUpdatedListener(ILayersUpdatedListener lul) |
Add layers updated event listener
|
void |
addLayoutBoundsChangedListener(ILayoutBoundsChangedListener listener) |
|
void |
addMapViewUpdatedListener(IMapViewUpdatedListener listener) |
|
int |
addNewGroup(String name) |
Add a new group
|
void |
addNode(int idx,
ItemNode aNode) |
Insert a node
|
void |
addNode(ItemNode aNode) |
Add a node
|
int |
addWindLayer(VectorLayer aLayer,
boolean earthWind) |
Add wind layer
|
void |
exportProjectXML(Document m_Doc,
Element parent,
String projectFilePath) |
Export project XML content
|
void |
fireLayersUpdatedEvent() |
|
void |
fireLayoutBoundsChangedEvent() |
|
void |
fireMapViewUpdatedEvent() |
|
Color |
getBackColor() |
Get map view background color
|
int |
getDrawHeight() |
Get drawing height
|
int |
getExpandedHeight() |
Get expanded height
|
Color |
getForeColor() |
Get map view foreground color
|
Font |
getGridFont() |
Get grid label font
|
GridLabelPosition |
getGridLabelPosition() |
Get grid label position
|
int |
getGridLabelShift() |
Get grid label shift
|
Color |
getGridLineColor() |
Get grid line color
|
float |
getGridLineSize() |
Get grid line size
|
LineStyles |
getGridLineStyle() |
Get grid line style
|
double |
getGridXDelt() |
Get grid x delta
|
float |
getGridXOrigin() |
Get grid x origin
|
double |
getGridYDelt() |
Get grid y delta
|
float |
getGridYOrigin() |
Get grid y origin
|
GroupNode |
getGroupByHandle(int handle) |
Get group node by handle
|
GroupNode |
getGroupByName(String name) |
Get group node by name
|
LayerNode |
getLayerNodeByHandle(int handle) |
Get layer node by handle
|
LayerNode |
getLayerNodeByName(String lName) |
Get layer node by name
|
List<LayerNode> |
getLayerNodes() |
Get all layer nodes
|
Rectangle |
getLayoutBounds() |
Get layout bounds
|
LayersLegend |
getLegend() |
Get layers legend
|
String |
getMapFrameName() |
Get map frame name
|
MapView |
getMapView() |
Get map view
|
Color |
getNeatLineColor() |
Get neat line color
|
float |
getNeatLineSize() |
Get neat line size
|
List<ItemNode> |
getNodes() |
Get nodes
|
int |
getOrder() |
Get order
|
int |
getSelectedLayer() |
Get selected layer handle
|
int |
getTickLineLength() |
Get tick line length
|
void |
importProjectXML(String pPath,
Element parent) |
Import project XML content
|
int |
insertImageLayer(MapLayer aLayer) |
Insert image layer
|
int |
insertPolygonLayer(MapLayer aLayer) |
Insert polygon layer
|
int |
insertPolylineLayer(VectorLayer aLayer) |
Insert polyline layer
|
boolean |
isActive() |
Get if is active
|
boolean |
isDrawGridLabel() |
Get if draw grid label
|
boolean |
isDrawGridLine() |
Get if draw grid line
|
boolean |
isDrawGridTickLine() |
Get if draw grid tick line
|
boolean |
isDrawNeatLine() |
Get if draw neat line
|
boolean |
isInsideTickLine() |
Get if draw tick line inside of the border
|
void |
moveLayer(int handle,
int lNewIdx) |
Move layer position
|
void |
moveLayer(MapLayer layer,
int lNewIdx) |
Move layer position
|
void |
moveLayerNode(int lPreIdx,
int lNewIdx) |
Move layer node
|
void |
removeAllLayers() |
Remove all layers
|
void |
removeGroup(GroupNode aGroup) |
Rmove a group
|
void |
removeLayer(int lIdx) |
Remove a layer by index
|
void |
removeLayer(MapLayer aLayer) |
Remove a layer
|
void |
removeLayer(LayerNode aLN) |
Remove a layer node
|
void |
removeLayerByHandle(int handle) |
Remove a layer by handle
|
void |
removeLayersUpdatedListener(ILayersUpdatedListener lul) |
|
void |
removeLayoutBoundsChangedListener(ILayoutBoundsChangedListener listener) |
|
void |
removeMapViewUpdatedListener(IMapViewUpdatedListener listener) |
|
void |
removeMeteoLayers() |
Remove meteorological data layers
|
void |
removeNode(ItemNode aNode) |
Remove a node
|
void |
reOrderMapViewLayers() |
Reorder map view layers
|
void |
selectLayerByHandle(int handle) |
Select layer by handle
|
void |
setActive(boolean istrue) |
Set if is active
|
void |
setBackColor(Color color) |
Set map view background color
|
void |
setDrawGridLabel(boolean istrue) |
Set if draw grid label
|
void |
setDrawGridLine(boolean istrue) |
Set if draw grid line
|
void |
setDrawGridTickLine(boolean istrue) |
Set if draw grid tick line
|
void |
setDrawNeatLine(boolean istrue) |
Set if draw neat line
|
void |
setForeColor(Color color) |
Set map view foreground color
|
void |
setGridFont(Font font) |
Set grid label font
|
void |
setGridLabelPosition(String pos) |
Set grid label position
|
void |
setGridLabelPosition(GridLabelPosition pos) |
Set grid label position
|
void |
setGridLabelShift(int shift) |
Set grid label shift
|
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 delta) |
Set grid x delta
|
void |
setGridXOrigin(float value) |
Set grid x origin
|
void |
setGridYDelt(double value) |
Set grid y delta
|
void |
setGridYOrigin(float value) |
Set grid y origin
|
void |
setInsideTickLine(boolean istrue) |
Set if draw tick line inside of the border
|
void |
setLayoutBounds(Rectangle lb) |
Set layout bounds
|
void |
setLegend(LayersLegend legend) |
Set layers legend
|
void |
setMapFrameName(String name) |
Set map frame name
|
void |
setMapView(MapView mapView) |
Set map view
|
void |
setNeatLineColor(Color color) |
Set neat line color
|
void |
setNeatLineSize(float size) |
Set neat line size
|
void |
setNodes(List<ItemNode> nodes) |
Set nodes
|
void |
setOrder(int order) |
Set order
|
void |
setSelectedLayer(int handle) |
Set selected layer handle
|
void |
setTickLineLength(int len) |
Set tick line length
|
void |
unSelectNodes() |
Unselect all nodes
|
void |
updateLayerNode(int handle) |
Update layer node by handle
|
void |
updateLayerNode(MapLayer aLayer) |
Update layer node
|
void |
UpdateLayerNodeLegendScheme(int handle,
LegendScheme aLS) |
Update layer node legend scheme
|
collapse, expand, getHeight, getNodeType, getParentLegend, getText, getTop, isChecked, isExpanded, isSelected, setChecked, setHeight, setNodeType, setParentLegend, setSelected, setText, setToppublic MapFrame()
public MapFrame(LayersLegend legend)
legend - LayersLegendpublic void addLayersUpdatedListener(ILayersUpdatedListener lul)
lul - LayersUpdatedListener interfacepublic void removeLayersUpdatedListener(ILayersUpdatedListener lul)
public void fireLayersUpdatedEvent()
public void addMapViewUpdatedListener(IMapViewUpdatedListener listener)
public void removeMapViewUpdatedListener(IMapViewUpdatedListener listener)
public void fireMapViewUpdatedEvent()
public void addLayoutBoundsChangedListener(ILayoutBoundsChangedListener listener)
public void removeLayoutBoundsChangedListener(ILayoutBoundsChangedListener listener)
public void fireLayoutBoundsChangedEvent()
public MapView getMapView()
public void setMapView(MapView mapView)
mapView - The map viewpublic int getSelectedLayer()
public void setSelectedLayer(int handle)
handle - The selected layer handlepublic LayersLegend getLegend()
public void setLegend(LayersLegend legend)
legend - public boolean isActive()
public void setActive(boolean istrue)
istrue - Booleanpublic int getOrder()
public void setOrder(int order)
order - The orderpublic boolean isDrawNeatLine()
public void setDrawNeatLine(boolean istrue)
istrue - Booleanpublic Color getNeatLineColor()
public void setNeatLineColor(Color color)
color - The colorpublic float getNeatLineSize()
public void setNeatLineSize(float size)
size - The sizepublic boolean isDrawGridLabel()
public void setDrawGridLabel(boolean istrue)
istrue - Booleanpublic boolean isInsideTickLine()
public void setInsideTickLine(boolean istrue)
istrue - Booleanpublic int getTickLineLength()
public void setTickLineLength(int len)
len - The lengthpublic int getGridLabelShift()
public void setGridLabelShift(int shift)
shift - Shift valuepublic GridLabelPosition getGridLabelPosition()
public void setGridLabelPosition(GridLabelPosition pos)
pos - Grid label positionpublic void setGridLabelPosition(String pos)
pos - Grid label positionpublic Font getGridFont()
public void setGridFont(Font font)
font - The fontpublic String getMapFrameName()
public void setMapFrameName(String name)
name - The namepublic Color getBackColor()
getBackColor 在类中 ItemNodepublic void setBackColor(Color color)
setBackColor 在类中 ItemNodecolor - The colorpublic Color getForeColor()
getForeColor 在类中 ItemNodepublic void setForeColor(Color color)
setForeColor 在类中 ItemNodecolor - The colorpublic Color getGridLineColor()
public void setGridLineColor(Color color)
color - Grid line colorpublic float getGridLineSize()
public void setGridLineSize(float size)
size - Grid line sizepublic LineStyles getGridLineStyle()
public void setGridLineStyle(LineStyles style)
style - Grid line stylepublic boolean isDrawGridLine()
public void setDrawGridLine(boolean istrue)
istrue - Booleanpublic boolean isDrawGridTickLine()
public void setDrawGridTickLine(boolean istrue)
istrue - Booleanpublic double getGridXDelt()
public void setGridXDelt(double delta)
delta - Grid x deltapublic double getGridYDelt()
public void setGridYDelt(double value)
value - Grid y deltapublic float getGridXOrigin()
public void setGridXOrigin(float value)
value - Grid x originpublic float getGridYOrigin()
public void setGridYOrigin(float value)
value - Grid y originpublic Rectangle getLayoutBounds()
public void setLayoutBounds(Rectangle lb)
lb - Layout boundspublic int addGroup(GroupNode aGroup)
aGroup - The group nodepublic int addNewGroup(String name)
name - Group namepublic void removeGroup(GroupNode aGroup)
aGroup - The group nodepublic int addLayer(MapLayer aLayer)
aLayer - The layerpublic int addLayer(int index,
MapLayer layer)
index - The indexlayer - The layerpublic int addWindLayer(VectorLayer aLayer, boolean earthWind)
aLayer - Wind layerearthWind - If wind relative to earthpublic int addLayer(MapLayer aLayer, int groupHandle)
aLayer - The layergroupHandle - The group handlepublic int insertPolygonLayer(MapLayer aLayer)
aLayer - Polygon layerpublic int insertPolylineLayer(VectorLayer aLayer)
aLayer - Polyline layerpublic int insertImageLayer(MapLayer aLayer)
aLayer - Image layerpublic void moveLayer(int handle,
int lNewIdx)
handle - Layer handlelNewIdx - Move to indexpublic void moveLayer(MapLayer layer, int lNewIdx)
layer - The layerlNewIdx - Move to indexpublic void moveLayerNode(int lPreIdx,
int lNewIdx)
lPreIdx - Previous indexlNewIdx - New indexpublic int addLayerNode(LayerNode aLN)
aLN - The layer nodepublic int addLayerNode(LayerNode aLN, GroupNode aGN)
aLN - a layer nodeaGN - The group nodepublic int addLayerNode(int index,
LayerNode aLN)
index - The indexaLN - A layer nodepublic int addLayerNode(int index,
LayerNode aLN,
GroupNode aGN)
index - The indexaLN - The layer nodeaGN - The group nodepublic void addGroupNode(GroupNode aGN)
aGN - The group nodepublic void addGroupNode(int index,
GroupNode aGN)
index - The indexaGN - The group nodepublic void addNode(ItemNode aNode)
aNode - The nodepublic void addNode(int idx,
ItemNode aNode)
idx - The indexaNode - The nodepublic void removeNode(ItemNode aNode)
aNode - The nodepublic void removeLayer(int lIdx)
lIdx - The layer indexpublic void removeLayerByHandle(int handle)
handle - The layer handlepublic void removeLayer(MapLayer aLayer)
aLayer - The layerpublic void removeLayer(LayerNode aLN)
aLN - The layer nodepublic void removeMeteoLayers()
public void removeAllLayers()
public GroupNode getGroupByHandle(int handle)
handle - The hanlepublic GroupNode getGroupByName(String name)
name - The node namepublic void selectLayerByHandle(int handle)
handle - Layer handlepublic void unSelectNodes()
public LayerNode getLayerNodeByHandle(int handle)
handle - The layer handlepublic LayerNode getLayerNodeByName(String lName)
lName - The layer namepublic void updateLayerNode(MapLayer aLayer)
aLayer - The layerpublic void updateLayerNode(int handle)
handle - The layer handlepublic void UpdateLayerNodeLegendScheme(int handle,
LegendScheme aLS)
handle - The layer handleaLS - The legend schemepublic void reOrderMapViewLayers()
public int getExpandedHeight()
ItemNodegetExpandedHeight 在类中 ItemNodepublic int getDrawHeight()
ItemNodegetDrawHeight 在类中 ItemNodepublic void exportProjectXML(Document m_Doc, Element parent, String projectFilePath)
m_Doc - XML documentparent - parent XML elementprojectFilePath - Project file pathCopyright © 2019. All rights reserved.