|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.e00.E00Parser
public class E00Parser
A parser for an E00 file. Description of the Class parses an E00 file and provides as result an OMGraphicList containing up to 3 OMGraphicLists:
- arcs : OMPoly read in ARC records - labs : BasicLocations read in LAB records - tx7 : OMPolys and BasicLocation read in TX7 recordsPAl,LOG,SIN,PRJ,TOL records are ignored.
Field Summary | |
---|---|
protected java.awt.Paint[] |
ArcColors
|
protected OMGraphicList |
arcs
|
protected java.awt.Color |
defaultcolor
|
static java.awt.Color[] |
defaultColors
|
protected static com.bbn.openmap.layer.e00.E00Parser.E00Record |
infoRecord
|
protected java.io.BufferedReader |
isr
|
protected static com.bbn.openmap.layer.e00.E00Parser.E00Record |
itemRecord
|
protected java.awt.Paint[] |
LabColors
|
protected java.awt.Font |
labFont
|
protected OMGraphic |
LabMarker
|
protected OMGraphicList |
labs
|
protected java.awt.Paint |
LabTextColor
|
protected int |
narc
|
protected int |
npoint
|
protected java.lang.String |
prefix
|
protected java.awt.Paint |
SelectArcColor
|
protected java.awt.Paint |
SelectLabColor
|
protected java.awt.Paint |
SelectTX7Color
|
protected OMGraphicList |
tx7
|
protected java.awt.Paint |
tx7Color
|
protected java.awt.Font |
tx7Font
|
protected int |
unClosedCount
|
Constructor Summary | |
---|---|
E00Parser(java.io.File f)
Constructor for the E00Parser object |
|
E00Parser(java.lang.String mdname)
Constructor for the E00Parser object |
Method Summary | |
---|---|
OMGraphicList |
getArcList()
|
OMGraphicList |
getLabList()
|
OMGraphic |
getLabMarker()
Gets the LabMarker attribute of the E00Parser object |
OMGraphicList |
getOMGraphics()
Gets the result of the parse process |
OMGraphicList |
getTx7List()
|
void |
setFonts(java.awt.Font labFont,
java.awt.Font tx7Font)
Sets the Fonts attribute of the E00Parser object |
void |
setLabMarker(OMGraphic marker)
Sets the LabMarker attribute of the E00Parser object |
void |
setPaints(java.awt.Paint[] ArcColors,
java.awt.Paint[] LabColors,
java.awt.Paint tx7Color,
java.awt.Paint SelectTX7Color,
java.awt.Paint SelectLabColor,
java.awt.Paint SelectArcColor,
java.awt.Paint LabTextColor)
Sets the Colors attribute of the E00Parser object |
void |
setPrefix(java.lang.String S)
Sets the Prefix attribute of the E00Parser object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OMGraphicList labs
protected OMGraphicList arcs
protected OMGraphicList tx7
protected java.io.BufferedReader isr
protected java.lang.String prefix
protected int narc
protected int npoint
protected int unClosedCount
protected java.awt.Paint[] ArcColors
protected java.awt.Paint[] LabColors
protected java.awt.Paint tx7Color
protected java.awt.Paint SelectTX7Color
protected java.awt.Paint SelectLabColor
protected java.awt.Paint SelectArcColor
protected java.awt.Paint LabTextColor
protected java.awt.Font labFont
protected java.awt.Font tx7Font
protected OMGraphic LabMarker
protected java.awt.Color defaultcolor
public static final java.awt.Color[] defaultColors
protected static com.bbn.openmap.layer.e00.E00Parser.E00Record infoRecord
protected static com.bbn.openmap.layer.e00.E00Parser.E00Record itemRecord
Constructor Detail |
---|
public E00Parser(java.lang.String mdname) throws java.io.IOException
mdname
- File Name to parse
java.io.IOException
public E00Parser(java.io.File f) throws java.io.IOException
f
- File to parse
java.io.IOException
Method Detail |
---|
public void setPrefix(java.lang.String S)
S
- The new Prefix valuepublic void setPaints(java.awt.Paint[] ArcColors, java.awt.Paint[] LabColors, java.awt.Paint tx7Color, java.awt.Paint SelectTX7Color, java.awt.Paint SelectLabColor, java.awt.Paint SelectArcColor, java.awt.Paint LabTextColor)
ArcColors
- Paint array for arcsLabColors
- Paint array for labs markertx7Color
- Paint for tx7SelectTX7Color
- Paint for tx7 when selectedSelectLabColor
- Paint for labs when selected (not working ?)SelectArcColor
- Paint for arcs when selectedLabTextColor
- Paint for labs text . If null, text has same paint as
markerpublic void setFonts(java.awt.Font labFont, java.awt.Font tx7Font)
labFont
- font for labs texttx7Font
- font for tx7 textpublic void setLabMarker(OMGraphic marker)
marker
- The new LabMarker valuepublic OMGraphicList getOMGraphics() throws java.io.IOException
java.io.IOException
public OMGraphic getLabMarker()
public OMGraphicList getArcList()
public OMGraphicList getLabList()
public OMGraphicList getTx7List()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |