Mo-Java-2.1 learning-1

Source: Internet
Author: User

Map beans object: a set of components based on Java swing, which is usually used to add maps to Java 2 applications.ProgramOr in the GUI of the applet.

Including:

Beans: basic component that can be used to add the GIS function to a j2sdk application. All the mo visualization components work under the jfc framework. Then we can load the mo JAR file in the IDE, and then we can design the application in drag/drop mode.

Map: provides a visual way to display your space data. Each data type is displayed in a single layer. You usually use a layer source ). Layer is added to the layer set and then added to the map. The Map Display management tool allows you to display layers in the correct order of drawing. The setextent method of a map is the basic way to draw a map. All layers in the map layer set will respond and draw their own spatial data. Another way of drawing is the redraw method of the map. This method is simple to draw layers without changing the map area. If your application changes an attribute in the layer (for example, selected or currently selected), use the redraw method.

Table of contents: the treetoc (TOC component) provides a way to display ground layers. Each legend node corresponds to a layer, including a layer title and a check box. The display of the check box control layer is used. The legend node usually includes some information, such as color and selected level. Before using TOC, you must use the setmap method of the map to associate it to the map. You can click one or more legend nodes to highlight them. TOC has three actions to display the legend node. You can use the setlegendoutofscalebehaviour method to set the behavior. The default value is out_of_scale_legend_hide (when the associated layer does not comply with the specified scale, the legend node is invisible), and the other two are out_of_scale_legend_disable (when the associated layer does not comply with the specified scale, the legend node cannot operate) and out_of_scale_legend_do_nothing (when the associated layer does not comply with the specified scale, the legend node remains visible and operable ).

Acetatelayers:

Tools

Rubberbands

Toolbars

Querybuilder

Other query dialog boxes

Other dialog boxes

Pagelayout

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.