org.cresques.px.dxf
Class DxfSolid

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

public class DxfSolid
extends DxfEntity

Entidad SOLID de un fichero DXF.

Author:
"Luis W. Sevilla" , jmorell

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

DxfSolid

public DxfSolid(IProjection proj,
                DxfLayer layer,
                java.awt.geom.Point2D[] pts)
Constructor de DxfSolid.

Method Detail

c

public java.awt.Color c()
Devuelve el color del DxfSolid.

Returns:
Color

c

public java.awt.Color c(java.awt.Color color)
Establece el color del DxfSolid.

Parameters:
color -
Returns:
Color

reProject

public void reProject(ICoordTrans rp)
Permite reproyectar un DxfSolid 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 un DxfSolid.


toDxfString

public java.lang.String toDxfString()
Description copied from class: DxfEntity
Permite la escritura de entidades 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 correspondiente entidad.

getPts

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

Returns:
Point2D[], puntos del DxfSolid.