Java 8 NoninvertibleTransformException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 NoninvertibleTransformException class.

This code example shows how to use the following methods:getMessage
        try { 
            createWorldFile(map.getViewportModel().worldToScreenTransform().createInverse(), baseFile);
        } catch (TransformException e) {
            throw (IOException)new IOException(e.getMessage()).initCause(e);
        } catch (NoninvertibleTransformException e) {
            throw (IOException)new IOException(e.getMessage()).initCause(e);
        } 
        createProjectionFile(baseFile, map.getViewportModel().getCRS());
    } 
     
 
    /** 
     * This method is responsible for creating a projection file using the WKT 
     * representation of this coverage's coordinate reference system. We can 
     * reuse this file in order to rebuild later the crs. 
     *  
     *  
     * @param baseFile 
     * @param coordinateReferenceSystem 
     * @throws IOException 
5
CodeRank
This code example shows how to use the following methods:getLocalizedMessage
	 * a warning message and continue. 
	 */ 
	private static void exceptionOccured( 
			final NoninvertibleTransformException exception, final String method) {
		final LogRecord record = new LogRecord(Level.WARNING, exception
				.getLocalizedMessage());
		record.setSourceClassName(TransformedShape.class.getName());
		record.setSourceMethodName(method);
		record.setThrown(exception);
		org.geotools.util.logging.Logging.getLogger("org.geotools.renderer.lite").log(record);
	} 
} 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
     
    public PerspectiveTransform createInverse() { 
        try { 
            return perspectiveTransform.createInverse();
        } catch (NoninvertibleTransformException e) {
            e.printStackTrace();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        } 
        return null; 
    } 
 
    /** 
     * override base class transform to project the perspective effect 
     */ 
    @Override 
    public Point2D transform(Point2D graphPoint) {
        if(graphPoint == null) return null;
        Point2D p2 = super.transform(graphPoint);
        return perspectiveTransform.transform(p2, null);
4
CodeRank
This code example shows how to use the following methods:printStackTrace
    public AffineTransform getInverse() {
        if(inverse == null) {
            try { 
                inverse = transform.createInverse();
            } catch (NoninvertibleTransformException e) {
                e.printStackTrace();
            } 
        } 
        return inverse;
    } 
     
    /** 
     * getter for scalex 
     */ 
    public double getScaleX() { 
        return transform.getScaleX();   
    } 
     
    /** 
     * getter for scaley 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
                                                    useClip);
            try { 
                deviceToPageSpaceTransformation = deviceToPageSpaceTransformation.createInverse();
            } catch (NoninvertibleTransformException nte) {
                System.out.println("Error inverting page transform!");
                nte.printStackTrace();
            } 
             
            prevClip = useClip;
            prevSize = pageSize;
             
            repaint();
        } 
    } 
 
    /** 
     * Handles notification of the fact that some part of the image 
     * changed.  Repaints that portion. 
     * @return true if more updates are desired. 
     */ 
3
CodeRank
This code example shows how to use the following methods:printStackTrace
	AffineTransform transform = this.getTransform(layer);
	if (transform != null) {
	    try { 
		transform.inverseTransform(point, point);
	    } catch (NoninvertibleTransformException e) {
		e.printStackTrace();
	    } 
	} 
	return point;
    } 
 
    protected JXLayer<? extends V> getInstalledLayer() { 
	return installedLayer;
    } 
 
    /** 
     * Re-dispatches the event to the first component in the hierarchy that has 
     * a {@link MouseWheelListener} registered. 
     */ 
    @Override 
3
CodeRank
This code example shows how to use the following methods:printStackTrace
            Point2D inv = new Point2D.Double(x, y);
 
            try { 
                inv = transform.inverseTransform(inv, null);
            } catch (NoninvertibleTransformException e) {
                e.printStackTrace();
            } 
 
            x = (int)inv.getX();
            y = (int)inv.getY();
 
            switch (paintType) {
            default: 
            case BASIC:
            case LINEAR:
                // pick the closest point to move 
                if (inv.distance(startX, startY) < inv.distance(endX, endY)) {
                    startX = x;
                    startY = y;
                } else { 
3
CodeRank
This code example shows how to use the following methods:printStackTrace
This code example shows how to use the following methods:
This code example shows how to use the following methods:toString
        AffineTransform inverse;
        try { 
            inverse = current.createInverse();
        } 
        catch(NoninvertibleTransformException e) {
            throw new RuntimeException(e.toString());
        } 
        Dimension size = _target.getSize();
        Rectangle2D visibleRect = new Rectangle2D.Double(0, 0, 
                size.getWidth(), size.getHeight());
        return ShapeUtilities.transformBounds(visibleRect,
                inverse);
    } 
 
    /** 
     *  Set the position of the viewport associated with this panner 
     *  centered on the given position relative to the rendition shown in 
     *  the panner. 
     */ 
    public void setPosition(int x, int y) {
3
CodeRank
See Code Examples for Java 8 NoninvertibleTransformException Methods: