|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.dxf.DxfEntity
com.partnersoft.formats.dxf.DxfAttrib
public class DxfAttrib
A DXF attrib entity.
| Field Summary | |
|---|---|
java.lang.String |
value
|
| Constructor Summary | |
|---|---|
DxfAttrib()
|
|
| Method Summary | |
|---|---|
double |
getAlignmentX()
Alignment point X, code 11, optional, default 0. |
double |
getAlignmentY()
Alignment point Y, code 21, optional, default 0. |
double |
getAlignmentZ()
Alignment point Z, code 31, optional, default 0. |
double |
getExtrusionX()
Extrusion direction X, group 210, optional, default 0. |
double |
getExtrusionY()
Extrusion direction Y, group 220, optional, default 0. |
double |
getExtrusionZ()
Extrusion direction Z, group 230, optional, default 1. |
int |
getFieldLength()
Field length, code 73, optional, default 0. |
java.util.List<DxfGroup> |
getGroups(DxfVersion version)
Get the internal state as DXFGroups. |
double |
getHeight()
Text height, code 40. |
DxfHorizontalJustification |
getHorizontalJustification()
Horizontal text justification; code 72, optional, default LEFT. |
double |
getObliqueAngle()
Oblique angle, code 51, optional, default 0. |
double |
getRotation()
Text rotation, code 50, optional, default 0. |
double |
getScaleX()
Relative X scale factor (width), code 41, optional, default 1. |
java.lang.String |
getStyle()
Text style name, code 7, optional, default STANDARD. |
java.lang.String |
getTag()
Attribute tag, code 2, no default. |
double |
getThickness()
Thickness, code 39, optional, default 0. |
java.lang.String |
getType()
The type name of this structure. |
java.lang.String |
getValue()
Default value, code 1. |
DxfVerticalJustification |
getVerticalJustification()
Vertical text justification, code 74, optional, default BASELINE. |
double |
getX()
Text start point X, code 10, required. |
double |
getY()
Text start point Y, code 20, required. |
double |
getZ()
Text start point Z, code 30, required. |
boolean |
isBackward()
If true, text is backward (mirrored in X). |
boolean |
isConstant()
True if this is a constant attribute. |
boolean |
isInvisible()
Attribute invisible. |
boolean |
isPositionLocked()
True if attribute's position is locked within the block reference. |
boolean |
isPreset()
True if attribute is preset (not prompted during insertion). |
boolean |
isUpsideDown()
If true, text is upside-down (mirrored in Y). |
boolean |
isVerificationRequired()
True if verification is required on input of this attribute. |
void |
setAlignmentX(double newX)
|
void |
setAlignmentY(double newY)
|
void |
setAlignmentZ(double newZ)
|
void |
setBackward(boolean isit)
|
void |
setConstant(boolean isit)
|
void |
setExtrusionX(double extrusionX)
|
void |
setExtrusionY(double extrusionY)
|
void |
setExtrusionZ(double extrusionZ)
|
void |
setFieldLength(int newLength)
|
void |
setGroups(java.util.List<DxfGroup> groups)
Set the internal state based on the given groups. |
void |
setHeight(double newHeight)
|
void |
setHorizontalJustification(DxfHorizontalJustification justice)
|
void |
setInvisible(boolean isit)
|
void |
setObliqueAngle(double newAngle)
|
void |
setPositionLocked(boolean tizit)
|
void |
setPresent(boolean isit)
|
void |
setRotation(double newRotation)
|
void |
setScaleX(double newScale)
|
void |
setStyle(java.lang.String newStyle)
|
void |
setTag(java.lang.String newTag)
|
void |
setThickness(double newThickness)
|
void |
setUpsideDown(boolean tizit)
|
void |
setValue(java.lang.String newValue)
|
void |
setVerificationRequired(boolean isit)
|
void |
setVerticalJustification(DxfVerticalJustification justice)
|
void |
setX(double newX)
|
void |
setY(double newY)
|
void |
setZ(double newZ)
|
java.lang.String |
toString()
|
| Methods inherited from class com.partnersoft.formats.dxf.DxfEntity |
|---|
getApplicationDefinedStructures, getColor, getColorName, getHandle, getLayer, getLinetype, getLinetypeScale, getLineWeight, getMaterial, getOwnerHandle, getPlotStyle, getProxyEntityGraphics, getRgbColor, getShadowMode, getTransparency, isPaperSpace, setApplicationDefinedStructures, setColor, setColorName, setHandle, setLayer, setLinetype, setLinetypeScale, setLineWeight, setMaterial, setOwnerHandle, setPaperSpace, setPlotStyle, setProxyEntityGraphics, setRgbColor, setShadowMode, setTransparency |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String value
| Constructor Detail |
|---|
public DxfAttrib()
| Method Detail |
|---|
public double getAlignmentX()
Present only if horizontalJustification (72) and/or verticalJustification (74) are present and non-default.
public double getAlignmentY()
Present only if horizontalJustification (72) and/or verticalJustification (74) are present and non-default.
public double getAlignmentZ()
Present only if horizontalJustification (72) and/or verticalJustification (74) are present and non-default.
public double getExtrusionX()
public double getExtrusionY()
public double getExtrusionZ()
public int getFieldLength()
2007 spec notes that this is not currently used.
public java.util.List<DxfGroup> getGroups(DxfVersion version)
DxfStructure
getGroups in interface DxfStructuregetGroups in class DxfEntitypublic double getHeight()
public DxfHorizontalJustification getHorizontalJustification()
public double getObliqueAngle()
public double getRotation()
public double getScaleX()
public java.lang.String getStyle()
public java.lang.String getTag()
public double getThickness()
public java.lang.String getType()
DxfStructure
\/**
* Type name of this structure. Always returns "POINT".
* \@return "POINT"
*\/
public String getType() {
return "POINT";
}
getType in interface DxfStructuregetType in class DxfEntitypublic java.lang.String getValue()
public DxfVerticalJustification getVerticalJustification()
public double getX()
public double getY()
public double getZ()
public boolean isBackward()
This is derived from bit 2 of group 71.
public boolean isConstant()
This is derived from bit 2 of the attribute flags (code 70).
public boolean isInvisible()
This is derived from bit 1 of the attribute flags (code 70).
isInvisible in class DxfEntitypublic boolean isPositionLocked()
This is code 280.
public boolean isPreset()
This is derived from bit 8 of the attribute tags (code 70).
public boolean isUpsideDown()
This is derived from bit 4 of group 71.
public boolean isVerificationRequired()
This is derived from bit 4 of the attribute flags (code 70).
public void setAlignmentX(double newX)
public void setAlignmentY(double newY)
public void setAlignmentZ(double newZ)
public void setBackward(boolean isit)
public void setConstant(boolean isit)
public void setExtrusionX(double extrusionX)
public void setExtrusionY(double extrusionY)
public void setExtrusionZ(double extrusionZ)
public void setFieldLength(int newLength)
public void setGroups(java.util.List<DxfGroup> groups)
DxfStructure
setGroups in interface DxfStructuresetGroups in class DxfEntitygroups - list of groups containing data for this structurepublic void setHeight(double newHeight)
public void setHorizontalJustification(DxfHorizontalJustification justice)
public void setInvisible(boolean isit)
setInvisible in class DxfEntitypublic void setObliqueAngle(double newAngle)
public void setPositionLocked(boolean tizit)
public void setPresent(boolean isit)
public void setRotation(double newRotation)
public void setScaleX(double newScale)
public void setStyle(java.lang.String newStyle)
public void setTag(java.lang.String newTag)
public void setThickness(double newThickness)
public void setUpsideDown(boolean tizit)
public void setValue(java.lang.String newValue)
public void setVerificationRequired(boolean isit)
public void setVerticalJustification(DxfVerticalJustification justice)
public void setX(double newX)
public void setY(double newY)
public void setZ(double newZ)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||