Revision 35619 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/DefaultCADTool.java
DefaultCADTool.java | ||
---|---|---|
711 | 711 |
// TODO Auto-generated method stub |
712 | 712 |
|
713 | 713 |
} |
714 |
|
|
715 |
/** |
|
716 |
* Create a curve. If there is an |
|
717 |
* error return <code>null</code> and add the error |
|
718 |
* to the log |
|
719 |
* @return |
|
720 |
* The Curve |
|
721 |
*/ |
|
722 |
protected Curve createCurve(){ |
|
723 |
try { |
|
724 |
return (Curve)geomManager.create(TYPES.CURVE, getSubType()); |
|
725 |
} catch (org.gvsig.fmap.geom.exception.CreateGeometryException e) { |
|
726 |
LOG.error("Error creating curve", new CreateGeometryException( |
|
727 |
TYPES.CURVE, getSubType(), e)); |
|
728 |
} |
|
729 |
return null; |
|
730 |
} |
|
714 | 731 |
|
715 | 732 |
/** |
716 | 733 |
* Create a curve from a GeneralPath. If there is an |
... | ... | |
734 | 751 |
} |
735 | 752 |
|
736 | 753 |
/** |
754 |
* Create a surface. If there is an |
|
755 |
* error return <code>null</code> and add the error |
|
756 |
* to the log |
|
757 |
* @return |
|
758 |
* The Surface |
|
759 |
*/ |
|
760 |
protected Surface createSurface(){ |
|
761 |
try { |
|
762 |
return (Surface)geomManager.create(TYPES.SURFACE, getSubType()); |
|
763 |
|
|
764 |
} catch (org.gvsig.fmap.geom.exception.CreateGeometryException e) { |
|
765 |
LOG.error("Error creating surface", new CreateGeometryException( |
|
766 |
TYPES.SURFACE, getSubType(), |
|
767 |
e)); |
|
768 |
} |
|
769 |
return null; |
|
770 |
} |
|
771 |
|
|
772 |
/** |
|
737 | 773 |
* Create a surface from a GeneralPath. If there is an |
738 | 774 |
* error return <code>null</code> and add the error |
739 | 775 |
* to the log |
Also available in: Unified diff