public enum DxfVersion extends java.lang.Enum<DxfVersion> implements java.lang.Comparable<DxfVersion>
In general, these reflect DXF files generated from AutoCAD. They are used (in a very limited fashion) during reading of DXF files. They are used more extensively during writing, since the available features, and to some extent, file structure is heavily dependent on which version of the spec is being used.
You can use #compareTo(DxfVersion) to compare versions based on the
release timeline. For example, AUTOCAD_2000 is greater than AUTOCAD_R12. This
allows you to make decisions about features only used or available starting
with a specific version.
Copyright 2006 Partner Software, Inc.
| Enum Constant and Description |
|---|
AUTOCAD_2000
DXF and drawing database version used by AutoCAD 2000.
|
AUTOCAD_2007
DXF and drawing database version used by AutoCAD 2007.
|
AUTOCAD_R10
DXF and drawing database version used by AutoCAD Release 10.
|
AUTOCAD_R12
DXF and drawing database version used by AutoCAD Release 11 and 12.
|
AUTOCAD_R13
DXF and drawing database version used by AutoCAD Release 13.
|
AUTOCAD_R14
DXF and drawing database version used by AutoCAD Release 14.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
A human-oriented name for the version.
|
java.lang.String |
getNumber()
The version number as specified in the $ACADVER variable in the DXF file.
|
boolean |
isAtLeast(DxfVersion nother)
Returns true if this version is the same as, or later than, the given
version.
|
java.lang.String |
toString() |
static DxfVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DxfVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
DxfVersion |
versionForName(java.lang.String name)
Returns the correct DxfVersion based on the given version name.
|
DxfVersion |
versionForNumber(java.lang.String number)
Returns the correct DxfVersion based on the given version number.
|
public static final DxfVersion AUTOCAD_R10
public static final DxfVersion AUTOCAD_R12
public static final DxfVersion AUTOCAD_R13
public static final DxfVersion AUTOCAD_R14
public static final DxfVersion AUTOCAD_2000
public static final DxfVersion AUTOCAD_2007
public static DxfVersion[] values()
for (DxfVersion c : DxfVersion.values()) System.out.println(c);
public static DxfVersion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic DxfVersion versionForNumber(java.lang.String number)
public DxfVersion versionForName(java.lang.String name)
public boolean isAtLeast(DxfVersion nother)
public java.lang.String getName()
public java.lang.String getNumber()
public java.lang.String toString()
toString in class java.lang.Enum<DxfVersion>