org.cresques.px.dxf
Class DxfLine

java.lang.Object
  extended byorg.cresques.px.PxObj
      extended byorg.cresques.px.dxf.DxfEntity
          extended byorg.cresques.px.dxf.DxfLine
All Implemented Interfaces:
Drawable, Extent.Has, Projected

public class DxfLine
extends DxfEntity

Entidad LINE de un fichero DXF.

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

Field Summary
 
Fields inherited from class org.cresques.px.PxObj
extent, stroke
 
Constructor Summary
DxfLine(IProjection proj, DxfLayer layer, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
          Constructor de DxfLine.
 
Method Summary
 java.awt.Color c()
          Devuelve el color de la DxfLine.
 java.awt.Color c(java.awt.Color color)
          Establece el color de la DxfLine.
 void draw(java.awt.Graphics2D g, ViewPortData vp)
          Permite dibujar una DxfLine.
 java.awt.geom.Point2D[] getPts()
          Devuelve el array de puntos que conforman el DxfLine.
 void reProject(ICoordTrans rp)
          Permite reproyectar una DxfLine dado un conjunto de coordenadas de transformación.
 java.lang.String toDxfString()
          Permite la escritura de entidades DxfLine en un fichero DXF2000.
 
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

DxfLine

public DxfLine(IProjection proj,
               DxfLayer layer,
               java.awt.geom.Point2D p1,
               java.awt.geom.Point2D p2)
Constructor de DxfLine.

Method Detail

c

public java.awt.Color c()
Devuelve el color de la DxfLine.

Returns:
Color

c

public java.awt.Color c(java.awt.Color color)
Establece el color de la DxfLine.

Parameters:
color -
Returns:
Color

reProject

public void reProject(ICoordTrans rp)
Permite reproyectar una DxfLine dado un conjunto de coordenadas de transformación.

Specified by:
reProject in interface Projected
Specified by:
reProject in class DxfEntity

draw

public void draw(java.awt.Graphics2D g,
                 ViewPortData vp)
Permite dibujar una DxfLine.


toDxfString

public java.lang.String toDxfString()
Permite la escritura de entidades DxfLine en un fichero DXF2000.

Specified by:
toDxfString in class DxfEntity
Returns:
String, la cadena que se escribirá en el fichero con la información de la DxfLine.

getPts

public java.awt.geom.Point2D[] getPts()
Devuelve el array de puntos que conforman el DxfLine.

Returns:
Point2D[], puntos del DxfLine.