|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.Tool
com.sun.electric.tool.io.IOTool
public class IOTool
This class manages reading files in different formats. The class is subclassed by the different file readers.
Field Summary | |
---|---|
static Variable.Key |
IO_TRUE_LIBRARY
Varible key for true library of fake cell. |
static Variable.Key |
POSTSCRIPT_EPS_SCALE
|
static Variable.Key |
POSTSCRIPT_FILEDATE
|
static Variable.Key |
POSTSCRIPT_FILENAME
|
Fields inherited from class com.sun.electric.tool.Tool |
---|
prefs |
Constructor Summary | |
---|---|
protected |
IOTool()
The constructor sets up the I/O tool. |
Method Summary | |
---|---|
static int |
getBackupRedundancy()
Method to tell what kind of redundancy to apply when writing library files. |
static Setting |
getCIFOutInstantiatesTopLevelSetting()
Returns Setting to tell whether CIF Output merges boxes into complex polygons. |
static Setting |
getCIFOutMergesBoxesSetting()
Returns Setting to tell whether CIF Output merges boxes into complex polygons. |
static Setting |
getCIFOutMimicsDisplaySetting()
Returns Setting to tell whether CIF Output mimics the display. |
static java.lang.String |
getCopyrightMessage()
Method to tell the copyright message that will be added to output decks. |
static Setting |
getCopyrightMessageSetting()
Returns project Setting to tell the copyright message that will be added to output decks. |
static int |
getDXFScale()
Method to tell the DXF scale. |
static Setting |
getDXFScaleSetting()
Returns project Settings to tell the DXF scale. |
static java.lang.String |
getEDIFAcceptedParameters()
Method to return a string with accepted parameter names. |
static java.lang.String |
getEDIFConfigurationFile()
Method to tell the configuration file to use. |
static double |
getEDIFInputScale()
Method to return the EDIF input scale. |
static int |
getGDSCellNameLenMax()
Get the maximum length (number of chars) for Cell names in the GDS output file |
static Setting |
getGDSCellNameLenMaxSetting()
Returns Setting to tell the maximum length (number of chars) for Cell names in the GDS output file |
static boolean |
getGDSConvertNCCExportsConnectedByParentPins()
True to convert pin names to name:name for pins that are specified in the NCC annotation, "exportsConnectedByParent". |
static int |
getGDSOutDefaultTextLayer()
Method to tell the default GDS layer to use for the text of Export pins. |
static Setting |
getGDSOutDefaultTextLayerSetting()
Returns Setting to tell the default GDS layer to use for the text of Export pins. |
static Setting |
getGDSOutMergesBoxesSetting()
Returns Setting to tell whether GDS Output merges boxes into complex polygons. |
static boolean |
getGDSOutputConvertsBracketsInExports()
Method to get the state of whether the GDS writer converts brackets to underscores in export names. |
static Setting |
getGDSOutputConvertsBracketsInExportsSetting()
Returns Setting to tell the state of whether the GDS writer converts brackets to underscores in export names. |
static Setting |
getGDSOutUpperCaseSetting()
Returns Setting to tell whether GDS Output makes all text upper-case. |
static Setting |
getGDSOutWritesExportPinsSetting()
Returns Setting to tell whether GDS Output writes pins at Export locations. |
static IOTool |
getIOTool()
Method to retrieve the singleton associated with the IOTool tool. |
static int |
getPlotArea()
Method to tell the area of the screen to plot for printing/PostScript/HPGL. |
static int |
getPrintColorMethod()
Method to tell the color method of PostScript Output. |
static java.util.Date |
getPrintEPSSavedDate(Cell cell)
Method to tell the EPS synchronization file of a given Cell. |
static double |
getPrintEPSScale(Cell cell)
Method to tell the EPS scale of a given Cell. |
static java.lang.String |
getPrintEPSSynchronizeFile(Cell cell)
Method to tell the EPS synchronization file of a given Cell. |
static java.lang.String |
getPrinterName()
Method to tell the default printer name to use. |
static double |
getPrintHeight()
Method to tell the height of PostScript Output. |
static double |
getPrintMargin()
Method to tell the margin of PostScript Output. |
static double |
getPrintPSLineWidth()
Method to tell the width of PostScript lines. |
static int |
getPrintResolution()
Method to tell the default printing resolution. |
static int |
getPrintRotation()
Method to tell the rotation of PostScript Output. |
static double |
getPrintWidth()
Method to tell the width of PostScript Output. |
static Setting |
getUseCopyrightMessageSetting()
Returns project Setting to tell whether to add the copyright message to output decks. |
static boolean |
hasDais()
Method to tell whether Dais input is available. |
static boolean |
hasSkill()
Method to tell whether Skill output is available. |
protected void |
initProjectSettings()
Subclasses override this method to create ProjectSettings by Tool.makeXXXSetting methods declared below. |
static boolean |
isCIFInSquaresWires()
Method to tell whether CIF input makes wire ends square or round. |
static boolean |
isCIFOutInstantiatesTopLevel()
Method to tell whether CIF Output instantiates the top-level. |
static boolean |
isCIFOutMergesBoxes()
Method to tell whether CIF Output merges boxes into complex polygons. |
static boolean |
isCIFOutMimicsDisplay()
Method to tell whether CIF Output mimics the display. |
static boolean |
isDaisDisplayOnly()
Method to tell whether Dais Input creates real geometry. |
static boolean |
isDaisReadCellInstances()
Method to tell whether Dais Input creates real geometry. |
static boolean |
isDaisReadConnectivity()
Method to tell whether Dais Input reads connectivity. |
static boolean |
isDaisReadDetailWires()
Method to tell whether Dais Input creates real geometry. |
static boolean |
isDaisReadGlobalWires()
Method to tell whether Dais Input creates real geometry. |
static boolean |
isDaisReadPowerAndGround()
Method to tell whether Dais Input creates real geometry. |
static boolean |
isDEFLogicalPlacement()
Method to tell whether DEF Input makes logical placement. |
static boolean |
isDEFPhysicalPlacement()
Method to tell whether DEF Input makes physical placement. |
static boolean |
isDXFInputFlattensHierarchy()
Method to tell whether DXF Input flattens the hierarchy. |
static boolean |
isDXFInputReadsAllLayers()
Method to tell whether DXF input reads all layers. |
static boolean |
isEDIFCadenceCompatibility()
Method to tell whether EDIF I/O is compatible with Cadence. |
static boolean |
isEDIFUseSchematicView()
Method to tell whether EDIF uses the schematic view. |
static boolean |
isGDSColapseVddGndPinNames()
Method to tell whether Vdd_* and Gnd_* export pins must be colapsed. |
static boolean |
isGDSInExpandsCells()
Method to tell whether GDS Input expands cells. |
static boolean |
isGDSInIgnoresUnknownLayers()
Method to tell whether GDS Input ignores unknown layers The default is "false". |
static boolean |
isGDSInIncludesText()
Method to tell whether GDS Input ignores text. |
static boolean |
isGDSInInstantiatesArrays()
Method to tell whether GDS Input instantiates arrays. |
static boolean |
isGDSInMergesBoxes()
Method to tell whether GDS Input merges boxes into complex polygons. |
static boolean |
isGDSInSimplifyCells()
Method to tell whether GDS Input simplifies contact vias. |
static boolean |
isGDSOutMergesBoxes()
Method to tell whether GDS Output merges boxes into complex polygons. |
static boolean |
isGDSOutUpperCase()
Method to tell whether GDS Output makes all text upper-case. |
static boolean |
isGDSOutWritesExportPins()
Method to tell whether GDS Output writes pins at Export locations. |
static boolean |
isPlotDate()
Method to tell whether to plot the date in PostScript output. |
static boolean |
isPrintEncapsulated()
Method to tell whether PostScript Output is Encapsulated. |
static boolean |
isPrintForPlotter()
Method to tell whether PostScript Output is for a plotter. |
static boolean |
isSkillExcludesSubcells()
Method to tell whether Skill Output excludes subcells. |
static boolean |
isSkillFlattensHierarchy()
Method to tell whether Skill Output flattens the hierarchy. |
static boolean |
isSkillGDSNameLimit()
Method to tell whether Skill Output flattens the hierarchy. |
static boolean |
isSueConvertsExpressions()
Method to tell whether Sue input converts Sue expressions to Electric form. |
static boolean |
isSueUses4PortTransistors()
Method to tell whether Sue input creates 4-port transistors. |
static boolean |
isUseCopyrightMessage()
Method to tell whether to add the copyright message to output decks. |
static void |
readDais(java.net.URL url,
Library lib,
boolean newLib)
Method to invoke the Dais input module via reflection. |
static void |
setBackupRedundancy(int r)
Method to set the level of redundancy to apply when writing library files. |
static void |
setCIFInSquaresWires(boolean s)
Method to set whether CIF input makes wire ends square or round. |
static void |
setDaisDisplayOnly(boolean on)
Method to set whether Dais Input creates real geometry. |
static void |
setDaisReadCellInstances(boolean on)
Method to set whether Dais Input creates real geometry. |
static void |
setDaisReadConnectivity(boolean on)
Method to set whether Dais Input reads connectivity. |
static void |
setDaisReadDetailWires(boolean on)
Method to set whether Dais Input creates real geometry. |
static void |
setDaisReadGlobalWires(boolean on)
Method to set whether Dais Input creates real geometry. |
static void |
setDaisReadPowerAndGround(boolean on)
Method to set whether Dais Input creates real geometry. |
static void |
setDEFLogicalPlacement(boolean on)
Method to set whether DEF Input makes logical placement. |
static void |
setDEFPhysicalPlacement(boolean on)
Method to set whether DEF Input makes physical placement. |
static void |
setDXFInputFlattensHierarchy(boolean f)
Method to set whether DXF Input flattens the hierarchy. |
static void |
setDXFInputReadsAllLayers(boolean a)
Method to set whether DXF input reads all layers. |
static void |
setEDIFAcceptedParameters(java.lang.String ap)
Method to set a string with accepted parameter names. |
static void |
setEDIFCadenceCompatibility(boolean c)
Method to set whether EDIF I/O is compatible with Cadence. |
static void |
setEDIFConfigurationFile(java.lang.String cFile)
Method to set the configuration file to use. |
static void |
setEDIFInputScale(double f)
Method to set the EDIF input scale. |
static void |
setEDIFUseSchematicView(boolean f)
Method to set whether EDIF uses the schematic view. |
static void |
setGDSColapseVddGndPinNames(boolean on)
Method to set whether Vdd_* and Gnd_* export pins must be colapsed. |
static void |
setGDSConvertNCCExportsConnectedByParentPins(boolean b)
True to convert pin names to name:name for pins that are specified in the NCC annotation, "exportsConnectedByParent". |
static void |
setGDSInExpandsCells(boolean on)
Method to set whether GDS Input expands cells. |
static void |
setGDSInIgnoresUnknownLayers(boolean on)
Method to set whether GDS Input ignores unknown layers Unknown layers are replaced with "DRC exclusion" nodes if not ignored. |
static void |
setGDSInIncludesText(boolean on)
Method to set whether GDS Input ignores text. |
static void |
setGDSInInstantiatesArrays(boolean on)
Method to set whether GDS Input instantiates arrays. |
static void |
setGDSInMergesBoxes(boolean on)
Method to set whether GDS Input merges boxes into complex polygons. |
static void |
setGDSInSimplifyCells(boolean on)
Method to set whether GDS Input simplifies contact vias. |
static void |
setPlotArea(int pa)
Method to set the area of the screen to plot for printing/PostScript/HPGL. |
static void |
setPlotDate(boolean pd)
Method to set whether to plot the date in PostScript output. |
static void |
setPrintColorMethod(int cm)
Method to set the color method of PostScript Output. |
static void |
setPrintEncapsulated(boolean on)
Method to set whether PostScript Output is Encapsulated. |
static void |
setPrintEPSSavedDate(Cell cell,
java.util.Date date)
Method to set the EPS synchronization file of a given Cell. |
static void |
setPrintEPSScale(Cell cell,
double scale)
Method to set the EPS scale of a given Cell. |
static void |
setPrintEPSSynchronizeFile(Cell cell,
java.lang.String syncFile)
Method to set the EPS synchronization file of a given Cell. |
static void |
setPrinterName(java.lang.String pName)
Method to set the default printer name to use. |
static void |
setPrintForPlotter(boolean on)
Method to set whether PostScript Output is for a plotter. |
static void |
setPrintHeight(double hei)
Method to set the height of PostScript Output. |
static void |
setPrintMargin(double mar)
Method to set the margin of PostScript Output. |
static void |
setPrintPSLineWidth(double mar)
Method to set the width of PostScript lines. |
static void |
setPrintResolution(int r)
Method to set the default printing resolution. |
static void |
setPrintRotation(int rot)
Method to set the rotation of PostScript Output. |
static void |
setPrintWidth(double wid)
Method to set the width of PostScript Output. |
static void |
setSkillExcludesSubcells(boolean on)
Method to set whether Skill Output excludes subcells. |
static void |
setSkillFlattensHierarchy(boolean on)
Method to set whether Skill Output flattens the hierarchy. |
static void |
setSkillGDSNameLimit(boolean on)
Method to set whether Skill Output flattens the hierarchy. |
static void |
setSueConvertsExpressions(boolean on)
Method to set whether Sue input converts Sue expressions to Electric form. |
static void |
setSueUses4PortTransistors(boolean on)
Method to set whether Sue input creates 4-port transistors. |
static void |
writeSkill(Cell cell,
java.lang.String fileName,
boolean exportsOnly)
Method to invoke the Skill output module via reflection. |
Methods inherited from class com.sun.electric.tool.Tool |
---|
clearAnalysis, clearBackground, clearFixErrors, clearIncremental, clearOn, clearSynthesis, compareTo, findTool, getIndex, getListeners, getName, getNumTools, getProjectSettings, getTools, init, initAllTools, isAnalysis, isBackground, isFixErrors, isIncremental, isOn, isSynthesis, makeBooleanSetting, makeDoubleSetting, makeIntSetting, makeLongSetting, makeStringSetting, setAnalysis, setBackground, setFixErrors, setIncremental, setOn, setSynthesis, setVarInJob, testAll, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Variable.Key IO_TRUE_LIBRARY
public static final Variable.Key POSTSCRIPT_EPS_SCALE
public static final Variable.Key POSTSCRIPT_FILENAME
public static final Variable.Key POSTSCRIPT_FILEDATE
Constructor Detail |
---|
protected IOTool()
Method Detail |
---|
public static IOTool getIOTool()
public static boolean hasSkill()
public static void writeSkill(Cell cell, java.lang.String fileName, boolean exportsOnly)
cell
- the Cell to write in Skill.fileName
- the name of the file to write.public static boolean hasDais()
public static void readDais(java.net.URL url, Library lib, boolean newLib)
lib
- the Library to read.protected void initProjectSettings()
Tool
initProjectSettings
in class Tool
public static int getBackupRedundancy()
public static void setBackupRedundancy(int r)
r
- the level of redundancy to apply when writing library files.public static boolean isUseCopyrightMessage()
public static Setting getUseCopyrightMessageSetting()
public static java.lang.String getCopyrightMessage()
public static Setting getCopyrightMessageSetting()
public static int getPlotArea()
public static void setPlotArea(int pa)
pa
- the area of the screen to plot for printing/PostScript/HPGL.
0=plot the entire cell;
1=plot only the highlighted area;
2=plot only the displayed window.public static boolean isPlotDate()
public static void setPlotDate(boolean pd)
pd
- true to plot the date in PostScript output.public static java.lang.String getPrinterName()
public static void setPrinterName(java.lang.String pName)
pName
- the default printer name to use.public static boolean isCIFOutMimicsDisplay()
public static Setting getCIFOutMimicsDisplaySetting()
public static boolean isCIFOutMergesBoxes()
public static Setting getCIFOutMergesBoxesSetting()
public static boolean isCIFOutInstantiatesTopLevel()
public static Setting getCIFOutInstantiatesTopLevelSetting()
public static boolean isCIFInSquaresWires()
public static void setCIFInSquaresWires(boolean s)
s
- true if CIF input makes wire ends square.public static boolean isDEFLogicalPlacement()
public static void setDEFLogicalPlacement(boolean on)
on
- true if DEF Input makes logical placement.public static boolean isDEFPhysicalPlacement()
public static void setDEFPhysicalPlacement(boolean on)
on
- true if DEF Input makes physical placement.public static boolean isGDSOutMergesBoxes()
public static Setting getGDSOutMergesBoxesSetting()
public static boolean isGDSOutWritesExportPins()
public static Setting getGDSOutWritesExportPinsSetting()
public static boolean isGDSOutUpperCase()
public static Setting getGDSOutUpperCaseSetting()
public static int getGDSOutDefaultTextLayer()
public static Setting getGDSOutDefaultTextLayerSetting()
public static boolean getGDSOutputConvertsBracketsInExports()
public static Setting getGDSOutputConvertsBracketsInExportsSetting()
public static int getGDSCellNameLenMax()
public static Setting getGDSCellNameLenMaxSetting()
public static boolean isGDSInMergesBoxes()
public static void setGDSInMergesBoxes(boolean on)
on
- true if GDS Input merges boxes into complex polygons.public static boolean isGDSInIncludesText()
public static void setGDSInIncludesText(boolean on)
on
- true if GDS Input ignores text.public static boolean isGDSInExpandsCells()
public static void setGDSInExpandsCells(boolean on)
on
- true if GDS Input expands cells.public static boolean isGDSInInstantiatesArrays()
public static void setGDSInInstantiatesArrays(boolean on)
on
- true if GDS Input instantiates arrays.public static boolean isGDSInIgnoresUnknownLayers()
public static void setGDSInIgnoresUnknownLayers(boolean on)
on
- true if GDS Input ignores unknown layerspublic static boolean getGDSConvertNCCExportsConnectedByParentPins()
public static void setGDSConvertNCCExportsConnectedByParentPins(boolean b)
public static boolean isGDSInSimplifyCells()
public static void setGDSInSimplifyCells(boolean on)
on
- true if GDS Input simplifies contact vias.public static boolean isGDSColapseVddGndPinNames()
public static void setGDSColapseVddGndPinNames(boolean on)
on
- true if GDS Input colapses vdd/gnd names.public static boolean isPrintEncapsulated()
public static void setPrintEncapsulated(boolean on)
on
- true if PostScript Output is Encapsulated.public static int getPrintResolution()
public static void setPrintResolution(int r)
r
- the default printing resolution.public static boolean isPrintForPlotter()
public static void setPrintForPlotter(boolean on)
on
- true if PostScript Output is for a plotter.public static double getPrintWidth()
public static void setPrintWidth(double wid)
wid
- the width of PostScript Output.public static double getPrintHeight()
public static void setPrintHeight(double hei)
hei
- the height of PostScript Output.public static double getPrintMargin()
public static void setPrintMargin(double mar)
mar
- the margin of PostScript Output.public static int getPrintRotation()
public static void setPrintRotation(int rot)
rot
- the rotation of PostScript Output.
0=no rotation;
1=rotate 90 degrees;
2=rotate automatically to fit best.public static int getPrintColorMethod()
public static void setPrintColorMethod(int cm)
cm
- the color method of PostScript Output.
0=Black & White;
1=Color (solid);
2=Color (stippled);
3=Color (merged).public static double getPrintEPSScale(Cell cell)
cell
- the cell to query.
public static void setPrintEPSScale(Cell cell, double scale)
cell
- the cell to modify.scale
- the EPS scale of that Cell.public static java.lang.String getPrintEPSSynchronizeFile(Cell cell)
cell
- the cell to query.
public static void setPrintEPSSynchronizeFile(Cell cell, java.lang.String syncFile)
cell
- the cell to modify.syncFile
- the EPS synchronization file to associate with that Cell.public static java.util.Date getPrintEPSSavedDate(Cell cell)
cell
- the cell to query.
public static void setPrintEPSSavedDate(Cell cell, java.util.Date date)
cell
- the cell to modify.date
- the EPS synchronization date to associate with that Cell.public static double getPrintPSLineWidth()
public static void setPrintPSLineWidth(double mar)
mar
- the width of PostScript lines.public static boolean isEDIFUseSchematicView()
public static void setEDIFUseSchematicView(boolean f)
f
- true if EDIF uses the schematic view.public static boolean isEDIFCadenceCompatibility()
public static void setEDIFCadenceCompatibility(boolean c)
c
- true if EDIF I/O is compatible with Cadence.public static double getEDIFInputScale()
public static void setEDIFInputScale(double f)
f
- the EDIF input scale.public static java.lang.String getEDIFConfigurationFile()
public static void setEDIFConfigurationFile(java.lang.String cFile)
cFile
- the configuration file to use.public static java.lang.String getEDIFAcceptedParameters()
public static void setEDIFAcceptedParameters(java.lang.String ap)
ap
- the accepted parameter names.public static int getDXFScale()
public static Setting getDXFScaleSetting()
public static boolean isDXFInputFlattensHierarchy()
public static void setDXFInputFlattensHierarchy(boolean f)
f
- true if DXF Input flattens the hierarchy.public static boolean isDXFInputReadsAllLayers()
public static void setDXFInputReadsAllLayers(boolean a)
a
- true if DXF input reads all layers.public static boolean isSueUses4PortTransistors()
public static void setSueUses4PortTransistors(boolean on)
on
- true if Sue input creates 4-port transistors.public static boolean isSueConvertsExpressions()
public static void setSueConvertsExpressions(boolean on)
on
- true if Sue input converts Sue expressions to Electric form.public static boolean isSkillExcludesSubcells()
public static void setSkillExcludesSubcells(boolean on)
on
- true if Skill Output excludes subcells.public static boolean isSkillFlattensHierarchy()
public static void setSkillFlattensHierarchy(boolean on)
on
- true if Skill Output flattens the hierarchy.public static boolean isSkillGDSNameLimit()
public static void setSkillGDSNameLimit(boolean on)
on
- true if Skill Output flattens the hierarchy.public static boolean isDaisDisplayOnly()
public static void setDaisDisplayOnly(boolean on)
on
- true if Dais Input creates real geometry.public static boolean isDaisReadCellInstances()
public static void setDaisReadCellInstances(boolean on)
on
- true if Dais Input creates real geometry.public static boolean isDaisReadDetailWires()
public static void setDaisReadDetailWires(boolean on)
on
- true if Dais Input creates real geometry.public static boolean isDaisReadGlobalWires()
public static void setDaisReadGlobalWires(boolean on)
on
- true if Dais Input creates real geometry.public static boolean isDaisReadPowerAndGround()
public static void setDaisReadPowerAndGround(boolean on)
on
- true if Dais Input creates real geometry.public static boolean isDaisReadConnectivity()
public static void setDaisReadConnectivity(boolean on)
on
- true if Dais Input reads connectivity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |