forked from geodmms/xdgnjobs

?? ?
2008-06-09 bd210ee7438fd203c19d3e8080ea12b79fe56159
xdgnjobs/ximple-dgnio/src/main/java/com/ximple/io/dgn7/Element.java
@@ -21,22 +21,22 @@
 */
public class Element
{
    public static final int CONSTRUCTION_CLASS      = 0;
    public static final int CONSTRUCTION_CLASS = 0;
    public static final int CONSTRUCTION_RULE_CLASS = 0;
    public static final int DIMENSION_CLASS         = 0;
    public static final int LINEAR_PATTERNED_CLASS  = 0;
    public static final int MAX_ELEMENT_SIZE        = 0;
    public static final int MAX_VERTICES            = 100;
    public static final int PATTERN_AREA            = 0;
    public static final int DIMENSION_CLASS = 0;
    public static final int LINEAR_PATTERNED_CLASS = 0;
    public static final int MAX_ELEMENT_SIZE = 0;
    public static final int MAX_VERTICES = 100;
    public static final int PATTERN_AREA = 0;
    public static final int PATTERN_COMPONENT_CLASS = 0;
    public static final int PATTERN_CROSSHATCH      = 0;
    public static final int PATTERN_HATCH           = 0;
    public static final int PRIMARY_CLASS           = 0;
    public static final int PRIMARY_RULE_CLASS      = 0;
    public static final int PATTERN_CROSSHATCH = 0;
    public static final int PATTERN_HATCH = 0;
    public static final int PRIMARY_CLASS = 0;
    public static final int PRIMARY_RULE_CLASS = 0;
    protected short[]       raw;
    protected byte          attrOffset = 0;
    protected ByteBuffer    rawBuffer;
    protected short[] raw;
    protected byte attrOffset = 0;
    protected ByteBuffer rawBuffer;
    public Element(byte[] raw)
    {
@@ -67,7 +67,7 @@
        highCoorY = DgnUtility.convertFromDGN(highCoorY);
        return new Envelope(DgnUtility.converUnitToCoord(lowCoorX), DgnUtility.converUnitToCoord(highCoorX),
                            DgnUtility.converUnitToCoord(lowCoorY), DgnUtility.converUnitToCoord(highCoorY));
                DgnUtility.converUnitToCoord(lowCoorY), DgnUtility.converUnitToCoord(highCoorY));
    }
    public boolean isComponentElement()
@@ -143,7 +143,7 @@
    public List<UserAttributeData> getUserAttributeData()
    {
        short[] data;
        short   length, nextAttribute;
        short length, nextAttribute;
        if (raw[15] <= 0)
        {
@@ -169,7 +169,7 @@
            }
            nextAttribute = (short) (index + length + 1);
            data          = new short[length];
            data = new short[length];
            System.arraycopy(raw, index + 1, data, 0, length);
            if (data[0] == (short) 0x0020)
@@ -234,7 +234,7 @@
                buffer.get(dst, 4, dst.length - 4);
            } catch (BufferUnderflowException exception)
            {
                throw exception;
                throw exception;
            }
            ByteBuffer tmpBuffer = ByteBuffer.wrap(dst);
@@ -242,7 +242,7 @@
            tmpBuffer.position(0);
            tmpBuffer.putShort(signature);
            tmpBuffer.putShort((short) ((length / 2) - 2));
            /*
            ShortBuffer sbuffer = tmpBuffer.asShortBuffer();