Package org.locationtech.udig.mapgraphic.internal

Examples of org.locationtech.udig.mapgraphic.internal.MapGraphicResource$MapGraphicResourceInfo


*/
public class ResolversFactory implements IResolveAdapterFactory {

    public <T> T adapt( IResolve resolve, Class<T> adapter,
            IProgressMonitor monitor ) throws IOException {
        MapGraphicResource resource = (MapGraphicResource) resolve;
        if( canResolveToRectangle(adapter, resource)){
            // this is the null style.  It says to place it in the
            // bottom left at the optimal size
            Rectangle rectangle = new Rectangle(-LocationStyleContent.XPAD_RIGHT,-LocationStyleContent.YPAD_BOTTOM,0,0);
            return adapter.cast(rectangle);
View Full Code Here


        }
        return null;
    }

    public boolean canAdapt( IResolve resolve, Class< ? extends Object> adapter ) {
        MapGraphicResource resource = (MapGraphicResource) resolve;
       
        return canResolveToRectangle(adapter, resource);
    }
View Full Code Here

    private BoxPart owner;
    private MapGraphicResource graphic;

    public Command getCommand() {
        final MapGraphicResource newGraphic = graphic;
        graphic = null;
        final MapGraphicBoxPrinter boxPrinter = getBoxPrinter();
        final MapGraphicResource old = boxPrinter.getMapGraphic();
       
        return new Command(){
            @Override
            public void execute() {
                boxPrinter.setMapGraphic(newGraphic);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.mapgraphic.internal.MapGraphicResource$MapGraphicResourceInfo

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.