Examples of GPoint


Examples of com.volantis.mcs.googlemaps.GPoint

           
            double longitude = mapAttributes.getLongitude();

            GoogleCalculator calc = GoogleCalculatorExtended.getInstance();
            GLatLng gLatLng = new GLatLng(latitude, longitude);
            GPoint gPoint = calc.fromLatLngToPixel(gLatLng,
                    GoogleCalculator.INITIAL_ZOOM);
            GImage gImage = calc.fromGPixelToGImage(gPoint);
            initialLocation.append(", longitude: ").append(longitude)
                    .append(", latitude: ").append(latitude)
                    .append(", initialLocation: ")
View Full Code Here

Examples of com.volantis.mcs.googlemaps.GPoint

        String src = attr.getSrc();
        int minZoom = attr.getMinZoom();
        int maxZoom = attr.getMaxZoom();
       
        GoogleCalculator calc = GoogleCalculatorExtended.getInstance();
        GPoint gPoint = calc.fromLatLngToPixel(new GLatLng(lat, lng), 0);
        GImage gImage = calc.fromGPixelToGImage(gPoint);
       
        StringBuffer textBuffer = new StringBuffer();
       
        textBuffer.append(
View Full Code Here

Examples of org.antlr.works.visualization.graphics.primitive.GPoint

    public void setState(FAState state) {
        this.state = state;
    }

    public void setPosition(GPoint position) {
        this.position = new GPoint(position);
    }
View Full Code Here

Examples of org.antlr.works.visualization.graphics.primitive.GPoint

    public void setSource(GNode source) {
        this.source = source;
    }

    public void setVirtualPosition(GPoint position) {
        this.virtualPosition = new GPoint(position);
    }
View Full Code Here

Examples of org.antlr.works.visualization.graphics.primitive.GPoint

        graph.setNodes((ArrayList<GNode>)((ArrayList)graphicNodes).clone());
        return graph;
    }

    public void renderPosition(FAState state) {
        recursiveRenderPositionNode(state, null, new GPoint());
    }
View Full Code Here

Examples of org.antlr.works.visualization.graphics.primitive.GPoint

    public FAState recursiveRenderPositionAlternative(FAState state, GPoint basePoint) {
        FAState alternativeEndState = alternativeEndState(state);

        // This point is used to position each transition
        GPoint point = new GPoint(basePoint);
        point.addX(GContext.NODE_WIDTH+GContext.EPSILON_WIDTH);

        GDimension firstAlternativeDimension = null;

        for(int t=0; t<state.getNumberOfTransitions(); t++) {
            FATransition transition = state.transition(t);
            GLink link = getNode(state).getLink(transition);

            if(t == 0) {
                // We remember here the size of the first transition because if we find later
                // a "loop" transition, we will have to offset this "loop" by the size of the first
                // transition (because the "loop" is always drawed above the first transition).
                firstAlternativeDimension = link.branchDim;
            }

            if(t > 0 && !transition.loop) {
                // Offset the current point for each transition (except for a "loop" because it is
                // displayed above the first transition)
                point.addY(GContext.LINE_SPACE);
                point.addY(link.branchDim.up);
            }

            if(transition.target == alternativeEndState) {
                // The transition is simply a single transition (epsilon normally).
                if(transition.loop) {
                    // If this is a "loop", draw it above the first transition
                    GPoint vp = new GPoint(basePoint);
                    vp.subY(firstAlternativeDimension.up);
                    vp.subY(link.branchDim.down);

                    // The "virtual position" is used by the link to know where to display itself
                    // when it has to "curve" (because both start and end point are on the same y-axis value)
                    getNode(state).getLink(transition).setVirtualPosition(vp);
                } else {
                    getNode(state).getLink(transition).setVirtualPosition(point);
                    point.addY(link.branchDim.down);
                }
            } else {
                // The transition is more than a single transition, continue recursively...
                recursiveRenderPositionNode(transition.target, alternativeEndState, new GPoint(point));
                point.addY(link.branchDim.down);
            }
        }
        return alternativeEndState;
    }
View Full Code Here

Examples of wicket.contrib.gmap.api.GPoint

  private GOverlay createOverlay(String title, GLatLng latLng, String image, String shadow)
  {
    GIcon icon = new GIcon(urlFor(new PackageResourceReference(RefreshPointPage.class, image), null)
        .toString(), urlFor(new PackageResourceReference(RefreshPointPage.class, shadow), null)
        .toString()).iconSize(new GSize(64, 64)).shadowSize(new GSize(64, 64)).iconAnchor(
        new GPoint(19, 40)).infoWindowAnchor(new GPoint(9, 2)).infoShadowAnchor(
        new GPoint(18, 25));
    map.setCenter(latLng);
    return new GMarker(latLng, new GMarkerOptions(title, icon));
  }
View Full Code Here

Examples of wicket.contrib.gmap.api.GPoint

    add(map);

    GIcon icon = new GIcon(urlFor(new PackageResourceReference(CustomPointPage.class, "image.gif"), null)
        .toString(), urlFor(new PackageResourceReference(CustomPointPage.class, "shadow.png"), null)
        .toString()).iconSize(new GSize(64, 64)).shadowSize(new GSize(64, 64)).iconAnchor(
        new GPoint(19, 40)).infoWindowAnchor(new GPoint(9, 2)).infoShadowAnchor(
        new GPoint(18, 25));

    GOverlay marker = new GMarker(new GLatLng(52.37649, 4.888573), new GMarkerOptions(
        "My Title", icon));

    map.addOverlay(marker);
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.