|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.dxf.DxfConfigurableStructure
public class DxfConfigurableStructure
A configurable DxfStructure implementation. This allows you to represent DxfStructure types that are not reified with their own classes, or to analyze a DXF file independently of those class implementations.
Instead of having concrete properties that are parsed from groups, the only property this pulls from the groups provided is the structure type name. The groups themselves are simply stored.
Copyright 2006 Partner Software, Inc.
| Constructor Summary | |
|---|---|
DxfConfigurableStructure()
|
|
DxfConfigurableStructure(java.util.List<DxfGroup> groups)
|
|
| Method Summary | |
|---|---|
DxfGroup |
findGroup(int code)
|
java.util.List<DxfGroup> |
getGroups(DxfVersion version)
Get the internal state as DXFGroups. |
java.lang.String |
getType()
The type name of this structure. |
void |
setGroups(java.util.List<DxfGroup> groups)
Set the internal state based on the given groups. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DxfConfigurableStructure()
public DxfConfigurableStructure(java.util.List<DxfGroup> groups)
| Method Detail |
|---|
public java.lang.String getType()
DxfStructure
\/**
* Type name of this structure. Always returns "POINT".
* \@return "POINT"
*\/
public String getType() {
return "POINT";
}
getType in interface DxfStructurepublic void setGroups(java.util.List<DxfGroup> groups)
DxfStructure
setGroups in interface DxfStructuregroups - list of groups containing data for this structurepublic java.util.List<DxfGroup> getGroups(DxfVersion version)
DxfStructure
getGroups in interface DxfStructurepublic java.lang.String toString()
toString in class java.lang.Objectpublic DxfGroup findGroup(int code)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||