Examples of AWTGraphics


Examples of org.locationtech.udig.ui.graphics.AWTGraphics

     *
     * @param graphics
     * @return Wrapper allowing system to draw onto j2d images
     */
    public static ViewportGraphics createGraphics( Graphics2D graphics ) {
        return new AWTGraphics(graphics);
    }
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.AWTGraphics

        listenService(true);
       
        // initialise the graphics handle
        ViewportGraphics graphic = context.getGraphics();
        if (graphic instanceof AWTGraphics) {
            AWTGraphics awtG = (AWTGraphics) graphic;
            Graphics2D g2D = awtG.g;
            // setting rendering hints
            @SuppressWarnings("unchecked")
            RenderingHints hints = new RenderingHints(Collections.EMPTY_MAP);
            hints.add(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.AWTGraphics

     *
     * @param graphics
     * @return Wrapper allowing system to draw onto j2d images
     */
    public static ViewportGraphics createGraphics( Graphics2D graphics ){
        return new AWTGraphics(graphics);
    }
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.AWTGraphics

        context.getLayer().setStatus(ILayer.WORKING);

        // initialize the graphics handle
        ViewportGraphics g = context.getGraphics();
        if (g instanceof AWTGraphics) {
            AWTGraphics awtG = (AWTGraphics) g;
            Graphics2D g2D = awtG.g;
            // setting rendering hints
            @SuppressWarnings("unchecked")
            RenderingHints hints = new RenderingHints(Collections.EMPTY_MAP);
            hints.add(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.AWTGraphics

        super();
        setGeoResourceInternal(context.getGeoResource());
        setLayerInternal((Layer) context.getLayer());
        setRenderManagerInternal((RenderManager) context.getRenderManager());
        setMapInternal((Map) context.getMap());
        vpg = new AWTGraphics(destination, context.getMapDisplay().getDPI());
       
        //add listener if doesn't already exist for layer
        IViewportModelListener listener = (IViewportModelListener)context.getLayer().getBlackboard().get(BLACKBOARD_LAYER_KEY);
        if (listener == null){
            listener = new IViewportModelListener(){
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.AWTGraphics

        context.getLayer().setStatus(ILayer.WORKING);

        // initialize the graphics handle
        ViewportGraphics g = context.getGraphics();
        if (g instanceof AWTGraphics) {
            AWTGraphics awtG = (AWTGraphics) g;
            Graphics2D g2D = awtG.g;
            // setting rendering hints
            RenderingHints hints = new RenderingHints(Collections.EMPTY_MAP);
            hints.add(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
            g2D.addRenderingHints(hints);
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.AWTGraphics

    private void drawOnOffScreenBuffer() {

        Graphics2D graphics = buffer.createGraphics();
//        graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        ViewportGraphics vg = new AWTGraphics(graphics);
        do {
            int minWidth = Math.min(buffer.getWidth(), getWidth());
            int minHeight = Math.min(buffer.getHeight(), getHeight());
            validateVolitileImage();
            painter.paint(vg, vImage, minWidth, minHeight);
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.