📄 silcomp.java
字号:
*/ public static void setPowerWireWidth(double wid) { cachePowerWireWidth.setDouble(wid); } /** * Method to return the width of the power and ground arc, by default. * @return the width of the power and ground arc, by default. */ public static double getFactoryPowerWireWidth() { return cachePowerWireWidth.getDoubleFactoryValue(); } private static Pref cacheMainPowerWireWidth = Pref.makeDoublePref("MainPowerWireWidth", tool.prefs, 8); /** * Method to return the width of the main power and ground arc. * The default is 8. * @return the width of the main power and ground arc. */ public static double getMainPowerWireWidth() { return cacheMainPowerWireWidth.getDouble(); } /** * Method to set the width of the main power and ground arc. * @param wid the new width of the main power and ground arc. */ public static void setMainPowerWireWidth(double wid) { cacheMainPowerWireWidth.setDouble(wid); } /** * Method to return the width of the main power and ground arc, by default. * @return the width of the main power and ground arc, by default. */ public static double getFactoryMainPowerWireWidth() { return cacheMainPowerWireWidth.getDoubleFactoryValue(); } private static Pref cacheMainPowerArc = Pref.makeStringPref("MainPowerArc", tool.prefs, "Horizontal Arc"); /** * Method to return the main power and ground arc. * The default is "Horizontal Arc". * @return the name of the main power and ground arc. */ public static String getMainPowerArc() { return cacheMainPowerArc.getString(); } /** * Method to set the main power and ground arc. * @param arcName name of new main power and ground arc. */ public static void setMainPowerArc(String arcName) { cacheMainPowerArc.setString(arcName); } /** * Method to return the main power and ground arc, by default. * @return the name of the main power and ground arc, by default. */ public static String getFactoryMainPowerArc() { return cacheMainPowerArc.getStringFactoryValue(); } private static Pref cachePWellHeight = Pref.makeDoublePref("PWellHeight", tool.prefs, 41); /** * Method to return the height of the p-well. * The default is 41. * @return the height of the p-well. */ public static double getPWellHeight() { return cachePWellHeight.getDouble(); } /** * Method to set the height of the p-well. * @param hei the new height of the p-well. */ public static void setPWellHeight(double hei) { cachePWellHeight.setDouble(hei); } /** * Method to return the height of the p-well, by default. * @return the height of the p-well, by default. */ public static double getFactoryPWellHeight() { return cachePWellHeight.getDoubleFactoryValue(); } private static Pref cachePWellOffset = Pref.makeDoublePref("PWellOffset", tool.prefs, 0); /** * Method to return the offset of the p-well. * The default is 0. * @return the offset of the p-well. */ public static double getPWellOffset() { return cachePWellOffset.getDouble(); } /** * Method to set the offset of the p-well. * @param off the new offset of the p-well. */ public static void setPWellOffset(double off) { cachePWellOffset.setDouble(off); } /** * Method to return the offset of the p-well, by default. * @return the offset of the p-well, by default. */ public static double getFactoryPWellOffset() { return cachePWellOffset.getDoubleFactoryValue(); } private static Pref cacheNWellHeight = Pref.makeDoublePref("NWellHeight", tool.prefs, 51); /** * Method to return the height of the n-well. * The default is 51. * @return the height of the n-well. */ public static double getNWellHeight() { return cacheNWellHeight.getDouble(); } /** * Method to set the height of the n-well. * @param hei the new height of the n-well. */ public static void setNWellHeight(double hei) { cacheNWellHeight.setDouble(hei); } /** * Method to return the height of the n-well, by default. * @return the height of the n-well, by default. */ public static double getFactoryNWellHeight() { return cacheNWellHeight.getDoubleFactoryValue(); } private static Pref cacheNWellOffset = Pref.makeDoublePref("NWellOffset", tool.prefs, 0); /** * Method to return the offset of the n-well. * The default is 0. * @return the offset of the n-well. */ public static double getNWellOffset() { return cacheNWellOffset.getDouble(); } /** * Method to set the offset of the n-well. * @param off the new offset of the n-well. */ public static void setNWellOffset(double off) { cacheNWellOffset.setDouble(off); } /** * Method to return the offset of the n-well, by default. * @return the offset of the n-well, by default. */ public static double getFactoryNWellOffset() { return cacheNWellOffset.getDoubleFactoryValue(); } private static Pref cacheViaSize = Pref.makeDoublePref("ViaSize", tool.prefs, 4); /** * Method to return the size of vias. * The default is 4. * @return the size of vias. */ public static double getViaSize() { return cacheViaSize.getDouble(); } /** * Method to set the size of vias. * @param off the new size of vias. */ public static void setViaSize(double off) { cacheViaSize.setDouble(off); } /** * Method to return the size of vias, by default. * @return the size of vias, by default. */ public static double getFactoryViaSize() { return cacheViaSize.getDoubleFactoryValue(); } private static Pref cacheMinMetalSpacing = Pref.makeDoublePref("MinMetalSpacing", tool.prefs, 6); /** * Method to return the minimum metal spacing. * The default is 6. * @return the minimum metal spacing. */ public static double getMinMetalSpacing() { return cacheMinMetalSpacing.getDouble(); } /** * Method to set the minimum metal spacing. * @param off the new minimum metal spacing. */ public static void setMinMetalSpacing(double off) { cacheMinMetalSpacing.setDouble(off); } /** * Method to return the minimum metal spacing, by default. * @return the minimum metal spacing, by default. */ public static double getFactoryMinMetalSpacing() { return cacheMinMetalSpacing.getDoubleFactoryValue(); } private static Pref cacheFeedThruSize = Pref.makeDoublePref("FeedThruSize", tool.prefs, 16); /** * Method to return the size of feed-throughs. * The default is 16. * @return the size of feed-throughs. */ public static double getFeedThruSize() { return cacheFeedThruSize.getDouble(); } /** * Method to set the size of feed-throughs. * @param off the new size of feed-throughs. */ public static void setFeedThruSize(double off) { cacheFeedThruSize.setDouble(off); } /** * Method to return the size of feed-throughs, by default. * @return the size of feed-throughs, by default. */ public static double getFactoryFeedThruSize() { return cacheFeedThruSize.getDoubleFactoryValue(); } private static Pref cacheMinPortDistance = Pref.makeDoublePref("MinPortDistance", tool.prefs, 8); /** * Method to return the minimum port distance. * The default is 8. * @return the minimum port distance. */ public static double getMinPortDistance() { return cacheMinPortDistance.getDouble(); } /** * Method to set the minimum port distance. * @param off the new minimum port distance. */ public static void setMinPortDistance(double off) { cacheMinPortDistance.setDouble(off); } /** * Method to return the minimum port distance, by default. * @return the minimum port distance, by default. */ public static double getFactoryMinPortDistance() { return cacheMinPortDistance.getDoubleFactoryValue(); } private static Pref cacheMinActiveDistance = Pref.makeDoublePref("MinActiveDistance", tool.prefs, 8); /** * Method to return the minimum active distance. * The default is 8. * @return the minimum active distance. */ public static double getMinActiveDistance() { return cacheMinActiveDistance.getDouble(); } /** * Method to set the minimum active distance. * @param off the new minimum active distance. */ public static void setMinActiveDistance(double off) { cacheMinActiveDistance.setDouble(off); } /** * Method to return the minimum active distance, by default. * @return the minimum active distance, by default. */ public static double getFactoryMinActiveDistance() { return cacheMinActiveDistance.getDoubleFactoryValue(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -