public abstract class DXFEntity
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
block |
protected int |
color |
protected byte[] |
colorRGB |
protected DXFDocument |
doc |
protected DXFExtrusion |
extrusion |
protected int |
flags |
protected java.lang.String |
id |
protected java.lang.String |
layerID |
protected java.lang.String |
lineType |
protected double |
linetypeScaleFactor |
protected int |
lineWeight |
protected boolean |
modelSpace
From the DXF Specs default all entities are in model space.
|
protected double |
thickness |
protected double |
transparency |
protected boolean |
visibile |
| Constructor and Description |
|---|
DXFEntity() |
| Modifier and Type | Method and Description |
|---|---|
abstract Bounds |
getBounds() |
int |
getColor() |
byte[] |
getColorRGB() |
DXFDocument |
getDXFDocument() |
DXFExtrusion |
getExtrusion() |
int |
getFlags() |
java.lang.String |
getID() |
java.lang.String |
getLayerName()
Gives the name of the layer, which containts the entity.
|
abstract double |
getLength()
Returns the length of the entity or 0 if the entity has no length
|
java.lang.String |
getLineType() |
double |
getLinetypeScaleFactor() |
int |
getLineWeight() |
double |
getThickness()
The thickness reflects the height of the entity.
|
double |
getTransparency() |
abstract java.lang.String |
getType() |
boolean |
isBlockEntity() |
boolean |
isModelSpace() |
boolean |
isOmitLineType() |
boolean |
isVisibile() |
void |
setBlockEntity(boolean b) |
void |
setColor(int color) |
void |
setColorRGB(byte[] colorRGB) |
void |
setDXFDocument(DXFDocument doc) |
void |
setExtrusion(DXFExtrusion extrusion) |
void |
setExtrusionX(double x) |
void |
setExtrusionY(double y) |
void |
setExtrusionZ(double z) |
void |
setFlags(int flags) |
void |
setID(java.lang.String id) |
void |
setLayerName(java.lang.String id)
Set the name of the layer, which containts the entity.
|
void |
setLineType(java.lang.String lineType) |
void |
setLinetypeScaleFactor(double linetypeScaleFactor) |
void |
setLineWeight(int lineWeight) |
void |
setModelSpace(boolean modelSpace) |
void |
setThickness(double thickness) |
void |
setTransparency(double transparency) |
void |
setVisibile(boolean visibile) |
protected DXFDocument doc
protected java.lang.String id
protected java.lang.String layerID
protected boolean visibile
protected java.lang.String lineType
protected int flags
protected boolean block
protected double linetypeScaleFactor
protected int color
protected byte[] colorRGB
protected int lineWeight
protected double transparency
protected double thickness
protected DXFExtrusion extrusion
protected boolean modelSpace
public void setDXFDocument(DXFDocument doc)
public DXFDocument getDXFDocument()
public java.lang.String getLayerName()
public void setLayerName(java.lang.String id)
public abstract Bounds getBounds()
public java.lang.String getLineType()
public void setLineType(java.lang.String lineType)
lineType - The lineType to set.public boolean isVisibile()
public void setVisibile(boolean visibile)
visibile - The visibile to set.public int getFlags()
public void setFlags(int flags)
flags - The flags to set.public void setBlockEntity(boolean b)
public boolean isBlockEntity()
public void setExtrusion(DXFExtrusion extrusion)
public DXFExtrusion getExtrusion()
public double getLinetypeScaleFactor()
public void setLinetypeScaleFactor(double linetypeScaleFactor)
public int getColor()
public void setColor(int color)
public byte[] getColorRGB()
public void setColorRGB(byte[] colorRGB)
public int getLineWeight()
public void setLineWeight(int lineWeight)
public double getTransparency()
public void setTransparency(double transparency)
public void setID(java.lang.String id)
public java.lang.String getID()
public void setExtrusionX(double x)
public void setExtrusionY(double y)
public void setExtrusionZ(double z)
public abstract java.lang.String getType()
public double getThickness()
public void setThickness(double thickness)
thickness - The thickness /height of the entity to set.public boolean isOmitLineType()
public boolean isModelSpace()
public void setModelSpace(boolean modelSpace)
modelSpace - The modelSpace to set.public abstract double getLength()