本文整理汇总了Java中com.cburch.logisim.tools.ToolTipMaker类的典型用法代码示例。如果您正苦于以下问题:Java ToolTipMaker类的具体用法?Java ToolTipMaker怎么用?Java ToolTipMaker使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ToolTipMaker类属于com.cburch.logisim.tools包,在下文中一共展示了ToolTipMaker类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFeature
import com.cburch.logisim.tools.ToolTipMaker; //导入依赖的package包/类
@Override
public Object getFeature(Object key) {
Object ret = factory.getInstanceFeature(instance, key);
if (ret != null) {
return ret;
} else if (key == ToolTipMaker.class) {
Object defaultTip = factory.getDefaultToolTip();
if (hasToolTips || defaultTip != null)
return this;
} else if (key == TextEditable.class) {
InstanceTextField field = textField;
if (field != null)
return field;
}
return null;
}
示例2: computeRegisterLocations
import com.cburch.logisim.tools.ToolTipMaker; //导入依赖的package包/类
private void computeRegisterLocations() {
List<EndData> ends = registerSubcircuit.getEnds();
ToolTipMaker tooltip = (ToolTipMaker) registerSubcircuit;
for (EndData end : ends) {
Location loc = end.getLocation();
ComponentUserEvent cue = new ComponentUserEvent(null, loc.getX(),
loc.getY());
String label = tooltip.getToolTip(cue);
if (label.equals("Input"))
inputRegister = loc;
else if (label.equals("Output"))
outputRegister = loc;
else if (label.equals("Clock"))
clockRegister = loc;
}
}
示例3: getFeature
import com.cburch.logisim.tools.ToolTipMaker; //导入依赖的package包/类
@Override
public Object getFeature(Object key) {
if (key == WireRepair.class)
return this;
if (key == ToolTipMaker.class)
return this;
if (key == MenuExtender.class)
return this;
else
return super.getFeature(key);
}
示例4: getFeature
import com.cburch.logisim.tools.ToolTipMaker; //导入依赖的package包/类
public Object getFeature(Object key) {
Object ret = factory.getInstanceFeature(instance, key);
if (ret != null) {
return ret;
} else if (key == ToolTipMaker.class) {
Object defaultTip = factory.getDefaultToolTip();
if (hasToolTips || defaultTip != null)
return this;
} else if (key == TextEditable.class) {
InstanceTextField field = textField;
if (field != null)
return field;
}
return null;
}
示例5: getFeature
import com.cburch.logisim.tools.ToolTipMaker; //导入依赖的package包/类
public Object getFeature(Object key) {
Object ret = factory.getInstanceFeature(instance, key);
if (ret != null) {
return ret;
} else if (key == ToolTipMaker.class) {
Object defaultTip = factory.getDefaultToolTip();
if (hasToolTips || defaultTip != null) return this;
} else if (key == TextEditable.class) {
InstanceTextField field = textField;
if (field != null) return field;
}
return null;
}
示例6: getFeature
import com.cburch.logisim.tools.ToolTipMaker; //导入依赖的package包/类
@Override
public Object getFeature(Object key) {
if (key == WireRepair.class) return this;
if (key == ToolTipMaker.class) return this;
if (key == MenuExtender.class) return this;
else return super.getFeature(key);
}