本文整理汇总了Java中processing.data.XML.setInt方法的典型用法代码示例。如果您正苦于以下问题:Java XML.setInt方法的具体用法?Java XML.setInt怎么用?Java XML.setInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类processing.data.XML
的用法示例。
在下文中一共展示了XML.setInt方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createScreenNode
import processing.data.XML; //导入方法依赖的package包/类
private XML createScreenNode() {
XML screenNode = new XML(SCREEN_XML_NAME);
screenNode.setInt(SCREEN_WIDTH_XML_NAME, projectionScreenWidth);
screenNode.setInt(SCREEN_HEIGHT_XML_NAME, projectionScreenHeight);
screenNode.setInt(SCREEN_OFFSET_X_XML_NAME, projectionScreenOffsetX);
screenNode.setInt(SCREEN_OFFSET_Y_XML_NAME, projectionScreenOffsetY);
return screenNode;
}
示例2: setIn
import processing.data.XML; //导入方法依赖的package包/类
private void setIn(XML xml) {
xml.setFloat(MAX_DIST_XML_NAME, maximumDistance);
xml.setFloat(MIN_HEIGHT_XML_NAME, minimumHeight);
xml.setInt(MIN_COPO_SIZE_XML_NAME, minimumComponentSize);
xml.setInt(MAX_RECURSION_XML_NAME, maximumRecursion);
xml.setInt(SEARCH_DEPTH_XML_NAME, searchDepth);
xml.setInt(PRECISION_XML_NAME, precision);
xml.setInt(TRACKING_FORGET_TIME_XML_NAME, trackingForgetTime);
xml.setFloat(TRACKING_MAX_DIST_TIME_XML_NAME, trackingMaxDistance);
}
示例3: createDomainElement
import processing.data.XML; //导入方法依赖的package包/类
public XML createDomainElement(Domain domain) {
XML element = new XML("Domain");
element.setInt("version", 2);
element.setString("name", domain.Name);
XML ancestorList = element.addChild("ancestors");
for(int i = 0; i < domain.Tree.size(); i++){
Region region = domain.getTree(i);
XML ancestor = ancestorList.addChild("ancestor");
ancestor.setString("name", region.Name);
}
XML definitionList = element.addChild("definition");
if (domain.DefObjets != null) {
for(int i = 0;i < domain.DefObjets.length; i++) {
Objet[] objet = domain.DefObjets[i];
Operator op = objet[0].getOperator();
Domain target = objet[1].getDomain();
XML spatial = definitionList.addChild("spatial");
spatial.setString("type", op.Name);
spatial.setInt("min", op.hmin);
spatial.setInt("max", op.hmax);
spatial.setString("domain", target.Name);
}
}
return element;
}
示例4: resolutionNode
import processing.data.XML; //导入方法依赖的package包/类
private XML resolutionNode() {
XML node = new XML(RESOLUTION_XML_NAME);
node.setInt(WIDTH_XML_NAME, width);
node.setInt(HEIGHT_XML_NAME, height);
return node;
}
示例5: add
import processing.data.XML; //导入方法依赖的package包/类
private void add(XML root, String name, int value) {
root.setInt(name, value);
}