📄 iotool.java
字号:
* <LI>5: FemtoMeters * </UL> * @return project Settings to tell the DXF scale. */ public static Setting getDXFScaleSetting() { return tool.cacheDXFScale; } private Setting cacheDXFScale; private void initDXFProjectSettings() { makeIntSetting("DXFScale", "DXF tab", "DXF scale factor", 2); } private static Pref cacheDXFInputFlattensHierarchy = Pref.makeBooleanPref("DXFInputFlattensHierarchy", IOTool.tool.prefs, true); /** * Method to tell whether DXF Input flattens the hierarchy. * Flattened DXF appears in a single cell. * The default is "true". * @return true if DXF Input flattens the hierarchy. */ public static boolean isDXFInputFlattensHierarchy() { return cacheDXFInputFlattensHierarchy.getBoolean(); } /** * Method to set whether DXF Input flattens the hierarchy. * Flattened DXF appears in a single cell. * @param f true if DXF Input flattens the hierarchy. */ public static void setDXFInputFlattensHierarchy(boolean f) { cacheDXFInputFlattensHierarchy.setBoolean(f); } /** * Method to tell whether DXF Input flattens the hierarchy by default. * Flattened DXF appears in a single cell. * @return true if DXF Input flattens the hierarchy by default. */ public static boolean isFactoryDXFInputFlattensHierarchy() { return cacheDXFInputFlattensHierarchy.getBooleanFactoryValue(); } private static Pref cacheDXFInputReadsAllLayers = Pref.makeBooleanPref("DXFInputReadsAllLayers", IOTool.tool.prefs, true); /** * Method to tell whether DXF input reads all layers. * When a DXF layer in the file is unknown, it is ignored if all layers are NOT being read; * it is converted to another layer if all layers ARE being read. * The default is "true". * @return true if DXF input reads all layers. */ public static boolean isDXFInputReadsAllLayers() { return cacheDXFInputReadsAllLayers.getBoolean(); } /** * Method to set whether DXF input reads all layers. * When a DXF layer in the file is unknown, it is ignored if all layers are NOT being read; * it is converted to another layer if all layers ARE being read. * @param a true if DXF input reads all layers. */ public static void setDXFInputReadsAllLayers(boolean a) { cacheDXFInputReadsAllLayers.setBoolean(a); } /** * Method to tell whether DXF input reads all layers by default. * When a DXF layer in the file is unknown, it is ignored if all layers are NOT being read; * it is converted to another layer if all layers ARE being read. * @return true if DXF input reads all layers by default. */ public static boolean isFactoryDXFInputReadsAllLayers() { return cacheDXFInputReadsAllLayers.getBooleanFactoryValue(); } /****************************** SUE INPUT PREFERENCES ******************************/ private static Pref cacheSueUses4PortTransistors = Pref.makeBooleanPref("SueUses4PortTransistors", IOTool.tool.prefs, false); /** * Method to tell whether Sue input creates 4-port transistors. * Without this, standard 3-port transistors are created. * The default is "false". * @return true if Sue input creates 4-port transistors. */ public static boolean isSueUses4PortTransistors() { return cacheSueUses4PortTransistors.getBoolean(); } /** * Method to set whether Sue input creates 4-port transistors. * Without this, standard 3-port transistors are created. * @param on true if Sue input creates 4-port transistors. */ public static void setSueUses4PortTransistors(boolean on) { cacheSueUses4PortTransistors.setBoolean(on); } /** * Method to tell whether Sue input creates 4-port transistors by default. * Without this, standard 3-port transistors are created. * @return true if Sue input creates 4-port transistors by default. */ public static boolean isFactorySueUses4PortTransistors() { return cacheSueUses4PortTransistors.getBooleanFactoryValue(); } private static Pref cacheSueConvertsExpressions = Pref.makeBooleanPref("SueConvertsExpressions", IOTool.tool.prefs, false); /** * Method to tell whether Sue input converts Sue expressions to Electric form. * Electric expressions have "@" in front of variables. * The default is "false". * @return true if Sue input converts Sue expressions to Electric form. */ public static boolean isSueConvertsExpressions() { return cacheSueConvertsExpressions.getBoolean(); } /** * Method to set whether Sue input converts Sue expressions to Electric form. * Electric expressions have "@" in front of variables. * @param on true if Sue input converts Sue expressions to Electric form. */ public static void setSueConvertsExpressions(boolean on) { cacheSueConvertsExpressions.setBoolean(on); } /** * Method to tell whether Sue input converts Sue expressions to Electric form by default. * Electric expressions have "@" in front of variables. * @return true if Sue input converts Sue expressions to Electric form by default. */ public static boolean isFactorySueConvertsExpressions() { return cacheSueConvertsExpressions.getBooleanFactoryValue(); } /****************************** SKILL OUTPUT PREFERENCES ******************************/ private static Pref cacheSkillExcludesSubcells = Pref.makeBooleanPref("SkillExcludesSubcells", IOTool.tool.prefs, false); /** * Method to tell whether Skill Output excludes subcells. * If subcells are included, a Skill output files have multiple cell definitions in them. * The default is "false". * @return true if Skill Output excludes subcells. */ public static boolean isSkillExcludesSubcells() { return cacheSkillExcludesSubcells.getBoolean(); } /** * Method to set whether Skill Output excludes subcells. * If subcells are included, a Skill output files have multiple cell definitions in them. * @param on true if Skill Output excludes subcells. */ public static void setSkillExcludesSubcells(boolean on) { cacheSkillExcludesSubcells.setBoolean(on); } /** * Method to tell whether Skill Output excludes subcells by default. * If subcells are included, a Skill output files have multiple cell definitions in them. * @return true if Skill Output excludes subcells by default. */ public static boolean isFactorySkillExcludesSubcells() { return cacheSkillExcludesSubcells.getBooleanFactoryValue(); } private static Pref cacheSkillFlattensHierarchy = Pref.makeBooleanPref("SkillFlattensHierarchy", IOTool.tool.prefs, false); /** * Method to tell whether Skill Output flattens the hierarchy. * Flattened files are larger, but have no hierarchical structure. * The default is "false". * @return true if Skill Output flattens the hierarchy. */ public static boolean isSkillFlattensHierarchy() { return cacheSkillFlattensHierarchy.getBoolean(); } /** * Method to set whether Skill Output flattens the hierarchy. * Flattened files are larger, but have no hierarchical structure. * @param on true if Skill Output flattens the hierarchy. */ public static void setSkillFlattensHierarchy(boolean on) { cacheSkillFlattensHierarchy.setBoolean(on); } /** * Method to tell whether Skill Output flattens the hierarchy by default. * Flattened files are larger, but have no hierarchical structure. * @return true if Skill Output flattens the hierarchy by default. */ public static boolean isFactorySkillFlattensHierarchy() { return cacheSkillFlattensHierarchy.getBooleanFactoryValue(); } private static Pref cacheSkillGDSNameLimit = Pref.makeBooleanPref("SkillGDSNameLimit", IOTool.tool.prefs, false); /** * Method to tell whether Skill Output flattens the hierarchy. * Flattened files are larger, but have no hierarchical structure. * The default is "false". * @return true if Skill Output flattens the hierarchy. */ public static boolean isSkillGDSNameLimit() { return cacheSkillGDSNameLimit.getBoolean(); } /** * Method to set whether Skill Output flattens the hierarchy. * Flattened files are larger, but have no hierarchical structure. * @param on true if Skill Output flattens the hierarchy. */ public static void setSkillGDSNameLimit(boolean on) { cacheSkillGDSNameLimit.setBoolean(on); } /** * Method to tell whether Skill Output flattens the hierarchy by default. * Flattened files are larger, but have no hierarchical structure. * @return true if Skill Output flattens the hierarchy by default. */ public static boolean isFactorySkillGDSNameLimit() { return cacheSkillGDSNameLimit.getBooleanFactoryValue(); } /****************************** DAIS OUTPUT PREFERENCES ******************************/ private static Pref cacheDaisDisplayOnly = Pref.makeBooleanPref("DaisDisplayOnly", IOTool.tool.prefs, false); /** * Method to tell whether Dais Input creates real geometry. * When real geometry is created, it takes more time and memory, but the circuitry can be edited. * When false, Dais input is read directly into the display system for rapid viewing. * The default is "false". * @return true if Dais Input creates real geometry. */ public static boolean isDaisDisplayOnly() { return cacheDaisDisplayOnly.getBoolean(); } /** * Method to set whether Dais Input creates real geometry. * When real geometry is created, it takes more time and memory, but the circuitry can be edited. * When false, Dais input is read directly into the display system for rapid viewing. * @param on true if Dais Input creates real geometry. */ public static void setDaisDisplayOnly(boolean on) { cacheDaisDisplayOnly.setBoolean(on); } /** * Method to tell whether Dais Input creates real geometry, by default. * When real geometry is created, it takes more time and memory, but the circuitry can be edited. * When false, Dais input is read directly into the display system for rapid viewing. * @return true if Dais Input creates real geometry, by default. */ public static boolean isFactoryDaisDisplayOnly() { return cacheDaisDisplayOnly.getBooleanFactoryValue(); } private static Pref cacheDaisReadCellInstances = Pref.makeBooleanPref("DaisReadCellInstances", IOTool.tool.prefs, true); /** * Method to tell whether Dais Input places cell instances. * The default is "true". * @return true if Dais Input places cell instances. */ public static boolean isDaisReadCellInstances() { return cacheDaisReadCellInstances.getBoolean(); } /** * Method to set whether Dais Input places cell instances. * @param on true if Dais Input places cell instances. */ public static void setDaisReadCellInstances(boolean on) { cacheDaisReadCellInstances.setBoolean(on); } /** * Method to tell whether Dais Input places cell instances, by default. * @return true if Dais Input places cell instances, by default. */ public static boolean isFactoryDaisReadCellInstances() { return cacheDaisReadCellInstances.getBooleanFactoryValue(); } private static Pref cacheDaisReadDetailWires = Pref.makeBooleanPref("DaisReadDetailWires", IOTool.tool.prefs, true); /** * Method to tell whether Dais Input reads the "detail" wires. * The default is "true". * @return true if Dais Input reads the "detail" wires. */ public static boolean isDaisReadDetailWires() { return cacheDaisReadDetailWires.getBoolean(); } /** * Method to set whether Dais Input reads the "detail" wires. * @param on true if Dais Input reads the "detail" wires. */ public static void setDaisReadDetailWires(boolean on) { cacheDaisReadDetailWires.setBoolean(on); } /** * Method to tell whether Dais Input reads the "detail" wires, by default. * @return true if Dais Input reads the "detail" wires, by default. */ public static boolean isFactoryDaisReadDetailWires() { return cacheDaisReadDetailWires.getBooleanFactoryValue(); } private static Pref cacheDaisReadGlobalWires = Pref.makeBooleanPref("DaisReadGlobalWires", IOTool.tool.prefs, false); /** * Method to tell whether Dais Input reads the "global" wires. * The default is "false". * @return true if Dais Input reads the "global" wires. */ public static boolean isDaisReadGlobalWires() { return cacheDaisReadGlobalWires.getBoolean(); } /** * Method to set whether Dais Input reads the "global" wires. * @param on true if Dais Input reads the "global" wires. */ public static void setDaisReadGlobalWires(boolean on) { cacheDaisReadGlobalWires.setBoolean(on); } /** * Method to tell whether Dais Input reads the "global" wires, by default. * @return true if Dais Input reads the "global" wires, by default. */ public static boolean isFactoryDaisReadGlobalWires() { return cacheDaisReadGlobalWires.getBooleanFactoryValue(); } private static Pref cacheDaisReadPowerAndGround = Pref.makeBooleanPref("DaisReadPowerAndGround", IOTool.tool.prefs, true); /** * Method to tell whether Dais Input reads power and ground wires. * The default is "true". * @return true if Dais Input reads power and ground wires. */ public static boolean isDaisReadPowerAndGround() { return cacheDaisReadPowerAndGround.getBoolean(); } /** * Method to set whether Dais Input reads power and ground wires. * @param on true if Dais Input reads power and ground wires. */ public static void setDaisReadPowerAndGround(boolean on) { cacheDaisReadPowerAndGround.setBoolean(on); } /** * Method to tell whether Dais Input reads power and ground wires, by default. * @return true if Dais Input reads power and ground wires, by default. */ public static boolean isFactoryDaisReadPowerAndGround() { return cacheDaisReadPowerAndGround.getBooleanFactoryValue(); } private static Pref cacheDaisReadConnectivity = Pref.makeBooleanPref("DaisReadConnectivity", IOTool.tool.prefs, true); /** * Method to tell whether Dais Input reads connectivity. * Connectivity is represented by "unrouted" arcs from the Generic technology, * which appear in a "rats nest" on the circuit. * The default is "true". * @return true if Dais Input reads connectivity. */ public static boolean isDaisReadConnectivity() { return cacheDaisReadConnectivity.getBoolean(); } /** * Method to set whether Dais Input reads connectivity. * Connectivity is represented by "unrouted" arcs from the Generic technology, * which appear in a "rats nest" on the circuit. * @param on true if Dais Input reads connectivity. */ public static void setDaisReadConnectivity(boolean on) { cacheDaisReadConnectivity.setBoolean(on); } /** * Method to tell whether Dais Input reads connectivity, by default. * Connectivity is represented by "unrouted" arcs from the Generic technology, * which appear in a "rats nest" on the circuit. * @return true if Dais Input reads connectivity, by default. */ public static boolean isFactoryDaisReadConnectivity() { return cacheDaisReadConnectivity.getBooleanFactoryValue(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -