Revision 3513 branches/FMap_CAD/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FGraphicUtilities.java
FGraphicUtilities.java | ||
---|---|---|
46 | 46 |
*/ |
47 | 47 |
package com.iver.cit.gvsig.fmap.core.v02; |
48 | 48 |
|
49 |
import java.awt.Color; |
|
50 |
import java.awt.Font; |
|
51 |
import java.awt.FontMetrics; |
|
52 |
import java.awt.Graphics2D; |
|
53 |
import java.awt.Rectangle; |
|
54 |
import java.awt.geom.AffineTransform; |
|
55 |
import java.awt.geom.Point2D; |
|
56 |
|
|
57 |
import org.apache.batik.ext.awt.geom.PathLength; |
|
58 |
|
|
49 | 59 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
50 | 60 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
51 | 61 |
import com.iver.cit.gvsig.fmap.core.FPolyline2D; |
... | ... | |
54 | 64 |
|
55 | 65 |
import com.vividsolutions.jts.geom.Coordinate; |
56 | 66 |
import com.vividsolutions.jts.geom.CoordinateArrays; |
67 |
import com.iver.cit.gvsig.fmap.core.Handler; |
|
57 | 68 |
import com.vividsolutions.jts.geom.Geometry; |
58 | 69 |
import com.vividsolutions.jts.geom.GeometryFactory; |
59 | 70 |
import com.vividsolutions.jts.geom.Point; |
... | ... | |
251 | 262 |
|
252 | 263 |
case FShape.LINE: |
253 | 264 |
case FShape.LINE + FShape.Z: |
265 |
case FShape.ARC: |
|
266 |
case FShape.ARC + FShape.Z: |
|
267 |
case FShape.ELLIPSE: |
|
268 |
case FShape.ELLIPSE + FShape.Z: |
|
269 |
case FShape.CIRCLE: |
|
270 |
case FShape.CIRCLE + FShape.Z: |
|
254 | 271 |
// Shape theShp = mT.createTransformedShape(shp.m_Polyline); |
255 | 272 |
// g2.setColor(theSymbol.m_Color); |
256 | 273 |
if (theSymbol.getStroke() != null) { |
... | ... | |
666 | 683 |
} // del switch estilo |
667 | 684 |
} |
668 | 685 |
|
686 |
public static void DrawHandlers(Graphics2D g, AffineTransform at, |
|
687 |
Handler[] handlers) { |
|
688 |
|
|
689 |
for (int i = 0; i < handlers.length; i++) { |
|
690 |
Point2D point = handlers[i].getPoint(); |
|
691 |
at.transform(point, point); |
|
692 |
g.setColor(Color.BLUE); |
|
693 |
g.fillRect((int) (point.getX() - 5), (int) (point.getY() - 5), 10, 10); |
|
694 |
g.setColor(Color.GRAY); |
|
695 |
g.drawRect((int) (point.getX() - 5), (int) (point.getY() - 5), 10, 10); |
|
696 |
} |
|
697 |
} |
|
698 |
|
|
669 | 699 |
} |
Also available in: Unified diff