public class DirEntry extends java.lang.Object
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
DirEntry()
Default constructor.
|
DirEntry(DirEntry de)
Copy constructor.
|
DirEntry(int type,
int form,
int DEnum,
int matrix,
java.lang.String label)
Create a DirEntry from the specified information.
|
Modifier and Type | Method and Description |
---|---|
int |
getColor()
Return color of this entity.
|
int |
getDENum()
Return Directory Entry number for this entity.
|
int |
getFont()
Return line font of this entity.
|
int |
getForm()
Return entity form.
|
java.lang.String |
getLabel()
Return the label for this entity.
|
int |
getLblDsp()
Return label display pointer of this entity.
|
int |
getLevel()
Return level of this entity.
|
int |
getMatrix()
Return matrix pointer of this entity.
|
int |
getPDCnt()
Return Parameter Data line count for this entity.
|
int |
getPDNum()
Return Parameter Data number for this entity.
|
java.lang.String |
getStatus()
Return status field of this entity.
|
int |
getType()
Return entity type.
|
int |
getView()
Return view pointer of this entity.
|
int |
getWeight()
Return line weight of this entity.
|
boolean |
read(java.io.RandomAccessFile in)
Read the Directory Entry from a file.
|
void |
setPDNumber(int PDnum,
int PDcnt)
Set the first line of parameter data record for the entity as well as number of
lines in parameter data record for this entity.
|
java.lang.String |
toString()
Dump to String.
|
void |
write(java.io.PrintWriter writer)
Write this directory entry out to the exchanged file.
|
public DirEntry()
public DirEntry(int type, int form, int DEnum, int matrix, java.lang.String label)
type
- The entity type code.form
- The entity type form code or 0 for the default.DEnum
- The line count from the start of the Directory Entry Section for this
entry (odd number).matrix
- An Entity124 DE number or 0.label
- A label for this parameter or null
or "" for none.public boolean read(java.io.RandomAccessFile in) throws java.io.IOException
in
- input filejava.io.IOException
- if there is any problem reading the directory entry file.public void write(java.io.PrintWriter writer) throws java.io.IOException
writer
- The PrintWriter to write the directory entry to.java.io.IOException
- if there is any problem writing the entry.public int getType()
public int getForm()
public int getPDCnt()
public int getDENum()
public int getPDNum()
public int getColor()
public int getFont()
public int getWeight()
public int getLevel()
public int getView()
public int getMatrix()
public java.lang.String getStatus()
public int getLblDsp()
public java.lang.String getLabel()
public void setPDNumber(int PDnum, int PDcnt)
PDnum
- The first line of parameter data record for the entity.PDcnt
- The number of lines in the parameter data for this entity.public java.lang.String toString()
toString
in class java.lang.Object