Package org.codemap

Examples of org.codemap.Labeling


            int y = toMapCoords(each.y);
            org.eclipse.swt.graphics.Point extent = new org.eclipse.swt.graphics.Point(x, y);
            int fontsize = (points.get(each))/3;
            labels.add(new Label(x-20, y-60, extent, fontsize, each.getDocument(), new Location(each, 0, x, y)));
        }
        labeling = new Labeling(labels);
       
        MapInstance mapInstance = configuration.withSize(mapSize, new MapScheme<Double>() {
            @Override
            public Double forLocation(Point location) {
                // TODO fill in size
View Full Code Here


    public static final String ARIAL_NARROW = "Arial Narrow";

    @Override
    public void paintMap(MapValues map, GC gc) {
        Labeling labeling = map.labeling.getValue();
        if (labeling == null) return;
        paintLabels(labeling, gc);
    }
View Full Code Here

        GC gc = new GC(image);
        Iterable<Label> labels = makeLabels(monitor, gc, mapInstance, labelScheme);
        labels = new LayoutAlgorithm().layout(labels);
        gc.dispose();
        image.dispose();
        return new Labeling(labels);
    }
View Full Code Here

TOP

Related Classes of org.codemap.Labeling

Copyright © 2018 www.massapicom. 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.