Examples of MapViewer


Examples of _api.alienfactory.javamappy.viewer.MapViewer

            System.err.println("SUPER ERROR: MAP CANNOT LOAD.");
            fnfe.printStackTrace();
          }
        map = MapLoader.loadMap(mapStream);
        r = new J2SE14Renderer(map);
        mapViewer = new MapViewer(map, r, BaseVars.MAPHEIGHT, BaseVars.MAPWIDTH);

        //NAME THE LAYERS
        currentMapMain = mapViewer.getLayerViewers()[0];
        currentMapMainNPCs = mapViewer.getLayerViewers()[1];
        //SET INITIAL POSITIONS
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapViewer

  @Override
  public final void createPartControl(Composite parent) {
    editDomain = new MapEditDomain(null);
    try {
      IProgressMonitor monitor = getViewSite().getActionBars().getStatusLineManager().getProgressMonitor();
      viewer = new MapViewer(parent, SWT.DOUBLE_BUFFERED);
      List<IGeoResource> resources = new ArrayList<IGeoResource>();
      createResources(resources, monitor);
      IProject activeProject = ApplicationGIS.getActiveProject();

      CreateMapCommand command = new CreateMapCommand("NewMap",resources , activeProject);
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapViewer

    public void createPartControl( Composite parent ) {
        FillLayout fillLayout = new FillLayout();
        fillLayout.type = SWT.VERTICAL;
        parent.setLayout(fillLayout);
        // mapviewer = new MapViewer(parent, SWT.NO_BACKGROUND | SWT.DOUBLE_BUFFERED | SWT.MULTI);
        mapviewer = new MapViewer(parent, SWT.SINGLE | SWT.DOUBLE_BUFFERED);

        // create a new empty map
        // if you are going to add layers do so now
        // prior to adding to the mapviewer
        //
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapViewer

   
    private IDrawCommand rectDrawCommand = null;
   
   
    public OverviewMapViewer( Composite parent, int style, Map mainMap) {
        mapviewer = new MapViewer(parent, style);
        this.mainmap = mainMap;       
    }
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapViewer

        final IPreferenceStore preferenceStore = ProjectPlugin.getPlugin().getPreferenceStore();
        boolean istiled = preferenceStore
                .getBoolean(org.locationtech.udig.project.preferences.PreferenceConstants.P_TILED_RENDERING);

        if (!istiled) {
            viewer = new MapViewer(composite, SWT.DOUBLE_BUFFERED);
        } else {
            viewer = new MapViewer(composite, SWT.MULTI | SWT.NO_BACKGROUND);
        }
        // allow the viewer to open our context menu; work with our selection proivder etc
        viewer.init(this);
        // if a map was provided as input we can ask the viewer to use it
        Map input = (Map) ((UDIGEditorInput) getEditorInput()).getProjectElement();
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapViewer

        overviewmapviewer.getControl().setLayoutData(fd);

        // create map
      editDomain = new MapEditDomain(null);

        mapviewer = new MapViewer(parent, SWT.MULTI | SWT.NO_BACKGROUND);
        mapviewer.setMap(mainmap);
        fd = new FormData();
        fd.left = new FormAttachment(0);
        fd.top = new FormAttachment(0);
        fd.right = new FormAttachment(100);
View Full Code Here

Examples of org.locationtech.udig.project.ui.viewers.MapViewer

        final IPreferenceStore preferenceStore = ProjectPlugin.getPlugin().getPreferenceStore();
        boolean istiled = preferenceStore
                .getBoolean(org.locationtech.udig.project.preferences.PreferenceConstants.P_TILED_RENDERING);

        if (!istiled) {
            viewer = new MapViewer(composite, SWT.DOUBLE_BUFFERED);
        } else {
            viewer = new MapViewer(composite, SWT.MULTI | SWT.NO_BACKGROUND);
        }
        // we need an edit domain for GEF
        // This represents the "Current Tool" for the Palette
        // We should not duplicate the idea of current tools so we may
        // need to delegate to getEditDomain; and just use the MapEditTool *id*
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.