root / tags / v1_0_2_Build_916 / libraries / libDwg / src / com / iver / cit / jdwglib / dwg / DwgSectionOffset.java @ 12327
History | View | Annotate | Download (2.13 KB)
1 | 2896 | jmorell | /* jdwglib. Java Library for reading Dwg files.
|
---|---|---|---|
2 | *
|
||
3 | * Author: Jose Morell Rama (jose.morell@gmail.com).
|
||
4 | * Port from the Pythoncad Dwg library by Art Haas.
|
||
5 | *
|
||
6 | * Copyright (C) 2005 Jose Morell, IVER TI S.A. and Generalitat Valenciana
|
||
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU General Public License
|
||
10 | * as published by the Free Software Foundation; either version 2
|
||
11 | * of the License, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | *
|
||
18 | * You should have received a copy of the GNU General Public License
|
||
19 | * along with this program; if not, write to the Free Software
|
||
20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
21 | *
|
||
22 | * For more information, contact:
|
||
23 | *
|
||
24 | * Jose Morell (jose.morell@gmail.com)
|
||
25 | *
|
||
26 | * or
|
||
27 | *
|
||
28 | * IVER TI S.A.
|
||
29 | * C/Salamanca, 50
|
||
30 | * 46005 Valencia
|
||
31 | * Spain
|
||
32 | * +34 963163400
|
||
33 | * dac@iver.es
|
||
34 | */
|
||
35 | package com.iver.cit.jdwglib.dwg; |
||
36 | |||
37 | /**
|
||
38 | * The DwgSectionOffset class is useful to store the key of a DWG section with its seek
|
||
39 | * (or offset) and with its size
|
||
40 | *
|
||
41 | * @author jmorell
|
||
42 | */
|
||
43 | public class DwgSectionOffset { |
||
44 | private String key; |
||
45 | private int seek; |
||
46 | private int size; |
||
47 | |||
48 | /**
|
||
49 | * Creates a new DwgSectionOffset object
|
||
50 | *
|
||
51 | * @param key Section key
|
||
52 | * @param seek Seeker or offset in the DWG file for this section
|
||
53 | * @param size Size of this section
|
||
54 | */
|
||
55 | public DwgSectionOffset(String key, int seek, int size) { |
||
56 | this.key = key;
|
||
57 | this.seek = seek;
|
||
58 | this.size = size;
|
||
59 | } |
||
60 | /**
|
||
61 | * @return Returns the key.
|
||
62 | */
|
||
63 | public String getKey() { |
||
64 | return key;
|
||
65 | } |
||
66 | /**
|
||
67 | * @param key The key to set.
|
||
68 | */
|
||
69 | public void setKey(String key) { |
||
70 | this.key = key;
|
||
71 | } |
||
72 | /**
|
||
73 | * @return Returns the seek.
|
||
74 | */
|
||
75 | public int getSeek() { |
||
76 | return seek;
|
||
77 | } |
||
78 | /**
|
||
79 | * @param seek The seek to set.
|
||
80 | */
|
||
81 | public void setSeek(int seek) { |
||
82 | this.seek = seek;
|
||
83 | } |
||
84 | } |