org.cresques.px.dxf
Class DxfPolyline

java.lang.Object
  extended byorg.cresques.px.PxObj
      extended byorg.cresques.px.dxf.DxfEntity
          extended byorg.cresques.px.dxf.DxfPolyline
All Implemented Interfaces:
Drawable, Extent.Has, Projected
Direct Known Subclasses:
DxfLwPolyline, DxfSpline

public class DxfPolyline
extends DxfEntity

Polilynea de autocad jmorell: Implementación extra de bulges necesaria para el piloto de CAD.

Author:
"Luis W. Sevilla" * @author administrador

Field Summary
 
Fields inherited from class org.cresques.px.PxObj
extent, stroke
 
Constructor Summary
DxfPolyline(IProjection proj, DxfLayer layer)
           
 
Method Summary
 void add(java.awt.geom.Point2D pt)
           
 void addBulge(java.lang.Double bulge)
          050301, jmorell: Solución provisional para implementar la lectura de polilíneas con arcos.
 void addFace(int[] face)
           
 java.awt.Color c()
           
 java.awt.Color c(java.awt.Color color)
           
static java.util.Vector createArc(java.awt.geom.Point2D coord1, java.awt.geom.Point2D coord2, double bulge)
           
 void draw(java.awt.Graphics2D g, ViewPortData vp)
           
 java.util.Vector getBulges()
           
 int getFlags()
           
 java.awt.geom.GeneralPath getGeneralPath(ViewPortData vp)
           
 java.util.Vector getPts()
           
 void reProject(ICoordTrans rp)
           
 void setBulges(java.util.Vector bulges)
           
 void setPts(java.util.Vector pts)
           
 java.lang.String toDxfString()
          Convierte a DXF.
 
Methods inherited from class org.cresques.px.dxf.DxfEntity
getColor, getHandle, getLayer, getLayerName, getProjection, setHandle, setProjection
 
Methods inherited from class org.cresques.px.PxObj
getExtent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DxfPolyline

public DxfPolyline(IProjection proj,
                   DxfLayer layer)
Method Detail

add

public void add(java.awt.geom.Point2D pt)

addBulge

public void addBulge(java.lang.Double bulge)
050301, jmorell: Solución provisional para implementar la lectura de polilíneas con arcos.


addFace

public void addFace(int[] face)

c

public java.awt.Color c()

c

public java.awt.Color c(java.awt.Color color)

reProject

public void reProject(ICoordTrans rp)
Specified by:
reProject in interface Projected
Specified by:
reProject in class DxfEntity

draw

public void draw(java.awt.Graphics2D g,
                 ViewPortData vp)

toDxfString

public java.lang.String toDxfString()
Convierte a DXF.

Specified by:
toDxfString in class DxfEntity
Returns:
Entity como String Dxf

getGeneralPath

public java.awt.geom.GeneralPath getGeneralPath(ViewPortData vp)
Returns:

getFlags

public int getFlags()

createArc

public static java.util.Vector createArc(java.awt.geom.Point2D coord1,
                                         java.awt.geom.Point2D coord2,
                                         double bulge)

getPts

public java.util.Vector getPts()
Returns:
Returns the pts.

setPts

public void setPts(java.util.Vector pts)
Parameters:
pts - The pts to set.

getBulges

public java.util.Vector getBulges()
Returns:
Returns the bulges.

setBulges

public void setBulges(java.util.Vector bulges)
Parameters:
bulges - The bulges to set.