com.sun.electric.tool.io.output
Class JELIB
java.lang.Object
com.sun.electric.tool.io.output.Output
com.sun.electric.tool.io.output.JELIB
- Direct Known Subclasses:
- DELIB
public class JELIB
- extends Output
Class to write a library to disk in new Electric-Library format.
Method Summary |
static java.lang.String |
describeDescriptor(Variable var,
TextDescriptor td,
boolean isParam)
Method to convert a variable to a string that describes its TextDescriptor |
protected boolean |
writeLib(Snapshot snapshot,
LibId libId,
java.util.Map<LibId,java.net.URL> libFiles,
boolean oldRevision)
Method to write a Library in Electric Library (.jelib) format. |
Methods inherited from class com.sun.electric.tool.io.output.Output |
closeBinaryOutputStream, closeStringsOutputStream, closeTextOutputStream, emitCopyright, exportCellCommand, finishWrite, getAreaToPrint, getNumErrors, getNumWarnings, getOutputPreferences, openBinaryOutputStream, openStringsOutputStream, openTextOutputStream, reportError, reportWarning, saveJelib, setContinuationString, setOutputWidth, writeCell, writeLibrary, writeLibrary, writePanicSnapshot, writeWidthLimited |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeLib
protected boolean writeLib(Snapshot snapshot,
LibId libId,
java.util.Map<LibId,java.net.URL> libFiles,
boolean oldRevision)
- Method to write a Library in Electric Library (.jelib) format.
- Parameters:
snapshot
- snapshot of the LibrarylibId
- Id of the Library to be written.libFiles
- new locations of lib filesoldRevision
- true to write library in format prior to "8.04l".
- Returns:
- true on error.
describeDescriptor
public static java.lang.String describeDescriptor(Variable var,
TextDescriptor td,
boolean isParam)
- Method to convert a variable to a string that describes its TextDescriptor
- Parameters:
var
- the Variable being described (may be null).td
- the TextDescriptor being described.isParam
- true to output parameter bit
- Returns:
- a String describing the variable/textdescriptor.
The string has these fields:
Asize; for absolute size
B if bold
Cindex; if color index
Dx for display position (2=bottom 8=top 4=left 6=right 7=upleft 9=upright 1=downleft 3=downright 5=centered 0=boxed)
FfontName; if a nonstandard font
Gsize; for relative (grid unit) size
H if inherit
I if italic
L if underline
N if name=value;
Ol for language (J=Java L=Lisp T=TCL)
P if parameter
R/RR/RRR if rotated (90, 180, 270)
T if interior
Ux for units (R=resistance C=capacitance I=inductance A=current V=voltage D=distance T=time)
Xoffset; for X offset
Yoffset; for Y offset