query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Adds the property names for this shape.
|
protected void addPropNames()
{
addPropNames("Visible", "X", "Y", "Width", "Height", "Roll", "ScaleX", "ScaleY",
"Font", "TextColor", "FillColor", "StrokeColor", "URL");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected final void addPropNames(String ... theNames) { Collections.addAll(getPropertyNames(), theNames); }",
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"public ArrayList<String> getPropNames()\n {\n return this.prop_names;\n }",
"@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }",
"private void addProperties() {\n\t\tfor (PropertyGenerator pg : this.getPropertyGenerators()) {\n\t\t\tpg.generate();\n\t\t\tthis.enqueuePropertyTypeIfNeeded(pg);\n\t\t\tthis.addToSubBindingsIfNeeded(pg);\n\t\t}\n\t}",
"public String[] getPropertyNames();",
"public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}",
"public void setPropNames(ArrayList<String> props)\n {\n this.prop_names = props;\n fireTableDataChanged();\n }",
"public void setPropName(String name) {\n m_propName = name;\n }",
"public synchronized Enumeration<String> getPropertyNames() {\n return PropertyArray.enumerate(props);\n }",
"public Set getPropertyNames(){\n return this.vendorSpecificProperties;\n }",
"public void addNames() {}",
"public void addNames() {}",
"public Enumeration getPropertyNames() {\r\n return properties.keys();\r\n }",
"public void addProperty(String name, PropertyObject data) {\n this.properties.put(name, data);\n }",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }",
"@Override\n public void afterPropertiesSet() throws Exception {\n System.out.println(\"After Properties Set Method is called and Properties are set for \" + triangle.toString()\n + \" And \" + shapeService.toString());\n name = \"Vedika\";\n }",
"public String getPropName() {\n return m_propName;\n }",
"String getPropertyName();",
"public String getPropertyName();",
"Builder addProperty(String name, String value);",
"public List <String> getPropertyNames()\n{\n // Get list from PropertyNamesMap - load if not found\n List <String> list = _propertyNamesMap.get(getClass());\n if(list==null) {\n _propertyNamesMap.put(getClass(), list = new ArrayList()); addPropNames(); }\n return list;\n}",
"public void properties(){\n setChanged();\n notifyObservers(name);\n System.out.println(\"Name: \" + name);\n System.out.println(\"Formula: \" + FORMULA);\n System.out.println(\"Colour: \" + COLOUR);\n System.out.println(\"Streak: \" + STREAK);\n System.out.println(\"Luster: \" + LUSTER);\n System.out.println(\"Diaphaneity: \" + DIAPHANEITY);\n System.out.println(\"Cleavage: \" + CLEAVAGE);\n System.out.println(\"Crystal system: \" + CRYSTAL_SYSTEM);\n System.out.println(\"Hardness: \" + HARDNESS);\n System.out.println(\"Specific Gravity: \" + SPECIFIC_GRAVITY);\n }",
"@Override\n public InstanceProperties getNameInstanceProperties(String methodName) {\n InstanceProperties properties = super.getNameInstanceProperties(methodName);\n\n if (name != null) {\n String literalName = repositoryHelper.getExactMatchRegex(name);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME, literalName, methodName);\n }\n\n return properties;\n }",
"public String getPropertyName()\n {\n return propertyName;\n }",
"@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}",
"public void genProperties(PropertiesModel propModel) {\n\t\tpropModel.addProp(\"X\", position.x());\n\t\tpropModel.addProp(\"Y\", position.y());\n\t\tpropModel.addProp(\"Collision Radius\", collisionRadius);\n\t}",
"public void addProperty(String name, String property)\n {\n if (name != null && name.trim().length() > 0)\n {\n _propertyEntries.put(name, property);\n }\n }",
"PropertyObject toJSONObject(PropertyArray names) throws PropertyException {\n if (names == null || names.isEmpty() || this.isEmpty()) {\n return null;\n }\n PropertyObject jo = new PropertyObject();\n for (int i = 0; i < names.length(); i += 1) {\n jo.put(names.getString(i), this.opt(i));\n }\n return jo;\n }",
"protected String getPropertyName(){\n return propertyName;\n }",
"@Override\n\tpublic void addProperty(String name, String text) {\n\t\tLuceneIndex.addPredicateField(name, text, doc);\n\t\tLuceneIndex.addTextField(text, doc);\n\t}",
"public void addProperty(SGFProperty property)\r\n\t{\r\n\t\t_propertyList.add(property);\r\n\t}",
"public void setProperties(String primitive, AnimationProperties properties){\r\n\t\tpropMap.put(primitive, properties);\r\n\t}",
"public String getPropertyName() {\n return this.propertyName;\n }",
"public void addProperty(String s, Object o) {\n }",
"public void addProperty(String s, Object o) {\n }",
"PropertyName getName();",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"public Properties getPropertyInfo(Properties props) {\n props = super.getPropertyInfo(props);\n props.remove(shapeFileProperty);\n props.remove(pointImageURLProperty);\n props.remove(shapeFileProperty + ScopedEditorProperty);\n props.remove(pointImageURLProperty + ScopedEditorProperty);\n\n Iterator sis = spatialIndexes.iterator();\n while (sis.hasNext()) {\n ((SpatialIndexHandler) sis.next()).getPropertyInfo(props);\n }\n\n props.put(ShapeFileListProperty,\n \"List of marker names for SpatialIndexHandlers\");\n\n return props;\n }",
"java.util.Enumeration getPropertyNames();",
"public ArithmaticExpression add(String propertyName) {\n this.getChildren().add(new PropertyValueExpression(propertyName));\n return this;\n }",
"public void addProperty(Property property)\r\n {\r\n m_values.add(property);\r\n }",
"ObjectBuilder<T> addProperty(final String name, final String value) {\n properties.put(name, value);\n return this;\n }",
"@Override\n\t\tpublic Iterable<String> getPropertyKeys() {\n\t\t\treturn null;\n\t\t}",
"public\tvoid\tsetAddedProperties(List<JsClass.Property> addedProperties) {\n\t\tthis.addedProperties = addedProperties;\n\t}",
"@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}",
"public void addProperty(String key, String value);",
"public void setProperty(String name, Object value)\n {\n if (additionalProperties == null)\n {\n additionalProperties = new HashMap<String, Object>();\n }\n additionalProperties.put(name, value);\n }",
"@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }",
"void setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);",
"private GestionnaireLabelsProperties() {\r\n\t\tsuper();\r\n\t}",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"public void setPropertyName (String propertyName) {\n\t\tthis.propertyName=propertyName;\n\t}",
"public List<Property> properties(String name)\n\t{\n\t\treturn filter(p -> p.getName().equals(name) && p instanceof Property)\n\t\t\t\t.stream()\n\t\t\t\t\t.map(e -> (Property) e)\n\t\t\t\t\t.collect(Collectors.toList());\n\t}",
"@Override\n protected void updateProperties() {\n }",
"public EJCoreFrameworkExtensionPropertyListEntry()\n {\n _propertyEntries = new HashMap<String, String>();\n }",
"public Set<String> getStringPropertyNames();",
"private void processPropertyParentNode(Element node) {\n PropertyDataItem prp = new PropertyDataItem(node.attributeValue(\"name\"));\n\n Iterator childNodes = node.elementIterator();\n\n while (childNodes.hasNext()) {\n\n prp.addChildNode(((Element) childNodes.next()).attributeValue(\"name\"));\n }\n\n properties.add(prp);\n }",
"public static void addProperty(String [] propertyValues){\r\n Property oneProperty = new Property();\r\n oneProperty = setPropertyAttributes(oneProperty, propertyValues);\r\n propertyLogImpl.add(oneProperty);\r\n }",
"private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}",
"public List<NameValueProperty> getNameValueProperty() {\n\t\treturn nameValuePropertyList;\n\t}",
"@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}",
"static final String[] makePropertyNames(Object names[]) {\n String[] sn = new String[ names.length ];\n for (int i = 0; i < sn.length; i++) {\n sn[i] = (names[i] instanceof Named) ? \n ((Named) names[i]).getName() : (String) names[i];\n }\n return sn;\n }",
"@Override\n public void updateProperties() {\n // unneeded\n }",
"public\tList<JsClass.Property>\tgetAddedProperties() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.addedProperties);\n\t}",
"public Enumeration getPropertyNames()\n {\n Hashtable props = getProperties();\n return (props != null) ? props.keys() : new Vector().elements();\n }",
"void addOrReplaceProperty(Property prop, Collection<Property> properties);",
"public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }",
"public Iterable<String> getPropertyKeys();",
"@Override\n\tpublic String[] getEdgePropertyNames() {\n\t\treturn edgePropertyNames;\n\t}",
"@JsonAnySetter\n\tpublic void setAdditionalProperty(String name, Object value) {\n\t\tthis.additionalProperties.put(name, value);\n\t}",
"public String[] getPropertyNames()\n {\n return ClassAnalyzer.getPropertyNames(m_Source.getClass());\n }",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"public void setProperties(String prefix, Properties setList);",
"@Override\n\tprotected void registerProperties() {\n\t\tsuper.registerProperties();\n\t\tthis.registerProperty(Sender);\n\t\tthis.registerProperty(ToRecipients);\n\t\tthis.registerProperty(CcRecipients);\n\t\tthis.registerProperty(BccRecipients);\n\t\tthis.registerProperty(IsReadReceiptRequested);\n\t\tthis.registerProperty(IsDeliveryReceiptRequested);\n\t\tthis.registerProperty(ConversationIndex);\n\t\tthis.registerProperty(ConversationTopic);\n\t\tthis.registerProperty(From);\n\t\tthis.registerProperty(InternetMessageId);\n\t\tthis.registerProperty(IsRead);\n\t\tthis.registerProperty(IsResponseRequested);\n\t\tthis.registerProperty(References);\n\t\tthis.registerProperty(ReplyTo);\n\t\tthis.registerProperty(ReceivedBy);\n\t\tthis.registerProperty(ReceivedRepresenting);\n\t}",
"@Override\n\tpublic <P> void addPropertyMappedColumn(String propertyName, final Transformer<P, String> transformer) {\n\t\tthis.columnPropertyNames.add(propertyName);\n\t\tfinal int index = this.delegatedColumnIndex++;\n\t\tfinal Transformer<R, Object> propertyTransformer = this.columnsLabelProvider.getDelegatingTransformer(index);\n \t\tTransformer<R,String> t = new Transformer<R,String>() {\n\t\t\t@Override\n\t\t\tpublic String transform(R element) {\n\t\t\t\tP propertyValue = (P) propertyTransformer.transform(element);\n\t\t\t\treturn transformer.transform(propertyValue);\n\t\t\t}\n\t\t};\n\t\tthis.addCalculatedColumn(t);\n\t}",
"public PropertiesQDoxPropertyExpander() {\n super();\n }",
"StringMap getProperties();",
"protected abstract String getPropertyPrefix();",
"public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }",
"@Override\n protected Collection<String> getExpectedPropertyNames() {\n return new ArrayList<String>();\n }",
"public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }",
"String[] getPropertyNames(String opName) throws RemoteException;",
"protected void addNamePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_OperationCall_name_feature\"),\r\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_OperationCall_name_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_OperationCall_type\"),\r\n\t\t\t\t\t\tSystemModelPackage.Literals.OPERATION_CALL__NAME, true, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\r\n\t}",
"public static void registerProps() throws API_Exception {\n\t\tProperties.registerProp( DOCKER_IMG_VERSION, Properties.STRING_TYPE, DOCKER_IMG_VERSION_DESC );\n\t\tProperties.registerProp( SAVE_CONTAINER_ON_EXIT, Properties.BOOLEAN_TYPE, SAVE_CONTAINER_ON_EXIT_DESC );\n\t\tProperties.registerProp( DOCKER_HUB_USER, Properties.STRING_TYPE, DOCKER_HUB_USER_DESC );\n\t}",
"@Override\r\n\tpublic String getFormat() {\r\n\t\treturn \"properties\";\r\n\t}",
"@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}",
"public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }",
"private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}",
"ArrayList<PropertyMetadata> getProperties();",
"@Override\n public void addConfigurationProperties(Properties properties) {\n }",
"public static void addProperty(String[] attribs) {\n int mls = Integer.parseInt(attribs[2]); \n int zip = Integer.parseInt(attribs[7]);\n int numBedrooms = Integer.parseInt(attribs[8]);\n double numBathrooms = Double.parseDouble(attribs[9]);\n boolean isSold;\n if(attribs[10].toUpperCase().equals(\"Y\")) {\n isSold = true;\n } else {\n isSold = false;\n }\n double askingPrice = Double.parseDouble(attribs[11]);\n Property property = new Property(mls, attribs[3], attribs[4],\n attribs[5], attribs[6], zip, numBedrooms, numBathrooms, isSold,\n askingPrice);\n String added = propertyLogImpl.add(property) ? \"added\" : \"not added\";\n System.out.println(\"Property \" + added);\n }",
"private static void readAndWriteProperties(String name) throws IOException {\n System.out.println(name);\n boolean firstLine = true;\n fileReader = new BufferedReader(new FileReader(PATH + name));\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n String line;\n while ((line = fileReader.readLine()) != null) {\n if (!firstLine) {\n String[] lineTokens = LINE_TOKEN_SEPARATOR.split(line);\n long globalID = vertexList.get(3).get(Long.parseLong(lineTokens[0]));\n String writeLine = \"\";\n for (int i = 0; i < lineTokens.length; i++) {\n if (i == 0) {\n writeLine += globalID;\n } else {\n writeLine += lineTokens[i];\n }\n writeLine += \"|\";\n }\n fileWriter.write(writeLine);\n fileWriter.newLine();\n } else {\n fileWriter.write(line);\n fileWriter.newLine();\n firstLine = false;\n }\n }\n fileReader.close();\n fileWriter.close();\n }",
"@Override\n\t@SuppressWarnings(\"unchecked\")\n\t@Transactional(propagation = Propagation.SUPPORTS)\n\tpublic List<Property> findPropertyNames() \n\t{\n\t\tList<Property> details = entityManager.createNamedQuery(\"Property.readPropertyNames\").getResultList();\n\t\tlogger.info(\"Property Details are:\" + details);\n\t\treturn details;\n\t}",
"public String getPropertyName()\n {\n return Integer.toString(getLowNbrParticipants());\n }",
"public void setNameValueProperty(List<NameValueProperty> nameValueProperty) {\n\t\tthis.nameValuePropertyList = nameValueProperty;\n\t}",
"void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;",
"public PropertyDefList createDependings()\n throws MatrixException\n {\n for (final PropertyDef prop : this.properties) {\n if (prop.getTo() != null) {\n prop.getTo().create();\n }\n }\n\n return this;\n }",
"public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }"
] |
[
"0.72144324",
"0.7007388",
"0.648216",
"0.6315881",
"0.62461734",
"0.6140626",
"0.6113325",
"0.59769315",
"0.58139867",
"0.57454705",
"0.569243",
"0.568594",
"0.568594",
"0.55990446",
"0.55953497",
"0.55458105",
"0.55453134",
"0.55448043",
"0.55418336",
"0.5523063",
"0.55181044",
"0.5502909",
"0.54980075",
"0.5484516",
"0.54686147",
"0.5457923",
"0.54147995",
"0.5387954",
"0.53839827",
"0.5380208",
"0.5377401",
"0.5371751",
"0.537091",
"0.5339771",
"0.5334199",
"0.53231657",
"0.53231657",
"0.5318437",
"0.53058857",
"0.5303769",
"0.52922046",
"0.52680457",
"0.52574384",
"0.5224656",
"0.5207684",
"0.51939356",
"0.51850766",
"0.517313",
"0.5166598",
"0.5158005",
"0.5156418",
"0.5141167",
"0.51332504",
"0.51179075",
"0.51142746",
"0.51141316",
"0.5102972",
"0.50953776",
"0.50765884",
"0.5074713",
"0.5068891",
"0.50671226",
"0.5064069",
"0.5058359",
"0.5054674",
"0.5049215",
"0.50456846",
"0.50454766",
"0.50398403",
"0.5034203",
"0.5012932",
"0.5007287",
"0.5006131",
"0.50030863",
"0.5002396",
"0.49981833",
"0.49934492",
"0.49919546",
"0.49916774",
"0.49828905",
"0.49820438",
"0.496833",
"0.4965688",
"0.49585482",
"0.4951911",
"0.49476618",
"0.4944718",
"0.49432912",
"0.49394843",
"0.49382403",
"0.49362168",
"0.49323744",
"0.4918377",
"0.490703",
"0.49058577",
"0.49053636",
"0.49051607",
"0.49033228",
"0.49031225",
"0.4899243"
] |
0.7220886
|
0
|
Adds given property names to the front of property names list.
|
protected final void addPropNames(String ... theNames) { Collections.addAll(getPropertyNames(), theNames); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addNames() {}",
"public void addNames() {}",
"private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}",
"public void setPropNames(ArrayList<String> props)\n {\n this.prop_names = props;\n fireTableDataChanged();\n }",
"void addOrReplaceProperty(Property prop, Collection<Property> properties);",
"private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }",
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }",
"public void sortProperties (ArrayList<Property> properties, String branchName) {\r\n\t\tsoldProperties.clear();\r\n\t\tnotSoldProperties.clear();\r\n\t\totherProperties.clear();\r\n \tint size = properties.size();\r\n \tfor (int i = 0; i < size; i++) {\r\n \t\tif (properties.get(i).getBranchName().equals(branchName)) {\r\n \t\t\tif (!properties.get(i).getSoldPrice().equals(\"\")) {\r\n \t\t\t\tsoldProperties.add(properties.get(i));\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tnotSoldProperties.add(properties.get(i));\r\n \t\t\t}\r\n \t\t}\r\n \t\telse {\r\n\t\t\t\totherProperties.add(properties.get(i));\r\n\t\t\t}\r\n \t}\r\n\t}",
"void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }",
"public void insertNames(ArrayList<String> fileNames) {\n\t\tString currentName = \"\";\n\t\tString parsedName = \"\";\n\n\t\t// Applies rules to all names in the file and adds them to the map\n\t\tfor (int i = 0; i < fileNames.size(); i++) {\n\t\t\tcurrentName = fileNames.get(i);\n\n\t\t\t// Parse the current name into it's index id\n\t\t\tparsedName = parseName(currentName);\n\n\t\t\t// Add these to the map with their actual name\n\t\t\tinsertIntoMap(parsedName, currentName);\n\t\t}\n\t}",
"public\tvoid\tsetAddedProperties(List<JsClass.Property> addedProperties) {\n\t\tthis.addedProperties = addedProperties;\n\t}",
"static final String[] makePropertyNames(Object names[]) {\n String[] sn = new String[ names.length ];\n for (int i = 0; i < sn.length; i++) {\n sn[i] = (names[i] instanceof Named) ? \n ((Named) names[i]).getName() : (String) names[i];\n }\n return sn;\n }",
"public void setProperties(String prefix, Properties setList);",
"public List <String> getPropertyNames()\n{\n // Get list from PropertyNamesMap - load if not found\n List <String> list = _propertyNamesMap.get(getClass());\n if(list==null) {\n _propertyNamesMap.put(getClass(), list = new ArrayList()); addPropNames(); }\n return list;\n}",
"public void setPropertyPrefix(String prefix);",
"void prepend(ReferenceResolver resolvers);",
"public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }",
"public String[] getPropertyNames(final String inPrefix) {\n final String[] propertyNames = getPropertyNames();\n\n final String prefix = inPrefix.toLowerCase();\n\n final List<String> names = new ArrayList<>();\n for (final String propertyName : propertyNames) {\n if (propertyName.startsWith(prefix)) {\n names.add(propertyName);\n }\n }\n\n if (names.isEmpty()) {\n return null;\n }\n\n // Copy the strings from the List over to a String array.\n final String[] prefixNames = new String[names.size()];\n names.toArray(prefixNames);\n return prefixNames;\n }",
"@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }",
"@Nonnull\n @Contract(pure = true)\n public static <T> List<T> prepend(@Nonnull List<? extends T> list, @Nonnull T... values) {\n return concat(list(values), list);\n }",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"public void addProperty(String name, String property)\n {\n if (name != null && name.trim().length() > 0)\n {\n _propertyEntries.put(name, property);\n }\n }",
"public ArrayList<String> getPropNames()\n {\n return this.prop_names;\n }",
"public void addPOSPrefix(String prefix) {\n if(prefix==null)\n return;\n if(POSPrefix==null){\n POSPrefix=prefix;\n return;\n }\n if(prefix.startsWith(POSPrefix))\n return;\n if(POSPrefix.startsWith(prefix)){\n POSPrefix=prefix;\n } else { //We need to find the longest common prefix of the two prefix strings\n int len=0;\n for(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n if(prefix.charAt(len)!=POSPrefix.charAt(len))\n break;\n }\n POSPrefix=prefix.substring(0,len);\n }\n }",
"public void setNameValueProperty(List<NameValueProperty> nameValueProperty) {\n\t\tthis.nameValuePropertyList = nameValueProperty;\n\t}",
"@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}",
"public void add(String[] names) {\n add(names, names);\n }",
"public String[] getPropertyNames();",
"@Override\n protected Collection<String> getExpectedPropertyNames() {\n return new ArrayList<String>();\n }",
"public QueryElement addLowerThen(String property, Object value);",
"public static void addProperty(String [] propertyValues){\r\n Property oneProperty = new Property();\r\n oneProperty = setPropertyAttributes(oneProperty, propertyValues);\r\n propertyLogImpl.add(oneProperty);\r\n }",
"public void addAliases(String... aliases) {\n this.aliases.addAll(Lists.newArrayList(aliases));\n Collections.sort(this.aliases);\n }",
"public ArrayList<String> getUnRequestedProperties()\n\t{\n\t\tArrayList<String> urp = new ArrayList<String>();\n\t\tfor (Object property : super.keySet())\n\t\t\tif (!requestedProperties.containsKey(((String)property).trim()))\n\t\t\t\turp.add(((String)property).trim());\n\t\tCollections.sort(urp);\n\t\treturn urp;\n\t}",
"public void prefix(String prf) {\n\tprefixes.append(prf);\n }",
"public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }",
"public void addPOSPrefix(String prefix) {\n\t\tif(prefix==null)\n\t\t\treturn;\n\t\tif(POSPrefix==null){\n\t\t\tPOSPrefix=prefix;\n\t\t\treturn;\n\t\t}\n\t\tif(prefix.startsWith(POSPrefix))\n\t\t\treturn;\n\t\tif(POSPrefix.startsWith(prefix)){\n\t\t\tPOSPrefix=prefix;\n\t\t} else { //We need to find the longest common prefix of the two prefix strings\n\t\t\tint len=0;\n\t\t\tfor(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n\t\t\t\tif(prefix.charAt(len)!=POSPrefix.charAt(len))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tPOSPrefix=prefix.substring(0,len);\n\t\t}\n\t}",
"@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}",
"static List<AccessibleObject> orderFieldsAndMethodsByDependency(List<AccessibleObject> unorderedList, Map<String, AccessibleObject> propertiesMap) {\n Stack<AccessibleObject> stack = new Stack<AccessibleObject>();\n // the result list \n List<AccessibleObject> orderedList = new LinkedList<AccessibleObject>();\n // add the elements from the unordered list to the ordered list \n // any dependencies will be checked and added first, in recursive manner \n for (int i = 0; i < unorderedList.size(); i++) {\n AccessibleObject obj = unorderedList.get(i);\n addPropertyToDependencyList(orderedList, propertiesMap, stack, obj);\n }\n return orderedList;\n}",
"public void addListMembers(String cat, String[] inputs) {\n clearKeyCategory(cat);\n int i = 0;\n\n for (String v : inputs) {\n setProperty(cat + keyDigs.format(i++), v);\n }\n }",
"public void addProperty(String key, String value);",
"public void setNewDeclarations(List<MDeclaration> newProps)\n\t{\n\t\t_declarations.clear();\n\t\t_declarations.addAll(newProps);\n\t}",
"public void giveNames(String... names) {\n\n this.names = names;\n\n }",
"protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}",
"private void setProperlyOrderedPrefixNamePairs(String[] prefixMatchArray){\n prefixMatchArray[0] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? repositoryWithDualKeyNCategory.getKey1FromKey2(prefixMatchArray[0]) : prefixMatchArray[0];\n prefixMatchArray[1] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? prefixMatchArray[0] : repositoryWithDualKeyNCategory.getKey2FromKey1(prefixMatchArray[0]);\n }",
"public void addProperty(SGFProperty property)\r\n\t{\r\n\t\t_propertyList.add(property);\r\n\t}",
"public void addProperty(Property property)\r\n {\r\n m_values.add(property);\r\n }",
"public void addAllToFront(List<UnitOfWork> workUnits) {\n synchronized (addedFrontWork) {\n addedFrontWork.addAll(0, workUnits);\n }\n }",
"@NotNull\n public static String addPrefix(@NotNull String name, @NotNull String prefix) {\n return prefix + name;\n }",
"void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;",
"@Override public void addImpliedProperties(UpodPropertySet ups)\n{\n}",
"public void setMissing(String propname)\n\t\t{\n\t\t\tm_missingInformation.add(propname);\n\t\t}",
"private String setNameForUpdate(ArrayList<String> names) {\n String retString = \"\";\n StringBuilder strB = new StringBuilder();\n for (int i = 0; i < names.size(); i++) {\n strB.append(\"(\" + names.get(i) + \") = ? ,\");\n }\n strB.deleteCharAt(strB.length() - 1);\n retString = strB.toString();\n return retString;\n }",
"protected abstract String getPropertyPrefix();",
"public HeaderElement prefixUpToFirstMulti() {\n HeaderElement result = new HeaderElement(column);\n for (HeaderNamePart namePart : nameParts) {\n if (namePart.multi) {\n result.add(namePart);\n return result;\n }\n result.add(namePart);\n }\n return null;\n }",
"static void qSort(ArrayList<String> names) {\n\t\tqs(names, 0, names.size()-1);\n\t}",
"public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }",
"public String getFirstNames() {\n return firstNames;\n }",
"public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }",
"static String normalizePropertyName(String name, String... ignorePrefixes) {\n if (ignorePrefixes.length > 0) {\n return normalizePropertyName(stripPrefixes(name, ignorePrefixes));\n }\n if (name == null || name.isEmpty()) {\n return name;\n } else if (!name.contains(\".\") && !name.contains(\"-\")) {\n return name;\n } else {\n String[] parts = name.replaceAll(\" \", \"\").split(\"-|\\\\.\");\n StringBuilder sb = new StringBuilder();\n if (parts.length > 0) {\n sb.append(parts[0]);\n for (int i = 1; i < parts.length; i++) {\n String s = parts[i-1].length() > 0 ?\n parts[i].substring(0, 1).toUpperCase() + parts[i].substring(1) :\n parts[i];\n sb.append(s);\n }\n }\n return sb.toString();\n }\n }",
"public String getPropertyPrefix();",
"public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }",
"@Override\n\tpublic void addProperty(String name, String text) {\n\t\tLuceneIndex.addPredicateField(name, text, doc);\n\t\tLuceneIndex.addTextField(text, doc);\n\t}",
"public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }",
"private static List<String> appendAll(final String[] names, final String toAppend) {\n return new ArrayList<String>() { {\n for (String name : names) { add(name + toAppend); }\n } };\n }",
"public void addSeriesNames(String[] names) {\n\t\tseriesLabels.addAll(Arrays.asList(names));\n\t\tthis.dirtyAttributes.add(Constants.LABELS);\n\n\t}",
"@Override\n public ImmutableList<String> getNameParts() {\n return names.toImmutable();\n }",
"public static String joinNames(String[] names) {\n return normalizer.joinNames(defaultRule, names);\n }",
"protected void addRequestedProperty(String key, String value)\n\t{\n\t\tLinkedHashSet<String> values = requestedProperties.get(key);\n\t\tif (values == null)\n\t\t{\n\t\t\tvalues = new LinkedHashSet<String>();\n\t\t\trequestedProperties.put(key.trim(), values);\n\t\t}\n\t\tvalues.add(value == null ? \"null\" : value.trim());\n\t}",
"PropertyObject toJSONObject(PropertyArray names) throws PropertyException {\n if (names == null || names.isEmpty() || this.isEmpty()) {\n return null;\n }\n PropertyObject jo = new PropertyObject();\n for (int i = 0; i < names.length(); i += 1) {\n jo.put(names.getString(i), this.opt(i));\n }\n return jo;\n }",
"public static String combine(String...names) {\n return normalizer.combineNames(defaultRule, names);\n }",
"public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}",
"private void processPropertyParentNode(Element node) {\n PropertyDataItem prp = new PropertyDataItem(node.attributeValue(\"name\"));\n\n Iterator childNodes = node.elementIterator();\n\n while (childNodes.hasNext()) {\n\n prp.addChildNode(((Element) childNodes.next()).attributeValue(\"name\"));\n }\n\n properties.add(prp);\n }",
"public String addValToPreorder(Node root)\n\t{\n\t\tpreorder = preorder + root.getNodeValue() + \" \";\n\t\treturn preorder;\n\t}",
"public void addProperty(String s, Object o) {\n }",
"public void addProperty(String s, Object o) {\n }",
"Properties modifyProperties(Properties properties);",
"public void updateServiceNameList(){\n for(String key: serviceList.keySet()){\n serviceNameList.put(key, serviceList.get(key).getServiceName());\n }\n }",
"public void setRequiredParameters(String... requiredPropertiesParameter) {\n for (String item : requiredPropertiesParameter) {\n requiredParameters.add(item);\n }\n }",
"@Override\r\n\tpublic void setSortProperties(List<? extends ISortProperty> sortProperties) {\n\t\t\r\n\t}",
"public void addVarNameLHS(String varName) {\n addUsedVarName(varName);\n \n // Add into LHS only if it's not there already\n if (!varNamesLHS.contains(varName)) {\n varNamesLHS.add(varName);\n }\n }",
"@Override\n\tpublic void addAtBeginning(String data) {\n\t}",
"void addClasses(String... classNames) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException;",
"public void pushFront(String value)\n {\n\tStringListNode node = new StringListNode(value);\n\tnode.next = head;\n\tif (null == head) {\t// the list was empty\n\t tail = node;\n\t}\n\telse {\n\t head.prev = node;\n\t}\n\thead = node;\n }",
"public static String[] checkForMissingProperties(\n\t\tProperties p,\n\t\tString[] requiredPropertyNames) {\n\t\tif (p == null || requiredPropertyNames == null) {\n\t\t\tthrow new IllegalArgumentException(\"null argument\"); //$NON-NLS-1$\n\t\t}\n\t\tList missing = new ArrayList();\n\t\tfor (int i = 0; i < requiredPropertyNames.length; i++) {\n\t\t\tString name = requiredPropertyNames[i];\n\t\t\tif (name == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"null property name [\" + i + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\tif (!p.contains(name)) {\n\t\t\t\tmissing.add(name);\n\t\t\t}\n\t\t}\n\t\tString[] retVal =\n\t\t\t(String[]) missing.toArray(new String[missing.size()]);\n\t\treturn retVal;\n\t}",
"Builder addProperty(String name, String value);",
"java.util.Enumeration getPropertyNames();",
"public void addTitles(String titles){\n\n String titleSplit[] = titles.split(\",\");\n\n for (String section : titleSplit ) {\n this.titles.add(section);\n }\n }",
"public Set<String> getStringPropertyNames();",
"private void addProperties() {\n\t\tfor (PropertyGenerator pg : this.getPropertyGenerators()) {\n\t\t\tpg.generate();\n\t\t\tthis.enqueuePropertyTypeIfNeeded(pg);\n\t\t\tthis.addToSubBindingsIfNeeded(pg);\n\t\t}\n\t}",
"private void syncProfileNames() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tparsedProfiles.get(i).setName(tableSelectionPD.getProfileName(i));\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic Iterable<String> getPropertyKeys() {\n\t\t\treturn null;\n\t\t}",
"public synchronized Enumeration<String> getPropertyNames() {\n return PropertyArray.enumerate(props);\n }",
"public void storeResponseHeaderInto(Properties props, String prefix) {\n MultiValueMap<String,String> map = new MultiValueMap<String,String>();\n Header[] headers = method.getResponseHeaders();\n for (int ix = 0; ix < headers.length; ix++) {\n Header hdr = headers[ix];\n String key = hdr.getName();\n String value = hdr.getValue();\n if (value!=null) {\n // only store headers with values\n // qualify header names to avoid conflict with our properties\n\tif (key == null) {\n\t key = \"header_\" + ix;\n\t}\n\tString propKey = (prefix == null) ? key : prefix + key;\n\tif (!singleValuedHdrs.isEmpty() &&\n\t singleValuedHdrs.contains(key.toLowerCase())) {\n\t map.remove(propKey);\n\t}\n\tmap.put(propKey, value);\n }\n }\n // now combine multiple values into comma-separated string\n for (String key : map.keySet()) {\n Collection<String> val = map.getCollection(key);\n props.setProperty(key, ((val.size() > 1)\n\t\t\t ? StringUtil.separatedString(val, \",\")\n\t\t\t : CollectionUtil.getAnElement(val)));\n }\n }",
"public static void orderByFirstLetter(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.substring(0,1).toLowerCase().compareTo(\n\t\t\t\t\t\t\t s2.substring(0,1).toLowerCase()));\n\t}",
"public void setPropName(String name) {\n m_propName = name;\n }",
"public void addSelectors( Iterable<SelectorName> names ) {\n for (SelectorName name : names) {\n if (name != null) selectors.add(name);\n }\n }",
"private static void InsertNames(ArrayList<Long> productnames,dxm116130Product newProductItem){\n\n\t\t\tfor(int i=0;i<productnames.size();i++){\n\n\t\t\t\tLong name=(Long)productnames.get(i);\n\t\t\t\tif((productListOnNames.isEmpty())||(!productListOnNames.containsKey(name))) {\n\t\t\t\t\tTreeMap<Long,BigDecimal> newSet=new TreeMap<Long,BigDecimal>();\n\t\t\t\t\tnewSet.put(newProductItem.getProductId(),newProductItem.getProductPrice());\n\t\t\t\t\tproductListOnNames.put(name,newSet);\n\t\t\t\t}else{\n\t\t\t\t\tif(productListOnNames.containsKey(name)){\n\t\t\t\t\t\tTreeMap<Long,BigDecimal> existingSet=productListOnNames.get(name);\n\t\t\t\t\t\texistingSet.put(newProductItem.getProductId(),newProductItem.getProductPrice());\n\t\t\t\t\t\tproductListOnNames.put(name,existingSet);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\n\t}",
"protected void insertBeforePlacenames(Layer layer) {\n int compassPosition = 0;\n LayerList layers = model.getLayers();\n for (Layer l : layers) {\n if (l instanceof PlaceNameLayer) {\n compassPosition = layers.indexOf(l);\n }\n }\n layers.add(compassPosition, layer);\n }",
"public static String[] prepend(String[] strings, String string) {\n String[] newStrings = new String[strings.length+1];\n\n newStrings[0] = string;\n System.arraycopy(strings, 0, newStrings, 1, strings.length);\n\n return newStrings;\n }"
] |
[
"0.56635094",
"0.56635094",
"0.56472987",
"0.55260295",
"0.5457618",
"0.5447016",
"0.5377653",
"0.523541",
"0.5196804",
"0.5174032",
"0.51466393",
"0.50801873",
"0.5023141",
"0.50228596",
"0.50143975",
"0.4985073",
"0.49710923",
"0.49150884",
"0.4910746",
"0.48952225",
"0.48946932",
"0.48785388",
"0.48361042",
"0.48310196",
"0.48132163",
"0.48076615",
"0.48051828",
"0.4795011",
"0.4787633",
"0.47774044",
"0.47759968",
"0.47696438",
"0.4766513",
"0.47379202",
"0.472337",
"0.47190377",
"0.47176388",
"0.47136652",
"0.470408",
"0.47038764",
"0.46933693",
"0.4659447",
"0.46566072",
"0.46233574",
"0.46226615",
"0.46114165",
"0.4604046",
"0.45985785",
"0.45714083",
"0.45689464",
"0.45678627",
"0.45645195",
"0.45509297",
"0.45501187",
"0.4535981",
"0.45355713",
"0.45131522",
"0.4512528",
"0.45062703",
"0.45020038",
"0.44939765",
"0.44870132",
"0.44864035",
"0.44799566",
"0.44668055",
"0.44620815",
"0.44545698",
"0.4451228",
"0.44474864",
"0.4436172",
"0.4435423",
"0.44341326",
"0.44325006",
"0.44317672",
"0.44234806",
"0.44234806",
"0.44220972",
"0.44191283",
"0.44185838",
"0.4418542",
"0.43891546",
"0.43879586",
"0.43788373",
"0.4343803",
"0.43408495",
"0.4336604",
"0.43347976",
"0.4333006",
"0.4332069",
"0.43274042",
"0.43250245",
"0.4324787",
"0.4314502",
"0.43127158",
"0.43087655",
"0.43067762",
"0.43038127",
"0.43036002",
"0.4302258",
"0.4301852"
] |
0.7159808
|
0
|
Returns a mapped property name.
|
public String getPropertyNameMapped(String aName) { return aName; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getPropertyName();",
"public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }",
"public String getPropertyName();",
"PropertyName getName();",
"public String getPropertyName() {\n return this.propertyName;\n }",
"public String getPropName() {\n return m_propName;\n }",
"public String getPropertyName()\n {\n return propertyName;\n }",
"public String getPropertyMapKeyName() {\n return m_propertyMapKeyName;\n }",
"public String getName() {\n return getProperty(Property.NAME);\n }",
"protected String getPropertyName(){\n return propertyName;\n }",
"public String propertyName() {\n\t\t\treturn target != null ? target : name;\n\t\t}",
"public String name() {\n return getString(FhirPropertyNames.PROPERTY_NAME);\n }",
"@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"java.lang.String getProperty();",
"public String getStringProperty(String propertyName) ;",
"public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }",
"public String getPropertyName(String column) {\r\n\t\trefineMetaData();\r\n\t\tcolumn = column.toLowerCase();\r\n\t\t// Log.debug(\"%s->%s\", column, col2prop.get(column));\r\n\t\treturn col2prop.get(column);\r\n\t}",
"public static Mapper<String> name() {\n return NAME;\n }",
"public static String getPropertyName(String propertyPath) {\n\t\tint separatorIndex = propertyPath.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);\n\t\treturn (separatorIndex != -1 ? propertyPath.substring(0, separatorIndex) : propertyPath);\n\t}",
"public PropertyMap getPropertyMap(String propertyName);",
"public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}",
"public String get(String propertyName);",
"DavPropertyName getName();",
"public String getPropertyLabel() {\n \t\treturn propertyLabel;\n \t}",
"@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}",
"public String getPropertyName()\n {\n return Integer.toString(getLowNbrParticipants());\n }",
"static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }",
"public String getPropertyTypeName(Property property) {\r\n String propSimpleName = property.getClass().getSimpleName();\r\n return propSimpleName.substring(0, propSimpleName.length() - 8);\r\n }",
"public String getIdPropertyName() {\n \t\treturn idPropertyName;\n \t}",
"public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }",
"String getProperty(String name);",
"public String getProperty(String name);",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }",
"public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }",
"public String getColumnName(String propertyId)\n {\n return propertyId;\n }",
"String getProperty(String property);",
"public String getProperty();",
"private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }",
"public String getPropertyId() {\n return propertyId;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }",
"Property getProperty();",
"Property getProperty();",
"public String getSysPropertyName() {\n return sysProperty;\n }",
"private String getPropertyName(@Nullable final EntityProperty entityProperty, final String fieldName) {\n if (entityProperty != null && !isEmpty(entityProperty.name())) {\n return entityProperty.name();\n }\n return fieldName;\n }",
"@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }",
"public String propKey() {\n return propKey;\n }",
"@JsonProperty(PROP_NAME)\n @Nonnull\n public String getName() {\n return _name;\n }",
"public String getIndexFieldName(String propertyName) {\n return commonIndexFieldNameCache.get(propertyName);\n }",
"private String getPropertyLabel() {\n return itemPropertyDescriptor.getDisplayName(eObject);\n }",
"private String toPropertyName(String element) {\n String refPropertyName = handleRefProperty(element);\n if (refPropertyName != null) {\n return refPropertyName;\n }\n\n StringBuilder sb = new StringBuilder();\n char[] chars = element.toCharArray();\n boolean upper = true;\n for (char c : chars) {\n if (c == '_' || c == '-' || c == '.') {\n upper = true;\n } else if (upper) {\n sb.append(Character.toUpperCase(c));\n upper = false;\n } else {\n sb.append(c);\n }\n }\n return sb.toString();\n }",
"public String getProperty( String name )\n {\n return getProperty( name, false );\n }",
"public String friendlyName() {\n return this.innerProperties() == null ? null : this.innerProperties().friendlyName();\n }",
"public String getProperty(final String iName) {\n return getProperty(iName, null);\n }",
"public java.lang.String getProperty(java.lang.String propertyName) {\n return properties.getProperty(propertyName);\n }",
"public String getProperty(Object obj, String key);",
"public String getName() {\n\t\treturn getNonVisualProperties().getName();\n\t}",
"public String getMapNm() {\n\t\treturn this.mapNm;\n\t}",
"public MemberName toMemberName ()\n {\n return new MemberName(name, memberId);\n }",
"public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}",
"public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }",
"public static String getMSJProperty(String prop){\n\t\tif(propiedades.containsKey(prop)){\n\t\t\treturn propiedades.getString(prop);\t\n\t\t}else{\n\t\t\treturn \"\";\n\t\t}\t\t\t\t\n\t}",
"public String getProperty(final String propertyName) {\n\t\treturn properties.getProperty(propertyName);\n\t}",
"public String getPropKey() {\n return propKey;\n }",
"public String getProperty(String key) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n return this.attributes.getProperty(key);\n }",
"public String prop(String name);",
"protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }",
"public String getProperty(String name) {\n return this.getProperty(name, null);\n }",
"Object getProperty(String name);",
"public String getProperty(String propertyName) throws CoreException;",
"public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}",
"public void setPropName(String name) {\n m_propName = name;\n }",
"String getImplicitBundlePropertyName(int columnIndex);",
"public String[] getPropertyNames();",
"public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}",
"public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}",
"public String getNameKey() {\n return getName();\n }",
"public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }",
"public String getPropertyValue(String propertyName){\n\t\treturn (String) properties.get(propertyName);\n\t}",
"public String getMapName() {\n return mapName;\n }",
"public String getProperty() {\n Object ref = property_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getMapName() {\n return mapName;\n }",
"public String getMapName() {\n return mapName;\n }",
"public String getMapName() {\n return mapName;\n }",
"public String getPropValue(String propertyName){\n\n return pro.getProperty(propertyName);\n\n }",
"public String getUserProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getUserProperty(null, propertyName);\n }",
"public static String propertyField(String fieldName, String propName) {\n\t\treturn propertyField(fieldName, propName, null);\n\t}",
"String getFieldName();",
"Property findProperty(String propertyName);",
"@JsonProperty(\"name\")\n@ApiModelProperty(example = \"myTestMapping\", value = \"A user specified string that is a name for this mapping.\")\n public String getName() {\n return name;\n }",
"public String getPropertyPrefix();",
"public String getProperty() {\n Object ref = property_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n }\n }",
"public String getKeyMapName() {\r\n return keyMapName;\r\n }"
] |
[
"0.7822927",
"0.7598169",
"0.7562221",
"0.75481725",
"0.72723466",
"0.7235471",
"0.72151303",
"0.71569014",
"0.704486",
"0.6897684",
"0.68928504",
"0.68900144",
"0.6788628",
"0.6771011",
"0.6768782",
"0.6763603",
"0.67494994",
"0.67038715",
"0.66971457",
"0.6683523",
"0.66450113",
"0.6618843",
"0.6560782",
"0.65259796",
"0.65211034",
"0.6518067",
"0.64987046",
"0.6469257",
"0.64451236",
"0.64317656",
"0.63601434",
"0.6358574",
"0.6343694",
"0.63426846",
"0.63426846",
"0.63426846",
"0.6314476",
"0.6302592",
"0.63023365",
"0.6261744",
"0.6209435",
"0.6203029",
"0.61928254",
"0.6168153",
"0.6162691",
"0.6162691",
"0.6162691",
"0.6155339",
"0.6153267",
"0.6153267",
"0.61391455",
"0.6133818",
"0.61240447",
"0.6111572",
"0.60969734",
"0.60942084",
"0.6072662",
"0.6066529",
"0.6061728",
"0.605998",
"0.6039865",
"0.6028492",
"0.60267085",
"0.6026479",
"0.60210305",
"0.59945",
"0.5994226",
"0.599184",
"0.5972059",
"0.59650856",
"0.5963455",
"0.595986",
"0.5958847",
"0.59584665",
"0.59396106",
"0.5925768",
"0.5916797",
"0.5891532",
"0.588969",
"0.588369",
"0.5883236",
"0.58808",
"0.58705854",
"0.58623874",
"0.58502847",
"0.5837067",
"0.5829572",
"0.58280027",
"0.5820192",
"0.5820192",
"0.5820192",
"0.58096474",
"0.580491",
"0.5795143",
"0.57914734",
"0.5790468",
"0.5780299",
"0.57793087",
"0.5775493",
"0.5774884"
] |
0.7797019
|
1
|
Returns the number of bindings associated with shape.
|
public int getBindingCount() { List bindings = getBindings(false); return bindings!=null? bindings.size() : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getAdditionalBindingsCount() {\n return additionalBindings_.size();\n }",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"public int getAdditionalBindingsCount() {\n return instance.getAdditionalBindingsCount();\n }",
"final int getNumberOfBoundedBoundSymbols() {\n if (this.boundedBoundSymbols == null) return 0;\n\n int num = 0;\n for (int i = 0; i < this.boundedBoundSymbols.length; i++) {\n if (this.tupleOrs[i]) {\n num++;\n }\n else {\n num += this.boundedBoundSymbols[i].length;\n }\n }\n return num;\n }",
"int getConstraintsCount();",
"public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }",
"public int getWaypointsCount() {\n if (waypointsBuilder_ == null) {\n return waypoints_.size();\n } else {\n return waypointsBuilder_.getCount();\n }\n }",
"public int getGlyphCount() {\n\t\tSet<Key<?>> keys = properties.keys(ObservableProperties.DEFAULT);\n\t\tint ctr = 0;\n\t\tfor (Key<?> key : keys) {\n\t\t\tObject t = properties.get(key);\n\t\t\tif (t instanceof WritingShape && key.toString().length() == 1)\n\t\t\t\tctr++;\n\t\t}\n\t\treturn ctr;\n\t}",
"private int size() {\n assert _vertices.size() == _edges.size();\n return _edges.size();\n }",
"public int size() {\r\n return listeners.size() + weak.size();\r\n }",
"public int size() {\r\n return refs.size();\r\n }",
"int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }",
"public int dimensionCount() {\n\t\treturn point.length;\n\t}",
"public final int size() {\n return points.size();\n }",
"public int size() {\n\t\treturn points.size();\n\t}",
"int getRefsCount();",
"public int size () {\n\t\treturn points.size();\n\t}",
"public int getNumberOfPolygons()\r\n {\r\n return theNumberOfPolygons;\r\n }",
"@Override\r\n\tpublic Integer getBind_house_cnt() {\n\t\treturn super.getBind_house_cnt();\r\n\t}",
"public int length() {\n return this.weightMatrix.length;\n }",
"int getDimensionsCount();",
"public int size() {\n return points.size();\n }",
"public int getNumTypeBound() {\n return getTypeBoundList().getNumChild();\n }",
"public int size() {\n return this.points.size();\n }",
"@Override\n\tpublic int numElements() {\n\t\treturn stencil.holes.length;\n\t}",
"public int size()\n {\n return points.size();\n }",
"public int getNumConstraint() {\n return getConstraintList().getNumChild();\n }",
"public int getNumVertices();",
"public int size() {\n return neurons.size();\n }",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"@Override\r\n\t@Basic\r\n\tpublic int getNbSquares() {\r\n\t\treturn squares.size();\r\n\t}",
"public int getNPoints() {\n\t\treturn points.size();\n\t}",
"public int size() {\n \n return point2DSET.size();\n }",
"public int size() {\n return mPoints.size();\n }",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"public int getInputTensorCount() {\n checkNotClosed();\n return wrapper.getInputTensorCount();\n }",
"public int getFigureCount() {\n if (figureBuilder_ == null) {\n return figure_.size();\n } else {\n return figureBuilder_.getCount();\n }\n }",
"public int getNumEdges();",
"public int size() {\n\t\treturn adjacencyMatrix != null ? adjacencyMatrix.length : 0;\n\t}",
"public int getPointCount() {\n return(_pts.length);\n }",
"public int getNumUnpinnedBuffers() {\n\t\treturn replace.size();\n\t}",
"public int size()\n {\n return numEdges;\n }",
"private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}",
"public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}",
"public int rectangleCount() {\n return this.root.rectangleCount();\n }",
"Integer getConnectorCount();",
"public int getNumElements() {\n return theMap.size();\n }",
"public int countPoolMaps(){\n\n\t\treturn poolMaps.size();\n\t}",
"private int getVariablesNumberInMap() {\n\t\tSet<String> variables = KeyValue.getFirstLevelKeys();\n\t\tint count = 0;\n\t\tfor (String name : variables) {\n\t\t\tif (!name.contains(\"~\")) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public static int getSize() {\n\n\t\treturn strategyChain.size();\n\t}",
"public int numberReferencesToThis() {\n return referenceToThis.size();\n }",
"@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"int getNumberOfEdges();",
"public int size() {\n\t\treturn vertices.size();\n\t}",
"@java.lang.Override\n public int getWaypointsCount() {\n return waypoints_.size();\n }",
"public int getResizeElementCount() { return vboSet.getResizeElementCount(); }",
"int getPointsCount();",
"public int getXYPairCount() {\n if (xYPairBuilder_ == null) {\n return xYPair_.size();\n } else {\n return xYPairBuilder_.getCount();\n }\n }",
"public static int size() {\n\t\treturn anisLookup.size();\n\t}",
"public int getInputsCount() {\n if (inputsBuilder_ == null) {\n return inputs_.size();\n } else {\n return inputsBuilder_.getCount();\n }\n }",
"public int getInputsCount() {\n if (inputsBuilder_ == null) {\n return inputs_.size();\n } else {\n return inputsBuilder_.getCount();\n }\n }",
"public int getInputsCount() {\n if (inputsBuilder_ == null) {\n return inputs_.size();\n } else {\n return inputsBuilder_.getCount();\n }\n }",
"public int getRecordCount(){\n return numShapes;\n }",
"public int size() {\n\t\treturn nvPairs.size() >> 1;\n\t}",
"@Override\n\tpublic int getDimension() {\n\t\tint count = 0;\n\t\tfor ( SingleEquationStatement equation : equations.values() ) {\n\t\t\tif ( equation.getOrder() > 0 ) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}",
"public int size() {\n return pointsSet.size();\n }",
"public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}",
"public int getNumEdges() {\n\t\treturn edges.size();\n\t}",
"int countAnnotations() {\n \tSet<Annotation> set = new LinkedHashSet<Annotation>();\n \tfor (Layer layer : layers.values())\n \t\tset.addAll(layer);\n \treturn set.size();\n }",
"public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }",
"int getVarsCount();",
"public int sizeOfIndicatorRefArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(INDICATORREF$0);\n }\n }",
"int getWayCount();",
"int getInputsCount();",
"int getInputsCount();",
"int getInputsCount();",
"int numberOfDimensions();",
"public int getInputsCount() {\n return inputs_.size();\n }",
"public int getInputsCount() {\n return inputs_.size();\n }",
"public int getInputsCount() {\n return inputs_.size();\n }",
"public int getNumElements() {\n return mat.getNumCols()*mat.getNumRows();\n }",
"public int getVertexCount() {\n return map.keySet().size();\n }",
"@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}",
"public static Integer getNumberOfships() {\n\t\treturn NUMBEROFSHIPS;\n\t}",
"public int size() {\n\t\treturn pointList.size();\n\t}",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }",
"public int sizeOfGPSPositionArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GPSPOSITION$2);\r\n }\r\n }",
"public int size() {\n return delegate.size();\n }",
"public abstract int getComponentCount();",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }",
"public int size() {\n int size = 0;\n for (Collection<V> value : map.values()) {\n size += value.size();\n }\n return size;\n }",
"public int getNumVertices() {\n\t\treturn vertices.size();\n\t}",
"@java.lang.Override\n public com.google.protobuf.UInt64Value getPolygonsCount() {\n return polygonsCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : polygonsCount_;\n }",
"public int getVertexCount();",
"public static long getNumberStates(Component comp) {\n\t\tAtomType atomicType = (AtomType) comp.getType();\n\t\treturn ( (PetriNet) atomicType.getBehavior()).getState().size();\n\t}",
"int sizeOfBridgeElementArray();",
"int getIndicesCount();",
"public int size() {\n return pointSet.size();\n }"
] |
[
"0.6779319",
"0.6777948",
"0.6730024",
"0.6513798",
"0.64465207",
"0.63402283",
"0.60905015",
"0.6061287",
"0.5989683",
"0.5928357",
"0.58940125",
"0.5887913",
"0.5881092",
"0.58465886",
"0.584543",
"0.58414245",
"0.58254814",
"0.5823663",
"0.5816877",
"0.5811503",
"0.5772966",
"0.5742539",
"0.5719772",
"0.571667",
"0.5714318",
"0.5704296",
"0.56997585",
"0.56858164",
"0.5672306",
"0.56705797",
"0.56625754",
"0.56540924",
"0.56492555",
"0.5646295",
"0.5644758",
"0.5635965",
"0.5627881",
"0.56261086",
"0.5594967",
"0.55893",
"0.5585206",
"0.5575435",
"0.5569811",
"0.55638134",
"0.5560739",
"0.5558317",
"0.55428183",
"0.5541781",
"0.5539975",
"0.5530873",
"0.5521262",
"0.5515841",
"0.55127954",
"0.55074936",
"0.5506923",
"0.55030394",
"0.5500259",
"0.5499738",
"0.5472605",
"0.5471796",
"0.5471796",
"0.5471796",
"0.5461333",
"0.5459712",
"0.54588336",
"0.54580104",
"0.54500777",
"0.5439878",
"0.543562",
"0.54351467",
"0.5435115",
"0.5433903",
"0.54322344",
"0.5431067",
"0.5431067",
"0.5431067",
"0.5412286",
"0.54084766",
"0.54084766",
"0.54084766",
"0.53983045",
"0.5387987",
"0.5386271",
"0.53801304",
"0.53781813",
"0.53735197",
"0.5367007",
"0.5367007",
"0.5366686",
"0.53646094",
"0.5362712",
"0.53622854",
"0.536106",
"0.53590816",
"0.53587765",
"0.5357337",
"0.5354175",
"0.53534573",
"0.5352947",
"0.53528976"
] |
0.8104929
|
0
|
Returns the individual binding at the given index.
|
public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return instance.getAdditionalBindings(index);\n }",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return additionalBindings_.get(index);\n }",
"IIndexFragmentBinding findBinding(IASTName astName) throws CoreException;",
"public Object get(int index) {\r\n return deref(refs.get(index));\r\n }",
"public Binding removeBinding(int anIndex) { return getBindings(true).remove(anIndex); }",
"Binding getBinding();",
"public Tuple get(int index){\r\n\t\treturn tuples.get(index);\r\n\t}",
"public Binding getBinding(String aPropertyName)\n{\n // Iterate over bindings and return the first that matches given property name\n for(int i=0, iMax=getBindingCount(); i<iMax; i++)\n if(getBinding(i).getPropertyName().equals(aPropertyName))\n return getBinding(i);\n return null; // Return null since binding not found\n}",
"public GrammarComponent get(int index) {\n return children.get(index);\n }",
"IIndexFragmentBinding adaptBinding(IBinding binding) throws CoreException;",
"@SuppressWarnings(\"unchecked\")\n public <T> Binding<T> getBinding(Key<T> key) {\n return (Binding<T>) bindings.get(key);\n }",
"public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(\n int index) {\n return additionalBindings_.get(index);\n }",
"public IDecisionVariable getBoundContainerElement(int index) {\n return 0 <= index && index < nestedElements.size() ? nestedElements.get(index) : null;\n }",
"public GPoint get(int index) {\n\t\treturn points.get(index);\n\t}",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"public DictionaryCommand get(int index) throws IndexOutOfBoundsException;",
"public abstract int getBindingVariable();",
"public RatPoly get(int index) {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->get() unimplemented!\\n\");\n }",
"public static PublishLogDataStrategy getElementAt(int index) {\n\n\t\treturn strategyChain.get(index);\n\t}",
"public Integer getConnection(int index) {\n\t\treturn connections.get(index);\n\t}",
"public GradedItem get(int index) {\n\t\treturn this.gradedItems.get(index);\n\t}",
"public PointF get(int index)\n {\n int realIndex = wrap(index, size());\n return Geometry.clone(points.get(realIndex));\n }",
"public Schedule getBuddy(int index) {\n\n return buddies.get(index);\n }",
"PACKET getIndex(int index);",
"Object get(int index);",
"Object get(int index);",
"public int get(int index);",
"public Object get(int index);",
"public Object get(int index);",
"public Object get(int index) {\r\n return entry(index).element;\r\n }",
"public static Building getBuilding(int index) {\n return buildings.get(index);\n }",
"public Entry get(int index) {\r\n\t\treturn stmts.get(index);\r\n\t}",
"public Person getPerson(int index) {\r\n return this.personList.get(index);\r\n }",
"public static String bName(int index) {\n\t\treturn ((IdentifierResolver) bIdents.get(index)).getBName();\n\t}",
"public Object get(int index)\n {\n return items[index];\n }",
"public DomainElement elementForIndex(int index);",
"public Ship get(int index) {\n\t\tif ((index < 0) || (index > ships.size() - 1)) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Index out of Bounds.\");\n\t\t}\n\t\treturn ships.get(index);\n\n\t}",
"public Item get(int index) {\r\n\t\treturn catalog.get(index);\r\n\t}",
"public Layer getElement(int index) {\n\t\treturn layers[index];\n\t}",
"public CoreResourceHandle get(int index) {\n if (index >= 0 && index < doSize()) {\n return doGet(index);\n }\n throw new IndexOutOfBoundsException();\n }",
"public T get(int index) {\n return items[(nextFirst + 1 + index) % capacity];\n }",
"public Assignment getAssignment(int index) {\n return assignments.get(index); \n }",
"public Integer get(int index){\n return list.get(index);\n }",
"public Square getElement(int index) {\n Square tmp = this.head;\n for (int i = 0; i < index; i++) {\n tmp = tmp.getNext();\n }\n return tmp;\n }",
"public Binding getBinding() {\n\t\treturn binding;\n\t}",
"public Object get(int index) {\n Node answer = first;\n for (int i = 0; i < index; i++) {\n answer = answer.next;\n }\n return answer.data;\n }",
"public E get(int index) {\r\n return items.get(index);\r\n }",
"public static Module getModuleForIndex(int index) {\r\n return getModule((String) KEYS.get(index));\r\n }",
"public Object get(final int index) {\n return super.get(index);\n }",
"int getItem(int index);",
"public RuleNode get(int index) {\n return ruleNodes.get(index);\n }",
"public Item get(int index) {\n int track = nextFirst; //It does not modify nextFirst\n track = moveForward(track, index + 1);\n return items[track];\n }",
"public Slot getSlot(int index) {\n\t\tif(index < NUM_MAIN_SLOTS) return mainSlots.get(index);\n\t\treturn null;\n\t}",
"public interface BindingPattern extends IHasPosition {\n\n int getFormalIndex();\n}",
"String get(int index);",
"private Element findByIndex(int index) {\n\t\tElement e = head;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\te = e.next;\n\t\t}\n\t\treturn e;\n\t}",
"public Binding getBinding() {\n return binding;\n }",
"public Neurone getConnexion(int index) {\n\t\treturn connexions.get(index);\n\t}",
"public Binding getBinding() { \n\t\tif (myBinding == null) {\n\t\t\tmyBinding = new Binding();\n\t\t}\n\t\treturn myBinding;\n\t}",
"public T get(int index) {\n return list.get(index);\n }",
"Resolvable<String> getKey(int index);",
"IIndexFragmentBinding[] findBindings(char[] name, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;",
"public int getItem(int index) {\n return item_.getInt(index);\n }",
"private void removeAdditionalBindings(int index) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.remove(index);\n }",
"public Object get(int index) {\n\t\tif (this.index == index) {\n\t\t\treturn object;\n\t\t} else {\n\t\t\treturn nextItem.get(index);\n\t\t}\n\t}",
"public ITWindow getItem(int index) {\n\t\tDispatch item = Dispatch.call(object, \"Item\", index).toDispatch();\n\t\treturn new ITWindow(item);\n\t}",
"Connector getConnector(int index);",
"public Builder setAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n copyOnWrite();\n instance.setAdditionalBindings(index, builderForValue);\n return this;\n }",
"public Evolvable getIndividual(int index){\n\t\treturn population[index];\n\t}",
"public E get(int index)\r\n {\r\n checkValidIndex(index);\r\n return listIterator(index).next();\r\n }",
"public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}",
"private void setAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.set(index, builderForValue.build());\n }",
"public T get(int index) {\r\n return getNodeAtIndex(index).getData();\r\n }",
"public T get(int index) {\n return v.get(index);\n }",
"public Expression getParameter(int parameterIndex) {\n return parameters[parameterIndex];\n }",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"public Person get(int index) {\r\n\t\t// if the queue size is 0 then return null\r\n\t\tif(q.size() == 0)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn q.get(index);\r\n\t}",
"Object getElementAt(int index);",
"public Task get(int index){\n return tasks.get(index);\n }",
"public String itemAt(int index) {\n int counter = 1;\n LinkedList i = this;\n\n while (i.next != null && counter < index) {\n i = i.next;\n counter++;\n }\n return i.name;\n }",
"public T get(int index) {\n return this.list[index];\n }",
"public Shape shapeAt(int index) throws IndexOutOfBoundsException\n {\n // Return the child at index\n return children.get(index);\n }",
"public native String getItem(Number index);",
"public ContainerElementAccessor bind(IDecisionVariable variable, int index, EvaluationContext context) {\n super.bind(variable, context);\n elementVariable = variable.getNestedElement(index);\n return this;\n }",
"public String getAsSlot(int i);",
"public int getItem(int index) {\n return item_.getInt(index);\n }",
"public Object get(int index) {\n isValidIndex(index);\n return getNode(index).data;\n }",
"public Builder setAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n copyOnWrite();\n instance.setAdditionalBindings(index, value);\n return this;\n }",
"public Item get(int index) {\n StuffNode ptr = sentinel;\n int ind = 0;\n if ((index + 1 > this.size()) || this.isEmpty() ) {\n return null;\n }\n while (ind <= index) {\n ptr = ptr.next;\n ind += 1;\n }\n return ptr.item;\n }",
"public E get(int index) {\n\t\tcheckBounds(index);\r\n\t\treturn getNode(index).getData();\r\n\t}",
"public String get(int index){\n\t\treturn list.get(index);\n\t}",
"public String get(int index){\n return words.get(index);\n }",
"public final TokenStatement get(final int index) {\r\n\t\tif (index >= this.size) {\r\n\t\t\tthrow new IndexOutOfBoundsException( \"Index: \" + index + \", Size: \" + this.size );\r\n\t\t}\r\n\t\treturn this.elementData[index];\r\n\t}",
"public T getByIndex(int index) {\n\n return this.myList[index];\n }",
"PortMappingInfo getPortMappingInfoByIndex(int index) throws NotDiscoverUpnpGatewayException, UpnpException;",
"@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}",
"public static Tasks get(int index) {\n return tasks.get(index);\n }",
"public ObjectWithProperties get(int index) {\n return delegate.get(index);\n }"
] |
[
"0.65619504",
"0.65215254",
"0.6462573",
"0.61078525",
"0.60640293",
"0.5996556",
"0.59910876",
"0.5874622",
"0.58086246",
"0.5784096",
"0.5779396",
"0.5773203",
"0.5772038",
"0.5760139",
"0.5750286",
"0.5743673",
"0.5741656",
"0.57401234",
"0.57283163",
"0.57267374",
"0.57207656",
"0.57020885",
"0.5679291",
"0.5653152",
"0.5634928",
"0.5634928",
"0.5620036",
"0.55982006",
"0.55982006",
"0.55903715",
"0.55736506",
"0.55335104",
"0.55291903",
"0.5525287",
"0.5509822",
"0.5493693",
"0.5481505",
"0.54648495",
"0.5457303",
"0.54536086",
"0.5435795",
"0.54339194",
"0.5414025",
"0.5395985",
"0.5393926",
"0.53741485",
"0.5370531",
"0.53681934",
"0.53570974",
"0.53456354",
"0.53402376",
"0.53375536",
"0.5330326",
"0.53193057",
"0.5309468",
"0.53093183",
"0.5297427",
"0.52854484",
"0.5278797",
"0.5258086",
"0.52566016",
"0.52550876",
"0.5253224",
"0.5251627",
"0.524885",
"0.52486277",
"0.5241778",
"0.52407795",
"0.52349603",
"0.52326226",
"0.52295303",
"0.52251166",
"0.5220633",
"0.52196354",
"0.52188224",
"0.5188884",
"0.5188884",
"0.5188884",
"0.5187857",
"0.51780784",
"0.51702917",
"0.5169969",
"0.516796",
"0.51679415",
"0.5158668",
"0.5155677",
"0.5148936",
"0.5145303",
"0.5141633",
"0.5140947",
"0.51386786",
"0.5119983",
"0.51077294",
"0.51042897",
"0.5103283",
"0.50994486",
"0.50984347",
"0.5095795",
"0.5089294",
"0.5087867"
] |
0.86278373
|
0
|
Returns the list of bindings, with an option to create if missing.
|
protected List <Binding> getBindings(boolean doCreate)
{
List <Binding> bindings = (List)get("RibsBindings");
if(bindings==null && doCreate)
put("RibsBindings", bindings = new ArrayList());
return bindings;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Iterator getBindings() {\r\n\t\treturn bindings == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(bindings.values());\r\n\t}",
"@Nonnull\n SystemScriptBindings getBindings();",
"private void addGetChildBindings() {\n\t\tthis.pathBindingClass.addImports(Binding.class, List.class);\n\t\tGMethod children = this.pathBindingClass.getMethod(\"getChildBindings\").returnType(\"List<Binding<?>>\")\n\t\t\t\t.addAnnotation(\"@Override\");\n\t\tchildren.body.line(\"List<Binding<?>> bindings = new java.util.ArrayList<Binding<?>>();\");\n\t\tfor (String foundSubBinding : this.foundSubBindings) {\n\t\t\tchildren.body.line(\"bindings.add(this.{}());\", foundSubBinding);\n\t\t}\n\t\tchildren.body.line(\"return bindings;\");\n\t}",
"public void setBindings(Binding[] binds) {\n this.binds = binds;\n }",
"public void setBindings(Binding[] binds) {\n this.binds = binds;\n }",
"public yandex.cloud.api.access.Access.ListAccessBindingsResponse listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListAccessBindingsMethod(), getCallOptions(), request);\n }",
"@Override\n\tpublic String getBindingTypes() {\n\t\treturn null;\n\t}",
"public java.util.List<com.google.api.HttpRule> getAdditionalBindingsList() {\n return additionalBindings_;\n }",
"List<Exp> varBind() {\n List<Exp> lBind = new ArrayList<Exp>();\n for (int i = 0; i < size(); i++) {\n Exp f = get(i);\n if ((f.type == VALUES) || (f.isFilter() && f.size() > 0)) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND) {\n if (bind.isBindCst()) {\n // ?x = cst\n lBind.add(bind);\n } else {\n // filter has BIND\n // TODO: when there is a UNION, variables of BIND may not be all bound \n // so we cannot bind here\n //add(i, bind);\n //i++;\n }\n }\n }\n }\n return lBind;\n }",
"public java.util.List<com.google.api.HttpRule> getAdditionalBindingsList() {\n return java.util.Collections.unmodifiableList(\n instance.getAdditionalBindingsList());\n }",
"public DCPList getBinding() {\n return binding;\n }",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return additionalBindings_.get(index);\n }",
"public com.google.common.util.concurrent.ListenableFuture<yandex.cloud.api.access.Access.ListAccessBindingsResponse> listAccessBindings(\n yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request);\n }",
"private void registerBindings(){\t\t\n\t}",
"private void registerBindings(){\t\t\n\t}",
"public static List<VariableDeclaration> getBindingManagementVars()\n {\n return FrameworkDefs.bindingManagementVars; \n }",
"public boolean needsBinding(){\n\t\tArrayList<String> bindVars = getNeedBindingVars();\n\t\tif(bindVars.isEmpty())\n\t\t\treturn false;\n\t\telse return true;\n\t}",
"public java.util.List<? extends com.google.api.HttpRuleOrBuilder> \n getAdditionalBindingsOrBuilderList() {\n return additionalBindings_;\n }",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return instance.getAdditionalBindings(index);\n }",
"public void installBindings(TableRep bindings) throws RemoteException, Error;",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"supplier.supplierBusinessMode.name\", String.class, this.txtBusinessMode, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.inviteType.name\", String.class, this.txtInviteType, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.name\", String.class, this.txtSupplierName, \"text\");\n\t\tdataBinder.registerBinding(\"supplier\", com.kingdee.eas.fdc.invite.supplier.SupplierStockInfo.class, this.prmtSupplier, \"data\");\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"evaluationType\", com.kingdee.eas.fdc.invite.supplier.SupplierEvaluationTypeInfo.class, this.prmtEvaluationType, \"data\");\n\t\tdataBinder.registerBinding(\"template\", com.kingdee.eas.fdc.invite.supplier.SupplierAppraiseTemplateInfo.class, this.prmtTemplate, \"data\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.purchaseOrgUnit.name\", String.class, this.txtOrg, \"text\");\n\t\tdataBinder.registerBinding(\"lygcScore\", java.math.BigDecimal.class, this.txtLYGCScore, \"value\");\n\t\tdataBinder.registerBinding(\"lyhRate\", java.math.BigDecimal.class, this.txtLYHScore, \"value\");\n\t\tdataBinder.registerBinding(\"isOver\", boolean.class, this.cbIsOver, \"selected\");\n\t\tdataBinder.registerBinding(\"srcGrade\", com.kingdee.eas.fdc.invite.supplier.GradeSetUpInfo.class, this.prmtSrcGrade, \"data\");\n\t\tdataBinder.registerBinding(\"srcLevel\", com.kingdee.eas.fdc.invite.supplier.LevelSetUpInfo.class, this.prmtSrcLevel, \"data\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"lygcRate\", java.math.BigDecimal.class, this.txtLYGCRate, \"value\");\n\t\tdataBinder.registerBinding(\"lyhScroe\", java.math.BigDecimal.class, this.txtLYHRate, \"value\");\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\n\t\tdataBinder.registerBinding(\"supplier.storageNumber\", String.class, this.txtStorageNumber, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.storageDate\", java.util.Date.class, this.pkStorageDate, \"value\");\n\t\tdataBinder.registerBinding(\"supplier.manager\", String.class, this.txtManager, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.contractor\", String.class, this.txtContractor, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizePerson\", String.class, this.txtLinkPerson, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizePhone\", String.class, this.txtLinkPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.contractorPhone\", String.class, this.txtContractorPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.managerPhone\", String.class, this.txtManagerPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.partProject\", String.class, this.txtPartProject, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizeJob\", String.class, this.txtLinkJob, \"text\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"grade\", com.kingdee.eas.fdc.invite.supplier.GradeSetUpInfo.class, this.prmtGrade, \"data\");\n\t\tdataBinder.registerBinding(\"level\", com.kingdee.eas.fdc.invite.supplier.LevelSetUpInfo.class, this.prmtLevel, \"data\");\n\t\tdataBinder.registerBinding(\"isPass\", boolean.class, this.cbIsPass, \"selectedItem\");\t\t\n\t}",
"public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(\n int index) {\n return additionalBindings_.get(index);\n }",
"private void addBinders(int n, Binder[] binder, List<Condition> conds)\n {\n List<Binder> binder0 = new ArrayList<Binder>(n);\n for (int i=0; i<n; i++)\n binder0.add(transform(binder[i]));\n for (Condition c : conds)\n {\n Expression ce = n == 0 ? c.exp : new LetExp(binder0, c.exp);\n conditions.add(c.clone(ce));\n }\n }",
"public PeerBuilder bindings(Bindings bindings) {\n\t\tthis.bindings = bindings;\n\t\treturn this;\n\t}",
"public void listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.access.Access.ListAccessBindingsResponse> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccessBindingsMethod(), responseObserver);\n }",
"private void addExtraBindings() {\n }",
"public void backupBindings(TableRep bindings) throws RemoteException, Error;",
"public void listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.access.Access.ListAccessBindingsResponse> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request, responseObserver);\n }",
"public ArrayList<String> getNeedBindingVars(){\n\t\tArrayList<String> vars = new ArrayList<String>();\n\t\tfor(int i=0; i<terms.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tSourceAttribute sa = source.getAttr(i);\n\t\t\tString var = t.getVar();\n\t\t\tif(t.needsBinding(sa.needsBinding())){\n\t\t\t\tif(t instanceof FunctionTerm){\n\t\t\t\t\tvars.addAll(t.getFunction().getNeedBindingVars());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tvars.add(var);\n\t\t\t}\n\t\t}\n\t\treturn vars;\n\t}",
"public int getBindingCount() { List bindings = getBindings(false); return bindings!=null? bindings.size() : 0; }",
"public HashMap<IClassDefinition, BindingDatabase> getBindingMap(){\n return bindingMap;\n }",
"public NamingEnumeration<Binding> listBindings( final Name name )\n throws NamingException\n {\n if ( isSelf( name ) )\n {\n return doLocalListBindings();\n }\n else\n {\n // Perhaps 'name' names a context\n final Context context = lookupSubContext( name );\n return context.listBindings( \"\" );\n }\n }",
"IIndexFragmentBinding[] findBindings(char[][] names, IndexFilter filter, IProgressMonitor monitor) throws CoreException;",
"@Override\n public List<MBindingContext> getBindingContexts()\n {\n return null;\n }",
"public int getAdditionalBindingsCount() {\n return additionalBindings_.size();\n }",
"IIndexFragmentBinding[] findBindings(char[] name, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;",
"private void applyBindings(Bindings bindings) {\n\t\tfor (Map.Entry<String, Object> binding : bindings.entrySet()) {\n\t\t\tluaState.pushJavaObject(binding.getValue());\n\t\t\tString variableName = binding.getKey();\n\t\t\tint lastDotIndex = variableName.lastIndexOf('.');\n\t\t\tif (lastDotIndex >= 0) {\n\t\t\t\tvariableName = variableName.substring(lastDotIndex + 1);\n\t\t\t}\n\t\t\tluaState.setGlobal(variableName);\n\t\t}\n\t}",
"public static MemberMemberBinding memberBind(Method method, Iterable<MemberBinding> bindings) { throw Extensions.todo(); }",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"name\", String.class, this.name, \"text\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.creator, \"data\");\n\t\tdataBinder.registerBinding(\"relateTask\", com.kingdee.eas.fdc.schedule.FDCScheduleTaskInfo.class, this.relationTask, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.creatorTime, \"value\");\n\t\tdataBinder.registerBinding(\"imgDescription\", String.class, this.txtDescription, \"text\");\n\t\tdataBinder.registerBinding(\"entries.size\", String.class, this.kdtEntries, \"size.text\");\n\t\tdataBinder.registerBinding(\"entries.sizeInByte\", int.class, this.kdtEntries, \"sizeInByte.text\");\n\t\tdataBinder.registerBinding(\"entries.fileName\", String.class, this.kdtEntries, \"fileName.text\");\n\t\tdataBinder.registerBinding(\"entries.name\", String.class, this.kdtEntries, \"name.text\");\n\t\tdataBinder.registerBinding(\"entries\", com.kingdee.eas.fdc.schedule.ProjectImageEntryInfo.class, this.kdtEntries, \"userObject\");\t\t\n\t}",
"public NamingEnumeration listBindings(Name name) throws NamingException {\n\t\tsubCtxResult\tsub = locateSubContext(name);\r\n\t\t\r\n\t\tif (sub.ctx != null) {\r\n\t\t\treturn sub.ctx.listBindings(sub.subName);\r\n\t\t} else if (sub.o != null) {\r\n\t\t\tthrow new NotContextException(name + \" is not a subcontext\");\r\n\t\t} else if (sub.empty) {\r\n\t\t\tArrayList\tlist = new ArrayList();\r\n\t\t\tIterator \ti = extBindings.keySet().iterator();\r\n\t\t\twhile (i.hasNext()) {\r\n\t\t\t\tString s = (String)i.next();\r\n\t\t\t\tlist.add(new Binding(s, extBindings.get(s)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn new SafmqNamingEnum(list);\r\n\t\t}\r\n\t\tthrow new NameNotFoundException(name + \" was not found in this context\");\r\n\t}",
"private void addParBinders(Binder[] binder, List<Condition> conds)\n {\n int n = binder.length;\n List<Binder> binder0 = new ArrayList<Binder>(n);\n for (int i=0; i<n; i++)\n binder0.add(transform(binder[i]));\n for (Condition c : conds)\n {\n Expression ce = n == 0 ? c.exp : new LetParExp(binder0, c.exp);\n conditions.add(c.clone(ce));\n }\n }",
"Binding getBinding();",
"boolean hasIsBinding();",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"changeDate\", java.util.Date.class, this.pkChangeDate, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom\", com.kingdee.eas.fdc.sellhouse.RoomInfo.class, this.f7Room, \"data\");\n\t\tdataBinder.registerBinding(\"bizType\", com.kingdee.eas.fdc.sellhouse.ChangeBizTypeEnum.class, this.comboBizType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"changeReason\", com.kingdee.eas.fdc.sellhouse.ChangeReasonInfo.class, this.f7ChangeReson, \"data\");\n\t\tdataBinder.registerBinding(\"handler\", com.kingdee.eas.base.permission.UserInfo.class, this.f7Handler, \"data\");\n\t\tdataBinder.registerBinding(\"attachEntry\", com.kingdee.eas.fdc.sellhouse.ChangeManageAttachEntryInfo.class, this.kdtAttachEntry, \"userObject\");\n\t\tdataBinder.registerBinding(\"attachEntry.property\", com.kingdee.eas.fdc.sellhouse.PropertyEnum.class, this.kdtAttachEntry, \"property.text\");\n\t\tdataBinder.registerBinding(\"attachEntry.context\", String.class, this.kdtAttachEntry, \"context.text\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"customerPhone\", String.class, this.txtTel, \"text\");\n\t\tdataBinder.registerBinding(\"isSignChangeName\", boolean.class, this.cbIsSignChangeName, \"selected\");\n\t\tdataBinder.registerBinding(\"quitAmount\", java.math.BigDecimal.class, this.txtQuitAmount, \"value\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"payType\", com.kingdee.eas.fdc.sellhouse.SHEPayTypeInfo.class, this.f7PayType, \"data\");\n\t\tdataBinder.registerBinding(\"agioScheme\", com.kingdee.eas.fdc.sellhouse.AgioSchemeInfo.class, this.f7AgioScheme, \"data\");\n\t\tdataBinder.registerBinding(\"agioDesc\", String.class, this.txtAgioDes, \"text\");\n\t\tdataBinder.registerBinding(\"lastAgio\", java.math.BigDecimal.class, this.txtAgio, \"value\");\n\t\tdataBinder.registerBinding(\"dealTotalAmount\", java.math.BigDecimal.class, this.txtDealTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"contractTotalAmount\", java.math.BigDecimal.class, this.txtContractTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellAmount\", java.math.BigDecimal.class, this.txtSellAmount, \"value\");\n\t\tdataBinder.registerBinding(\"planningCompensate\", java.math.BigDecimal.class, this.txtPlanningCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"cashSalesCompensate\", java.math.BigDecimal.class, this.txtCashSalesCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"areaCompensate\", java.math.BigDecimal.class, this.txtAreaCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"dealBuildPrice\", java.math.BigDecimal.class, this.txtDealBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"contractBuildPrice\", java.math.BigDecimal.class, this.txtContractBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"planningArea\", java.math.BigDecimal.class, this.txtPlanningArea, \"value\");\n\t\tdataBinder.registerBinding(\"preArea\", java.math.BigDecimal.class, this.txtPreArea, \"value\");\n\t\tdataBinder.registerBinding(\"actualArea\", java.math.BigDecimal.class, this.txtActualArea, \"value\");\n\t\tdataBinder.registerBinding(\"contractRoomPrice\", java.math.BigDecimal.class, this.txtContractRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"dealRoomPrice\", java.math.BigDecimal.class, this.txtDealRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"valuationType\", com.kingdee.eas.fdc.sellhouse.CalcTypeEnum.class, this.comboValuationType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"accFundAmount\", java.math.BigDecimal.class, this.txtAFundAmount, \"value\");\n\t\tdataBinder.registerBinding(\"loanAmount\", java.math.BigDecimal.class, this.txtLoanAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellType\", com.kingdee.eas.fdc.sellhouse.SellTypeEnum.class, this.comboSellType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"strdBuildingPrice\", java.math.BigDecimal.class, this.txtBuildingPrice, \"value\");\n\t\tdataBinder.registerBinding(\"strdRoomPrice\", java.math.BigDecimal.class, this.txtRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom.roomModel.name\", String.class, this.txtRoomModel, \"text\");\n\t\tdataBinder.registerBinding(\"strdTotalAmount\", java.math.BigDecimal.class, this.txtStandardTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"attachmentAmount\", java.math.BigDecimal.class, this.txtAttachPropertyTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount1, \"value\");\n\t\tdataBinder.registerBinding(\"isFitmentToContract\", boolean.class, this.chkIsFitmentToContract, \"selected\");\n\t\tdataBinder.registerBinding(\"fitmentStandard\", com.kingdee.eas.fdc.sellhouse.DecorationStandardInfo.class, this.f7FitmentStandard, \"data\");\n\t\tdataBinder.registerBinding(\"fitmentPrice\", java.math.BigDecimal.class, this.txtFitmentPrice, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount, \"value\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"auditTime\", java.util.Date.class, this.pkAuditDate, \"value\");\n\t\tdataBinder.registerBinding(\"auditor\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtAuditor, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateUser\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtModifier, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateTime\", java.sql.Timestamp.class, this.pkModifyDate, \"value\");\n\t\tdataBinder.registerBinding(\"details\", String.class, this.details, \"text\");\n\t\tdataBinder.registerBinding(\"changeType\", com.kingdee.eas.fdc.sellhouse.ChangeTypeEnum.class, this.cbChangeType, \"selectedItem\");\t\t\n\t}",
"void setBind() {\n for (int i = 1; i < size(); i++) {\n Exp f = get(i);\n if (f.isFilter() && f.size() > 0) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND\n // no bind (?x = ?y) in case of JOIN\n && (!Query.testJoin || bind.isBindCst())) {\n int j = i - 1;\n while (j > 0 && get(j).isFilter()) {\n j--;\n }\n if (j >= 0) {\n Exp g = get(j);\n if ((g.isEdge() || g.isPath())\n && (bind.isBindCst() ? g.bind(bind.first().getNode()) : true)) {\n bind.status(true);\n g.setBind(bind);\n }\n }\n }\n }\n }\n }",
"public List<VariableBinding> buildVarbindArray(List<MetaData> oids) {\n List<VariableBinding> varBinds = new ArrayList<VariableBinding>();\n for (MetaData iter:oids) {\n VariableBinding vbind = formVarbind(iter);\n if (null != vbind) {\n varBinds.add(vbind);\n } else {\n varBinds.clear();\n }\n }\n return varBinds;\n }",
"public static servicegroupbindings[] get(nitro_service service, String servicegroupname[]) throws Exception{\n\t\tif (servicegroupname !=null && servicegroupname.length>0) {\n\t\t\tservicegroupbindings response[] = new servicegroupbindings[servicegroupname.length];\n\t\t\tservicegroupbindings obj[] = new servicegroupbindings[servicegroupname.length];\n\t\t\tfor (int i=0;i<servicegroupname.length;i++) {\n\t\t\t\tobj[i] = new servicegroupbindings();\n\t\t\t\tobj[i].set_servicegroupname(servicegroupname[i]);\n\t\t\t\tresponse[i] = (servicegroupbindings) obj[i].get_resource(service);\n\t\t\t}\n\t\t\treturn response;\n\t\t}\n\t\treturn null;\n\t}",
"private void registerBindings(){\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.programming.project.name\", String.class, this.kdtEntrys, \"curProject.text\");\r\n\t\tdataBinder.registerBinding(\"entry\", com.kingdee.eas.fdc.contract.contractsplit.ContractPCSplitBillEntryInfo.class, this.kdtEntrys, \"userObject\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.longNumber\", String.class, this.kdtEntrys, \"pcNumber.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.name\", String.class, this.kdtEntrys, \"pcName.text\");\r\n\t\tdataBinder.registerBinding(\"entry.scale\", java.math.BigDecimal.class, this.kdtEntrys, \"scale.text\");\r\n\t\tdataBinder.registerBinding(\"entry.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"amount.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"pcAmount.text\");\r\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\r\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\r\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\t\t\r\n\t}",
"public java.lang.String[] getBindingKey() {\r\n return bindingKey;\r\n }",
"private void completeTwoWayBindings()\n {\n // A side-effect of creating a new BindingExpression is that it is inserted\n // into the bindingExressions list. Since we can't add to the list while \n // iterating thru it, use an array instead.\n Object[] bindingExpressionsArray = bindingExpressions.toArray(); \n for (int i = 0; i < bindingExpressionsArray.length; i++)\n {\n BindingExpression bindingExpression = (BindingExpression) bindingExpressionsArray[i];\n if (bindingExpression.isTwoWayPrimary())\n {\n Model destination = bindingExpression.getDestination();\n\n if (destination != null)\n {\n destination.ensureBindable();\n }\n\n String source2 = bindingExpression.getDestinationPath(false);\n \n BindingExpression bindingExpression2 = \n new BindingExpression(source2, bindingExpression.getXmlLineNumber(), this);\n \n String destination2 = TextGen.stripParens(bindingExpression.getSourceExpression());\n bindingExpression2.setDestinationProperty(destination2);\n bindingExpression2.setDestinationLValue(destination2);\n }\n } \n }",
"private final void ensureBindingImports()\n {\n if (!bindingImportsAdded)\n {\n for (Iterator<BindingExpression> iter = bindingExpressions.iterator(); iter.hasNext(); )\n {\n BindingExpression expr = iter.next();\n addImport(expr.getDestinationTypeName(), expr.getXmlLineNumber());\n }\n bindingImportsAdded = true;\n }\n }",
"private void registerBindings(){\r\n\t\tdataBinder.registerBinding(\"isEnabled\", boolean.class, this.chkIsEnabled, \"selected\");\r\n\t\tdataBinder.registerBinding(\"isDevPrj\", boolean.class, this.chkIsDevPrj, \"selected\");\r\n\t\tdataBinder.registerBinding(\"isWholeAgeStage\", boolean.class, this.chkisWholeAgeStage, \"selected\");\r\n\t\tdataBinder.registerBinding(\"SplitProject.seq\", int.class, this.kdtSplitProject, \"seq.text\");\r\n\t\tdataBinder.registerBinding(\"SplitProject\", com.kingdee.eas.fdc.basedata.CurProjectSplitProjectInfo.class, this.kdtSplitProject, \"userObject\");\r\n\t\tdataBinder.registerBinding(\"SplitProject.splitProject\", java.lang.Object.class, this.kdtSplitProject, \"splitProject.text\");\r\n\t\tdataBinder.registerBinding(\"projectEnd\", boolean.class, this.chkprojectEnd, \"selected\");\r\n\t\tdataBinder.registerBinding(\"qk\", boolean.class, this.chqk, \"selected\");\r\n\t\tdataBinder.registerBinding(\"name\", String.class, this.txtName, \"_multiLangItem\");\r\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\r\n\t\tdataBinder.registerBinding(\"landDeveloper\", com.kingdee.eas.fdc.basedata.LandDeveloperInfo.class, this.bizLandDeveloper, \"data\");\r\n\t\tdataBinder.registerBinding(\"sortNo\", int.class, this.txtSortNo, \"value\");\r\n\t\tdataBinder.registerBinding(\"startDate\", java.util.Date.class, this.pkStartDate, \"value\");\r\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtDescription, \"_multiLangItem\");\r\n\t\tdataBinder.registerBinding(\"projectAddress\", String.class, this.txtProjectAddress, \"text\");\r\n\t\tdataBinder.registerBinding(\"longNumber\", String.class, this.txtLongNumber, \"text\");\r\n\t\tdataBinder.registerBinding(\"projectStatus\", com.kingdee.eas.fdc.basedata.ProjectStatusInfo.class, this.bizProjectStatus, \"data\");\r\n\t\tdataBinder.registerBinding(\"projectType\", com.kingdee.eas.fdc.basedata.ProjectTypeInfo.class, this.bizProjectType, \"data\");\r\n\t\tdataBinder.registerBinding(\"landInfomation\", com.kingdee.eas.fdc.basedata.LandInfomationInfo.class, this.landInfomationF7, \"data\");\t\t\r\n\t}",
"public void addBinding(WbBinding binding)\n {\n _bindingList.add(binding);\n }",
"public Binding getGenericType(List<Binding> types) {\r\n assert types == types;\r\n return null;\r\n }",
"public Map<String, String> getPointBindings() {\n return pointBindings;\n }",
"public Hashtable<String, TenantBindingType> getTenantBindings() {\n \t\treturn getTenantBindings(EXCLUDE_CREATE_DISABLED_TENANTS);\n \t}",
"public boolean hasPendingBindings() {\n synchronized (this) {\n long l10 = this.H;\n long l11 = 0L;\n long l12 = l10 == l11 ? 0 : (l10 < l11 ? -1 : 1);\n if (l12 == false) return false;\n return (boolean)((long)1);\n }\n }",
"private Binding createBinding(Queue queue, DirectExchange directExchange){\n return BindingBuilder\n .bind(queue)\n .to(directExchange)\n .with(queue.getName());\n }",
"public static MemberMemberBinding memberBind(Member member, Iterable<MemberBinding> bindings) { throw Extensions.todo(); }",
"public void bind(ItemHandler handler) {\n if (handler.getOption().equals(Option.ALL)) {\n for (Map.Entry<Option, List<ItemHandler>> entry : handlerLists.entrySet()) {\n entry.getValue().add(handler);\n }\n } else {\n List<ItemHandler> list = handlerLists.get(handler.getOption());\n list.add(handler);\n }\n }",
"public void add(Binding binding) {\n\tif (values == null) values = new LinkedList();\n\tvalues.add(binding);\n }",
"public Hashtable<String, TenantBindingType> getTenantBindings(boolean includeDisabled) {\n \t\treturn includeDisabled ? allTenantBindings : enabledTenantBindings;\n \t}",
"public Map<Integer, String> getAllBindingNamespaces()\n {\n Map<Integer, String> allNs = new HashMap<Integer, String>();\n \n for (BindingExpression be : bindingExpressions)\n {\n if (be.getNamespaces() != null)\n {\n allNs.putAll(be.getNamespaces());\n }\n }\n \n return allNs;\n }",
"private void clearAdditionalBindings() {\n additionalBindings_ = emptyProtobufList();\n }",
"private List<PropertyGenerator> getPropertyGenerators() {\n\t\tList<PropertyGenerator.GeneratorFactory> factories = new ArrayList<PropertyGenerator.GeneratorFactory>();\n\t\t// these bindings will not mangle their property names\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.NONE));\n\t\tfactories.add(new MethodCallableGenerator.Factory());\n\t\t// these bindings will try to drop their prefix and use a shorter name\n\t\t// (e.g. getFoo -> foo)\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.GET));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.HAS));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.IS));\n\t\t// the field binding will use its name or append Field if it was already\n\t\t// taken by get/has/is\n\t\tfactories.add(new FieldPropertyGenerator.Factory());\n\n\t\tSet<String> namesTaken = new HashSet<String>();\n\t\tnamesTaken.add(\"getName\");\n\t\tnamesTaken.add(\"getPath\");\n\t\tnamesTaken.add(\"getType\");\n\t\tnamesTaken.add(\"getParentBinding\");\n\t\tnamesTaken.add(\"getChildBindings\");\n\n\t\tList<Element> elements = this.getAccessibleElements();\n\t\tList<PropertyGenerator> generators = new ArrayList<PropertyGenerator>();\n\n\t\tfor (PropertyGenerator.GeneratorFactory f : factories) {\n\t\t\tfor (Iterator<Element> i = elements.iterator(); i.hasNext();) {\n\t\t\t\tElement enclosed = i.next();\n\t\t\t\ttry {\n\t\t\t\t\tPropertyGenerator pg = f.newGenerator(this.pathBindingClass, this.name, this.element, enclosed,\n\t\t\t\t\t\t\tnamesTaken);\n\t\t\t\t\tif (namesTaken.contains(pg.getPropertyName())) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnamesTaken.add(pg.getPropertyName());\n\t\t\t\t\t}\n\t\t\t\t\ti.remove(); // element is handled, skip any further\n\t\t\t\t\t\t\t\t// generators\n\t\t\t\t\tgenerators.add(pg);\n\t\t\t\t\tthis.sourceElements.add(enclosed);\n\t\t\t\t} catch (WrongGeneratorException e) {\n\t\t\t\t\t// try next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn generators;\n\t}",
"public Iterator getBindings(QName portType) {\r\n\t\tif (portType == null || bindings == null) {\r\n\t\t\treturn EmptyStructures.EMPTY_ITERATOR;\r\n\t\t}\r\n\t\tList l = new ArrayList();\r\n\t\tfor (Iterator it = bindings.values().iterator(); it.hasNext();) {\r\n\t\t\tWSDLBinding binding = (WSDLBinding) it.next();\r\n\t\t\tif (portType.equals(binding.getTypeName())) {\r\n\t\t\t\tl.add(binding);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new ReadOnlyIterator(l);\r\n\t}",
"public static List<Renew> BindList(){\n try{\n \tConnection con = getConnection();\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(\"select * from advertise where year < 2019 and year !='null'\");\n List<Renew> list = new ArrayList<Renew>();\n while(rs.next()){\n \tRenew u = new Renew(rs.getString(\"name\"),\n rs.getString(\"category\"),\n rs.getString(\"year\"),\n rs.getString(\"sponsor\")\n );\n list.add(u);\n }\n return list;\n \n }\n catch(Exception ex){\n ex.printStackTrace();\n }\n return null;\n }",
"public List<ServiceBindingType> getServiceBindingsByType(String tenantId, List<String> serviceTypes) {\n \t\tArrayList<ServiceBindingType> list = null;\n \t\tTenantBindingType tenant = allTenantBindings.get(tenantId);\n \t\tif (tenant != null) {\n \t\t\tfor (ServiceBindingType sb : tenant.getServiceBindings()) {\n \t\t\t\tif (serviceTypes.contains(sb.getType())) {\n \t\t\t\t\tif (list == null) {\n \t\t\t\t\t\tlist = new ArrayList<ServiceBindingType>();\n \t\t\t\t\t}\n \t\t\t\t\tlist.add(sb);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn list;\n \t}",
"public Collection<Binder> makeBinders(Searcher searcher)\n throws Impossible {\n newNetInstance = net.makeInstance();\n\n\n // Assign it to the variable.\n Unify.unify(variable, newNetInstance, searcher.recorder);\n\n // Nothing more to be done.\n return Collections.emptySet();\n }",
"private void addAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(index, value);\n }",
"public void resolveTwoWayBindings()\n {\n // If there are any two-way bindings, only partially built, now is the time\n // to finish them.\n completeTwoWayBindings();\n \n Map<String, BindingExpression> destinationMap = new HashMap<String, BindingExpression>();\n\n for (BindingExpression bindingExpression : bindingExpressions)\n {\n // Note that this just strips the parens on the edges of the expression.\n // It's possible the expression was an inline expression which got parsed to\n // something like '(a.text) + \".\" + (b.text)'. Since this would never be part of a two-way bind\n // it probably doesn't matter that when the parens are stripped it ends up\n // as 'a.text) + \".\" + (b.text'.\n String sourceExpression = TextGen.stripParens(bindingExpression.getSourceExpression());\n \n String destinationPath = bindingExpression.getDestinationPath(false);\n BindingExpression match = destinationMap.get(sourceExpression);\n\n if ((match != null) && destinationPath.equals(TextGen.stripParens(match.getSourceExpression())))\n {\n bindingExpression.setTwoWayCounterpart(match);\n }\n else\n {\n destinationMap.put(destinationPath, bindingExpression);\n } \n }\n }",
"private void addAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(index, builderForValue.build());\n }",
"@SuppressWarnings(\"unchecked\")\n private <T> List<Binding<T>> getFromMap(TypeLiteral<T> type) {\n return (List<Binding<T>>) map.get(type);\n }",
"public void bind(PropertyList pList) throws FOPException {\n }",
"public Term bind(Term[] binding)\n {\n return this;\n }",
"private void addAdditionalBindings(\n com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(builderForValue.build());\n }",
"public List<ServiceBindingType> getServiceBindingsByType(String tenantId, String serviceType) {\n \t\tList<String> serviceTypes = new ArrayList<String>(1);\n \t\tserviceTypes.add(serviceType);\n \t\treturn getServiceBindingsByType(tenantId, serviceTypes);\n \t}",
"public static void scatterGetBindings(final Map<VmProxy, Set<String>> vmBindingNamesMap, final Handler<Map<VmProxy, ResultHolder<VmBindings>>> resultHandler) {\n final Map<VmProxy, ResultHolder<VmBindings>> resultHolders = new HashMap<VmProxy, ResultHolder<VmBindings>>();\n\n for (final VmProxy vmProxy : vmBindingNamesMap.keySet()) {\n Handler<VmBindings> bindingsResultHandler = new Handler<VmBindings>() {\n public void handle(VmBindings vmBindings) {\n resultHolders.put(vmProxy, new ResultHolder<VmBindings>(vmBindings));\n if (resultHolders.size() == vmBindingNamesMap.size()) {\n resultHandler.handle(resultHolders);\n }\n }\n };\n\n Handler<LopError> bindingsErrorHandler = new Handler<LopError>() {\n public void handle(LopError lopError) {\n resultHolders.put(vmProxy, new ResultHolder<VmBindings>(lopError));\n if (resultHolders.size() == vmBindingNamesMap.size()) {\n resultHandler.handle(resultHolders);\n }\n }\n };\n vmProxy.getBindings(vmBindingNamesMap.get(vmProxy), bindingsResultHandler, bindingsErrorHandler);\n }\n }",
"public boolean hasPendingBindings() {\n synchronized (this) {\n long l10 = this.m;\n long l11 = 0L;\n long l12 = l10 == l11 ? 0 : (l10 < l11 ? -1 : 1);\n if (l12 == false) return false;\n return (boolean)((long)1);\n }\n }",
"@NonNull\n public final AutoRef<TBinding> getBinding() throws ReferenceNullException {\n return AutoRef.of(_binding);\n }",
"public abstract TypeBindings bindingsForBeanType();",
"ParameterBinding createParameterBinding();",
"public static MemberListBinding listBind(Method method, ElementInit[] elementInits) { throw Extensions.todo(); }",
"public boolean hasPendingBindings() {\n synchronized (this) {\n long l10 = this.u;\n long l11 = 0L;\n long l12 = l10 == l11 ? 0 : (l10 < l11 ? -1 : 1);\n if (l12 == false) return false;\n return (boolean)((long)1);\n }\n }",
"IIndexFragmentBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException;",
"public static MemberListBinding listBind(Method method, Iterable<ElementInit> elementInits) { throw Extensions.todo(); }",
"public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }",
"@Override\n public ExpressionToStringContext withBindings(Map<String, String> bindings) {\n SerializationContext serializationContext = new SerializationContext(getFunctions(), bindings, typeContext(), serializedFunctions());\n return new ExpressionToStringContext(serializationContext, wrappedToStringContext, path, parent);\n }",
"public void bind() {\n }",
"private void addAdditionalBindings(com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(value);\n }",
"public static List<Pair<String, SourceBuilder>> getSourceBuilders() {\n List<Pair<String, SourceBuilder>> builders =\n new ArrayList<Pair<String, SourceBuilder>>();\n builders.add(new Pair<String, SourceBuilder>(\"helloWorldSource\", builder()));\n return builders;\n }",
"public void setBinding(final DCPList value) {\n this.binding = value;\n }",
"DataBinding createDataBinding();",
"DataBinding createDataBinding();",
"private void setBindingKeys(RabbitMQConfiguration config, String queueName) throws IOException {\n for (String bindingKey : config.getBindingKeys()) {\n channel.queueBind(queueName, config.getExchange(), bindingKey);\n }\n }",
"public static void addNameBindings (Map<String, Object> namesToExport)\n\t{\n\t\tfor (Entry<String, Object> entry : namesToExport.entrySet ())\n\t\t{\n\t\t\tm_interpreter.set (entry.getKey (), entry.getValue ());\n\t\t}\n\t}",
"private void fillBindingPairs(List<Binding> bindingList,\n\t\t\tList<BindingPair> bindingPairs,\n\t\t\tMultipleVariable multipleCommonVariable,\n\t\t\tHashMap<Integer, List<Binding>> parentMappings) {\n\t\tfor (Binding binding : bindingList) {\n\t\t\t// generate hash code for the binding\n\t\t\tint multipleNodeHash = generateHashCode(multipleCommonVariable,\n\t\t\t\t\tbinding);\n\t\t\t// get parent bindings for this binding\n\t\t\tList<Binding> parentBindings = parentMappings.get(multipleNodeHash);\n\t\t\t// check for these parents is not null\n\t\t\tif (parentBindings != null) {\n\t\t\t\t// create a binding pair for each parent binding\n\t\t\t\tfor (Binding parentBinding : parentBindings) {\n\t\t\t\t\tbindingPairs.add(new BindingPair(binding, parentBinding));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static HashMap<String, List<String>> getExtensionsFromBindings(\n String exp)\n {\n HashMap<String, List<String>> bindingsMap = \n new HashMap<>();\n bindingsMap.put(SYS, parseExpression(SYS_PREFIX, exp));\n bindingsMap.put(USER, parseExpression(USER_PREFIX, exp));\n return bindingsMap;\n }",
"public Exp createBind(Expression exp, Variable var){\r\n if (var.getVariableList() != null){\r\n // bind (sql() as ())\r\n return createASTBind(exp, var);\r\n }\r\n else {\r\n return Binding.create(exp, var);\r\n }\r\n }",
"public List<Integer> bind(Integer... ports) {\n String boundPorts = sendRequest(\n request()\n .withMethod(\"PUT\")\n .withPath(calculatePath(\"bind\"))\n .withBody(portBindingSerializer.serialize(portBinding(ports)), StandardCharsets.UTF_8),\n true\n ).getBodyAsString();\n return portBindingSerializer.deserialize(boundPorts).getPorts();\n }"
] |
[
"0.6178678",
"0.57654417",
"0.5734046",
"0.56439644",
"0.56439644",
"0.55527854",
"0.5537067",
"0.5509835",
"0.5448492",
"0.543915",
"0.54162645",
"0.5393741",
"0.5340998",
"0.5294087",
"0.5294087",
"0.5285418",
"0.52148706",
"0.520901",
"0.5207808",
"0.5195829",
"0.51557904",
"0.5136691",
"0.5122834",
"0.5122016",
"0.5118648",
"0.5118544",
"0.50687426",
"0.5068525",
"0.5025923",
"0.49856716",
"0.4972121",
"0.49645308",
"0.49373847",
"0.49328482",
"0.49229202",
"0.49129182",
"0.4886715",
"0.4884052",
"0.4876439",
"0.4845626",
"0.48344958",
"0.4830505",
"0.48242933",
"0.48233086",
"0.4818988",
"0.48171812",
"0.48119113",
"0.48068085",
"0.4804541",
"0.48041433",
"0.47919714",
"0.47700733",
"0.47633395",
"0.47481653",
"0.4739499",
"0.46991953",
"0.46948397",
"0.4690099",
"0.4687885",
"0.4680196",
"0.46753904",
"0.46735406",
"0.46699557",
"0.46633667",
"0.46632773",
"0.4658578",
"0.46565032",
"0.46552396",
"0.465429",
"0.4591756",
"0.45863196",
"0.45858297",
"0.45663816",
"0.4565018",
"0.45580932",
"0.45529574",
"0.4545646",
"0.45443082",
"0.45385897",
"0.45260596",
"0.45257604",
"0.45250633",
"0.45053595",
"0.45034704",
"0.45010555",
"0.4490793",
"0.4488706",
"0.4482472",
"0.44788623",
"0.44660828",
"0.44579363",
"0.4455348",
"0.4453472",
"0.4453472",
"0.44528383",
"0.44525373",
"0.44505638",
"0.44377443",
"0.44347945",
"0.44218516"
] |
0.7051368
|
0
|
Adds the individual binding to the shape's bindings list.
|
public void addBinding(Binding aBinding)
{
removeBinding(aBinding.getPropertyName()); // Remove current binding for property name (if it exists)
List <Binding> bindings = getBindings(true); // Add binding
bindings.add(aBinding);
aBinding.setNode(this); // Set binding width to this shape
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addBinding(WbBinding binding)\n {\n _bindingList.add(binding);\n }",
"public void add(Binding binding) {\n\tif (values == null) values = new LinkedList();\n\tvalues.add(binding);\n }",
"public void addBinding(int binding, ZEPipelineBindType bindType, int arrayCount, String[] shaderStages);",
"private void addExtraBindings() {\n }",
"private void addAdditionalBindings(com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(value);\n }",
"private void addAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(index, value);\n }",
"public void addBinding(String aPropName, String aKey) { addBinding(new Binding(aPropName, aKey)); }",
"void addNewBindPath(String path);",
"void addFieldBinding( FieldBinding binding );",
"private void addAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(index, builderForValue.build());\n }",
"public void registerReference(BindingReference ref) {\n references.add(ref);\n }",
"public void yAddBind(String bind_name, ObservableValue<? extends Number> bind);",
"private void addAdditionalBindings(\n com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(builderForValue.build());\n }",
"public void setBindings(Binding[] binds) {\n this.binds = binds;\n }",
"public void setBindings(Binding[] binds) {\n this.binds = binds;\n }",
"private void registerBindings(){\t\t\n\t}",
"private void registerBindings(){\t\t\n\t}",
"private void setAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.set(index, value);\n }",
"public void addBoneRef(BoneRef ref){\n \t\tthis.boneRefs[bonePointer++] = ref;\n \t}",
"public static void addNameBinding (String name, Object javaObject)\n\t{\n\t\tm_interpreter.set (name, javaObject);\n\t}",
"public abstract void add(State s, Term[] binding, Vector[] delAddList);",
"public void addToBoundIntent(Intent intent, IServiceConnection iServiceConnection) {\n IntentBindRecord peekBinding = peekBinding(intent);\n if (peekBinding == null) {\n peekBinding = new IntentBindRecord();\n peekBinding.intent = intent;\n synchronized (this.bindings) {\n this.bindings.add(peekBinding);\n }\n }\n peekBinding.addConnection(iServiceConnection);\n }",
"private void changeBinding(InstanceBinding binding) {\r\n\t\t\r\n\t}",
"public void addShape(Shape shape)\n {\n shapes.add(shape);\n }",
"private void setAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.set(index, builderForValue.build());\n }",
"public void setBinding(final DCPList value) {\n this.binding = value;\n }",
"public void installBindings(TableRep bindings) throws RemoteException, Error;",
"public Builder addAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n copyOnWrite();\n instance.addAdditionalBindings(index, value);\n return this;\n }",
"public void addBindingSetForWrqAlias(String wrqAlias, WrqBindingSet bindingSet) {\n bindingSetForWrqAlias.put(wrqAlias, bindingSet);\n if( wrqAlias != null && wrqAlias.isEmpty() ) bindingSetForWrqAlias.put(null, bindingSet);\n }",
"protected void bindPoint(String sourceName, String destName) {\n pointBindings.put(sourceName, destName);\n }",
"public Term bind(Term[] binding)\n {\n return this;\n }",
"public interface YCoolBindings {\n /**\n * The porpouse of this method is to store any bind, because depending on\n * the circunstances it can be caught by garbadge collector.\n * @param bind_name Binding name\n * @param bind Bind itself\n */\n public void yAddBind(String bind_name, ObservableValue<? extends Number> bind);\n\n /**\n * @param pivo The porcentage point of the object, for example, 0 is the\n * leftmost point of the object, 0.5 is the middle and 1 is the rightmost\n * point (it is not limited from 0 to 1, you can go further).\n * @return A DoubleBinding that is linked to the X location of the object, in\n * other words, whenever the X location of the object changes, the\n * DoubleBinding will change automaticaly with it. (this bind is linked to\n * the X location but the opposite is not true).\n */\n public DoubleBinding yTranslateXbind(double pivo);\n\n /**\n * @param pivo The porcentage point of the object, for example, 0 is the\n * upper point of the object, 0.5 is the middle and 1 is the bottom point (it\n * is not limited from 0 to 1, you can go further).\n * @return A DoubleBinding that is linked to the Y location of the object, in\n * other words, whenever the Y location of the object changes, the\n * DoubleBinding will change automaticaly with it. (this bind is linked to\n * the Y location but the opposite is not true).\n */\n public DoubleBinding yTranslateYbind(double pivo);\n\n /**\n * Links the X position of the object with an observable value, so whenever\n * it changes, the object's X position will change too.\n *\n * @param bind_name The name for this link.\n * @param X The observable value to link the object's X position.\n * @param pivo The porcentage point of the object, for example, 0 is the\n * leftmost point of the object, 0.5 is the middle and 1 is the rightmost\n * point (it is not limited from 0 to 1, you can go further).\n */\n public void yBindTranslateX(String bind_name, ObservableValue<? extends Number> X, double pivo);\n\n /**\n * Links the Y position of the object with an observable value, so whenever\n * it changes, the object's Y position will change too.\n *\n * @param bind_name The name for this link.\n * @param Y The observable value to link the object's Y position.\n * @param pivo The porcentage point of the object, for example, 0 is the\n * upper point of the object, 0.5 is the middle and 1 is the bottom point (it\n * is not limited from 0 to 1, you can go further).\n */\n public void yBindTranslateY(String bind_name, ObservableValue<? extends Number> Y, double pivo);\n\n /**\n * @param stroke_included If you want the stroke of the object to be part of\n * the new width, mark this as true.\n * @return A DoubleBinding that is linked to the width of the object, in\n * other words, whenever the width of the object changes, the DoubleBinding\n * will change automaticaly with it. (this bind is linked to the width but\n * the opposite is not true).\n */\n public DoubleBinding yWidthBind(boolean stroke_included);\n\n /**\n * @param stroke_included If you want the stroke of the object to be part of\n * the new height, mark this as true.\n * @return A DoubleBinding that is linked to the height of the object, in\n * other words, whenever the height of the object changes, the DoubleBinding\n * will change automaticaly with it. (this bind is linked to the height but\n * the opposite is not true).\n */\n public DoubleBinding yHeightBind(boolean stroke_included);\n\n /**\n * Links the width of the object with an observable value, so whenever it\n * changes, the object's width will change too.\n *\n * @param bind_name The name for this link.\n * @param width The observable value to link the object's width.\n * @param stroke_included If you want the stroke of the object to be part of\n * the new width, mark this as true.\n */\n public void yBindWidth(String bind_name, ObservableValue<? extends Number> width, boolean stroke_included);\n\n /**\n * Links the height of the object with an observable value, so whenever it\n * changes, the object's height will change too.\n *\n * @param bind_name The name for this link.\n * @param height The observable value to link the object's height.\n * @param stroke_included If you want the stroke of the object to be part of\n * the new height, mark this as true.\n */\n public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);\n\n /**\n * Breaks any bind created previously based on the name of the bind.\n * @param bind_name Name of the bind to be broken.\n */\n public void yUnbind(String bind_name);\n}",
"protected void onBindingSet(@NonNull AutoRef<Context> context, @NonNull AutoRef<TBinding> binding) {\n }",
"public void setBinding(Binding binding) {\r\n\t \tthis.binding = binding;\r\n\t }",
"public int getAdditionalBindingsCount() {\n return additionalBindings_.size();\n }",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return additionalBindings_.get(index);\n }",
"public void bind(ItemHandler handler) {\n if (handler.getOption().equals(Option.ALL)) {\n for (Map.Entry<Option, List<ItemHandler>> entry : handlerLists.entrySet()) {\n entry.getValue().add(handler);\n }\n } else {\n List<ItemHandler> list = handlerLists.get(handler.getOption());\n list.add(handler);\n }\n }",
"public Builder setAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n copyOnWrite();\n instance.setAdditionalBindings(index, value);\n return this;\n }",
"public java.util.List<com.google.api.HttpRule> getAdditionalBindingsList() {\n return additionalBindings_;\n }",
"public DCPList getBinding() {\n return binding;\n }",
"private void bindObject() {\n }",
"public static void addNameBindings (Map<String, Object> namesToExport)\n\t{\n\t\tfor (Entry<String, Object> entry : namesToExport.entrySet ())\n\t\t{\n\t\t\tm_interpreter.set (entry.getKey (), entry.getValue ());\n\t\t}\n\t}",
"private void addGetChildBindings() {\n\t\tthis.pathBindingClass.addImports(Binding.class, List.class);\n\t\tGMethod children = this.pathBindingClass.getMethod(\"getChildBindings\").returnType(\"List<Binding<?>>\")\n\t\t\t\t.addAnnotation(\"@Override\");\n\t\tchildren.body.line(\"List<Binding<?>> bindings = new java.util.ArrayList<Binding<?>>();\");\n\t\tfor (String foundSubBinding : this.foundSubBindings) {\n\t\t\tchildren.body.line(\"bindings.add(this.{}());\", foundSubBinding);\n\t\t}\n\t\tchildren.body.line(\"return bindings;\");\n\t}",
"public void addShape(PhysicsShape shape) {\n\t\tshapes.add(shape);\n\t}",
"protected abstract void bind();",
"protected abstract void bind();",
"public void bind() {\n }",
"public void bind(String name, Object obj)\r\n {\r\n if (logger.isInfoEnabled()) {\r\n logger.info(\"Static JNDI binding: [\" + name + \"] = [\" + jndiObjectToString(obj) + \"]\");\r\n }\r\n this.boundObjects.put(name, obj);\r\n }",
"public Builder addAdditionalBindings(com.google.api.HttpRule value) {\n copyOnWrite();\n instance.addAdditionalBindings(value);\n return this;\n }",
"protected void insertBindingUpdateActivities(String plink, Map<String,Binding> addyMap, Node addInitHere, Node addUpdateHere){\n\t\tif (addyMap.containsKey(plink)){\n\t\t\tBinding bind = addyMap.get(plink);\n\t\t\taddInitHere.appendChild(initArrayVar(bind, bind));\n\t\t\taddUpdateHere.appendChild(getNextBinding(plink));\n\t\t\tfor (String dependentPlink: bind.getDependentPlinks()){\n\t\t\t\tif (addyMap.containsKey(dependentPlink)){\n\t\t\t\t\taddInitHere.appendChild(initArrayVar(addyMap.get(dependentPlink),bind));\n\t\t\t\t\taddUpdateHere.appendChild(getNextBinding(dependentPlink));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void add(Shape s)\n {\n shapes.add(s);\n }",
"private void addBindingAndListener() {\n // When the simulation has more than one time of simulation this property change the selected element\n // of time series.\n this.changeListener = (observable, oldValue, newValue) -> {\n if (newValue instanceof Component) { // IS LINK OR NODE\n Component comp = (Component) newValue;\n idTextField.setText(comp.getId());\n }\n };\n this.selectableItem.addListener(changeListener);\n }",
"public final void setBinding(@Nullable TBinding binding) {\n // if we already had a binding\n try (AutoRef<TBinding> oldBinding = AutoRef.of(_binding);\n AutoRef<Context> context = AutoRef.of(oldBinding.get().getRoot().getContext())) {\n // notify the derived class that the current binding is being unset\n onBindingUnset(context, oldBinding);\n } catch (ReferenceNullException ignored) { }\n // set the new binding\n _binding = new WeakReference<>(binding);\n // if the new binding is not null\n try (AutoRef<TBinding> newBinding = AutoRef.of(_binding);\n AutoRef<Context> context = AutoRef.of(newBinding.get().getRoot().getContext())) {\n // set the values contained within the value repository\n for (int key : _values.keySet()) {\n newBinding.get().setVariable(key, _values.get(key));\n }\n // notify the derived class of the new binding being set\n onBindingSet(context, newBinding);\n // execute the binding's pending changes\n _binding.get().executePendingBindings();\n } catch (ReferenceNullException ignored) {}\n }",
"public java.util.List<? extends com.google.api.HttpRuleOrBuilder> \n getAdditionalBindingsOrBuilderList() {\n return additionalBindings_;\n }",
"public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(\n int index) {\n return additionalBindings_.get(index);\n }",
"public abstract T addService(BindableService bindableService);",
"<T extends Binding> PhysicalWireDefinition generateBoundReference(LogicalBinding<T> binding) throws Fabric3Exception;",
"public void bind()\n {\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this.ID);\n }",
"public static MemberMemberBinding memberBind(Member member, Iterable<MemberBinding> bindings) { throw Extensions.todo(); }",
"public void addMapping(String bindingName, Trigger... triggers) {\r\n mappingNames.add(bindingName);\r\n inputManager.addMapping(bindingName, triggers);\r\n inputManager.addListener(this, bindingName);\r\n }",
"public void addShape(Shapes obj) {\n \tthis.listShapes.add(obj);\n W.repaint();\n }",
"public BindState updateBinding(AccessPath ap, CFAEdge edge, List<AbstractState> otherStates) {\n if (ap.startFromGlobal()) {\n return addGlobalBinding(ap, edge, otherStates);\n } else {\n return addLocalBinding(ap, edge, otherStates);\n }\n }",
"Binding getBinding();",
"@Override\n public void binding(String exchangeName, String queueName, String bindingKey, ByteBuffer buf) {\n synchronized (this) {\n try {\n Exchange exchange = _virtualHost.getExchangeRegistry().getExchange(exchangeName);\n if (exchange == null) {\n _logger.error(\"Unknown exchange: \" + exchangeName + \", cannot bind queue : \" + queueName);\n return;\n }\n\n AMQQueue queue = _virtualHost.getQueueRegistry().getQueue(new AMQShortString(queueName));\n if (queue == null) {\n _logger.error(\"Unknown queue: \" + queueName + \", cannot be bound to exchange: \" + exchangeName);\n } else {\n FieldTable argumentsFT = null;\n if (buf != null) {\n argumentsFT = new FieldTable(org.wso2.org.apache.mina.common.ByteBuffer.wrap(buf), buf.limit());\n }\n\n BindingFactory bf = _virtualHost.getBindingFactory();\n\n Map<String, Object> argumentMap = FieldTable.convertToMap(argumentsFT);\n\n boolean isBindingAlreadyPresent = true;\n if (bf.getBinding(bindingKey, queue, exchange, argumentMap) == null) {\n //for direct exchange do an additional check to see if a binding is\n //already added to default exchange. We do not need duplicates as default\n //exchange is an direct exchange\n if (exchange.getName().equals(AMQPUtils.DIRECT_EXCHANGE_NAME)) {\n Exchange testExchange = _virtualHost.getExchangeRegistry().getExchange(\n AMQPUtils.DEFAULT_EXCHANGE_NAME);\n if (bf.getBinding(bindingKey, queue, testExchange,\n argumentMap) == null) {\n isBindingAlreadyPresent = false;\n }\n } else {\n isBindingAlreadyPresent = false;\n }\n }\n if(!isBindingAlreadyPresent) {\n if(_logger.isDebugEnabled()) {\n _logger.debug(\"Binding Sync - Added Binding: (Exchange: \"\n + exchange.getNameShortString() + \", Queue: \" + queueName\n + \", Routing Key: \" + bindingKey + \", Arguments: \" + argumentsFT + \")\");\n }\n bf.restoreBinding(bindingKey, queue, exchange, argumentMap);\n }\n }\n } catch (AMQException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"public void changePolyAdd() {\n this.changePoly(this.aadd, this.badd, this.cadd, this.dadd, this.yadd);\n }",
"void setBind() {\n for (int i = 1; i < size(); i++) {\n Exp f = get(i);\n if (f.isFilter() && f.size() > 0) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND\n // no bind (?x = ?y) in case of JOIN\n && (!Query.testJoin || bind.isBindCst())) {\n int j = i - 1;\n while (j > 0 && get(j).isFilter()) {\n j--;\n }\n if (j >= 0) {\n Exp g = get(j);\n if ((g.isEdge() || g.isPath())\n && (bind.isBindCst() ? g.bind(bind.first().getNode()) : true)) {\n bind.status(true);\n g.setBind(bind);\n }\n }\n }\n }\n }\n }",
"public void bind(String name, Remote ref) throws RemoteException, AlreadyBoundException;",
"public void add(Shape shapes) {\n\t\tshapesList.add(shapes);\n\t}",
"public XBinding(final Procedure0 bindingStatement) {\n\t\tbinding = bindingStatement;\n\t\tapply(); // initial assignment\n\t}",
"public PeerBuilder bindings(Bindings bindings) {\n\t\tthis.bindings = bindings;\n\t\treturn this;\n\t}",
"void bind(Object element);",
"private void addAllAdditionalBindings(\n java.lang.Iterable<? extends com.google.api.HttpRule> values) {\n ensureAdditionalBindingsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, additionalBindings_);\n }",
"<T extends Binding> PhysicalWireDefinition generateBoundReferenceCallback(LogicalBinding<T> binding) throws Fabric3Exception;",
"public void bind(String name, Object obj) {\n\t\tif (log.isInfoEnabled()) {\n\t\t\tlog.info(\"Static JNDI binding: [\" + name + \"] = [\" + obj + \"]\");\n\t\t}\n\t\tthis.boundObjects.put(name, obj);\n\t}",
"@Override\n\tpublic void bind() {\n\t\t\n\t}",
"private void applyBindings(Bindings bindings) {\n\t\tfor (Map.Entry<String, Object> binding : bindings.entrySet()) {\n\t\t\tluaState.pushJavaObject(binding.getValue());\n\t\t\tString variableName = binding.getKey();\n\t\t\tint lastDotIndex = variableName.lastIndexOf('.');\n\t\t\tif (lastDotIndex >= 0) {\n\t\t\t\tvariableName = variableName.substring(lastDotIndex + 1);\n\t\t\t}\n\t\t\tluaState.setGlobal(variableName);\n\t\t}\n\t}",
"private void registerBindings(){\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.programming.project.name\", String.class, this.kdtEntrys, \"curProject.text\");\r\n\t\tdataBinder.registerBinding(\"entry\", com.kingdee.eas.fdc.contract.contractsplit.ContractPCSplitBillEntryInfo.class, this.kdtEntrys, \"userObject\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.longNumber\", String.class, this.kdtEntrys, \"pcNumber.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.name\", String.class, this.kdtEntrys, \"pcName.text\");\r\n\t\tdataBinder.registerBinding(\"entry.scale\", java.math.BigDecimal.class, this.kdtEntrys, \"scale.text\");\r\n\t\tdataBinder.registerBinding(\"entry.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"amount.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"pcAmount.text\");\r\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\r\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\r\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\t\t\r\n\t}",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return instance.getAdditionalBindings(index);\n }",
"public void setBindingKey(java.lang.String[] bindingKey) {\r\n this.bindingKey = bindingKey;\r\n }",
"private void updateBinding(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\tif(txtBinding.getText().trim().length() == 0)\n\t\t\treturn;\n\n\t\tif(propertiesObj instanceof QuestionDef)\n\t\t\t((QuestionDef)propertiesObj).setVariableName(txtBinding.getText());\n\t\telse if(propertiesObj instanceof OptionDef)\n\t\t\t((OptionDef)propertiesObj).setVariableName(txtBinding.getText());\n\t\telse if(propertiesObj instanceof FormDef)\n\t\t\t((FormDef)propertiesObj).setVariableName(txtBinding.getText());\n\t\telse if(propertiesObj instanceof PageDef){\n\t\t\ttry{\n\t\t\t\t((PageDef)propertiesObj).setPageNo(Integer.parseInt(txtBinding.getText()));\n\t\t\t}catch(Exception ex){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}",
"void add(Shape aShape);",
"public synchronized void add(WhiteboardShape s,Reference refInst)\t\n\t{\n\t\tshapes.add(s);\n\t\tfor(Reference r:clients)\t//broadcast to all connected clients\n\t\t{\n\t\t\tif(r!=refInst)\n\t\t\t\tr.sendShape(s);\n\t\t}\n\t}",
"public Map<String, String> getPointBindings() {\n return pointBindings;\n }",
"void addShape(IShape shape);",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"name\", String.class, this.name, \"text\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.creator, \"data\");\n\t\tdataBinder.registerBinding(\"relateTask\", com.kingdee.eas.fdc.schedule.FDCScheduleTaskInfo.class, this.relationTask, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.creatorTime, \"value\");\n\t\tdataBinder.registerBinding(\"imgDescription\", String.class, this.txtDescription, \"text\");\n\t\tdataBinder.registerBinding(\"entries.size\", String.class, this.kdtEntries, \"size.text\");\n\t\tdataBinder.registerBinding(\"entries.sizeInByte\", int.class, this.kdtEntries, \"sizeInByte.text\");\n\t\tdataBinder.registerBinding(\"entries.fileName\", String.class, this.kdtEntries, \"fileName.text\");\n\t\tdataBinder.registerBinding(\"entries.name\", String.class, this.kdtEntries, \"name.text\");\n\t\tdataBinder.registerBinding(\"entries\", com.kingdee.eas.fdc.schedule.ProjectImageEntryInfo.class, this.kdtEntries, \"userObject\");\t\t\n\t}",
"private void clearAdditionalBindings() {\n additionalBindings_ = emptyProtobufList();\n }",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"changeDate\", java.util.Date.class, this.pkChangeDate, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom\", com.kingdee.eas.fdc.sellhouse.RoomInfo.class, this.f7Room, \"data\");\n\t\tdataBinder.registerBinding(\"bizType\", com.kingdee.eas.fdc.sellhouse.ChangeBizTypeEnum.class, this.comboBizType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"changeReason\", com.kingdee.eas.fdc.sellhouse.ChangeReasonInfo.class, this.f7ChangeReson, \"data\");\n\t\tdataBinder.registerBinding(\"handler\", com.kingdee.eas.base.permission.UserInfo.class, this.f7Handler, \"data\");\n\t\tdataBinder.registerBinding(\"attachEntry\", com.kingdee.eas.fdc.sellhouse.ChangeManageAttachEntryInfo.class, this.kdtAttachEntry, \"userObject\");\n\t\tdataBinder.registerBinding(\"attachEntry.property\", com.kingdee.eas.fdc.sellhouse.PropertyEnum.class, this.kdtAttachEntry, \"property.text\");\n\t\tdataBinder.registerBinding(\"attachEntry.context\", String.class, this.kdtAttachEntry, \"context.text\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"customerPhone\", String.class, this.txtTel, \"text\");\n\t\tdataBinder.registerBinding(\"isSignChangeName\", boolean.class, this.cbIsSignChangeName, \"selected\");\n\t\tdataBinder.registerBinding(\"quitAmount\", java.math.BigDecimal.class, this.txtQuitAmount, \"value\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"payType\", com.kingdee.eas.fdc.sellhouse.SHEPayTypeInfo.class, this.f7PayType, \"data\");\n\t\tdataBinder.registerBinding(\"agioScheme\", com.kingdee.eas.fdc.sellhouse.AgioSchemeInfo.class, this.f7AgioScheme, \"data\");\n\t\tdataBinder.registerBinding(\"agioDesc\", String.class, this.txtAgioDes, \"text\");\n\t\tdataBinder.registerBinding(\"lastAgio\", java.math.BigDecimal.class, this.txtAgio, \"value\");\n\t\tdataBinder.registerBinding(\"dealTotalAmount\", java.math.BigDecimal.class, this.txtDealTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"contractTotalAmount\", java.math.BigDecimal.class, this.txtContractTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellAmount\", java.math.BigDecimal.class, this.txtSellAmount, \"value\");\n\t\tdataBinder.registerBinding(\"planningCompensate\", java.math.BigDecimal.class, this.txtPlanningCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"cashSalesCompensate\", java.math.BigDecimal.class, this.txtCashSalesCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"areaCompensate\", java.math.BigDecimal.class, this.txtAreaCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"dealBuildPrice\", java.math.BigDecimal.class, this.txtDealBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"contractBuildPrice\", java.math.BigDecimal.class, this.txtContractBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"planningArea\", java.math.BigDecimal.class, this.txtPlanningArea, \"value\");\n\t\tdataBinder.registerBinding(\"preArea\", java.math.BigDecimal.class, this.txtPreArea, \"value\");\n\t\tdataBinder.registerBinding(\"actualArea\", java.math.BigDecimal.class, this.txtActualArea, \"value\");\n\t\tdataBinder.registerBinding(\"contractRoomPrice\", java.math.BigDecimal.class, this.txtContractRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"dealRoomPrice\", java.math.BigDecimal.class, this.txtDealRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"valuationType\", com.kingdee.eas.fdc.sellhouse.CalcTypeEnum.class, this.comboValuationType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"accFundAmount\", java.math.BigDecimal.class, this.txtAFundAmount, \"value\");\n\t\tdataBinder.registerBinding(\"loanAmount\", java.math.BigDecimal.class, this.txtLoanAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellType\", com.kingdee.eas.fdc.sellhouse.SellTypeEnum.class, this.comboSellType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"strdBuildingPrice\", java.math.BigDecimal.class, this.txtBuildingPrice, \"value\");\n\t\tdataBinder.registerBinding(\"strdRoomPrice\", java.math.BigDecimal.class, this.txtRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom.roomModel.name\", String.class, this.txtRoomModel, \"text\");\n\t\tdataBinder.registerBinding(\"strdTotalAmount\", java.math.BigDecimal.class, this.txtStandardTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"attachmentAmount\", java.math.BigDecimal.class, this.txtAttachPropertyTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount1, \"value\");\n\t\tdataBinder.registerBinding(\"isFitmentToContract\", boolean.class, this.chkIsFitmentToContract, \"selected\");\n\t\tdataBinder.registerBinding(\"fitmentStandard\", com.kingdee.eas.fdc.sellhouse.DecorationStandardInfo.class, this.f7FitmentStandard, \"data\");\n\t\tdataBinder.registerBinding(\"fitmentPrice\", java.math.BigDecimal.class, this.txtFitmentPrice, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount, \"value\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"auditTime\", java.util.Date.class, this.pkAuditDate, \"value\");\n\t\tdataBinder.registerBinding(\"auditor\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtAuditor, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateUser\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtModifier, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateTime\", java.sql.Timestamp.class, this.pkModifyDate, \"value\");\n\t\tdataBinder.registerBinding(\"details\", String.class, this.details, \"text\");\n\t\tdataBinder.registerBinding(\"changeType\", com.kingdee.eas.fdc.sellhouse.ChangeTypeEnum.class, this.cbChangeType, \"selectedItem\");\t\t\n\t}",
"public Builder addAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n copyOnWrite();\n instance.addAdditionalBindings(index, builderForValue);\n return this;\n }",
"public Binding getBinding() { \n\t\tif (myBinding == null) {\n\t\t\tmyBinding = new Binding();\n\t\t}\n\t\treturn myBinding;\n\t}",
"protected final void bindCombo(T elem, EStructuralFeature feature, ComboViewer comboViewer) {\r\n IObservableValue modelObservable = createModelObservable(elem, feature);\r\n IViewerObservableValue viewerObservable = viewerSelectionObservables.getUnchecked(comboViewer);\r\n Binding binding = dbc.bindValue(viewerObservable, modelObservable);\r\n bindings.add(binding);\r\n }",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"supplier.supplierBusinessMode.name\", String.class, this.txtBusinessMode, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.inviteType.name\", String.class, this.txtInviteType, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.name\", String.class, this.txtSupplierName, \"text\");\n\t\tdataBinder.registerBinding(\"supplier\", com.kingdee.eas.fdc.invite.supplier.SupplierStockInfo.class, this.prmtSupplier, \"data\");\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"evaluationType\", com.kingdee.eas.fdc.invite.supplier.SupplierEvaluationTypeInfo.class, this.prmtEvaluationType, \"data\");\n\t\tdataBinder.registerBinding(\"template\", com.kingdee.eas.fdc.invite.supplier.SupplierAppraiseTemplateInfo.class, this.prmtTemplate, \"data\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.purchaseOrgUnit.name\", String.class, this.txtOrg, \"text\");\n\t\tdataBinder.registerBinding(\"lygcScore\", java.math.BigDecimal.class, this.txtLYGCScore, \"value\");\n\t\tdataBinder.registerBinding(\"lyhRate\", java.math.BigDecimal.class, this.txtLYHScore, \"value\");\n\t\tdataBinder.registerBinding(\"isOver\", boolean.class, this.cbIsOver, \"selected\");\n\t\tdataBinder.registerBinding(\"srcGrade\", com.kingdee.eas.fdc.invite.supplier.GradeSetUpInfo.class, this.prmtSrcGrade, \"data\");\n\t\tdataBinder.registerBinding(\"srcLevel\", com.kingdee.eas.fdc.invite.supplier.LevelSetUpInfo.class, this.prmtSrcLevel, \"data\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"lygcRate\", java.math.BigDecimal.class, this.txtLYGCRate, \"value\");\n\t\tdataBinder.registerBinding(\"lyhScroe\", java.math.BigDecimal.class, this.txtLYHRate, \"value\");\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\n\t\tdataBinder.registerBinding(\"supplier.storageNumber\", String.class, this.txtStorageNumber, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.storageDate\", java.util.Date.class, this.pkStorageDate, \"value\");\n\t\tdataBinder.registerBinding(\"supplier.manager\", String.class, this.txtManager, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.contractor\", String.class, this.txtContractor, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizePerson\", String.class, this.txtLinkPerson, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizePhone\", String.class, this.txtLinkPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.contractorPhone\", String.class, this.txtContractorPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.managerPhone\", String.class, this.txtManagerPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.partProject\", String.class, this.txtPartProject, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizeJob\", String.class, this.txtLinkJob, \"text\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"grade\", com.kingdee.eas.fdc.invite.supplier.GradeSetUpInfo.class, this.prmtGrade, \"data\");\n\t\tdataBinder.registerBinding(\"level\", com.kingdee.eas.fdc.invite.supplier.LevelSetUpInfo.class, this.prmtLevel, \"data\");\n\t\tdataBinder.registerBinding(\"isPass\", boolean.class, this.cbIsPass, \"selectedItem\");\t\t\n\t}",
"public void bind()\r\n\t{\r\n\t\tVector3f color;\r\n\r\n\t\tcolor = ambient;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = diffuse;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = specular;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_SPECULAR);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tif (texture != null)\r\n\t\t{\r\n\t\t\ttexture.bind();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tglBindTexture(GL_TEXTURE_2D, 0);\r\n\t\t}\r\n\t}",
"public void bind(PropertyList pList) throws FOPException {\n }",
"public void newBinding(BGMEvent e);",
"public int getBindingCount() { List bindings = getBindings(false); return bindings!=null? bindings.size() : 0; }",
"public Binding getBinding() {\n\t\treturn binding;\n\t}",
"private void addToSubBindingsIfNeeded(PropertyGenerator pg) {\n\t\tif (pg.hasSubBindings()) {\n\t\t\tthis.foundSubBindings.add(pg.getPropertyName());\n\t\t}\n\t}",
"public void addShape(TShape aShape){\r\n // fShapes.remove(aShape); // just in case it was already there\r\n\r\n /*unfortunately we need to have a front to back screen order, properties at the back\r\n (drawn first), then individuals, finally relations between individuals*/\r\n\r\n /* if (aShape instanceof TLine)\r\n fShapes.add(aShape); // add at the end\r\n else if (aShape instanceof TProperty)\r\n fShapes.add(0,aShape); // add at the beginning\r\n else {\r\n int insertIndex=0;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n if (! ((TShape) iter.next()instanceof TProperty))\r\n break; //put it after rectangles\r\n else\r\n insertIndex++;\r\n }\r\n }\r\n fShapes.add(insertIndex,aShape);\r\n }*/\r\n\r\n\r\n // aShape.setSemantics(fSemantics);\r\n\r\n aShape.addChangeListener(this); // and we'll listen for any of its changes, such as being selected\r\n\r\n addShapeToList(aShape,fShapes);\r\n\r\n if (aShape instanceof TInterpretationBoard)\r\n ((TInterpretationBoard)aShape).setSemantics(fSemantics);\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n }",
"@Override\n\tpublic void put(String name, Scriptable start, Object value) {\n\t\tif(unwrap().appliedBindings.size() > 0) {\n\t\t\tfor(XBLBinding binding : unwrap().appliedBindings) {\n\t\t\t\tXBLProperty prop = binding.getProperty(name);\n\t\t\t\tif(prop != null && prop.getSetter() != null) {\n\t\t\t\t\tFunction setter = asFunction(prop.getSetter());\n\t\t\t\t\tprop.setSetter(setter);\n\t\t\t\t\tsetter.call(Context.getCurrentContext(), getParentScope(), this, new Object[]{value});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsuper.put(name, start, value);\n\t}",
"public static MemberMemberBinding memberBind(Method method, Iterable<MemberBinding> bindings) { throw Extensions.todo(); }"
] |
[
"0.75683874",
"0.7257143",
"0.6843841",
"0.64259636",
"0.63506526",
"0.63252264",
"0.60711175",
"0.60443616",
"0.6015334",
"0.60107285",
"0.59981567",
"0.59839326",
"0.5972657",
"0.5934111",
"0.5934111",
"0.59191805",
"0.59191805",
"0.5871963",
"0.5816897",
"0.58013",
"0.5768395",
"0.57270014",
"0.56336063",
"0.5624322",
"0.5572066",
"0.55378777",
"0.5470938",
"0.5458152",
"0.5453909",
"0.5373113",
"0.5359696",
"0.5349774",
"0.5330448",
"0.53213465",
"0.5321081",
"0.5313965",
"0.5305757",
"0.5302899",
"0.5281915",
"0.52671146",
"0.52653325",
"0.52637154",
"0.5257419",
"0.5252477",
"0.52507156",
"0.52507156",
"0.5244483",
"0.52416885",
"0.5239985",
"0.5235472",
"0.52318966",
"0.5227137",
"0.5208246",
"0.5193403",
"0.51847345",
"0.5181699",
"0.5179651",
"0.5176397",
"0.5167227",
"0.51610684",
"0.51592296",
"0.51343626",
"0.5126384",
"0.5120325",
"0.5119019",
"0.5118162",
"0.51180553",
"0.5113575",
"0.5096304",
"0.50935864",
"0.50814956",
"0.5076254",
"0.50694996",
"0.5064895",
"0.50597066",
"0.50498205",
"0.50464207",
"0.50406766",
"0.5036856",
"0.50325227",
"0.50210994",
"0.5020545",
"0.501586",
"0.5008094",
"0.5003074",
"0.49995142",
"0.49969018",
"0.499574",
"0.4980495",
"0.49795502",
"0.4976595",
"0.49755305",
"0.49604055",
"0.4959328",
"0.4953427",
"0.4943346",
"0.49318498",
"0.49309474",
"0.4920747",
"0.4919722"
] |
0.79533505
|
0
|
Removes the binding at the given index from shape's bindings list.
|
public Binding removeBinding(int anIndex) { return getBindings(true).remove(anIndex); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void removeAdditionalBindings(int index) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.remove(index);\n }",
"public Builder removeAdditionalBindings(int index) {\n copyOnWrite();\n instance.removeAdditionalBindings(index);\n return this;\n }",
"public Builder removeWaypoints(int index) {\n if (waypointsBuilder_ == null) {\n ensureWaypointsIsMutable();\n waypoints_.remove(index);\n onChanged();\n } else {\n waypointsBuilder_.remove(index);\n }\n return this;\n }",
"public Object remove(int index) {\r\n return deref(refs.remove(index));\r\n }",
"public void remove(int index) {\n\t\tpoints.remove(index);\n\t}",
"void removeFieldBinding( FieldBinding binding );",
"@ZenCodeType.Method\n default void remove(int index) {\n \n doesNot(\"support removal by index\");\n }",
"public void remove(int index) {\n\n\t}",
"public void remove(int index) {\n items.remove(index);\n }",
"public AnyType remove( int index ) throws IndexOutOfBoundsException {\n \n return removeNode( index ).getData();\n \n }",
"public Builder removeFigure(int index) {\n if (figureBuilder_ == null) {\n ensureFigureIsMutable();\n figure_.remove(index);\n onChanged();\n } else {\n figureBuilder_.remove(index);\n }\n return this;\n }",
"public void remove(int index);",
"public void remove(int index)\n {\n MorphRemove toRemove = this.toRemove.get(index);\n\n if (toRemove != null)\n {\n MorphType type = this.morphs.get(toRemove.typeIndex);\n Iterator<MorphCell> it = type.morphs.iterator();\n\n while (it.hasNext())\n {\n if (it.next().index == index)\n {\n it.remove();\n break;\n }\n }\n\n if (type.morphs.isEmpty())\n {\n this.morphs.remove(toRemove.typeIndex);\n }\n else\n {\n type.clamp();\n }\n\n this.toRemove.remove(index);\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n this.index = MathHelper.clamp_int(this.index, -1, this.getMorphCount() - 1);\n }\n }",
"public void remove(int index)\n {\n numItems--;\n items[index] = null;\n }",
"public Builder removeSourcePath(int index) {\n if (sourcePathBuilder_ == null) {\n ensureSourcePathIsMutable();\n sourcePath_.remove(index);\n onChanged();\n } else {\n sourcePathBuilder_.remove(index);\n }\n return this;\n }",
"@Override\r\n\tpublic void removeToIndex(int index) {\n\t}",
"public void yUnbind(String bind_name);",
"public Builder removeFigureList(int index) {\n ensureFigureListIsMutable();\n figureList_.remove(index);\n\n return this;\n }",
"public boolean removeBinding(String aPropertyName)\n{\n // Iterate over binding and remove given binding\n for(int i=0, iMax=getBindingCount(); i<iMax; i++)\n if(getBinding(i).getPropertyName().equals(aPropertyName)) {\n removeBinding(i); return true; }\n return false; // Return false since binding not found\n}",
"@java.lang.Deprecated public Builder removeListeningAddresses(int index) {\n if (listeningAddressesBuilder_ == null) {\n ensureListeningAddressesIsMutable();\n listeningAddresses_.remove(index);\n onChanged();\n } else {\n listeningAddressesBuilder_.remove(index);\n }\n return this;\n }",
"public void dropBindings(int id) throws RemoteException, Error;",
"public void removeElementAt(int index);",
"public void removeLayer(int index){\n history.removeIndex(index);\n historyValues.removeIndex(index);\n }",
"public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }",
"public void removeStateValueBinding(final String variableName) {\n //Preconditions\n assert variableName != null : \"variableName must not be null\";\n assert !variableName.isEmpty() : \"variableName must not be empty\";\n\n synchronized (stateVariableDictionary) {\n if (stateVariableDictionary.isEmpty() && !stateValueBindings.isEmpty()) {\n // lazy population of the state value dictionary from the persistent state value bindings\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateVariableDictionary.put(stateValueBinding.getVariableName(), stateValueBinding);\n });\n }\n final StateValueBinding stateValueBinding = stateVariableDictionary.remove(variableName);\n if (stateValueBinding != null) {\n final boolean isRemoved = stateValueBindings.remove(stateValueBinding);\n assert isRemoved;\n }\n }\n }",
"private void removeBinding(String exchangeName, String queueName, String bindingKey, ByteBuffer buf)\n throws AMQSecurityException, AMQInternalException {\n\n synchronized (this) {\n Exchange exchange = _virtualHost.getExchangeRegistry().getExchange(exchangeName);\n if (exchange == null) {\n return;\n }\n\n AMQQueue queue = _virtualHost.getQueueRegistry().getQueue(new AMQShortString(queueName));\n if (queue != null) {\n FieldTable argumentsFT = null;\n if (buf != null) {\n argumentsFT = new FieldTable(org.wso2.org.apache.mina.common.ByteBuffer.wrap(buf), buf.limit());\n }\n\n BindingFactory bf = _virtualHost.getBindingFactory();\n\n Map<String, Object> argumentMap = FieldTable.convertToMap(argumentsFT);\n\n if (bf.getBinding(bindingKey, queue, exchange, argumentMap) != null) {\n\n if(_logger.isDebugEnabled()) {\n _logger.debug(\"Binding Sync - Removed binding: (Exchange: \" + exchange.getNameShortString()\n + \", Queue: \" + queueName\n + \", Routing Key: \" + bindingKey + \", Arguments: \" + argumentsFT + \")\");\n }\n\n bf.removeBinding(bindingKey, queue, exchange, argumentMap, false);\n }\n }\n }\n }",
"@Override\n public BoardLayerView removeLayer(int index) {\n return this.layers.remove(index);\n }",
"private void removeLinks(int index) {\n ensureLinksIsMutable();\n links_.remove(index);\n }",
"public Type remove(int index);",
"public void removeListener(int index) {\n IApplication listener = this.listeners.get(index);\n if (listener == null) {\n return;\n }\n this.app.removeListener(listener);\n this.listeners.set(index, null); // don't remove because that would shift the indexes\n }",
"public CoreResourceHandle remove(int index) {\n if (index >= 0 && index < doSize()) {\n return doRemove(index);\n }\n throw new IndexOutOfBoundsException();\n }",
"private void remove(int index){\r\n \tkeys[index] = null;\r\n \tvals[index] = null;\r\n deleteCheck(index);\r\n }",
"public Builder removePhone(int index) {\n\t\t\t\tif (phoneBuilder_ == null) {\n\t\t\t\t\tensurePhoneIsMutable();\n\t\t\t\t\tphone_.remove(index);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tphoneBuilder_.remove(index);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}",
"public void remove(int index) {\r\n\t\tstmts.remove(index);\r\n\t}",
"public Builder removeInputs(int index) {\n if (inputsBuilder_ == null) {\n ensureInputsIsMutable();\n inputs_.remove(index);\n onChanged();\n } else {\n inputsBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeInputs(int index) {\n if (inputsBuilder_ == null) {\n ensureInputsIsMutable();\n inputs_.remove(index);\n onChanged();\n } else {\n inputsBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeInputs(int index) {\n if (inputsBuilder_ == null) {\n ensureInputsIsMutable();\n inputs_.remove(index);\n onChanged();\n } else {\n inputsBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }",
"public void removeNetwork(int index) {\n netwList.get(index).delete();\n // remove it from the list\n netwList.remove(index);\n notifyItemRemoved(index);\n }",
"public void remove(int index) {\n for (int i = index; i < this.list.length-1; i++) {\n this.list[i]=this.list[i+1];\n }\n this.size--;\n }",
"public Builder removeParameters(int index) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n\n return this;\n }",
"public void remove(int index) {\n\t\t// checks range\n\t\tcheckRange(index);\n\t\t// creates new JS array\n\t\tarray.remove(index);\n\t}",
"public void remove(int index) {\n\t\tif ((index < 1) || (index > size))\n\t\t\tthrow new IllegalArgumentException();\n\t\telse{\n\t\t\tremove(getNode(index));\n\t\t\t}\n\t}",
"public Builder removeXYPair(int index) {\n if (xYPairBuilder_ == null) {\n ensureXYPairIsMutable();\n xYPair_.remove(index);\n onChanged();\n } else {\n xYPairBuilder_.remove(index);\n }\n return this;\n }",
"@Override\n public void RemoveRoute(int index) {\n routes.remove(index);\n }",
"public void removeParam(int index) {\n params = Lists.remove(params, index);\n }",
"public Builder removeGrammarMatch(int index) {\n if (grammarMatchBuilder_ == null) {\n ensureGrammarMatchIsMutable();\n grammarMatch_.remove(index);\n onChanged();\n } else {\n grammarMatchBuilder_.remove(index);\n }\n return this;\n }",
"public native String removeItem(Number index);",
"private void removeFriendList(int index) {\n ensureFriendListIsMutable();\n friendList_.remove(index);\n }",
"public void remove(final int index) {\r\n\t\tif (index<0 || index>=names.size()) return;\r\n\t\tnames.remove(index);\r\n\t\timagesHashes.remove(index);\r\n\t\timages.remove(index);\r\n\t}",
"public Builder removeProps(int index) {\n if (propsBuilder_ == null) {\n ensurePropsIsMutable();\n props_.remove(index);\n onChanged();\n } else {\n propsBuilder_.remove(index);\n }\n return this;\n }",
"void removeBridgeElement(int i);",
"public void removeBinding(String func) {\n synchronized (BlitzPlugin.class) {\n if (this.mJsFuncTable.containsKey(func)) {\n this.mJsFuncTable.remove(func);\n BlitzPlugin._removeBindingJs(func);\n }\n }\n }",
"@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void removeAt(final int index) {\n\t\tremoveFromInsertionOrder(index);\n\t\tsuper.removeAt(index); // clear key, state, value; adjust size\n\t}",
"public Builder removeBundles(int index) {\n if (bundlesBuilder_ == null) {\n ensureBundlesIsMutable();\n bundles_.remove(index);\n onChanged();\n } else {\n bundlesBuilder_.remove(index);\n }\n return this;\n }",
"public void remove(int index) \r\n\t{\t\r\n\t\tNode n = headPointer;\r\n \t\tint count = 0;\r\n \t\t\r\n \t\twhile(count != index)\r\n \t\t{\r\n \t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\r\n\t\t\t}\r\n \t\t\tcount ++;\r\n \t\t}\r\n \t\tn.getPrev().setNext(n.getNext());\r\n \t\tn.getNext().setPrev(n.getPrev());\r\n \t\tn = null;\r\n\t}",
"public Builder removePhone(int index) {\n if (phoneBuilder_ == null) {\n ensurePhoneIsMutable();\n phone_.remove(index);\n onChanged();\n } else {\n phoneBuilder_.remove(index);\n }\n return this;\n }",
"@Override\n\tpublic void remove(int index) {\n\t\tListNode<L> current=this.first;\n\t\tif(index < 0 || index >= this.size) throw new IndexOutOfBoundsException();\n\t\tfor(int i=0;i<index;i++) {\n\t\t\tcurrent=current.next;\n\t\t}\n\t\tif (index == 0) {\n\t first = current.next;\n\t } else {\n\t current.previous.next = current.next;\n\t }\n\t this.size--;\n\t\tthis.modificationCount++;\n\t}",
"public static void removeOneShape(XComponent impressDocument, int pageIndex, int shapeIndex) throws Exception{\n\t\tXDrawPagesSupplier drawsupplier = (XDrawPagesSupplier) UnoRuntime.queryInterface(\n\t\t\t\tXDrawPagesSupplier.class, impressDocument);\n\t\tXDrawPages drawpages = drawsupplier.getDrawPages();\n\t\tXDrawPage xpage=(XDrawPage)UnoRuntime.queryInterface(XDrawPage.class, drawpages.getByIndex(pageIndex));\n\t\tXShapes xShapes = (XShapes) UnoRuntime.queryInterface(XShapes.class, xpage);\n\t\tXShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class, xShapes.getByIndex(shapeIndex));\n\t\txShapes.remove(xShape);\n\n\t}",
"Binding<T> unshared();",
"public PointF remove(int index)\n {\n flushCache();\n return points.remove(index);\n }",
"public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}",
"synchronized protected void removePoint(final int index) {\n \t\t// check preconditions:\n \t\tif (index < 0) {\n \t\t\treturn;\n \t\t} else if (n_points - 1 == index) {\n \t\t\t//last point out\n \t\t\tn_points--;\n \t\t} else {\n \t\t\t//one point out (but not the last)\n \t\t\t--n_points;\n \n \t\t\t// shift all points after 'index' one position to the left:\n \t\t\tfor (int i=index; i<n_points; i++) {\n \t\t\t\tp[0][i] = p[0][i+1];\t\t//the +1 doesn't fail ever because the n_points has been adjusted above, but the arrays are still the same size. The case of deleting the last point is taken care above.\n \t\t\t\tp[1][i] = p[1][i+1];\n \t\t\t\tp_layer[i] = p_layer[i+1];\n \t\t\t}\n \t\t}\n \n \t\t// Reset or fix autotracing records\n \t\tif (index < last_autotrace_start && n_points > 0) {\n \t\t\tlast_autotrace_start--;\n \t\t} else last_autotrace_start = -1;\n \n \t\t//update in database\n \t\tupdateInDatabase(\"points\");\n \t}",
"void remove( int index );",
"public T remove(int index) {\n return null;\n }",
"@Override\r\n\tpublic T remove(int index) {\n\t\treturn this._list.remove(index);\r\n\t}",
"public void removeRules(int index) {\n ensureRulesIsMutable();\n this.rules_.remove(index);\n }",
"public void deleteItem(int index) {\n this.items.remove(index);\n }",
"public Builder removeNetworks(int index) {\n if (networksBuilder_ == null) {\n ensureNetworksIsMutable();\n networks_.remove(index);\n onChanged();\n } else {\n networksBuilder_.remove(index);\n }\n return this;\n }",
"public void remove(int index) {\n\t\t\tcheckIndex(index);\n\t\t\tfor(int i = index; i < size - 1; i++) {\n\t\t\t\telementData[i] = elementData[i + 1];\n\t\t\t}\n\t\t}",
"public T remove(int index) {\n chk();\n return list.remove(index);\n }",
"Feature removeFeature(int index);",
"public void removeLocation(int index)\n {\n this.locationLst.remove(index);\n }",
"public Builder removePops(int index) {\n if (popsBuilder_ == null) {\n ensurePopsIsMutable();\n pops_.remove(index);\n onChanged();\n } else {\n popsBuilder_.remove(index);\n }\n return this;\n }",
"public void removeRecord(int index) {\r\n\t\tsuper.removeRecord(index);\r\n\t\ttrackPointOverlay.removeWayPoint(index);\r\n\t}",
"public Builder removeArgs(int index) {\n if (argsBuilder_ == null) {\n ensureArgsIsMutable();\n args_.remove(index);\n onChanged();\n } else {\n argsBuilder_.remove(index);\n }\n return this;\n }",
"@Override\n\tpublic E remove(int index) {\n\t\trangeCheck(index);\n\t\t\n\t\treturn remove(node(index));\n\t}",
"public Builder removeBreakpoints(int index) {\n if (breakpointsBuilder_ == null) {\n ensureBreakpointsIsMutable();\n breakpoints_.remove(index);\n onChanged();\n } else {\n breakpointsBuilder_.remove(index);\n }\n return this;\n }",
"public void deleteAtIndex(int index) {\n if (index >= this.size || index < 0) {\n return;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n pred.next = pred.next.next;\n this.size--;\n }",
"private void removeRefundTo(int index) {\n ensureRefundToIsMutable();\n refundTo_.remove(index);\n }",
"public Builder removeParams(int index) {\n if (paramsBuilder_ == null) {\n ensureParamsIsMutable();\n params_.remove(index);\n onChanged();\n } else {\n paramsBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeDelegatedOutputs(int index) {\n if (delegatedOutputsBuilder_ == null) {\n ensureDelegatedOutputsIsMutable();\n delegatedOutputs_.remove(index);\n onChanged();\n } else {\n delegatedOutputsBuilder_.remove(index);\n }\n return this;\n }",
"public int remove(int index) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n index = constrain(index, 0, size - 1);\n\n mItems.remove(index);\n return index;\n }",
"void remove(int idx);",
"public void removeControl(int index) {\n\t\tif (index < 0 || index >= controls.size())\n\t\t\treturn;\n\t\tcontrols.remove(index);\n\t}",
"public void deleteCommandMutable(int index) {\n int correctIndex = index - 1;\n assertIndexInRange(correctIndex);\n this.listItems.remove(correctIndex);\n }",
"public void deleteAtIndex(int index) {\n if (index < 0 || index >= size) throw new IllegalArgumentException(\"Add filed, index is illegal\");\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n Node retNode = prev.next;\n prev.next = retNode.next;\n retNode.next = null; //loitering object != memory leak\n size--;\n }",
"public void remove( int index ) {\n\tif (index > _lastPos)\n\t System.out.println(\"No meaningful value at index\");\n\telse {for (int i= index; i < _lastPos; i++){\n\t\t_data[i]= _data[i+1];\n\t }\n\t _size--;\n\t _lastPos--;\n\t}\n }",
"public Builder removeContact(int index) {\n if (contactBuilder_ == null) {\n ensureContactIsMutable();\n contact_.remove(index);\n onChanged();\n } else {\n contactBuilder_.remove(index);\n }\n return this;\n }",
"void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"void remove(int index);",
"private void removeOutputs(int index) {\n ensureOutputsIsMutable();\n outputs_.remove(index);\n }",
"public Builder removeAois(int index) {\n if (aoisBuilder_ == null) {\n ensureAoisIsMutable();\n aois_.remove(index);\n onChanged();\n } else {\n aoisBuilder_.remove(index);\n }\n return this;\n }",
"public void remove(int index) {\r\n\t\t//Das Element am Index soll weg:\r\n\t\t//1. Alle Elemente davor sollen erhalten bleiben\r\n\t\t//2. Alle Elemente dahinter sollen erhalten bleiben\r\n\t\t//und der Index 1 kleiner werden\r\n\t\tfor(int i=index+1;i < geheim.length; i++) {\r\n\t\t\tgeheim[i-1] = geheim[i];\r\n\t\t}\r\n\t\t//3. Das Array soll um eins kleiner sein\r\n\t\tresize(-1);\r\n\t}",
"public Builder removeParts(int index) {\n if (partsBuilder_ == null) {\n ensurePartsIsMutable();\n parts_.remove(index);\n onChanged();\n } else {\n partsBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removePickups(int index) {\n if (pickupsBuilder_ == null) {\n ensurePickupsIsMutable();\n pickups_.remove(index);\n onChanged();\n } else {\n pickupsBuilder_.remove(index);\n }\n return this;\n }"
] |
[
"0.773574",
"0.71525836",
"0.64618295",
"0.6237398",
"0.62056494",
"0.5933851",
"0.5909697",
"0.58796626",
"0.5856322",
"0.5846464",
"0.5831945",
"0.58292717",
"0.5814928",
"0.581462",
"0.580554",
"0.58048475",
"0.5774976",
"0.57747465",
"0.5766228",
"0.5762839",
"0.5734943",
"0.5725635",
"0.5706356",
"0.5685566",
"0.5655598",
"0.5639227",
"0.5639081",
"0.5625357",
"0.5611467",
"0.56004643",
"0.5599226",
"0.55977523",
"0.55959",
"0.55918586",
"0.5590265",
"0.5590265",
"0.5590265",
"0.5582685",
"0.5582685",
"0.5579297",
"0.55752045",
"0.55710673",
"0.556868",
"0.556703",
"0.5566214",
"0.5565766",
"0.55632275",
"0.5561383",
"0.5559595",
"0.5558565",
"0.5556326",
"0.5554597",
"0.55534875",
"0.55368006",
"0.55334",
"0.55289096",
"0.55257636",
"0.55140775",
"0.5513229",
"0.5499061",
"0.54949415",
"0.54819757",
"0.54819417",
"0.5480445",
"0.54792696",
"0.54610074",
"0.5450277",
"0.5450068",
"0.54444015",
"0.54363436",
"0.5424719",
"0.5415367",
"0.54120904",
"0.54116505",
"0.54112744",
"0.5409393",
"0.54083055",
"0.54066724",
"0.539741",
"0.5394044",
"0.5390659",
"0.53880733",
"0.53879976",
"0.5379319",
"0.5375268",
"0.5374872",
"0.53735036",
"0.53726846",
"0.5369382",
"0.5368292",
"0.5363519",
"0.53622985",
"0.53622985",
"0.53622985",
"0.53622985",
"0.53594744",
"0.5356755",
"0.5348165",
"0.5345665",
"0.5344302"
] |
0.8494233
|
0
|
Returns the individual binding with the given property name.
|
public Binding getBinding(String aPropertyName)
{
// Iterate over bindings and return the first that matches given property name
for(int i=0, iMax=getBindingCount(); i<iMax; i++)
if(getBinding(i).getPropertyName().equals(aPropertyName))
return getBinding(i);
return null; // Return null since binding not found
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Object get(String name) {\n\t\tMap<?, ?> bindings = m_bindings.getBindings();\n\t\tif (bindings == null) {\n\t\t\tlog.info(\"get: no bindings!\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn bindings.get(name);\n\t}",
"public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }",
"Property findProperty(String propertyName);",
"Binding getBinding();",
"@Override\n public String getBinding(String name) {\n if (wrappedToStringContext != null && wrappedToStringContext.getBinding(name) != null)\n return wrappedToStringContext.getBinding(name);\n else\n return wrappedSerializationContext.getBinding(name);\n }",
"public static Prop lookup(String propName) {\n Prop prop = BY_NAME.get(propName);\n if (prop == null) {\n throw new RuntimeException(\"property \" + propName + \" not found\");\n }\n return prop;\n }",
"Object getProperty(String name);",
"public Object getProperty(String name) {\n\t\treturn beanMap.get(name);\n\t}",
"Expression getBindingExpression();",
"@SuppressWarnings(\"unchecked\")\n public <T> Binding<T> getBinding(Key<T> key) {\n return (Binding<T>) bindings.get(key);\n }",
"FieldBinding getBinding( Field< ? > field );",
"String getProperty(String name);",
"public String getProperty(String name);",
"public String get(String propertyName);",
"public Object getProperty(String name) {\n return properties.get(name);\n }",
"public void addBinding(String aPropName, String aKey) { addBinding(new Binding(aPropName, aKey)); }",
"String get(String kind, String name, String property);",
"public Binding getBinding() { \n\t\tif (myBinding == null) {\n\t\t\tmyBinding = new Binding();\n\t\t}\n\t\treturn myBinding;\n\t}",
"public java.lang.Object getProperty(java.lang.String name)\n throws javax.xml.bind.PropertyException\n {\n return super.getProperty(name);\n }",
"public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }",
"public Binding getBinding() {\n return binding;\n }",
"String getProperty(String property);",
"public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }",
"public Binding getBinding() {\n\t\treturn binding;\n\t}",
"public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }",
"public NdexPropertyValuePair getPropertyByName(String name) {\n\t\tfor ( NdexPropertyValuePair p : _properties ) {\n\t\t\tif ( p.getPredicateString().equals(name)) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String bnd(String name) {\n\t\treturn bnd.get(name);\n\t}",
"public static ConfigProperty find(String name) {\n for (ConfigProperty prop : ConfigProperty.values()) {\n if (prop.getName().equals(name)) {\n return prop;\n }\n }\n return null;\n }",
"public Object getProperty(String attName);",
"protected NamedThing getLocalProperty(String name) {\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (name.equals(prop.getName())) {\n return prop;\n }\n }\n return null;\n }",
"public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}",
"@Override\r\n\tpublic String getBind_property_ind() {\n\t\treturn super.getBind_property_ind();\r\n\t}",
"public PropertyObject getProperty(String name) {\n return this.properties.get(name);\n }",
"Object getEndpointParameter(Endpoint endpoint, String name) throws RuntimeCamelException;",
"@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }",
"private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }",
"public <T> T getProperty(String name) {\n return properties.get(name);\n }",
"public Object getDynamicProperty(String propertyName) \n\t{\t\n\t\tif (propertyValues == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\t\t\t\n\t\tPropertyValue propVal = null;\n\t\tIterator it = propertyValues.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tpropVal = (PropertyValue)it.next();\t\t\t\n\t\t\t\n\t\t\tif (propVal.getName().equalsIgnoreCase(propertyName))\n\t\t\t{\n\t\t\t\treturn propVal.getValue();\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public String getProperty( String name )\n {\n return getProperty( name, false );\n }",
"@Override\n public Object getProperty(String property) {\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object prop = requiredBehaviorEntry.getValue().getProperty(property);\n if (prop != null) {\n return prop;\n }\n }\n return null;\n }",
"public Property property(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Property);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Property) list.get(0);\n\t\t}\n\t\telse return null;\n\t}",
"EStructuralFeature getBoundProperty();",
"public static String getProperty(String name) {\r\n return properties.getProperty(name);\r\n }",
"public Object getProperty(String name)\n {\n return m_props.get(name);\n }",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return instance.getAdditionalBindings(index);\n }",
"public Object get(String propertyName) {\n if (this.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n return this.propertyBag.get(propertyName);\n } else {\n return null;\n }\n }",
"Object getProperty(String key);",
"public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }",
"public String getProperty(String name) {\n return this.getProperty(name, null);\n }",
"public com.google.api.HttpRule getAdditionalBindings(int index) {\n return additionalBindings_.get(index);\n }",
"public Object findBean(String beanName) {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\treturn context.getApplication().evaluateExpressionGet(context, \"#{\" + beanName + \"}\", Object.class);\n\t}",
"public TLProperty getElement(String elementName);",
"public String get(final String name) {\r\n return (String) properties.get(name);\r\n }",
"public Value lookup (String name){\n Closure exist = find_var(name);\n return exist.getValues().get(name);\n }",
"Property getProperty();",
"Property getProperty();",
"public String runtimeProperty(String name) {\n if (_properties == null) {\n return null;\n }\n return _properties.get(name);\n }",
"public boolean removeBinding(String aPropertyName)\n{\n // Iterate over binding and remove given binding\n for(int i=0, iMax=getBindingCount(); i<iMax; i++)\n if(getBinding(i).getPropertyName().equals(aPropertyName)) {\n removeBinding(i); return true; }\n return false; // Return false since binding not found\n}",
"IViewerBinding getBinding();",
"public String prop(String name);",
"@NoProxy\n @NoDump\n @NoWrap\n public String getXproperty(final String name) {\n BwXproperty prop = findXproperty(name);\n\n if (prop == null) {\n return null;\n }\n\n return prop.getValue();\n }",
"public String getStringProperty(String propertyName) ;",
"static private Object lookup(PageContext pageContext, String name, \r\n String scope, String pageParam, Properties prop) throws JspException {\r\n\r\n Object bean = null;\r\n if (scope == null)\r\n bean = pageContext.findAttribute(name);\r\n else if (scope.equalsIgnoreCase(pageParam))\r\n bean = pageContext.getAttribute(name, PageContext.PAGE_SCOPE);\r\n else if (scope.equalsIgnoreCase(\"request\"))\r\n bean = pageContext.getAttribute(name, PageContext.REQUEST_SCOPE);\r\n else if (scope.equalsIgnoreCase(\"session\"))\r\n bean = pageContext.getAttribute(name, PageContext.SESSION_SCOPE);\r\n else if (scope.equalsIgnoreCase(\"application\"))\r\n bean = pageContext.getAttribute(name, PageContext.APPLICATION_SCOPE);\r\n else {\r\n Object[] objs = { name, scope };\r\n String msg = MessageFormat.format(prop.getProperty(\"error.msg.cant_find_bean\"), objs);\r\n throw new JspException(msg);\r\n }\r\n\r\n return (bean);\r\n }",
"abstract Object getXMLProperty(XMLName name);",
"public Variable getProperty(String propertyName)\r\n\t{\r\n\t\t// search own properties:\r\n\t\tfor (int i=0; i<properties.size(); i++)\r\n\t\t{\r\n\t\t\tif (properties.get(i).name.equals(propertyName))\r\n\t\t\t\treturn properties.get(i);\r\n\t\t}\r\n\t\t// if we have a base class, let it search for properties, or return null\r\n\t\tif (baseClass != null)\r\n\t\t\treturn baseClass.getProperty(propertyName);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public Object getProperty (String index) ;",
"public Name getBindingClassName()\n {\n assert bindingClassName != null;\n return bindingClassName;\n }",
"public DCPList getBinding() {\n return binding;\n }",
"boolean containsProperty(String name);",
"public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"public String getProperty(final String iName) {\n return getProperty(iName, null);\n }",
"public static Object lookupBean(String name) {\n BeanManager manager = lookupBeanManager();\n Set<Bean<?>> beans = manager.getBeans(name);\n if (beans != null && !beans.isEmpty()) {\n Bean<?> bean = beans.iterator().next();\n CreationalContext<?> context = manager.createCreationalContext(bean);\n return manager.getReference(bean, Object.class, context);\n }\n return null;\n }",
"public static GlobalProperty forName(String name) {\n return GlobalProperties.forName(name);\n }",
"public abstract int getBindingVariable();",
"public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }",
"public Object getProperty(String name) {\n return null;\n }",
"@Override\r\n\tpublic String getProp(final String propName) {\n\t\treturn exec(new Callable<String>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String call() throws Exception {\r\n\t\t\t\treturn System.getProperty(propName);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public abstract boolean getProperty(String propertyName);",
"@Override\n\tpublic Object get(String name, Scriptable start) {\n\t\tObject result = super.get(name, start);\n\t\tif(result == NOT_FOUND && unwrap().appliedBindings.size() > 0) {\n\t\t\tfor(XBLBinding binding : unwrap().appliedBindings) {\n\t\t\t\t// Check fields:\n\t\t\t\tXBLField field = binding.getField(name);\n\t\t\t\tif(field != null && field.getInitializer() != null) {\n\t\t\t\t\tFunction init = asFunction(field.getInitializer());\n\t\t\t\t\tfield.setInitializer(init);\n\t\t\t\t\tresult = init.call(Context.getCurrentContext(), getParentScope(), this, new Object[]{});\n\t\t\t\t\tput(name, this, result);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Check property getters:\n\t\t\t\tXBLProperty prop = binding.getProperty(name);\n\t\t\t\tif(prop != null && prop.getGetter() != null) {\n\t\t\t\t\tFunction getter = asFunction(prop.getGetter());\n\t\t\t\t\tprop.setGetter(getter);\n\t\t\t\t\tresult = getter.call(Context.getCurrentContext(), getParentScope(), this, new Object[]{});\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Check methods:\n\t\t\t\tXBLMethod method = binding.getMethod(name);\n\t\t\t\tif(method != null && method.getBody() != null) {\n\t\t\t\t\tresult = asFunction(method.getBody());\n\t\t\t\t\tmethod.setBody(result);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn convertReturnValue(result);\n\t}",
"public String getProperty(Object obj, String key);",
"PropertyReference createPropertyReference();",
"Value get(ExecutionContext context, String propertyName);",
"public ActiveEntity getEntityBinding(String name, boolean local) {\n ActiveEntity ent = (entities == null)\n ? null : entities.getEntityBinding(name);\n if (debug() && ent != null) \n debug(\"Binding found for \" + name + \" \" + ent.getClass().getName());\n return (local || ent != null || nameContext == null)\n ? ent : nameContext.getEntityBinding(name, local);\n }",
"Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }",
"public Object getLinkProperty(String name) {\n if (!hasLinkAttributes()) {\n return null;\n }\n\n return get(\"link.\" + name);\n }",
"public Object getLinkProperty(String name) {\n if (!hasLinkAttributes()) {\n return null;\n }\n\n return get(\"link.\" + name);\n }",
"Object getProperty(Long id, String name) throws RemoteException;",
"@Override\r\n\tpublic String getBind_housing_property_ind() {\n\t\treturn super.getBind_housing_property_ind();\r\n\t}",
"public static servicegroupbindings get(nitro_service service, String servicegroupname) throws Exception{\n\t\tservicegroupbindings obj = new servicegroupbindings();\n\t\tobj.set_servicegroupname(servicegroupname);\n\t\tservicegroupbindings response = (servicegroupbindings) obj.get_resource(service);\n\t\treturn response;\n\t}",
"private boolean findProperty(String name,\n PropertyDescriptor[] propertyDescriptors) {\n for (int i = 0; i < propertyDescriptors.length; i++) {\n if (propertyDescriptors[i].getName().equals(name)) {\n return true;\n }\n }\n return false;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public static <T> T getProperty(String name) {\r\n return (T) propertyMap.get(name);\r\n }",
"public NamingEnumeration<Binding> listBindings( final Name name )\n throws NamingException\n {\n if ( isSelf( name ) )\n {\n return doLocalListBindings();\n }\n else\n {\n // Perhaps 'name' names a context\n final Context context = lookupSubContext( name );\n return context.listBindings( \"\" );\n }\n }",
"public java.lang.String getProperty(java.lang.String propertyName) {\n return properties.getProperty(propertyName);\n }",
"public Optional<Object> getProperty(String name) {\n return Optional.ofNullable(properties.get(name));\n }",
"IIndexFragmentBinding findBinding(IASTName astName) throws CoreException;",
"public native final Value property(final String name)/*-{\n\t\treturn {\n\t\t\tdatum : this.property(name)\n\t\t};\n\t}-*/;",
"public PrimObject reference(String name) {\n return resolveObject(name);\n }"
] |
[
"0.6489929",
"0.6303925",
"0.6049578",
"0.603349",
"0.5881659",
"0.57206625",
"0.56944716",
"0.5679992",
"0.5666422",
"0.56147015",
"0.56016153",
"0.5549678",
"0.5530668",
"0.5506761",
"0.55001426",
"0.5459863",
"0.54401034",
"0.54399747",
"0.5433665",
"0.53661364",
"0.53590715",
"0.5345297",
"0.53314376",
"0.53223",
"0.5304245",
"0.52987427",
"0.5278995",
"0.52390957",
"0.5229967",
"0.52230424",
"0.51658034",
"0.5157247",
"0.5139294",
"0.5111777",
"0.51109207",
"0.5087568",
"0.5087281",
"0.5084977",
"0.5080064",
"0.5078087",
"0.507707",
"0.50690264",
"0.50635594",
"0.50558066",
"0.5042603",
"0.502638",
"0.50161326",
"0.50026643",
"0.50020075",
"0.49801517",
"0.4977226",
"0.49772158",
"0.49771902",
"0.49569398",
"0.49542013",
"0.49542013",
"0.49541342",
"0.49456978",
"0.49432346",
"0.49394143",
"0.49364537",
"0.4935574",
"0.4925208",
"0.49209777",
"0.49147418",
"0.48976833",
"0.4891182",
"0.48870164",
"0.484787",
"0.4826514",
"0.4808999",
"0.4808999",
"0.4808999",
"0.4807291",
"0.4800518",
"0.47897017",
"0.4779138",
"0.476411",
"0.4753299",
"0.47524127",
"0.47472215",
"0.47426912",
"0.47323638",
"0.47279668",
"0.47164765",
"0.47153872",
"0.47123086",
"0.46973905",
"0.46973905",
"0.46939293",
"0.46786734",
"0.46749887",
"0.46708658",
"0.46600127",
"0.4648227",
"0.4636273",
"0.46351445",
"0.46350044",
"0.462735",
"0.46257636"
] |
0.82327706
|
0
|
Removes the binding with given property name.
|
public boolean removeBinding(String aPropertyName)
{
// Iterate over binding and remove given binding
for(int i=0, iMax=getBindingCount(); i<iMax; i++)
if(getBinding(i).getPropertyName().equals(aPropertyName)) {
removeBinding(i); return true; }
return false; // Return false since binding not found
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\");\n if (inputParameters != null) {\n inputParameters.remove(name);\n }\n }\n }",
"public void removeRuntimeProperty(String name) {\n if (_properties != null) {\n _properties.remove(name);\n }\n }",
"public void remove(String propertyName) {\n this.propertyBag.remove(propertyName);\n }",
"public String removeStringProperty(String propertyName);",
"public Binding removeBinding(int anIndex) { return getBindings(true).remove(anIndex); }",
"public void removeUserDefinedProperty(String propertyName);",
"public void clearProperty( String name )\n {\n if ( config != null )\n {\n config.clearProperty( name );\n }\n else\n {\n LOG.warn( \"clearProperty invalid config, prop name [{}]\", name );\n }\n }",
"Form removeProperty(String key);",
"public Object removeProperty( String key );",
"public void removeProperty(TLProperty element);",
"public void removePropertyChangeListener (\n String propertyName,\n PropertyChangeListener l\n ) {\n pcs.removePropertyChangeListener (propertyName, l);\n }",
"void removeFieldBinding( FieldBinding binding );",
"public void removeStateValueBinding(final String variableName) {\n //Preconditions\n assert variableName != null : \"variableName must not be null\";\n assert !variableName.isEmpty() : \"variableName must not be empty\";\n\n synchronized (stateVariableDictionary) {\n if (stateVariableDictionary.isEmpty() && !stateValueBindings.isEmpty()) {\n // lazy population of the state value dictionary from the persistent state value bindings\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateVariableDictionary.put(stateValueBinding.getVariableName(), stateValueBinding);\n });\n }\n final StateValueBinding stateValueBinding = stateVariableDictionary.remove(variableName);\n if (stateValueBinding != null) {\n final boolean isRemoved = stateValueBindings.remove(stateValueBinding);\n assert isRemoved;\n }\n }\n }",
"public boolean removeProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return removeProperty(property);\n }\n return false;\n }",
"void graphRemoveProperty( int propertyKey );",
"@Override\n public void removeProperty(DavPropertyName propertyName) throws DavException {\n internalRemoveProperty(propertyName);\n complete();\n }",
"public BladeController removeAttr(String name) {\n\t\trequest.removeAttribute(name);\n\t\treturn this;\n\t}",
"public void unbind(Name name) throws NamingException {\n }",
"void removePropertyListener(PropertyListener listener);",
"public void unbind(String name) throws NamingException {\n }",
"Property removeValue(PropertyValue<?, ?> value);",
"void relRemoveProperty( long relId, int propertyKey );",
"public void removeProperty(Object key) {\r\n\t\tproperties.remove(key);\r\n\t}",
"abstract void deleteXMLProperty(XMLName name);",
"public void removeProperty(String key) {\n\t\tthis.properties.remove(key);\n\t}",
"public void removePropertyChangeListener(PropertyChangeListener l);",
"@Override\n public void removePropertyChangeListener( String propertyName,PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.removePropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.removePropertyChangeListener( listener );\n }\n }\n }",
"public void removeBinding(String func) {\n synchronized (BlitzPlugin.class) {\n if (this.mJsFuncTable.containsKey(func)) {\n this.mJsFuncTable.remove(func);\n BlitzPlugin._removeBindingJs(func);\n }\n }\n }",
"private void removeBinding(String exchangeName, String queueName, String bindingKey, ByteBuffer buf)\n throws AMQSecurityException, AMQInternalException {\n\n synchronized (this) {\n Exchange exchange = _virtualHost.getExchangeRegistry().getExchange(exchangeName);\n if (exchange == null) {\n return;\n }\n\n AMQQueue queue = _virtualHost.getQueueRegistry().getQueue(new AMQShortString(queueName));\n if (queue != null) {\n FieldTable argumentsFT = null;\n if (buf != null) {\n argumentsFT = new FieldTable(org.wso2.org.apache.mina.common.ByteBuffer.wrap(buf), buf.limit());\n }\n\n BindingFactory bf = _virtualHost.getBindingFactory();\n\n Map<String, Object> argumentMap = FieldTable.convertToMap(argumentsFT);\n\n if (bf.getBinding(bindingKey, queue, exchange, argumentMap) != null) {\n\n if(_logger.isDebugEnabled()) {\n _logger.debug(\"Binding Sync - Removed binding: (Exchange: \" + exchange.getNameShortString()\n + \", Queue: \" + queueName\n + \", Routing Key: \" + bindingKey + \", Arguments: \" + argumentsFT + \")\");\n }\n\n bf.removeBinding(bindingKey, queue, exchange, argumentMap, false);\n }\n }\n }\n }",
"PropertiesTask removeProperty( String key );",
"public void yUnbind(String bind_name);",
"void clearProperty(String key);",
"void clearProperty(String key);",
"public void removeListener(PropertyChangeListener listener, String propertyType);",
"@Override\n\t\tpublic Object removeProperty(String key) {\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic Object removeAttribute(String name) {\n\t\t\treturn null;\n\t\t}",
"public void removeParameter(final String name) {\n\t\tqueryParameters.remove(name);\n\t}",
"public Binding getBinding(String aPropertyName)\n{\n // Iterate over bindings and return the first that matches given property name\n for(int i=0, iMax=getBindingCount(); i<iMax; i++)\n if(getBinding(i).getPropertyName().equals(aPropertyName))\n return getBinding(i);\n return null; // Return null since binding not found\n}",
"private void removeAdditionalBindings(int index) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.remove(index);\n }",
"public void removePropertyChangeListener (PropertyChangeListener l) {\n pcs.removePropertyChangeListener (l);\n }",
"public void removePropertyChangeListener (PropertyChangeListener l)\n { pcs.removePropertyChangeListener (l); }",
"void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);",
"public void remove(ResourceLocation name) {\n data.remove(name.toString());\n }",
"public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(NAME$2);\r\n }\r\n }",
"public void removePropertyChangeListener(Property property, PropertyChangeListener listener) {\n this.propertyChangeSupport.removePropertyChangeListener(property.name(), listener);\n }",
"public void removePersistentParameter(String name) {\r\n\t\tpersistentParameters.remove(name);\r\n\t}",
"public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }",
"private Object removeByNameProperty(String key, Collection collection) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {\n for (Object candidate : collection) {\n Object candidateName = getProperty(candidate, \"name\");\n if (candidateName != null && key.equals(candidateName.toString())) {\n collection.remove(candidate);\n break;\n }\n }\n return null;\n }",
"@Override\n\t\tpublic void removeAttribute(String name) {\n\t\t\t\n\t\t}",
"public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }",
"public void removePersistentParameter(String name) {\n\t\tpersistentParameters.remove(name);\n\t}",
"public void removePropertyChangeListener(final PropertyChangeListener thePcl) {\n myPcs.removePropertyChangeListener(thePcl);\n }",
"public void removePropertyChangeListener(PropertyChangeListener listener);",
"public static void removeAttribute(String name) {\n\t\tGPortalExecutionContext.getRequest().getSessionContext().removeAttribute(name);\n\t}",
"public void unRegisterBinding(String bindingKey, Node node) {\n\t\tlog.info(\"UnRegistering binding key \" + bindingKey);\n\t\ttry {\n\t\t\tString authToken = getAuthToken(node.getSecurityUrl());\n\t\t\tDeleteBinding deleteBinding = new DeleteBinding();\n\t\t\tdeleteBinding.setAuthInfo(authToken);\n\t\t\tdeleteBinding.getBindingKey().add(bindingKey);\n\t\t\tgetUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Unable to unregister bindingkey \" + bindingKey\n\t\t\t\t\t+ \" .\" + e.getMessage(),e);\n\t\t}\n\t}",
"public X removePropertyChangeListener(String property, PropertyChangeListener listener) {\n component.removePropertyChangeListener(property, listener);\n return (X) this;\n }",
"public void unbind(String name) throws RemoteException, NotBoundException;",
"public static void removeProperty(String aKey) {\n checkArgument(!isNullOrEmpty(aKey), \"aKey cannot be null or empty\");\n \n loadPropertiesFile();\n if (props.containsKey(aKey))\n props.remove(aKey);\n storePropsFile();\n }",
"public void deleteConfigurationValue(String name);",
"public void unbind( final Name name )\n throws NamingException\n {\n if ( isSelf( name ) )\n {\n throw new InvalidNameException( \"Cannot unbind self\" );\n }\n else if ( 1 == name.size() )\n {\n doLocalUnbind( name );\n }\n else\n {\n final Context context = lookupSubContext( getPathName( name ) );\n context.unbind( getLeafName( name ) );\n }\n }",
"private void internalRemoveProperty(DavPropertyName propertyName) throws DavException {\n if (!exists()) {\n throw new DavException(DavServletResponse.SC_NOT_FOUND);\n }\n if (JCR_MIXINNODETYPES.equals(propertyName)) {\n // remove all mixin nodetypes\n try {\n Node n = (Node)item;\n for (NodeType mixin : n.getMixinNodeTypes()) {\n n.removeMixin(mixin.getName());\n }\n } catch (RepositoryException e) {\n // NoSuchNodeTypeException, ConstraintViolationException should never occur...\n throw new JcrDavException(e);\n }\n } else {\n // all props except for mixin node types are read-only\n throw new DavException(DavServletResponse.SC_CONFLICT);\n }\n }",
"public Builder removeQueryParameter(String name) {\n\t\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\n\t\t\turl.query.remove(name);\n\t\t\treturn this;\n\t\t}",
"@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}",
"@Override\n\tpublic void removeAttribute(String name) {\n\t\t\n\t}",
"public final String remove(String fieldName, String name) {\n String asterisk = get(fieldName);\n if (asterisk == null) {\n return null;\n }\n if (asterisk.equals(\"*\")) {\n return \"*\";\n }\n for (NagPointerDef e : pointers) {\n if (e.from == type && e.byField.equals(fieldName)) {\n if (e.stride == 0) {\n remove(fieldName);\n } else {\n TreeSet<String> mems = fieldToSet(e.byField, e.stride);\n mems.remove(name);\n if (mems.isEmpty()) {\n remove(fieldName);\n } else {\n put(fieldName, setToField(mems));\n }\n }\n return get(fieldName);\n }\n }\n // not a referencing field, just remove it.\n remove(fieldName);\n return get(fieldName);\n }",
"void removePropertyChangeListener(PropertyChangeListener listener);",
"void removePropertyChangeListener(PropertyChangeListener listener);",
"public void remove(String name) throws PropException {\n if (lists.contains(name)) {\n lists.remove(name);\n } else throw new PropException(ErrorString.UNEXISTING_LIST);\n }",
"void nodeRemoveProperty( long nodeId, int propertyKey );",
"public Builder removeAdditionalBindings(int index) {\n copyOnWrite();\n instance.removeAdditionalBindings(index);\n return this;\n }",
"public static void removeViewScopedBean(String beanName){\r\n FacesContext.getCurrentInstance().getViewRoot().getViewMap().remove(beanName);\r\n }",
"public void removeParameter(String name)\r\n {\r\n // warning, param names are escaped\r\n this.parameters.remove(StringEscapeUtils.escapeHtml(name));\r\n }",
"protected void onBindingUnset(@NonNull AutoRef<Context> context, @NonNull AutoRef<TBinding> oldBinding) {\n }",
"@Override\n public void deactivateBinding(QName name, ServiceHandler handler) {\n }",
"public void dropBindings(int id) throws RemoteException, Error;",
"private native void removeCallback(String name)\n /*-{\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n $wnd.console.log(part,'not defined in',target);\n // No longer attached -> nothing more to do\n return;\n }\n target = target[part];\n }\n\n $wnd.console.log('removing',parts[parts.length - 1],'from',target);\n delete target[parts[parts.length - 1]];\n }-*/;",
"public void remove(String key) {\n\t\t\tproperties.remove(key);\n\t\t}",
"public abstract void removePropertyChangeListener(IPropertyChangeListener listener);",
"void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }",
"public void removeProperty(DAGObject dagObj, String key) {\r\n\r\n\t}",
"public void removePropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.removePropertyChangeListener(pListener);\n }",
"public static native void _removeBindingJs(String str);",
"public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\r\n propertyChangeSupport.removePropertyChangeListener(l);\r\n }",
"public void remove(final String name) {\r\n\t\tremove(names.indexOf(name));\r\n\t}",
"public void removePropertyChangeListener(PropertyChangeListener l) {\n getPropertyChangeSupport().removePropertyChangeListener(l);\n }",
"public abstract void removePropertyChangeListener(PropertyChangeListener listener);",
"public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener( l );\n }",
"public void remove(String name);",
"public Object removeProperty( Object propertyId ) {\n return nodeProperties != null ? nodeProperties.remove(propertyId) : null;\n }",
"public void removeBeanEventListener( String propertyName, String eventName,\n BeanEventListener listener )\n {\n Property prop;\n if ( propertyName == null || propertyName.length() == 0 )\n {\n prop = componentModel;\n }\n else\n {\n prop = componentModel.findProperty( propertyName );\n }\n\n if ( prop instanceof CompositeProperty )\n {\n ( ( CompositeProperty )prop ).removeBeanEventListener( eventName, listener );\n }\n }",
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$8, 0);\n }\n }",
"public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener(l);\n }",
"public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener(l);\n }",
"public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener(l);\n }",
"@ScriptyCommand(name = \"dbg-removebreakpoint\", description =\n \"(dbg-removebreakpoint name)\\n\" +\n \"Remove a breakpoint from the debugger using its name.\\n\" +\n \"See also: dbg-addbreakpoint.\")\n @ScriptyRefArgList(ref = \"name\")\n public EvalTrace.BreakpointSet dbgRemoveBreakpoint(@ScriptyParam(\"name\") String aName)\n throws CommandException {\n checkBreakpoints();\n breakpoints.removeBreakpoint(aName);\n return breakpoints;\n }",
"public void removeOwnKeyBindings() {\n getPolymerElement().removeOwnKeyBindings();\n }",
"public void removeIndependentParameter(String name)\n throws ParameterException;",
"public void removePropertyChangeListener(@NotNull PropertyChangeListener listener) {\n }",
"public void removeAttribute(String name) {\n\tif (name == null)\n\t throw new NullPointerException(\"null arg!\");\n\tif (name != null) {\n\t int i = 0;\n\t for (i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField) \n\t\t this.attributeFields.elementAt(i);\n\t\tif (af.getAttribute().getName().equals(name)) break;\n\t }\n\t if (i < attributeFields.size())\n\t\tattributeFields.removeElementAt(i);\n\t}\n }",
"void removeChangeListener(PropertyChangeListener<? super R> listener);"
] |
[
"0.6881405",
"0.6845688",
"0.65820116",
"0.6576321",
"0.651339",
"0.64862657",
"0.64745307",
"0.6465431",
"0.6417441",
"0.6402996",
"0.63850915",
"0.6362602",
"0.63358516",
"0.6319663",
"0.6259267",
"0.6187719",
"0.6156268",
"0.6101618",
"0.60683894",
"0.60680735",
"0.59675753",
"0.5965916",
"0.59222525",
"0.59006447",
"0.59000516",
"0.5870673",
"0.58258843",
"0.5823021",
"0.5786572",
"0.5763913",
"0.5755332",
"0.57538396",
"0.57538396",
"0.57333344",
"0.570918",
"0.5651416",
"0.56069225",
"0.5593983",
"0.559249",
"0.55894977",
"0.55894035",
"0.5578134",
"0.55741566",
"0.5560324",
"0.5556285",
"0.55518985",
"0.5550745",
"0.5550511",
"0.55464256",
"0.55387664",
"0.5528166",
"0.55268174",
"0.5524606",
"0.54987586",
"0.54947555",
"0.5487322",
"0.54785824",
"0.54784673",
"0.5456246",
"0.5455069",
"0.54332364",
"0.54293156",
"0.54122114",
"0.5409638",
"0.5404845",
"0.5396909",
"0.5396909",
"0.539111",
"0.5380355",
"0.5377787",
"0.53547204",
"0.5330344",
"0.5327071",
"0.53257626",
"0.5324354",
"0.5318445",
"0.5315248",
"0.5307002",
"0.53048265",
"0.52969444",
"0.52858555",
"0.5280279",
"0.5275274",
"0.52735275",
"0.52636826",
"0.52579516",
"0.5251218",
"0.52456015",
"0.52401763",
"0.5238512",
"0.52320904",
"0.52303934",
"0.52303934",
"0.52303934",
"0.52224684",
"0.52156603",
"0.52140963",
"0.5200031",
"0.5190388",
"0.5187496"
] |
0.76418
|
0
|
Adds a binding for given name and key.
|
public void addBinding(String aPropName, String aKey) { addBinding(new Binding(aPropName, aKey)); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void addNameBinding (String name, Object javaObject)\n\t{\n\t\tm_interpreter.set (name, javaObject);\n\t}",
"void addNewBindPath(String path);",
"public void addBinding(Binding aBinding)\n{\n removeBinding(aBinding.getPropertyName()); // Remove current binding for property name (if it exists)\n List <Binding> bindings = getBindings(true); // Add binding\n bindings.add(aBinding);\n aBinding.setNode(this); // Set binding width to this shape\n}",
"public void addBinding(WbBinding binding)\n {\n _bindingList.add(binding);\n }",
"public void setBindingKey(java.lang.String[] bindingKey) {\r\n this.bindingKey = bindingKey;\r\n }",
"public void yAddBind(String bind_name, ObservableValue<? extends Number> bind);",
"@Override\n public void binding(String exchangeName, String queueName, String bindingKey, ByteBuffer buf) {\n synchronized (this) {\n try {\n Exchange exchange = _virtualHost.getExchangeRegistry().getExchange(exchangeName);\n if (exchange == null) {\n _logger.error(\"Unknown exchange: \" + exchangeName + \", cannot bind queue : \" + queueName);\n return;\n }\n\n AMQQueue queue = _virtualHost.getQueueRegistry().getQueue(new AMQShortString(queueName));\n if (queue == null) {\n _logger.error(\"Unknown queue: \" + queueName + \", cannot be bound to exchange: \" + exchangeName);\n } else {\n FieldTable argumentsFT = null;\n if (buf != null) {\n argumentsFT = new FieldTable(org.wso2.org.apache.mina.common.ByteBuffer.wrap(buf), buf.limit());\n }\n\n BindingFactory bf = _virtualHost.getBindingFactory();\n\n Map<String, Object> argumentMap = FieldTable.convertToMap(argumentsFT);\n\n boolean isBindingAlreadyPresent = true;\n if (bf.getBinding(bindingKey, queue, exchange, argumentMap) == null) {\n //for direct exchange do an additional check to see if a binding is\n //already added to default exchange. We do not need duplicates as default\n //exchange is an direct exchange\n if (exchange.getName().equals(AMQPUtils.DIRECT_EXCHANGE_NAME)) {\n Exchange testExchange = _virtualHost.getExchangeRegistry().getExchange(\n AMQPUtils.DEFAULT_EXCHANGE_NAME);\n if (bf.getBinding(bindingKey, queue, testExchange,\n argumentMap) == null) {\n isBindingAlreadyPresent = false;\n }\n } else {\n isBindingAlreadyPresent = false;\n }\n }\n if(!isBindingAlreadyPresent) {\n if(_logger.isDebugEnabled()) {\n _logger.debug(\"Binding Sync - Added Binding: (Exchange: \"\n + exchange.getNameShortString() + \", Queue: \" + queueName\n + \", Routing Key: \" + bindingKey + \", Arguments: \" + argumentsFT + \")\");\n }\n bf.restoreBinding(bindingKey, queue, exchange, argumentMap);\n }\n }\n } catch (AMQException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"void add(String key);",
"public static void addNameBindings (Map<String, Object> namesToExport)\n\t{\n\t\tfor (Entry<String, Object> entry : namesToExport.entrySet ())\n\t\t{\n\t\t\tm_interpreter.set (entry.getKey (), entry.getValue ());\n\t\t}\n\t}",
"public void bind(String name, Object obj)\r\n {\r\n if (logger.isInfoEnabled()) {\r\n logger.info(\"Static JNDI binding: [\" + name + \"] = [\" + jndiObjectToString(obj) + \"]\");\r\n }\r\n this.boundObjects.put(name, obj);\r\n }",
"void addFieldBinding( FieldBinding binding );",
"public void add(Binding binding) {\n\tif (values == null) values = new LinkedList();\n\tvalues.add(binding);\n }",
"private void addAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(index, value);\n }",
"private void addAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(index, builderForValue.build());\n }",
"public void bind(String name, Object obj) {\n\t\tif (log.isInfoEnabled()) {\n\t\t\tlog.info(\"Static JNDI binding: [\" + name + \"] = [\" + obj + \"]\");\n\t\t}\n\t\tthis.boundObjects.put(name, obj);\n\t}",
"private void registerBindings(){\t\t\n\t}",
"private void registerBindings(){\t\t\n\t}",
"public void addToBoundIntent(Intent intent, IServiceConnection iServiceConnection) {\n IntentBindRecord peekBinding = peekBinding(intent);\n if (peekBinding == null) {\n peekBinding = new IntentBindRecord();\n peekBinding.intent = intent;\n synchronized (this.bindings) {\n this.bindings.add(peekBinding);\n }\n }\n peekBinding.addConnection(iServiceConnection);\n }",
"private void addExtraBindings() {\n }",
"public void addBinding(int binding, ZEPipelineBindType bindType, int arrayCount, String[] shaderStages);",
"protected void bindPoint(String sourceName, String destName) {\n pointBindings.put(sourceName, destName);\n }",
"public void bind(String name, Remote ref) throws RemoteException, AlreadyBoundException;",
"private void add(String key) {\n dict = add(dict, key, 0);\n }",
"public void add(String k, String v) throws RemoteException, Error;",
"void bind(int nodeKey) throws UnknownHostException, RemoteException {\n\n java.util.StringTokenizer st = new java.util.StringTokenizer(java.lang.management.ManagementFactory.getRuntimeMXBean().getName(), \"@\");\n @SuppressWarnings(\"static-access\")\n String ip = Node.getCurrentEnvironmentNetworkIp().toString();\n try {\n Naming.rebind(\"rmi:/\" + ip + \":1099/Keys-\" + nodeKey, this);\n } catch (MalformedURLException ex) {\n ex.printStackTrace();\n }\n }",
"public void setName(String name)\n {\n _name = name;\n \n WbBinding binding = new WbBinding();\n binding.setClass(Named.class);\n binding.addValue(\"value\", name);\n \n _bindingList.add(binding);\n }",
"public static void registerKeyBinding(KeyHandler handler) {\n instance().keyHandlers.add(handler);\n TickRegistry.registerTickHandler(handler, Side.CLIENT);\n }",
"private void addAdditionalBindings(com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(value);\n }",
"public abstract T addService(BindableService bindableService);",
"private void addAdditionalBindings(\n com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.add(builderForValue.build());\n }",
"public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }",
"@SuppressWarnings(\"unchecked\")\n public <T> Binding<T> getBinding(Key<T> key) {\n return (Binding<T>) bindings.get(key);\n }",
"public void bind(NameValue that) {\n for( Entry<String, Object> e: that) {\n String key=e.getKey();\n if (this.containsKey(key))\n this.getStringProperty(key).set(that.getString(key));\n else\n put(key, that.getStringProperty(key));\n }\n }",
"@Override\n\tpublic CreateServiceInstanceBindingResponse createServiceInstanceBinding(\n\t\t\tCreateServiceInstanceBindingRequest request) {\n\t\tString appId = request.getBindingId();\n\t\tString id = request.getServiceInstanceId();\n\t\tString apikey = userManager.getAPIKey(id, appId);\n\t\tMap<String, Object> credentials = Collections.singletonMap(\"APIKEY\", (Object) apikey);\n\n\t\treturn new CreateServiceInstanceBindingResponse(credentials);\n\t}",
"public void attach(Object key, Object value);",
"public void bind(String var, E value) {\n put(var, value);\n }",
"private void setBindingKeys(RabbitMQConfiguration config, String queueName) throws IOException {\n for (String bindingKey : config.getBindingKeys()) {\n channel.queueBind(queueName, config.getExchange(), bindingKey);\n }\n }",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"name\", String.class, this.name, \"text\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.creator, \"data\");\n\t\tdataBinder.registerBinding(\"relateTask\", com.kingdee.eas.fdc.schedule.FDCScheduleTaskInfo.class, this.relationTask, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.creatorTime, \"value\");\n\t\tdataBinder.registerBinding(\"imgDescription\", String.class, this.txtDescription, \"text\");\n\t\tdataBinder.registerBinding(\"entries.size\", String.class, this.kdtEntries, \"size.text\");\n\t\tdataBinder.registerBinding(\"entries.sizeInByte\", int.class, this.kdtEntries, \"sizeInByte.text\");\n\t\tdataBinder.registerBinding(\"entries.fileName\", String.class, this.kdtEntries, \"fileName.text\");\n\t\tdataBinder.registerBinding(\"entries.name\", String.class, this.kdtEntries, \"name.text\");\n\t\tdataBinder.registerBinding(\"entries\", com.kingdee.eas.fdc.schedule.ProjectImageEntryInfo.class, this.kdtEntries, \"userObject\");\t\t\n\t}",
"private void setAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.set(index, builderForValue.build());\n }",
"@Override\n\tpublic Pfp bind(String key, String value) {\n\t\tPfp pfp = new Pfp();\n\t\tpfp.id = Pfp.getIdFromSlug(value);\n\t\treturn pfp;\n\t}",
"void register(String name, K key, V value);",
"public void addKeyParameter() {\n\t Parameter param = RestFactoryImpl.eINSTANCE.createParameter();\n\t param.setParameterName(PARAMETER_KEY);\n\t param.setParameterValue(PIXABAY_API_KEY);\n\t\tparam.setName(\"Key\");\n\t\tthis.listOfParameters.add(param);\t\n\t\tthis.keyParameter = param;\n\t}",
"public Builder addAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n copyOnWrite();\n instance.addAdditionalBindings(index, value);\n return this;\n }",
"private boolean bindNewVariable(String name, Obj value) {\n if (name.equals(\"_\")) return true;\n \n // Bind the variable.\n return mScope.define(mIsMutable, name, value);\n }",
"private void setAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.set(index, value);\n }",
"void add(KeyType key, ValueType value);",
"private void registerBindings(){\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.programming.project.name\", String.class, this.kdtEntrys, \"curProject.text\");\r\n\t\tdataBinder.registerBinding(\"entry\", com.kingdee.eas.fdc.contract.contractsplit.ContractPCSplitBillEntryInfo.class, this.kdtEntrys, \"userObject\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.longNumber\", String.class, this.kdtEntrys, \"pcNumber.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.name\", String.class, this.kdtEntrys, \"pcName.text\");\r\n\t\tdataBinder.registerBinding(\"entry.scale\", java.math.BigDecimal.class, this.kdtEntrys, \"scale.text\");\r\n\t\tdataBinder.registerBinding(\"entry.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"amount.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"pcAmount.text\");\r\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\r\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\r\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\t\t\r\n\t}",
"public void addHint(String key, Object value) {\n if (_hintKeys == null) {\n _hintKeys = new LinkedList();\n _hintVals = new LinkedList();\n }\n _hintKeys.add(key);\n _hintVals.add(value);\n }",
"public void addNameServerPort(String nsp) {\n\t\tif (nsp != null)\n\t\t// check to see if item is already in list\n\t\tif (_nameserverPorts.indexOf(nsp) < 0)\n\t\t\t_nameserverPorts.add(nsp);\n\t}",
"public void addParam(String key, Object value) {\n getParams().put(key, value);\n }",
"public void addItem(String name,String description, int weight, boolean key)\n {\n items.add(new Item(name,description,weight,key));\n }",
"@Override\n protected String getBindingKey() {return _parms.bindingKey;}",
"void add(K key, V value);",
"public void addKey() {\n setBonusKeys(getBonusKeys() + 1);\n }",
"public void addKey(String keyName, String keyValue)\n {\n if ((keyName == null) || (keyName.length() == 0))\n throw new IllegalArgumentException(\"Key name must be supplied.\");\n\n if ((keyValue == null) || (keyValue.length() == 0))\n throw new IllegalArgumentException(\"Key value must be supplied.\");\n \n m_keyNames.add(keyName);\n m_keyValues.add(keyValue);\n }",
"public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }",
"boolean add(Object key, Object value);",
"public void addActionKey(String name, InputKey key) {\n synchronized(actions) {\n InputAction action = actions.get(name);\n if(action == null)\n actions.put(name, action = new InputAction());\n action.addKey(key);\n }\n }",
"public void addUrlArg(String key, String value);",
"public void addEntry(String key, ChoiceEntry entry){\n _entries.put(key, entry);\n }",
"public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;",
"public void add(String key) {\n if (key == null || key.length() < 1) {\n return;\n }\n Node curr = root;\n for (int i = 0; i < key.length(); i++) {\n char c = key.charAt(i);\n if (!curr.next.items.containsKey(c)) {\n curr.next.items.put(c, new Node(c, false, 256));\n }\n curr = (Node)curr.next.items.get(c);\n }\n curr.isKey = true;\n }",
"public abstract void addParameter(String key, Object value);",
"@NonNull\n\t\tBuilder addProperty(@NonNull String key, Object value);",
"private Key addKey(Key key) {\r\n\t _listAllKeys.add(key);\r\n\t _allKeys[key._glfwCode] = key;\r\n\t return key;\r\n\t}",
"public void registerReference(BindingReference ref) {\n references.add(ref);\n }",
"public void addMapping(String bindingName, Trigger... triggers) {\r\n mappingNames.add(bindingName);\r\n inputManager.addMapping(bindingName, triggers);\r\n inputManager.addListener(this, bindingName);\r\n }",
"public void addCommand(final String key, final String value) {\n this.commands.put(key, value);\n }",
"void addSecretKey(PGPSecretKeyRing secretKey) throws IOException, PGPException;",
"public static void addHandler(String key, DataHandler dh) {\n\t\tif (handler.containsKey(key)) return;\n\t\t\n\t\thandler.put(key, dh);\n\t}",
"public ModelMessage addName(String key, String value) {\n super.addName(key, value);\n return this;\n }",
"private void bind()\n {\n /* Cancel unbind */\n cancelUnbind();\n\n /* Bind to the Engagement service if not already done or being done */\n if (mEngagementService == null && !mBindingService)\n {\n mBindingService = true;\n mContext.bindService(EngagementAgentUtils.getServiceIntent(mContext), mServiceConnection,\n BIND_AUTO_CREATE);\n }\n }",
"@Override\n\tpublic void bind() {\n\t\t\n\t}",
"public V add(K key, V value);",
"public void addKeyCallback(KeyCallback kb) {\r\n\t\tKeyHandler = kb;\r\n\t}",
"private void registerBindings(){\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"changeDate\", java.util.Date.class, this.pkChangeDate, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom\", com.kingdee.eas.fdc.sellhouse.RoomInfo.class, this.f7Room, \"data\");\n\t\tdataBinder.registerBinding(\"bizType\", com.kingdee.eas.fdc.sellhouse.ChangeBizTypeEnum.class, this.comboBizType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"changeReason\", com.kingdee.eas.fdc.sellhouse.ChangeReasonInfo.class, this.f7ChangeReson, \"data\");\n\t\tdataBinder.registerBinding(\"handler\", com.kingdee.eas.base.permission.UserInfo.class, this.f7Handler, \"data\");\n\t\tdataBinder.registerBinding(\"attachEntry\", com.kingdee.eas.fdc.sellhouse.ChangeManageAttachEntryInfo.class, this.kdtAttachEntry, \"userObject\");\n\t\tdataBinder.registerBinding(\"attachEntry.property\", com.kingdee.eas.fdc.sellhouse.PropertyEnum.class, this.kdtAttachEntry, \"property.text\");\n\t\tdataBinder.registerBinding(\"attachEntry.context\", String.class, this.kdtAttachEntry, \"context.text\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"customerPhone\", String.class, this.txtTel, \"text\");\n\t\tdataBinder.registerBinding(\"isSignChangeName\", boolean.class, this.cbIsSignChangeName, \"selected\");\n\t\tdataBinder.registerBinding(\"quitAmount\", java.math.BigDecimal.class, this.txtQuitAmount, \"value\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"payType\", com.kingdee.eas.fdc.sellhouse.SHEPayTypeInfo.class, this.f7PayType, \"data\");\n\t\tdataBinder.registerBinding(\"agioScheme\", com.kingdee.eas.fdc.sellhouse.AgioSchemeInfo.class, this.f7AgioScheme, \"data\");\n\t\tdataBinder.registerBinding(\"agioDesc\", String.class, this.txtAgioDes, \"text\");\n\t\tdataBinder.registerBinding(\"lastAgio\", java.math.BigDecimal.class, this.txtAgio, \"value\");\n\t\tdataBinder.registerBinding(\"dealTotalAmount\", java.math.BigDecimal.class, this.txtDealTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"contractTotalAmount\", java.math.BigDecimal.class, this.txtContractTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellAmount\", java.math.BigDecimal.class, this.txtSellAmount, \"value\");\n\t\tdataBinder.registerBinding(\"planningCompensate\", java.math.BigDecimal.class, this.txtPlanningCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"cashSalesCompensate\", java.math.BigDecimal.class, this.txtCashSalesCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"areaCompensate\", java.math.BigDecimal.class, this.txtAreaCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"dealBuildPrice\", java.math.BigDecimal.class, this.txtDealBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"contractBuildPrice\", java.math.BigDecimal.class, this.txtContractBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"planningArea\", java.math.BigDecimal.class, this.txtPlanningArea, \"value\");\n\t\tdataBinder.registerBinding(\"preArea\", java.math.BigDecimal.class, this.txtPreArea, \"value\");\n\t\tdataBinder.registerBinding(\"actualArea\", java.math.BigDecimal.class, this.txtActualArea, \"value\");\n\t\tdataBinder.registerBinding(\"contractRoomPrice\", java.math.BigDecimal.class, this.txtContractRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"dealRoomPrice\", java.math.BigDecimal.class, this.txtDealRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"valuationType\", com.kingdee.eas.fdc.sellhouse.CalcTypeEnum.class, this.comboValuationType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"accFundAmount\", java.math.BigDecimal.class, this.txtAFundAmount, \"value\");\n\t\tdataBinder.registerBinding(\"loanAmount\", java.math.BigDecimal.class, this.txtLoanAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellType\", com.kingdee.eas.fdc.sellhouse.SellTypeEnum.class, this.comboSellType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"strdBuildingPrice\", java.math.BigDecimal.class, this.txtBuildingPrice, \"value\");\n\t\tdataBinder.registerBinding(\"strdRoomPrice\", java.math.BigDecimal.class, this.txtRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom.roomModel.name\", String.class, this.txtRoomModel, \"text\");\n\t\tdataBinder.registerBinding(\"strdTotalAmount\", java.math.BigDecimal.class, this.txtStandardTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"attachmentAmount\", java.math.BigDecimal.class, this.txtAttachPropertyTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount1, \"value\");\n\t\tdataBinder.registerBinding(\"isFitmentToContract\", boolean.class, this.chkIsFitmentToContract, \"selected\");\n\t\tdataBinder.registerBinding(\"fitmentStandard\", com.kingdee.eas.fdc.sellhouse.DecorationStandardInfo.class, this.f7FitmentStandard, \"data\");\n\t\tdataBinder.registerBinding(\"fitmentPrice\", java.math.BigDecimal.class, this.txtFitmentPrice, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount, \"value\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"auditTime\", java.util.Date.class, this.pkAuditDate, \"value\");\n\t\tdataBinder.registerBinding(\"auditor\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtAuditor, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateUser\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtModifier, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateTime\", java.sql.Timestamp.class, this.pkModifyDate, \"value\");\n\t\tdataBinder.registerBinding(\"details\", String.class, this.details, \"text\");\n\t\tdataBinder.registerBinding(\"changeType\", com.kingdee.eas.fdc.sellhouse.ChangeTypeEnum.class, this.cbChangeType, \"selectedItem\");\t\t\n\t}",
"public void addPattern(String pattern, Handler<Match> handler) {\n Matcher m = Pattern.compile(\":([A-Za-z][A-Za-z0-9]*)\").matcher(pattern);\n StringBuffer sb = new StringBuffer();\n Set<String> groups = new HashSet<>();\n while (m.find()) {\n String group = m.group().substring(1);\n if (groups.contains(group)) {\n throw new IllegalArgumentException(\"Cannot use identifier \" + group + \" more than once in pattern string\");\n }\n m.appendReplacement(sb, \"(?<$1>[^\\\\/]+)\");\n groups.add(group);\n }\n m.appendTail(sb);\n String regex = sb.toString();\n PatternBinding binding = new PatternBinding(Pattern.compile(regex), groups, handler);\n bindings.add(binding);\n }",
"public void bind() {\n }",
"public synchronized KeyBinding getKeyBinding() {\r\n\t\tif (keyBinding == null){\r\n\t\t\tkeyBinding = new KeyBinding();\r\n\t\t}\r\n\t\treturn keyBinding;\r\n\t}",
"public boolean add(K key, V value);",
"public MapExecutionScope bind(Type type, Object binding) {\n return bind(Key.get(type), binding);\n }",
"public void add(G item, int key){ //it adds methods using the int key\r\n int chain=hashFunction(key);\r\n ElectionNode x=new ElectionNode(item);\r\n x.next=electionTable[chain];\r\n electionTable[chain]=x;\r\n }",
"public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}",
"public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }",
"@Test\n void testRegisterBinding() {\n final var queue = new Queue(\"test\");\n final var exchange = new TopicExchange(\"testExchange\");\n final var routingKey = \"routing-key\";\n\n final var binding = BindingBuilder.bind(queue).to(exchange).with(routingKey);\n\n // When we call registry method\n contextUtils.registerBinding(\"testBinding\", binding);\n\n // Then we expect the queue to be available in the context\n final var actual = context.getBean(\"testBinding\", Binding.class);\n assertNotNull(actual);\n assertEquals(binding.getExchange(), exchange.getName());\n assertEquals(binding.getRoutingKey(), routingKey);\n }",
"public void property(String key, String value) {\n\t\tpropsBinder().addBinding(key).toInstance(value);\n\t}",
"public void addSymbol(String key, Symbol token) {\n this.variables.put(key, token);\n }",
"public static void bind(String name, myRemoteInterface obj) throws AlreadyBoundException, RemoteException, IOException {\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"bind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.bind(name, newRef);\n\t\t\n\t}",
"private void addParameter(String key, String value) {\n urlParameters.put(key, new BasicNameValuePair(key, value));\n }",
"public void addComp(String key, DynView comp)\n\t{\n\t\tthis.comps.put(key, comp);\n\n\t\t// Initial add of components \n\t\tMFragment target = (MFragment)this.fragments.get(key);\n\t\tif(null != target){\n\t\t\ttarget.addComp(key, comp);\n\t\t}\n\t}",
"public Builder addAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n copyOnWrite();\n instance.addAdditionalBindings(index, builderForValue);\n return this;\n }",
"protected abstract void bind();",
"protected abstract void bind();",
"public void add(String name, T val) {\n\t\tnvPairs.add(name);\n\t\tnvPairs.add(val);\n\t}",
"public abstract int getKeybind();",
"public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }",
"public java.lang.String[] getBindingKey() {\r\n return bindingKey;\r\n }",
"public void addListenerForKey(DataFeedListener listener, String key) {\n if (!validateKey(key)) {\n return;\n }\n\n Vector<DataFeedListener> listeners = listenersForKey(key);\n if (listeners == null) {\n listeners = new Vector<DataFeedListener>(10);\n listenerMap.put(key, listeners);\n }\n listeners.addElement(listener);\n }",
"public void addRelationAttribute(String key, String value) {\n this.relationAttributes.put(key, value);\n }",
"public Builder setAdditionalBindings(\n int index, com.google.api.HttpRule value) {\n copyOnWrite();\n instance.setAdditionalBindings(index, value);\n return this;\n }"
] |
[
"0.6320495",
"0.6245281",
"0.6241959",
"0.61545897",
"0.5949996",
"0.59139824",
"0.58828735",
"0.5847793",
"0.57929605",
"0.57049865",
"0.5688566",
"0.56784874",
"0.56629",
"0.5659056",
"0.5657875",
"0.5641594",
"0.5641594",
"0.5637679",
"0.56317455",
"0.5599703",
"0.5562058",
"0.55137736",
"0.5457712",
"0.54464173",
"0.54410636",
"0.53930926",
"0.5344205",
"0.5287454",
"0.52594966",
"0.52570415",
"0.5240548",
"0.5229977",
"0.5224963",
"0.52156186",
"0.518037",
"0.5154535",
"0.5147871",
"0.51326615",
"0.5111266",
"0.51085776",
"0.5104877",
"0.50777614",
"0.5075824",
"0.507515",
"0.50643325",
"0.50559175",
"0.50505805",
"0.5050077",
"0.5046528",
"0.5038591",
"0.5033291",
"0.5022958",
"0.5015964",
"0.4989301",
"0.4979403",
"0.4976522",
"0.49526823",
"0.4948441",
"0.49425563",
"0.49405944",
"0.49327496",
"0.4929483",
"0.49294698",
"0.49289447",
"0.49021658",
"0.4898414",
"0.48804286",
"0.48697788",
"0.4868067",
"0.48669165",
"0.4843637",
"0.48416713",
"0.4830914",
"0.48267323",
"0.4819014",
"0.48139843",
"0.4808708",
"0.48080522",
"0.48062906",
"0.48020548",
"0.47965756",
"0.4795934",
"0.47945938",
"0.47929958",
"0.47832853",
"0.47656938",
"0.47510657",
"0.47432524",
"0.4740004",
"0.47395885",
"0.47391236",
"0.47378135",
"0.47378135",
"0.4729763",
"0.47184834",
"0.47113532",
"0.47030517",
"0.47017878",
"0.4700833",
"0.46963623"
] |
0.7791169
|
0
|
Returns whether given event is enabled.
|
public boolean isEnabled(UIEvent.Type aType) { return getEventAdapter(true).isEnabled(aType); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasEvent();",
"boolean hasEnabled();",
"boolean eventEnabled(AWTEvent e) {\n return false;\n }",
"final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }",
"boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if ((eventMask & AWTEvent.ACTION_EVENT_MASK) != 0 ||\n actionListener != null) {\n return true;\n }\n return false;\n }\n return super.eventEnabled(e);\n }",
"public boolean setEventsEnabled(boolean enabled);",
"public Boolean isEnable() {\n\t\treturn enable;\n\t}",
"@Override\n\t\t\t\t\t\tpublic boolean isEnabled()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(requiresListeners\n\t\t\t\t\t\t\t\t&& !prisms.util.PrismsUtils.hasEventListeners(theSession,\n\t\t\t\t\t\t\t\t\ttoFire.name))\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}",
"public boolean isEnable() {\n return _enabled;\n }",
"boolean isSetEvent();",
"@objid (\"0480e45a-6886-42c0-b13c-78b8ab8f713d\")\n boolean isIsEvent();",
"public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }",
"@SimpleProperty(description = \"Whether the Pressed event should fire when the touch sensor is\" +\n \" pressed.\",\n category = PropertyCategory.BEHAVIOR)\n public boolean PressedEventEnabled() {\n return pressedEventEnabled;\n }",
"public boolean isEventCondition() {\n return true;\n }",
"public boolean isEnable() {\n return enable;\n }",
"public boolean isEnabled()\r\n\t{\r\n\t\treturn enabled;\r\n\t}",
"public Boolean isEnable() {\n return this.enable;\n }",
"public synchronized boolean isEnabled() {\n \t\t\treturn listenerEnabled;\n \t\t}",
"public boolean isEnabled ( ) {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\n return mBundle.getBoolean(KEY_ENABLED, true);\n }",
"public static boolean isEnabled()\n\t{\n\t\treturn App.getSPAPI().getBool(SPKey.ENABLED);\n\t}",
"public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"@Override\n\tpublic boolean isEventStarted() {\n\t\treturn status>=EventStarted;\n\t}",
"public boolean getEnabled() {\n\t\treturn mCurrentState != STATE.DISABLED;\n\t}",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"public boolean isEnabled() {\n for (Transmitter t : getTransmitters()) {\n if (t.getTxStatus() == TxStatus.ENABLED) {\n return true;\n }\n }\n\n return false;\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn this.enabled;\n\t}",
"public static boolean isEnabled() {\n return true;\n }",
"public boolean isEnabled() {\n\n return enabled;\n }",
"public boolean isEnabled(){\n\t\treturn mEnabled;\n\t}",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean isEnabled() {\r\n return m_enabled;\r\n }",
"public static boolean isEnabled(WebElement element) {\n\t\tboolean enabled = element.isEnabled();\n\t\treturn enabled;\n\n\t}",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean getIsEnabledState() {\r\n\t\tif (McsElement.getElementByPartAttributeValueAndParentElement(driver,\r\n\t\t\t\t\"div\", \"@class\", PURCHASING_PRODUCT_WINDOW_CLASS, \"input\", \"@name\",\r\n\t\t\t\t\"isEnabled\", true, false).getAttribute(\"checked\") == null) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public Boolean isEnabled() {\r\r\n\t\treturn _isEnabled;\r\r\n\t}",
"public boolean isLockerEnable(){\n return getBooleanValue(KEY_LOCKER_ENABLE);\n }",
"public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}",
"public boolean isEnabled() {\n return m_Enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();",
"public boolean isEnabled() {\n\t\treturn true;\n\t}",
"public boolean isEnabled() {\n\t\tboolean isLicensed = isLicensed();\n\t\t// Enabled only if there is an input email\n\t\tboolean noInputFields = Const.isEmpty(inIPAddress);\n\t\treturn isLicensed && !noInputFields;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"public boolean isEnabled () {\n return impl.isEnabled ();\n }",
"public boolean isEnabled() {\n boolean enabled = parent.getDefaultEnabled();\n String propName = parent.getToggleProperty();\n if (propName != null) {\n Project proj = parent.getProject();\n if (proj != null) {\n String propValue = proj.getProperty(propName);\n if (propValue != null) {\n Boolean booleanValue = new Boolean(propValue);\n enabled = booleanValue.booleanValue();\n }\n }\n }\n\n return enabled;\n }",
"public boolean enabled() {\n return m_enabled;\n }",
"public boolean hasEnabled() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasEnabled() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isDisabled() {\n\t\treturn !enabled;\n\t}",
"boolean onEvent(Event event);",
"public boolean enabled() {\r\n\t\treturn engaged;\r\n\t}",
"public boolean isEnabled() {\n return myEnabled;\n }",
"boolean getIsEventLegendary();",
"public boolean enabled()\n {\n return binLog != null;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public boolean isEnabled() { return _enabled; }",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();",
"public boolean isEnabled_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isEnabled()) { return true; } else { return false;} \r\n\t}",
"public boolean isMonitoringEnabled(){\n return (selectorThread != null ?\n selectorThread.isMonitoringEnabled() : false);\n }",
"@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = \"False\")\n @SimpleProperty\n public void PressedEventEnabled(boolean enabled) {\n boolean handlerWasNeeded = isHandlerNeeded();\n\n pressedEventEnabled = enabled;\n\n boolean handlerIsNeeded = isHandlerNeeded();\n if (handlerWasNeeded && !handlerIsNeeded) {\n handler.removeCallbacks(sensorReader);\n }\n if (!handlerWasNeeded && handlerIsNeeded) {\n previousState = State.UNKNOWN;\n handler.post(sensorReader);\n }\n }",
"public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}",
"public boolean enabled(){\n return enabled;\n }",
"public boolean isTriggered ( @NotNull final KeyEvent event )\n {\n return areControlsTriggered ( event ) && isKeyTriggered ( event );\n }"
] |
[
"0.7047918",
"0.7006053",
"0.69601",
"0.67669547",
"0.67015404",
"0.6577374",
"0.65424794",
"0.65357625",
"0.6493938",
"0.6489928",
"0.6458358",
"0.64557403",
"0.64555526",
"0.6452078",
"0.64234036",
"0.6363728",
"0.63589174",
"0.6338515",
"0.6329165",
"0.63282704",
"0.63269",
"0.6307301",
"0.6296645",
"0.6296645",
"0.6296645",
"0.6296645",
"0.6296645",
"0.6296645",
"0.6296645",
"0.6296645",
"0.6283183",
"0.62698674",
"0.6261225",
"0.6261225",
"0.6232106",
"0.62101096",
"0.6203682",
"0.6203682",
"0.6203682",
"0.61791307",
"0.6178231",
"0.6178231",
"0.6178231",
"0.6178231",
"0.6178231",
"0.61727464",
"0.61333215",
"0.6124868",
"0.6124631",
"0.61139303",
"0.61139303",
"0.61116",
"0.61116",
"0.6102309",
"0.60884637",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60879683",
"0.60709375",
"0.6068574",
"0.60536647",
"0.60504276",
"0.6048091",
"0.60281247",
"0.60281247",
"0.6012878",
"0.6006076",
"0.6005083",
"0.6002358",
"0.6002358",
"0.6002358",
"0.59935135",
"0.5992589",
"0.59714544",
"0.5956242",
"0.59560734",
"0.5955576",
"0.59545946",
"0.594726",
"0.5940258",
"0.593359",
"0.5929035",
"0.5917539",
"0.5917539",
"0.5917539",
"0.59138906",
"0.59137344",
"0.5910991",
"0.59089714",
"0.5906925",
"0.589351",
"0.58934283",
"0.5891847"
] |
0.64978623
|
8
|
Sets whether given event is enabled.
|
public void setEnabled(UIEvent.Type aType, boolean aValue) { getEventAdapter(true).setEnabled(aType, aValue); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean setEventsEnabled(boolean enabled);",
"@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = \"False\")\n @SimpleProperty\n public void PressedEventEnabled(boolean enabled) {\n boolean handlerWasNeeded = isHandlerNeeded();\n\n pressedEventEnabled = enabled;\n\n boolean handlerIsNeeded = isHandlerNeeded();\n if (handlerWasNeeded && !handlerIsNeeded) {\n handler.removeCallbacks(sensorReader);\n }\n if (!handlerWasNeeded && handlerIsNeeded) {\n previousState = State.UNKNOWN;\n handler.post(sensorReader);\n }\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n if (enabled)\n sinkEvents(Event.ONCLICK | Event.ONKEYDOWN);\n else\n unsinkEvents(Event.ONCLICK | Event.ONKEYDOWN);\n }",
"boolean eventEnabled(AWTEvent e) {\n return false;\n }",
"@objid (\"b47d48ab-22b9-48c5-87ec-5f1f114e042d\")\n void setIsEvent(boolean value);",
"public void setEventEnabled(EventAction type, boolean enabled) {\n nativeEnableEvent(mNativeRef, type.mTypeId, enabled);\n }",
"public boolean setEnabled(boolean enable);",
"@Override\n public void setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException {\n if ( input != null ){\n input.setPaused(enable);\n }\n if ( isOpen() ){\n String s = enable ? \"t+\\r\\n\" : \"t-\\r\\n\";\n byte[] b = s.getBytes();\n try{\n DatagramPacket d = new DatagramPacket(b,b.length,client);\n if (socket != null){\n socket.send(d);\n }\n } catch ( Exception e ){\n log.warning(e.toString());\n }\n }\n eventAcquisitionEnabled = enable;\n }",
"public void setEnable (boolean state) {\n impl.setEnable (state);\n }",
"@Override\r\n public void setEnabled(final boolean b) {\r\n _enabled = b;\r\n }",
"@Override public void setEnabled(boolean enabled) {\n super.setEnabled(enabled);\n\n m_globalEnabled = enabled;\n checkEnabled();\n }",
"public synchronized void setEnabled(boolean enabled) {\n \t\t\tlistenerEnabled = enabled;\n \t\t}",
"public void setEnabled(boolean value) {\n m_Enabled = value;\n }",
"public void setEnabled(final boolean enabled);",
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean value) {\n this.enabled = value;\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled) {\n\t\tthis.enabled = enabled;\n\t\tfireChange();\n\t}",
"boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if ((eventMask & AWTEvent.ACTION_EVENT_MASK) != 0 ||\n actionListener != null) {\n return true;\n }\n return false;\n }\n return super.eventEnabled(e);\n }",
"public void setDisabled(EventType ore, boolean d) {\r\n\t\tif (d) disabled |= 1L << ore.ordinal();\r\n\t\telse disabled &= ~(1L << ore.ordinal());\r\n\t}",
"final public void setEnabled(boolean value) {\n enabledType = value ? ENABLED_ANY : ENABLED_NONE;\n }",
"public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }",
"public void setEnabled(final boolean theFlag) {\n myEnabled = theFlag;\n }",
"public void enable() {\r\n m_enabled = true;\r\n }",
"@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}",
"@Override\n public void setEnabled(boolean val) {\n super.setEnabled(val);\n mEnabled = val;\n }",
"@ReactMethod\n public void setEnabled(final boolean isEnabled) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n if (isEnabled) {\n BugReporting.setState(Feature.State.ENABLED);\n } else {\n BugReporting.setState(Feature.State.DISABLED);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n }",
"public void setEnable(Boolean enable) {\n this.enable = enable;\n }",
"public void setEnable(Boolean enable) {\n this.enable = enable;\n }",
"protected void setEnabled(boolean state) {\n enabled = state;\n log.warn(\"{} command has been {}.\", name, state ? \"enabled\" : \"disabled\");\n }",
"@Override\n\t\t\t\t\t\tpublic boolean isEnabled()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(requiresListeners\n\t\t\t\t\t\t\t\t&& !prisms.util.PrismsUtils.hasEventListeners(theSession,\n\t\t\t\t\t\t\t\t\ttoFire.name))\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}",
"public final void setEnabled( boolean enabled )\n {\n this.enabled = enabled;\n }",
"public void setEnable(Boolean enable) {\n this.enable = enable;\n }",
"boolean isSetEvent();",
"public void setEnabled(boolean enabled) {\n mEnabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\r\n this.enabled = enabled;\r\n }",
"public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }",
"public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }",
"public void setEnable(boolean enable) {\n this.enable = enable;\n }",
"@Override\n public void setEnabled(boolean enabled) {\n }",
"@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = \"False\")\n @SimpleProperty\n public void ReleasedEventEnabled(boolean enabled) {\n boolean handlerWasNeeded = isHandlerNeeded();\n\n releasedEventEnabled = enabled;\n\n boolean handlerIsNeeded = isHandlerNeeded();\n if (handlerWasNeeded && !handlerIsNeeded) {\n handler.removeCallbacks(sensorReader);\n }\n if (!handlerWasNeeded && handlerIsNeeded) {\n previousState = State.UNKNOWN;\n handler.post(sensorReader);\n }\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}",
"public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}",
"public void setEnabled(boolean enabled) {\r\n\t\tthis.enabled = enabled;\r\n\t}",
"public void setEnabled(boolean enabled) {\r\n\t}",
"@SimpleProperty(description = \"Whether the Pressed event should fire when the touch sensor is\" +\n \" pressed.\",\n category = PropertyCategory.BEHAVIOR)\n public boolean PressedEventEnabled() {\n return pressedEventEnabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}",
"public void onEnabled() {\r\n }",
"public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}",
"public void setEnable(boolean b) { this.editText.setEnabled(b); }",
"public void setEnabled(boolean b) {\n // Not supported for MenuComponents\n }",
"public void setEnabled(boolean b) {\n setFocusable(b);\n other.setEnabled(b);\n }",
"public void setEnabled(java.lang.Boolean enabled) {\n this.enabled = enabled;\n }",
"protected abstract void setEnable(E entry, boolean enable)\n\t\t\tthrows ALEException;",
"void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void setEnabled(Boolean isEnabled) {\r\r\n\t\tthis._isEnabled = isEnabled;\r\r\n\t}",
"public boolean isEnabled(UIEvent.Type aType) { return getEventAdapter(true).isEnabled(aType); }",
"public void setIsEnable(Boolean isEnable) {\n\t\tthis.isEnable = isEnable;\n\t}",
"protected abstract void regEvent(boolean regEvent);",
"public void setEnabled(boolean enabled) {\n synchronized (mLock) {\n Slog.i(TAG, \"Explicit health checks \" + (enabled ? \"enabled.\" : \"disabled.\"));\n mEnabled = enabled;\n }\n }",
"public void enable() {\n \t\t\tsetEnabled(true);\n \t\t}",
"public void setOneClickEnabled(boolean value) {\n this.oneClickEnabled = value;\n }",
"public void setEnabled(boolean enabled) {\n mBundle.putBoolean(KEY_ENABLED, enabled);\n }",
"public void reenableButton(EventStruct event) {\n AppSync.puts(\"\"+event);\n if (event.type == \"scored\") {\n switch (event.subtype) {\n case \"balance\":\n robotBalanced.setEnabled(true);\n robotFailedToBalance.setEnabled(true);\n break;\n case \"glyph\":\n if (event.location == \"cipher\") {glyphCompletedCipher.setEnabled(true);}\n break;\n default: {break;}\n }\n\n\n } else if (event.type == \"missed\") {\n switch (event.subtype) {\n case \"balance\":\n robotBalanced.setEnabled(true);\n robotFailedToBalance.setEnabled(true);\n default: {break;}\n }\n }\n }",
"public void enable(){\r\n\t\tthis.activ = true;\r\n\t}",
"public void setEnabled(String enabled) {\r\n\t\tthis.enabled = enabled;\r\n\t}",
"public void enableTimeStamp(boolean enable) {\r\n timeStamp = enable;\r\n }",
"public void setEnable(String name,boolean value) {\n\t\tgetButtonPanel().getButton(name).setEnabled(value);\n\t\tgetGameMenuBar().getItem(name).setEnabled(value);\n\t}",
"public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}",
"public void setbEnable(Boolean bEnable) {\n this.bEnable = bEnable;\n }",
"public void setEnabled(boolean newValue) {\n this.isEnabled = newValue;\n if (newValue) {\n if (isInternalSensor) {\n InternalSensors.getInstance().enableInternalSensor(this);\n } else {\n // TODO: enable external sensors\n }\n } else {\n saveSensor();\n if (isInternalSensor) {\n InternalSensors.getInstance().disableInternalSensor(this);\n } else {\n // TODO: disable external sensors\n }\n }\n }",
"public void setEnabled(boolean is_enabled){\n\t\tswingComponent.setEnabled(is_enabled);\n\t}",
"public void toggleEnable();",
"public abstract void onEnable();",
"public void assignAddingEvent(final boolean val) {\n addingEvent = val;\n }",
"public final void setDisabled(boolean value)\n {\n myDisabledProperty.set(value);\n }",
"public void setEnabled(boolean enabled) {\n synchronized (mBinder) {\n if (mEnabled == enabled) {\n return;\n }\n\n mEnabled = enabled;\n }\n\n ILocationProviderManager manager = mManager;\n if (manager != null) {\n try {\n manager.onSetEnabled(mEnabled);\n } catch (RemoteException | RuntimeException e) {\n Log.w(mTag, e);\n }\n }\n }",
"public abstract void setEnabled(Context context, boolean enabled);",
"public void enableUpdates(boolean state) {\n sEnableUpdate = state;\n }",
"@DISPID(27)\r\n\t// = 0x1b. The runtime will prefer the VTID if present\r\n\t@VTID(32)\r\n\tboolean enableEventTriggers();",
"public void enableSoundForEvent(String eventName, boolean activeState) {\r\n if (this.soundEventActiveStateMap.get(eventName) != activeState) {\r\n this.soundEventActiveStateMap.remove(eventName);\r\n this.soundEventActiveStateMap.put(eventName, activeState);\r\n }\r\n }",
"public static void setDisabled(boolean _disabled) {\r\n disabled = _disabled;\r\n }",
"public static synchronized void setEnabled(boolean enabled) {\n ENABLED = enabled;\n\n if (ENABLED) {\n /*\n * Try immediately to send any enqueued items. Otherwise another\n * item must be enqueued before sending is triggered.\n */\n OutputBuffer.sendAllScheduled();\n }\n }",
"public void setE ( boolean e ) {\n\n\tthis.e = e;\n }"
] |
[
"0.79099905",
"0.6887478",
"0.68465143",
"0.6789954",
"0.67897826",
"0.67513776",
"0.67109275",
"0.6677259",
"0.64238364",
"0.64190614",
"0.6412184",
"0.6400075",
"0.63669443",
"0.6365262",
"0.6325714",
"0.6325714",
"0.6311586",
"0.62829524",
"0.62594485",
"0.62594485",
"0.62594485",
"0.62594485",
"0.62258106",
"0.6223382",
"0.6189348",
"0.6188687",
"0.6184169",
"0.6159172",
"0.6125757",
"0.6125204",
"0.610631",
"0.61038464",
"0.60896903",
"0.60890764",
"0.6056972",
"0.6051383",
"0.6044777",
"0.60442734",
"0.6042783",
"0.6032489",
"0.60298145",
"0.6021598",
"0.6018704",
"0.60163134",
"0.60163134",
"0.6011844",
"0.599496",
"0.5978593",
"0.5972399",
"0.5972399",
"0.5972399",
"0.5972399",
"0.59591013",
"0.59590733",
"0.59553075",
"0.5950314",
"0.595017",
"0.59485036",
"0.59485036",
"0.59485036",
"0.59485036",
"0.59485036",
"0.5938856",
"0.59367377",
"0.5927647",
"0.5879153",
"0.587827",
"0.58557767",
"0.5822395",
"0.5818191",
"0.57997715",
"0.5788426",
"0.5786087",
"0.57766587",
"0.5770621",
"0.57609826",
"0.5714332",
"0.57097435",
"0.5698054",
"0.5690756",
"0.567611",
"0.5675651",
"0.567419",
"0.5671789",
"0.5670843",
"0.56585366",
"0.5647882",
"0.564347",
"0.5639404",
"0.562593",
"0.55994326",
"0.5599227",
"0.5597736",
"0.5539953",
"0.55178857",
"0.55096996",
"0.55071974",
"0.5503623",
"0.55008703",
"0.54899305"
] |
0.6412103
|
11
|
Returns the ShapeEventAdapter for this shape.
|
public RMShapeEventAdapter getEventAdapter(boolean doCreate)
{
RMShapeEventAdapter sea = (RMShapeEventAdapter)get("EventAdapter");
if(sea==null && doCreate)
put("EventAdapter", sea = new RMShapeEventAdapter(this));
return sea;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public AdaptationEvent getAdaptationEvent() {\r\n return event;\r\n }",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public Shape getShape() {\n return shape;\n }",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"public Shape getShape() { return shape; }",
"public ObjectAdapter getAdapter() {\n return mAdapter;\n }",
"Shape getShape();",
"public Shape getShape() {\n\treturn shape;\n }",
"public Shape getShape();",
"ShapeType getShapeType();",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"protected Shape getShape()\n {\n return null;\n }",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"EventBinding createEventBinding();",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public EventHandling getEventHandling() {\n return eventHandling;\n }",
"public ExtendedEventHandler getEventHandler() {\n return eventHandler;\n }",
"@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}",
"public Shape getShape() {\n return null;\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public Ellipse2D getShape()\r\n {\r\n if(this.stable){\r\n return new Ellipse2D.Double(x, y, XSIZE*2, YSIZE*2);\r\n }\r\n else\r\n return new Ellipse2D.Double(x, y, XSIZE, YSIZE);\r\n }",
"protected EdgeFigure getEdgeFigure() {\r\n\t\treturn (EdgeFigure)getFigure();\r\n\t}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"public AdapterFactory getAdapterFactory()\n {\n return adapterFactory;\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}",
"public Adapter getAdapter() {\n\t\treturn mAdapter;\n\t}",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"Binding getBinding();",
"final public MethodBinding getChartDrillDownListener()\n {\n return (MethodBinding)getProperty(CHART_DRILL_DOWN_LISTENER_KEY);\n }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public interface ShapeListener {\n\tvoid shapeChanged(Shape shape);\n}",
"public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }",
"@Override\n\tpublic int getShapeId()\n\t{\n\t\treturn shapeId;\n\t}",
"public Object getShapes() {\r\n if (shapes != null) {\r\n return shapes;\r\n }\r\n ValueBinding vb = getValueBinding(\"shapes\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }",
"public SerializerAdapter getSerializerAdapter() {\n return this.serializerAdapter;\n }",
"public SerializerAdapter getSerializerAdapter() {\n return this.serializerAdapter;\n }",
"public ComposeableAdapterFactory getRootAdapterFactory()\n {\n return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n }",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"List<IEvent> getEventList(IShape shape);",
"@Override\r\n public Shape getShape ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.shape;\r\n } else {\r\n return null;\r\n }\r\n }",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"IShape getCurrentShape();",
"void addEvent(IShape shape, IEvent event, int eventBegin, int eventEnd);",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"IShape getStartShape();",
"public ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\r\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\r\n\t}",
"public ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\r\n\t}",
"@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n @Override\n public ViewBinder getAdapterViewBinder() {\n return mDataBinder.getAdapterViewBinder();\n }",
"public Binding getBinding() { \n\t\tif (myBinding == null) {\n\t\t\tmyBinding = new Binding();\n\t\t}\n\t\treturn myBinding;\n\t}",
"IShape getShape(String name);",
"public String getAxisBinding() {\n return this.axisBinding;\n }",
"public Stroke<R> getStroke() {\n if (stroke == null) {\n stroke = factory.createStroke();\n }\n return stroke;\n }",
"public static Shape getCurrentShape() {\n\t\treturn currentShape;\n\t}",
"public String getAdapter() {\n return adapter;\n }",
"public final DrawingLibraryInterface getActiveGraphDrawing() {\n int selectedIndex = this.getSelectedIndex();\n\n return this.graphInterfaces.get(selectedIndex);\n }",
"@objid (\"d92fc93f-55b6-11e2-877f-002564c97630\")\n @Override\n public Object getAdapter(final Class type) {\n if (type == SnapToHelper.class) {\n return new SnapEditPartAdapter(this).getSnapToHelper();\n }\n return super.getAdapter(type);\n }",
"public ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory\r\n\t\t\t\t.getRootAdapterFactory();\r\n\t}",
"@NonNull\n @SuppressWarnings(\"WeakerAccess\")\n public BaseArrayAdapter<T> getArrayAdapter() {\n return mArrayAdapter;\n }",
"public Color getShapeColor() {\n\t\tif (_shape != null) return _shape.getColor();\n\t\telse return null;\n\t}",
"public String getShapeType(){\n\t\treturn shapeType;\n\t}",
"public Shape chooseShape(){\n\t\tif(this.index == this.shapes.length){this.index = 0;}\n\t\treturn this.shapes[index++];\n\t}",
"public Arrow getAttachedArrow();",
"public DirectShapeRenderer getRenderer() {\n \t\treturn renderer;\n \t}",
"@Override\n\tpublic ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"@Override\n\tpublic ComposeableAdapterFactory getRootAdapterFactory() {\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\n\t}",
"@Override\r\n\tpublic ComposeableAdapterFactory getRootAdapterFactory() {\r\n\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();\r\n\t}",
"public ShapeGroup getShapeGroup() {\n return referencedShapeGroup;\n }",
"@Override\n public abstract <E extends Event> E getThis();",
"public Shape getRenderObject(\n )\n {return renderObject;}",
"public Adapter createEObjectAdapter() {\n return null;\n }",
"public Adapter createEObjectAdapter() {\n return null;\n }",
"public Binding getBinding() {\n return binding;\n }",
"public EventManager getEventManager() {\n return eventManager;\n }",
"public DbAdapter getAdapter() {\n return adapter;\n }",
"public EventManager getEventManager() {\r\n return eventManager;\r\n }",
"public Shape getTraceAreaShape()\n {\n return ScatterTraceViewShapes.getAreaShape(this);\n }",
"public ShapeType getType() {\n\t\t\treturn type.get();\n\t\t}"
] |
[
"0.69614136",
"0.55498636",
"0.5462724",
"0.5421309",
"0.53993183",
"0.5314576",
"0.5294025",
"0.52888197",
"0.52669334",
"0.52516735",
"0.5235702",
"0.52305317",
"0.5189626",
"0.5188754",
"0.5145903",
"0.5129706",
"0.5070893",
"0.50502694",
"0.5043218",
"0.50250965",
"0.4947215",
"0.49339005",
"0.49222112",
"0.49184507",
"0.49171492",
"0.49089247",
"0.4897614",
"0.48933488",
"0.48882005",
"0.48738974",
"0.48710823",
"0.48609105",
"0.48414868",
"0.48221937",
"0.4792277",
"0.47534546",
"0.47499132",
"0.4746973",
"0.47463354",
"0.47334424",
"0.4731695",
"0.47314534",
"0.47182283",
"0.4704816",
"0.46836427",
"0.46836427",
"0.4667125",
"0.463463",
"0.46276292",
"0.46131903",
"0.46127293",
"0.46006835",
"0.45958647",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45928338",
"0.45895857",
"0.45852175",
"0.45852175",
"0.45852175",
"0.45847163",
"0.45783725",
"0.45780677",
"0.45531008",
"0.45431495",
"0.4538801",
"0.45308277",
"0.4514283",
"0.45040682",
"0.45013475",
"0.449785",
"0.447811",
"0.44775957",
"0.4465395",
"0.4451799",
"0.44487354",
"0.4443256",
"0.4443256",
"0.44423902",
"0.44255263",
"0.44199318",
"0.44190678",
"0.44161636",
"0.44161636",
"0.4412133",
"0.4411887",
"0.44092336",
"0.44044232",
"0.44020173",
"0.4401294"
] |
0.54837507
|
2
|
Standard implementation of Object clone. Null's out shape's parent and children.
|
public RMShape clone()
{
// Do normal version, clear parent, LayoutInfoX, clone RSS
RMShape clone = (RMShape)super.clone();
clone._parent = null; clone._layoutInfoX = null;
clone._rss = RMUtils.clone(_rss);
// Clone stroke, fill, effect
clone._stroke = null; clone._fill = null; clone._effect = null;
if(getStroke()!=null) clone.setStroke(getStroke().clone());
if(getFill()!=null) clone.setFill(getFill().clone());
if(getEffect()!=null) clone.setEffect(getEffect().clone());
// Copy attributes map
clone._attrMap = _attrMap.clone();
// If shape has timeline, clone it
if(getTimeline()!=null)
clone.setTimeline(getTimeline().clone(clone));
// Clone bindings and add to clone (with hack to make sure clone has it's own, non-shared, attr map)
for(int i=0, iMax=getBindingCount(); i<iMax; i++) {
if(i==0) clone.put("RibsBindings", null);
clone.addBinding(getBinding(i).clone());
}
// Clone event adapter
if(getEventAdapter(false)!=null) {
clone.put("EventAdapter", null);
clone.getEventAdapter(true).setEnabledEvents(getEventAdapter(true).getEnabledEvents());
}
// Return clone
return clone;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Object clone();",
"public abstract Object clone() ;",
"Object clone();",
"Object clone();",
"public abstract Shape clone() throws CloneNotSupportedException;",
"public RMShape cloneDeep() { return clone(); }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}",
"@Override\n\t\t public Shape clone()\n\t\t {\n\t\t SZShape s = (SZShape)super.clone();\n\t\t s.position = new Position(position);\n\t\t s.cells = new Cell[cells.length];\n\t\t for(int i = 0; i < cells.length; i++)\n\t\t {\n\t\t \t s.cells[i] = new Cell(cells[i]);\n\t\t }\n\t\t return s;\n\t\t }",
"public /*@ non_null @*/ Object clone() { \n //@ assume owner == null;\n return this;\n }",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}",
"public Object clone() {\n try {\n // clones itself\n return super.clone();\n } catch (Exception exception) {\n ;\n }\n return null;\n }",
"public Object clone() {\n\tZPathLayoutManager newObject;\n\ttry {\n\t newObject = (ZPathLayoutManager)super.clone();\n\t} catch (CloneNotSupportedException e) {\n\t throw new RuntimeException(\"Object.clone() failed: \" + e);\n\t}\n\n\tif (path != null) {\n\t newObject.path = (ArrayList)path.clone();\n\t}\n\n\tif (shape != null) {\n\t // JM - not done yet: The shape interface doesn't include a clone() method,\n\t // so to clone a shape we either must cast it to a specific shape class\n\t // and call clone() on that, or use reflection to invoke the clone()\n\t // method. For now, we just continue referencing the old shape.\t\n\t}\n\n\treturn newObject;\n }",
"public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n return null;\r\n }\r\n }",
"public final PaintObject clone() {\n \t\n \ttry {\n\t\t\treturn (PaintObject) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public Object clone() {\n\t\ttry {\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch(CloneNotSupportedException exc) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public abstract GameObject clone();",
"@Override\n\tpublic Component clone() {\n\t\treturn null;\n\t}",
"public Object clone()\n\t{\n\t\treturn new Tree();\n\t}",
"public /*@ non_null @*/ Object clone() {\n return this;\n }",
"@Override\n public Object clone() {\n return super.clone();\n }",
"public Function clone();",
"public T cloneDeep();",
"@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }",
"public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }",
"Component deepClone();",
"@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }",
"public Object clone() throws CloneNotSupportedException { return super.clone(); }",
"@Override\n\tpublic Box clone()\n\t{\n\t\treturn new Box(center.clone(), xExtent, yExtent, zExtent);\n\t}",
"public abstract Pessoa clone();",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"public Object clone() {\n return this.copy();\n }",
"@Override\n\tpublic Object clone() \n\t{\n\t\ttry{\n\t\t// Note all state is primitive so no need to deep copy reference types.\n\t\treturn (Tile) super.clone();\n\t\t} catch (CloneNotSupportedException e) \n\t\t{\n\t\t\t// We should not ever be here as we implement Cloneable.\n\t\t\t// It is better to deal with the exception here rather than letting\n\t\t\t// clone throw it as we would have to catch it in more places then.\n\t\t\treturn null;\n\t\t}\n\t}",
"public Clone() {}",
"public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}",
"@Override\n public Node clone() {\n Node node = null;\n try {\n node = (Node) super.clone();\n } catch (Exception e) {\n System.err.println(\"Unable to clone!\");\n e.printStackTrace();\n }\n return node;\n }",
"public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}",
"public final Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }",
"public native Sprite clone();",
"public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}",
"@Override\n public MetaContainer clone() {\n return clone(false);\n }",
"@Override\n\tpublic Object clone()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new Molecule(((Molecule) super.clone()).getSequence());\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}",
"@Override\n public Drop clone() {\n try {\n return (Drop) super.clone();\n } catch (CloneNotSupportedException ex) {\n // Never.\n return null;\n }\n }",
"@Override\n\tpublic ClassPainter clone() {\n ClassPainter clone = null;\n try {\n clone = (ClassPainter) super.clone();\n } catch (CloneNotSupportedException e) {\n // Object does support clone()\n }\n return clone;\n }",
"public abstract Piece clone();",
"public abstract Piece clone();",
"abstract public Vertex cloneMe();",
"public Object clone() throws CloneNotSupportedException {\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}",
"public Object clone() {\n try {\n return super.clone();\n } catch (Exception exception) {\n throw new InternalError(\"Clone failed\");\n }\n }",
"@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }",
"public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}",
"@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"public abstract State clone();",
"public QueryNode cloneTree() throws CloneNotSupportedException;",
"public abstract Shape getCopy();",
"public Object clone(){\n \t\n \treturn this;\n \t\n }",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n /* Cannot happen */\n throw new RuntimeException(e.getMessage(), e);\n }\n }",
"public Entity clone() {\n try {\n return (Entity) super.clone();\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n return null;\n }\n }",
"public IVenda clone ();",
"@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }",
"@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"IGLProperty clone();",
"@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n public Object clone() throws CloneNotSupportedException {\n\t return new TypeCloner(this, super.clone()).invoke();\n\t}",
"public Object clone() {\n return new PointImpl( this );\n }",
"@Override\r\n\tpublic ComputerPart clone() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\t\tpublic Node cloneNode(boolean deep)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\npublic Creature clone() {\n\treturn null;\n}",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\n\t}",
"public Node clone() {\n Node n = new Node((float) this.getSimPos().getX(), (float) this.getSimPos().getY(), radius*2, isStationary, this.renderColor);\n n.node_uuid = this.node_uuid;\n return n;\n }",
"public Object clone() {\n View v2;\n try {\n v2 = (View) super.clone();\n } catch (CloneNotSupportedException cnse) {\n v2 = new View();\n }\n v2.center = (Location) center.clone();\n v2.zoom = zoom;\n v2.size = (Dimension) size.clone();\n return v2;\n }",
"public Object clone() {\r\n // Implementation notes: Since all state of an XMLOutputter is\r\n // embodied in simple private instance variables, Object.clone\r\n // can be used. Note that since Object.clone is totally\r\n // broken, we must catch an exception that will never be\r\n // thrown.\r\n try {\r\n return super.clone();\r\n }\r\n catch (java.lang.CloneNotSupportedException e) {\r\n // even though this should never ever happen, it's still\r\n // possible to fool Java into throwing a\r\n // CloneNotSupportedException. If that happens, we\r\n // shouldn't swallow it.\r\n throw new RuntimeException(e.toString());\r\n }\r\n }",
"default C cloneFlat() {\n\t\treturn clone(FieldGraph.of(getFields()));\n\t}",
"public Stack<E> clone() {\n try { return (Stack<E>) super.clone(); }\n catch(CloneNotSupportedException ex) {\n System.out.println(ex.getMessage());\n System.exit(1);\n return null;\n }\n }",
"protected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"public Object clone() throws CloneNotSupportedException\n\t{\n\t\tthrow new CloneNotSupportedException();\n\t}",
"@Override\n public PhoneNumberCloneable clone() {\n try {\n return (PhoneNumberCloneable) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(); // Can't happen}\n }\n }",
"public Object clone(){ \r\n\t\tBaseballCard cloned = new BaseballCard();\r\n\t\tcloned.name = this.getName();\r\n\t\tcloned.manufacturer=this.getManufacturer();\r\n\t\tcloned.year = this.getYear();\r\n\t\tcloned.price = this.getPrice();\r\n\t\tcloned.size[0]= this.getSizeX();\r\n\t\tcloned.size[1]= this.getSizeY();\r\n\t\treturn cloned;\r\n\t}"
] |
[
"0.77481997",
"0.7726705",
"0.7610804",
"0.7610804",
"0.7604861",
"0.7602186",
"0.7468176",
"0.7468176",
"0.7468176",
"0.7468176",
"0.7426332",
"0.73450863",
"0.73235375",
"0.7311561",
"0.72495925",
"0.7248783",
"0.72460204",
"0.7162499",
"0.7133695",
"0.71100473",
"0.7091972",
"0.70828617",
"0.7076283",
"0.7053554",
"0.70121855",
"0.6987356",
"0.69544923",
"0.694754",
"0.6910401",
"0.6908027",
"0.6907863",
"0.6864211",
"0.6861802",
"0.6821161",
"0.68185955",
"0.68098366",
"0.6767477",
"0.6742625",
"0.6738991",
"0.67072624",
"0.6706875",
"0.670621",
"0.6700933",
"0.6670605",
"0.66417754",
"0.66407335",
"0.6636302",
"0.66288155",
"0.66288155",
"0.66285557",
"0.66251445",
"0.6623635",
"0.6620264",
"0.66184056",
"0.6596438",
"0.6583089",
"0.65775007",
"0.65775007",
"0.65775007",
"0.656105",
"0.6559064",
"0.65555435",
"0.6549741",
"0.6543637",
"0.6534592",
"0.65219456",
"0.6518721",
"0.65044737",
"0.65013534",
"0.64847237",
"0.64801264",
"0.6476893",
"0.647228",
"0.647228",
"0.647228",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6464988",
"0.6463887",
"0.64625394",
"0.6459414",
"0.6439889",
"0.6436488",
"0.6423194",
"0.64224833",
"0.64165914",
"0.63997144",
"0.63957185",
"0.6391019",
"0.6387375",
"0.637699",
"0.6376666",
"0.6372025",
"0.6368977"
] |
0.7517485
|
6
|
Clones all attributes of this shape with complete clones of its children as well.
|
public RMShape cloneDeep() { return clone(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null; clone._effect = null;\n if(getStroke()!=null) clone.setStroke(getStroke().clone());\n if(getFill()!=null) clone.setFill(getFill().clone());\n if(getEffect()!=null) clone.setEffect(getEffect().clone());\n \n // Copy attributes map\n clone._attrMap = _attrMap.clone();\n \n // If shape has timeline, clone it\n if(getTimeline()!=null)\n clone.setTimeline(getTimeline().clone(clone));\n \n // Clone bindings and add to clone (with hack to make sure clone has it's own, non-shared, attr map)\n for(int i=0, iMax=getBindingCount(); i<iMax; i++) {\n if(i==0) clone.put(\"RibsBindings\", null);\n clone.addBinding(getBinding(i).clone());\n }\n \n // Clone event adapter\n if(getEventAdapter(false)!=null) {\n clone.put(\"EventAdapter\", null);\n clone.getEventAdapter(true).setEnabledEvents(getEventAdapter(true).getEnabledEvents());\n }\n \n // Return clone\n return clone;\n}",
"public abstract Shape clone() throws CloneNotSupportedException;",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}",
"public void clearAttributes() {\n\t\t// Clear all attributes\n\t\tfor (BusinessObject child : getChildren()) {\n\t\t\tif (child.isAttribute()) {\n\t\t\t\tchild.clear();\n\t\t\t}\n\t\t}\n\t}",
"public AttributeSet copy() {\r\n AttributeSet res = new AttributeSet(parent.orNull());\r\n for (String k : attributeMap.keySet()) {\r\n res.put(k, copyValue(get(k)));\r\n }\r\n return res;\r\n }",
"final public Attr clone() {\r\n\t\t\tif(Vector == null)\r\n\t\t\t\treturn new Attr(Name, Value, null);\r\n\t\t\telse if(Object == null)\r\n\t\t\t\treturn new Attr(Name, Value, Vector.clone());\r\n\t\t\telse\r\n\t\t\t\treturn new Attr(Name, Value, Vector.clone(), Object);\r\n\t\t}",
"@Override\n\t\t public Shape clone()\n\t\t {\n\t\t SZShape s = (SZShape)super.clone();\n\t\t s.position = new Position(position);\n\t\t s.cells = new Cell[cells.length];\n\t\t for(int i = 0; i < cells.length; i++)\n\t\t {\n\t\t \t s.cells[i] = new Cell(cells[i]);\n\t\t }\n\t\t return s;\n\t\t }",
"private void selfClone() {\n stroke = stroke.clone();\n }",
"public AttributeSet flatCopy() {\r\n AttributeSet res = new AttributeSet();\r\n for (String k : getAllAttributes()) {\r\n res.put(k, copyValue(get(k)));\r\n }\r\n return res;\r\n }",
"public void copyShape(RMShape aShape)\n{\n // Copy bounds\n setBounds(aShape._x, aShape._y, aShape._width, aShape._height);\n \n // Copy roll, scale, skew\n if(aShape.isRSS()) {\n setRoll(aShape.getRoll());\n setScaleXY(aShape.getScaleX(), aShape.getScaleY());\n setSkewXY(aShape.getSkewX(), aShape.getSkewY());\n }\n \n // Copy Stroke, Fill, Effect\n if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));\n if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));\n if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));\n \n // Copy Opacity and Visible\n setOpacity(aShape.getOpacity());\n setVisible(aShape.isVisible());\n \n // Copy Name, Url, Hover, Locked\n setName(aShape.getName());\n setURL(aShape.getURL());\n setHover(aShape.getHover());\n setLocked(aShape.isLocked());\n \n // Copy LayoutInfo\n setLayoutInfo(aShape.getLayoutInfo());\n \n // Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it\n //if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));\n \n // Copy bindings\n while(getBindingCount()>0) removeBinding(0);\n for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)\n addBinding(aShape.getBinding(i).clone());\n}",
"Component deepClone();",
"public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}",
"default C cloneFlat() {\n\t\treturn clone(FieldGraph.of(getFields()));\n\t}",
"@Override\n public Shape deepCopy(double... points) {\n return this.deepCopy(points[0], points[1]);\n }",
"IGLProperty clone();",
"abstract public Vertex cloneMe();",
"public Object clone() {\n\tZPathLayoutManager newObject;\n\ttry {\n\t newObject = (ZPathLayoutManager)super.clone();\n\t} catch (CloneNotSupportedException e) {\n\t throw new RuntimeException(\"Object.clone() failed: \" + e);\n\t}\n\n\tif (path != null) {\n\t newObject.path = (ArrayList)path.clone();\n\t}\n\n\tif (shape != null) {\n\t // JM - not done yet: The shape interface doesn't include a clone() method,\n\t // so to clone a shape we either must cast it to a specific shape class\n\t // and call clone() on that, or use reflection to invoke the clone()\n\t // method. For now, we just continue referencing the old shape.\t\n\t}\n\n\treturn newObject;\n }",
"@Override\n\tpublic Box clone()\n\t{\n\t\treturn new Box(center.clone(), xExtent, yExtent, zExtent);\n\t}",
"public Builder clearAttributes() {\n if (attributesBuilder_ == null) {\n attributes_ = null;\n onChanged();\n } else {\n attributes_ = null;\n attributesBuilder_ = null;\n }\n\n return this;\n }",
"default PropertyBox cloneBox() {\n\t\treturn builder(this).invalidAllowed(this.isInvalidAllowed()).copyValues(this).build();\n\t}",
"@Override\n\tpublic MapNode clone()\n\t{\n\t\t// Create copy of this map node\n\t\tMapNode copy = (MapNode)super.clone();\n\n\t\t// Copy KV pairs\n\t\tcopy.pairs = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, AbstractNode> pair : pairs.entrySet())\n\t\t{\n\t\t\tAbstractNode value = pair.getValue().clone();\n\t\t\tcopy.pairs.put(pair.getKey(), value);\n\t\t\tvalue.setParent(copy);\n\t\t}\n\n\t\t// Return copy\n\t\treturn copy;\n\t}",
"private void TCM__Object_clone__default() {\n final String attributeName = \"test\";\n final String attributeValue = \"value\";\n\n final Attribute attribute = new Attribute(attributeName, attributeValue);\n final Attribute clonedAttribute = attribute.clone();\n\n assertTrue(\"incorrect name in clone\", clonedAttribute.getName().equals(attributeName));\n assertTrue(\"incorrect value in clone\", clonedAttribute.getValue().equals(attributeValue));\n assertEquals(\"incoorect attribute type in clone\", clonedAttribute.getAttributeType(), Attribute.UNDECLARED_TYPE);\n }",
"@Override\n\tpublic Component clone() {\n\t\treturn null;\n\t}",
"public Object clone()\n {\n PSRelation copy = new PSRelation(new PSCollection(m_keyNames.iterator()),\n new PSCollection(m_keyValues.iterator()));\n \n copy.m_componentState = m_componentState;\n copy.m_databaseComponentId = m_databaseComponentId;\n copy.m_id = m_id;\n\n return copy;\n }",
"public native Sprite clone();",
"@Override\n public MetaContainer clone() {\n return clone(false);\n }",
"public Builder clearAttributes() {\n if (attributesBuilder_ == null) {\n attributes_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n attributesBuilder_.clear();\n }\n return this;\n }",
"@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }",
"@Override\n\tpublic Object deepCopy() {\n\t\tfinal UIAnimationMutable clone = new UIAnimationMutable(getName(), events.size(), controllers.size());\n\t\tfor (int i = 0, len = controllers.size(); i < len; ++i) {\n\t\t\tclone.controllers.add((UIController) controllers.get(i).deepCopy());\n\t\t}\n\t\tfor (int i = 0, len = events.size(); i < len; ++i) {\n\t\t\tfinal UIAttribute p = events.get(i);\n\t\t\tclone.events.add((UIAttribute) p.deepCopy());\n\t\t}\n\t\tclone.nextEventsAdditionShouldOverride = nextEventsAdditionShouldOverride;\n\t\tif (driver != null) {\n\t\t\tclone.driver = (UIAttribute) driver.deepCopy();\n\t\t}\n\t\treturn clone;\n\t}",
"public JSONSchema clone() {\n JSONSchema clonedSchema = new JSONSchema().id(_id).title(_title).description(_description).required(_required).\n types(Collections2.transform(_types.values(), JSONSchemaTypes.CloningFunction.INSTANCE));\n\n if (_referencesSchema != null) {\n clonedSchema.setReferencesSchema(_referencesSchema);\n } else if (_referencesSchemaID != null) {\n clonedSchema.setReferencesSchemaID(_referencesSchemaID);\n }\n\n if (_extendsSchema != null) {\n clonedSchema.setExtendsSchema(_extendsSchema);\n } else if (_extendsSchemaID != null) {\n clonedSchema.setExtendsSchemaID(_extendsSchemaID);\n }\n\n return clonedSchema;\n }",
"@Override\n public ChessPiece clone() {\n ChessPiece copy = new Bishop(this.owner);\n this.owner.removeChessPiece(copy);\n copy.canCastle = this.canCastle;\n copy.icon = this.icon;\n\n return copy;\n }",
"@Override\n public Object clone() {\n return super.clone();\n }",
"public abstract Shape getCopy();",
"ShapeGroup(){\n children = new ArrayList<IShape>();\n }",
"public abstract State clone();",
"public abstract Object clone() ;",
"@Override\r\n\tpublic Dog Clone() throws CloneNotSupportedException {\r\n\t\treturn new Poodle(this.getName(), this.getWeight(), this.getColor(), this.getGender(), this.getInfo()); \r\n\t}",
"public ShapeGraphics() {\r\n //A random object to set random measures for the shapes\r\n Random rn = new Random();\r\n //Creating two instances of every shape using the random object and adding them to the list\r\n for (int i = 0; i <2 ; i++) {\r\n MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED);\r\n MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n list.add(line);\r\n list.add(oval);\r\n list.add(rec);\r\n\r\n }\r\n //Creating cloned shapes of this list and adding them to another array list\r\n ClonedShapes c = new ClonedShapes(list);\r\n clonedList = c.getClonedList();\r\n }",
"@Override\r\n public Object clone() {\r\n\r\n Coordinate c = new Coordinate( this );\r\n return c;\r\n }",
"public abstract Pessoa clone();",
"public Object clone() throws CloneNotSupportedException {\n Bond clone = (Bond) super.clone();\n // clone all the Atoms\n if (atoms != null) {\n clone.atoms = new IAtom[atoms.length];\n for (int f = 0; f < atoms.length; f++) {\n if (atoms[f] != null) {\n clone.atoms[f] = (IAtom) ((IAtom) atoms[f]).clone();\n }\n }\n }\n return clone;\n }",
"public abstract Object clone();",
"private Instances deepCopy(Instances data) {\n Instances newInst = new Instances(data);\n\n newInst.clear();\n\n for (int i = 0; i < data.size(); i++) {\n Instance ni = new DenseInstance(data.numAttributes());\n for (int j = 0; j < data.numAttributes(); j++) {\n ni.setValue(newInst.attribute(j), data.instance(i).value(data.attribute(j)));\n }\n newInst.add(ni);\n }\n\n return newInst;\n }",
"public void clearComplexRelationshipCoordinates()\n {\n if(this.isVisible())\n {\n this.coordinates = null;\n this.paint(this.getGraphics());\n }\n }",
"public Object clone(){ \r\n\t\tBaseballCard cloned = new BaseballCard();\r\n\t\tcloned.name = this.getName();\r\n\t\tcloned.manufacturer=this.getManufacturer();\r\n\t\tcloned.year = this.getYear();\r\n\t\tcloned.price = this.getPrice();\r\n\t\tcloned.size[0]= this.getSizeX();\r\n\t\tcloned.size[1]= this.getSizeY();\r\n\t\treturn cloned;\r\n\t}",
"abstract public Vertex cloneFamily();",
"public SquareIF clone();",
"public Object clone(){\n \t\n \treturn this;\n \t\n }",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"Object clone();",
"Object clone();",
"public final PaintObject clone() {\n \t\n \ttry {\n\t\t\treturn (PaintObject) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"@Override\n public AggregationBuilder clone() {\n try {\n AggregationBuilder clone = (AggregationBuilder) super.clone();\n clone.root = root.clone();\n clone.current = clone.root;\n return clone;\n } catch(CloneNotSupportedException ex){\n return null;\n }\n }",
"public abstract GameObject clone();",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"@Override\n\tpublic MultiArrayDimension clone() {\n\t\treturn new MultiArrayDimension(this.label, this.size, this.stride);\n\t}",
"public abstract Piece clone();",
"public abstract Piece clone();",
"public CareerModel deepCopy() {\n return new CareerModel(this.name, this.riasecCategory,\n this.field, this.category, this.description,\n this.imagePath);\n }",
"@Override\n public MovePath clone() {\n final MovePath copy = new MovePath(getGame(), getEntity());\n copy.steps = new Vector<MoveStep>(steps);\n copy.careful = careful;\n return copy;\n }",
"@Override\n public LineSymbolizer<R> clone() {\n final var clone = (LineSymbolizer<R>) super.clone();\n clone.selfClone();\n return clone;\n }",
"public Clone() {}",
"ArrayList deepCopyShapeList(List aShapeList){\n ArrayList newList = new ArrayList();\r\n\r\n if (aShapeList.size() > 0) {\r\n Iterator iter = aShapeList.iterator();\r\n\r\n while (iter.hasNext())\r\n newList.add(((TShape)iter.next()).copy());\r\n }\r\n return\r\n newList;\r\n}",
"public Object clone() {\n AggregateSymbol copy = new AggregateSymbol(getName(), getAggregateFunction(), isDistinct(), LanguageObject.Util.deepClone(getArgs()));\n if (orderBy != null) {\n copy.setOrderBy(orderBy.clone());\n }\n if (condition != null) {\n copy.setCondition((Expression) condition.clone());\n }\n copy.isWindowed = this.isWindowed;\n copy.type = this.type;\n copy.setFunctionDescriptor(getFunctionDescriptor());\n return copy;\n }",
"public /*@ non_null @*/ Object clone() { \n //@ assume owner == null;\n return this;\n }",
"private void reset() {\n \n ((Shape3D)((Group)model).getChildren().get(0)).setMaterial(red);\n ((Shape3D)((Group)model).getChildren().get(1)).setMaterial(blue);\n \n }",
"public Object clone() {\n return this.copy();\n }",
"@Override\n\tpublic ConditionConnective clone() {\n\t\tfinal ConditionConnective clone = new ConditionConnective(type);\n\t\tfor (final Condition c : conditions) {\n\t\t\tclone.conditions.add(c.clone());\n\t\t}\n\t\treturn clone;\n\t}",
"public d clone() {\n ArrayList arrayList = this.e;\n int size = this.e.size();\n c[] cVarArr = new c[size];\n for (int i = 0; i < size; i++) {\n cVarArr[i] = ((c) arrayList.get(i)).clone();\n }\n return new d(cVarArr);\n }",
"@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}",
"@Override\n public Product clone() throws CloneNotSupportedException {\n\n Product newObject = (Product)super.clone();\n if(this.category != null) {\n try {\n newObject.category = ((Category) this.category.clone());\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n }\n if(this.price != null) {\n try {\n newObject.price = (this.price.clone());\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n }\n return newObject;\n }",
"@Test\n public void testCloneShapes() {\n NativeLibraryLoader.loadNativeLibrary(\"bulletjme\", true);\n assetManager.registerLoader(AWTLoader.class, \"jpg\", \"png\");\n assetManager.registerLoader(BinaryLoader.class, \"j3o\");\n assetManager.registerLoader(J3MLoader.class, \"j3m\", \"j3md\");\n assetManager.registerLocator(null, ClasspathLocator.class);\n\n cloneShapesConcave();\n cloneShapesConvex();\n\n // CompoundCollisionShape\n CompoundCollisionShape compound = new CompoundCollisionShape(1);\n CollisionShape capsule = new CapsuleCollisionShape(1f, 1f);\n compound.addChildShape(capsule, 0f, 1f, 0f);\n setParameters(compound, 0f);\n verifyParameters(compound, 0f);\n CollisionShape compoundClone = Heart.deepCopy(compound);\n cloneTest(compound, compoundClone);\n Assert.assertEquals(0.04f, compoundClone.getMargin(), 0f);\n compound.setMargin(0.13f);\n Assert.assertEquals(0.04f, compoundClone.getMargin(), 0f);\n }",
"private void copy(Node node){\n parent_ = node.parent_;\n size_ = node.size_;\n for(int i = 0; i < size_; i++)\n children_[i] = node.children_[i];\n }",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"public Function clone();",
"@Override\n\tpublic ClassPainter clone() {\n ClassPainter clone = null;\n try {\n clone = (ClassPainter) super.clone();\n } catch (CloneNotSupportedException e) {\n // Object does support clone()\n }\n return clone;\n }",
"public Object clone() throws CloneNotSupportedException { return super.clone(); }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"@Override\n public Shape deepCopy(double x, double y) {\n MyEllipse newShape = new MyEllipse(dashLine,rotate,x, y, this.radiusX, this.radiusY,\n this.lineWidth, this.getStroke(), this.getFill());\n newShape.createDate = this.createDate;\n System.out.println(\"new Ellipse:\" + newShape.toString());\n return newShape;\n }",
"@Override\n\tpublic Object clone()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new Molecule(((Molecule) super.clone()).getSequence());\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}",
"public void setAttributes(ShapeAttributes normalAttrs)\n {\n this.normalAttrs = normalAttrs;\n }",
"private void resetGrid() {\n ObservableList<Node> childrens = grid.getChildren();\n for (Node node : childrens) {\n Circle temp = (Circle) node;\n temp.setFill(Paint.valueOf(\"Black\"));\n }\n }",
"public Mapping clone(IRSession session){\n \tMapping mapping = new Mapping(session);\n \tmapping.entities = entities;\n \tmapping.multiple = multiple;\n \tmapping.requests = requests;\n \tmapping.entityinfo = entityinfo;\n \tmapping.entitystack = entitystack;\n \tmapping.setattributes = setattributes;\n \tmapping.attribute2listPairs = attribute2listPairs;\n \tmapping.dataObjects = dataObjects;\n \tmapping.initialize();\n \treturn mapping;\n }",
"public void assignShape() {\n\t\t\n\t}",
"public Object clone()\r\n {\r\n OSPF_Area new_ = new OSPF_Area(area_id);\r\n new_.default_cost = default_cost;\r\n new_.auth_type = auth_type;\r\n new_.external_routing = external_routing;\r\n new_.no_summary = no_summary;\r\n new_.shortcut_configured = shortcut_configured;\r\n new_.shortcut_capability = shortcut_capability;\r\n new_.transit = transit;\r\n return new_;\r\n }",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"@Override\n\tpublic GameUnit clone() throws CloneNotSupportedException {\n\t\t// this is a shallow copy, because of the Point3D properties and that is the only property of this class (GameUnit) a shallow copy is enough\n\t\tGameUnit unit = (GameUnit)super.clone();\n\t\t// reset the position property state before returning the cloned class\n\t\tunit.initialize();\n\t\treturn unit;\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"private void createMirrorAttributes() {\n for (NodeAttributeToPreserve attribute : nodeAttributesToPreserve) {\n assert (originalGraph.hasNodeAttribute(attribute.id)) : \"The node attribute to be mirrored does not exist in the original graph.\";\n mirrorGraph.newNodeAttribute(attribute.id, originalGraph.nodeAttribute(attribute.id).getDefault());\n }\n\n for (String attrId : edgeAttributesToPreserve) {\n assert (originalGraph.hasEdgeAttribute(attrId)) : \"The edge attribute to be mirrored does not exist in the original graph.\";\n mirrorGraph.newEdgeAttribute(attrId, originalGraph.edgeAttribute(attrId).getDefault());\n }\n }",
"public void reconstruct ()\n\t{\n\t\tsuper.reconstruct ();\t//calls the superclass's reconstruct method\n\t\txDimension1 = rXD1;\n\t\txDimension2 = rXD2;\n\t\txDimension3 = rXD3;\n\t\t\n\t\tyDimension1 = rYD1;\n\t\tyDimension2 = rYD2;\n\t\tyDimension3 = rYD3;\n\t\t\n\t\tturnInt = 0;\n\t}",
"public DescriptiveFramework clone();",
"public /*@ non_null @*/ Object clone() {\n return this;\n }",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"public AgwCslOper cloneShallow() {\n return (AgwCslOper)cloneShallowContent(new AgwCslOper());\n }",
"@Override\n\tAlgebraicExpression clone();"
] |
[
"0.67950743",
"0.6098211",
"0.60544676",
"0.60020983",
"0.59541893",
"0.5894362",
"0.5887722",
"0.5796259",
"0.5768889",
"0.5644431",
"0.5643395",
"0.5521264",
"0.5495947",
"0.54928",
"0.541585",
"0.5409395",
"0.5317798",
"0.52861595",
"0.52773803",
"0.52733153",
"0.52719104",
"0.5262766",
"0.5250255",
"0.5249933",
"0.52424854",
"0.52415043",
"0.52287227",
"0.5217568",
"0.51762414",
"0.5171759",
"0.51317185",
"0.5130877",
"0.51280993",
"0.51189345",
"0.5115091",
"0.5109963",
"0.51053286",
"0.51001567",
"0.5093194",
"0.50833535",
"0.5080178",
"0.50757134",
"0.50730824",
"0.50726235",
"0.50681126",
"0.5068031",
"0.50559354",
"0.5044551",
"0.5029651",
"0.5027298",
"0.5027298",
"0.50256985",
"0.5012647",
"0.50010765",
"0.49975738",
"0.49953946",
"0.49947104",
"0.49947104",
"0.49816072",
"0.498103",
"0.49778312",
"0.4972005",
"0.49639484",
"0.49616164",
"0.4951035",
"0.49474823",
"0.4926414",
"0.49158496",
"0.49150366",
"0.49113962",
"0.49081144",
"0.48908877",
"0.4889163",
"0.48877624",
"0.48868173",
"0.4877002",
"0.4874196",
"0.48722237",
"0.48722237",
"0.48722237",
"0.48722237",
"0.48695856",
"0.48678464",
"0.48628914",
"0.4860243",
"0.48591956",
"0.4848296",
"0.48309585",
"0.48255476",
"0.4821778",
"0.48208785",
"0.48184988",
"0.48168808",
"0.4816179",
"0.4811575",
"0.4806352",
"0.4806352",
"0.4806352",
"0.48057482",
"0.48034137"
] |
0.64772934
|
1
|
Copies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).
|
public void copyShape(RMShape aShape)
{
// Copy bounds
setBounds(aShape._x, aShape._y, aShape._width, aShape._height);
// Copy roll, scale, skew
if(aShape.isRSS()) {
setRoll(aShape.getRoll());
setScaleXY(aShape.getScaleX(), aShape.getScaleY());
setSkewXY(aShape.getSkewX(), aShape.getSkewY());
}
// Copy Stroke, Fill, Effect
if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));
if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));
if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));
// Copy Opacity and Visible
setOpacity(aShape.getOpacity());
setVisible(aShape.isVisible());
// Copy Name, Url, Hover, Locked
setName(aShape.getName());
setURL(aShape.getURL());
setHover(aShape.getHover());
setLocked(aShape.isLocked());
// Copy LayoutInfo
setLayoutInfo(aShape.getLayoutInfo());
// Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it
//if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));
// Copy bindings
while(getBindingCount()>0) removeBinding(0);
for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)
addBinding(aShape.getBinding(i).clone());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null; clone._effect = null;\n if(getStroke()!=null) clone.setStroke(getStroke().clone());\n if(getFill()!=null) clone.setFill(getFill().clone());\n if(getEffect()!=null) clone.setEffect(getEffect().clone());\n \n // Copy attributes map\n clone._attrMap = _attrMap.clone();\n \n // If shape has timeline, clone it\n if(getTimeline()!=null)\n clone.setTimeline(getTimeline().clone(clone));\n \n // Clone bindings and add to clone (with hack to make sure clone has it's own, non-shared, attr map)\n for(int i=0, iMax=getBindingCount(); i<iMax; i++) {\n if(i==0) clone.put(\"RibsBindings\", null);\n clone.addBinding(getBinding(i).clone());\n }\n \n // Clone event adapter\n if(getEventAdapter(false)!=null) {\n clone.put(\"EventAdapter\", null);\n clone.getEventAdapter(true).setEnabledEvents(getEventAdapter(true).getEnabledEvents());\n }\n \n // Return clone\n return clone;\n}",
"public void setShape(Info shape) {\n \n }",
"public void assignShape() {\n\t\t\n\t}",
"public RMShape cloneDeep() { return clone(); }",
"AbstractShape(String name, double x, double y, double w, double h, int r, int g, int b) {\n this.name = name;\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.r = r;\n this.g = g;\n this.b = b;\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"Shape newShape(GraphicalObject g) throws RemoteException;",
"public static void main(String[] args) {\n\n Color color = new Color();\n color.setIntensity(10);\n color.setName(\"Green\");\n Shape.color = color; // aici se modifica campul color la nivel de clasa\n // Shape.color - variabilele si methodele se acceseaza cu numele clasei iar schimbarea este vizibila in toate instantele clasei\n// shape.setColor(color); // bad practice , nu e ok sa avem getteri si setteri pentru variabile statice\n// shape1.setAria(1); // aici se modifica valoarea campului aria numai in obiectul shape1\n\n// System.out.println(shape1.getAria());\n// System.out.println(Shape.color);\n// System.out.println(shape1.color1);\n\n// System.out.println(shape2.color1);\n// Color color2 = new Color();\n// color2.setIntensity(110);\n// color2.setName(\"Red\");\n// shape2.color = color2; // e acelasi lucru ca si atunci cand schimbam valoarea campului static cu numele clasei, tot la nivel de clasa se schimba si asa pentru ca e static\n // cum e aici schimbat nu e ok- (bad practice) pentru ca ne poate induce in eroare, color fiid un camp static el trebuie accesat cu numele clasei\n // chiar si cand folosim numele unei instante a clasei , schimbarea este vizibila in toate celelalte intante ale clasei\n// System.out.println(shape2.color);\n// System.out.println(shape3.color);\n// System.out.println(shape4.color);\n }",
"private void initializeShapeConfig(TypedArray attributes) {\n defaultShapeKey =\n attributes.getInteger(R.styleable.nox_shape, ShapeFactory.FIXED_CIRCULAR_SHAPE_KEY);\n }",
"public IconBuilder shape(IconShape shape) {\n\t\tthis.shape = shape;\n\t\treturn this;\n\t}",
"public void fillShape(Shape shape);",
"public void setShape(ShapeType shape) {\n\t\tthis.shape = shape;\n\t}",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"@Override\n\tpublic void getShape() {\n\n\t}",
"Shape getShape();",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"public ShapeAttributes getAttributes()\n {\n return this.normalAttrs;\n }",
"public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}",
"public Shape getShape() { return shape; }",
"public Info getInfo() {\n super.fillInfo(shape);\n return this.shape;\n }",
"protected abstract void setShapes();",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public abstract Shape getCopy();",
"public void setAttributes(ShapeAttributes normalAttrs)\n {\n this.normalAttrs = normalAttrs;\n }",
"public Shape getShape();",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY, String name) {\n\t\tsuper(posX, posY, width, height, name);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}",
"public NewShape() {\r\n\t\tsuper();\r\n\t}",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public EpsShape(Shape shape, boolean filled) {\n\t\tsuper();\n\t\tthis.shape=shape;\n\t\tthis.filled=filled;\n\t}",
"public abstract Shape clone() throws CloneNotSupportedException;",
"public Shape getShape() {\n return shape;\n }",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"private static void addShaped()\n {}",
"@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}",
"public void addShape(TShape aShape){\r\n // fShapes.remove(aShape); // just in case it was already there\r\n\r\n /*unfortunately we need to have a front to back screen order, properties at the back\r\n (drawn first), then individuals, finally relations between individuals*/\r\n\r\n /* if (aShape instanceof TLine)\r\n fShapes.add(aShape); // add at the end\r\n else if (aShape instanceof TProperty)\r\n fShapes.add(0,aShape); // add at the beginning\r\n else {\r\n int insertIndex=0;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n if (! ((TShape) iter.next()instanceof TProperty))\r\n break; //put it after rectangles\r\n else\r\n insertIndex++;\r\n }\r\n }\r\n fShapes.add(insertIndex,aShape);\r\n }*/\r\n\r\n\r\n // aShape.setSemantics(fSemantics);\r\n\r\n aShape.addChangeListener(this); // and we'll listen for any of its changes, such as being selected\r\n\r\n addShapeToList(aShape,fShapes);\r\n\r\n if (aShape instanceof TInterpretationBoard)\r\n ((TInterpretationBoard)aShape).setSemantics(fSemantics);\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n }",
"protected Shape() {}",
"public void setShape(String shape)\n\t{\n \t \n \tlength.setVisible(false); \n \twidth.setVisible(false); \n \theight.setVisible(false); \n \tradius.setVisible(false); \n \tradius2.setVisible(false); \n \troll.setVisible(false); \n \tpitch.setVisible(false); \n \tyaw.setVisible(false); \n \tquality.setVisible(false); \n \tsides.setVisible(false);\n \t\n \tlengthText.setVisible(false); \n \twidthText.setVisible(false); \n \theightText.setVisible(false); \n \tradiusText.setVisible(false); \n \tradius2Text.setVisible(false); \n \trollText.setVisible(false); \n \tpitchText.setVisible(false); \n \tyawText.setVisible(false); \n \tqualityText.setVisible(false); \n \tsidesText.setVisible(false);\n \t\n\t\tif(shape.equals(\"Cube\"))\n \t{\n \t\tlengthText.setVisible(true);\n \t\tlength.setVisible(true);\n \t\twidthText.setVisible(true);\n \t\twidth.setVisible(true);\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\tlength.setText(\"1\");\n \t\twidth.setText(\"1\");\n \t\theight.setText(\"1\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t}\n \telse if(shape.equals(\"Sphere\"))\n \t{\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tqualityText.setVisible(true);\n \t\tquality.setVisible(true);\n \t\t\n \t\tradius.setText(\"1\");\n \t\tquality.setText(\"15\");\n \t}\n \telse if(shape.equals(\"Prism\"))\n \t{\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tsidesText.setVisible(true);\n \t\tsides.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\theight.setText(\"1\");\n \t\tradius.setText(\"1\");\n \t\tsides.setText(\"4\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t\t\n \t}\n \telse if(shape.equals(\"Cylinder\"))\n \t{\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\t//yawText.setVisible(true);\n \t\t//yaw.setVisible(true);\n \t\t\n \t\theight.setText(\"1\");\n \t\tradius.setText(\"1\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\t//yaw.setText(\"0\");\n \t}\n \telse if(shape.equals(\"Torus\"))\n \t{\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tradius2Text.setVisible(true);\n \t\tradius2.setVisible(true);\n \t\tqualityText.setVisible(true);\n \t\tquality.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\tradius.setText(\"1\");\n \t\tradius2.setText(\"2\");\n \t\tquality.setText(\"15\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t}\n \t\n\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public void setShapeType(ShapeType shapeType) {\n }",
"public interface Shape {\n\t/**\n\t * Calculates and returns the area of the object\n\t * @return\n\t */\n\tpublic abstract double getArea();\n\t\n\t/**\n\t * Returns the Color of the object.\n\t * @return\n\t */\n\tpublic abstract Color getColor();\n\t\n\t/**\n\t * Sets the Color of the object.\n\t * @param color\n\t */\n\tpublic abstract void setColor(Color color);\n\t\n\t/**\n\t * Returns true if the object is filled with color, otherwise false.\n\t * @return\n\t */\n\tpublic abstract boolean getFilled();\n\t\n\t/**\n\t * Sets the filled state of the object.\n\t * @param filled\n\t */\n\tpublic abstract void setFilled(boolean filled);\n\t\n\t/**\n\t * Moves the shape by the x and y amounts specified in the Point.\n\t * @param point\n\t */\n\tpublic abstract void move(Point point);\t\n}",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"IShape getCurrentShape();",
"void addShape(IShape shape);",
"Shape createShape(BorderType borderType);",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public void fill(Shape s)\r\n\t{\r\n\t\t// draw a rectangle with these proportions\r\n\t\tif (s instanceof RectangularShape)\r\n\t\t{\r\n\t\t\tRectangularShape rect = (RectangularShape) s;\r\n\t\t\tg.fillRect((int) rect.getX(), (int) rect.getY(), (int) rect.getWidth(),\r\n\t\t\t\t\t(int) rect.getHeight());\r\n\t\t}\r\n\t\t// else\r\n\t\t// System.out.println(\"fill for this shape not supported\");\r\n\t}",
"public void setRandomShape()\n\t{\n\t\tvar rand = new Random();\n\t\tint x = Math.abs(rand.nextInt())%7 + 1;\n\t\t\n\t\tTetromino[] values = Tetromino.values();\n\t\tsetShape (values[x]);\n\t}",
"protected Shape getShape()\n {\n return null;\n }",
"public void strokeShape(Shape shape);",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }",
"LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public Shape()\n\t{\n\t\tinitShape();\n\t}",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"void setShapeLabel(String Label);",
"@Override\r\n public void setShape (Shape shape,\r\n double grade)\r\n {\r\n// // Check status\r\n// if (glyph.isTransient()) {\r\n// logger.error(\"Setting shape of a transient glyph\");\r\n// }\r\n\r\n // Blacklist the old shape if any\r\n Shape oldShape = getShape();\r\n\r\n if ((oldShape != null) && (oldShape != shape)\r\n && (oldShape != Shape.GLYPH_PART)) {\r\n forbidShape(oldShape);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"Shape {} forbidden for {}\",\r\n oldShape, glyph.idString());\r\n }\r\n }\r\n\r\n if (shape != null) {\r\n // Remove the new shape from the blacklist if any\r\n allowShape(shape);\r\n }\r\n\r\n // Remember the new shape\r\n evaluation = new Evaluation(shape, grade);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"{} assigned {}\", glyph.idString(), evaluation);\r\n }\r\n }",
"void drawShape(Shape s) {\n }",
"public String whatShape();",
"String getShapeName();",
"public interface Shape {\n\n double size();\n Color color();\n\n\n}",
"public EpsShape(Shape shape) {\n\t\tthis(shape,false);\n\t}",
"public void setShape (Tetromino shape)\n\t{\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tfor (int j=0; j<2; j++)\n\t\t\t{\n\t\t\t\tcoords[i][j]=coordsTable[shape.ordinal()][i][j];\n\t\t\t}\n\t\t}\n\t\tdetailShape = shape;\n\t}",
"ShapeType getShapeType();",
"public IShape(Position position, boolean magic) {\r\n\t\tsuper(position, magic, true);\r\n\t\tPosition position1 = new Position(position.row() + 1, position.col());\r\n\t\tPosition position2 = new Position(position1.row() + 1, position1.col());\r\n\t\tsuper.setCell(new Cell(new Block(Color.CYAN, magic), position),\r\n\t\t\t\tnew Cell(new Block(Color.CYAN, false), position1), new Cell(new Block(Color.CYAN, false), position2));\r\n\r\n\t}",
"public String getRandomShape(){\n\t\tRandom randon = new Random();\n\t\treturn Shape.values()[randon.nextInt(Shape.values().length)].toString();\n\t}",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY) {\n\t\tsuper(posX, posY, width, height);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"IShape getShape(String name);",
"private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }",
"public void rpgBindings(ReportOwner anRptOwner, RMShape aShapeRPG)\n{\n // Clone URL\n if(getURL()!=null && getURL().length()>0 && getURL().indexOf('@')>=0) {\n RMXString url = new RMXString(getURL()).rpgClone(anRptOwner, null, aShapeRPG, false);\n aShapeRPG.setURL(url.getText());\n }\n \n // Clone Hover\n if(getHover()!=null && getHover().length()>0 && getHover().indexOf('@')>=0) {\n RMXString hover = new RMXString(getHover()).rpgClone(anRptOwner, null, aShapeRPG, false);\n aShapeRPG.setHover(hover.getText());\n }\n \n // Iterate over bindings and evaluate\n for(int i=0; i<getBindingCount(); i++) { Binding binding = getBinding(i);\n \n // Get PropertyName, Key and Value (just continue if empty key)\n String pname = binding.getPropertyName(); if(pname==null) continue;\n String key = binding.getKey(); if(key==null || key.length()==0) continue;\n Object value = RMKeyChain.getValue(anRptOwner, key);\n \n // Handle Font\n if(pname.equals(\"Font\")) {\n \n // Get value as string (if zero length, just continue)\n String fs = value instanceof String? (String)value : null; if(fs==null || fs.length()==0) continue;\n \n // If string has underline in it, underline and delete\n if(RMStringUtils.indexOfIC(fs, \"Underline\")>=0) {\n aShapeRPG.setUnderlined(true); fs = RMStringUtils.deleteIC(fs, \"Underline\").trim(); }\n \n // Get size from string (if found, strip size from string)\n int sizeIndex = fs.lastIndexOf(\" \");\n double size = sizeIndex<0 ? 0 : RMUtils.floatValue(fs.substring(sizeIndex+1));\n if(size>0) fs = fs.substring(0, Math.max(sizeIndex, 0)).trim();\n else size = getFont()==null? 12 : getFont().getSize();\n \n // Get root font (use default font if not found), and modified font\n RMFont font = getFont(); if(font==null) font = RMFont.getDefaultFont();\n if(fs.equalsIgnoreCase(\"Bold\")) font = font.getBold();\n else if(fs.equalsIgnoreCase(\"Italic\")) font = font.getItalic();\n else if(fs.length()>0) // If there is anything in string, try to parse font name\n font = new RMFont(fs, size);\n \n // Get font at right size and apply it\n font = font.deriveFont(size);\n aShapeRPG.setFont(font);\n }\n\n // Handle FillColor, StrokeColor, TextColor\n else if(pname.equals(\"FillColor\")) { RMColor color = RMColor.colorValue(value); \n if(color!=null) aShapeRPG.setColor(color); }\n else if(pname.equals(\"StrokeColor\")) { RMColor color = RMColor.colorValue(value); \n if(color!=null) aShapeRPG.setStrokeColor(color); }\n else if(pname.equals(\"TextColor\")) { RMColor color = RMColor.colorValue(value); \n if(color!=null) aShapeRPG.setTextColor(color); }\n \n // Handle others: X, Y, Width, Height, Visible, URL\n else RMKey.setValueSafe(aShapeRPG, pname, value);\n }\n}",
"public ShapeTest(Shape shape) {\r\n\t\t\r\n\t\tthis.shape = shape;\r\n\t}",
"public ShapeGraphics() {\r\n //A random object to set random measures for the shapes\r\n Random rn = new Random();\r\n //Creating two instances of every shape using the random object and adding them to the list\r\n for (int i = 0; i <2 ; i++) {\r\n MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED);\r\n MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n list.add(line);\r\n list.add(oval);\r\n list.add(rec);\r\n\r\n }\r\n //Creating cloned shapes of this list and adding them to another array list\r\n ClonedShapes c = new ClonedShapes(list);\r\n clonedList = c.getClonedList();\r\n }",
"public CarrierShape()\n {\n super();\n }",
"public Rectangle getShape(){\n return myRectangle;\n }",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"public SZShape(Position givenPosition, boolean magic)\n\t\t{\n\t\t\tsuper(givenPosition);\n\t\t\tcells = new Cell[4];\n\t\t\tposition = givenPosition;\n\t\t\tcells[0] = new Cell(new Block(Color.GREEN, magic), position);\n\t\t\tPosition position1 = new Position(givenPosition.row() + 1, givenPosition.col());\n\t\t\tcells[1] = new Cell(new Block(Color.GREEN, false), position1);\n\t\t\tPosition position2 = new Position(givenPosition.row() + 1, givenPosition.col()+1);\n\t\t\tcells[2] = new Cell(new Block(Color.GREEN, false), position2);\n\t\t\tPosition position3 = new Position(givenPosition.row() + 2, givenPosition.col()+1);\n\t\t\tcells[3] = new Cell(new Block(Color.GREEN, false), position3);\n\t\t\tsuper.setCells(cells);\n\t\t}",
"public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public interface Shape {\n\n String getDescription();\n}",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}",
"public interface SVGMutableShapeDef<W, F> extends SVGShapeDef<W, F>,\n MutableShapeDef<W> {\n\n /**\n * The width of the SVG view's bounding box.\n * The way shape views are being updated to achieve new width\n * is up to each implementations.\n * @param element The model instance.\n * @return The shape's width.\n */\n double getWidth(final W element);\n\n /**\n * The height of the SVG view's bounding box.\n * The way shape views are being updated to achieve new height\n * is up to each implementations.\n * @param element The model instance.\n * @return The shape's height.\n */\n double getHeight(final W element);\n\n /**\n * If the SVGShape is composed by some\n * SVGShapeView instances, this method allows\n * to display or make not visible each of\n * the inner views as from the <code>element</code>\n * instance's state at runtime.\n * @param viewName The name of the inner SVGSHapeVie.\n * @param element The definition instance.\n * @return Whether the <code>viewName</code> inner SVGShapeView, which\n * the shape is composed by, has to be displayed.\n */\n boolean isSVGViewVisible(final String viewName,\n final W element);\n}",
"public CmdAddShape(Model model, Shape os) {\n\t\tthis.model = model;\n\t\tthis.s = os;\n\t\t\n\t}",
"public void addShape(Shape shape)\n {\n shapes.add(shape);\n }"
] |
[
"0.6821709",
"0.64774555",
"0.6097823",
"0.5901052",
"0.58805746",
"0.5855638",
"0.58227944",
"0.58147895",
"0.57856554",
"0.57691246",
"0.576442",
"0.5740522",
"0.5732775",
"0.5717644",
"0.56937855",
"0.5693315",
"0.5684456",
"0.5672567",
"0.5652314",
"0.5637045",
"0.56312615",
"0.56234926",
"0.55719215",
"0.55409575",
"0.55385786",
"0.5534271",
"0.5517268",
"0.5506533",
"0.5503311",
"0.54816544",
"0.5438781",
"0.5433482",
"0.54181916",
"0.54074603",
"0.53553766",
"0.535244",
"0.5341021",
"0.53225666",
"0.53216666",
"0.53128797",
"0.5301654",
"0.52913266",
"0.528955",
"0.52893233",
"0.5271609",
"0.527096",
"0.5254727",
"0.5250633",
"0.5245436",
"0.5241077",
"0.5236164",
"0.52339786",
"0.5233529",
"0.5225903",
"0.5204628",
"0.5198872",
"0.51913476",
"0.51790965",
"0.51703775",
"0.51658165",
"0.5165028",
"0.51645315",
"0.5158518",
"0.51568073",
"0.5155408",
"0.51434857",
"0.51415366",
"0.5139097",
"0.51367307",
"0.513183",
"0.5128753",
"0.51184255",
"0.5117875",
"0.5114977",
"0.5113791",
"0.5103152",
"0.50994897",
"0.50967234",
"0.5096095",
"0.5083718",
"0.50788605",
"0.5066854",
"0.50649667",
"0.505947",
"0.50509524",
"0.5048771",
"0.50372326",
"0.5036055",
"0.50308007",
"0.5027294",
"0.50271815",
"0.50190914",
"0.50177693",
"0.50163394",
"0.50035125",
"0.4996848",
"0.49949643",
"0.4984948",
"0.49835536",
"0.49835274"
] |
0.7107066
|
0
|
Generate report with report owner.
|
public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent)
{
RMShape clone = rpgShape(anRptOwner, aParent);
rpgBindings(anRptOwner, clone);
return clone;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Report createReport();",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}",
"void createReport(Report report);",
"public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }",
"public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }",
"public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public GenerateReport() {\n initComponents();\n displayLogs();\n }",
"public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }",
"public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }",
"public String generateReport() {\n throw new UnsupportedOperationException(\"ERROR: generateReport() Not yet implemented.\");\n }",
"public void generateReport(ReportGenerationData data)throws ChangeApplicationException;",
"void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }",
"public abstract void generateReport(Date from, Date to, String objectCode);",
"private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }",
"@Override\n void createReport(final Format reportFormat,\n final long start, final long end) {\n makeBriefReport(reportFormat, \"Informe breu\", start, end);\n writeToFile();\n getFormat().finishPrinting();\n }",
"public DataMemberReport genReport() {\n long prevLastLogIndex = lastReportedLogIndex;\n lastReportedLogIndex = logManager.getLastLogIndex();\n return new DataMemberReport(\n character,\n leader.get(),\n term.get(),\n logManager.getLastLogTerm(),\n lastReportedLogIndex,\n logManager.getCommitLogIndex(),\n logManager.getCommitLogTerm(),\n getHeader(),\n readOnly,\n NodeStatusManager.getINSTANCE().getLastResponseLatency(getHeader().getNode()),\n lastHeartbeatReceivedTime,\n prevLastLogIndex,\n logManager.getMaxHaveAppliedCommitIndex());\n }",
"public abstract void getReport(java.io.Writer writer);",
"public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }",
"boolean generateReport();",
"private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}",
"public String exportReportForUserInKinder(String reportFormat ,long iduser , long idkinder ) throws FileNotFoundException, JRException {\n String path = \"C:\\\\Users\\\\ons\\\\git\\\\Esprit-PiDev-4Sae6\" ;\n \n \n \n\t\tList<Bill> bill = (List<Bill>) Bill_rep.bill_byparent_kinder(iduser, idkinder);\n\t\tDbo_User this_User = usRep.findById(iduser).orElseThrow( \n \t\t\t()-> new RuntimeException());\n \tthis.bill = this_User.getFullName();\n \tthis.name_user=this_User.getFullName();\n for (Bill b : bill){\n \tLong amout_rest_to_pay = (long) (TOTAL_AMOUNT - b.getAmount());\n \tLong amount_already_payed = (long) b.getAmount();\n \tb.setAmount_payed(String.valueOf(amount_already_payed));\n \tb.setAmount_not_payed(String.valueOf(amout_rest_to_pay));\n \t\n \tb.setGardenpk(b.getGarden().getName());\n \tb.setUserpk(b.getUser().getFirstName() + \" \"+ b.getUser().getLastName());\n }\n \n \n \n //load file and compile it\n File file = ResourceUtils.getFile(\"classpath:userBill.xml\");\n JasperReport jasperReport = JasperCompileManager.compileReport(file.getAbsolutePath());\n JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(bill);\n Map<String, Object> parameters = new HashMap<>();\n parameters.put(\"createdBy\", \"Java Techie\");\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource);\n Date date = new Date();\n Format formatter = new SimpleDateFormat(\"YYYY-MM-dd_hh-mm-ss\");\n if (reportFormat.equalsIgnoreCase(\"pdf\")) { \n \t\n JasperExportManager.exportReportToPdfFile(jasperPrint, path + \"\\\\bill_User\"+\"_\"+this.name_user+\"_\"+ formatter.format(date) +\".pdf\");\n }\n\n return \"report generated in path : \" + path;\n }",
"public void generateReport(TaxChallan bean, HttpServletRequest request, HttpServletResponse response, String reportPath) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tReportDataSet rds = new ReportDataSet();\r\n\t\t\tString type = bean.getReportType();\r\n\t\t\trds.setReportType(type);\r\n\t\t\tString fileName = \"T.D.S.-TCS TAX CHALLAN\"+Utility.getRandomNumber(1000);\r\n\t\t\tString reportPathName=reportPath+fileName+\".\"+type;\r\n\t\t\trds.setFileName(fileName);\r\n\t\t\trds.setPageSize(\"A4\");\r\n\t\t\trds.setReportHeaderRequired(false);\r\n\t\t\trds.setShowPageNo(true);\r\n\t\t\torg.paradyne.lib.ireportV2.ReportGenerator rg=null;\r\n\t\t\t/* Added by Prashant*/\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, session, context, request);\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"################# ATTACHMENT PATH #############\"+reportPath+fileName+\".\"+type);\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, reportPath ,session, context, request);\r\n\t\t\t\trequest.setAttribute(\"reportPath\", reportPath+fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"fileName\", fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"action\", \"TaxChallan_input.action\");\r\n\t\t\t}\r\n\t\t\trg = getReport(rg, bean);\r\n\t\t\trg.process();\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg.createReport(response);\r\n\t\t\t}else{\r\n\t\t\t\t/* Generates the report as attachment*/\r\n\t\t\t\trg.saveReport(response);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static Report createEntity() {\n\t\tReport report = new Report()\n\t\t\t\t.fromIsoCode(DEFAULT_FROM_ISO_CODE)\n\t\t\t\t.toIsoCode(DEFAULT_TO_ISO_CODE)\n\t\t\t\t.total(DEFAULT_TOTAL)\n\t\t\t\t.lastUpdated(DEFAULT_LAST_UPDATED);\n\t\treturn report;\n\t}",
"@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }",
"public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}",
"public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }",
"public void generateReportPluviometer() {\r\n\t\tReportsController reportsController = ControladorContexto\r\n\t\t\t\t.getContextBean(ReportsController.class);\r\n\t\ttry {\r\n\t\t\tconsultPluviometer();\r\n\t\t\treportsController.generateReportPluviometer(pluviometerPojoList,\r\n\t\t\t\t\tyear);\r\n\t\t\tsetStartDateReport(null);\r\n\t\t\tsetEndDateReport(null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"private void buildReport() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Header of report\n stringBuilder.append(\"Games\\tCPU wins\\t\"\n + \"Human wins\\tDraw avg\\tMax rounds\\n\");\n stringBuilder.append(\"=============================================\\n\");\n\n // shows the number of overall games\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the computer won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'CPU'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the human player won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'human'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the average number of draws per game\n stringBuilder.append((int)Float.parseFloat(dbConnection.executeQuery(\"SELECT AVG(draws) FROM game\", \"avg\")));\n stringBuilder.append(\"\\t\");\n // shows the maximum number of rounds played\n stringBuilder.append(dbConnection.executeQuery(\"SELECT MAX(rounds) FROM game\", \"max\"));\n\n // Converts stringBuilder to a String\n reportContent = stringBuilder.toString();\n }",
"public GenreateReportView(WhatsUpUI ui) {\n\t\tthis.ui = ui;\n\t\tuser = (AdminVO) ui.getSession().getAttribute(StringConstants.USER);\n\t\taddComponent(buildLayout());\n\t}",
"private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }",
"public edu.hm.hafner.analysis.parser.jcreport.Report createReport(final ReaderFactory readerFactory)\n throws ParsingException {\n SecureDigester digester = new SecureDigester(JcReportParser.class);\n\n String report = \"report\";\n digester.addObjectCreate(report, edu.hm.hafner.analysis.parser.jcreport.Report.class);\n digester.addSetProperties(report);\n\n String file = \"report/file\";\n digester.addObjectCreate(file, File.class);\n digester.addSetProperties(file, \"package\", \"packageName\");\n digester.addSetProperties(file, \"src-dir\", \"srcdir\");\n digester.addSetProperties(file);\n digester.addSetNext(file, \"addFile\", File.class.getName());\n\n String item = \"report/file/item\";\n digester.addObjectCreate(item, Item.class);\n digester.addSetProperties(item);\n digester.addSetProperties(item, \"finding-type\", \"findingtype\");\n digester.addSetProperties(item, \"end-line\", \"endline\");\n digester.addSetProperties(item, \"end-column\", \"endcolumn\");\n digester.addSetNext(item, \"addItem\", Item.class.getName());\n\n try (Reader reader = readerFactory.create()) {\n return digester.parse(reader);\n }\n catch (IOException | SAXException e) {\n throw new ParsingException(e);\n }\n }",
"public Report() {\n\t\tsuper();\n\t}",
"public String getReportPath();",
"void printReport();",
"public final void createReporter(){\n\n buildWriter();\n buildReporter();\n buildCloser();\n\n Validate.notNull(writer,\"Writer can not be null\");\n Validate.notNull(reporter,\"Reporter can not be null\");\n Validate.notNull(closer,\"Closer can not be null\");\n }",
"public static ReportGenerator createInstance()\r\n {\r\n return new ReportGenerator();\r\n }",
"protected Report()\n {\n super();\n }",
"@Override\n public byte[] getFile(ReportParam param) throws Exception {\n String FILE_PATH = controllerProperties.getPdfPath() + \"HIRATopCustomerSummary.jasper\";\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"sReportCode\", \"\");\n parameters.put(\"sDateDesc\", param.getsDate1() + \" - \" + param.getsDate2());\n parameters.put(\"sRCDesc\", param.getsRC1() + \" - \" + param.getsRC2());\n parameters.put(\"sArticleDesc\", param.getsArticle1() + \" - \" + param.getsArticle2());\n parameters.put(\"sCustomerDesc\", param.getsCustomer1() + \" - \" + param.getsCustomer2());\n parameters.put(\"sRCCustomerBaseDesc\", param.getsRCCustomerBase1() + \" - \" + param.getsRCCustomerBase2());\n parameters.put(\"sUserPrint\", param.getUserPrint());\n\n return reportCreator.reportCreation(FILE_PATH, parameters, callSP(param));\n }",
"public void generarReportePagosAutorizadoss(String sAccionBusqueda,List<PagosAutorizados> pagosautorizadossParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizadosMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PagosAutorizadosMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Pagos Autorizadoses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PagosAutorizadosConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePagosAutorizados=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePagosAutorizados=new JRBeanArrayDataSource(PagosAutorizadosJInternalFrame.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePagosAutorizados);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PagosAutorizadosConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PagosAutorizadosConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PagosAutorizadosBean.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPagosAutorizadosActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public Report getReport();",
"public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }",
"public void getReport(EntranceTestMaster bean, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, ServletContext context) {\n\t\tCrystalReport cr=new CrystalReport();\r\n\t\tString path=\"org\\\\paradyne\\\\rpt\\\\recruitment\\\\EntranceTestMaster.rpt\";\r\n\t\tcr.createReport(request, response, context,session, path, \"\");\r\n\t}",
"@RequestMapping(\"/generateReport\")\n\tpublic String generateReportforLoc(){\n\t\tList<Object[]> data=service.getLocWiseCount();\n\t\tString path=context.getRealPath(\"/\");\n\t\tlocUtil.generatePieChart(path, data);\n\t\tlocUtil.generateBarChart(path, data);\n\t\treturn \"LocReport\";\n\t}",
"private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"ReservationReportSchema reportUrl();",
"abstract public void report();",
"public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMoneda() != null && \n !empresaSesion.getSimboloMoneda().isEmpty()) {\n simbolo_moneda = empresaSesion.getSimboloMoneda();\n } else {\n simbolo_moneda = \"$\";\n }\n \n // Se restauran variables iniciadas\n ReporteUtil.restaurarValores();\n \n String tipoReporte = request.getParameter(\"tipoReporte\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String placa = request.getParameter(\"splaca\"); // id,placa,numInterno\n String mplaca = request.getParameter(\"smplaca_v\");\n String esteDia = request.getParameter(\"esteDia\");\n String tipoArchivo = request.getParameter(\"tipoArchivo\");\n String ruta = request.getParameter(\"sruta\");\n String mruta = request.getParameter(\"smruta_v\");\n String malarma = request.getParameter(\"smalarma_v\");\n String base = request.getParameter(\"sbase\");\n String idLiquidador = request.getParameter(\"sliquidador\");\n String meta = request.getParameter(\"smeta\");\n String mconductor = request.getParameter(\"smconductor_v\"); \n \n boolean dia_actual = verificarDiaActual(fechaInicio, fechaFinal);\n \n// Etiquetas etiquetas = null;\n// etiquetas = LiquidacionBD.searchTags();\n ConfiguracionLiquidacion etiquetas = obtenerEtiquetasLiquidacionPerfil(request);\n \n if (etiquetas != null) {\n ReporteUtil.establecerEtiquetas(etiquetas);\n } \n \n //String reportesPath = \"D:\\\\rdw\\\\\"; \n \n // En caso de estar sobre un SO_WIN, se quita ultimo delimitador\n String reportesPath = getServletContext().getRealPath(\"\");\n if (reportesPath.endsWith(\"\\\\\")) {\n reportesPath = reportesPath.substring(0, reportesPath.length()-1); \n }\n \n Map<String,String> h = new HashMap<String,String>();\n \n h.put(\"tipoReporte\", tipoReporte);\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal); \n h.put(\"tipoArchivo\", tipoArchivo);\n h.put(\"path\", reportesPath); \n \n \n // Informacion de usuario en sesion\n HttpSession session = request.getSession(); \n Usuario u = (Usuario) session.getAttribute(\"login\");\n \n h.put(\"idUsuario\", \"\" + u.getId());\n h.put(\"nombreUsuario\", u.getNombre() +\" \"+ u.getApellido());\n h.put(\"usuarioPropietario\", (u.esPropietario()) ? \"1\" : \"0\");\n \n // Nombre y titulo del reporte\n String nt[] = nombreReporte(tipoReporte, dia_actual).split(\":\");\n \n // Verifica si se considera una o todas las rutas\n // para reportes nivel_ocupacion, despachador, descripcion ruta,\n // cumplimiento ruta por conductor\n int ntp = Integer.parseInt(tipoReporte);\n if (ntp == 5 || ntp == 14 || ntp == 16) {\n if (!ruta.equals(\"0\")) { // Se elige una ruta\n nt[0] += \"_X1Ruta\";\n h.put(\"unaRuta\", \"t\");\n } else {\n h.put(\"unaRuta\", \"f\");\n }\n } \n if (ntp == 25) {\n String una_ruta = (!ruta.equals(\"0\")) ? \"t\" : \"f\";\n h.put(\"unaRuta\", una_ruta);\n }\n \n h.put(\"nombreReporte\", nt[0]);\n h.put(\"tituloReporte\", nt[1]);\n \n // Verifica si es reporte gerencia, gerencia x vehiculo para incluir\n // todos los vehiculos o todas las rutas\n ReporteUtil.incluirTotalidadRutas = false;\n ReporteUtil.incluirTotalidadVehiculos = false;\n ReporteUtil.incluirVehiculosPropietario = false;\n \n if (ntp == 15) {\n ReporteUtil.incluirTotalidadVehiculos = true; \n } else if (ntp == 18) {\n ReporteUtil.incluirTotalidadRutas = true;\n } else if (ntp == 11) {\n if (u.esPropietario()) { \n ReporteUtil.incluirVehiculosPropietario = true;\n } else {\n ReporteUtil.incluirTotalidadVehiculos = true; \n }\n }\n \n // Verifica si es reporte ruta x vehiculo para generar\n // reporte desde codigo\n if (ntp == 3) { \n ReporteUtil.desdeCodigo = true;\n } else {\n ReporteUtil.desdeCodigo = false;\n }\n \n // Verifica si es reporte ruta x vehiculo, vehiculo x ruta, despachador\n // para establecer un dia en parametro fecha y no un rango\n if (ntp == 3 || ntp == 11 || ntp == 16) {\n h.put(\"fechaFinal\", fechaInicio);\n } \n \n // No se necesitan fechas para reporte estadistico y descripcion ruta\n if (ntp == 13 || ntp == 14) {\n h.put(\"fechaInicio\", \"\");\n h.put(\"fechaFinal\", \"\");\n }\n \n // Eleccion de reportes gerencia segun empresa\n if (ntp == 15 || ntp == 18) {\n String empresa = u.getNombreEmpresa();\n String nombre_reporte = h.get(\"nombreReporte\");\n if (ReporteUtil.esEmpresa(empresa, ReporteUtil.EMPRESA_FUSACATAN)) {\n nombre_reporte += \"Fusa\";\n h.put(\"nombreReporte\", nombre_reporte);\n } \n }\n \n // Reportes de liquidacion\n if (ntp == 19 || ntp == 20 || ntp == 21 || ntp == 22) { \n h.put(\"fechaInicio\", fechaInicio + \" 00:00:00\");\n h.put(\"fechaFinal\", fechaFinal + \" 23:59:59\");\n \n //System.out.println(\"---> \"+EtiquetasLiquidacion.getEtq_total1() );\n /*SI EL REPORTE ES LIQUIDACION POR LIQUIDADOR SE MODIFICA EL NOMBRE SI LA EMPRESA ES DIFERENTE DE NEIVA*/\n if (ntp == 21) {\n if ((u.getNombreEmpresa().equalsIgnoreCase(\"FUSACATAN\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"TIERRA GRATA\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"Tierragrata\"))) {\n h.put(\"nombreReporte\", \"Reporte_LiquidacionXLiquidador_new_dcto\"); \n }\n }\n \n if (tipoArchivo.equals(\"w\")) {\n Usuario liquidador = UsuarioBD.getById(Restriction.getNumber(idLiquidador));\n if (liquidador != null) { \n String nom = liquidador.getNombre();\n String ape = liquidador.getApellido(); \n h.put(\"idUsuarioLiquidador\", idLiquidador);\n h.put(\"nombresUsuarioLiquidador\", ape + \" \" + nom);\n }\n } else {\n h.put(\"idUsuario\", idLiquidador);\n }\n } \n \n if (ntp == 23 || ntp == 24 || ntp == 25) {\n h.put(\"meta\", \"\" + meta);\n if (tipoArchivo.equals(\"r\")) {\n ReporteUtil.reporteWeb = true;\n }\n }\n \n if (ntp == 26 || ntp == 27) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n ReporteUtil.reporteWeb = true;\n } \n \n // ======================= Verificacion de campos ======================\n \n // Id, placa, numeroInterno vehiculo\n if (placa.indexOf(\",\") >= 0) {\n h.put(\"idVehiculo\", placa.split(\",\")[0]);\n h.put(\"placa\", placa.split(\",\")[1]);\n h.put(\"numInterno\", placa.split(\",\")[2]);\n h.put(\"capacidad\", placa.split(\",\")[3]);\n ReporteUtil.incluirVehiculo = true;\n } else\n ReporteUtil.incluirVehiculo = false;\n \n // Id de multiples vehiculos\n if (mplaca != \"\" || mplaca.indexOf(\",\") >= 0) {\n h.put(\"strVehiculos\", mplaca);\n h.put(\"strVehiculosPlaca\", id2placa(mplaca));\n ReporteUtil.incluirVehiculos = true;\n } else\n ReporteUtil.incluirVehiculos = false;\n \n // Id ruta y nombre ruta\n if (ruta.indexOf(\",\") >= 0) {\n String arrayRuta[] = ruta.split(\",\");\n h.put(\"idRuta\", arrayRuta[0]);\n h.put(\"nombreRuta\", arrayRuta[1]);\n ReporteUtil.incluirRuta = true;\n } else \n ReporteUtil.incluirRuta = false;\n \n // Id ruta \n if (mruta != \"\" || mruta.indexOf(\",\") >= 0) {\n h.put(\"strRutas\", mruta);\n ReporteUtil.incluirRutas = true;\n } else\n ReporteUtil.incluirRutas = false;\n \n // Id alarma\n if (malarma != \"\" || malarma.indexOf(\",\") >= 0) {\n h.put(\"strAlarmas\", malarma);\n ReporteUtil.incluirAlarma = true;\n } else \n ReporteUtil.incluirAlarma = false; \n \n // Id base, nombre\n if (base.indexOf(\",\") >= 0) {\n String arrayBase[] = base.split(\",\");\n h.put(\"idBase\", arrayBase[0]);\n h.put(\"nombreBase\", arrayBase[1]);\n ReporteUtil.incluirBase = true;\n } else \n ReporteUtil.incluirBase = false; \n \n // Se verifica y establece parametros de empresa\n Empresa emp = EmpresaBD.getById(u.getIdempresa()); \n if (emp != null) {\n h.put(\"nombreEmpresa\", emp.getNombre());\n h.put(\"nitEmpresa\", emp.getNit());\n h.put(\"idEmpresa\", \"\" + emp.getId());\n } else {\n request.setAttribute(\"msg\", \"* Usuario no tiene relación y/o permisos adecuados con la empresa.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n int id_ruta = Restriction.getNumber(h.get(\"idRuta\")); \n String pplaca = \"'\" + h.get(\"placa\") + \"'\";\n \n // Se verifica si existe despacho para cruzar sus datos,\n // en caso contrario se extrae los datos unicamente desde tabla info. registradora\n if (ntp == 3) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, pplaca)) {\n ReporteUtil.desdeCodigo = true; \n h.put(\"nombreReporte\", \"reporte_RutaXVehiculo2\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n ReporteUtil.desdeCodigo = false; // Reporte con cruce despacho es dinamico\n h.put(\"cruzarDespacho\", \"1\"); \n }\n }\n if (ntp == 11) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, id_ruta)) {\n h.put(\"nombreReporte\", \"reporte_VehiculosXRuta\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n h.put(\"cruzarDespacho\", \"1\");\n }\n }\n \n if (ntp == 30) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n h.put(\"strConductores\", mconductor);\n ReporteUtil.reporteWeb = true;\n \n // Se verifica que exista una configuracion de desempeno activa\n ConfCalificacionConductor ccc = CalificacionConductorBD.confCalificacionConductor();\n if (ccc == null) {\n request.setAttribute(\"msg\", \"* No existe ninguna configuración de desempeño registrada. Por favor registre una.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"result_error\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n }\n \n // Creacion de reporte\n JasperPrint print = null;\n if (tipoArchivo.equals(\"r\")) {\n \n // Reporte de solo lectura << PDF / Web >>\n ReporteUtil rpt;\n \n if (ReporteUtil.reporteWeb) { \n ReporteWeb rptw = new ReporteWeb(h, request, response);\n return rptw.generarReporteWeb(ntp); \n \n } else if (ReporteUtil.desdeCodigo) {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporteDesdeCodigo(Integer.parseInt(h.get(\"tipoReporte\")), simbolo_moneda);\n \n } else {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporte(simbolo_moneda);\n }\n \n } else {\n \n // Reporte editable << XLS >>\n ReporteUtilExcel rue = new ReporteUtilExcel();\n MakeExcel rpte = rue.crearReporte(ntp, dia_actual, h, u, etiquetas);\n \n // Restablece placa de reportes que no necesitan\n restablecerParametro(\"placa\", ntp, h);\n String splaca = h.get(\"placa\");\n splaca = (splaca == null || splaca == \"\") ? \"\" : \"_\" + splaca;\n String nombreArchivo = h.get(\"nombreReporte\") + splaca + \".xls\";\n \n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n \n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close();\n \n return \"/app/reportes/generaReporte.jsp\";\n }\n \n // Impresion de reporte de solo lectura PDF\n if (print != null) {\n \n try { \n // Se comprueba existencia de datos en el reporte obtenido\n boolean hayDatos = true;\n List<JRPrintPage> pp = print.getPages(); \n if (pp.size() > 0) {\n JRPrintPage ppp = pp.get(0);\n if (ppp.getElements().size() <= 0) \n hayDatos = false; \n } else \n hayDatos = false;\n \n if (!hayDatos) {\n request.setAttribute(\"msg\", \"* Ningún dato obtenido en el reporte.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"data_reporte\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n byte[] bytes = JasperExportManager.exportReportToPdf(print);\n \n // Inicia descarga del reporte\n response.setContentType(\"application/pdf\");\n response.setContentLength(bytes.length);\n ServletOutputStream outStream = response.getOutputStream();\n outStream.write(bytes, 0, bytes.length);\n outStream.flush();\n outStream.close();\n \n } catch (JRException e) {\n System.err.println(e);\n } catch (IOException e) {\n System.err.println(e);\n } \n }\n return \"/app/reportes/generaReporte.jsp\";\n }",
"private void initReportWriter() {\n\t\tfinal XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\r\n\r\n\t\t// Create an XML stream writer\r\n\t\tfinal File reportFile = new File(getOutputDirectory(), \"report.xml\");\r\n\t\ttry {\r\n\t\t\treportWriter = xmlof.createXMLStreamWriter(new FileWriter(reportFile));\r\n\r\n\t\t} catch (final XMLStreamException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (final IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public org.paradyne.lib.ireportV2.ReportGenerator getReport(org.paradyne.lib.ireportV2.ReportGenerator rg, TaxChallan bean){\r\n\t\ttry {\r\n\t\t\tint toYear=Integer.parseInt(bean.getYear().substring(2))+1;\r\n\t\t\tString toYearStr =\"\";\r\n\t\t\tif(toYear < 10){\r\n\t\t\t\ttoYearStr = \"0\"+toYear;\r\n\t\t\t}else {\r\n\t\t\t\ttoYearStr =\"\"+toYear;\r\n\t\t\t}\r\n\t\t\tString assesmentYear = bean.getYear()+ \"-\"+ toYearStr;\r\n\t\t\tTableDataSet subtitleName = new TableDataSet();\r\n\t\t\tObject obj[][] = new Object[1][3];\r\n\t\t\t\r\n\t\t\tobj[0][0] = \"* Important : Please see notes \\noverleaf before filling up the challan\";\r\n\t\t\tobj[0][1] = \"T.D.S./TCS TAX CHALLAN\";\r\n\t\t\tobj[0][2] = \"Single Copy (to be sent to the ZAO)\";\r\n\t\t\tsubtitleName.setData(obj);\r\n\t\t\tsubtitleName.setCellAlignment(new int[] { 0, 1, 0 });\r\n\t\t\tsubtitleName.setCellWidth(new int[] { 30, 40, 30 });\r\n\t\t\tsubtitleName.setBorderDetail(3);\r\n\t\t\tsubtitleName.setHeaderTable(true);\r\n\t\t\trg.addTableToDoc(subtitleName);\r\n\t\t\t\r\n\t\t\tTableDataSet heading1 = new TableDataSet();\r\n\t\t\theading1.setData(new Object[][] { {\r\n\t\t\t\t\t\t\t\"CHALLAN NO./ \\nITNS \\n281\\n\\n\"+bean.getChallanNo(),\r\n\t\t\t\t\t\t\t\"Tax Applicable (Tick One)*\\nTAX DEDUCTED/COLLECTED AT SOURCE FROM\\n\\n(0020) COMPANY [__] \\t\\t\\t\\t(0021) NON-COMPANY [__] \\n\\n DEDUCTEES \\t\\t\\t\\t\\t\\t\\t DEDUCTEES\",\r\n\t\t\t\t\t\t\t\"Assesment Year \\n\\n\"+assesmentYear }});\r\n\t\t\theading1.setCellAlignment(new int[] { 1, 1, 1 });\r\n\t\t\theading1.setCellWidth(new int[] { 20, 60, 20 });\r\n\t\t\theading1.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(heading1);\r\n\t\t\t\r\n\t\t\tObject divAddress[][]=getSqlModel().getSingleResult(\"SELECT HRMS_DIVISION.DIV_NAME, NVL(HRMS_DIVISION.DIV_ADDRESS1,' '), NVL(HRMS_DIVISION.DIV_ADDRESS2,' '), NVL(HRMS_DIVISION.DIV_ADDRESS3,' '), NVL(HRMS_DIVISION.DIV_TANNO,' '), \"\r\n\t\t\t\t\t+\" HRMS_DIVISION.DIV_TELEPHONE, HRMS_DIVISION.DIV_PINCODE FROM HRMS_DIVISION WHERE HRMS_DIVISION.DIV_ID=\"+bean.getDivId());\r\n\t\t\t\r\n\t\t\tObject [][] empDataObj = new Object[4][1];\r\n \t\tempDataObj[0][0] = \"Tax Deduction Account No. (T.A.N.)\\n\"+divAddress[0][4];;\r\n \t\tempDataObj[1][0] = \"Full Name\\n\"+divAddress[0][0];\r\n \t\tempDataObj[2][0] = \"Complete Address with City & State\\n\"+divAddress[0][1]+\"\\n\"+\"\"+divAddress[0][2]+\"\\n\"+\"\"+divAddress[0][3];\r\n \t\tempDataObj[3][0] = \"Tel. No. : \"+checkNull(\"\"+divAddress[0][5])+\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n \t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Pin : \"+checkNull(\"\"+divAddress[0][6]);\r\n \t\t\r\n \t\t\r\n \t\tTableDataSet empData = new TableDataSet();\r\n\t\t\tempData.setData(empDataObj);\r\n\t\t\tempData.setCellAlignment(new int[] { 0 });\r\n\t\t\tempData.setCellWidth(new int[] { 100 });\r\n\t\t\tempData.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(empData);\r\n \t\t\r\n \t\tTableDataSet table1 = new TableDataSet();\r\n \t\ttable1.setData(new Object[][] { { \"Type of Payment\", \"Code * \" } });\r\n \t\ttable1.setCellAlignment(new int[] { 0, 2});\r\n \t\ttable1.setCellWidth(new int[] { 50, 50 });\r\n \t\ttable1.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tTableDataSet table2 = new TableDataSet();\r\n\t\t\ttable2.setData(new Object[][] { {\"(Tick One)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n\t\t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(Please see overleaf)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tTDS/TCS Payable by Taxpayer\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t (200)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t TDS/TCS Regular Assessment (Raised by I.T. Deptt.)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(400)\\n\"}});\r\n\t\t\ttable2.setCellAlignment(new int[] {0});\r\n\t\t\ttable2.setCellWidth(new int[] { 100 });\r\n\t\t\ttable2.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map2 = rg.joinTableDataSet(table1, table2, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table3 = new TableDataSet();\r\n\t\t\ttable3.setData(new Object[][] { { \"DETAILS OF PAYMENTS\",\"Amount (in Rs. Only)\" }});\r\n\t\t\ttable3.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable3.setCellWidth(new int[] { 50, 50});\r\n\t\t\ttable3.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map3 = rg.joinTableDataSet(map2, table3, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table4 = new TableDataSet();\r\n\t\t\ttable4.setData(new Object[][] { {\"Income Tax\",bean.getTax()},\r\n\t\t\t\t\t{\"Surcharge\",bean.getSurcharge()},\r\n\t\t\t\t\t{\"Education Cess\",bean.getEduCess()},\r\n\t\t\t\t\t{\"Interest\",bean.getIntAmt()},\r\n\t\t\t\t\t{\"Penalty\",bean.getOthrAmt()},\r\n\t\t\t\t\t{\"Total\",bean.getTotalTax()},\r\n\t\t\t\t\t{\"Total (in words)\",\"\"}});\r\n\t\t\ttable4.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable4.setCellWidth(new int[] { 30, 70});\r\n\t\t\ttable4.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map4 = rg.joinTableDataSet(map3, table4, false, 100);\r\n\t\t\t\r\n\t\t\tString numberString [] = convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\",\"\"))).split(\",\");\r\n\t\t\t\r\n\t\t\tObject totalInWord [][]= new Object [2][6];\r\n\t\t\ttotalInWord [0][0] = \"CRORE\";\r\n\t\t\ttotalInWord [0][1] = \"LACS\";\r\n\t\t\ttotalInWord [0][2] = \"THOUSAND\";\r\n\t\t\ttotalInWord [0][3] = \"HUNDRED\";\r\n\t\t\ttotalInWord [0][4] = \"TENS\";\r\n\t\t\ttotalInWord [0][5] = \"UNITS\";\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < numberString.length; i++) {\r\n\t\t\t\tif(numberString[i].equalsIgnoreCase(\"zero\")){\r\n\t\t\t\t\ttotalInWord [1][i] = \"Nil\";\r\n\t\t\t\t} else { \r\n\t\t\t\t\ttotalInWord [1][i] = numberString[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTableDataSet table5 = new TableDataSet();\r\n\t\t\ttable5.setData(totalInWord);\r\n\t\t\ttable5.setCellAlignment(new int[] { 1, 1, 1, 1, 1, 1});\r\n\t\t\ttable5.setCellWidth(new int[] { 15, 15, 15, 15, 15, 15});\r\n\t\t\ttable5.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map5 = rg.joinTableDataSet(map4, table5, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table6 = new TableDataSet();\r\n\t\t\ttable6.setData(new Object[][] { {\"Paid in Cash/Debit to A/c /Cheque No.\"+bean.getChequeNo(), \"\", \"Dated\", bean.getChequeDate() }});\r\n\t\t\ttable6.setCellAlignment(new int[] { 1, 1, 1, 1});\r\n\t\t\ttable6.setCellWidth(new int[] { 50, 15, 20, 15});\r\n\t\t\ttable6.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map6 = rg.joinTableDataSet(map5, table6, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table7 = new TableDataSet();\r\n\t\t\ttable7.setData(new Object[][] { {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable7.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable7.setCellWidth(new int[] { 50,50});\r\n\t\t\ttable7.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map7 = rg.joinTableDataSet(map6, table7, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table8 = new TableDataSet();\r\n\t\t\ttable8.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}});\r\n\t\t\ttable8.setCellAlignment(new int[] { 2});\r\n\t\t\ttable8.setCellWidth(new int[] { 100 });\r\n\t\t\ttable8.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map8 = rg.joinTableDataSet(map7, table8, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table9 = new TableDataSet();\r\n\t\t\ttable9.setData(new Object[][] { {\"Date\", \"\"}});\r\n\t\t\ttable9.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable9.setCellWidth(new int[] { 60, 40});\r\n\t\t\ttable9.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map9 = rg.joinTableDataSet(map8, table9, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table10 = new TableDataSet();\r\n\t\t\ttable10.setData(new Object[][] { {\"Signature of person making payment\"}});\r\n\t\t\ttable10.setCellAlignment(new int[] { 2 });\r\n\t\t\ttable10.setCellWidth(new int[] { 100});\r\n\t\t\ttable10.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map10 = rg.joinTableDataSet(map9, table10, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table11 = new TableDataSet();\r\n\t\t\ttable11.setData(new Object[][] { {\"Taxpayers Counterfoil (To be filled up by taxpayer)\"}});\r\n\t\t\ttable11.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable11.setCellWidth(new int[] { 100});\r\n\t\t\ttable11.setBodyFontDetails(Font.FontFamily.HELVETICA, 8, Font.BOLD, new BaseColor(0, 0, 0));\r\n\t\t\ttable11.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map11 = rg.joinTableDataSet(map10, table11, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table12 = new TableDataSet();\r\n\t\t\ttable12.setData(new Object[][] { {\"TAN \"+divAddress[0][4]+\"\\n\\nReceived from \"+divAddress[0][0]}});\r\n\t\t\ttable12.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable12.setCellWidth(new int[] { 100});\r\n\t\t\ttable12.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map12 = rg.joinTableDataSet(map11, table12, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table13 = new TableDataSet();\r\n\t\t\ttable13.setData(new Object[][] { {\"(Name)\"}});\r\n\t\t\ttable13.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable13.setCellWidth(new int[] { 100 });\r\n\t\t\ttable13.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map13 = rg.joinTableDataSet(map12, table13, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table14 = new TableDataSet();\r\n\t\t\ttable14.setData(new Object[][] { {\"Cash/ Debit to A/c /Cheque No. :\"+bean.getChequeNo()+\"For Rs.\"+bean.getTotalTax().replace(\".00\", \"\")+\"/-\"}});\r\n\t\t\ttable14.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable14.setCellWidth(new int[] { 100 });\r\n\t\t\ttable14.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map14 = rg.joinTableDataSet(map13, table14, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table15 = new TableDataSet();\r\n\t\t\ttable15.setData(new Object[][] { {\"Rs. (in words)\", Utility.convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\", \"\")))}, {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable15.setCellAlignment(new int[] { 0, 1 });\r\n\t\t\ttable15.setCellWidth(new int[] { 30, 70 });\r\n\t\t\ttable15.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map15 = rg.joinTableDataSet(map14, table15, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table16 = new TableDataSet();\r\n\t\t\ttable16.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}, \r\n\t\t\t\t\t{\"Company/Non-Company Deductees\"}, \r\n\t\t\t\t\t{\"on account of Tax Deducted at Source (TDS)/Tax Collected at Source (TCS) from____(Fill up Code)\"},\r\n\t\t\t\t\t{\"(Strike out whichever is not applicable)\"}});\r\n\t\t\ttable16.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable16.setCellWidth(new int[] { 100 });\r\n\t\t\ttable16.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map16 = rg.joinTableDataSet(map15, table16, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table17 = new TableDataSet();\r\n\t\t\ttable17.setData(new Object[][] { {\"\\nfor the Assessment Year : \"+assesmentYear}});\r\n\t\t\ttable17.setCellAlignment(new int[] { 0});\r\n\t\t\ttable17.setCellWidth(new int[] { 100 });\r\n\t\t\ttable17.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map17 = rg.joinTableDataSet(map16, table17, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table18 = new TableDataSet();\r\n\t\t\ttable18.setData(new Object[][] { {\"\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tFOR USE IN RECEIVING BANK \\n\\n\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDebit to A/c/Cheque credited on\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tDD-MM-YY\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable18.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable18.setCellWidth(new int[] {100});\r\n\t\t\ttable18.setBorderDetail(3);\r\n\r\n\t\t\tTableDataSet table19 = new TableDataSet();\r\n\t\t\ttable19.setData(new Object[][] { {\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable19.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable19.setCellWidth(new int[] {100});\r\n\t\t\ttable19.setBorderDetail(3);\r\n\t\t\t//rg.addTableToDoc(table11);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map18 = rg.joinTableDataSet(table18, table19, false, 100);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map19 = rg.joinTableDataSet(map17, map18, true, 70);\r\n\t\t\t\r\n\t\t\trg.addTableToDoc(map19);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rg;\r\n\t}",
"public void generarReporteGanancia(String destino,String fechainicial,String fechafinal)\n {\n \n if(destino.equals(\"Todos\"))\n {\n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentasGeneral.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Ventas Credito/Contado\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n }\n else\n { \n \n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentas.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Insumos\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n } \n }",
"public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public static IReport createReport(File f) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(f));\r\n }",
"private Report createFullReport(String message, Type type) {\n return Report.create(message, type);\n }",
"public void generarReportePlantillaFacturas(String sAccionBusqueda,List<PlantillaFactura> plantillafacturasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFacturaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PlantillaFacturaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Plantilla Facturas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PlantillaFacturaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePlantillaFactura=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePlantillaFactura=new JRBeanArrayDataSource(PlantillaFacturaJInternalFrame.TraerPlantillaFacturaBeans(plantillafacturasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePlantillaFactura);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PlantillaFacturaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PlantillaFacturaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PlantillaFacturaBean.TraerPlantillaFacturaBeans(plantillafacturasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPlantillaFacturaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }",
"@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}",
"public String getReport() {\n return reportDoc.toString();\n }",
"public synchronized static ExtentReports getReporter(String filePath) {\n\t\t if (report == null) {\r\n\t\t \treport = new ExtentReports(path.concat(\"Report\\\\Purchase_Admin_Report.html\"));\r\n\t\t \r\n\t\t report\r\n\t\t .addSystemInfo(\"Host Name\", \"Priti\") //Environment Setup For Report\r\n\t\t .addSystemInfo(\"Environment\", \"QA\");\r\n\t\t }\r\n\t\t \r\n\t\t return report;\r\n\t\t}",
"public Report build() {\n return new Report(this);\n }",
"private void generateIncomingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Incoming Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallIncomings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"void printReport(Object unit);",
"public String createCoverageReport() throws Exception{\n\t\tList<TestSuite> suites = getSuites();\t\n\t\treturn priorj.createCoverageReport(suites);\n\t}",
"@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }",
"public void generarReporteCostoGastoImpors(String sAccionBusqueda,List<CostoGastoImpor> costogastoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CostoGastoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Costo Gasto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CostoGastoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCostoGastoImporLogic costogastoimporLogicAuxiliar=new CostoGastoImporLogic();\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setDatosCliente(costogastoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setCostoGastoImpors(costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyCostoGastoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporsParaReportes=costogastoimporLogicAuxiliar.getCostoGastoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (CostoGastoImpor costogastoimpor:costogastoimporsParaReportes) {\r\n\t\t\t\t\t//\tcostogastoimporLogic.deepLoad(costogastoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//costogastoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpor\", reportFileDetalleLiquidacionImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCostoGastoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCostoGastoImpor=new JRBeanArrayDataSource(CostoGastoImporJInternalFrame.TraerCostoGastoImporBeans(costogastoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCostoGastoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CostoGastoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CostoGastoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CostoGastoImporBean.TraerCostoGastoImporBeans(costogastoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCostoGastoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"@Override\n public Map<String, OEEReport> build() {\n return generators.entrySet().stream().collect(Collectors.toMap(\n entry -> entry.getKey(),\n entry -> entry.getValue().getReport()\n ));\n }",
"private void openUserReporttWindow() {\r\n\t\tnew JFrameReport();\r\n\t}",
"@Override\n public Report getReport() {\n return null;\n }",
"public void createReport(Report report) {\n view.onProgress(true);\n apiInterface.newReport(report.getNumber(), report.isNo_telp(), report.isNo_rek())\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new SingleObserver<ReportItem>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onSuccess(ReportItem reportItem) {\n if (reportItem != null) {\n view.onReportResult(reportItem.toReportparcel(), true);\n }\n view.onProgress(false);\n }\n\n @Override\n public void onError(Throwable e) {\n view.onError(e.getMessage());\n view.onProgress(false);\n }\n });\n }",
"private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}",
"public void generarReporteTipoDireccions(String sAccionBusqueda,List<TipoDireccion> tipodireccionsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccionMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDireccionMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Direcciones\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDireccionConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(Direccion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDireccionLogic tipodireccionLogicAuxiliar=new TipoDireccionLogic();\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setDatosCliente(tipodireccionLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setTipoDireccions(tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDireccionWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionsParaReportes=tipodireccionLogicAuxiliar.getTipoDireccions();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDireccion tipodireccion:tipodireccionsParaReportes) {\r\n\t\t\t\t\t//\ttipodireccionLogic.deepLoad(tipodireccion, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodireccionLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDireccion = AuxiliarReportes.class.getResourceAsStream(\"DireccionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_direccion\", reportFileDireccion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDireccion=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDireccion=new JRBeanArrayDataSource(TipoDireccionJInternalFrame.TraerTipoDireccionBeans(tipodireccionsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDireccion);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDireccionConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDireccionConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDireccionBean.TraerTipoDireccionBeans(tipodireccionsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDireccionActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"private void generateReport( Locale locale, LinkcheckModel linkcheckModel )\n {\n getSink().head();\n getSink().text( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.name\" ) );\n getSink().head_();\n \n getSink().body();\n \n if ( linkcheckModel == null )\n {\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.empty\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n \n return;\n }\n \n // Overview\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.overview\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n //Statistics\n generateSummarySection( locale, linkcheckModel );\n \n //Details\n generateDetailsSection( locale, linkcheckModel );\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n }",
"public String report() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\t String[] headers = { \"Sr no\", \"Code \", \"Name\", \"Address\",\r\n\t\t\t\t\t\"Contact No\", \"E-mail\", \"City\", \"State\", \"Pin Code\" };\r\n\t\tmodel.report(vendorMaster, request,response,headers);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\r\n\t}",
"public void generarReporteUtilidadTipoPrecios(String sAccionBusqueda,List<UtilidadTipoPrecio> utilidadtipopreciosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"UtilidadTipoPrecioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Utilidad Tipo Precioes\");\t\t\r\n\t\tparameters.put(\"busquedapor\", UtilidadTipoPrecioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceUtilidadTipoPrecio=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceUtilidadTipoPrecio=new JRBeanArrayDataSource(UtilidadTipoPrecioJInternalFrame.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceUtilidadTipoPrecio);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+UtilidadTipoPrecioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+UtilidadTipoPrecioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(UtilidadTipoPrecioBean.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoUtilidadTipoPrecioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public static ExtentReports extentReportGenerator() \n\t{\n\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\";\n//\tExtentSparkReporter reporter=new ExtentSparkReporter(path);\n//\t\treporter.config().setEncoding(\"utf-8\");\n//\t\treporter.config().setReportName(\"Automation Test Results\");\n//\t\treporter.config().setDocumentTitle(\"Automation Reports\");\n//\t\treporter.config().setTheme(Theme.STANDARD);\n\t\t\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path);\t\n\t\thtmlReporter.setAppendExisting(true);\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"Automation Reports\");\n\t\thtmlReporter.config().setReportName(\"Automation Test Results\");\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\n\t\tLocale.setDefault(Locale.ENGLISH);\n\t\t\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"Tester\", \"Sonu\");\n\t\t\n\t\t\n\t\t\n\t\treturn extent;\n\t}",
"@Test\n\tpublic void generateOrderTakerSummaryReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Order Taker Summary Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }",
"private void contactReport() {\n reportText.appendText(\"Report of appointments per Contact\\n\\n\");\n for (Contact contact: Data.getContacts()) {\n\n reportText.appendText(\"\\n\\nContact:\" + contact.getContactName() + \"\\n\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getContact() == contact.getContactID()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n }",
"private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}",
"public void generarReporteFacturaPuntoVentas(String sAccionBusqueda,List<FacturaPuntoVenta> facturapuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturaPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Factura Punto Ventas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturaPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(FormaPagoPuntoVenta.class));\r\n\t\t\tclasses.add(new Classe(DetalleFacturaPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tFacturaPuntoVentaLogic facturapuntoventaLogicAuxiliar=new FacturaPuntoVentaLogic();\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setDatosCliente(facturapuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setFacturaPuntoVentas(facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyFacturaPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventasParaReportes=facturapuntoventaLogicAuxiliar.getFacturaPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (FacturaPuntoVenta facturapuntoventa:facturapuntoventasParaReportes) {\r\n\t\t\t\t\t//\tfacturapuntoventaLogic.deepLoad(facturapuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//facturapuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFormaPagoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"FormaPagoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_formapagopuntoventa\", reportFileFormaPagoPuntoVenta);\r\n\r\n\t\t\tInputStream reportFileDetalleFacturaPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"DetalleFacturaPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallefacturapuntoventa\", reportFileDetalleFacturaPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturaPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturaPuntoVenta=new JRBeanArrayDataSource(FacturaPuntoVentaJInternalFrame.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturaPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturaPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturaPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturaPuntoVentaBean.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturaPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }",
"@Override\r\n\tprotected File generateReportFile() {\r\n\r\n\t\tFile tempFile = null;\r\n\r\n\t\tFileOutputStream fileOut = null;\r\n\t\ttry {\r\n\t\t\ttempFile = File.createTempFile(\"tmp\", \".\" + this.exportType.getExtension());\r\n\t\t\tfileOut = new FileOutputStream(tempFile);\r\n\t\t\tthis.workbook.write(fileOut);\r\n\t\t} catch (final IOException e) {\r\n\t\t\tLOGGER.warn(\"Converting to XLS failed with IOException \" + e);\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tif (tempFile != null) {\r\n\t\t\t\ttempFile.deleteOnExit();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (fileOut != null) {\r\n\t\t\t\t\tfileOut.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (final IOException e) {\r\n\t\t\t\tLOGGER.warn(\"Closing file to XLS failed with IOException \" + e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tempFile;\r\n\t}",
"public String report() {\r\n\t\tsession2 = ServletActionContext.getRequest().getSession();\r\n\t\tlogger.info(session2);\r\n\t\tif (session2 == null || session2.getAttribute(\"login\") == null) {\r\n\t\t\tlogger.error(\"if=====session error reporting===='\");\r\n\t\t\treturn LOGIN;\r\n\t\t} else {\r\n\t\t\tfactory = LoginAndSession.getFactory();\r\n\t\t\tdao_userWise = (Productivity_user_wiseDao) factory.getBean(\"d27\");\r\n\t\t\tdao_propwise = (Productivity_property_wiseDao) factory.getBean(\"d29\");\r\n\t\t\tpcw = (Productivity_client_wiseDao) factory.getBean(\"d30\");\r\n\t\t\tif (colorRadio.equalsIgnoreCase(\"red\")) {\r\n\r\n\t\t\t\t// for all user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , mu.name\"\r\n\t\t\t\t\t\t\t\t\t+ \" , puw.facebook, puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain , puw.user_id \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_user_wise puw, Markscan_users mu where puw.curr_date \"\r\n\t\t\t\t\t\t\t\t\t+ \" between '\" + date + \"' and '\" + date1 + \"' and mu.id= puw.user_id\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tcud = (Crawle_url2Dao) factory.getBean(\"dash\");\r\n\r\n\t\t\t\t\t// lst1= cud.viewRecord(\"select DISTINCT count(domain_name)\r\n\t\t\t\t\t// ,date(created_on), link_logger from crawle_url3 where\r\n\t\t\t\t\t// user_id= 75 and created_on >'2017-06-01' and\r\n\t\t\t\t\t// link_logger=1 group by date(created_on)\")\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setProj_name(obj[8].toString()); // user_name\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[14]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[15]);\r\n\t\t\t\t\t\tdata.setUser_id((Integer) obj[16]);\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" ppw.created_on = '\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t\t+ \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" productivi0_.created_on='\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t+ \"' and \" + \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(client_names);\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tobj0=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tobj1=null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\t\t\tlst = null;\r\n\t\t\t\t\t\t\tfactory=null;\r\n\t\t\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"allEmpReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"green\")) {\r\n\t\t\t\t// for single user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , puw.facebook,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain from \" + \" Productivity_user_wise puw where puw.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and puw.curr_date between\" + \" '\" + date + \"' and '\" + date1 + \"'\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[14]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" ppw.created_on = '\" + obj[0].toString() + \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw= null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"empReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"blue\")) {\r\n\t\t\t\t// for client wise\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tlst = pcw.viewRecord(\"select pcw.curr_date, pcw.source_link, pcw.infringing_link, pcw.youtube,\"\r\n\t\t\t\t\t\t\t+ \" pcw.social_media, pcw.white_list, pcw.grey_list , pcw.facebook, pcw.instagram, pcw.twitter,\"\r\n\t\t\t\t\t\t\t+ \" pcw.vk, pcw.periscope, pcw.source_domain, pcw.infringing_domain from Productivity_client_wise \"\r\n\t\t\t\t\t\t\t+ \" pcw where pcw.curr_date between '\" + date + \"' and '\" + date1 + \"' and pcw.client_id=\"\r\n\t\t\t\t\t\t\t+ clientname);\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[7] + (Integer) obj[8] + (Integer) obj[9] + (Integer) obj[10]\r\n\t\t\t\t\t\t\t\t+ (Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[13]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT mu.name, ppw.created_on ,ppw.user_id from Productivity_property_wise ppw ,\"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Markscan_users mu where mu.id= ppw.user_id and ppw.client_id = \"\r\n\t\t\t\t\t\t\t\t\t\t+ clientname + \" and ppw.created_on='\" + obj[0].toString() + \"' \");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\" select sum( productivi0_.source_count),\"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.facebook),sum(productivi0_.instagram),sum(productivi0_.twitter) \"\r\n\t\t\t\t\t\t\t\t\t+ \" ,sum(productivi0_.vk),sum( productivi0_.periscope) from \"\r\n\t\t\t\t\t\t\t\t\t+ \" Productivity_property_wise productivi0_, Markscan_users markscan_u1_ where \"\r\n\t\t\t\t\t\t\t\t\t+ \" markscan_u1_.id=productivi0_.user_id and productivi0_.client_id= \" + clientname\r\n\t\t\t\t\t\t\t\t\t+ \" and productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \" productivi0_.user_id=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj= null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tobj=null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"clientReport\";\r\n\t\t\t}\r\n\r\n\t\t\tfactory=null;\r\n\t\t\tdao_userWise=null;\r\n\t\t\tdao_propwise=null;\r\n\t\t\tsession2=null;\r\n\t\t\tSystem.gc();\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t}",
"public String generateReport(final String merchantUuid, final Integer days, final Integer offset);",
"public void generarReporteLiquidacionImpuestoImpors(String sAccionBusqueda,List<LiquidacionImpuestoImpor> liquidacionimpuestoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LiquidacionImpuestoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Liquidacion Impuesto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LiquidacionImpuestoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpuestoImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLiquidacionImpuestoImporLogic liquidacionimpuestoimporLogicAuxiliar=new LiquidacionImpuestoImporLogic();\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setDatosCliente(liquidacionimpuestoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setLiquidacionImpuestoImpors(liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyLiquidacionImpuestoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporsParaReportes=liquidacionimpuestoimporLogicAuxiliar.getLiquidacionImpuestoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LiquidacionImpuestoImpor liquidacionimpuestoimpor:liquidacionimpuestoimporsParaReportes) {\r\n\t\t\t\t\t//\tliquidacionimpuestoimporLogic.deepLoad(liquidacionimpuestoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpuestoImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImpuestoImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpuestoimpor\", reportFileDetalleLiquidacionImpuestoImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLiquidacionImpuestoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLiquidacionImpuestoImpor=new JRBeanArrayDataSource(LiquidacionImpuestoImporJInternalFrame.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLiquidacionImpuestoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LiquidacionImpuestoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LiquidacionImpuestoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LiquidacionImpuestoImporBean.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLiquidacionImpuestoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public static ExtentReports getReportInstance() {\n\t\tif (report == null) {\n\n\t\t\tString reportName = \"HTMLreport_\" + getTimeStamp() + \".html\";\n\t\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\") +\n\t\t\t\t\t\"\\\\src\\\\test\\\\resources\\\\test_result\\\\\" + reportName);\n\t\t\n\t\t\treport = new ExtentReports();\n\t\t\treport.attachReporter(htmlReporter);\n\n\t\t\treport.setSystemInfo(\"OS\", \"Windows 10\");\n\t\t\treport.setSystemInfo(\"Environment\", \"UAT\");\n\t\t\treport.setSystemInfo(\"Browsers\", \"Chrome and Edge\");\n\n\t\t\thtmlReporter.config().setDocumentTitle(\"Identify New Bikes - HTML Report\");\n\t\t\thtmlReporter.config().setReportName(\"UI Test Report\");\n\t\t\thtmlReporter.config().setTimeStampFormat(\"MMM dd, yyyy HH:mm:ss\");\n\t\t}\n\n\t\treturn report;\n\t}",
"@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }",
"public String getNomeReport() {\r\n\t\treturn nomeReport;\r\n\t}",
"public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}",
"public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"@Override\n public String toString() {\n return \"Report{\" +\n \"reportId=\" + reportId +\n \", reportOpId=\" + reportOp +\n \", date='\" + date + '\\'' +\n \", reportedUserId=\" + reportedUser +\n \", userId=\" + user +\n \", status=\" + status +\n '}';\n }",
"public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}",
"@RequestMapping(\"/customer/customerReport\")\n public String viewCustomerReport() {\n Connection connection = null;\n try {\n connection = DriverManager.getConnection(\"jdbc:h2:tcp://localhost/~/test\", \"sa\", \"\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n JasperReportBuilder report = DynamicReports.report(); // A new report\n\n StyleBuilder boldStyle = stl.style().bold();\n StyleBuilder boldCenteredStyle = stl.style(boldStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n StyleBuilder columnTitleStyle = stl.style(boldCenteredStyle)\n .setBorder(stl.pen1Point())\n .setBackgroundColor(Color.LIGHT_GRAY);\n\n\n\n report\n .setColumnTitleStyle(columnTitleStyle)\n .highlightDetailEvenRows()\n .columns(\n Columns.column(\"Id\", \"customerId\", DataTypes.integerType()),\n Columns.column(\"First Name\", \"firstName\", DataTypes.stringType()),\n Columns.column(\"SecondName\", \"secondName\", DataTypes.stringType()),\n Columns.column(\"Email Address\", \"email\", DataTypes.stringType()),\n Columns.column(\"Phone No\", \"phoneNo\", DataTypes.stringType()),\n Columns.column(\"Street Name\", \"streetName\", DataTypes.stringType()),\n Columns.column(\"House Name\", \"houseName\", DataTypes.stringType()),\n Columns.column(\"City\", \"city\", DataTypes.stringType()),\n Columns.column(\"County\", \"county\", DataTypes.stringType()),\n Columns.column(\"Postcode\", \"postCode\", DataTypes.stringType()))\n .title( //title of the report\n Components.text(\"Customer Report\")\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setStyle(boldCenteredStyle))\n .pageFooter(Components.pageXofY().setStyle(boldCenteredStyle)) //Show page number on the page footer\n .setDataSource(\"SELECT customerId, firstName, secondName, email, phoneNo, streetName, houseName, city, county, postCode FROM customer\", connection);\n\n try {\n // Show the report\n report.show();\n\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n //export the report to a pdf file\n report.toPdf(new FileOutputStream(\"c:/report.pdf\"));\n } catch (DRException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n return \"customerReport\";\n }",
"public ReportGenerator(AccessibilityTester at, TestSettings set){\n tester = at;\n testSettings = set;\n printName = set.report_name;\n printDescription = set.report_description;\n printPosition = set.report_position;\n }",
"public abstract void writeLedgerSummaryReport(ReportWriterService reportWriterService);",
"public void customerAppointmentsReport() {\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n StringBuilder sb3 = new StringBuilder();\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getCustomerAppointments();\n\n reportLabel.setText(\"Customer Appointments By Type and Month Report: \\n\\n\");\n //Appends Month to the customer report\n sb1.append(\"Month:\\n\");\n for (Reports reports : reportsList) {\n sb1.append(reports.getMonthName()).append(\"\\n\");\n }\n reportLabel1.setText(sb1.toString());\n //Appends Type to the customer report\n sb2.append(\"Type:\\n\");\n for (Reports reports : reportsList) {\n sb2.append(reports.getType()).append(\"\\n\");\n }\n reportLabel2.setText(sb2.toString());\n //Appends total count to the customer report\n sb3.append(\"Count:\\n\");\n for (Reports reports : reportsList) {\n sb3.append(reports.getAppointmentCount()).append(\"\\n\");\n }\n reportLabel3.setText(sb3.toString());\n }",
"@Override\n public ReportDesign buildReportDesign(ReportDefinition reportDefinition) {\n ReportDesign rd = createExcelTemplateDesign(getExcelDesignUuid(), reportDefinition, \"SMCRegister.xls\");\n Properties props = new Properties();\n props.put(\"repeatingSections\", \"sheet:1,row:10-12,dataset:SMC\");\n props.put(\"sortWeight\", \"5000\");\n rd.setProperties(props);\n return rd;\n }",
"void generateMgiCrisprAlleleReport();",
"public void generarReporteTablaAmortiDetalles(String sAccionBusqueda,List<TablaAmortiDetalle> tablaamortidetallesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalleMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TablaAmortiDetalleMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tabla Amortizacion Detalles\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TablaAmortiDetalleConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTablaAmortiDetalle=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTablaAmortiDetalle=new JRBeanArrayDataSource(TablaAmortiDetalleJInternalFrame.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTablaAmortiDetalle);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TablaAmortiDetalleConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TablaAmortiDetalleConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TablaAmortiDetalleBean.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTablaAmortiDetalleActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public Report() {\r\n }",
"private JRXReportGenerated getReportGenerated(String reportName, Map parameters, JRBeanCollectionDataSource dataSource)\n throws Exception {\n\n //Load jasper reports\n JasperReport jasperReport = loadJasperReport(reportName);\n\n //Generated JRXReportGenerated\n// return new JRXReportGenerated(jasperReport, parameters, dataSource);\n return null;\n }",
"public static void printCommonReport(String reportName, HashMap<String, Object> hm) throws SQLException, JRException {\n hm.put(\"shopName\", Loading.getShopName());\n Connection con = DatabaseConnection.getDatabaseConnection();\n JasperDesign jsd = JRXmlLoader.load(\"C:\\\\reports\\\\\" + reportName + \".jrxml\"); //src\\\\cazzendra\\\\pos\\\\\n JasperReport jr = JasperCompileManager.compileReport(jsd);\n JasperPrint jp = JasperFillManager.fillReport(jr, hm, con);\n JasperViewer jasperViewer = new JasperViewer(jp, false);\n jasperViewer.setVisible(true);\n }"
] |
[
"0.7244254",
"0.70335674",
"0.7016798",
"0.6952674",
"0.693056",
"0.6912266",
"0.6898747",
"0.6872137",
"0.66922975",
"0.64615834",
"0.6440881",
"0.6411764",
"0.6377514",
"0.6354583",
"0.62679935",
"0.6253177",
"0.62434924",
"0.6191068",
"0.61342305",
"0.60768306",
"0.60738724",
"0.6061634",
"0.6051109",
"0.60306174",
"0.60036796",
"0.59537107",
"0.5952402",
"0.5927738",
"0.59101856",
"0.59054047",
"0.5903212",
"0.58822113",
"0.5881351",
"0.57972455",
"0.578981",
"0.57844186",
"0.57790846",
"0.57683706",
"0.5735652",
"0.5725175",
"0.571456",
"0.56898636",
"0.56883955",
"0.5687878",
"0.5674724",
"0.56742245",
"0.56683975",
"0.56575716",
"0.5649686",
"0.56456536",
"0.5642344",
"0.56304324",
"0.5624921",
"0.5619734",
"0.56193984",
"0.5617126",
"0.5610356",
"0.5601225",
"0.55974406",
"0.55923027",
"0.55877",
"0.55823934",
"0.555471",
"0.5540909",
"0.55395335",
"0.55299896",
"0.5518379",
"0.5518301",
"0.55177134",
"0.5510958",
"0.55089355",
"0.55059046",
"0.5504923",
"0.550253",
"0.55022913",
"0.54951066",
"0.5490309",
"0.5485295",
"0.5484123",
"0.5469323",
"0.5469193",
"0.54457754",
"0.54440916",
"0.5441774",
"0.5439539",
"0.54269886",
"0.5418351",
"0.54102635",
"0.5408548",
"0.54079324",
"0.54061466",
"0.54000956",
"0.53850436",
"0.53830606",
"0.53820175",
"0.5370351",
"0.5367324",
"0.53658676",
"0.5354627",
"0.5350884",
"0.53503615"
] |
0.0
|
-1
|
Generate report with report owner.
|
protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Report createReport();",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}",
"void createReport(Report report);",
"public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }",
"public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }",
"public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public GenerateReport() {\n initComponents();\n displayLogs();\n }",
"public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }",
"public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }",
"public String generateReport() {\n throw new UnsupportedOperationException(\"ERROR: generateReport() Not yet implemented.\");\n }",
"public void generateReport(ReportGenerationData data)throws ChangeApplicationException;",
"void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }",
"public abstract void generateReport(Date from, Date to, String objectCode);",
"private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }",
"@Override\n void createReport(final Format reportFormat,\n final long start, final long end) {\n makeBriefReport(reportFormat, \"Informe breu\", start, end);\n writeToFile();\n getFormat().finishPrinting();\n }",
"public DataMemberReport genReport() {\n long prevLastLogIndex = lastReportedLogIndex;\n lastReportedLogIndex = logManager.getLastLogIndex();\n return new DataMemberReport(\n character,\n leader.get(),\n term.get(),\n logManager.getLastLogTerm(),\n lastReportedLogIndex,\n logManager.getCommitLogIndex(),\n logManager.getCommitLogTerm(),\n getHeader(),\n readOnly,\n NodeStatusManager.getINSTANCE().getLastResponseLatency(getHeader().getNode()),\n lastHeartbeatReceivedTime,\n prevLastLogIndex,\n logManager.getMaxHaveAppliedCommitIndex());\n }",
"public abstract void getReport(java.io.Writer writer);",
"public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }",
"boolean generateReport();",
"private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}",
"public String exportReportForUserInKinder(String reportFormat ,long iduser , long idkinder ) throws FileNotFoundException, JRException {\n String path = \"C:\\\\Users\\\\ons\\\\git\\\\Esprit-PiDev-4Sae6\" ;\n \n \n \n\t\tList<Bill> bill = (List<Bill>) Bill_rep.bill_byparent_kinder(iduser, idkinder);\n\t\tDbo_User this_User = usRep.findById(iduser).orElseThrow( \n \t\t\t()-> new RuntimeException());\n \tthis.bill = this_User.getFullName();\n \tthis.name_user=this_User.getFullName();\n for (Bill b : bill){\n \tLong amout_rest_to_pay = (long) (TOTAL_AMOUNT - b.getAmount());\n \tLong amount_already_payed = (long) b.getAmount();\n \tb.setAmount_payed(String.valueOf(amount_already_payed));\n \tb.setAmount_not_payed(String.valueOf(amout_rest_to_pay));\n \t\n \tb.setGardenpk(b.getGarden().getName());\n \tb.setUserpk(b.getUser().getFirstName() + \" \"+ b.getUser().getLastName());\n }\n \n \n \n //load file and compile it\n File file = ResourceUtils.getFile(\"classpath:userBill.xml\");\n JasperReport jasperReport = JasperCompileManager.compileReport(file.getAbsolutePath());\n JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(bill);\n Map<String, Object> parameters = new HashMap<>();\n parameters.put(\"createdBy\", \"Java Techie\");\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource);\n Date date = new Date();\n Format formatter = new SimpleDateFormat(\"YYYY-MM-dd_hh-mm-ss\");\n if (reportFormat.equalsIgnoreCase(\"pdf\")) { \n \t\n JasperExportManager.exportReportToPdfFile(jasperPrint, path + \"\\\\bill_User\"+\"_\"+this.name_user+\"_\"+ formatter.format(date) +\".pdf\");\n }\n\n return \"report generated in path : \" + path;\n }",
"public void generateReport(TaxChallan bean, HttpServletRequest request, HttpServletResponse response, String reportPath) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tReportDataSet rds = new ReportDataSet();\r\n\t\t\tString type = bean.getReportType();\r\n\t\t\trds.setReportType(type);\r\n\t\t\tString fileName = \"T.D.S.-TCS TAX CHALLAN\"+Utility.getRandomNumber(1000);\r\n\t\t\tString reportPathName=reportPath+fileName+\".\"+type;\r\n\t\t\trds.setFileName(fileName);\r\n\t\t\trds.setPageSize(\"A4\");\r\n\t\t\trds.setReportHeaderRequired(false);\r\n\t\t\trds.setShowPageNo(true);\r\n\t\t\torg.paradyne.lib.ireportV2.ReportGenerator rg=null;\r\n\t\t\t/* Added by Prashant*/\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, session, context, request);\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"################# ATTACHMENT PATH #############\"+reportPath+fileName+\".\"+type);\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, reportPath ,session, context, request);\r\n\t\t\t\trequest.setAttribute(\"reportPath\", reportPath+fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"fileName\", fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"action\", \"TaxChallan_input.action\");\r\n\t\t\t}\r\n\t\t\trg = getReport(rg, bean);\r\n\t\t\trg.process();\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg.createReport(response);\r\n\t\t\t}else{\r\n\t\t\t\t/* Generates the report as attachment*/\r\n\t\t\t\trg.saveReport(response);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static Report createEntity() {\n\t\tReport report = new Report()\n\t\t\t\t.fromIsoCode(DEFAULT_FROM_ISO_CODE)\n\t\t\t\t.toIsoCode(DEFAULT_TO_ISO_CODE)\n\t\t\t\t.total(DEFAULT_TOTAL)\n\t\t\t\t.lastUpdated(DEFAULT_LAST_UPDATED);\n\t\treturn report;\n\t}",
"@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }",
"public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}",
"public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }",
"public void generateReportPluviometer() {\r\n\t\tReportsController reportsController = ControladorContexto\r\n\t\t\t\t.getContextBean(ReportsController.class);\r\n\t\ttry {\r\n\t\t\tconsultPluviometer();\r\n\t\t\treportsController.generateReportPluviometer(pluviometerPojoList,\r\n\t\t\t\t\tyear);\r\n\t\t\tsetStartDateReport(null);\r\n\t\t\tsetEndDateReport(null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"private void buildReport() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Header of report\n stringBuilder.append(\"Games\\tCPU wins\\t\"\n + \"Human wins\\tDraw avg\\tMax rounds\\n\");\n stringBuilder.append(\"=============================================\\n\");\n\n // shows the number of overall games\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the computer won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'CPU'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the human player won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'human'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the average number of draws per game\n stringBuilder.append((int)Float.parseFloat(dbConnection.executeQuery(\"SELECT AVG(draws) FROM game\", \"avg\")));\n stringBuilder.append(\"\\t\");\n // shows the maximum number of rounds played\n stringBuilder.append(dbConnection.executeQuery(\"SELECT MAX(rounds) FROM game\", \"max\"));\n\n // Converts stringBuilder to a String\n reportContent = stringBuilder.toString();\n }",
"public GenreateReportView(WhatsUpUI ui) {\n\t\tthis.ui = ui;\n\t\tuser = (AdminVO) ui.getSession().getAttribute(StringConstants.USER);\n\t\taddComponent(buildLayout());\n\t}",
"private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }",
"public edu.hm.hafner.analysis.parser.jcreport.Report createReport(final ReaderFactory readerFactory)\n throws ParsingException {\n SecureDigester digester = new SecureDigester(JcReportParser.class);\n\n String report = \"report\";\n digester.addObjectCreate(report, edu.hm.hafner.analysis.parser.jcreport.Report.class);\n digester.addSetProperties(report);\n\n String file = \"report/file\";\n digester.addObjectCreate(file, File.class);\n digester.addSetProperties(file, \"package\", \"packageName\");\n digester.addSetProperties(file, \"src-dir\", \"srcdir\");\n digester.addSetProperties(file);\n digester.addSetNext(file, \"addFile\", File.class.getName());\n\n String item = \"report/file/item\";\n digester.addObjectCreate(item, Item.class);\n digester.addSetProperties(item);\n digester.addSetProperties(item, \"finding-type\", \"findingtype\");\n digester.addSetProperties(item, \"end-line\", \"endline\");\n digester.addSetProperties(item, \"end-column\", \"endcolumn\");\n digester.addSetNext(item, \"addItem\", Item.class.getName());\n\n try (Reader reader = readerFactory.create()) {\n return digester.parse(reader);\n }\n catch (IOException | SAXException e) {\n throw new ParsingException(e);\n }\n }",
"public Report() {\n\t\tsuper();\n\t}",
"public String getReportPath();",
"void printReport();",
"public final void createReporter(){\n\n buildWriter();\n buildReporter();\n buildCloser();\n\n Validate.notNull(writer,\"Writer can not be null\");\n Validate.notNull(reporter,\"Reporter can not be null\");\n Validate.notNull(closer,\"Closer can not be null\");\n }",
"public static ReportGenerator createInstance()\r\n {\r\n return new ReportGenerator();\r\n }",
"protected Report()\n {\n super();\n }",
"@Override\n public byte[] getFile(ReportParam param) throws Exception {\n String FILE_PATH = controllerProperties.getPdfPath() + \"HIRATopCustomerSummary.jasper\";\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"sReportCode\", \"\");\n parameters.put(\"sDateDesc\", param.getsDate1() + \" - \" + param.getsDate2());\n parameters.put(\"sRCDesc\", param.getsRC1() + \" - \" + param.getsRC2());\n parameters.put(\"sArticleDesc\", param.getsArticle1() + \" - \" + param.getsArticle2());\n parameters.put(\"sCustomerDesc\", param.getsCustomer1() + \" - \" + param.getsCustomer2());\n parameters.put(\"sRCCustomerBaseDesc\", param.getsRCCustomerBase1() + \" - \" + param.getsRCCustomerBase2());\n parameters.put(\"sUserPrint\", param.getUserPrint());\n\n return reportCreator.reportCreation(FILE_PATH, parameters, callSP(param));\n }",
"public void generarReportePagosAutorizadoss(String sAccionBusqueda,List<PagosAutorizados> pagosautorizadossParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizadosMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PagosAutorizadosMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Pagos Autorizadoses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PagosAutorizadosConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePagosAutorizados=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePagosAutorizados=new JRBeanArrayDataSource(PagosAutorizadosJInternalFrame.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePagosAutorizados);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PagosAutorizadosConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PagosAutorizadosConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PagosAutorizadosBean.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPagosAutorizadosActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public Report getReport();",
"public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }",
"public void getReport(EntranceTestMaster bean, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, ServletContext context) {\n\t\tCrystalReport cr=new CrystalReport();\r\n\t\tString path=\"org\\\\paradyne\\\\rpt\\\\recruitment\\\\EntranceTestMaster.rpt\";\r\n\t\tcr.createReport(request, response, context,session, path, \"\");\r\n\t}",
"@RequestMapping(\"/generateReport\")\n\tpublic String generateReportforLoc(){\n\t\tList<Object[]> data=service.getLocWiseCount();\n\t\tString path=context.getRealPath(\"/\");\n\t\tlocUtil.generatePieChart(path, data);\n\t\tlocUtil.generateBarChart(path, data);\n\t\treturn \"LocReport\";\n\t}",
"private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"ReservationReportSchema reportUrl();",
"abstract public void report();",
"public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMoneda() != null && \n !empresaSesion.getSimboloMoneda().isEmpty()) {\n simbolo_moneda = empresaSesion.getSimboloMoneda();\n } else {\n simbolo_moneda = \"$\";\n }\n \n // Se restauran variables iniciadas\n ReporteUtil.restaurarValores();\n \n String tipoReporte = request.getParameter(\"tipoReporte\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String placa = request.getParameter(\"splaca\"); // id,placa,numInterno\n String mplaca = request.getParameter(\"smplaca_v\");\n String esteDia = request.getParameter(\"esteDia\");\n String tipoArchivo = request.getParameter(\"tipoArchivo\");\n String ruta = request.getParameter(\"sruta\");\n String mruta = request.getParameter(\"smruta_v\");\n String malarma = request.getParameter(\"smalarma_v\");\n String base = request.getParameter(\"sbase\");\n String idLiquidador = request.getParameter(\"sliquidador\");\n String meta = request.getParameter(\"smeta\");\n String mconductor = request.getParameter(\"smconductor_v\"); \n \n boolean dia_actual = verificarDiaActual(fechaInicio, fechaFinal);\n \n// Etiquetas etiquetas = null;\n// etiquetas = LiquidacionBD.searchTags();\n ConfiguracionLiquidacion etiquetas = obtenerEtiquetasLiquidacionPerfil(request);\n \n if (etiquetas != null) {\n ReporteUtil.establecerEtiquetas(etiquetas);\n } \n \n //String reportesPath = \"D:\\\\rdw\\\\\"; \n \n // En caso de estar sobre un SO_WIN, se quita ultimo delimitador\n String reportesPath = getServletContext().getRealPath(\"\");\n if (reportesPath.endsWith(\"\\\\\")) {\n reportesPath = reportesPath.substring(0, reportesPath.length()-1); \n }\n \n Map<String,String> h = new HashMap<String,String>();\n \n h.put(\"tipoReporte\", tipoReporte);\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal); \n h.put(\"tipoArchivo\", tipoArchivo);\n h.put(\"path\", reportesPath); \n \n \n // Informacion de usuario en sesion\n HttpSession session = request.getSession(); \n Usuario u = (Usuario) session.getAttribute(\"login\");\n \n h.put(\"idUsuario\", \"\" + u.getId());\n h.put(\"nombreUsuario\", u.getNombre() +\" \"+ u.getApellido());\n h.put(\"usuarioPropietario\", (u.esPropietario()) ? \"1\" : \"0\");\n \n // Nombre y titulo del reporte\n String nt[] = nombreReporte(tipoReporte, dia_actual).split(\":\");\n \n // Verifica si se considera una o todas las rutas\n // para reportes nivel_ocupacion, despachador, descripcion ruta,\n // cumplimiento ruta por conductor\n int ntp = Integer.parseInt(tipoReporte);\n if (ntp == 5 || ntp == 14 || ntp == 16) {\n if (!ruta.equals(\"0\")) { // Se elige una ruta\n nt[0] += \"_X1Ruta\";\n h.put(\"unaRuta\", \"t\");\n } else {\n h.put(\"unaRuta\", \"f\");\n }\n } \n if (ntp == 25) {\n String una_ruta = (!ruta.equals(\"0\")) ? \"t\" : \"f\";\n h.put(\"unaRuta\", una_ruta);\n }\n \n h.put(\"nombreReporte\", nt[0]);\n h.put(\"tituloReporte\", nt[1]);\n \n // Verifica si es reporte gerencia, gerencia x vehiculo para incluir\n // todos los vehiculos o todas las rutas\n ReporteUtil.incluirTotalidadRutas = false;\n ReporteUtil.incluirTotalidadVehiculos = false;\n ReporteUtil.incluirVehiculosPropietario = false;\n \n if (ntp == 15) {\n ReporteUtil.incluirTotalidadVehiculos = true; \n } else if (ntp == 18) {\n ReporteUtil.incluirTotalidadRutas = true;\n } else if (ntp == 11) {\n if (u.esPropietario()) { \n ReporteUtil.incluirVehiculosPropietario = true;\n } else {\n ReporteUtil.incluirTotalidadVehiculos = true; \n }\n }\n \n // Verifica si es reporte ruta x vehiculo para generar\n // reporte desde codigo\n if (ntp == 3) { \n ReporteUtil.desdeCodigo = true;\n } else {\n ReporteUtil.desdeCodigo = false;\n }\n \n // Verifica si es reporte ruta x vehiculo, vehiculo x ruta, despachador\n // para establecer un dia en parametro fecha y no un rango\n if (ntp == 3 || ntp == 11 || ntp == 16) {\n h.put(\"fechaFinal\", fechaInicio);\n } \n \n // No se necesitan fechas para reporte estadistico y descripcion ruta\n if (ntp == 13 || ntp == 14) {\n h.put(\"fechaInicio\", \"\");\n h.put(\"fechaFinal\", \"\");\n }\n \n // Eleccion de reportes gerencia segun empresa\n if (ntp == 15 || ntp == 18) {\n String empresa = u.getNombreEmpresa();\n String nombre_reporte = h.get(\"nombreReporte\");\n if (ReporteUtil.esEmpresa(empresa, ReporteUtil.EMPRESA_FUSACATAN)) {\n nombre_reporte += \"Fusa\";\n h.put(\"nombreReporte\", nombre_reporte);\n } \n }\n \n // Reportes de liquidacion\n if (ntp == 19 || ntp == 20 || ntp == 21 || ntp == 22) { \n h.put(\"fechaInicio\", fechaInicio + \" 00:00:00\");\n h.put(\"fechaFinal\", fechaFinal + \" 23:59:59\");\n \n //System.out.println(\"---> \"+EtiquetasLiquidacion.getEtq_total1() );\n /*SI EL REPORTE ES LIQUIDACION POR LIQUIDADOR SE MODIFICA EL NOMBRE SI LA EMPRESA ES DIFERENTE DE NEIVA*/\n if (ntp == 21) {\n if ((u.getNombreEmpresa().equalsIgnoreCase(\"FUSACATAN\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"TIERRA GRATA\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"Tierragrata\"))) {\n h.put(\"nombreReporte\", \"Reporte_LiquidacionXLiquidador_new_dcto\"); \n }\n }\n \n if (tipoArchivo.equals(\"w\")) {\n Usuario liquidador = UsuarioBD.getById(Restriction.getNumber(idLiquidador));\n if (liquidador != null) { \n String nom = liquidador.getNombre();\n String ape = liquidador.getApellido(); \n h.put(\"idUsuarioLiquidador\", idLiquidador);\n h.put(\"nombresUsuarioLiquidador\", ape + \" \" + nom);\n }\n } else {\n h.put(\"idUsuario\", idLiquidador);\n }\n } \n \n if (ntp == 23 || ntp == 24 || ntp == 25) {\n h.put(\"meta\", \"\" + meta);\n if (tipoArchivo.equals(\"r\")) {\n ReporteUtil.reporteWeb = true;\n }\n }\n \n if (ntp == 26 || ntp == 27) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n ReporteUtil.reporteWeb = true;\n } \n \n // ======================= Verificacion de campos ======================\n \n // Id, placa, numeroInterno vehiculo\n if (placa.indexOf(\",\") >= 0) {\n h.put(\"idVehiculo\", placa.split(\",\")[0]);\n h.put(\"placa\", placa.split(\",\")[1]);\n h.put(\"numInterno\", placa.split(\",\")[2]);\n h.put(\"capacidad\", placa.split(\",\")[3]);\n ReporteUtil.incluirVehiculo = true;\n } else\n ReporteUtil.incluirVehiculo = false;\n \n // Id de multiples vehiculos\n if (mplaca != \"\" || mplaca.indexOf(\",\") >= 0) {\n h.put(\"strVehiculos\", mplaca);\n h.put(\"strVehiculosPlaca\", id2placa(mplaca));\n ReporteUtil.incluirVehiculos = true;\n } else\n ReporteUtil.incluirVehiculos = false;\n \n // Id ruta y nombre ruta\n if (ruta.indexOf(\",\") >= 0) {\n String arrayRuta[] = ruta.split(\",\");\n h.put(\"idRuta\", arrayRuta[0]);\n h.put(\"nombreRuta\", arrayRuta[1]);\n ReporteUtil.incluirRuta = true;\n } else \n ReporteUtil.incluirRuta = false;\n \n // Id ruta \n if (mruta != \"\" || mruta.indexOf(\",\") >= 0) {\n h.put(\"strRutas\", mruta);\n ReporteUtil.incluirRutas = true;\n } else\n ReporteUtil.incluirRutas = false;\n \n // Id alarma\n if (malarma != \"\" || malarma.indexOf(\",\") >= 0) {\n h.put(\"strAlarmas\", malarma);\n ReporteUtil.incluirAlarma = true;\n } else \n ReporteUtil.incluirAlarma = false; \n \n // Id base, nombre\n if (base.indexOf(\",\") >= 0) {\n String arrayBase[] = base.split(\",\");\n h.put(\"idBase\", arrayBase[0]);\n h.put(\"nombreBase\", arrayBase[1]);\n ReporteUtil.incluirBase = true;\n } else \n ReporteUtil.incluirBase = false; \n \n // Se verifica y establece parametros de empresa\n Empresa emp = EmpresaBD.getById(u.getIdempresa()); \n if (emp != null) {\n h.put(\"nombreEmpresa\", emp.getNombre());\n h.put(\"nitEmpresa\", emp.getNit());\n h.put(\"idEmpresa\", \"\" + emp.getId());\n } else {\n request.setAttribute(\"msg\", \"* Usuario no tiene relación y/o permisos adecuados con la empresa.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n int id_ruta = Restriction.getNumber(h.get(\"idRuta\")); \n String pplaca = \"'\" + h.get(\"placa\") + \"'\";\n \n // Se verifica si existe despacho para cruzar sus datos,\n // en caso contrario se extrae los datos unicamente desde tabla info. registradora\n if (ntp == 3) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, pplaca)) {\n ReporteUtil.desdeCodigo = true; \n h.put(\"nombreReporte\", \"reporte_RutaXVehiculo2\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n ReporteUtil.desdeCodigo = false; // Reporte con cruce despacho es dinamico\n h.put(\"cruzarDespacho\", \"1\"); \n }\n }\n if (ntp == 11) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, id_ruta)) {\n h.put(\"nombreReporte\", \"reporte_VehiculosXRuta\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n h.put(\"cruzarDespacho\", \"1\");\n }\n }\n \n if (ntp == 30) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n h.put(\"strConductores\", mconductor);\n ReporteUtil.reporteWeb = true;\n \n // Se verifica que exista una configuracion de desempeno activa\n ConfCalificacionConductor ccc = CalificacionConductorBD.confCalificacionConductor();\n if (ccc == null) {\n request.setAttribute(\"msg\", \"* No existe ninguna configuración de desempeño registrada. Por favor registre una.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"result_error\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n }\n \n // Creacion de reporte\n JasperPrint print = null;\n if (tipoArchivo.equals(\"r\")) {\n \n // Reporte de solo lectura << PDF / Web >>\n ReporteUtil rpt;\n \n if (ReporteUtil.reporteWeb) { \n ReporteWeb rptw = new ReporteWeb(h, request, response);\n return rptw.generarReporteWeb(ntp); \n \n } else if (ReporteUtil.desdeCodigo) {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporteDesdeCodigo(Integer.parseInt(h.get(\"tipoReporte\")), simbolo_moneda);\n \n } else {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporte(simbolo_moneda);\n }\n \n } else {\n \n // Reporte editable << XLS >>\n ReporteUtilExcel rue = new ReporteUtilExcel();\n MakeExcel rpte = rue.crearReporte(ntp, dia_actual, h, u, etiquetas);\n \n // Restablece placa de reportes que no necesitan\n restablecerParametro(\"placa\", ntp, h);\n String splaca = h.get(\"placa\");\n splaca = (splaca == null || splaca == \"\") ? \"\" : \"_\" + splaca;\n String nombreArchivo = h.get(\"nombreReporte\") + splaca + \".xls\";\n \n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n \n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close();\n \n return \"/app/reportes/generaReporte.jsp\";\n }\n \n // Impresion de reporte de solo lectura PDF\n if (print != null) {\n \n try { \n // Se comprueba existencia de datos en el reporte obtenido\n boolean hayDatos = true;\n List<JRPrintPage> pp = print.getPages(); \n if (pp.size() > 0) {\n JRPrintPage ppp = pp.get(0);\n if (ppp.getElements().size() <= 0) \n hayDatos = false; \n } else \n hayDatos = false;\n \n if (!hayDatos) {\n request.setAttribute(\"msg\", \"* Ningún dato obtenido en el reporte.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"data_reporte\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n byte[] bytes = JasperExportManager.exportReportToPdf(print);\n \n // Inicia descarga del reporte\n response.setContentType(\"application/pdf\");\n response.setContentLength(bytes.length);\n ServletOutputStream outStream = response.getOutputStream();\n outStream.write(bytes, 0, bytes.length);\n outStream.flush();\n outStream.close();\n \n } catch (JRException e) {\n System.err.println(e);\n } catch (IOException e) {\n System.err.println(e);\n } \n }\n return \"/app/reportes/generaReporte.jsp\";\n }",
"private void initReportWriter() {\n\t\tfinal XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\r\n\r\n\t\t// Create an XML stream writer\r\n\t\tfinal File reportFile = new File(getOutputDirectory(), \"report.xml\");\r\n\t\ttry {\r\n\t\t\treportWriter = xmlof.createXMLStreamWriter(new FileWriter(reportFile));\r\n\r\n\t\t} catch (final XMLStreamException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (final IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public org.paradyne.lib.ireportV2.ReportGenerator getReport(org.paradyne.lib.ireportV2.ReportGenerator rg, TaxChallan bean){\r\n\t\ttry {\r\n\t\t\tint toYear=Integer.parseInt(bean.getYear().substring(2))+1;\r\n\t\t\tString toYearStr =\"\";\r\n\t\t\tif(toYear < 10){\r\n\t\t\t\ttoYearStr = \"0\"+toYear;\r\n\t\t\t}else {\r\n\t\t\t\ttoYearStr =\"\"+toYear;\r\n\t\t\t}\r\n\t\t\tString assesmentYear = bean.getYear()+ \"-\"+ toYearStr;\r\n\t\t\tTableDataSet subtitleName = new TableDataSet();\r\n\t\t\tObject obj[][] = new Object[1][3];\r\n\t\t\t\r\n\t\t\tobj[0][0] = \"* Important : Please see notes \\noverleaf before filling up the challan\";\r\n\t\t\tobj[0][1] = \"T.D.S./TCS TAX CHALLAN\";\r\n\t\t\tobj[0][2] = \"Single Copy (to be sent to the ZAO)\";\r\n\t\t\tsubtitleName.setData(obj);\r\n\t\t\tsubtitleName.setCellAlignment(new int[] { 0, 1, 0 });\r\n\t\t\tsubtitleName.setCellWidth(new int[] { 30, 40, 30 });\r\n\t\t\tsubtitleName.setBorderDetail(3);\r\n\t\t\tsubtitleName.setHeaderTable(true);\r\n\t\t\trg.addTableToDoc(subtitleName);\r\n\t\t\t\r\n\t\t\tTableDataSet heading1 = new TableDataSet();\r\n\t\t\theading1.setData(new Object[][] { {\r\n\t\t\t\t\t\t\t\"CHALLAN NO./ \\nITNS \\n281\\n\\n\"+bean.getChallanNo(),\r\n\t\t\t\t\t\t\t\"Tax Applicable (Tick One)*\\nTAX DEDUCTED/COLLECTED AT SOURCE FROM\\n\\n(0020) COMPANY [__] \\t\\t\\t\\t(0021) NON-COMPANY [__] \\n\\n DEDUCTEES \\t\\t\\t\\t\\t\\t\\t DEDUCTEES\",\r\n\t\t\t\t\t\t\t\"Assesment Year \\n\\n\"+assesmentYear }});\r\n\t\t\theading1.setCellAlignment(new int[] { 1, 1, 1 });\r\n\t\t\theading1.setCellWidth(new int[] { 20, 60, 20 });\r\n\t\t\theading1.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(heading1);\r\n\t\t\t\r\n\t\t\tObject divAddress[][]=getSqlModel().getSingleResult(\"SELECT HRMS_DIVISION.DIV_NAME, NVL(HRMS_DIVISION.DIV_ADDRESS1,' '), NVL(HRMS_DIVISION.DIV_ADDRESS2,' '), NVL(HRMS_DIVISION.DIV_ADDRESS3,' '), NVL(HRMS_DIVISION.DIV_TANNO,' '), \"\r\n\t\t\t\t\t+\" HRMS_DIVISION.DIV_TELEPHONE, HRMS_DIVISION.DIV_PINCODE FROM HRMS_DIVISION WHERE HRMS_DIVISION.DIV_ID=\"+bean.getDivId());\r\n\t\t\t\r\n\t\t\tObject [][] empDataObj = new Object[4][1];\r\n \t\tempDataObj[0][0] = \"Tax Deduction Account No. (T.A.N.)\\n\"+divAddress[0][4];;\r\n \t\tempDataObj[1][0] = \"Full Name\\n\"+divAddress[0][0];\r\n \t\tempDataObj[2][0] = \"Complete Address with City & State\\n\"+divAddress[0][1]+\"\\n\"+\"\"+divAddress[0][2]+\"\\n\"+\"\"+divAddress[0][3];\r\n \t\tempDataObj[3][0] = \"Tel. No. : \"+checkNull(\"\"+divAddress[0][5])+\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n \t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Pin : \"+checkNull(\"\"+divAddress[0][6]);\r\n \t\t\r\n \t\t\r\n \t\tTableDataSet empData = new TableDataSet();\r\n\t\t\tempData.setData(empDataObj);\r\n\t\t\tempData.setCellAlignment(new int[] { 0 });\r\n\t\t\tempData.setCellWidth(new int[] { 100 });\r\n\t\t\tempData.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(empData);\r\n \t\t\r\n \t\tTableDataSet table1 = new TableDataSet();\r\n \t\ttable1.setData(new Object[][] { { \"Type of Payment\", \"Code * \" } });\r\n \t\ttable1.setCellAlignment(new int[] { 0, 2});\r\n \t\ttable1.setCellWidth(new int[] { 50, 50 });\r\n \t\ttable1.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tTableDataSet table2 = new TableDataSet();\r\n\t\t\ttable2.setData(new Object[][] { {\"(Tick One)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n\t\t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(Please see overleaf)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tTDS/TCS Payable by Taxpayer\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t (200)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t TDS/TCS Regular Assessment (Raised by I.T. Deptt.)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(400)\\n\"}});\r\n\t\t\ttable2.setCellAlignment(new int[] {0});\r\n\t\t\ttable2.setCellWidth(new int[] { 100 });\r\n\t\t\ttable2.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map2 = rg.joinTableDataSet(table1, table2, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table3 = new TableDataSet();\r\n\t\t\ttable3.setData(new Object[][] { { \"DETAILS OF PAYMENTS\",\"Amount (in Rs. Only)\" }});\r\n\t\t\ttable3.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable3.setCellWidth(new int[] { 50, 50});\r\n\t\t\ttable3.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map3 = rg.joinTableDataSet(map2, table3, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table4 = new TableDataSet();\r\n\t\t\ttable4.setData(new Object[][] { {\"Income Tax\",bean.getTax()},\r\n\t\t\t\t\t{\"Surcharge\",bean.getSurcharge()},\r\n\t\t\t\t\t{\"Education Cess\",bean.getEduCess()},\r\n\t\t\t\t\t{\"Interest\",bean.getIntAmt()},\r\n\t\t\t\t\t{\"Penalty\",bean.getOthrAmt()},\r\n\t\t\t\t\t{\"Total\",bean.getTotalTax()},\r\n\t\t\t\t\t{\"Total (in words)\",\"\"}});\r\n\t\t\ttable4.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable4.setCellWidth(new int[] { 30, 70});\r\n\t\t\ttable4.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map4 = rg.joinTableDataSet(map3, table4, false, 100);\r\n\t\t\t\r\n\t\t\tString numberString [] = convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\",\"\"))).split(\",\");\r\n\t\t\t\r\n\t\t\tObject totalInWord [][]= new Object [2][6];\r\n\t\t\ttotalInWord [0][0] = \"CRORE\";\r\n\t\t\ttotalInWord [0][1] = \"LACS\";\r\n\t\t\ttotalInWord [0][2] = \"THOUSAND\";\r\n\t\t\ttotalInWord [0][3] = \"HUNDRED\";\r\n\t\t\ttotalInWord [0][4] = \"TENS\";\r\n\t\t\ttotalInWord [0][5] = \"UNITS\";\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < numberString.length; i++) {\r\n\t\t\t\tif(numberString[i].equalsIgnoreCase(\"zero\")){\r\n\t\t\t\t\ttotalInWord [1][i] = \"Nil\";\r\n\t\t\t\t} else { \r\n\t\t\t\t\ttotalInWord [1][i] = numberString[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTableDataSet table5 = new TableDataSet();\r\n\t\t\ttable5.setData(totalInWord);\r\n\t\t\ttable5.setCellAlignment(new int[] { 1, 1, 1, 1, 1, 1});\r\n\t\t\ttable5.setCellWidth(new int[] { 15, 15, 15, 15, 15, 15});\r\n\t\t\ttable5.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map5 = rg.joinTableDataSet(map4, table5, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table6 = new TableDataSet();\r\n\t\t\ttable6.setData(new Object[][] { {\"Paid in Cash/Debit to A/c /Cheque No.\"+bean.getChequeNo(), \"\", \"Dated\", bean.getChequeDate() }});\r\n\t\t\ttable6.setCellAlignment(new int[] { 1, 1, 1, 1});\r\n\t\t\ttable6.setCellWidth(new int[] { 50, 15, 20, 15});\r\n\t\t\ttable6.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map6 = rg.joinTableDataSet(map5, table6, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table7 = new TableDataSet();\r\n\t\t\ttable7.setData(new Object[][] { {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable7.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable7.setCellWidth(new int[] { 50,50});\r\n\t\t\ttable7.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map7 = rg.joinTableDataSet(map6, table7, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table8 = new TableDataSet();\r\n\t\t\ttable8.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}});\r\n\t\t\ttable8.setCellAlignment(new int[] { 2});\r\n\t\t\ttable8.setCellWidth(new int[] { 100 });\r\n\t\t\ttable8.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map8 = rg.joinTableDataSet(map7, table8, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table9 = new TableDataSet();\r\n\t\t\ttable9.setData(new Object[][] { {\"Date\", \"\"}});\r\n\t\t\ttable9.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable9.setCellWidth(new int[] { 60, 40});\r\n\t\t\ttable9.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map9 = rg.joinTableDataSet(map8, table9, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table10 = new TableDataSet();\r\n\t\t\ttable10.setData(new Object[][] { {\"Signature of person making payment\"}});\r\n\t\t\ttable10.setCellAlignment(new int[] { 2 });\r\n\t\t\ttable10.setCellWidth(new int[] { 100});\r\n\t\t\ttable10.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map10 = rg.joinTableDataSet(map9, table10, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table11 = new TableDataSet();\r\n\t\t\ttable11.setData(new Object[][] { {\"Taxpayers Counterfoil (To be filled up by taxpayer)\"}});\r\n\t\t\ttable11.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable11.setCellWidth(new int[] { 100});\r\n\t\t\ttable11.setBodyFontDetails(Font.FontFamily.HELVETICA, 8, Font.BOLD, new BaseColor(0, 0, 0));\r\n\t\t\ttable11.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map11 = rg.joinTableDataSet(map10, table11, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table12 = new TableDataSet();\r\n\t\t\ttable12.setData(new Object[][] { {\"TAN \"+divAddress[0][4]+\"\\n\\nReceived from \"+divAddress[0][0]}});\r\n\t\t\ttable12.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable12.setCellWidth(new int[] { 100});\r\n\t\t\ttable12.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map12 = rg.joinTableDataSet(map11, table12, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table13 = new TableDataSet();\r\n\t\t\ttable13.setData(new Object[][] { {\"(Name)\"}});\r\n\t\t\ttable13.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable13.setCellWidth(new int[] { 100 });\r\n\t\t\ttable13.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map13 = rg.joinTableDataSet(map12, table13, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table14 = new TableDataSet();\r\n\t\t\ttable14.setData(new Object[][] { {\"Cash/ Debit to A/c /Cheque No. :\"+bean.getChequeNo()+\"For Rs.\"+bean.getTotalTax().replace(\".00\", \"\")+\"/-\"}});\r\n\t\t\ttable14.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable14.setCellWidth(new int[] { 100 });\r\n\t\t\ttable14.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map14 = rg.joinTableDataSet(map13, table14, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table15 = new TableDataSet();\r\n\t\t\ttable15.setData(new Object[][] { {\"Rs. (in words)\", Utility.convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\", \"\")))}, {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable15.setCellAlignment(new int[] { 0, 1 });\r\n\t\t\ttable15.setCellWidth(new int[] { 30, 70 });\r\n\t\t\ttable15.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map15 = rg.joinTableDataSet(map14, table15, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table16 = new TableDataSet();\r\n\t\t\ttable16.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}, \r\n\t\t\t\t\t{\"Company/Non-Company Deductees\"}, \r\n\t\t\t\t\t{\"on account of Tax Deducted at Source (TDS)/Tax Collected at Source (TCS) from____(Fill up Code)\"},\r\n\t\t\t\t\t{\"(Strike out whichever is not applicable)\"}});\r\n\t\t\ttable16.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable16.setCellWidth(new int[] { 100 });\r\n\t\t\ttable16.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map16 = rg.joinTableDataSet(map15, table16, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table17 = new TableDataSet();\r\n\t\t\ttable17.setData(new Object[][] { {\"\\nfor the Assessment Year : \"+assesmentYear}});\r\n\t\t\ttable17.setCellAlignment(new int[] { 0});\r\n\t\t\ttable17.setCellWidth(new int[] { 100 });\r\n\t\t\ttable17.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map17 = rg.joinTableDataSet(map16, table17, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table18 = new TableDataSet();\r\n\t\t\ttable18.setData(new Object[][] { {\"\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tFOR USE IN RECEIVING BANK \\n\\n\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDebit to A/c/Cheque credited on\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tDD-MM-YY\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable18.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable18.setCellWidth(new int[] {100});\r\n\t\t\ttable18.setBorderDetail(3);\r\n\r\n\t\t\tTableDataSet table19 = new TableDataSet();\r\n\t\t\ttable19.setData(new Object[][] { {\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable19.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable19.setCellWidth(new int[] {100});\r\n\t\t\ttable19.setBorderDetail(3);\r\n\t\t\t//rg.addTableToDoc(table11);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map18 = rg.joinTableDataSet(table18, table19, false, 100);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map19 = rg.joinTableDataSet(map17, map18, true, 70);\r\n\t\t\t\r\n\t\t\trg.addTableToDoc(map19);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rg;\r\n\t}",
"public void generarReporteGanancia(String destino,String fechainicial,String fechafinal)\n {\n \n if(destino.equals(\"Todos\"))\n {\n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentasGeneral.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Ventas Credito/Contado\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n }\n else\n { \n \n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentas.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Insumos\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n } \n }",
"public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public static IReport createReport(File f) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(f));\r\n }",
"private Report createFullReport(String message, Type type) {\n return Report.create(message, type);\n }",
"public void generarReportePlantillaFacturas(String sAccionBusqueda,List<PlantillaFactura> plantillafacturasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFacturaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PlantillaFacturaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Plantilla Facturas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PlantillaFacturaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePlantillaFactura=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePlantillaFactura=new JRBeanArrayDataSource(PlantillaFacturaJInternalFrame.TraerPlantillaFacturaBeans(plantillafacturasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePlantillaFactura);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PlantillaFacturaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PlantillaFacturaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PlantillaFacturaBean.TraerPlantillaFacturaBeans(plantillafacturasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPlantillaFacturaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }",
"@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}",
"public String getReport() {\n return reportDoc.toString();\n }",
"public synchronized static ExtentReports getReporter(String filePath) {\n\t\t if (report == null) {\r\n\t\t \treport = new ExtentReports(path.concat(\"Report\\\\Purchase_Admin_Report.html\"));\r\n\t\t \r\n\t\t report\r\n\t\t .addSystemInfo(\"Host Name\", \"Priti\") //Environment Setup For Report\r\n\t\t .addSystemInfo(\"Environment\", \"QA\");\r\n\t\t }\r\n\t\t \r\n\t\t return report;\r\n\t\t}",
"public Report build() {\n return new Report(this);\n }",
"private void generateIncomingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Incoming Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallIncomings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"void printReport(Object unit);",
"public String createCoverageReport() throws Exception{\n\t\tList<TestSuite> suites = getSuites();\t\n\t\treturn priorj.createCoverageReport(suites);\n\t}",
"@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }",
"public void generarReporteCostoGastoImpors(String sAccionBusqueda,List<CostoGastoImpor> costogastoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CostoGastoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Costo Gasto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CostoGastoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCostoGastoImporLogic costogastoimporLogicAuxiliar=new CostoGastoImporLogic();\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setDatosCliente(costogastoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setCostoGastoImpors(costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyCostoGastoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporsParaReportes=costogastoimporLogicAuxiliar.getCostoGastoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (CostoGastoImpor costogastoimpor:costogastoimporsParaReportes) {\r\n\t\t\t\t\t//\tcostogastoimporLogic.deepLoad(costogastoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//costogastoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpor\", reportFileDetalleLiquidacionImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCostoGastoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCostoGastoImpor=new JRBeanArrayDataSource(CostoGastoImporJInternalFrame.TraerCostoGastoImporBeans(costogastoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCostoGastoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CostoGastoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CostoGastoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CostoGastoImporBean.TraerCostoGastoImporBeans(costogastoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCostoGastoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"@Override\n public Map<String, OEEReport> build() {\n return generators.entrySet().stream().collect(Collectors.toMap(\n entry -> entry.getKey(),\n entry -> entry.getValue().getReport()\n ));\n }",
"private void openUserReporttWindow() {\r\n\t\tnew JFrameReport();\r\n\t}",
"@Override\n public Report getReport() {\n return null;\n }",
"public void createReport(Report report) {\n view.onProgress(true);\n apiInterface.newReport(report.getNumber(), report.isNo_telp(), report.isNo_rek())\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new SingleObserver<ReportItem>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onSuccess(ReportItem reportItem) {\n if (reportItem != null) {\n view.onReportResult(reportItem.toReportparcel(), true);\n }\n view.onProgress(false);\n }\n\n @Override\n public void onError(Throwable e) {\n view.onError(e.getMessage());\n view.onProgress(false);\n }\n });\n }",
"private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}",
"public void generarReporteTipoDireccions(String sAccionBusqueda,List<TipoDireccion> tipodireccionsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccionMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDireccionMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Direcciones\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDireccionConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(Direccion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDireccionLogic tipodireccionLogicAuxiliar=new TipoDireccionLogic();\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setDatosCliente(tipodireccionLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setTipoDireccions(tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDireccionWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionsParaReportes=tipodireccionLogicAuxiliar.getTipoDireccions();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDireccion tipodireccion:tipodireccionsParaReportes) {\r\n\t\t\t\t\t//\ttipodireccionLogic.deepLoad(tipodireccion, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodireccionLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDireccion = AuxiliarReportes.class.getResourceAsStream(\"DireccionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_direccion\", reportFileDireccion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDireccion=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDireccion=new JRBeanArrayDataSource(TipoDireccionJInternalFrame.TraerTipoDireccionBeans(tipodireccionsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDireccion);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDireccionConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDireccionConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDireccionBean.TraerTipoDireccionBeans(tipodireccionsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDireccionActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"private void generateReport( Locale locale, LinkcheckModel linkcheckModel )\n {\n getSink().head();\n getSink().text( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.name\" ) );\n getSink().head_();\n \n getSink().body();\n \n if ( linkcheckModel == null )\n {\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.empty\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n \n return;\n }\n \n // Overview\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.overview\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n //Statistics\n generateSummarySection( locale, linkcheckModel );\n \n //Details\n generateDetailsSection( locale, linkcheckModel );\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n }",
"public String report() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\t String[] headers = { \"Sr no\", \"Code \", \"Name\", \"Address\",\r\n\t\t\t\t\t\"Contact No\", \"E-mail\", \"City\", \"State\", \"Pin Code\" };\r\n\t\tmodel.report(vendorMaster, request,response,headers);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\r\n\t}",
"public void generarReporteUtilidadTipoPrecios(String sAccionBusqueda,List<UtilidadTipoPrecio> utilidadtipopreciosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"UtilidadTipoPrecioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Utilidad Tipo Precioes\");\t\t\r\n\t\tparameters.put(\"busquedapor\", UtilidadTipoPrecioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceUtilidadTipoPrecio=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceUtilidadTipoPrecio=new JRBeanArrayDataSource(UtilidadTipoPrecioJInternalFrame.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceUtilidadTipoPrecio);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+UtilidadTipoPrecioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+UtilidadTipoPrecioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(UtilidadTipoPrecioBean.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoUtilidadTipoPrecioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public static ExtentReports extentReportGenerator() \n\t{\n\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\";\n//\tExtentSparkReporter reporter=new ExtentSparkReporter(path);\n//\t\treporter.config().setEncoding(\"utf-8\");\n//\t\treporter.config().setReportName(\"Automation Test Results\");\n//\t\treporter.config().setDocumentTitle(\"Automation Reports\");\n//\t\treporter.config().setTheme(Theme.STANDARD);\n\t\t\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path);\t\n\t\thtmlReporter.setAppendExisting(true);\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"Automation Reports\");\n\t\thtmlReporter.config().setReportName(\"Automation Test Results\");\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\n\t\tLocale.setDefault(Locale.ENGLISH);\n\t\t\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"Tester\", \"Sonu\");\n\t\t\n\t\t\n\t\t\n\t\treturn extent;\n\t}",
"@Test\n\tpublic void generateOrderTakerSummaryReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Order Taker Summary Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }",
"private void contactReport() {\n reportText.appendText(\"Report of appointments per Contact\\n\\n\");\n for (Contact contact: Data.getContacts()) {\n\n reportText.appendText(\"\\n\\nContact:\" + contact.getContactName() + \"\\n\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getContact() == contact.getContactID()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n }",
"private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}",
"public void generarReporteFacturaPuntoVentas(String sAccionBusqueda,List<FacturaPuntoVenta> facturapuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturaPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Factura Punto Ventas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturaPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(FormaPagoPuntoVenta.class));\r\n\t\t\tclasses.add(new Classe(DetalleFacturaPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tFacturaPuntoVentaLogic facturapuntoventaLogicAuxiliar=new FacturaPuntoVentaLogic();\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setDatosCliente(facturapuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setFacturaPuntoVentas(facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyFacturaPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventasParaReportes=facturapuntoventaLogicAuxiliar.getFacturaPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (FacturaPuntoVenta facturapuntoventa:facturapuntoventasParaReportes) {\r\n\t\t\t\t\t//\tfacturapuntoventaLogic.deepLoad(facturapuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//facturapuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFormaPagoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"FormaPagoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_formapagopuntoventa\", reportFileFormaPagoPuntoVenta);\r\n\r\n\t\t\tInputStream reportFileDetalleFacturaPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"DetalleFacturaPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallefacturapuntoventa\", reportFileDetalleFacturaPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturaPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturaPuntoVenta=new JRBeanArrayDataSource(FacturaPuntoVentaJInternalFrame.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturaPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturaPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturaPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturaPuntoVentaBean.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturaPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }",
"@Override\r\n\tprotected File generateReportFile() {\r\n\r\n\t\tFile tempFile = null;\r\n\r\n\t\tFileOutputStream fileOut = null;\r\n\t\ttry {\r\n\t\t\ttempFile = File.createTempFile(\"tmp\", \".\" + this.exportType.getExtension());\r\n\t\t\tfileOut = new FileOutputStream(tempFile);\r\n\t\t\tthis.workbook.write(fileOut);\r\n\t\t} catch (final IOException e) {\r\n\t\t\tLOGGER.warn(\"Converting to XLS failed with IOException \" + e);\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tif (tempFile != null) {\r\n\t\t\t\ttempFile.deleteOnExit();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (fileOut != null) {\r\n\t\t\t\t\tfileOut.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (final IOException e) {\r\n\t\t\t\tLOGGER.warn(\"Closing file to XLS failed with IOException \" + e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tempFile;\r\n\t}",
"public String report() {\r\n\t\tsession2 = ServletActionContext.getRequest().getSession();\r\n\t\tlogger.info(session2);\r\n\t\tif (session2 == null || session2.getAttribute(\"login\") == null) {\r\n\t\t\tlogger.error(\"if=====session error reporting===='\");\r\n\t\t\treturn LOGIN;\r\n\t\t} else {\r\n\t\t\tfactory = LoginAndSession.getFactory();\r\n\t\t\tdao_userWise = (Productivity_user_wiseDao) factory.getBean(\"d27\");\r\n\t\t\tdao_propwise = (Productivity_property_wiseDao) factory.getBean(\"d29\");\r\n\t\t\tpcw = (Productivity_client_wiseDao) factory.getBean(\"d30\");\r\n\t\t\tif (colorRadio.equalsIgnoreCase(\"red\")) {\r\n\r\n\t\t\t\t// for all user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , mu.name\"\r\n\t\t\t\t\t\t\t\t\t+ \" , puw.facebook, puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain , puw.user_id \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_user_wise puw, Markscan_users mu where puw.curr_date \"\r\n\t\t\t\t\t\t\t\t\t+ \" between '\" + date + \"' and '\" + date1 + \"' and mu.id= puw.user_id\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tcud = (Crawle_url2Dao) factory.getBean(\"dash\");\r\n\r\n\t\t\t\t\t// lst1= cud.viewRecord(\"select DISTINCT count(domain_name)\r\n\t\t\t\t\t// ,date(created_on), link_logger from crawle_url3 where\r\n\t\t\t\t\t// user_id= 75 and created_on >'2017-06-01' and\r\n\t\t\t\t\t// link_logger=1 group by date(created_on)\")\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setProj_name(obj[8].toString()); // user_name\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[14]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[15]);\r\n\t\t\t\t\t\tdata.setUser_id((Integer) obj[16]);\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" ppw.created_on = '\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t\t+ \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" productivi0_.created_on='\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t+ \"' and \" + \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(client_names);\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tobj0=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tobj1=null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\t\t\tlst = null;\r\n\t\t\t\t\t\t\tfactory=null;\r\n\t\t\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"allEmpReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"green\")) {\r\n\t\t\t\t// for single user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , puw.facebook,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain from \" + \" Productivity_user_wise puw where puw.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and puw.curr_date between\" + \" '\" + date + \"' and '\" + date1 + \"'\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[14]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" ppw.created_on = '\" + obj[0].toString() + \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw= null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"empReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"blue\")) {\r\n\t\t\t\t// for client wise\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tlst = pcw.viewRecord(\"select pcw.curr_date, pcw.source_link, pcw.infringing_link, pcw.youtube,\"\r\n\t\t\t\t\t\t\t+ \" pcw.social_media, pcw.white_list, pcw.grey_list , pcw.facebook, pcw.instagram, pcw.twitter,\"\r\n\t\t\t\t\t\t\t+ \" pcw.vk, pcw.periscope, pcw.source_domain, pcw.infringing_domain from Productivity_client_wise \"\r\n\t\t\t\t\t\t\t+ \" pcw where pcw.curr_date between '\" + date + \"' and '\" + date1 + \"' and pcw.client_id=\"\r\n\t\t\t\t\t\t\t+ clientname);\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[7] + (Integer) obj[8] + (Integer) obj[9] + (Integer) obj[10]\r\n\t\t\t\t\t\t\t\t+ (Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[13]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT mu.name, ppw.created_on ,ppw.user_id from Productivity_property_wise ppw ,\"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Markscan_users mu where mu.id= ppw.user_id and ppw.client_id = \"\r\n\t\t\t\t\t\t\t\t\t\t+ clientname + \" and ppw.created_on='\" + obj[0].toString() + \"' \");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\" select sum( productivi0_.source_count),\"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.facebook),sum(productivi0_.instagram),sum(productivi0_.twitter) \"\r\n\t\t\t\t\t\t\t\t\t+ \" ,sum(productivi0_.vk),sum( productivi0_.periscope) from \"\r\n\t\t\t\t\t\t\t\t\t+ \" Productivity_property_wise productivi0_, Markscan_users markscan_u1_ where \"\r\n\t\t\t\t\t\t\t\t\t+ \" markscan_u1_.id=productivi0_.user_id and productivi0_.client_id= \" + clientname\r\n\t\t\t\t\t\t\t\t\t+ \" and productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \" productivi0_.user_id=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj= null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tobj=null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"clientReport\";\r\n\t\t\t}\r\n\r\n\t\t\tfactory=null;\r\n\t\t\tdao_userWise=null;\r\n\t\t\tdao_propwise=null;\r\n\t\t\tsession2=null;\r\n\t\t\tSystem.gc();\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t}",
"public String generateReport(final String merchantUuid, final Integer days, final Integer offset);",
"public void generarReporteLiquidacionImpuestoImpors(String sAccionBusqueda,List<LiquidacionImpuestoImpor> liquidacionimpuestoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LiquidacionImpuestoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Liquidacion Impuesto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LiquidacionImpuestoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpuestoImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLiquidacionImpuestoImporLogic liquidacionimpuestoimporLogicAuxiliar=new LiquidacionImpuestoImporLogic();\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setDatosCliente(liquidacionimpuestoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setLiquidacionImpuestoImpors(liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyLiquidacionImpuestoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporsParaReportes=liquidacionimpuestoimporLogicAuxiliar.getLiquidacionImpuestoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LiquidacionImpuestoImpor liquidacionimpuestoimpor:liquidacionimpuestoimporsParaReportes) {\r\n\t\t\t\t\t//\tliquidacionimpuestoimporLogic.deepLoad(liquidacionimpuestoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpuestoImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImpuestoImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpuestoimpor\", reportFileDetalleLiquidacionImpuestoImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLiquidacionImpuestoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLiquidacionImpuestoImpor=new JRBeanArrayDataSource(LiquidacionImpuestoImporJInternalFrame.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLiquidacionImpuestoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LiquidacionImpuestoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LiquidacionImpuestoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LiquidacionImpuestoImporBean.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLiquidacionImpuestoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public static ExtentReports getReportInstance() {\n\t\tif (report == null) {\n\n\t\t\tString reportName = \"HTMLreport_\" + getTimeStamp() + \".html\";\n\t\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\") +\n\t\t\t\t\t\"\\\\src\\\\test\\\\resources\\\\test_result\\\\\" + reportName);\n\t\t\n\t\t\treport = new ExtentReports();\n\t\t\treport.attachReporter(htmlReporter);\n\n\t\t\treport.setSystemInfo(\"OS\", \"Windows 10\");\n\t\t\treport.setSystemInfo(\"Environment\", \"UAT\");\n\t\t\treport.setSystemInfo(\"Browsers\", \"Chrome and Edge\");\n\n\t\t\thtmlReporter.config().setDocumentTitle(\"Identify New Bikes - HTML Report\");\n\t\t\thtmlReporter.config().setReportName(\"UI Test Report\");\n\t\t\thtmlReporter.config().setTimeStampFormat(\"MMM dd, yyyy HH:mm:ss\");\n\t\t}\n\n\t\treturn report;\n\t}",
"@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }",
"public String getNomeReport() {\r\n\t\treturn nomeReport;\r\n\t}",
"public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}",
"public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"@Override\n public String toString() {\n return \"Report{\" +\n \"reportId=\" + reportId +\n \", reportOpId=\" + reportOp +\n \", date='\" + date + '\\'' +\n \", reportedUserId=\" + reportedUser +\n \", userId=\" + user +\n \", status=\" + status +\n '}';\n }",
"public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}",
"@RequestMapping(\"/customer/customerReport\")\n public String viewCustomerReport() {\n Connection connection = null;\n try {\n connection = DriverManager.getConnection(\"jdbc:h2:tcp://localhost/~/test\", \"sa\", \"\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n JasperReportBuilder report = DynamicReports.report(); // A new report\n\n StyleBuilder boldStyle = stl.style().bold();\n StyleBuilder boldCenteredStyle = stl.style(boldStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n StyleBuilder columnTitleStyle = stl.style(boldCenteredStyle)\n .setBorder(stl.pen1Point())\n .setBackgroundColor(Color.LIGHT_GRAY);\n\n\n\n report\n .setColumnTitleStyle(columnTitleStyle)\n .highlightDetailEvenRows()\n .columns(\n Columns.column(\"Id\", \"customerId\", DataTypes.integerType()),\n Columns.column(\"First Name\", \"firstName\", DataTypes.stringType()),\n Columns.column(\"SecondName\", \"secondName\", DataTypes.stringType()),\n Columns.column(\"Email Address\", \"email\", DataTypes.stringType()),\n Columns.column(\"Phone No\", \"phoneNo\", DataTypes.stringType()),\n Columns.column(\"Street Name\", \"streetName\", DataTypes.stringType()),\n Columns.column(\"House Name\", \"houseName\", DataTypes.stringType()),\n Columns.column(\"City\", \"city\", DataTypes.stringType()),\n Columns.column(\"County\", \"county\", DataTypes.stringType()),\n Columns.column(\"Postcode\", \"postCode\", DataTypes.stringType()))\n .title( //title of the report\n Components.text(\"Customer Report\")\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setStyle(boldCenteredStyle))\n .pageFooter(Components.pageXofY().setStyle(boldCenteredStyle)) //Show page number on the page footer\n .setDataSource(\"SELECT customerId, firstName, secondName, email, phoneNo, streetName, houseName, city, county, postCode FROM customer\", connection);\n\n try {\n // Show the report\n report.show();\n\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n //export the report to a pdf file\n report.toPdf(new FileOutputStream(\"c:/report.pdf\"));\n } catch (DRException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n return \"customerReport\";\n }",
"public ReportGenerator(AccessibilityTester at, TestSettings set){\n tester = at;\n testSettings = set;\n printName = set.report_name;\n printDescription = set.report_description;\n printPosition = set.report_position;\n }",
"public abstract void writeLedgerSummaryReport(ReportWriterService reportWriterService);",
"public void customerAppointmentsReport() {\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n StringBuilder sb3 = new StringBuilder();\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getCustomerAppointments();\n\n reportLabel.setText(\"Customer Appointments By Type and Month Report: \\n\\n\");\n //Appends Month to the customer report\n sb1.append(\"Month:\\n\");\n for (Reports reports : reportsList) {\n sb1.append(reports.getMonthName()).append(\"\\n\");\n }\n reportLabel1.setText(sb1.toString());\n //Appends Type to the customer report\n sb2.append(\"Type:\\n\");\n for (Reports reports : reportsList) {\n sb2.append(reports.getType()).append(\"\\n\");\n }\n reportLabel2.setText(sb2.toString());\n //Appends total count to the customer report\n sb3.append(\"Count:\\n\");\n for (Reports reports : reportsList) {\n sb3.append(reports.getAppointmentCount()).append(\"\\n\");\n }\n reportLabel3.setText(sb3.toString());\n }",
"@Override\n public ReportDesign buildReportDesign(ReportDefinition reportDefinition) {\n ReportDesign rd = createExcelTemplateDesign(getExcelDesignUuid(), reportDefinition, \"SMCRegister.xls\");\n Properties props = new Properties();\n props.put(\"repeatingSections\", \"sheet:1,row:10-12,dataset:SMC\");\n props.put(\"sortWeight\", \"5000\");\n rd.setProperties(props);\n return rd;\n }",
"void generateMgiCrisprAlleleReport();",
"public void generarReporteTablaAmortiDetalles(String sAccionBusqueda,List<TablaAmortiDetalle> tablaamortidetallesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalleMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TablaAmortiDetalleMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tabla Amortizacion Detalles\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TablaAmortiDetalleConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTablaAmortiDetalle=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTablaAmortiDetalle=new JRBeanArrayDataSource(TablaAmortiDetalleJInternalFrame.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTablaAmortiDetalle);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TablaAmortiDetalleConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TablaAmortiDetalleConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TablaAmortiDetalleBean.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTablaAmortiDetalleActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public Report() {\r\n }",
"private JRXReportGenerated getReportGenerated(String reportName, Map parameters, JRBeanCollectionDataSource dataSource)\n throws Exception {\n\n //Load jasper reports\n JasperReport jasperReport = loadJasperReport(reportName);\n\n //Generated JRXReportGenerated\n// return new JRXReportGenerated(jasperReport, parameters, dataSource);\n return null;\n }",
"public static void printCommonReport(String reportName, HashMap<String, Object> hm) throws SQLException, JRException {\n hm.put(\"shopName\", Loading.getShopName());\n Connection con = DatabaseConnection.getDatabaseConnection();\n JasperDesign jsd = JRXmlLoader.load(\"C:\\\\reports\\\\\" + reportName + \".jrxml\"); //src\\\\cazzendra\\\\pos\\\\\n JasperReport jr = JasperCompileManager.compileReport(jsd);\n JasperPrint jp = JasperFillManager.fillReport(jr, hm, con);\n JasperViewer jasperViewer = new JasperViewer(jp, false);\n jasperViewer.setVisible(true);\n }"
] |
[
"0.7244254",
"0.70335674",
"0.7016798",
"0.6952674",
"0.693056",
"0.6912266",
"0.6898747",
"0.6872137",
"0.66922975",
"0.64615834",
"0.6440881",
"0.6411764",
"0.6377514",
"0.6354583",
"0.62679935",
"0.6253177",
"0.62434924",
"0.6191068",
"0.61342305",
"0.60768306",
"0.60738724",
"0.6061634",
"0.6051109",
"0.60306174",
"0.60036796",
"0.59537107",
"0.5952402",
"0.5927738",
"0.59101856",
"0.59054047",
"0.5903212",
"0.58822113",
"0.5881351",
"0.57972455",
"0.578981",
"0.57844186",
"0.57790846",
"0.57683706",
"0.5735652",
"0.5725175",
"0.571456",
"0.56898636",
"0.56883955",
"0.5687878",
"0.5674724",
"0.56742245",
"0.56683975",
"0.56575716",
"0.5649686",
"0.56456536",
"0.5642344",
"0.56304324",
"0.5624921",
"0.5619734",
"0.56193984",
"0.5617126",
"0.5610356",
"0.5601225",
"0.55974406",
"0.55923027",
"0.55877",
"0.55823934",
"0.555471",
"0.5540909",
"0.55395335",
"0.55299896",
"0.5518379",
"0.5518301",
"0.55177134",
"0.5510958",
"0.55089355",
"0.55059046",
"0.5504923",
"0.550253",
"0.55022913",
"0.54951066",
"0.5490309",
"0.5485295",
"0.5484123",
"0.5469323",
"0.5469193",
"0.54457754",
"0.54440916",
"0.5441774",
"0.5439539",
"0.54269886",
"0.5418351",
"0.54102635",
"0.5408548",
"0.54079324",
"0.54061466",
"0.54000956",
"0.53850436",
"0.53830606",
"0.53820175",
"0.5370351",
"0.5367324",
"0.53658676",
"0.5354627",
"0.5350884",
"0.53503615"
] |
0.0
|
-1
|
Report generation for URL and bindings.
|
public void rpgBindings(ReportOwner anRptOwner, RMShape aShapeRPG)
{
// Clone URL
if(getURL()!=null && getURL().length()>0 && getURL().indexOf('@')>=0) {
RMXString url = new RMXString(getURL()).rpgClone(anRptOwner, null, aShapeRPG, false);
aShapeRPG.setURL(url.getText());
}
// Clone Hover
if(getHover()!=null && getHover().length()>0 && getHover().indexOf('@')>=0) {
RMXString hover = new RMXString(getHover()).rpgClone(anRptOwner, null, aShapeRPG, false);
aShapeRPG.setHover(hover.getText());
}
// Iterate over bindings and evaluate
for(int i=0; i<getBindingCount(); i++) { Binding binding = getBinding(i);
// Get PropertyName, Key and Value (just continue if empty key)
String pname = binding.getPropertyName(); if(pname==null) continue;
String key = binding.getKey(); if(key==null || key.length()==0) continue;
Object value = RMKeyChain.getValue(anRptOwner, key);
// Handle Font
if(pname.equals("Font")) {
// Get value as string (if zero length, just continue)
String fs = value instanceof String? (String)value : null; if(fs==null || fs.length()==0) continue;
// If string has underline in it, underline and delete
if(RMStringUtils.indexOfIC(fs, "Underline")>=0) {
aShapeRPG.setUnderlined(true); fs = RMStringUtils.deleteIC(fs, "Underline").trim(); }
// Get size from string (if found, strip size from string)
int sizeIndex = fs.lastIndexOf(" ");
double size = sizeIndex<0 ? 0 : RMUtils.floatValue(fs.substring(sizeIndex+1));
if(size>0) fs = fs.substring(0, Math.max(sizeIndex, 0)).trim();
else size = getFont()==null? 12 : getFont().getSize();
// Get root font (use default font if not found), and modified font
RMFont font = getFont(); if(font==null) font = RMFont.getDefaultFont();
if(fs.equalsIgnoreCase("Bold")) font = font.getBold();
else if(fs.equalsIgnoreCase("Italic")) font = font.getItalic();
else if(fs.length()>0) // If there is anything in string, try to parse font name
font = new RMFont(fs, size);
// Get font at right size and apply it
font = font.deriveFont(size);
aShapeRPG.setFont(font);
}
// Handle FillColor, StrokeColor, TextColor
else if(pname.equals("FillColor")) { RMColor color = RMColor.colorValue(value);
if(color!=null) aShapeRPG.setColor(color); }
else if(pname.equals("StrokeColor")) { RMColor color = RMColor.colorValue(value);
if(color!=null) aShapeRPG.setStrokeColor(color); }
else if(pname.equals("TextColor")) { RMColor color = RMColor.colorValue(value);
if(color!=null) aShapeRPG.setTextColor(color); }
// Handle others: X, Y, Width, Height, Visible, URL
else RMKey.setValueSafe(aShapeRPG, pname, value);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ReservationReportSchema reportUrl();",
"public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }",
"private void generateReport( Locale locale, LinkcheckModel linkcheckModel )\n {\n getSink().head();\n getSink().text( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.name\" ) );\n getSink().head_();\n \n getSink().body();\n \n if ( linkcheckModel == null )\n {\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.empty\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n \n return;\n }\n \n // Overview\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.overview\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n //Statistics\n generateSummarySection( locale, linkcheckModel );\n \n //Details\n generateDetailsSection( locale, linkcheckModel );\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n }",
"public GenerateReport() {\n initComponents();\n displayLogs();\n }",
"@Test\n\tpublic void checkDetailedURLGeneration() {\n\t\tint neoID=1234;\n\t\tString expected = genDetailedURL(neoID);\n\t\tString result = urlHelper.getDetailedNeoInfoURL(neoID);\n\t\tassertEquals(expected,result);\n\t}",
"public String genLink (String request, Array filters){\n \n }",
"public void setupStatsEndpoint() {\n HttpHandler handler =\n (httpExchange) -> {\n this.increaseEndpointHitFrequency(this.getStatsApiEndpoint());\n StringBuilder response = new StringBuilder();\n Set<Map.Entry<String, Integer>> frequencySet = this.getEndpointFrequencyEntrySet();\n for (Map.Entry<String, Integer> entry : frequencySet) {\n response\n .append(entry.getKey())\n .append(\":\")\n .append(entry.getValue())\n .append(System.getProperty(\"line.separator\"));\n }\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, response.length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(response.toString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.statsApiEndpoint, this.server.createContext(this.statsApiEndpoint));\n this.setHandler(this.getStatsApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.statsApiEndpoint, 0);\n }",
"@RequestMapping(\"/generateReport\")\n\tpublic String generateReportforLoc(){\n\t\tList<Object[]> data=service.getLocWiseCount();\n\t\tString path=context.getRealPath(\"/\");\n\t\tlocUtil.generatePieChart(path, data);\n\t\tlocUtil.generateBarChart(path, data);\n\t\treturn \"LocReport\";\n\t}",
"private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}",
"@Override\r\n\tpublic void getUrl() {\n\r\n\t}",
"public abstract String getOutputUrl();",
"public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }",
"private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}",
"public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}",
"public interface LinkGenerator {\n\n String ATTRIBUTE_CONTROLLER = \"controller\";\n String ATTRIBUTE_RESOURCE = \"resource\";\n String ATTRIBUTE_ACTION = \"action\";\n String ATTRIBUTE_METHOD = \"method\";\n String ATTRIBUTE_URI = \"uri\";\n String ATTRIBUTE_RELATIVE_URI = \"relativeUri\";\n String ATTRIBUTE_INCLUDE_CONTEXT = \"includeContext\";\n String ATTRIBUTE_CONTEXT_PATH = \"contextPath\";\n String ATTRIBUTE_URL = \"url\";\n String ATTRIBUTE_BASE = \"base\";\n String ATTRIBUTE_ABSOLUTE = \"absolute\";\n String ATTRIBUTE_ID = \"id\";\n String ATTRIBUTE_FRAGMENT = \"fragment\";\n String ATTRIBUTE_PARAMS = \"params\";\n String ATTRIBUTE_MAPPING = \"mapping\";\n String ATTRIBUTE_EVENT = \"event\";\n String ATTRIBUTE_ELEMENT_ID = \"elementId\";\n String ATTRIBUTE_PLUGIN = \"plugin\";\n String ATTRIBUTE_NAMESPACE = \"namespace\";\n \n\n Set<String> LINK_ATTRIBUTES = CollectionUtils.newSet(\n ATTRIBUTE_RESOURCE,\n ATTRIBUTE_METHOD,\n ATTRIBUTE_CONTROLLER,\n ATTRIBUTE_ACTION,\n ATTRIBUTE_URI,\n ATTRIBUTE_RELATIVE_URI,\n ATTRIBUTE_CONTEXT_PATH,\n ATTRIBUTE_URL,\n ATTRIBUTE_BASE,\n ATTRIBUTE_ABSOLUTE,\n ATTRIBUTE_ID,\n ATTRIBUTE_FRAGMENT,\n ATTRIBUTE_PARAMS,\n ATTRIBUTE_MAPPING,\n ATTRIBUTE_EVENT,\n ATTRIBUTE_ELEMENT_ID,\n ATTRIBUTE_PLUGIN,\n ATTRIBUTE_NAMESPACE\n );\n\n Map<String, String> REST_RESOURCE_ACTION_TO_HTTP_METHOD_MAP = CollectionUtils.<String, String>newMap(\n \"create\", \"GET\",\n \"save\", \"POST\",\n \"show\", \"GET\",\n \"index\", \"GET\",\n \"edit\", \"GET\",\n \"update\", \"PUT\",\n \"patch\", \"PATCH\",\n \"delete\", \"DELETE\"\n );\n\n Map<String, String> REST_RESOURCE_HTTP_METHOD_TO_ACTION_MAP = CollectionUtils.<String, String>newMap(\n \"GET_ID\", \"show\",\n \"GET\", \"index\",\n \"POST\", \"save\",\n \"DELETE\", \"delete\",\n \"PUT\", \"update\",\n \"PATCH\", \"patch\"\n );\n\n\n /**\n * Generates a link to a static resource for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>base - The base path of the URL, typically an absolute server path</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>dir - The directory to link to</li>\n * <li>file - The file to link to (relative to the directory if specified)</li>\n * <li>plugin - The plugin that provides the resource</li>\n * <li>absolute - Whether the link should be absolute or not</li>\n * </ul>\n *\n * @param params The named parameters\n * @return The link to the static resource\n */\n String resource(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:<port> if no value in Config and not running in production.</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:<port> if no value in Config and not running in production.</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @param encoding The character encoding to use\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);\n\n /**\n * Obtains the context path from which this link generator is operating.\n *\n * @return The base context path\n */\n String getContextPath();\n\n /**\n * The base URL of the server used for creating absolute links.\n *\n * @return The base URL of the server\n */\n String getServerBaseURL();\n}",
"public void generateReport(ReportGenerationData data)throws ChangeApplicationException;",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"void printReport();",
"private void SummaryReport()\n {\n System.out.println(\"\\n\\n***********************************************************************\");\n System.out.println(\"* CodeScanner Summary Report\");\n System.out.println(\"*\");\n System.out.println(\"* Run Date: \" + new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss\").format(new Date()));\n System.out.println(\"* Yaml File: \" + confFileName);\n System.out.println(\"* Code Path: \" + startPath);\n System.out.println(\"*\");\n System.out.println(\"* Dir include pattern: \" + dirIncludePattern.toString());\n System.out.println(\"* Dir exclude pattern: \" + dirExcludePattern.toString());\n System.out.println(\"* Directories scanned: \" + dirCount);\n System.out.println(\"* Directories matched: \" + dirMatchCount);\n System.out.println(\"* Dir Line matched: \" + dirLineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* File include pattern: \" + fileIncludePattern.toString());\n System.out.println(\"* File exclude pattern: \" + fileExcludePattern.toString());\n System.out.println(\"* Files scanned: \" + fileCount);\n System.out.println(\"* Files matched: \" + fileMatchCount);\n System.out.println(\"* Files Line matched: \" + fileLineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* Line replace pattern: \" + lineFindReplace.toString());\n System.out.println(\"* Line include pattern: \" + lineIncludePattern.toString());\n System.out.println(\"* Line exclude pattern: \" + lineExcludePattern.toString());\n System.out.println(\"* Lines replaced: \" + totalReplaceCount);\n System.out.println(\"* Lines scanned: \" + totalLineCount);\n System.out.println(\"* Lines matched: \" + lineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* Distinct Matching URLs Found\");\n\n for (String url : distinctURLs.values())\n {\n String ipAddress = \"\";\n try\n {\n InetAddress address = InetAddress.getByName(new URL(\"https://\" + url).getHost());\n ipAddress = address.getHostAddress();\n\n }\n catch(Exception ex)\n {\n ipAddress = \"not found\";\n }\n\n System.out.println(\"* \" + url + \" (\" + ipAddress + \")\");\n }\n\n System.out.println(\"*\");\n System.out.println(\"***********************************************************************\");\n }",
"public AnnotateClueRunWithURLs() {\r\n\t}",
"@Override public void generateReport(IvyXmlWriter xw,DyviseDatabase db,List<TraceLockLocation> used)\n{\n if (xw != null) {\n xw.begin(\"TYPE\");\n xw.field(\"KIND\",\"JOIN\");\n xw.field(\"ID\",++item_counter);\n for (TraceLockLocation tll : location_set) {\n\t tll.outputXml(xw,false);\n }\n xw.end(\"TYPE\");\n }\n\n used.addAll(location_set);\n}",
"@Override\n\tpublic void generateMigsPunchUrl() {\n\n\t}",
"public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }",
"@ApiModelProperty(example = \"http://www.google.com\", value = \"The url for the excel report for this execution\")\n public String getReportUrl() {\n return reportUrl;\n }",
"@Override\n public String generateResourceLink(SoapEvent soapEvent) {\n return SLASH + WEB + SLASH + SOAP + SLASH + PROJECT + SLASH + soapEvent.getProjectId() + SLASH + PORT + SLASH +\n soapEvent.getPortId() + SLASH + OPERATION + SLASH + soapEvent.getOperationId();\n }",
"boolean generateReport();",
"@Override\n public void onLoadReport(ConsoleProxyLoadReportCommand cmd) {\n }",
"@Override\r\n\tpublic void report() {\r\n\t}",
"public String reportforLink() throws Exception {\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tString range = (String) request.getParameter(\"rangeValue\");\r\n\t\tif (range != null && range != \"\") {\r\n\t\t\tbulkForm16.setRangeCode(range);\r\n\t\t\tSystem.out.println(\"RRRRRRRRR value-->\" + bulkForm16.getRangeCode());\r\n\t\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\t}\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}",
"private void report() {\n\t\t\n\t}",
"public String getReportPath();",
"public void openmrsdemo() {\n\t\tutil.geturl(prop.getValue(\"locators.url\"));\n\t\tlogreport.info(\"Url loaded\");\n\t\tutil.maximize();\n\t}",
"public void generateEnquireLink();",
"@AfterClass\n\tpublic static void generateReport() {\n\t\tCucumberReportingConfig.reportConfig();\n\t\n\t}",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}",
"@Override\r\n\t\t\tpublic void reporte() {\n\r\n\t\t\t}",
"void generateMgiCrisprAlleleReport();",
"@Test\n\tpublic void generateSpecialInstructionsReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Special Instructions Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public abstract void getReport(java.io.Writer writer);",
"public String generateReport() {\n throw new UnsupportedOperationException(\"ERROR: generateReport() Not yet implemented.\");\n }",
"@Test\n\tpublic void generateGreen4LoyaltyReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t//Generate Batch report\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Green4 Loyalty Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}",
"public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }",
"public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}",
"String getSourceUsageURL();",
"private void printLinks(String key,String genome,Iterable<Record> goRecords,Iterable<Record> modelRecords) \n throws IOException\n {\n String db=null;\n int g=Common.getDBid(genome);\n if(g==Common.arab)\n db=\"ath1\";\n else if(g==Common.rice)\n db=\"osa1\";\n\n if(g==Common.arab)\n {\n out.write(\"<a href='http://www.arabidopsis.org/servlets/TairObject?type=locus&name=\"+key+\"'>TAIR</a>  \");\n }else if(g==Common.rice)\n out.write(\"<a href='http://rice.plantbiology.msu.edu/cgi-bin/ORF_infopage.cgi?orf=\"+key+\"'>TIGR</a>  \");\n out.write(\"<a href='http://\"+servlets.Common.hostname+\"/scripts/geneview.pl?accession=\"+key+\"'>GeneStructure*</a>  \");\n //expression link goes here\n if(g==Common.arab)\n out.write(\"<a href='http://signal.salk.edu/cgi-bin/tdnaexpress?GENE=\"+key+\"&FUNCTION=&JOB=HITT&DNA=&INTERVAL=10'>KO</a>  \");\n\n //here we want an array of go numbers\n StringBuffer querys=new StringBuffer();\n\n for(Record rec : goRecords)\n querys.append(\"query=\"+ ((GoRecord)rec).go_number.replaceFirst(\":\",\"%3A\")+\"&\"); //the : must be encoded\n if(querys.length()!=0)//we have at least one go number\n out.write(\"<a href='http://www.godatabase.org/cgi-bin/go.cgi?depth=0&advanced_query=&search_constraint=terms&\"+querys+\"action=replace_tree'>GO</a>  \");\n\n\n if(g==Common.arab)\n {\n out.write(\"<a href='http://www.genome.ad.jp/dbget-bin/www_bget?ath:\"+key+\"'>KEGG</a>  \"); \n out.write(\"<a href='http://pmn.plantcyc.org/PLANT/substring-search?type=NIL&object=\"+key+\"'>AraCyc</a>\");\n }\n\n /*\n //link to uniprot blast results\n StringBuffer modelList=new StringBuffer();\n for(Record rec : modelRecords)\n modelList.append( ((ModelRecord)rec).key+\" \");\n out.write(\"   <a href='QueryPageServlet?searchType=blast&displayType=blastView&inputKey=dbs: swp trembl keys: \"+modelList+\"'>\" +\n \"<font color='red' >Cross-Species Profile</font></a>\");\n */\n \n //printPedLinks(out,key,genome);\n }",
"private void printReport() {\n\t\t\tSystem.out.println(\"Processed \" + this.countItems + \" items:\");\n\t\t\tSystem.out.println(\" * Labels: \" + this.countLabels);\n\t\t\tSystem.out.println(\" * Descriptions: \" + this.countDescriptions);\n\t\t\tSystem.out.println(\" * Aliases: \" + this.countAliases);\n\t\t\tSystem.out.println(\" * Statements: \" + this.countStatements);\n\t\t\tSystem.out.println(\" * Site links: \" + this.countSiteLinks);\n\t\t}",
"abstract public void report();",
"@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n\n switch (reportType) {\n case \"Appointments\" : appointmentReport(); break;\n case \"Contact Schedule\" : contactReport(); break;\n case \"User Load\" : userReport(); break;\n }\n\n }",
"public String report() {\r\n\t\tsession2 = ServletActionContext.getRequest().getSession();\r\n\t\tlogger.info(session2);\r\n\t\tif (session2 == null || session2.getAttribute(\"login\") == null) {\r\n\t\t\tlogger.error(\"if=====session error reporting===='\");\r\n\t\t\treturn LOGIN;\r\n\t\t} else {\r\n\t\t\tfactory = LoginAndSession.getFactory();\r\n\t\t\tdao_userWise = (Productivity_user_wiseDao) factory.getBean(\"d27\");\r\n\t\t\tdao_propwise = (Productivity_property_wiseDao) factory.getBean(\"d29\");\r\n\t\t\tpcw = (Productivity_client_wiseDao) factory.getBean(\"d30\");\r\n\t\t\tif (colorRadio.equalsIgnoreCase(\"red\")) {\r\n\r\n\t\t\t\t// for all user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , mu.name\"\r\n\t\t\t\t\t\t\t\t\t+ \" , puw.facebook, puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain , puw.user_id \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_user_wise puw, Markscan_users mu where puw.curr_date \"\r\n\t\t\t\t\t\t\t\t\t+ \" between '\" + date + \"' and '\" + date1 + \"' and mu.id= puw.user_id\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tcud = (Crawle_url2Dao) factory.getBean(\"dash\");\r\n\r\n\t\t\t\t\t// lst1= cud.viewRecord(\"select DISTINCT count(domain_name)\r\n\t\t\t\t\t// ,date(created_on), link_logger from crawle_url3 where\r\n\t\t\t\t\t// user_id= 75 and created_on >'2017-06-01' and\r\n\t\t\t\t\t// link_logger=1 group by date(created_on)\")\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setProj_name(obj[8].toString()); // user_name\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[14]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[15]);\r\n\t\t\t\t\t\tdata.setUser_id((Integer) obj[16]);\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" ppw.created_on = '\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t\t+ \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" productivi0_.created_on='\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t+ \"' and \" + \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(client_names);\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tobj0=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tobj1=null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\t\t\tlst = null;\r\n\t\t\t\t\t\t\tfactory=null;\r\n\t\t\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"allEmpReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"green\")) {\r\n\t\t\t\t// for single user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , puw.facebook,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain from \" + \" Productivity_user_wise puw where puw.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and puw.curr_date between\" + \" '\" + date + \"' and '\" + date1 + \"'\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[14]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" ppw.created_on = '\" + obj[0].toString() + \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw= null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"empReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"blue\")) {\r\n\t\t\t\t// for client wise\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tlst = pcw.viewRecord(\"select pcw.curr_date, pcw.source_link, pcw.infringing_link, pcw.youtube,\"\r\n\t\t\t\t\t\t\t+ \" pcw.social_media, pcw.white_list, pcw.grey_list , pcw.facebook, pcw.instagram, pcw.twitter,\"\r\n\t\t\t\t\t\t\t+ \" pcw.vk, pcw.periscope, pcw.source_domain, pcw.infringing_domain from Productivity_client_wise \"\r\n\t\t\t\t\t\t\t+ \" pcw where pcw.curr_date between '\" + date + \"' and '\" + date1 + \"' and pcw.client_id=\"\r\n\t\t\t\t\t\t\t+ clientname);\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[7] + (Integer) obj[8] + (Integer) obj[9] + (Integer) obj[10]\r\n\t\t\t\t\t\t\t\t+ (Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[13]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT mu.name, ppw.created_on ,ppw.user_id from Productivity_property_wise ppw ,\"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Markscan_users mu where mu.id= ppw.user_id and ppw.client_id = \"\r\n\t\t\t\t\t\t\t\t\t\t+ clientname + \" and ppw.created_on='\" + obj[0].toString() + \"' \");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\" select sum( productivi0_.source_count),\"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.facebook),sum(productivi0_.instagram),sum(productivi0_.twitter) \"\r\n\t\t\t\t\t\t\t\t\t+ \" ,sum(productivi0_.vk),sum( productivi0_.periscope) from \"\r\n\t\t\t\t\t\t\t\t\t+ \" Productivity_property_wise productivi0_, Markscan_users markscan_u1_ where \"\r\n\t\t\t\t\t\t\t\t\t+ \" markscan_u1_.id=productivi0_.user_id and productivi0_.client_id= \" + clientname\r\n\t\t\t\t\t\t\t\t\t+ \" and productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \" productivi0_.user_id=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj= null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tobj=null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"clientReport\";\r\n\t\t\t}\r\n\r\n\t\t\tfactory=null;\r\n\t\t\tdao_userWise=null;\r\n\t\t\tdao_propwise=null;\r\n\t\t\tsession2=null;\r\n\t\t\tSystem.gc();\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t}",
"@Override\n public void reportSmartDashboard() {\n }",
"private String generateUrl(List<String> codes) {\n StringBuilder builder = new StringBuilder();\n for (String code : codes) {\n builder.append(\",\");\n builder.append(recognizeType(code));\n builder.append(code);\n }\n builder = builder.delete(0, 1);\n return prefix + builder.toString();\n }",
"public void generateReport(TaxChallan bean, HttpServletRequest request, HttpServletResponse response, String reportPath) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tReportDataSet rds = new ReportDataSet();\r\n\t\t\tString type = bean.getReportType();\r\n\t\t\trds.setReportType(type);\r\n\t\t\tString fileName = \"T.D.S.-TCS TAX CHALLAN\"+Utility.getRandomNumber(1000);\r\n\t\t\tString reportPathName=reportPath+fileName+\".\"+type;\r\n\t\t\trds.setFileName(fileName);\r\n\t\t\trds.setPageSize(\"A4\");\r\n\t\t\trds.setReportHeaderRequired(false);\r\n\t\t\trds.setShowPageNo(true);\r\n\t\t\torg.paradyne.lib.ireportV2.ReportGenerator rg=null;\r\n\t\t\t/* Added by Prashant*/\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, session, context, request);\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"################# ATTACHMENT PATH #############\"+reportPath+fileName+\".\"+type);\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, reportPath ,session, context, request);\r\n\t\t\t\trequest.setAttribute(\"reportPath\", reportPath+fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"fileName\", fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"action\", \"TaxChallan_input.action\");\r\n\t\t\t}\r\n\t\t\trg = getReport(rg, bean);\r\n\t\t\trg.process();\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg.createReport(response);\r\n\t\t\t}else{\r\n\t\t\t\t/* Generates the report as attachment*/\r\n\t\t\t\trg.saveReport(response);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendEmailForMatchingReports(Exchange exchange) {\n logger.info(\"matching algorithm reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForMatching(exchange), RecapConstants.EMAIL_FOR, RecapConstants.MATCHING_REPORTS);\n }",
"@Override\n public void displayReportTemplate(String reportFormat, int entries) {\n }",
"void renderURL(Writer writer, String path, Map<String, String[]> parameters, URLFormat wantedURLFormat) throws IllegalArgumentException, IOException;",
"@GET \n @Produces(\"text/plain\")\n public String getIt() {\n \tGraphDAO dao = GraphDAO.getInstance();\n \tdao.init(\"graphdbs/ComboBreaker\");\n \tString retVal = dao.outputGraphNodes();\n \treturn retVal;\n }",
"@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}",
"String renderReport(T config);",
"private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}",
"private void printWebInterfaceURL\n\t\t(PrintWriter out)\n\t\t{\n\t\tout.print (\"http://\");\n\t\tout.print (myWebHost);\n\t\tout.print (\":\");\n\t\tout.print (myWebPort);\n\t\tout.print (\"/\");\n\t\t}",
"@Override\n public String toString() {\n return endpoint;\n }",
"@Test\n\tpublic void generateGosByLocationReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"GOS By Location Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"@Test\n\tpublic void generateLineItemReportByLocation(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Line Item Report By Location\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"@Override\r\n public String getServletInfo() {\r\n return \"Servlet Adapter to call generadorReportesPDF-Stateles-Session\";\r\n }",
"Report createReport();",
"@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }",
"public void ExtentRepoter() {\n\t\treporter = new ExtentHtmlReporter(\"./Reports/learn_automation1.html\");\n\n\t}",
"private String getUrlPlanet() {\n return this.url + this.resource;\n }",
"protected String buildDrillAction( IAction action, IReportContext context )\n \t{\n \t\tif ( action == null || context == null )\n \t\t\treturn null;\n \n \t\tString baseURL = null;\n \t\tObject renderContext = getRenderContext( context );\n \t\tif ( renderContext instanceof HTMLRenderContext )\n \t\t{\n \t\t\tbaseURL = ( (HTMLRenderContext) renderContext ).getBaseURL( );\n \t\t}\n \t\tif ( renderContext instanceof PDFRenderContext )\n \t\t{\n \t\t\tbaseURL = ( (PDFRenderContext) renderContext ).getBaseURL( );\n \t\t}\n \n \t\tif ( baseURL == null )\n \t\t\tbaseURL = IBirtConstants.VIEWER_PREVIEW;\n \n \t\tStringBuffer link = new StringBuffer( );\n \t\tString reportName = getReportName( context, action );\n \n \t\tif ( reportName != null && !reportName.equals( \"\" ) ) //$NON-NLS-1$\n \t\t{\n \t\t\tlink.append( baseURL );\n \n \t\t\tlink\n \t\t\t\t\t.append( reportName.toLowerCase( )\n \t\t\t\t\t\t\t.endsWith( \".rptdocument\" ) ? \"?__document=\" : \"?__report=\" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \n \t\t\ttry\n \t\t\t{\n \t\t\t\tlink.append( URLEncoder.encode( reportName,\n \t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) );\n \t\t\t}\n \t\t\tcatch ( UnsupportedEncodingException e1 )\n \t\t\t{\n \t\t\t\t// It should not happen. Does nothing\n \t\t\t}\n \n \t\t\t// add format support\n \t\t\tString format = action.getFormat( );\n \t\t\tif ( format == null || format.length( ) == 0 )\n \t\t\t\tformat = hostFormat;\n \t\t\tif ( format != null && format.length( ) > 0 )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_FORMAT, format ) );\n \t\t\t}\n \n \t\t\t// Adds the parameters\n \t\t\tif ( action.getParameterBindings( ) != null )\n \t\t\t{\n \t\t\t\tIterator paramsIte = action.getParameterBindings( ).entrySet( )\n \t\t\t\t\t\t.iterator( );\n \t\t\t\twhile ( paramsIte.hasNext( ) )\n \t\t\t\t{\n \t\t\t\t\tMap.Entry entry = (Map.Entry) paramsIte.next( );\n \t\t\t\t\ttry\n \t\t\t\t\t{\n \t\t\t\t\t\tString key = (String) entry.getKey( );\n \t\t\t\t\t\tObject valueObj = entry.getValue( );\n \t\t\t\t\t\tif ( valueObj != null )\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tObject[] values;\n \t\t\t\t\t\t\tif ( valueObj instanceof Object[] )\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tvalues = (Object[]) valueObj;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tvalues = new Object[1];\n \t\t\t\t\t\t\t\tvalues[0] = valueObj;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\tfor ( int i = 0; i < values.length; i++ )\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t// TODO: here need the get the format from the\n \t\t\t\t\t\t\t\t// parameter.\n \t\t\t\t\t\t\t\tString value = DataUtil\n \t\t\t\t\t\t\t\t\t\t.getDisplayValue( values[i] );\n \n \t\t\t\t\t\t\t\tif ( value != null )\n \t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\tlink\n \t\t\t\t\t\t\t\t\t\t\t.append( ParameterAccessor\n \t\t\t\t\t\t\t\t\t\t\t\t\t.getQueryParameterString(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tURLEncoder\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.encode(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkey,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ),\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tURLEncoder\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.encode(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) ) );\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t// pass NULL value\n \t\t\t\t\t\t\t\t\tlink\n \t\t\t\t\t\t\t\t\t\t\t.append( ParameterAccessor\n \t\t\t\t\t\t\t\t\t\t\t\t\t.getQueryParameterString(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.PARAM_ISNULL,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tURLEncoder\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.encode(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkey,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) ) );\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t\t\t{\n \t\t\t\t\t\t// Does nothing\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\t// Adding overwrite.\n \t\t\t\tif ( !reportName.toLowerCase( ).endsWith(\n \t\t\t\t\t\tParameterAccessor.SUFFIX_REPORT_DOCUMENT )\n \t\t\t\t\t\t&& baseURL\n \t\t\t\t\t\t\t\t.lastIndexOf( IBirtConstants.SERVLET_PATH_FRAMESET ) > 0 )\n \t\t\t\t{\n \t\t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\t\tParameterAccessor.PARAM_OVERWRITE, String\n \t\t\t\t\t\t\t\t\t.valueOf( true ) ) );\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif ( locale != null )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_LOCALE, locale.toString( ) ) );\n \t\t\t}\n \t\t\tif ( isRtl )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_RTL, String.valueOf( isRtl ) ) );\n \t\t\t}\n \n \t\t\tif ( svg != null )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_SVG, String.valueOf( svg\n \t\t\t\t\t\t\t\t.booleanValue( ) ) ) );\n \t\t\t}\n \n \t\t\tif ( isDesigner != null )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_DESIGNER, String\n \t\t\t\t\t\t\t\t.valueOf( isDesigner ) ) );\n \t\t\t}\n \n \t\t\t// add isMasterPageContent\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_MASTERPAGE, String\n \t\t\t\t\t\t\t.valueOf( this.isMasterPageContent ) ) );\n \n \t\t\t// append resource folder setting\n \t\t\ttry\n \t\t\t{\n \t\t\t\tif ( resourceFolder != null )\n \t\t\t\t{\n \t\t\t\t\tString res = URLEncoder.encode( resourceFolder,\n \t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\t\tParameterAccessor.PARAM_RESOURCE_FOLDER, res ) );\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t{\n \t\t\t}\n \n \t\t\t// add bookmark\n \t\t\tString bookmark = action.getBookmark( );\n \t\t\tif ( bookmark != null )\n \t\t\t{\n \n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\t// In PREVIEW mode or pdf format, don't support bookmark as\n \t\t\t\t\t// parameter\n \t\t\t\t\tif ( baseURL\n \t\t\t\t\t\t\t.lastIndexOf( IBirtConstants.SERVLET_PATH_PREVIEW ) > 0\n \t\t\t\t\t\t\t|| IBirtConstants.PDF_RENDER_FORMAT\n \t\t\t\t\t\t\t\t\t.equalsIgnoreCase( format ) )\n \t\t\t\t\t{\n \t\t\t\t\t\tlink.append( \"#\" ); //$NON-NLS-1$\n \n \t\t\t\t\t\t// use TOC to find bookmark, only link to document file\n \t\t\t\t\t\tif ( !action.isBookmark( )\n \t\t\t\t\t\t\t\t&& reportName.toLowerCase( ).endsWith(\n \t\t\t\t\t\t\t\t\t\t\".rptdocument\" ) ) //$NON-NLS-1$\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tInputOptions options = new InputOptions( );\n \t\t\t\t\t\t\toptions.setOption( InputOptions.OPT_LOCALE, locale );\n \t\t\t\t\t\t\tbookmark = BirtReportServiceFactory\n \t\t\t\t\t\t\t\t\t.getReportService( ).findTocByName(\n \t\t\t\t\t\t\t\t\t\t\treportName, bookmark, options );\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tlink.append( URLEncoder.encode( bookmark,\n \t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) );\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tbookmark = URLEncoder.encode( bookmark,\n \t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\t\t\tParameterAccessor.PARAM_BOOKMARK, bookmark ) );\n \n \t\t\t\t\t\t// Bookmark is TOC name.\n \t\t\t\t\t\tif ( !action.isBookmark( ) )\n \t\t\t\t\t\t\tlink.append( ParameterAccessor\n \t\t\t\t\t\t\t\t\t.getQueryParameterString(\n \t\t\t\t\t\t\t\t\t\t\tParameterAccessor.PARAM_ISTOC,\n \t\t\t\t\t\t\t\t\t\t\t\"true\" ) ); //$NON-NLS-1$\n \t\t\t\t\t}\n \n \t\t\t\t}\n \t\t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t\t{\n \t\t\t\t\t// Does nothing\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn link.toString( );\n \t}",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"public abstract void generateReport(Date from, Date to, String objectCode);",
"public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }",
"@Test\n\tpublic void generateOrdersReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Orders Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}",
"public static void runReport(HttpServletRequest request,HttpServletResponse response)throws IOException{\n\n\t\tAsePool connectionPool = null;\n\n\t\tConnection conn = null;\n\n\t\tString reportUser = null;\n\n\t\tString sql = null;\n\n\t\tboolean debug = false;\n\n\t\tAseUtil aseUtil = null;\n\n\t\tWebSite website = null;\n\n\t\ttry{\n\t\t\taseUtil = new AseUtil();\n\n\t\t\tHttpSession session = request.getSession(true);\n\n\t\t\treportUser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tint i = 0;\n\t\t\tint j = 0;\n\n\t\t\tString junk = \"\";\n\n\t\t\t// step 0\n\t\t\tconnectionPool = AsePool.getInstance();\n\t\t\tconn = connectionPool.getConnection();\n\n\t\t\twebsite = new WebSite();\n\t\t\tString campus = website.getRequestParameter(request,\"c\",\"\");\t\t// parm1\n\t\t\tString alpha = website.getRequestParameter(request,\"a\",\"\");\t\t\t// parm2\n\t\t\tString num = website.getRequestParameter(request,\"n\",\"\");\t\t\t// parm3\n\t\t\tString type = website.getRequestParameter(request,\"t\",\"\");\t\t\t// parm4\n\t\t\tString user = website.getRequestParameter(request,\"u\",\"\");\t\t\t// parm5\n\t\t\tString historyid = website.getRequestParameter(request,\"h\",\"\");\t// parm6\n\t\t\tint route = website.getRequestParameter(request,\"r\",0);\t\t\t\t// parm7\n\t\t\tString p8 = website.getRequestParameter(request,\"p8\",\"\");\t\t\t// any value\n\t\t\tString p9 = website.getRequestParameter(request,\"p9\",\"\");\t\t\t// any value\n\n\t\t\tif (campus == null || campus.length() == 0)\n\t\t\t\tcampus = Encrypter.decrypter((String)session.getAttribute(\"aseCampus\"));\n\n\t\t\tif (user == null || user.length() == 0)\n\t\t\t\tuser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tString campusName = CampusDB.getCampusNameOkina(conn,campus);\n\n\t\t\tString reportFolder = aseUtil.getReportFolder();\n\t\t\tString outputFolder = aseUtil.getReportOutputFolder(campus +\"/\");\n\n\t\t\tString logoFile = aseUtil.getCampusLogo(campus);\n\t\t\tString reportFileName = outputFolder + user + \".pdf\";\n\n\t\t\tString reportType = \"generic\";\n\t\t\tString reportTitle = \"\";\n\t\t\tString colsWidth = \"\";\n\t\t\tString headerColumns = \"\";\n\t\t\tString dataColumns = \"\";\n\n\t\t\tString where = \"\";\n\t\t\tString order = \"\";\n\t\t\tString grouping = null;\n\t\t\tString savedGrouping = null;\n\t\t\tString groupedValue = null;\n\t\t\tString footer = null;\n\t\t\tString reportSubTitle = null;\n\n\t\t\tString sWhere = \"\";\n\n\t\t\tString parm1 = \"\";\t\t// campus or FORUM src\n\t\t\tString parm2 = \"\";\t\t// alpha or FORUM status\n\t\t\tString parm3 = \"\";\t\t// num\n\t\t\tString parm4 = \"\";\t\t// type\n\t\t\tString parm5 = \"\";\t\t// user\n\t\t\tString parm6 = \"\";\t\t//\thistoryid\n\t\t\tString parm7 = \"\";\t\t//\troute\n\t\t\tString parm8 = \"\";\t\t//\n\t\t\tString parm9 = \"\";\t\t//\n\n\t\t\tint psIndex = 0;\n\n\t\t\tString aseReport = (String)session.getAttribute(\"aseReport\");\n\n\t\t\tif (aseReport != null && aseReport.length() > 0){\n\n\t\t\t\tResourceBundle reportBundle = ResourceBundle.getBundle(\"ase.central.reports.\" + aseReport);\n\t\t\t\tif (reportBundle != null){\n\n\t\t\t\t\tBundleDB bundle = new BundleDB();\n\n\t\t\t\t\treportType = bundle.getBundle(reportBundle,\"reportType\",\"\");\n\t\t\t\t\treportTitle = bundle.getBundle(reportBundle,\"reportTitle\",\"\");\n\t\t\t\t\tcolsWidth = bundle.getBundle(reportBundle,\"colsWidth\",\"\");\n\t\t\t\t\theaderColumns = bundle.getBundle(reportBundle,\"headerColumns\",\"\");\n\t\t\t\t\tdataColumns = bundle.getBundle(reportBundle,\"dataColumns\",\"\");\n\t\t\t\t\tsql = bundle.getBundle(reportBundle,\"sql\",\"\");\n\t\t\t\t\tgrouping = bundle.getBundle(reportBundle,\"grouping\",\"\");\n\t\t\t\t\tfooter = bundle.getBundle(reportBundle,\"footer\",\"\");\n\t\t\t\t\treportSubTitle = bundle.getBundle(reportBundle,\"reportSubTitle\",\"\");\n\n\t\t\t\t\twhere = bundle.getBundle(reportBundle,\"where\",\"\");\n\t\t\t\t\tif (where != null && where.length() > 0){\n\t\t\t\t\t\twhere = where.replace(\"_EQUALS_\",\"=\");\n\t\t\t\t\t}\n\n\t\t\t\t\torder = bundle.getBundle(reportBundle,\"order\",\"\");\n\t\t\t\t\tparm1 = bundle.getBundle(reportBundle,\"parm1\",\"\");\t// campus, src\n\t\t\t\t\tparm2 = bundle.getBundle(reportBundle,\"parm2\",\"\");\t// alpha\n\t\t\t\t\tparm3 = bundle.getBundle(reportBundle,\"parm3\",\"\");\t// num\n\t\t\t\t\tparm4 = bundle.getBundle(reportBundle,\"parm4\",\"\");\t// type\n\t\t\t\t\tparm5 = bundle.getBundle(reportBundle,\"parm5\",\"\");\t// userid\n\t\t\t\t\tparm6 = bundle.getBundle(reportBundle,\"parm6\",\"\");\t// history\n\t\t\t\t\tparm7 = bundle.getBundle(reportBundle,\"parm7\",\"\");\t// route\n\t\t\t\t\tparm8 = bundle.getBundle(reportBundle,\"parm8\",\"\");\n\t\t\t\t\tparm9 = bundle.getBundle(reportBundle,\"parm9\",\"\"); // any single value\n\n\t\t\t\t\tbundle = null;\n\n\t\t\t\t} // reportBundle\n\n\t\t\t\tif (reportTitle != null && colsWidth != null && headerColumns != null && dataColumns != null && sql != null){\n\t\t\t\t\tPdfPTable table = null;\n\t\t\t\t\tPhrase phrase = null;\n\t\t\t\t\tPdfPCell cell = null;\n\n\t\t\t\t\tBaseColor campusColor = null;\n\n\t\t\t\t\tString[] aColsWidth = colsWidth.split(\",\");\n\t\t\t\t\tString[] aDataColumns = dataColumns.split(\",\");\n\n\t\t\t\t\t// define colum width\n\t\t\t\t\tint columns = aDataColumns.length;\n\n\t\t\t\t\tfloat[] fColsWidth = new float[aDataColumns.length];\n\n\t\t\t\t\tfor(i=0; i<columns; i++){\n\t\t\t\t\t\tfColsWidth[i] = Float.valueOf(aColsWidth[i]).floatValue();\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// define campus color; for grouping, use a different color\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (campus != null && campus.length() > 0 && campusColorMap.containsKey(campus))\n\t\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(campus);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (campusColor == null)\n\t\t\t\t\t\tcampusColor = BaseColor.LIGHT_GRAY;\n\n\t\t\t\t\t// step 1 of 5\n\t\t\t\t\tDocument document = new Document(PageSize.LETTER.rotate());\n\n\t\t\t\t\t// step 2 of 5\n\t\t\t\t\tPdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(reportFileName));\n\t\t\t\t\tTableHeader event = new TableHeader();\n\t\t\t\t\twriter.setPageEvent(event);\n\t\t\t\t\twriter.setPageEvent(new Watermark(\"Curriculum Central\"));\n\n\t\t\t\t\tint leading = 18;\n\n\t\t\t\t\t// step 3 of 5\n\t\t\t\t\tdocument.open();\n\t\t\t\t\tdocument.newPage();\n\n\t\t\t\t\t// create table with user column count\n\t\t\t\t\ttable = new PdfPTable(fColsWidth);\n\t\t\t\t\ttable.setWidthPercentage(100f);\n\t\t\t\t\ttable.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\t\t\t\ttable.getDefaultCell().setBorder(PdfPCell.NO_BORDER);\n\t\t\t\t\ttable.getDefaultCell().setUseAscender(true);\n\t\t\t\t\ttable.getDefaultCell().setUseDescender(true);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t//formulate sql statement\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tparm1 = website.getRequestParameter(request,\"src\",\"\");\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" src=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tparm2 = website.getRequestParameter(request,\"status\",\"\");\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" status=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" c.campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tsWhere += \" c.route>? \";\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tsWhere += \" c.route=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm9 != null && parm9.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" \" + parm9 + \"=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" alpha=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" num=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" type=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" userid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" historyid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" route=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// final formulation of SQL\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (where.length()==0 && sWhere.length()>0)\n\t\t\t\t\t\twhere = \" WHERE \" + sWhere;\n\t\t\t\t\telse{\n\t\t\t\t\t\twhere = \" WHERE \" + where;\n\n\t\t\t\t\t\tif (sWhere.length()>0)\n\t\t\t\t\t\t\twhere += \" AND \" + sWhere;\n\t\t\t\t\t}\n\n\t\t\t\t\t// prevent empty where\n\t\t\t\t\tif (where.trim().toUpperCase().equals(\"WHERE\"))\n\t\t\t\t\t\twhere = \"\";\n\n\t\t\t\t\tif (order.length() > 0)\n\t\t\t\t\t\torder = \" ORDER BY \" + order;\n\n\t\t\t\t\t// prevent empty order\n\t\t\t\t\tif (order.trim().toUpperCase().equals(\"ORDER BY\"))\n\t\t\t\t\t\torder = \"\";\n\n\t\t\t\t\tsql = sql + where + order;\n\n\t\t\t\t\tdebug = false;\n\n\t\t\t\t\tif (debug){\n\t\t\t\t\t\tlogger.info(\"campus: \" + campus);\n\t\t\t\t\t\tlogger.info(\"alpha: \" + alpha);\n\t\t\t\t\t\tlogger.info(\"num: \" + num);\n\t\t\t\t\t\tlogger.info(\"type: \" + type);\n\t\t\t\t\t\tlogger.info(\"user: \" + user);\n\t\t\t\t\t\tlogger.info(\"historyid: \" + historyid);\n\t\t\t\t\t\tlogger.info(\"route: \" + route);\n\t\t\t\t\t\tlogger.info(\"p8: \" + p8);\n\t\t\t\t\t\tlogger.info(\"p9: \" + p9);\n\t\t\t\t\t\tlogger.info(\"reportFolder: \" + reportFolder);\n\t\t\t\t\t\tlogger.info(\"logoFile: \" + logoFile);\n\t\t\t\t\t\tlogger.info(\"reportFileName: \" + reportFileName);\n\t\t\t\t\t\tlogger.info(\"reportType: \" + reportType);\n\t\t\t\t\t\tlogger.info(\"reportTitle: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"colsWidth: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"headerColumns: \" + headerColumns);\n\t\t\t\t\t\tlogger.info(\"dataColumns: \" + dataColumns);\n\t\t\t\t\t\tlogger.info(\"grouping: \" + grouping);\n\t\t\t\t\t\tlogger.info(\"footer: \" + footer);\n\t\t\t\t\t\tlogger.info(\"reportSubTitle: \" + reportSubTitle);\n\t\t\t\t\t\tlogger.info(\"order: \" + order);\n\t\t\t\t\t\tlogger.info(\"parm1: \" + parm1);\n\t\t\t\t\t\tlogger.info(\"parm2: \" + parm2);\n\t\t\t\t\t\tlogger.info(\"parm3: \" + parm3);\n\t\t\t\t\t\tlogger.info(\"parm4: \" + parm4);\n\t\t\t\t\t\tlogger.info(\"parm5: \" + parm5);\n\t\t\t\t\t\tlogger.info(\"parm6: \" + parm6);\n\t\t\t\t\t\tlogger.info(\"parm7: \" + parm7);\n\t\t\t\t\t\tlogger.info(\"parm8: \" + parm8);\n\t\t\t\t\t\tlogger.info(\"parm9: \" + parm9);\n\t\t\t\t\t\tlogger.info(\"aseReport: \" + aseReport);\n\t\t\t\t\t\tlogger.info(\"sql: \" + sql);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// Add the first header row (step 4 of 5)\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tFont f = new Font();\n\n\t\t\t\t\tdrawTitleRow(table,reportTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// customized subtitles\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\treportSubTitle = parm1 + \" Report\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing - \" + ApproverDB.getRoutingFullNameByID(conn,campus,route);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\treportSubTitle = \"System Settings - \" + p9;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (reportSubTitle != null && reportSubTitle.length() > 0){\n\t\t\t\t\t\tdrawTitleRow(table,reportSubTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// table header\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tdrawHeaderRow(table,campusColor,columns,headerColumns,f);\n\n\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(null);\n\n\t\t\t\t\ttable.setHeaderRows(2);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// get the data\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0)\n\t\t\t\t\t\t\tps.setString(1,parm1);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0)\n\t\t\t\t\t\t\tps.setString(2,parm2);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,0);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (p9 != null && p9.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,p9);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,alpha);\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,num);\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,type);\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,user);\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,historyid);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0)\n\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile(rs.next()){\n\n\t\t\t\t\t\tevent.setHeader(reportTitle,campusName,user);\n\n\t\t\t\t\t\tif (grouping != null && grouping.length() > 0){\n\t\t\t\t\t\t\tgroupedValue = AseUtil.nullToBlank(rs.getString(grouping));\n\t\t\t\t\t\t\tif (savedGrouping == null || !savedGrouping.equals(groupedValue)){\n\t\t\t\t\t\t\t\tsavedGrouping = groupedValue;\n\t\t\t\t\t\t\t\tdrawTitleRow(table,\n\t\t\t\t\t\t\t\t\t\t\t\tsavedGrouping.toUpperCase(),\n\t\t\t\t\t\t\t\t\t\t\t\tcampusColor,\n\t\t\t\t\t\t\t\t\t\t\t\tf,\n\t\t\t\t\t\t\t\t\t\t\t\tBaseColor.BLACK,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tElement.ALIGN_LEFT);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // grouping\n\n\t\t\t\t\t\tif (j % 2 == 0)\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_ODD_ROW_COLOR);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_EVEN_ROW_COLOR);\n\n\t\t\t\t\t\tfor (i=0;i<columns;i++){\n\n\t\t\t\t\t\t\tif (!aDataColumns[i].equals(Constant.BLANK)){\n\t\t\t\t\t\t\t\tif (aDataColumns[i].indexOf(\"date\") > -1){\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.ASE_FormatDateTime(rs.getString(aDataColumns[i]),Constant.DATE_DATE_MDY);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.nullToBlank(rs.getString(aDataColumns[i]));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tjunk = \"\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tjunk = junk.replace(\"<p>\",\"\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"</p>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br/>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br />\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\" \",\" \")\n\t\t\t\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t//phrase = new Phrase();\n\t\t\t\t\t\t\t\t//phrase.add(createPhrase(junk,false));\n\n\t\t\t\t\t\t\t\t//OR\n\n\t\t\t\t\t\t\t\t// this version cuts does not parse html\n\t\t\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message\n\t\t\t\t\t\t\t\t//cell = new PdfPCell(processElement(junk, DATACOLOR, Font.NORMAL));\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message.\n\t\t\t\t\t\t\t\t// also cuts off multiline data\n\t\t\t\t\t\t\t\t//cell = processElement(junk);\n\n\t\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t++j;\n\t\t\t\t\t} // while\n\n\t\t\t\t\tif (j==0){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tphrase = new Phrase();\n\t\t\t\t\t\t\tphrase.add(createPhrase(\"no date found for requested report\",false));\n\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\tcell.setColspan(columns);\n\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tdocument.add(table);\n\n\t\t\t\t\t// footer\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\n\t\t\t\t\t\tList list = new List();\n\n\t\t\t\t\t\tjunk = \"CLOSED - tickets combined with another item because of similarity in the work that is needed, or the work that is no longer necessary.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"COMPLETED - this status is set after development has been completed, and user confirms that CC is working as expected.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"MONITORING - either a problem cannot be recreated or a fix was implemented without a way to recreate the problem.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REQUIREMENTS - an enhancement or bug fix requiring additional specification prior to development.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"RESEARCH - the development team is unclear of the reported ticket or requset and requires time to better understand what has taken place and possible recommendation for the user.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REVIEW - items the development team required additional time to understand.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"UAT - user acceptance testing (UAT) is the process where user(s) confirms that a fix or enhancement was completed as requested. If all goes well, the work is moved to production; otherwise, the work goes back for more requirements.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tdocument.add(list);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// step 5 of 5\n\t\t\t\t\tdocument.close();\n\n\t\t\t\t\t// with report ready, open in browser\n\t\t\t\t\twritePDF(request,response,reportFileName);\n\n\t\t\t\t} // not null report fields\n\n\t\t\t} // aseReport\n\n\t\t} catch(SQLException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 3: \" + ex.toString());\n\t\t} catch(IllegalArgumentException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport - 4: \" + ex.toString());\n\t\t} catch(Exception ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 5: \" + ex.toString());\n\t\t} finally {\n\t\t\tconnectionPool.freeConnection(conn,\"ReportGeneric\",reportUser);\n\n\t\t\ttry{\n\t\t\t\tif (conn != null){\n\t\t\t\t\tconn.close();\n\t\t\t\t\tconn = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tlogger.fatal(\"Tables: campusOutlines - \" + e.toString());\n\t\t\t}\n\n\t\t\taseUtil = null;\n\t\t\twebsite = null;\n\t\t}\n\t}",
"@Test\n\tpublic void generateBatchReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t//Generate Batch report\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Batch Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\t\t\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }",
"@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}",
"public String calcURLResponse()\n\t{\n\t\treturn\n\t\t\t\t\"https://secure.bluepay.com/interfaces/shpf?\" +\n\t\t\t\t\t\t\"SHPF_FORM_ID=\" + encodeURL(SHPF_FORM_ID) +\n\t\t\t\t\t\t\"&SHPF_ACCOUNT_ID=\" + encodeURL(BP_MERCHANT) +\n\t\t\t\t\t\t\"&SHPF_TPS_DEF=\" + encodeURL(SHPF_TPS_DEF) +\n\t\t\t\t\t\t\"&SHPF_TPS=\" + encodeURL(SHPF_TAMPER_PROOF_SEAL) +\n\t\t\t\t\t\t\"&MODE=\" + encodeURL(BP_MODE) +\n\t\t\t\t\t\t\"&TRANSACTION_TYPE=\" + encodeURL(TRANSACTION_TYPE) +\n\t\t\t\t\t\t\"&DBA=\" + encodeURL(DBA) +\n\t\t\t\t\t\t\"&AMOUNT=\" + encodeURL(AMOUNT) +\n\t\t\t\t\t\t\"&TAMPER_PROOF_SEAL=\" + encodeURL(BP10EMU_TAMPER_PROOF_SEAL) +\n\t\t\t\t\t\t\"&CUSTOM_ID=\" + encodeURL(CUSTOM_ID1) +\n\t\t\t\t\t\t\"&CUSTOM_ID2=\" + encodeURL(CUSTOM_ID2) +\n\t\t\t\t\t\t\"&REBILLING=\" + encodeURL(REBILLING) +\n\t\t\t\t\t\t\"&REB_CYCLES=\" + encodeURL(REB_CYCLES) +\n\t\t\t\t\t\t\"&REB_AMOUNT=\" + encodeURL(REB_AMOUNT) +\n\t\t\t\t\t\t\"&REB_EXPR=\" + encodeURL(REB_EXPR) +\n\t\t\t\t\t\t\"&REB_FIRST_DATE=\" + encodeURL(REB_FIRST_DATE) +\n\t\t\t\t\t\t\"&AMEX_IMAGE=\" + encodeURL(AMEX_IMAGE) +\n\t\t\t\t\t\t\"&DISCOVER_IMAGE=\" + encodeURL(DISCOVER_IMAGE) +\n\t\t\t\t\t\t\"&REDIRECT_URL=\" + encodeURL(RECEIPT_URL) +\n\t\t\t\t\t\t\"&TPS_DEF=\" + encodeURL(BP10EMU_TPS_DEF) +\n\t\t\t\t\t\t\"&CARD_TYPES=\" + encodeURL(CARD_TYPES);\n\t}",
"public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }",
"void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }",
"private URLs() {\n }",
"@Test\n public void testWizardReport() {\n testReporterConfig(Reporter.ALL_2017_4_24, \"WizardReport.txt\");\n }",
"public void printReport() {\n System.out.println(\"=== Product Report ===\");\n productNames.keySet().forEach(k -> {\n System.out.println(\"Name: \" + k + \"\\t\\tCount: \" + productCountMap.get(productNames.get(k)));\n });\n\n }",
"@Test\n\tpublic void generateSummaryReport(){\n\t\tWebDriver driver = new FirefoxDriver();\n\t\t//Maximize chrome window\n\t\t//driver.manage().window().maximize();\n\t\t// Alternatively the same thing can be done like this\n // driver.get(\"http://www.google.com\");\n\t\tdriver.navigate().to(determineUrl());\n\t\t// Find the text input element by its name\n\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\tuser_name.sendKeys(user);\n\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\tpassword.sendKeys(password_login);\n\t\tpassword.submit();\n\t\t//Expand Venue drop-down\n\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t//driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\t\t//Pass Venue under test\n\t\tselect_venue.sendKeys(venue);\n\t\t\n\t\tselect_venue.submit();\n\t\t//Generate Summary report\n\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\treport.click();\n\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\tselect_report.sendKeys(\"Summary Report\");\n\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\tselect_event.sendKeys(event);\n\t\tselect_event.submit();\n\t\tdriver.close();\n\t\t\n\t}",
"public abstract void setOutputUrl(String outputUrl);",
"protected ReportGenerator()\r\n {\r\n helperObjects = new HashMap();\r\n }",
"public interface ReportsDownloader {\n Organizer getOrganizer();\n\n /**\n * Add a new report resolver with the given host type\n * @param hostType the host type\n * @param reportResolver the report resolver to use for the host type\n */\n void addReportResolver(final String hostType, final ReportResolver reportResolver);\n void downloadLastSuccessful(final String type, final String host);\n void downloadLastFailed(final String type, final String host);\n void downloadAny(final String type, final String host, final String testNumber);\n\n void waitForComplete();\n}",
"public void sendINFO(PrintWriter pw, GuardedDataset gds, ReqState rs) throws DAP2Exception, ParseException {\n\n if (_Debug)\n System.out.println(\"opendap.servlet.GetInfoHandler.sendINFO() reached.\");\n\n String responseDoc = null;\n ServerDDS myDDS = null;\n DAS myDAS = null;\n\n\n myDDS = gds.getDDS();\n myDAS = gds.getDAS();\n\n\n infoDir = rs.getINFOCache(rs.getRootPath());\n\n\n responseDoc = loadOverrideDoc(infoDir, rs.getDataSet());\n\n if (responseDoc != null) {\n if (_Debug)\n System.out.println(\"override document: \" + responseDoc);\n pw.print(responseDoc);\n } else {\n\n\n String user_html = get_user_supplied_docs(rs.getServerClassName(), rs.getDataSet());\n\n String global_attrs = buildGlobalAttributes(myDAS, myDDS);\n\n String variable_sum = buildVariableSummaries(myDAS, myDDS);\n\n // Send the document back to the client.\n pw.println(\"<html><head><title>Dataset Information</title>\");\n pw.println(\"<style type=\\\"text/css\\\">\");\n pw.println(\"<!-- ul {list-style-type: none;} -->\");\n pw.println(\"</style>\");\n pw.println(\"</head>\");\n pw.println(\"<body>\");\n\n if (global_attrs.length() > 0) {\n pw.println(global_attrs);\n pw.println(\"<hr>\");\n }\n\n pw.println(variable_sum);\n\n pw.println(\"<hr>\");\n\n pw.println(user_html);\n\n pw.println(\"</body></html>\");\n\n // Flush the output buffer.\n pw.flush();\n }\n\n }",
"public void generate() {\n\t\tthis.initializePathBindingClass();\n\t\t// managed at abstract level ; name provided at binding generation time\n\t\t// this.addGetName();\n\t\t// this.addGetType();\n\n\t\t// add all properties methods\n\t\tthis.addProperties();\n\t\t// add getter that provides property list\n\t\tthis.addGetChildBindings();\n\n\t\t// initialize class declaration (*Binding)\n\t\tthis.initializeRootBindingClass();\n\t\t// add constructors\n\t\tthis.addConstructors();\n\t\t// add getWithRoot method\n\t\tthis.addGetWithRoot();\n\t\t// add getSafelyWithRoot method\n\t\tthis.addGetSafelyWithRoot();\n\n\t\tthis.addGeneratedTimestamp();\n\t\tthis.addSerialVersionUID();\n\t\tthis.saveCode(this.pathBindingClass);\n\t\tthis.saveCode(this.rootBindingClass);\n\t}",
"@Test\n\tpublic void generateOrderTakerSummaryReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Order Taker Summary Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"private String buildRedirectionDetailsBaseUrl( )\n {\n UrlItem urlRedirectionDetails = new UrlItem( MultiviewFormResponseDetailsJspBean.getMultiviewRecordDetailsBaseUrl( ) );\n\n if ( !CollectionUtils.isEmpty( _listFormFilterDisplay ) )\n {\n for ( IFormFilterDisplay formFilterDisplay : _listFormFilterDisplay )\n {\n // Add all the filters values\n String strFilterValue = formFilterDisplay.getValue( );\n if ( !StringUtils.isEmpty( strFilterValue ) )\n {\n String strFilterFullName = FormsConstants.PARAMETER_URL_FILTER_PREFIX + formFilterDisplay.getParameterName( );\n urlRedirectionDetails.addParameter( strFilterFullName, strFilterValue );\n }\n }\n }\n\n // Add the selected panel technical code\n urlRedirectionDetails.addParameter( FormsConstants.PARAMETER_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n\n // Add sort filter data to the url\n addFilterSortConfigToUrl( urlRedirectionDetails );\n\n return urlRedirectionDetails.getUrl( );\n }",
"public SaucelabsLinkGenerator() {\n \t\n }",
"private void generateCellReference() {\n JSONObject json = new JSONObject();\n if (image.isCompositeImage()) {\n image.getComponentNameToComponentMap().forEach((name, component) -> {\n String componentName = getValidName(component.getName());\n json.put(componentName + \"_host\", INSTANCE_NAME_PLACEHOLDER + \"--\" + componentName + \"-service\");\n if (component.getApis().size() > 0) {\n json.put(componentName + \"_port\", DEFAULT_GATEWAY_PORT);\n }\n component.getTcpList().forEach(tcp -> json.put(componentName + \"_tcp_port\", tcp.getPort()));\n component.getGrpcList().forEach(grpc -> json.put(componentName + \"_grpc_port\", grpc.getPort()));\n });\n } else {\n image.getComponentNameToComponentMap().forEach((componentName, component) -> {\n String recordName = getValidRecordName(componentName);\n component.getApis().forEach(api -> {\n String context = api.getContext();\n if (StringUtils.isNotEmpty(context)) {\n String url =\n DEFAULT_GATEWAY_PROTOCOL + \"://\" + INSTANCE_NAME_PLACEHOLDER + GATEWAY_SERVICE + \":\"\n + DEFAULT_GATEWAY_PORT + \"/\" + context;\n json.put(recordName + \"_\" + getValidRecordName(api.getName()) + \"_api_url\",\n url.replaceAll(\"(?<!http:)//\", \"/\"));\n }\n });\n component.getTcpList().forEach(tcp -> json.put(recordName + \"_tcp_port\", tcp.getPort()));\n component.getGrpcList().forEach(grpc -> json.put(recordName + \"_grpc_port\", grpc.getPort()));\n });\n json.put(\"gateway_host\", INSTANCE_NAME_PLACEHOLDER + GATEWAY_SERVICE);\n }\n String targetFileNameWithPath =\n OUTPUT_DIRECTORY + File.separator + \"ref\" + File.separator + REFERENCE_FILE_NAME;\n try {\n writeToFile(json.toString(), targetFileNameWithPath);\n } catch (IOException e) {\n String errMsg = \"Error occurred while generating reference file \" + targetFileNameWithPath;\n log.error(errMsg, e);\n throw new BallerinaException(errMsg);\n }\n }",
"private String generateUrl(String code) {\n return prefix + recognizeType(code) + code;\n }",
"@Test\n\tpublic void generatePaymentReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Payments Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"@Test\n\tpublic void generateLineItemReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Line Item Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}"
] |
[
"0.68079716",
"0.6195338",
"0.56237876",
"0.5487879",
"0.54682386",
"0.5462614",
"0.53878605",
"0.5375874",
"0.5365481",
"0.5300376",
"0.5296672",
"0.52464014",
"0.52346617",
"0.5221602",
"0.52117974",
"0.51959884",
"0.51451707",
"0.5137624",
"0.51353216",
"0.5122407",
"0.5122234",
"0.51196504",
"0.51154137",
"0.50968176",
"0.50514317",
"0.50490266",
"0.50428104",
"0.5027872",
"0.4993451",
"0.4985802",
"0.4967469",
"0.49638823",
"0.49604216",
"0.4927395",
"0.4926515",
"0.49259034",
"0.49145758",
"0.4885252",
"0.48827305",
"0.4875634",
"0.48518676",
"0.48450065",
"0.48308504",
"0.48222962",
"0.48166713",
"0.48165113",
"0.48098162",
"0.4809727",
"0.47886467",
"0.4786717",
"0.47814882",
"0.47692096",
"0.47652578",
"0.47273842",
"0.4714633",
"0.4712691",
"0.47100493",
"0.4704367",
"0.4703231",
"0.470291",
"0.46988505",
"0.4692413",
"0.46741003",
"0.46671265",
"0.46624407",
"0.46577084",
"0.4657149",
"0.46550053",
"0.465342",
"0.464435",
"0.46431026",
"0.4638322",
"0.46353897",
"0.4631138",
"0.4630318",
"0.46302387",
"0.46274808",
"0.4624964",
"0.4623305",
"0.46217164",
"0.4620663",
"0.46177667",
"0.46174514",
"0.46144503",
"0.46070352",
"0.46067315",
"0.45995277",
"0.45915166",
"0.45896575",
"0.45893362",
"0.45862836",
"0.4582078",
"0.45795456",
"0.45736596",
"0.45728886",
"0.45722514",
"0.45713878",
"0.45712906",
"0.45698008",
"0.45690176",
"0.45672825"
] |
0.0
|
-1
|
Visual change notification call before making changes that will require repaint.
|
public void repaint() { if(_parent!=null) _parent.repaint(this); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void visualChange();",
"private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}",
"public void requestRepaint() {\n }",
"public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }",
"public void updateVisuals ()\n\t{\n\t\tbrainPanel.repaint();\n\t}",
"public void notifyInvalidate() {\n firePropertyChange(\"settings changed!\", null, CatalogSettings.this);\n }",
"protected void repaint()\n {\n // Update the contents if an update is needed.\n // Will only actually repaint if the contents are dirty.\n view.getEditor().getInteractionFigure().repaint();\n }",
"public void requestRepaintRequests() {\n }",
"@Override\n protected void applyChangesTo(Component component) {\n component.revalidate();\n component.repaint();\n }",
"@Override\r\n public void updateUI() {\r\n }",
"@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}",
"public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }",
"public void requestRedraw() {\n\n this.getParent().repaint();\n\n }",
"@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tthis.repaint(); // Schedule a call to paintComponent\n\t}",
"public void designerStateModified(DesignerEvent e);",
"@Override\n protected void refreshVisuals() {\n getFigure().updateLabels();\n }",
"@Override\r\n public void repaint() {\r\n }",
"@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}",
"@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}",
"protected void indicateModified() {\n invalidationListenerManager.callListeners(this);\n }",
"@Override\n public void addNotify(){\n super.addNotify();\n\n if (speciallyIconified){\n try{\n setIcon(speciallyIconified);\n speciallyIconified = false;\n } catch (PropertyVetoException e){}\n }\n\n if (speciallyMaximized){\n try{\n setMaximum(speciallyMaximized);\n speciallyMaximized = false;\n } catch (PropertyVetoException e){}\n }\n }",
"public void requestRepaint() {\n\t\tJWLC.nativeHandler().wlc_output_schedule_render(this.to());\n\t}",
"void msgViewableChanged() {\n resetViewport(start);\n }",
"public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n public void updateEvent(MsgEvent e) {\n// System.out.println(\"PagePane: \" + e.toString());\n if (e.code == MsgEvent.WIDGET_REPAINT) {\n Widget w = findWidget(e.message);\n if (w != null) {\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_SELECTED_TREEVIEW && \n e.parent.equals(getKey())) {\n selectNone();\n Widget w = findWidget(e.message);\n if (w != null) {\n selectWidget(w);\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_UNSELECT_TREEVIEW) {\n/*\n // Can't call selectNone() or we will go into a loop.\n for (Widget w : widgets) {\n unSelectWidget(w);\n }\n*/\n selectNone();\n repaint();\n } else if (e.code == MsgEvent.CANVAS_MODEL_CHANGE) {\n canvasWidth = (int)(Builder.CANVAS_WIDTH * zoomFactor);\n canvasHeight = (int)(Builder.CANVAS_HEIGHT * zoomFactor);\n CommonUtil.getInstance().setWinOffsets(new Dimension(canvasWidth, canvasHeight), \n generalModel.getWidth(),\n generalModel.getHeight());\n repaint();\n }\n }",
"public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}",
"public abstract void forceRepaint();",
"public void repaintView(){\n \n loadCalendarLabels();\n if (!checkBoxesHaveBeenClicked)\n {\n populateMonthWithEvents();\n }\n else\n {\n ActionEvent actionEvent = new ActionEvent();\n handleCheckBoxAction(actionEvent);\n }\n //populateMonthWithEvents();\n }",
"public void repaint() {}",
"public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }",
"@Override\n\tpublic void redraw() {\n\t\t\n\t}",
"void willDisplayUpdate(String change) throws RemoteException;",
"public void repaint() {\n\t\n}",
"@Override\n\tpublic void repaint() {\n\t\tsuper.repaint();\n\t}",
"public void changed() {\n this.fireContentsChanged(this, 0, this.getSize() - 1);\n }",
"public void repaint() {\n\n\t}",
"public void changeVisualization ( )\r\n\t{\r\n\t\thorizontal = !horizontal;\r\n\t\trepaint ( );\r\n\t}",
"public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }",
"protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}",
"public void updateUI(){}",
"@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\trepaint();\r\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\r\n\t\t// Not exactly how MVC works, but similar.\r\n\t\tthis.repaint(); // Schedule a call to paintComponent\r\n\t}",
"public void update(){\n\t\tthis.setVisible(true);\n\t}",
"public void designerInputModified(DesignerEvent e);",
"public void doRepaint() {\n window.getApplication().doRepaint();\n }",
"protected void notifyChangeListeners() { \n Utilities.invokeLater(new Runnable() {\n public void run() { for(ChangeListener l: _changeListeners) l.apply(this); }\n });\n }",
"public final void changedUpdate(DocumentEvent e) {\n Rectangle alloc = (painted) ? getVisibleEditorRect() : null;\n rootView.changedUpdate(e, alloc, rootView.getViewFactory());\n }",
"@Override\n public void redraw() {\n firePropertyChange(AVKey.LAYER, null, this);\n }",
"public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }",
"public void propertyChange(PropertyChangeEvent evt)\n/* */ {\n/* 76 */ CompoundPainter<?> painter = (CompoundPainter)this.ref.get();\n/* */ \n/* 78 */ if (painter == null) {\n/* 79 */ AbstractPainter<?> src = (AbstractPainter)evt.getSource();\n/* 80 */ src.removePropertyChangeListener(this);\n/* */ } else {\n/* 82 */ String property = evt.getPropertyName();\n/* */ \n/* 84 */ if ((\"dirty\".equals(property)) && (evt.getNewValue() == Boolean.FALSE)) {\n/* 85 */ return;\n/* */ }\n/* */ \n/* 88 */ painter.setDirty(true);\n/* */ }\n/* */ }",
"public final void change() {\n\t\tBSUIWindow.change_do(this);\n\t}",
"public void updateConicalView();",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"public void installFirstDrawTrigger() {\n mFrameAdapter.getFrameContainer().getViewTreeObserver().addOnGlobalLayoutListener(\n mFirstDrawTrigger);\n }",
"public void update(){\n\t\tif (!VisualizerMain.selectedRun.equals(\"\")){\n\t\t\tupdateEpochNum();\n\t\t\tupdateParticles();\n\t\t\tthis.repaint();\n\t\t}\n\t\t\n\t}",
"public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }",
"public synchronized void setChanged() {\n super.setChanged();\n }",
"private void forceRedraw(){\n postInvalidate();\n }",
"@Override\n public void layoutStateChanged(LayoutStateChange.Event evt) {\n setActive(!evt.active);\n // if the layout model is finished, then rebuild the spatial data structure\n if (!evt.active) {\n recalculate();\n getLayoutModel().getModelChangeSupport().fireModelChanged(); // this will cause a repaint\n }\n }",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"private void waitForSecondChangeBeforeNotification() {\n\t\tif (hasChanged())\n\t\t\tnotifyObservers(Global.COMPONENT_SIZE_UPDATE);\n\t\telse\n\t\t\tsetChanged();\n\t}",
"protected @Override void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) {\n \n //super.updateLayout(ec, e, a);\n }",
"@Override\r\n\tprotected void refreshVisuals() {\n\t\tif (getParent() instanceof LayerEditPart && getParent().getParent()!=null && getParent().getParent() instanceof CompositeLayerEditPart) {\r\n\t\t\tgetParent().getParent().refresh();\r\n\t\t} \r\n\t\tif (getParent() instanceof LayerEditPart) {\r\n\t\t\tgetParent().refresh();\r\n\t\t} \r\n\t\tsuper.refreshVisuals();\r\n\t}",
"public void repaint() {\n setBackground(Color.white);\n super.repaint();\n setVisible(true);\n\n }",
"public void setLayoutInfo(Object theLayoutInfo)\n{\n if(RMUtils.equals(theLayoutInfo, _layoutInfo)) return; // If value already set, just return\n _layoutInfoX = null;\n firePropertyChange(\"LayoutInfo\", _layoutInfo, _layoutInfo = theLayoutInfo, -1);\n}",
"@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }",
"public void setX(double aValue)\n{\n if(_x==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"X\", _x, _x = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}",
"@Override\n\tpublic void update(IObservable observable, Object args) {\n\t\tthis.repaint();\n\t}",
"private void firePlotListChanged() {\n firePlotListChanged(this, null);\n }",
"@Override\n\tpublic void changedUpdate(DocumentEvent e)\n\t{\n\t\t\n\t}",
"public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }",
"void notifyVisibleBoundsChanged();",
"public void refresh() {\n\t\tthis.repaint();\n\t}",
"@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }",
"private void updatePainting(AnnotationModelEvent event) {\n \t\tdisablePainting(true);\n \n \t\tcatchupWithModel(event);\n \n \t\tif (!fInputDocumentAboutToBeChanged)\n \t\t\tinvalidateTextPresentation();\n \n \t\tenablePainting();\n \t}",
"private void updateGUIStatus() {\r\n\r\n }",
"protected synchronized void setChanged() {\n changed = true;\n }",
"@Override\n protected boolean isRepaintRequiredForRevalidating() {\n return false;\n }",
"public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }",
"private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}",
"private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}",
"protected void directUpdateLayout() {\n updateLayout();\n }",
"public void setEffect(RMEffect anEffect)\n{\n if(RMUtils.equals(getEffect(), anEffect)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_effect!=null) { _effect.removePropertyChangeListener(this);\n removePropertyChangeListener(_effect); removeDeepChangeListener(_effect); }\n firePropertyChange(\"Effect\", _effect, _effect = anEffect, -1); // Set value and fire PropertyChange\n if(_effect!=null) { _effect.addPropertyChangeListener(this);\n addPropertyChangeListener(_effect); addDeepChangeListener(_effect); }\n}",
"protected void refreshVisuals() {\r\n\t\trefreshBendpoints();\r\n\t\tif (getEdge().getValue())\r\n\t\t\tgetEdgeFigure().setForegroundColor(alive);\r\n\t\telse\r\n\t\t\tgetEdgeFigure().setForegroundColor(dead);\r\n\t\t//throw new NullPointerException();\r\n\t}",
"private void updateDockIconPreviewLater() {\n\t\tEventQueue.invokeLater( () -> {\n\t\t\tif( dockIcon != null )\n\t\t\t\tupdateDockIconPreview();\n\t\t} );\n\t}",
"@Override\n\tpublic void preUpdate() {\n\n\t}",
"private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }",
"public abstract void modelStructureChanged();",
"public void forceUpdateUI() {\n\t\tupdateUI();\n\t}",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}",
"@Override\n protected void sizeChanged () {\n }",
"@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}",
"public void repaint()\n\t{\n\t\tpanel.remove(recipeEntryDisplay); //remove the old display\n\t\trecipeEntryDisplay = renderEntryDisplay(); //create a new one\n\t\t//load new display into main panel\n\t\tpanel.add(recipeEntryDisplay, BorderLayout.CENTER);\n\t\tpanel.revalidate(); //tell BorderLayout changes have been made\n\t\tpanel.repaint(); //repaint just in case\n\t}",
"protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }",
"@Override\n public void update(Observable o, Object arg) {\n setDisplay();\n }",
"@Override\n\tprotected void repaintView(ViewGraphics g) {\n\t}"
] |
[
"0.741923",
"0.74006075",
"0.6998503",
"0.68687874",
"0.68080693",
"0.6789164",
"0.6620927",
"0.6609831",
"0.6575009",
"0.6552731",
"0.6542721",
"0.65054333",
"0.6487174",
"0.64867115",
"0.64374083",
"0.64369357",
"0.6414823",
"0.6398481",
"0.6398481",
"0.63970983",
"0.637168",
"0.63579196",
"0.63533837",
"0.63413763",
"0.63381046",
"0.6334548",
"0.63340765",
"0.6326165",
"0.6325035",
"0.6314412",
"0.62994695",
"0.62916553",
"0.628284",
"0.6277458",
"0.6266088",
"0.62634516",
"0.6263096",
"0.6261484",
"0.62585646",
"0.6258272",
"0.62484",
"0.624497",
"0.6241759",
"0.6229226",
"0.620533",
"0.6204845",
"0.619908",
"0.6185681",
"0.61803246",
"0.6175984",
"0.61757845",
"0.6174358",
"0.6151302",
"0.6151302",
"0.6151302",
"0.61472166",
"0.61341506",
"0.61333203",
"0.61051774",
"0.6100432",
"0.6087258",
"0.6085513",
"0.6085513",
"0.6083326",
"0.608205",
"0.6071145",
"0.60602593",
"0.6044855",
"0.6040357",
"0.603301",
"0.6032968",
"0.6031859",
"0.603044",
"0.60226846",
"0.6019547",
"0.60154504",
"0.6009327",
"0.6001453",
"0.59962314",
"0.59955454",
"0.5991981",
"0.59904015",
"0.5977878",
"0.5977628",
"0.596677",
"0.59665906",
"0.59551483",
"0.59550846",
"0.595331",
"0.59473556",
"0.593896",
"0.59347826",
"0.59340745",
"0.5930455",
"0.5920346",
"0.59138495",
"0.59107256",
"0.59070706",
"0.5901259",
"0.5897015",
"0.5895656"
] |
0.0
|
-1
|
Visual change notification call before making changes that will require repaint.
|
protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void visualChange();",
"private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}",
"public void requestRepaint() {\n }",
"public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }",
"public void updateVisuals ()\n\t{\n\t\tbrainPanel.repaint();\n\t}",
"public void notifyInvalidate() {\n firePropertyChange(\"settings changed!\", null, CatalogSettings.this);\n }",
"protected void repaint()\n {\n // Update the contents if an update is needed.\n // Will only actually repaint if the contents are dirty.\n view.getEditor().getInteractionFigure().repaint();\n }",
"public void requestRepaintRequests() {\n }",
"@Override\n protected void applyChangesTo(Component component) {\n component.revalidate();\n component.repaint();\n }",
"@Override\r\n public void updateUI() {\r\n }",
"@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}",
"public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }",
"public void requestRedraw() {\n\n this.getParent().repaint();\n\n }",
"@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tthis.repaint(); // Schedule a call to paintComponent\n\t}",
"public void designerStateModified(DesignerEvent e);",
"@Override\n protected void refreshVisuals() {\n getFigure().updateLabels();\n }",
"@Override\r\n public void repaint() {\r\n }",
"@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}",
"@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}",
"protected void indicateModified() {\n invalidationListenerManager.callListeners(this);\n }",
"@Override\n public void addNotify(){\n super.addNotify();\n\n if (speciallyIconified){\n try{\n setIcon(speciallyIconified);\n speciallyIconified = false;\n } catch (PropertyVetoException e){}\n }\n\n if (speciallyMaximized){\n try{\n setMaximum(speciallyMaximized);\n speciallyMaximized = false;\n } catch (PropertyVetoException e){}\n }\n }",
"public void requestRepaint() {\n\t\tJWLC.nativeHandler().wlc_output_schedule_render(this.to());\n\t}",
"void msgViewableChanged() {\n resetViewport(start);\n }",
"public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n public void updateEvent(MsgEvent e) {\n// System.out.println(\"PagePane: \" + e.toString());\n if (e.code == MsgEvent.WIDGET_REPAINT) {\n Widget w = findWidget(e.message);\n if (w != null) {\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_SELECTED_TREEVIEW && \n e.parent.equals(getKey())) {\n selectNone();\n Widget w = findWidget(e.message);\n if (w != null) {\n selectWidget(w);\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_UNSELECT_TREEVIEW) {\n/*\n // Can't call selectNone() or we will go into a loop.\n for (Widget w : widgets) {\n unSelectWidget(w);\n }\n*/\n selectNone();\n repaint();\n } else if (e.code == MsgEvent.CANVAS_MODEL_CHANGE) {\n canvasWidth = (int)(Builder.CANVAS_WIDTH * zoomFactor);\n canvasHeight = (int)(Builder.CANVAS_HEIGHT * zoomFactor);\n CommonUtil.getInstance().setWinOffsets(new Dimension(canvasWidth, canvasHeight), \n generalModel.getWidth(),\n generalModel.getHeight());\n repaint();\n }\n }",
"public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}",
"public abstract void forceRepaint();",
"public void repaintView(){\n \n loadCalendarLabels();\n if (!checkBoxesHaveBeenClicked)\n {\n populateMonthWithEvents();\n }\n else\n {\n ActionEvent actionEvent = new ActionEvent();\n handleCheckBoxAction(actionEvent);\n }\n //populateMonthWithEvents();\n }",
"public void repaint() {}",
"public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }",
"@Override\n\tpublic void redraw() {\n\t\t\n\t}",
"void willDisplayUpdate(String change) throws RemoteException;",
"public void repaint() {\n\t\n}",
"@Override\n\tpublic void repaint() {\n\t\tsuper.repaint();\n\t}",
"public void changed() {\n this.fireContentsChanged(this, 0, this.getSize() - 1);\n }",
"public void repaint() {\n\n\t}",
"public void changeVisualization ( )\r\n\t{\r\n\t\thorizontal = !horizontal;\r\n\t\trepaint ( );\r\n\t}",
"public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }",
"protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}",
"public void updateUI(){}",
"@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\trepaint();\r\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\r\n\t\t// Not exactly how MVC works, but similar.\r\n\t\tthis.repaint(); // Schedule a call to paintComponent\r\n\t}",
"public void update(){\n\t\tthis.setVisible(true);\n\t}",
"public void designerInputModified(DesignerEvent e);",
"public void doRepaint() {\n window.getApplication().doRepaint();\n }",
"protected void notifyChangeListeners() { \n Utilities.invokeLater(new Runnable() {\n public void run() { for(ChangeListener l: _changeListeners) l.apply(this); }\n });\n }",
"public final void changedUpdate(DocumentEvent e) {\n Rectangle alloc = (painted) ? getVisibleEditorRect() : null;\n rootView.changedUpdate(e, alloc, rootView.getViewFactory());\n }",
"@Override\n public void redraw() {\n firePropertyChange(AVKey.LAYER, null, this);\n }",
"public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }",
"public void propertyChange(PropertyChangeEvent evt)\n/* */ {\n/* 76 */ CompoundPainter<?> painter = (CompoundPainter)this.ref.get();\n/* */ \n/* 78 */ if (painter == null) {\n/* 79 */ AbstractPainter<?> src = (AbstractPainter)evt.getSource();\n/* 80 */ src.removePropertyChangeListener(this);\n/* */ } else {\n/* 82 */ String property = evt.getPropertyName();\n/* */ \n/* 84 */ if ((\"dirty\".equals(property)) && (evt.getNewValue() == Boolean.FALSE)) {\n/* 85 */ return;\n/* */ }\n/* */ \n/* 88 */ painter.setDirty(true);\n/* */ }\n/* */ }",
"public final void change() {\n\t\tBSUIWindow.change_do(this);\n\t}",
"public void updateConicalView();",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"public void installFirstDrawTrigger() {\n mFrameAdapter.getFrameContainer().getViewTreeObserver().addOnGlobalLayoutListener(\n mFirstDrawTrigger);\n }",
"public void update(){\n\t\tif (!VisualizerMain.selectedRun.equals(\"\")){\n\t\t\tupdateEpochNum();\n\t\t\tupdateParticles();\n\t\t\tthis.repaint();\n\t\t}\n\t\t\n\t}",
"public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }",
"public synchronized void setChanged() {\n super.setChanged();\n }",
"private void forceRedraw(){\n postInvalidate();\n }",
"@Override\n public void layoutStateChanged(LayoutStateChange.Event evt) {\n setActive(!evt.active);\n // if the layout model is finished, then rebuild the spatial data structure\n if (!evt.active) {\n recalculate();\n getLayoutModel().getModelChangeSupport().fireModelChanged(); // this will cause a repaint\n }\n }",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"private void waitForSecondChangeBeforeNotification() {\n\t\tif (hasChanged())\n\t\t\tnotifyObservers(Global.COMPONENT_SIZE_UPDATE);\n\t\telse\n\t\t\tsetChanged();\n\t}",
"protected @Override void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) {\n \n //super.updateLayout(ec, e, a);\n }",
"@Override\r\n\tprotected void refreshVisuals() {\n\t\tif (getParent() instanceof LayerEditPart && getParent().getParent()!=null && getParent().getParent() instanceof CompositeLayerEditPart) {\r\n\t\t\tgetParent().getParent().refresh();\r\n\t\t} \r\n\t\tif (getParent() instanceof LayerEditPart) {\r\n\t\t\tgetParent().refresh();\r\n\t\t} \r\n\t\tsuper.refreshVisuals();\r\n\t}",
"public void repaint() {\n setBackground(Color.white);\n super.repaint();\n setVisible(true);\n\n }",
"public void setLayoutInfo(Object theLayoutInfo)\n{\n if(RMUtils.equals(theLayoutInfo, _layoutInfo)) return; // If value already set, just return\n _layoutInfoX = null;\n firePropertyChange(\"LayoutInfo\", _layoutInfo, _layoutInfo = theLayoutInfo, -1);\n}",
"@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }",
"public void setX(double aValue)\n{\n if(_x==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"X\", _x, _x = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}",
"@Override\n\tpublic void update(IObservable observable, Object args) {\n\t\tthis.repaint();\n\t}",
"private void firePlotListChanged() {\n firePlotListChanged(this, null);\n }",
"@Override\n\tpublic void changedUpdate(DocumentEvent e)\n\t{\n\t\t\n\t}",
"public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }",
"void notifyVisibleBoundsChanged();",
"public void refresh() {\n\t\tthis.repaint();\n\t}",
"@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }",
"private void updatePainting(AnnotationModelEvent event) {\n \t\tdisablePainting(true);\n \n \t\tcatchupWithModel(event);\n \n \t\tif (!fInputDocumentAboutToBeChanged)\n \t\t\tinvalidateTextPresentation();\n \n \t\tenablePainting();\n \t}",
"private void updateGUIStatus() {\r\n\r\n }",
"protected synchronized void setChanged() {\n changed = true;\n }",
"@Override\n protected boolean isRepaintRequiredForRevalidating() {\n return false;\n }",
"public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }",
"private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}",
"private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}",
"protected void directUpdateLayout() {\n updateLayout();\n }",
"public void setEffect(RMEffect anEffect)\n{\n if(RMUtils.equals(getEffect(), anEffect)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_effect!=null) { _effect.removePropertyChangeListener(this);\n removePropertyChangeListener(_effect); removeDeepChangeListener(_effect); }\n firePropertyChange(\"Effect\", _effect, _effect = anEffect, -1); // Set value and fire PropertyChange\n if(_effect!=null) { _effect.addPropertyChangeListener(this);\n addPropertyChangeListener(_effect); addDeepChangeListener(_effect); }\n}",
"protected void refreshVisuals() {\r\n\t\trefreshBendpoints();\r\n\t\tif (getEdge().getValue())\r\n\t\t\tgetEdgeFigure().setForegroundColor(alive);\r\n\t\telse\r\n\t\t\tgetEdgeFigure().setForegroundColor(dead);\r\n\t\t//throw new NullPointerException();\r\n\t}",
"private void updateDockIconPreviewLater() {\n\t\tEventQueue.invokeLater( () -> {\n\t\t\tif( dockIcon != null )\n\t\t\t\tupdateDockIconPreview();\n\t\t} );\n\t}",
"@Override\n\tpublic void preUpdate() {\n\n\t}",
"private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }",
"public abstract void modelStructureChanged();",
"public void forceUpdateUI() {\n\t\tupdateUI();\n\t}",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}",
"@Override\n protected void sizeChanged () {\n }",
"@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}",
"public void repaint()\n\t{\n\t\tpanel.remove(recipeEntryDisplay); //remove the old display\n\t\trecipeEntryDisplay = renderEntryDisplay(); //create a new one\n\t\t//load new display into main panel\n\t\tpanel.add(recipeEntryDisplay, BorderLayout.CENTER);\n\t\tpanel.revalidate(); //tell BorderLayout changes have been made\n\t\tpanel.repaint(); //repaint just in case\n\t}",
"protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }",
"@Override\n public void update(Observable o, Object arg) {\n setDisplay();\n }",
"@Override\n\tprotected void repaintView(ViewGraphics g) {\n\t}"
] |
[
"0.741923",
"0.74006075",
"0.6998503",
"0.68687874",
"0.68080693",
"0.6789164",
"0.6620927",
"0.6609831",
"0.6575009",
"0.6552731",
"0.6542721",
"0.65054333",
"0.6487174",
"0.64867115",
"0.64374083",
"0.64369357",
"0.6414823",
"0.6398481",
"0.6398481",
"0.63970983",
"0.637168",
"0.63579196",
"0.63533837",
"0.63413763",
"0.63381046",
"0.6334548",
"0.63340765",
"0.6326165",
"0.6325035",
"0.6314412",
"0.62994695",
"0.62916553",
"0.628284",
"0.6277458",
"0.6266088",
"0.62634516",
"0.6263096",
"0.6261484",
"0.62585646",
"0.6258272",
"0.62484",
"0.624497",
"0.6241759",
"0.6229226",
"0.620533",
"0.6204845",
"0.619908",
"0.6185681",
"0.61803246",
"0.6175984",
"0.61757845",
"0.6174358",
"0.6151302",
"0.6151302",
"0.6151302",
"0.61472166",
"0.61341506",
"0.61333203",
"0.61051774",
"0.6100432",
"0.6087258",
"0.6085513",
"0.6085513",
"0.6083326",
"0.608205",
"0.6071145",
"0.60602593",
"0.6044855",
"0.6040357",
"0.603301",
"0.6032968",
"0.6031859",
"0.603044",
"0.60226846",
"0.6019547",
"0.60154504",
"0.6009327",
"0.6001453",
"0.59962314",
"0.59955454",
"0.5991981",
"0.59904015",
"0.5977878",
"0.5977628",
"0.596677",
"0.59665906",
"0.59551483",
"0.59550846",
"0.595331",
"0.59473556",
"0.593896",
"0.59347826",
"0.59340745",
"0.5930455",
"0.5920346",
"0.59138495",
"0.59107256",
"0.59070706",
"0.5901259",
"0.5897015",
"0.5895656"
] |
0.0
|
-1
|
Editor method indicates whether this shape can be super selected.
|
public boolean superSelectable() { return getClass()==RMParentShape.class; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean canSelectionChange() {\n return true;\n }",
"public abstract boolean hasSelection();",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"public boolean forceSelection();",
"@Override\n protected boolean calculateEnabled() {\n if (!super.calculateEnabled())\n return false;\n // allows only the editing of non-readonly parts\n return EditPartUtil.isEditable(getSelectedObjects().get(0));\n }",
"public boolean canHandle(Object selection);",
"public boolean isSelectionListener() {\n return true;\n }",
"public boolean isSelectionChanged();",
"public boolean isEditingEnabled() {\r\n // Additional business logic can go here\r\n return (getContactSelection().getMinSelectionIndex() != -1);\r\n }",
"public boolean isMultiSelection()\n {\n return multiSelection;\n }",
"public boolean isMaskSelected() {\n return false;\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn !getSelectedDeletables().isEmpty();\n\t}",
"public abstract boolean isSelected();",
"public boolean isSelectionToolAllowedToChangeResourceType() {\n\treturn true;\n}",
"public boolean supportsCustomEditor() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean forceSelection() {\r\n\t\treturn false;\r\n\t}",
"public boolean canEdit() {\r\n\t\treturn !dslView.isContainsErrors();\r\n\t}",
"public boolean isPaintable() {\n return modifiedEditor.isPaintable ();\n }",
"public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"@Override\n public boolean isSelectedIndex(int row)\n {\n return allowSelectDisabled\n || isAssociationAvailable(assnsTable.convertRowIndexToModel(row))\n ? super.isSelectedIndex(row)\n : false;\n }",
"abstract boolean getIsDragging();",
"public boolean isSelected() {\n return isEnabled;\n }",
"@Override\r\n\tpublic boolean isEnabled() {\r\n\t\tboolean result = false;\r\n\t\tif (getSelection().size() == 1) {\r\n\t\t\tif (getSelection().getFirstElement() instanceof IResource) {\r\n\t\t\t\tIResource resource = (IResource) getSelection().getFirstElement();\r\n\t\t\t\tString pomFileNames = AggregatedProperties.getPomFileNames(resource.getProject());\r\n\t\t\t\tStringTokenizer tkz = new StringTokenizer(pomFileNames, ConfigurationConstants.POM_FILES_SEPARATOR, false);\r\n\t\t\t\twhile (tkz.hasMoreTokens()) {\r\n\t\t\t\t\tif (resource.getName().equalsIgnoreCase(tkz.nextToken())) {\r\n\t\t\t\t\t\tresult = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}",
"public boolean isGraphEditing() {\r\n \t\treturn graph.getUI().isEditing(graph);\r\n \t}",
"public boolean isSelectionChanged() {\n return selectionChanged;\n }",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public X inheritsPopupMenu(boolean value) {\n component.setInheritsPopupMenu(value);\n return (X) this;\n }",
"public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}",
"public boolean getSuperscript() {\r\n return Superscript;\r\n }",
"public boolean isMethodFromBaseClass() {\n return m_isBaseClass.isSelected();\n }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"@Override\n public boolean select() {\n cell.setState(cell.getRevealedState());\n return true;\n }",
"public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}",
"boolean isPickEnabled();",
"public boolean isEnabled () {\r\n\tcheckWidget();\r\n\treturn getEnabled () && parent.isEnabled ();\r\n}",
"public boolean isSetSuper_priv() {\n return this.__isset.super_priv;\n }",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }",
"public boolean canStartDrag()\n\t{\n\t\treturn !isDragging();\n\t}",
"@Override\n\tpublic boolean getInvertSelection() {\n\t\treturn false;\n\t}",
"@Override\r\n\tprotected boolean hasEditSupport() {\n\t\treturn false;\r\n\t}",
"public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}",
"boolean applicable(Selection selection);",
"public boolean acceptsMouse() \n{\n // If hover shape, return false\n if(RMShapeUtils.getHoverShape()==this) return false;\n \n // Return true if there is a URL, Hover or MouseListener\n return getURL()!=null || getHover()!=null || getListenerCount(RMShapeMouseListener.class)>0;\n}",
"@objid (\"41b411f8-e0e5-49a4-a7fc-7eed29779401\")\n @Override\n public boolean canExecute() {\n if (!MTools.getAuthTool().canModify(this.layer.getRelatedElement())) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"@Override\n\tpublic boolean isDropOk () {\n\t\treturn isAllowed ( selectedAttribute ) ;\n\t}",
"public abstract boolean isInSelectionImage(final Rectangle _r);",
"public boolean isSelected() { return selected; }",
"public boolean hasSelectionLimit()\n {\n return (this.getSelectionLimit() > 0L);\n }",
"public abstract boolean canClip();",
"public boolean canBecombo(){\n \treturn super.getPrice() <4;\n }",
"@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}",
"@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}",
"@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn true;\r\n\t}",
"protected void enablePopupMenu()\n {\n if(viewer.getEditScriptMode())\n newAction.setEnabled(false);\n else\n newAction.setEnabled(true);\n\n FieldActorDescriptor[] selectedActors = getHighlightedActors();\n if(selectedActors.length == 0)\n {\n editAction.setEnabled(false);\n removeAction.setEnabled(false);\n selectAction.setEnabled(false);\n viewAction.setEnabled(false);\n }\n else if(selectedActors.length == 1)\n {\n editAction.setEnabled(true);\n\n if(viewer.getEditScriptMode())\n removeAction.setEnabled(false);\n else\n removeAction.setEnabled(true);\n\n if(selectedActors[0].selected)\n selectAction.setEnabled(false);\n else\n selectAction.setEnabled(true);\n\n viewAction.setEnabled(true);\n }\n else\n {\n if(sameActorTypes(selectedActors))\n editAction.setEnabled(true);\n else\n editAction.setEnabled(false);\n\n if(viewer.getEditScriptMode())\n removeAction.setEnabled(false);\n else\n removeAction.setEnabled(true);\n\n selectAction.setEnabled(false);\n\n viewAction.setEnabled(false);\n }\n }",
"public boolean allowsEditing() {\n\t\tif (type==SOURCE) return true;\n\t\telse return false;\n\t}",
"public boolean isSelected();",
"public boolean isSelected();",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public boolean isPickable() {\n return false;\n }",
"public boolean isSelectingAction() {\n return false;\n }",
"@Override\r\n public boolean isManualShape ()\r\n {\r\n return getGrade() == Evaluation.MANUAL;\r\n }",
"public boolean isVisualizeEditEnabled() {\n return visualizeEditEnabled;\n }",
"public boolean hasSuboperation() {\n return fieldSetFlags()[4];\n }",
"protected Selectable(boolean selected) {\n this.selected = new SimpleBooleanProperty(selected);\n }",
"public boolean isRemovalEnabled() {\r\n // Additional business logic can go here\r\n return (getContactSelection().getMinSelectionIndex() != -1);\r\n }",
"public boolean isSuperAS() {\n return this.isSuperAS;\n }",
"@Override\r\n protected boolean canEdit(Object element) {\n return true;\r\n }",
"@Override\n\t\t\t\tpublic boolean isEnabled() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public Boolean isParentable();",
"public static boolean advancedShapeUp() {\n return TUIMenu.displayValueMenu(\n \"Utiliser les règles Advanced Shape Up! ?\",\n List.of(\n new SupplierAction<>() {\n public String name() {\n return \"Oui\";\n }\n\n public Boolean get() {\n return true;\n }\n },\n new SupplierAction<>() {\n public String name() {\n return \"Non\";\n }\n\n public Boolean get() {\n return false;\n }\n }\n )\n );\n }",
"public boolean isCutEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"public boolean isEnableBatchPicking()\n {\n return enableBatchPicking;\n }",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isSelectorType() {\n return m_selectorType != NestingCustomBase.SELECTION_UNCHECKED;\n }",
"@Override\n\tpublic void setInvertSelection(boolean value) {\n\t\t\n\t}",
"public boolean isSelected() {\r\n return selected;\r\n }",
"@Override\n public boolean isEnabled() {\n return Boolean.TRUE;\n }",
"public boolean isEnabled() {\n return true; // Not supported for MenuComponents\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic void setPickable(boolean b) {\n\t\t\n\t}",
"@Override public boolean isEnabled() {\n return true;\n }"
] |
[
"0.67044604",
"0.64538676",
"0.6165043",
"0.61058927",
"0.60629463",
"0.596818",
"0.5860157",
"0.5847155",
"0.5761821",
"0.57008",
"0.5685047",
"0.56483483",
"0.5633655",
"0.5612412",
"0.56066656",
"0.559461",
"0.55806535",
"0.55657816",
"0.55493593",
"0.5511554",
"0.5511361",
"0.55029577",
"0.54705644",
"0.54678285",
"0.54546297",
"0.5448889",
"0.5446331",
"0.54378283",
"0.54342866",
"0.542813",
"0.54167724",
"0.5415732",
"0.54046273",
"0.5392119",
"0.5382149",
"0.53810686",
"0.53806794",
"0.5370179",
"0.5362498",
"0.53577816",
"0.5356505",
"0.5343343",
"0.53411394",
"0.53402895",
"0.5338464",
"0.5321413",
"0.5317553",
"0.530937",
"0.53077114",
"0.53077114",
"0.5304138",
"0.5304001",
"0.52892226",
"0.52739793",
"0.5269485",
"0.526789",
"0.52586573",
"0.52586573",
"0.52586573",
"0.5258508",
"0.5251344",
"0.5246583",
"0.52452844",
"0.52452844",
"0.52404886",
"0.52335155",
"0.52331245",
"0.5231112",
"0.5227563",
"0.52257276",
"0.52230054",
"0.5222655",
"0.5218642",
"0.5202151",
"0.51998174",
"0.5197136",
"0.5196985",
"0.51948196",
"0.5193231",
"0.51916677",
"0.51916677",
"0.51847285",
"0.518433",
"0.51822495",
"0.51773083",
"0.5173696",
"0.5172093",
"0.51688385",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.516791",
"0.5159261",
"0.51583284"
] |
0.7155647
|
0
|
Returns the "PageBreak" for this shape as defined by shapes that define a page break (currently only RMTable).
|
public int getPageBreak() { return _parent!=null? _parent.getPageBreak() : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@VTID(12)\n excel.XlPageBreak getType();",
"public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }",
"public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }",
"@VTID(14)\n excel.XlPageBreakExtent getExtent();",
"public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }",
"java.lang.String getCustomBreak();",
"public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.WordBreakEnum getWordBreakStyle() {\r\n return wordBreakStyle;\r\n }",
"@Override\n public void pageBreak()\n {\n }",
"@java.lang.Override\n public speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel getBreakLevel() {\n @SuppressWarnings(\"deprecation\")\n speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel result = speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel.valueOf(breakLevel_);\n return result == null ? speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel.EMPTY : result;\n }",
"@java.lang.Override public speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel getBreakLevel() {\n @SuppressWarnings(\"deprecation\")\n speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel result = speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel.valueOf(breakLevel_);\n return result == null ? speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel.EMPTY : result;\n }",
"public Break Break(){\n\t\treturn new Break();\r\n\t}",
"com.google.protobuf.ByteString\n getCustomBreakBytes();",
"public com.google.protobuf.ByteString\n getCustomBreakBytes() {\n java.lang.Object ref = customBreak_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n customBreak_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getCustomBreakBytes() {\n java.lang.Object ref = customBreak_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n customBreak_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@VTID(13)\n void setType(\n excel.XlPageBreak rhs);",
"public java.lang.Boolean getWordBreak() {\r\n return wordBreak;\r\n }",
"public java.lang.String getCustomBreak() {\n java.lang.Object ref = customBreak_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n customBreak_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public BreakController getBreakController() {\n return breakController;\n }",
"@java.lang.Override\n public java.lang.String getCustomBreak() {\n java.lang.Object ref = customBreak_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n customBreak_ = s;\n }\n return s;\n }\n }",
"gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak getCodeBreak();",
"public AvailabilityPeriod getBreakTime() {\n\t\treturn breakTime;\n\t}",
"public List<MLocoBrakeType> getbreaktyp() {\n\t\t\tList<MLocoBrakeType> getbreaktype = new ArrayList<>();\t\t\t\n\t\t\tobj_breaktyperepo.findAll()\n\t\t\t.forEach(getbreaktype::add);\n\t\t\treturn getbreaktype;\n\t\t\t\n\t\t\t\t\t}",
"Break createBreak();",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"@Override\n public void addBreak(STBrType breakType) {\n R r = myFactory.createR();\n Br br = myFactory.createBr();\n if (breakType != null) br.setType(breakType);\n r.getContent().add(br);\n\n myRunContainer.addR(r);\n }",
"public BrowPage getBrowPage() {\n \t\treturn mBrowPage;\n \t}",
"boolean hasCustomBreak();",
"public abstract int getBreakDistance();",
"public Rectangle getPageSize() {\n\t\treturn this.pagesize;\n\t}",
"public Rectangle2D getBoundary()\n {\n \tRectangle2D shape = new Rectangle2D.Float();\n shape.setFrame(location.getX(),location.getY(),12,length);\n return shape;\n }",
"public BreakpointView getBreakpointView() {\n \t\treturn this.breakpointView;\n \t}",
"protected void handlePageBreakBeforeOfGroup( )\n \t{\n \t\tboolean needPageBreak = false;\t\t\n \t\tGroupDesign groupDesign = (GroupDesign) design;\n \t\tif ( groupDesign != null )\n \t\t{\n \t\t\tString pageBreakBefore = groupDesign.getPageBreakBefore( );\n \t\t\tint groupLevel = groupDesign.getGroupLevel( );\n \t\t\tif ( DesignChoiceConstants.PAGE_BREAK_BEFORE_ALWAYS\n \t\t\t\t\t.equals( pageBreakBefore ) )\n \t\t\t{\n \t\t\t\tneedPageBreak = true;\n \t\t\t}\n \t\t\tif ( DesignChoiceConstants.PAGE_BREAK_BEFORE_ALWAYS_EXCLUDING_FIRST\n \t\t\t\t\t.equals( pageBreakBefore ) )\n \t\t\t{\n \t\t\t\tif ( rset.getStartingGroupLevel( ) > groupLevel )\n \t\t\t\t{\n \t\t\t\t\tneedPageBreak = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif ( DesignChoiceConstants.PAGE_BREAK_BEFORE_AUTO\n \t\t\t\t\t.equals( pageBreakBefore )\n \t\t\t\t\t&& groupLevel == 0 )\n \t\t\t{\n \t\t\t\tint startGroupLevel = rset.getStartingGroupLevel( ); \n \t\t\t\tif ( startGroupLevel > 0 )\n \t\t\t\t{\n \t\t\t\t\tneedPageBreak = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif ( needPageBreak )\n \t\t\t{\n \t\t\t\tcontent.getStyle( ).setProperty(\n \t\t\t\t\t\tIStyle.STYLE_PAGE_BREAK_BEFORE, IStyle.ALWAYS_VALUE );\n \t\t\t}\n \t\t}\n \t}",
"public PDRectangle getFringe()\n {\n COSArray rd = annot.getCOSArray(COSName.RD);\n return rd != null ? new PDRectangle(rd) : null;\n }",
"public Branch createBreak(Position pos) {\n return xnf.Break(pos);\n }",
"public boolean isBreakable()\n\t{\n\t\treturn breakable; \n\t}",
"public Dimension getPageSize()\n {\n return pageSize;\n }",
"public PRectangle getFontBBox() {\n Object value = library.getObject(entries, FONT_BBOX);\n if (value instanceof Vector) {\n Vector rectangle = (Vector) value;\n return new PRectangle(rectangle);\n }\n return null;\n }",
"@java.lang.Override\n public java.lang.String getAdBreakId() {\n java.lang.Object ref = adBreakId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n adBreakId_ = s;\n return s;\n }\n }",
"speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel getBreakLevel();",
"public int getBoundary() {\n return boundary;\n }",
"P getSplitPoint();",
"@java.lang.Override\n public com.google.protobuf.ByteString getAdBreakIdBytes() {\n java.lang.Object ref = adBreakId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n adBreakId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"IShape getEndShape();",
"private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }",
"private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"public void setWordBreakStyle(com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.WordBreakEnum wordBreakStyle) {\r\n this.wordBreakStyle = wordBreakStyle;\r\n }",
"public com.google.protobuf.ByteString getAdBreakIdBytes() {\n java.lang.Object ref = adBreakId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n adBreakId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"int getNextStep() {\n if (!includedInLastStep()) {\n return nextStepLength + lastPenaltyLength \n + borderBefore + borderAfter + paddingBefore + paddingAfter;\n } else {\n start = end + 1;\n if (knuthIter.hasNext()) {\n goToNextLegalBreak();\n return nextStepLength + lastPenaltyLength \n + borderBefore + borderAfter + paddingBefore + paddingAfter; \n } else {\n return -1;\n }\n }\n }",
"public int getEndingPage() {\n return endingPage;\n }",
"public RMParagraph getParagraph()\n {\n return new RMParagraph(_textLine.getLineStyle());\n }",
"org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef();",
"public int getRowspan() \n {\n int rowspan = 1;\n List subHeadings = getSubHeadings();\n if (subHeadings != null && subHeadings.size() > 0)\n { \n rowspan = subHeadings.size();\n }\n \n /*\n while (subHeadings != null || subHeadings.size() > 0)\n { \n subHeadings = recurseHeadings\n \n int size = subHeadings.size();\n for (int i=0; i<size; i++) \n {\n int max = 1;\n List recurseHeadings = \n ((Heading)subHeadings.get(i)).getSubHeadings();\n while (recurseHeadings != null \n && recurseHeadings.size() > 0) \n {\n int test = recurseHeadings.size();\n max = (test > max) ? test : max;\n\n recurseHeadings\n }\n \n } \n }\n */\n return rowspan;\n }",
"public int getRenderType()\n {\n return 40;\n }",
"public Graphics getDrawGraphics()\n {\n return ((front == page1) ? page2 : page1).getGraphics();\n }",
"@Override\n\tpublic Pageable nextPageable() {\n\t\treturn null;\n\t}",
"private ParseTree parseBreakStatement() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.BREAK);\n IdentifierToken name = null;\n if (!peekImplicitSemiColon()) {\n name = eatIdOpt();\n }\n eatPossiblyImplicitSemiColon();\n return new BreakStatementTree(getTreeLocation(start), name);\n }",
"public java.lang.String getAdBreakId() {\n java.lang.Object ref = adBreakId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n adBreakId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public PDPage getPage()\n {\n return page;\n }",
"public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}",
"public Rectangle2D getBoundary() {\n return new Rectangle2D(x, y, width, height);\n }",
"IShape getStartShape();",
"BR createBR();",
"List<Rectangle> getWordBoundaries();",
"public SplitDisplayLayout getSplitLayout() {\n return this.mSplitLayout;\n }",
"com.google.appengine.v1.TrafficSplit getSplit();",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(WHOLETBL$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public static String get_draw_page_id(){\r\n\t\t_draw_page_id ++;\r\n\t\t\r\n\t\treturn \"dp\" + _draw_page_id;\r\n\t}",
"public java.math.BigInteger getStartPage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTPAGE$12);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public Builder setCustomBreakBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n customBreak_ = value;\n onChanged();\n return this;\n }",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"@java.lang.Override\n public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef() {\n return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;\n }",
"@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}",
"public Pageable next() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Border getViewportBorder() {\n/* 571 */ return this.viewportBorder;\n/* */ }",
"public SurfaceControl getSplitScreenDividerAnchor() {\n return this.mSplitScreenDividerAnchor;\n }",
"public Shape getRenderObject(\n )\n {return renderObject;}",
"double getStepSize();",
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"public PDBorderStyleDictionary getBorderStyle() {\n/* 386 */ COSBase bs = getCOSObject().getDictionaryObject(COSName.BS);\n/* 387 */ if (bs instanceof COSDictionary)\n/* */ {\n/* 389 */ return new PDBorderStyleDictionary((COSDictionary)bs);\n/* */ }\n/* 391 */ return null;\n/* */ }",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public int getEndPage() {\n return endPage;\n }",
"public int getPagesPerBatch()\n {\n return m_pagesPerBatch;\n }",
"private CTTblPr getCTTblPr() {\r\n\t\tCTTblPr cTTblpr = this.docxTable.getCTTbl().getTblPr() != null ? this.docxTable\r\n\t\t\t\t.getCTTbl().getTblPr() : this.docxTable.getCTTbl()\r\n\t\t\t\t.addNewTblPr();\r\n\t\treturn cTTblpr;\r\n\t}",
"public long getBatch()\n {\n return m_lBatch;\n }",
"public String getPageLayout() {\n\t\treturn layout.getText();\n\t}",
"public Rect getBBox() throws PDFNetException {\n/* 857 */ return new Rect(GetBBox(this.a));\n/* */ }",
"public IfcLengthMeasure getLiningOffset()\n\t{\n\t\treturn this.LiningOffset;\n\t}",
"public void setWordBreak(java.lang.Boolean wordBreak) {\r\n this.wordBreak = wordBreak;\r\n }",
"@Override\r\n\tpublic List<Dept> findAllSplit(Integer currentPage, Integer lineSize,\r\n\t\t\tString column, String keyWord) throws SQLException {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getShapeType() {\n\t\treturn \"Rectangle\";\n\t}",
"public Integer getStep() {\n return step;\n }",
"private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }",
"public int getStep() {\n return step;\n }",
"public int MBR() { return mMBR; }",
"@Override\n\tpublic java.lang.Boolean getIsStepLayout() {\n\t\treturn _scienceApp.getIsStepLayout();\n\t}",
"public Drawing drawing() {\n return fDrawing;\n }",
"public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef() {\n if (defBuilder_ == null) {\n return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;\n } else {\n return defBuilder_.getMessage();\n }\n }",
"public int getStep()\n\t{\n\t\treturn step;\n\t}",
"public int getPageNumber ()\n {\n try {\n if (!isOfType (\"Page\"))\n throw new RuntimeException (\"invalid page reference\");\n return ((PDFDictionary) get (\"Parent\")).getPageOffset (this);\n } catch (Exception e) {\n Options.warn (e.getMessage ());\n return -1;\n }\n }",
"public BorderInfo getBorderStart() {\n return borderStart.getBorderInfo();\n }"
] |
[
"0.6654313",
"0.63536733",
"0.6328301",
"0.62661487",
"0.6155219",
"0.60017204",
"0.5821572",
"0.57150096",
"0.5562731",
"0.55589664",
"0.5535025",
"0.55126005",
"0.5462269",
"0.5451679",
"0.5351736",
"0.5346491",
"0.5325774",
"0.53084785",
"0.52871317",
"0.52614075",
"0.5249815",
"0.52209115",
"0.5173937",
"0.49744818",
"0.49653757",
"0.49187258",
"0.49010158",
"0.48008838",
"0.47606507",
"0.4760308",
"0.47482654",
"0.47202042",
"0.4681066",
"0.46681586",
"0.4630492",
"0.46162176",
"0.4594856",
"0.45899466",
"0.4578959",
"0.4566074",
"0.45656773",
"0.45538455",
"0.45457125",
"0.45354104",
"0.45280576",
"0.45199966",
"0.45018357",
"0.44917864",
"0.44906256",
"0.44723597",
"0.44474527",
"0.4436727",
"0.44313473",
"0.44302878",
"0.44289508",
"0.44173992",
"0.44131434",
"0.4411257",
"0.44088927",
"0.4408407",
"0.4402551",
"0.4401178",
"0.44008994",
"0.43946844",
"0.43894616",
"0.4386312",
"0.4368336",
"0.43673214",
"0.43657896",
"0.4364316",
"0.4362089",
"0.4359272",
"0.43564293",
"0.43445793",
"0.43382826",
"0.4337896",
"0.43322495",
"0.43302035",
"0.43246022",
"0.43181217",
"0.43147835",
"0.42930505",
"0.42918012",
"0.4290896",
"0.42887735",
"0.42793062",
"0.4279257",
"0.427779",
"0.42740348",
"0.42688385",
"0.42538163",
"0.4252807",
"0.42461032",
"0.4238007",
"0.42210376",
"0.42155346",
"0.42122424",
"0.42097753",
"0.42079493",
"0.4201738"
] |
0.6725169
|
0
|
Returns the "PageBreakMax" for this shape as defined by shapes that define a page break (currently only RMTable).
|
public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }",
"@SuppressWarnings(\"unused\")\n public String getMaxTab() {\n return max_tab.get();\n }",
"@VTID(14)\n excel.XlPageBreakExtent getExtent();",
"public Integer getMaxPageSize() {\n return maxPageSize;\n }",
"public T getMaxStep() {\n return maxStep;\n }",
"public int getMax(){\n return tab[rangMax()];\n }",
"public Number getMaximum() {\n return ((ADocument) getDocument()).max;\n }",
"public int getMaximum() {\n \tcheckWidget();\n \treturn maximum;\n }",
"public long getMaximum() {\n\t\treturn this._max;\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public Point getMaxPoint() {\r\n int maximumX = children.get(0).getShapeEndingPoint().getX();\r\n int maximumY = children.get(0).getShapeEndingPoint().getY();\r\n for(IShape shape: children) {\r\n if(shape.getShapeEndingPoint().getX() > maximumX) {\r\n maximumX = shape.getShapeEndingPoint().getX();\r\n }\r\n if(shape.getShapeEndingPoint().getY() > maximumY) {\r\n maximumY = shape.getShapeEndingPoint().getY();\r\n }\r\n }\r\n maxPoint = new Point(maximumX,maximumY);\r\n return maxPoint;\r\n }",
"public int getMAX_PROPERTY() {\r\n\t\treturn MAX_PROPERTY;\r\n\t}",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public int getMax()\n\t{\n\t\treturn max;\n\t}",
"@JSProperty(\"maxRange\")\n double getMaxRange();",
"public int getMax() {\n\t\treturn mMax;\n\t}",
"public int getMaximum() {\r\n return max;\r\n }",
"public int getPageBreak() { return _parent!=null? _parent.getPageBreak() : 0; }",
"@Override\n\tpublic String findMaxBikeBatchNumber() throws Exception {\n\t\treturn bikeMapper.selectMaxBatch();\n\t}",
"public Point getMax () {\r\n\r\n\treturn getB();\r\n }",
"public int getMaximum() {\n return this.iMaximum;\n }",
"public int getDMAX() {\n\t\t\treturn DMAX;\r\n\t\t}",
"public long getMax() {\n return m_Max;\n }",
"public int getMaxRangeEnd() {\n return maximumViewableRange.getTo();\n }",
"public int getPROC_MAX() {\r\n return PROC_MAX;\r\n }",
"public Long getMaximum() {\r\n\t\treturn maximum;\r\n\t}",
"@VTID(12)\n excel.XlPageBreak getType();",
"@JSProperty(\"max\")\n double getMax();",
"public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }",
"public Integer getMax() {\n\t\t\tif (hotMinMax) {\n\t\t\t\tConfigValue rawMinMax = new ConfigValue();\n\t\t\t\ttry {\n\t\t\t\t\trawSrv.getCfgMinMax(name, rawMinMax);\n\t\t\t\t\t// TODO: FIX HERE\n\t\t\t\t\treturn 100;\n\t\t\t\t} catch (TVMException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn new Integer(max);\n\t\t\t}\n\t\t\t// ....\n\t\t\treturn 100;\n\t\t}",
"public String getMax() { \n\t\treturn getMaxElement().getValue();\n\t}",
"public int getMaxRange() {\n\t\treturn max_range;\n\t}",
"public String max()\r\n\t {\r\n\t\t if(this.max != null)\r\n\t\t {\r\n\t\t\t return this.max.getValue(); \r\n\t\t }\r\n\t\t return null;\r\n\t }",
"public double getMaxRange() {\n return maxRange;\n }",
"public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }",
"public synchronized int getMax() {\r\n\t\treturn mMax;\r\n\t}",
"public Integer getMaxPax() {\n return this.maxPax;\n }",
"public Number getMaximumNumber() {\n/* 221 */ if (this.maxObject == null) {\n/* 222 */ this.maxObject = new Long(this.max);\n/* */ }\n/* 224 */ return this.maxObject;\n/* */ }",
"public Integer max() {\n return this.max;\n }",
"public int getMaxDrawOrder()\n\t{\n\t\treturn getObject().getMaxDrawOrder();\n\t}",
"public int getMax() {\n\t\treturn getMax(0.0f);\n\t}",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public String getMax() {\n return max;\n }",
"protected final int getMax() {\n\treturn(this.max);\n }",
"public int getCustomerMaxTargetFloor();",
"public byte get_max() {\n return (byte)getSIntBEElement(offsetBits_max(), 8);\n }",
"public int getMaxRow() {\n return maxRow;\n }",
"public int getMaxRound() {\n return maxRound;\n }",
"java.math.BigDecimal getWBMaximum();",
"public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }",
"public int getMaxInSingleRow() {\n return maxInSingleRow;\n }",
"public int getMax()\n {\n return 0;\n }",
"public abstract int getMaximumValue();",
"public int getScrollMaxX(){\n return (int)Math.max(0, mMaxPaintX - getWidth() / 2f);\n }",
"public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }",
"public double getMaxValue() {\n\t\tdouble max = Double.NEGATIVE_INFINITY;\n\t\tfor (int i = 0; i < dataSheet.getDesignCount(); i++) {\n\t\t\tdouble value = dataSheet.getDesign(i).getDoubleValue(this);\n\t\t\tif (value > max)\n\t\t\t\tmax = value;\n\t\t}\n\t\treturn max;\n\t}",
"public int getxMax() {\n\t\treturn xMax;\n\t}",
"@Override\r\n public Dimension getMaximumSize() {\r\n \t// get current preferred size\r\n \tDimension d = isMaximumSizeSet() ? super.getMaximumSize() : new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\r\n // forward\r\n return isExpanded() ? d : (isMaximumSizeSet() ?\r\n \t\tnew Dimension(d.width,minimumCollapsedHeight) :\r\n \t\tnew Dimension(Integer.MAX_VALUE,minimumCollapsedHeight));\r\n }",
"public int maxL()\r\n {\r\n return metro.numberOfLines - 1;\r\n }",
"protected String getMaximum()\n {\n return maximum;\n }",
"org.apache.xmlbeans.XmlDecimal xgetWBMaximum();",
"public int findMaxValue() {\n\t\treturn findMaxValue( this );\n\t}",
"public int getMaxHeight() {\n\t\treturn maxHeight;\n\t\t//Quickly return the stored max height info\n\t}",
"@Override\r\n\tpublic String getReferenceKey() {\n\t\treturn \"max\";\r\n\t}",
"int getMaximum();",
"@JsonIgnore\r\n public String getMax() {\r\n return OptionalNullable.getFrom(max);\r\n }",
"float getXStepMax();",
"public long getPropertyBalanceMax()\n {\n return iPropertyBalanceMax.getValue();\n }",
"public int getMaxRow();",
"public int getMaxValue(){\n\t\treturn maxValue;\n\t}",
"public Double getMaximum() {\n\t\treturn maximum;\n\t}",
"int maxNoteValue();",
"public int getMaximumNumber() {\n\t\treturn 99999;\n\t}",
"public int maximum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer maxRepr = xft.maximum();\n \n assert(maxRepr != null);\n \n int index = maxRepr.intValue()/binSz;\n \n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Entry<Integer, Integer> lastItem = map.lastEntry();\n \n assert(lastItem != null);\n \n return lastItem.getKey();\n }",
"public float getMax()\n {\n parse_text();\n return max;\n }",
"public int getMaxValue() {\n return maxValue;\n }",
"public long getPropertyBalanceMax();",
"private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }",
"public int getMaximalSize() {\n return maximalSize;\n }",
"public int getMaxFloor();",
"public int getMaximumSize() {\n return maximumSize;\n }",
"public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }",
"public StringDt getMaxElement() { \n\t\tif (myMax == null) {\n\t\t\tmyMax = new StringDt();\n\t\t}\n\t\treturn myMax;\n\t}",
"public int getMaxRangeStart() {\n return maximumViewableRange.getFrom();\n }",
"public double getMaximum() {\n return (max);\n }",
"public Integer getMaxProperties() {\n\t\treturn maxProperties;\n\t}",
"public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}",
"public Dimension getMaximumSize()\n {\n return new Dimension(32767, 32767);\n }",
"@In Integer max();",
"@In Integer max();",
"public int getMaxPayRaise ()\r\n {\r\n return maxPayRaise;\r\n }",
"public int getMaxNumOfStages() {\n return maxNumOfStages;\n }",
"org.apache.xmlbeans.XmlDecimal xgetMaximum();",
"public String getPortRangeMax() {\n return portRangeMax;\n }",
"public double getMaximumValue() { return this.maximumValue; }",
"private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }",
"public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }"
] |
[
"0.7100263",
"0.5959658",
"0.5945745",
"0.59445924",
"0.5899366",
"0.5780515",
"0.57683223",
"0.5714591",
"0.5704993",
"0.56934166",
"0.56934166",
"0.5680958",
"0.5677546",
"0.56485784",
"0.56485784",
"0.56485784",
"0.5648373",
"0.56469226",
"0.56399345",
"0.5635867",
"0.5635525",
"0.563289",
"0.5632004",
"0.5601142",
"0.55725116",
"0.5540657",
"0.55228513",
"0.5521612",
"0.55184716",
"0.5501814",
"0.5479394",
"0.54754174",
"0.5468614",
"0.5463421",
"0.5462631",
"0.5456213",
"0.54524505",
"0.54518646",
"0.545034",
"0.5446299",
"0.5444734",
"0.54392314",
"0.543879",
"0.54235107",
"0.5413426",
"0.54018974",
"0.5398456",
"0.539729",
"0.53858894",
"0.53768516",
"0.5368296",
"0.53605676",
"0.5358084",
"0.53496945",
"0.5344981",
"0.534487",
"0.5338592",
"0.5333525",
"0.53291076",
"0.5328363",
"0.53174096",
"0.5302326",
"0.5298975",
"0.5297869",
"0.5295339",
"0.5293685",
"0.5293376",
"0.5281557",
"0.527884",
"0.5278645",
"0.52729726",
"0.52708554",
"0.5269461",
"0.5268576",
"0.52682036",
"0.5259328",
"0.525819",
"0.52569044",
"0.52562916",
"0.52546585",
"0.52507716",
"0.52472764",
"0.52463746",
"0.5239172",
"0.5237375",
"0.5226395",
"0.52241147",
"0.521982",
"0.5219009",
"0.5212704",
"0.5210851",
"0.5210765",
"0.5210765",
"0.51992846",
"0.5192931",
"0.519091",
"0.5189395",
"0.5189229",
"0.51712537",
"0.5170428"
] |
0.72452796
|
0
|
Returns the "PageBreakPage" for this shape, or the page number relative to the last page break, as defined by shapes that define explicit page breaks (currently only RMTable).
|
public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }",
"public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }",
"public int getPageBreak() { return _parent!=null? _parent.getPageBreak() : 0; }",
"@VTID(12)\n excel.XlPageBreak getType();",
"public int getPageNumber ()\n {\n try {\n if (!isOfType (\"Page\"))\n throw new RuntimeException (\"invalid page reference\");\n return ((PDFDictionary) get (\"Parent\")).getPageOffset (this);\n } catch (Exception e) {\n Options.warn (e.getMessage ());\n return -1;\n }\n }",
"@VTID(14)\n excel.XlPageBreakExtent getExtent();",
"public int getPageNumber() {\r\n\t\t\t\treturn currentPage;\r\n\t\t\t}",
"public int getEndingPage() {\n return endingPage;\n }",
"public int getActualPageNumber() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.page;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"int getPageNumber();",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPageNumber() {\n return mPageNumber;\n }",
"public int getPageNumber() {\n return mPageNumber;\n }",
"public int getEndPage() {\n return endPage;\n }",
"public int getPageNo() {\n return pageNo;\n }",
"public String getPageNum() {\r\n return pageNum;\r\n }",
"public SQLInteger getPage() {\n\t\treturn page;\n\t}",
"public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}",
"public Integer getPage() {\n return page;\n }",
"public int getPagesPerBatch()\n {\n return m_pagesPerBatch;\n }",
"private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }",
"public Rectangle getPageSize() {\n\t\treturn this.pagesize;\n\t}",
"public String getNextPageMarker() {\n return this.nextPageMarker;\n }",
"public io.dstore.values.IntegerValue getPageNo() {\n return pageNo_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n }",
"public int getNumPages()\n {\n return numPages;\n }",
"public io.dstore.values.IntegerValue getPageNo() {\n return pageNo_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n }",
"public Integer getPageIdx() {\n return pageIdx;\n }",
"public int getPageEnd() {\n int val = (_pageIndex + 1) * _pageSize;\n return (val > _totalRecords) ? _totalRecords : val;\n }",
"public org.biocatalogue.x2009.xml.rest.PageSizeParameter getPageSize()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.PageSizeParameter target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.PageSizeParameter)get_store().find_element_user(PAGESIZE$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public static String get_draw_page_id(){\r\n\t\t_draw_page_id ++;\r\n\t\t\r\n\t\treturn \"dp\" + _draw_page_id;\r\n\t}",
"public int getPageEntityIndex() {\n return this.pagenum * this.pagesize;\n }",
"public int getTotalPage() {\n return getSize() == 0 ? 1 : (int) Math.ceil((double) total / (double) getSize());\n }",
"public int getPages() {\n return pages;\n }",
"public int getPages() {\n return pages;\n }",
"public int getPages() {\n return pages;\n }",
"Integer getPage();",
"public int getPageStart() {\n return _totalRecords == 0 ? 0 : ((_pageIndex) * _pageSize) + 1;\n }",
"public int getLastPage() {\n\t\treturn lastPage;\n\t}",
"@VTID(13)\n void setType(\n excel.XlPageBreak rhs);",
"public long pageNumber(MemRef r) {\n return r.addr >> mPageBits;\n }",
"@Override\r\n\tpublic int nombrePage() {\n\t\treturn 0;\r\n\t}",
"public io.dstore.values.IntegerValueOrBuilder getPageNoOrBuilder() {\n return getPageNo();\n }",
"public int getStartPage() {\n return startPage;\n }",
"public Integer getPageX() {\n return pageX;\n }",
"public int getStartingPage() {\n return startingPage;\n }",
"int getNumPages();",
"public io.dstore.values.IntegerValueOrBuilder getPageNoOrBuilder() {\n return getPageNo();\n }",
"public Long getTotalPageNum() {\n\t\treturn this.totalPageNum;\n\t}",
"public Integer getCurrentPageSize();",
"public int getPages()\n {\n return pages;\n }",
"public int getPageEndEntry() {\n\t\tint end = this.skipEntries + NUM_PER_PAGE - 1;\n\t\tif (end > this.totalEntries) {\n\t\t\tend = this.totalEntries;\n\t\t}\n\t\treturn end;\n\t}",
"public int numPages() {\n return numPages;\n }",
"public int getPageIncrement() {\n \tcheckWidget();\n \treturn pageIncrement;\n }",
"public java.math.BigInteger getStartPage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTPAGE$12);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public int getTotalPages()\r\n {\r\n return pageNames.size()-1;\r\n }",
"protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}",
"@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }",
"public Integer getCurrentPage();",
"@Override\n public void pageBreak()\n {\n }",
"public int getDefaultPage()\n\t{\n\t\treturn defaultPage;\n\t}",
"public Number getCurrentPage() {\r\n\t\treturn this.currentPage;\r\n\t}",
"public Dimension getPageSize()\n {\n return pageSize;\n }",
"int getPagesAmount();",
"public PdfPage getLastPage() {\n if (this.pages == null || this.pages.isEmpty()) {\n return null;\n }\n return this.pages.get(this.pages.size() - 1);\n }",
"public io.dstore.values.IntegerValue getPageNo() {\n if (pageNoBuilder_ == null) {\n return pageNo_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n } else {\n return pageNoBuilder_.getMessage();\n }\n }",
"int getPageSize();",
"int getPageSize();",
"int getPageSize();",
"int getPageSize();",
"public io.dstore.values.IntegerValue getPageNo() {\n if (pageNoBuilder_ == null) {\n return pageNo_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n } else {\n return pageNoBuilder_.getMessage();\n }\n }",
"int getPage();",
"public int getPagesDisplayed() {\n return getTableModelSource().getTableModel().getPageCount();\n }",
"public int getPageSize() {\n int i;\n int i2;\n RecyclerView recyclerView = this.mRecyclerView;\n if (getOrientation() == 0) {\n i = recyclerView.getWidth() - recyclerView.getPaddingLeft();\n i2 = recyclerView.getPaddingRight();\n } else {\n i = recyclerView.getHeight() - recyclerView.getPaddingTop();\n i2 = recyclerView.getPaddingBottom();\n }\n return i - i2;\n }",
"public PDPage getPage()\n {\n return page;\n }",
"public int getPagesize() {\n return pagesize_;\n }",
"public int getPageCount() {\n return mPdfRenderer.getPageCount();\n }",
"public io.dstore.values.IntegerValueOrBuilder getPageNoOrBuilder() {\n if (pageNoBuilder_ != null) {\n return pageNoBuilder_.getMessageOrBuilder();\n } else {\n return pageNo_ == null ?\n io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n }\n }",
"public int getPageId() {\n return this.page_id;\n }",
"public io.dstore.values.IntegerValueOrBuilder getPageNoOrBuilder() {\n if (pageNoBuilder_ != null) {\n return pageNoBuilder_.getMessageOrBuilder();\n } else {\n return pageNo_ == null ?\n io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n }\n }",
"public int getPagesize() {\n return pagesize_;\n }",
"public int getPages(){\n return pages;\n }",
"public org.biocatalogue.x2009.xml.rest.PageSizeParameter addNewPageSize()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.PageSizeParameter target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.PageSizeParameter)get_store().add_element_user(PAGESIZE$4);\r\n return target;\r\n }\r\n }",
"@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }",
"@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }",
"@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }",
"public int getCurrentPage();",
"public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }",
"public void setEndPage(int value) {\n this.endPage = value;\n }",
"long getPageSize();",
"long getPageSize();",
"long getPageSize();",
"@Override\n\tpublic Pageable nextPageable() {\n\t\treturn null;\n\t}",
"public Number getPagination() {\n return (Number)getAttributeInternal(PAGINATION);\n }",
"@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }",
"@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }",
"@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }",
"public int numPages() {\n // some code goes here\n return (int) Math.ceil(m_f.length() / BufferPool.PAGE_SIZE);\n }"
] |
[
"0.67602587",
"0.66710526",
"0.6623809",
"0.64464176",
"0.6315834",
"0.6226555",
"0.6112965",
"0.60605395",
"0.60277224",
"0.5940666",
"0.5921201",
"0.5921201",
"0.5921201",
"0.5921201",
"0.59073174",
"0.59073174",
"0.5895329",
"0.5884793",
"0.58801836",
"0.5824487",
"0.5787601",
"0.5765825",
"0.57326186",
"0.56996495",
"0.5642353",
"0.556526",
"0.55476844",
"0.5543452",
"0.5539634",
"0.5530262",
"0.5521396",
"0.5499502",
"0.5489981",
"0.5486432",
"0.545974",
"0.54588044",
"0.54588044",
"0.54531395",
"0.54490864",
"0.5442751",
"0.5436524",
"0.5433152",
"0.5431052",
"0.54192394",
"0.5393641",
"0.5385409",
"0.5383458",
"0.53707165",
"0.5365337",
"0.53593296",
"0.53523046",
"0.53501827",
"0.5349404",
"0.5348275",
"0.5346033",
"0.5325272",
"0.5324156",
"0.531537",
"0.5311365",
"0.530708",
"0.53065693",
"0.5278029",
"0.5274124",
"0.5262748",
"0.52604836",
"0.523686",
"0.52131015",
"0.5186367",
"0.51789963",
"0.51789963",
"0.51789963",
"0.51789963",
"0.5157262",
"0.51480776",
"0.51464075",
"0.51452786",
"0.5141876",
"0.5138154",
"0.5137262",
"0.5130896",
"0.5130408",
"0.5127821",
"0.5123101",
"0.5116741",
"0.510167",
"0.5060262",
"0.5060262",
"0.5060262",
"0.5055946",
"0.5046631",
"0.504609",
"0.5044442",
"0.5044442",
"0.5044442",
"0.50408185",
"0.5034012",
"0.50232047",
"0.50232047",
"0.50232047",
"0.501926"
] |
0.6690081
|
1
|
Returns the "PageBreakPageMax" for this shape, or the max page number relative to the last and next page breaks, as defined by shapes that define explicit page breaks (currently only RMTable).
|
public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }",
"public Integer getMaxPageSize() {\n return maxPageSize;\n }",
"@VTID(14)\n excel.XlPageBreakExtent getExtent();",
"public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }",
"private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }",
"public int getPageBreak() { return _parent!=null? _parent.getPageBreak() : 0; }",
"public int getEndPage() {\n return endPage;\n }",
"public int getLastPage() {\n\t\treturn lastPage;\n\t}",
"public T getMaxStep() {\n return maxStep;\n }",
"public int getPagesPerBatch()\n {\n return m_pagesPerBatch;\n }",
"public int getEndingPage() {\n return endingPage;\n }",
"Integer getMaxPageResults();",
"public org.biocatalogue.x2009.xml.rest.PageSizeParameter getPageSize()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.PageSizeParameter target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.PageSizeParameter)get_store().find_element_user(PAGESIZE$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"@VTID(12)\n excel.XlPageBreak getType();",
"public int getMax() {\n\t\treturn max;\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public int getPageEnd() {\n int val = (_pageIndex + 1) * _pageSize;\n return (val > _totalRecords) ? _totalRecords : val;\n }",
"public int getMax()\n\t{\n\t\treturn max;\n\t}",
"public int getPROC_MAX() {\r\n return PROC_MAX;\r\n }",
"public Number getMaximum() {\n return ((ADocument) getDocument()).max;\n }",
"public long getMaximum() {\n\t\treturn this._max;\n\t}",
"@SuppressWarnings(\"unused\")\n public String getMaxTab() {\n return max_tab.get();\n }",
"public int getMaximum() {\n \tcheckWidget();\n \treturn maximum;\n }",
"@Override\n\tpublic String findMaxBikeBatchNumber() throws Exception {\n\t\treturn bikeMapper.selectMaxBatch();\n\t}",
"public Point getMaxPoint() {\r\n int maximumX = children.get(0).getShapeEndingPoint().getX();\r\n int maximumY = children.get(0).getShapeEndingPoint().getY();\r\n for(IShape shape: children) {\r\n if(shape.getShapeEndingPoint().getX() > maximumX) {\r\n maximumX = shape.getShapeEndingPoint().getX();\r\n }\r\n if(shape.getShapeEndingPoint().getY() > maximumY) {\r\n maximumY = shape.getShapeEndingPoint().getY();\r\n }\r\n }\r\n maxPoint = new Point(maximumX,maximumY);\r\n return maxPoint;\r\n }",
"public int getPageEndEntry() {\n\t\tint end = this.skipEntries + NUM_PER_PAGE - 1;\n\t\tif (end > this.totalEntries) {\n\t\t\tend = this.totalEntries;\n\t\t}\n\t\treturn end;\n\t}",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public Integer getMaxPax() {\n return this.maxPax;\n }",
"public int getMax() {\n\t\treturn mMax;\n\t}",
"public int getMaximum() {\r\n return max;\r\n }",
"public int getActualPageNumber() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.page;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"public int getScrollMaxX(){\n return (int)Math.max(0, mMaxPaintX - getWidth() / 2f);\n }",
"public int getMaximum() {\n return this.iMaximum;\n }",
"public int getMaxRangeEnd() {\n return maximumViewableRange.getTo();\n }",
"public Rectangle getPageSize() {\n\t\treturn this.pagesize;\n\t}",
"public PdfPage getLastPage() {\n if (this.pages == null || this.pages.isEmpty()) {\n return null;\n }\n return this.pages.get(this.pages.size() - 1);\n }",
"public int getMAX_PROPERTY() {\r\n\t\treturn MAX_PROPERTY;\r\n\t}",
"public int getMaxRange() {\n\t\treturn max_range;\n\t}",
"public int getMax(){\n return tab[rangMax()];\n }",
"public int getMaximumNumber() {\n\t\treturn 99999;\n\t}",
"public int getDMAX() {\n\t\t\treturn DMAX;\r\n\t\t}",
"public synchronized int getMax() {\r\n\t\treturn mMax;\r\n\t}",
"public Number getMaximumNumber() {\n/* 221 */ if (this.maxObject == null) {\n/* 222 */ this.maxObject = new Long(this.max);\n/* */ }\n/* 224 */ return this.maxObject;\n/* */ }",
"public int maxL()\r\n {\r\n return metro.numberOfLines - 1;\r\n }",
"protected final int getMax() {\n\treturn(this.max);\n }",
"private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }",
"public long getReportLimit()\n {\n if (this.rptLimitCount == 0L) {\n this.rptLimitCount = 1L;\n }\n return this.rptLimitCount;\n }",
"public int getPageNumber ()\n {\n try {\n if (!isOfType (\"Page\"))\n throw new RuntimeException (\"invalid page reference\");\n return ((PDFDictionary) get (\"Parent\")).getPageOffset (this);\n } catch (Exception e) {\n Options.warn (e.getMessage ());\n return -1;\n }\n }",
"public Long getMaximum() {\r\n\t\treturn maximum;\r\n\t}",
"abstract public int maxDoc();",
"private int getMaxPages(int numResults, int resultsPerPage)\n {\n return (int) Math.ceil((double) (numResults / (resultsPerPage * 1.0)));\n }",
"public long getMax() {\n return m_Max;\n }",
"public int getMaxNumOfStages() {\n return maxNumOfStages;\n }",
"public int getMaxRound() {\n return maxRound;\n }",
"public int getxMax() {\n\t\treturn xMax;\n\t}",
"public Integer max() {\n return this.max;\n }",
"@JSProperty(\"maxRange\")\n double getMaxRange();",
"public int findMaxValue() {\n\t\treturn findMaxValue( this );\n\t}",
"public synchronized int getLastPos() {\n PageMeta pm = pmList.get(numPages - 1);\n return pm.startPos + pm.numPairs - 1;\n }",
"public Integer getMax() {\n\t\t\tif (hotMinMax) {\n\t\t\t\tConfigValue rawMinMax = new ConfigValue();\n\t\t\t\ttry {\n\t\t\t\t\trawSrv.getCfgMinMax(name, rawMinMax);\n\t\t\t\t\t// TODO: FIX HERE\n\t\t\t\t\treturn 100;\n\t\t\t\t} catch (TVMException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn new Integer(max);\n\t\t\t}\n\t\t\t// ....\n\t\t\treturn 100;\n\t\t}",
"public void setEndPage(int value) {\n this.endPage = value;\n }",
"public byte get_max() {\n return (byte)getSIntBEElement(offsetBits_max(), 8);\n }",
"public static int getPageSize() {\n\t\treturn Unsafe.get().pageSize();\n\t}",
"public String getPortRangeMax() {\n return portRangeMax;\n }",
"public double getMaxRange() {\n return maxRange;\n }",
"public int getMaxInteger() {\n\t\treturn this.maxInteger;\n\t}",
"public static int offset_max() {\n return (64 / 8);\n }",
"public Integer getCurrentPageSize();",
"public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }",
"public int getMaxDrawOrder()\n\t{\n\t\treturn getObject().getMaxDrawOrder();\n\t}",
"public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }",
"public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }",
"public int getPageSize() {\n int i;\n int i2;\n RecyclerView recyclerView = this.mRecyclerView;\n if (getOrientation() == 0) {\n i = recyclerView.getWidth() - recyclerView.getPaddingLeft();\n i2 = recyclerView.getPaddingRight();\n } else {\n i = recyclerView.getHeight() - recyclerView.getPaddingTop();\n i2 = recyclerView.getPaddingBottom();\n }\n return i - i2;\n }",
"public int getMax() {\n\t\treturn getMax(0.0f);\n\t}",
"public Dimension getPageSize()\n {\n return pageSize;\n }",
"public int getEndIndex() {\n int cacheRange = 100 / numResultsPerPage;\n int base = pageNumber % cacheRange;\n if (base == 0) {\n return 100;\n } else {\n return base * numResultsPerPage;\n }\n }",
"public int getMaxRow() {\n return maxRow;\n }",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public abstract int getMaximumDividerLocation(JSplitPane jc);",
"public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }",
"public int getPageSize()\n {\n return bouquet.getSheaf().getPageSize();\n }",
"public Point getMax () {\r\n\r\n\treturn getB();\r\n }",
"public Integer getGridPerPage() {\n return (Integer) get(\"grid_per_page\");\n }",
"public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }",
"public String getNextPageMarker() {\n return this.nextPageMarker;\n }",
"public int getMaxValue(){\n\t\treturn maxValue;\n\t}",
"public abstract int getMaximumValue();",
"public int getMaxValue() {\n return maxValue;\n }",
"public int getMaximumSize() {\n return maximumSize;\n }",
"public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }",
"public String max()\r\n\t {\r\n\t\t if(this.max != null)\r\n\t\t {\r\n\t\t\t return this.max.getValue(); \r\n\t\t }\r\n\t\t return null;\r\n\t }",
"public int getyMax() {\n\t\treturn yMax;\n\t}",
"public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }",
"public int upperBound() {\n\t\tif(step > 0)\n\t\t\treturn last;\n\t\telse\n\t\t\treturn first;\n\t}",
"org.apache.xmlbeans.XmlDecimal xgetWBMaximum();",
"public int getMaxRangeStart() {\n return maximumViewableRange.getFrom();\n }",
"public int getPageNumber() {\r\n\t\t\t\treturn currentPage;\r\n\t\t\t}",
"@JsonProperty(\"maxProcesses\")\r\n @JacksonXmlProperty(localName = \"max_processes\", isAttribute = true)\r\n public Integer getMaxProcesses() {\r\n return maxProcesses;\r\n }"
] |
[
"0.73596126",
"0.63153195",
"0.6042982",
"0.5909369",
"0.5879253",
"0.58497715",
"0.58230466",
"0.57849336",
"0.5655174",
"0.564087",
"0.56357664",
"0.5623085",
"0.5611513",
"0.5583896",
"0.5554041",
"0.5554041",
"0.554548",
"0.5519456",
"0.55054843",
"0.55003995",
"0.5498428",
"0.5494123",
"0.5482051",
"0.54793113",
"0.54703176",
"0.54668885",
"0.54612905",
"0.54612905",
"0.54612905",
"0.5455879",
"0.5453647",
"0.5451315",
"0.5435766",
"0.5425666",
"0.5423097",
"0.5399384",
"0.5385209",
"0.5366667",
"0.5355782",
"0.534231",
"0.53358966",
"0.5312795",
"0.53057235",
"0.5276711",
"0.5266504",
"0.526268",
"0.5259404",
"0.52563703",
"0.52438533",
"0.5238686",
"0.52380306",
"0.52226335",
"0.52180386",
"0.52167076",
"0.52112424",
"0.5174533",
"0.51694757",
"0.5164022",
"0.5160938",
"0.51598746",
"0.51492995",
"0.51478004",
"0.5145625",
"0.51427275",
"0.5127668",
"0.51262414",
"0.5120359",
"0.51162595",
"0.5113109",
"0.51095116",
"0.51065266",
"0.5105864",
"0.51026636",
"0.50996166",
"0.509714",
"0.50969136",
"0.5088203",
"0.5086009",
"0.50810564",
"0.5080085",
"0.5079513",
"0.50763005",
"0.5075549",
"0.5071696",
"0.5069012",
"0.5068431",
"0.50653404",
"0.5064356",
"0.50468004",
"0.503778",
"0.5036998",
"0.50345737",
"0.50342923",
"0.50317",
"0.5027241",
"0.5014485",
"0.5011905",
"0.5007925",
"0.5007514",
"0.5003805"
] |
0.7428542
|
0
|
Toplevel generic shape painting sets transform and opacity then does a paintAll. If a effect is present, has it paint instead of doing paintAll.
|
public void paint(RMShapePainter aPntr)
{
// Clone graphics
RMShapePainter pntr = aPntr.clone();
// Apply transform for shape
if(isRSS()) pntr.transform(getTransform().awt());
else pntr.translate(getX(), getY());
// If shape bounds don't intersect clip bounds, just return
Rectangle cbounds = pntr.getClip()!=null? pntr.getClipBounds() : null;
if(cbounds!=null && !getBoundsMarkedDeep().intersects(cbounds))
return;
// If shape is semi-transparent, apply composite
if(getOpacityDeep()!=1) {
float op = pntr.isEditing()? Math.max(.15f, getOpacityDeep()) : getOpacityDeep();
pntr.setOpacity(op);
}
// If shape has a effect, have it paint
if(getEffect()!=null)
getEffect().paint(pntr, this);
// Otherwise paintShapeAll
else paintShapeAll(pntr);
// Dispose of graphics
pntr.dispose();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}",
"public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}",
"public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}",
"public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}",
"public void paint() {\n paintStrategy.paintImmediately();\n }",
"@Override\n public synchronized void paint(Graphics g) {\n if (!shouldPaint()) {\n return;\n }\n\n if (g instanceof Graphics2D) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHints(argoRenderingHints);\n\t double scale = getScale();\n g2.scale(scale, scale);\n }\n getLayerManager().paint(g);\n //getLayerManager().getActiveLayer().paint(g);\n if (_canSelectElements) {\n _selectionManager.paint(g);\n _modeManager.paint(g);\n }\n }",
"protected void doPaint(Graphics2D g, T component, int width, int height)\n/* */ {\n/* 353 */ for (Painter p : getPainters()) {\n/* 354 */ Graphics2D temp = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 357 */ p.paint(temp, component, width, height);\n/* 358 */ if (isClipPreserved()) {\n/* 359 */ g.setClip(temp.getClip());\n/* */ }\n/* */ } finally {\n/* 362 */ temp.dispose();\n/* */ }\n/* */ }\n/* */ }",
"public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}",
"@Override\n protected void paintInternal(IGraphicsTarget target,\n PaintProperties paintProps) throws VizException {\n }",
"@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}",
"protected void conditionallyRepaint()\n {\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.conditionallyRepaint();\n }\n }",
"@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }",
"public void paint(Graphics g) {\r\n super.paint(g); // call method paint() of super class (JFrame)\r\n if (ge != null) { // if the paint tool exists\r\n System.out.println(\"calling method redrawAll() of PaintTool.\");\r\n ge.redrawAll(g); // call method redrawAll() of class PaintTool\r\n System.out.println(\"method redrawAll() of class PaintTool executed.\");\r\n }\r\n }",
"public void PRCRender() {\n if(rollOver) {\n object.getStyle().setFillColorFloat(20);\n } else if(dragging) {\n object.getStyle().setFillColorFloat(5);\n } else {\n object.style.setFillColorFloat(100);\n }\n object.render();\n }",
"protected abstract void paint(Painter painter);",
"@Override\n public void draw(Batch batch, float parentAlpha) {\n batch.end();\n\n\n //do custom shape rendering\n shape.setProjectionMatrix(batch.getProjectionMatrix());\n\n shape.begin(ShapeRenderer.ShapeType.Filled);\n //setBounds(getParent().getX(), getParent().getY(), getParent().getWidth(), getParent().getWidth());\n\n\n shape.setColor(Color.GREEN);\n Vector2 coords = new Vector2(getX(), getY());\n localToStageCoordinates(coords);\n shape.circle(coords.x + getWidth()/2, coords.y + getHeight()/2, 10);\n\n shape.circle(coords.x, coords.y, 10);\n shape.circle(coords.x, coords.y+getHeight(), 10);\n shape.circle(coords.x + getWidth(), coords.y, 10);\n shape.circle(coords.x + getWidth(), coords.y + getHeight(), 10);\n\n shape.end();\n shape.setColor(Color.WHITE);\n\n //continue batch\n batch.begin();\n }",
"public float getOpacityDeep()\n{\n float op = getOpacity();\n for(RMShape s=_parent; s!=null; s=s._parent) op *= s.getOpacity();\n return op;\n}",
"protected void setPaintAllCmd(){\n System.out.println(\"GralCurveView.Info - paintallTrigger;\");\n bPaintAllCmd = true; //used in implementation level to force a paint of the whole curves.\n widgg.bNewGetVariables= true; //used to get faulty variables newly with an error message.\n }",
"private void activeDrawEffects() {\n }",
"@Override\n public void paint(Graphics g) {\n AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER,\n .8f);\n Color old = g.getColor();\n Graphics2D g2d = (Graphics2D) g;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n Composite composite = g2d.getComposite();\n g2d.setColor(new Color(0, 0, 0, 0));\n g2d.fillRect(0, 0, getWidth(), getHeight());\n g2d.setColor(Color.blue);\n g2d.setComposite(ac);\n g2d.fillPolygon(new int[]{3, 3, 7, 7}, new int[]{0, 8, 8, 0}, 4);\n g2d.fillPolygon(new int[]{0, 10, 5}, new int[]{8, 8, 12}, 3);\n g2d.setComposite(composite);\n g2d.setColor(old);\n\n }",
"private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}",
"protected abstract void paintLayers(Graphics2D g);",
"private void drawEdgeEffectsUnclipped(Canvas canvas) {\n\n boolean needsInvalidate = false;\n\n if (!mEdgeEffectTop.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft(), mGraphView.getGraphContentTop());\n mEdgeEffectTop.setSize(mGraphView.getGraphContentWidth(), mGraphView.getGraphContentHeight());\n if (mEdgeEffectTop.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (!mEdgeEffectBottom.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft(), mGraphView.getGraphContentTop()+mGraphView.getGraphContentHeight());\n canvas.rotate(180, mGraphView.getGraphContentWidth()/2, 0);\n mEdgeEffectBottom.setSize(mGraphView.getGraphContentWidth(), mGraphView.getGraphContentHeight());\n if (mEdgeEffectBottom.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (!mEdgeEffectLeft.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft(), mGraphView.getGraphContentTop()+ mGraphView.getGraphContentHeight());\n canvas.rotate(-90, 0, 0);\n mEdgeEffectLeft.setSize(mGraphView.getGraphContentHeight(), mGraphView.getGraphContentWidth());\n if (mEdgeEffectLeft.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (!mEdgeEffectRight.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft()+ mGraphView.getGraphContentWidth(), mGraphView.getGraphContentTop());\n canvas.rotate(90, 0, 0);\n mEdgeEffectRight.setSize(mGraphView.getGraphContentHeight(), mGraphView.getGraphContentWidth());\n if (mEdgeEffectRight.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (needsInvalidate) {\n ViewCompat.postInvalidateOnAnimation(mGraphView);\n }\n }",
"@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}",
"@Override\n\tprotected void draw(Canvas canvas) {\t\tcanvas.setColor(Color.DARK_GREEN);\n\t\tcanvas.drawRectangle(getBounds());\n\t\t\n/*\t\tRectangle originalClipping = canvas.getClipping();\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tTransformation originalTransformation = canvas.getTransformation();\n\n\t\tdrawWorld(new ShadowCanvas(canvas));\n\t\t\n\t\tcanvas.setAlpha(1.0f);\n\t\tcanvas.setTransformation(originalTransformation);\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tdrawWorld(canvas);\n\t\t\n\t\tcanvas.setClipping(originalClipping);\n*/\t}",
"protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }",
"@Override\n public void draw(IPainter painter) {\n\n // Turn on stenciling\n painter.glEnable_Stencil();\n\n // Set stencil function to always pass\n painter.glStencilFunc(StencilFunc.GL_ALWAYS, 1, 1);\n\n // Set stencil op to set 1 if depth passes, 0 if it fails\n painter.glStencilOp(StencilOp.GL_KEEP, StencilOp.GL_ZERO, StencilOp.GL_REPLACE);\n\n // Draw the base polygons that should be covered by outlines\n plane.draw(painter);\n\n // Set stencil function to pass when stencil is 1\n painter.glStencilFunc(StencilFunc.GL_EQUAL, 1, 1);\n\n // Disable writes to stencil buffer\n painter.glStencilMask_False();\n\n // Turn off depth buffering\n painter.glDisable_DepthTest();\n\n // Render the overlying drawables\n for (Drawable d : outlines) {\n d.draw(painter);\n }\n\n // Reset states\n if (!painter.getQuality().isAlphaActivated()) {\n if (painter.getQuality().isDepthActivated()) {\n painter.glEnable_DepthTest();\n }\n } else if (!painter.getQuality().isDisableDepthBufferWhenAlpha()) {\n painter.glEnable_DepthTest();\n }\n\n painter.glDisable_Stencil();\n\n // could also try\n // https://www.khronos.org/opengl/wiki/Drawing_Coplanar_Primitives_Widthout_Polygon_Offset\n }",
"@Override\r\n\tprotected void paintComponent(Graphics g) \r\n\t{\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// passes Graphics g into flappy\r\n\t\tflappy.flappybox.repaint(g); /// passes Graphics g into flappy\r\n\t}",
"@Override\n\tpublic void setPaint() {\n\t\tisPaint = true;\n\t}",
"public void apply(Graphics2D g, Shape clipShape, int width, int height) {\n Rectangle tmp = clipShape.getBounds();\n width = (int) tmp.getMaxX();\n height = (int) tmp.getMaxY();\n tmp.setRect(0, 0, width + getEffectWidth() * 2 + 1,\n height + getEffectWidth() * 2 + 1);\n\n // Apply the border glow effect\n if (isShapeMasked()) {\n BufferedImage clipImage = getClipImage(tmp);\n Graphics2D g2 = clipImage.createGraphics();\n try {\n /* clear the buffer */\n g2.setPaint(Color.BLACK);\n g2.setComposite(AlphaComposite.Clear);\n g2.fillRect(0, 0, clipImage.getWidth(), clipImage.getHeight());\n\n g2.translate(getEffectWidth() - getOffset().getX(),\n getEffectWidth() - getOffset().getY());\n paintBorderGlow(g2, clipShape, width, height);\n\n /* clip out the parts we don't want */\n g2.setComposite(AlphaComposite.Clear);\n g2.setColor(Color.WHITE);\n if (isRenderInsideShape()) {\n /* clip the outside */\n Area area = new Area(tmp);\n area.subtract(new Area(clipShape));\n g2.fill(area);\n } else {\n /* clip the inside */\n g2.fill(clipShape);\n }\n } finally {\n /* draw the final image */\n g2.dispose();\n }\n g.drawImage(clipImage, -getEffectWidth() + (int) getOffset().getX(), -getEffectWidth() + (int) getOffset().getY(), null);\n } else {\n paintBorderGlow(g, clipShape, width, height);\n }\n }",
"public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}",
"@Override\n public void paint(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n warehouseView.paint(g2);\n if (clickedObject == null)\n infoPanel.paint(g2);\n else if (clickedObject instanceof Transporter)\n infoPanel.paint(g2, (Transporter) clickedObject);\n else if (clickedObject instanceof Shelf)\n infoPanel.paint(g2, (Shelf) clickedObject);\n }",
"void applyEffects();",
"public void paintComponent(Graphics g) {\n // Setup\n Graphics2D g2d = (Graphics2D) g; int txt_h = Utils.txtH(g2d, \"0\");\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Paint the super\n super.paintComponent(g2d); \n\n // Get the render context and draw if it's valid\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n // Draw the interactions\n drawInteractions(g2d, myrc);\n\n // Draw the edge lens\n if (mode() == UI_MODE.EDGELENS) drawEdgeLens(g2d, myrc);\n else if (mode() == UI_MODE.TIMELINE) drawTimeLine(g2d, myrc);\n\n // Draw the selection\n Set<String> sel = getRTParent().getSelectedEntities(); if (sel == null) sel = new HashSet<String>();\n if (sel.size() > 0 || sticky_labels.size() > 0) { drawSelectedEntities(g2d, myrc, sel, sticky_labels, txt_h);\n } else { String str = \"\" + mode(); modeColor(g2d); g2d.drawString(\"\" + str, 5, txt_h); }\n\n // Draw the dynamic labels -- under the mouse for context\n String dyn_labeler_copy = dyn_labeler;\n if (dyn_label_cbmi.isSelected() && \n dyn_labeler_copy != null && \n myrc.node_coord_set.containsKey(dyn_labeler_copy)) drawDynamicLabels(g2d, myrc, dyn_labeler_copy);\n\n // If graph info mode, provide additional information\n if (myrc.provideGraphInfo()) { drawGraphInfo(g2d, myrc, sel); }\n\n // Draw the vertex placement heatmap (experimental)\n if (vertex_placement_heatmap_cbmi.isSelected()) {\n\t// Make sure it's a single selection (and that it's also a vertex);\n if (sel != null && sel.size() == 1) {\n\t String sel_str = sel.iterator().next(); if (entity_to_wxy.containsKey(sel_str)) {\n\t int hm_w = myrc.getRCWidth()/4, hm_h = myrc.getRCHeight()/4;\n\t // Determine if the heatmap will be large enough to provide value\n\t if (hm_w >= 50 && hm_h >= 50) {\n\t // Determine if the heatmap needs to be recalculated (doesn't consider if the size is still correct... or if the node shifted...\n\t if (hm_sel == null || hm_sel.equals(sel_str) == false || hm_bi == null) {\n\t hm_bi = GraphUtils.vertexPlacementHeatmap(new UniGraph(graph), sel_str, entity_to_wxy, hm_w, hm_h);\n\t\thm_sel = sel_str;\n }\n Composite orig_comp = g2d.getComposite(); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); // Partially transparent\n\t g2d.drawImage(hm_bi, myrc.getRCWidth() - hm_bi.getWidth(null), myrc.getRCHeight() - hm_bi.getHeight(null), null);\n\t g2d.setComposite(orig_comp);\n\t }\n\t }\n\t}\n }\n\n // Draw the highlighted entities\n highlightEntities(g2d, myrc);\n\n // Draw the excerpts\n drawExcerpts(g2d, myrc);\n }\n\n // Draw the help chart\n if (draw_help) drawHelp(g2d);\n }",
"@Override\n public void paint(Painter painter)\n {\n // Drawing the outline of the CarrierShape\n painter.drawRect(_x,_y,_width,_height);\n // Translating the origin to x and y point to the top left corner\n // of the CarrierShape to be able to paint its children relative to that point\n painter.translate(_x,_y);\n\n // Painting each child relative to the top left corner of the CarrierShape\n for(Shape child : children)\n {\n child.doPaint(painter);\n }\n\n // Translating the origin back to x = 0 y = 0\n painter.translate(-_x,-_y);\n }",
"@Override\n protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {\n switch (state) {\n case BACKGROUND_ENABLED:\n paintBackgroundEnabled(g);\n break;\n case BACKGROUND_DISABLED:\n paintBackgroundDisabled(g);\n break;\n case BACKGROUND_ENABLED_MOUSEOVER:\n paintBackgroundEnabledAndMouseOver(g);\n break;\n case BACKGROUND_ENABLED_PRESSED:\n paintBackgroundEnabledAndPressed(g);\n break;\n }\n }",
"@org.junit.Test\r\n public void testPaint() {\r\n node.paintRed();\r\n assert(node.isRed());\r\n assert(!node.isBlack());\r\n \r\n node.paintBlack();\r\n assert(!node.isRed());\r\n assert(node.isBlack());\r\n \r\n node.paintBlack();\r\n assert(!node.isRed());\r\n assert(node.isBlack());\r\n \r\n node.paintRed();\r\n assert(node.isRed());\r\n assert(!node.isBlack()); \r\n \r\n node.invertColor();\r\n assert(!node.isRed());\r\n assert(node.isBlack());\r\n \r\n node.invertColor();\r\n assert(node.isRed());\r\n assert(!node.isBlack()); \r\n }",
"public void draw(Graphics2D graphics2D, ArrayList<OneShape> registeredShapes){\n boolean _amIPartOfAGroup = this.CheckIfIAmPartOfAGroup(registeredShapes);\n if(this.myActiveShade.equals(this.myActiveShade.OUTLINE)){\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(this.myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n graphics2D.fillOval(this.startPoint.x - 10, this.startPoint.y - 10, this.width + 20, this.height + 20);\n graphics2D.setColor(Color.WHITE);\n }\n }\n\n else if(this.myActiveShade.equals(this.myActiveShade.OUTLINE_AND_FILLED_IN)){\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(this.myShapeColorMap.getMySecondaryShapeColor(this.mySecondaryColor));\n graphics2D.fillOval(this.startPoint.x - 10, this.startPoint.y - 10, this.width + 20, this.height + 20);\n graphics2D.setColor(this.myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n }\n }\n\n else{\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n }\n }\n\n graphics2D.fillOval(this.startPoint.x, this.startPoint.y, this.width, this.height);\n }",
"void paintOverall(Graphics g);",
"private void paintAllObjects()\n {\n for (int i = 0; i < allObjects.size(); i++)\n {\n JComponent c = (JComponent) allObjects.get(i);\n\n c.setBackground(backgroundColor);\n c.setForeground(foregroundColor);\n }\n }",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }",
"@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}",
"public void paint(Graphics2D g) {\n\t\tif ((_child != null) && isVisible()) {\n\t\t\t_child.paint(g);\n\t\t}\n\t}",
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"@Override\n protected void afterDraw(UI ui, PGraphics pg) {\n noLights();\n hint(DISABLE_DEPTH_TEST);\n }",
"public void drawAllGraphics(){\r\n\t\t \r\n\t}",
"@Override\n protected void dispatchDraw(Canvas canvas) {\n canvas.drawRect(mBgFadeRect, mBgFadePaint);\n\n super.dispatchDraw(canvas);\n }",
"public abstract void drawFill();",
"public void setUsePrimitivePaint(boolean usePrimitivePaint) {\n/* 75 */ this.usePrimitivePaint = usePrimitivePaint;\n/* */ }",
"public void apply() {\n\n if( this.vgcomponent instanceof VisualVertex ) {\n String selectedShape = (String) this.shapeList.getSelectedItem();\n Rectangle2D bounds = this.vgcomponent.getGeneralPath().getBounds2D();\n\n if( selectedShape.equals( \"Rectangle\")) {\n Rectangle2D rect = new Rectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"RoundedRectangle\")) {\n RoundRectangle2D rect = new RoundRectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight(),\n 10, 10 );\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"Ellipse\")) {\n Ellipse2D ellipse = new Ellipse2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( ellipse.getPathIterator( null ) );\n }\n }\n\n this.vgcomponent.setFillcolor( this.fillColor.getColor() );\n this.vgcomponent.setOutlinecolor( this.outlineColorButton.getColor() );\n\n this.pathPanelList.setGeneralPath( this.vgcomponent.getGeneralPath() );\n this.pathPanelList.setOutlineColor( this.vgcomponent.getOutlinecolor() );\n }",
"public void draw() {\n p.pushMatrix(); // save old visual style for other sprites\n p.translate(pos.x, pos.y); \n if (localpen) p.image(pen.get(0,0,p.width,p.height),p.width/2-pos.x, p.height/2-pos.y);\n if (visible) {\n // locked left-right rotation\n if (((direction%360<=270) & (direction%360>=90)) & rotationStyle==rotationStyle_leftRight) p.scale(-1.0f,1.0f);\n if (rotationStyle==rotationStyle_allAround) p.rotate(p.radians(-direction));\n if (ghostEffect > 0) {\n int calculatedAlpha = (int)p.map(ghostEffect,100,0,0,255);\n \n int[] alpha = new int[costumes.get(costumeNumber).width*costumes.get(costumeNumber).height];\n for (int i=0; i<alpha.length; i++) {\n // only fade non-zero pixels; 0 is full-transparency\n if (costumes.get(costumeNumber).pixels[i]!=0) alpha[i]=calculatedAlpha;\n }\n costumes.get(costumeNumber).mask(alpha);\n }\n p.image(costumes.get(costumeNumber), 0, 0, costumes.get(costumeNumber).width*(size/100),\n costumes.get(costumeNumber).height*(size/100));\n }\n p.popMatrix(); // restore default visual style\n }",
"public void effect() {\n }",
"@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }",
"@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D)g;\n\n if (shapeList != null) {\n shapeList.sort(Comparator.comparing(Shape::getLayer));\n for (Shape shape : shapeList) {\n if (shape.getType() == ShapeType.RECTANGLE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillRect(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n else if (shape.getType() == ShapeType.ELLIPSE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillOval(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n }\n }\n }",
"protected void doBright() {\r\n\t\talpha = 1.0f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"@Override\n public void effect() {\n\n }",
"public void _doPaint(int x, int y, int width, int height)\r\n\t{\r\n\tif (_g == null)\r\n\t\t_g = new Graphics(this);\r\n\r\n\t// clear background\r\n\t_g.setClip(x, y, width, height);\r\n\tif (Vm.isColor())\r\n\t\t_g.setColor(200, 200, 200);\r\n\telse\r\n\t\t_g.setColor(255, 255, 255);\r\n\t_g.fillRect(x, y, width, height);\r\n\tonPaint(_g);\r\n\t_g.clearClip();\r\n\tpaintChildren(_g, x, y, width, height);\r\n\r\n\tif (needsPaint)\r\n\t\t{\r\n\t\tint ax = x + width;\r\n\t\tint ay = y + height;\r\n\t\tint bx = paintX + paintWidth;\r\n\t\tint by = paintY + paintHeight;\r\n\t\tif (x <= paintX && y <= paintY && ax >= bx && ay >= by)\r\n\t\t\tneedsPaint = false;\r\n\t\t}\r\n\t}",
"public void enterPaintMode()\n\t{\n\t\tpaintMode = true;\n\t}",
"public void paint(Graphics g) {\r\n\t\tsuper.paint(g);\r\n\t\t// add code below\r\n\t\tGraphics g1 = drawingPanel.getGraphics();\r\n\t\tif (myLine != null && myLine.getIsAPerpendicular() == false) {\r\n\t\t\tShapes.add(myLine);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1);\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t\tif (myOval != null) {\r\n\t\t\tShapes.add(myOval);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1); // To make this legal an abstract method named draw which accepted graphics g need to be added to the shapes class\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t}",
"protected void doMoreLight() {\r\n\t\talpha = Math.min(1f, alpha + 0.05f);;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }",
"@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }",
"protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }",
"@Override\n protected void paintComponent(Graphics g) {\n\n Graphics2D g2d = (Graphics2D) g.create();\n g2d.setRenderingHint(\n RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setComposite(AlphaComposite.getInstance(\n AlphaComposite.SRC_OVER, opa));\n g2d.setColor(color);\n if (!round) {\n g2d.fillRect(0, 0, getWidth(), getHeight());\n } else {\n g2d.fillRoundRect(0, 0, getWidth(), getHeight(), corner, corner);\n }\n }",
"private void paint(){\n ;\n }",
"public abstract void paint(Graphics g);",
"DrawShape(){\r\n super();\r\n setBackground(Color.WHITE);\r\n addMouseListener(this);\r\n }",
"public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }",
"@Override\n public void draw (Batch batch, float parentAlpha) {\n setPosition(body.getPosition().x, body.getPosition().y);\n\n // Draw the main engine's fire\n if (activateEngine) {\n batch.draw((TextureRegion) fireAnimation.getKeyFrame(time, true),\n getX() - fireSpriteOriginX,\n getY() - fireSpriteOriginY,\n fireSpriteOriginX,\n fireSpriteOriginY,\n fireSpriteWidth,\n fireSpriteHeight,\n 1,\n 1,\n body.getAngle() * MathUtils.radiansToDegrees);\n }\n\n // Draw top left and bottom right auxiliary engines if they are activated\n if (activateAuxiliaryEnginesLeft) {\n batch.draw((TextureRegion) smokeAnimation.getKeyFrame(time, true),\n getX() - smokeSpriteOriginX,\n getY() - smokeSpriteOriginY,\n smokeSpriteOriginX,\n smokeSpriteOriginY,\n smokeSpriteWidth,\n smokeSpriteHeight,\n 1,\n 1,\n body.getAngle() * MathUtils.radiansToDegrees);\n batch.draw((TextureRegion) smokeAnimation.getKeyFrame(time, true),\n getX() - smokeSpriteOriginX,\n getY() - smokeSpriteOriginY,\n smokeSpriteOriginX,\n smokeSpriteOriginY,\n smokeSpriteWidth,\n smokeSpriteHeight,\n 1,\n 1,\n body.getAngle() * MathUtils.radiansToDegrees + 180);\n }\n\n // Draw bottom left and top right auxiliary engines if they are activated\n if (activateAuxiliaryEnginesRight) {\n batch.draw((TextureRegion) smokeAnimation.getKeyFrame(time, true),\n getX() - smokeSpriteOriginX2,\n getY() - smokeSpriteOriginY2,\n smokeSpriteOriginX2,\n smokeSpriteOriginY2,\n smokeSpriteWidth,\n smokeSpriteHeight,\n 1,\n 1,\n body.getAngle() * MathUtils.radiansToDegrees);\n batch.draw((TextureRegion) smokeAnimation.getKeyFrame(time, true),\n getX() - smokeSpriteOriginX2,\n getY() - smokeSpriteOriginY2,\n smokeSpriteOriginX2,\n smokeSpriteOriginY2,\n smokeSpriteWidth,\n smokeSpriteHeight,\n 1,\n 1,\n body.getAngle() * MathUtils.radiansToDegrees + 180);\n }\n\n // Draw thr lunar module's texture\n batch.draw(lunarModuleTexture,\n getX() - getWidth() / 2,\n getY() - getHeight() / 2,\n getWidth() / 2,\n getHeight() / 2,\n getWidth(),\n getHeight(),\n 1,\n 1,\n body.getAngle() * MathUtils.radiansToDegrees,\n 0,\n 0,\n lunarModuleTexture.getWidth(),\n lunarModuleTexture.getHeight(),\n false,\n false);\n }",
"public void propertyChange(PropertyChangeEvent anEvent)\n{\n // Get DeepChangeListener count (just return if zero)\n int deepListenerCount = getListenerCount(DeepChangeListener.class); if(deepListenerCount==0) return;\n \n // If change is fill/stroke, convert property name to \"Fill.xxx\" or \"Stroke.xxx\" for the sake of animation\n if(anEvent.getSource() instanceof RMFill) {\n Object source = anEvent.getSource();\n String prefix = source==getFill()? \"Fill\" : source==getStroke()? \"Stroke\" : null;\n String propertyName = prefix + \".\" + anEvent.getPropertyName();\n anEvent = new PropertyChangeEvent(this, propertyName, anEvent.getOldValue(), anEvent.getNewValue());\n repaint();\n }\n \n // Propagate to this shape's DeepChangeListeners (if present)\n for(int i=0, iMax=getListenerCount(DeepChangeListener.class); i<iMax; i++)\n getListener(DeepChangeListener.class, i).deepChange(this, anEvent);\n}",
"public static void test1() {\n int n1 = 100, n2 = 100, n3 = 100;\n float v = 1.0f, d = 20.0f;\n float[][][] paint = new float[n3][n2][n1];\n /*\n for (int i3=0; i3<n3; ++i3) {\n for (int i2=0; i2<n2; ++i2) {\n for (int i1=0; i1<n1; ++i1) {\n if (i3<n3/2) cae.paint[i3][i2][i1] = 1.0f;\n }\n }\n }\n */\n Painting3Group p3g = new Painting3Group(paint);\n SphereBrush pb = new SphereBrush();\n Painting3 p3 = p3g.getPainting3();\n// p3.paintAt(50,60,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n p3.paintAt(50,50,50,v,d,pb);\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n sf.setSize(1250,900);\n }",
"@Override\n public void redraw() {\n firePropertyChange(AVKey.LAYER, null, this);\n }",
"@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}",
"@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }",
"private void enablePainting() {\n \t\tif (!fIsPainting && hasDecorations()) {\n \t\t\tfIsPainting= true;\n \t\t\tfTextWidget.addPaintListener(this);\n \t\t\thandleDrawRequest(null);\n \t\t}\n \t}",
"@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}",
"public void renderAll() {\n GameObjectManager.instance.renderAll(graphics);\n this.repaint();\n }",
"@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }",
"public void paint(Graphics2D g) {\r\n\t\tShape shape = getShape(g);\r\n\t\tg.setPaint(BACKGROUND_COLOR);\r\n\t\tg.fill(shape);\r\n\t\tg.setStroke(NORMAL_STROKE);\r\n\t\tg.setPaint(FOREGROUND_COLOR);\r\n\t\tg.draw(shape);\t\r\n\t\tg.setFont(INNERBOX_FONT);\r\n\t\tfor (int i= 0; i<visualStates.size(); i++) {\r\n\t\t\tvisualStates.get(i).paint(g);\r\n\t\t}\r\n\t}",
"public TransparencyDemo() {\r\n super();\r\n view3DButton.addItemListener(this);\r\n drawBehindButton.addItemListener(this);\r\n transparencySlider.addChangeListener(this);\r\n }",
"@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tint size, x, y;\n\t\tif (this.getHeight() < this.getWidth()) {\n\t\t\tsize = (int) (this.getHeight() / 1.5);\n\t\t} else {\n\t\t\tsize = (int) (this.getWidth() / 1.5);\n\t\t}\n\t\tx = (int) ((this.getWidth() / 2.0) - size / 2.0);\n\t\ty = (int) ((this.getHeight() / 2.0) - size / 2.0);\n\t\tint eyesize = (int) (size / 8.0);\n\t\tint eyex = (int) (x + size * 0.3 - eyesize / 2.0);\n\t\tint eyey = (int) (y + size * 0.4 - eyesize / 2.0);\n\t\tint eyex2 = (int) (x + size * 0.7 - eyesize / 2.0);\n\t\tint[] xpoints = {x, x + size, (int) (x + size / 2.0)};\n\t\tint[] ypoints = {(int) (y + size / 5.0), (int) (y + size / 5.0),\n\t\t\t\t(int) (y - size / 10.0)};\n\t\tPolygon hat = new Polygon(xpoints, ypoints, 3);\n\t\t\n\t\tif (zustand >0) {\n\t\t\tg.setColor(Color.GREEN);\n\t\t\tg.fillOval(x, y, size, size);\n\t\t\tg.setColor(Color.BLACK);\n\t\t\tg.fillOval(eyex, eyey, eyesize, eyesize);\n\t\t\tg.fillOval(eyex2, eyey, eyesize, eyesize);\n\t\t\tg.fillPolygon(hat);\n\t\t\tg.fillArc((int) (x + size / 5.0), (int) (y + size * 0.5),\n\t\t\t\t\t(int) (size * 0.6), (int) (size * 0.4), 0, -180);\n\t\t} else if (zustand == 0) {\n\t\t\tg.setColor(Color.YELLOW);\n\t\t\tg.fillOval(x, y, size, size);\n\t\t\tg.setColor(Color.BLACK);\n\t\t\tg.fillOval(eyex, eyey, eyesize, eyesize);\n\t\t\tg.fillOval(eyex2, eyey, eyesize, eyesize);\n\t\t\tg.fillPolygon(hat);\n\t\t\tg.fillRect(eyex, (int) (y + size * 0.75), eyex2 + eyesize - eyex,\n\t\t\t\t\t(int) (eyesize / 2.0));\n\t\t} else {\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillOval(x, y, size, size);\n\t\t\tg.setColor(Color.BLACK);\n\t\t\tg.fillOval(eyex, eyey, eyesize, eyesize);\n\t\t\tg.fillOval(eyex2, eyey, eyesize, eyesize);\n\t\t\tg.fillPolygon(hat);\n\t\t\tg.fillArc((int) (x + size / 5.0), (int) (y + size * 0.6),\n\t\t\t\t\t(int) (size * 0.6), (int) (size * 0.4), 0, 180);\n\t\t}\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n progress_stack = progress_stack_bkup;\r\n\r\n rec_points = rec_points_bkup;\r\n rec_colors = rec_colors_bkup;\r\n\r\n squ_points = squ_points_bkup;\r\n squ_colors = squ_colors_bkup;\r\n\r\n ell_points = ell_points_bkup;\r\n ell_colors = ell_colors_bkup;\r\n\r\n cir_points = cir_points_bkup;\r\n cir_colors = cir_colors_bkup;\r\n\r\n str_points = str_points_bkup;\r\n str_colors = str_colors_bkup;\r\n\r\n poly_points = poly_points_bkup;\r\n poly_colors = poly_colors_bkup;\r\n\r\n handdraw_points = handdraw_points_bkup;\r\n handdraw_colors = handdraw_colors_bkup;\r\n\r\n\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n //repaint circle\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n //repaint square\r\n if(squ_colors.size()>0){\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n //repaint ellipse\r\n if(ell_colors.size()>0){\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n //repaint straight line\r\n if(str_colors.size()>0){\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n //repaint polygons\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n }\r\n\r\n //repaint freehand lines\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(Shape s : shapes){\n\t\t\ts.paint(g);\n\t\t}\n\t}",
"protected void doLessLight() {\r\n\t\talpha = Math.max(0, alpha - 0.05f);\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"private void\trender(GLAutoDrawable drawable)\n\t{\n\t\tGL2\t\tgl = drawable.getGL().getGL2();\n\n\t\tgl.glClear(GL.GL_COLOR_BUFFER_BIT);\t// Clear the buffer\n\t\tgl.glEnable(GL.GL_BLEND);\n\t\tgl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\tsetScreenProjection(gl);\n\n\t\t\n\t\t//changes what to render and what animation is going to happen based off what shape is selected\n\t\tif(shape1)\n\t\t{\n\t\t\tsetColor(gl, red, green, blue);\n\t\t\t//gives us the points for the shape\n\t\t\trectangle = fillRect(gl, (int)(getWidth() / 2) - (int)(rectWidth / 2), \n\t\t\t\t\t(int)(getHeight() / 2) - (int)(rectHeight / 2), rectWidth , rectHeight);\n\t\t\t//need to add the first point so we can loop around for collision detection\n\t\t\trectangle.add(rectangle.get(0));\n\t\t\tcreateBall(gl);\n\t\t\tmovePoint(rectangle);\n\n\t\t}\n\t\telse if(shape2)\n\t\t{\t\n\t\t\tsetColor(gl, red, green, blue);\n\t\t\t//gives us the points for the shape\n\t\t\thexagon = drawGon(gl, 6, getWidth() / 2, getHeight() / 2, (int)(rectHeight / 2));\n\t\t\tcreateBall(gl);\n\t\t\tmovePoint(hexagon);\n\n\t\t}\n\t\telse if(shape3)\n\t\t{\n\t\t\tsetColor(gl, red, green, blue);\n\t\t\t//gives us the points for the shape\n\t\t\tcircle = drawGon(gl, 32, getWidth() / 2, getHeight() / 2, (int)(rectHeight / 2));\n\t\t\tcreateBall(gl);\n\t\t\tmovePoint(circle);\n\t\t}\n\t\telse if(shape4)\n\t\t{\t\n\t\t\tsetColor(gl, red, green, blue);\n\t\t\t//gives us the points for the shape\n\t\t\tweirdPoly = fillPoly(gl,(int)(getWidth() / 2) , (int)(getHeight() / 2), pointArray);\n\t\t\t//need to add the first point so we can loop around for collision detection\n\t\t\tweirdPoly.add(weirdPoly.get(0));\n\t\t\tcreateBall(gl);\n\t\t\tmovePoint(weirdPoly);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Do Nothing??\n\t\t}\n\n\t}",
"protected abstract void paint(Graphics g, Object iDrawSurfaceID);",
"public AerithPanelPainter() {\n super();\n setUseCache(false);\n setAntialiasing(RenderingHints.VALUE_ANTIALIAS_ON);\n }",
"void addEffect(Effect effect, boolean temp) {\n/* 1782 */ if (this.isTransition && this.surfaced) {\n/* */ \n/* 1784 */ getCaveTile().addEffect(effect, temp);\n/* */ \n/* */ return;\n/* */ } \n/* 1788 */ if (!temp) {\n/* */ \n/* 1790 */ if (this.effects == null)\n/* 1791 */ this.effects = new HashSet<>(); \n/* 1792 */ this.effects.add(effect);\n/* */ } \n/* */ \n/* 1795 */ if (this.watchers != null)\n/* */ {\n/* 1797 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 1798 */ ((VirtualZone)it.next()).addEffect(effect, temp);\n/* */ }\n/* */ }\n/* 1801 */ effect.setSurfaced(this.surfaced);\n/* */ \n/* */ try {\n/* 1804 */ effect.save();\n/* */ }\n/* 1806 */ catch (IOException iox) {\n/* */ \n/* 1808 */ logger.log(Level.INFO, iox.getMessage(), iox);\n/* */ } \n/* */ }",
"@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t\trender(g);\r\n\t}",
"public void paint(Graphics pane) {\r\n\t\tfinal int DELTA = 2; // The offset within the box/frame\r\n\r\n\t\tpane.setColor(Color.black); // Drawing the box/frame of the element\r\n\t\tpane.drawRect(x, y, WIDTH, HEIGHT);\r\n\r\n\t\tpane.setColor(color); // and the inside of the element\r\n\t\tpane.fill3DRect(x + DELTA, y + DELTA, WIDTH - 2 * DELTA + 1, HEIGHT - 2\r\n\t\t\t\t* DELTA + 1, hilite);\r\n\t}",
"@Override\r\n\t\tpublic void paint(Graphics g) {\n\t\t\tsuper.paint(g);\r\n\t\t}",
"@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2 = (Graphics2D) g; \n\t\tg2.setColor(Color.lightGray);\n\t\tg2.fill(model.bg);\n\t\tg2.setColor(Color.darkGray);\n\t\tg2.fillPolygon(model.terrain);\n\t\tg2.setColor(Color.gray);\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tg2.draw(model.circles.get(i));\n\t\t}\n\t\tif (model.curCircleSel != -1) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.circles.get(model.curCircleSel));\n\t\t}\n\t\tg2.setColor(Color.RED);\n\t\tg2.fill(model.pad);\n\t\tif (curPadSel) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.pad);\n\t\t}\n\t}",
"public abstract void selfPaint(Graphics g);",
"public void subclassExistingClasses() {\n final PNode n = new PPath.Float(new Ellipse2D.Float(0, 0, 100, 80)) {\n\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aPaintContext) {\n if (fIsPressed) {\n // if mouse is pressed draw self as a square.\n final Graphics2D g2 = aPaintContext.getGraphics();\n g2.setPaint(getPaint());\n g2.fill(getBoundsReference());\n }\n else {\n // if mouse is not pressed draw self normally.\n super.paint(aPaintContext);\n }\n }\n };\n\n n.addInputEventListener(new PBasicInputEventHandler() {\n public void mousePressed(final PInputEvent aEvent) {\n super.mousePressed(aEvent);\n fIsPressed = true;\n n.invalidatePaint(); // this tells the framework that the node\n // needs to be redisplayed.\n }\n\n public void mouseReleased(final PInputEvent aEvent) {\n super.mousePressed(aEvent);\n fIsPressed = false;\n n.invalidatePaint(); // this tells the framework that the node\n // needs to be redisplayed.\n }\n });\n\n n.setPaint(Color.ORANGE);\n getCanvas().getLayer().addChild(n);\n }",
"public void render() {\r\n\t\tif ((this instanceof Turtles && ((Turtles) this).isAboveWater()) || !(this instanceof Turtles)) {\r\n\t\t\timage.drawCentered(xCoordinate, yCoordinate);\r\n\t\t}\r\n\t}",
"@SuppressLint(\"NewApi\")\n private void init() {\n mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mPaint.setPathEffect(new CornerPathEffect(mPolygonShapeSpec.getCornerRadius()));\n mBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mBorderPaint.setStyle(Paint.Style.STROKE);\n mBorderPaint.setPathEffect(new CornerPathEffect(mPolygonShapeSpec.getCornerRadius()));\n\n if(mPolygonShapeSpec.hasBorder()) {\n mBorderPaint.setColor(mPolygonShapeSpec.getBorderColor());\n mBorderPaint.setStrokeWidth(mPolygonShapeSpec.getBorderWidth());\n }\n\n if (mPolygonShapeSpec.hasShadow()) {\n //Shadow on border even if isBordered is false. Better effect and performance that\n //using shadow on main paint\n mBorderPaint.setShadowLayer(mPolygonShapeSpec.getShadowRadius(), mPolygonShapeSpec.getShadowXOffset(),\n mPolygonShapeSpec.getShadowYOffset(), mPolygonShapeSpec.getShadowColor());\n }\n\n //Avoid known shadow problems\n if (Build.VERSION.SDK_INT > 13)\n setLayerType(LAYER_TYPE_SOFTWARE, null);\n\n mPolygonShape = new RegularPolygonShape();\n }"
] |
[
"0.6493991",
"0.61438894",
"0.6124701",
"0.61008",
"0.5901843",
"0.58724314",
"0.5863683",
"0.56942225",
"0.56499594",
"0.5599721",
"0.5585936",
"0.55424935",
"0.55073446",
"0.54997885",
"0.54932904",
"0.54393816",
"0.5420844",
"0.5409792",
"0.53974134",
"0.5391565",
"0.5343118",
"0.53369606",
"0.5318072",
"0.53129214",
"0.5305288",
"0.52979136",
"0.52714556",
"0.5228382",
"0.5215078",
"0.5186969",
"0.51833165",
"0.514889",
"0.5142046",
"0.5132333",
"0.5100124",
"0.50943136",
"0.5093088",
"0.5090652",
"0.50590783",
"0.5053812",
"0.50464696",
"0.503728",
"0.503728",
"0.503728",
"0.5022991",
"0.50112605",
"0.50101936",
"0.50071365",
"0.49888512",
"0.49856883",
"0.49826044",
"0.49703935",
"0.49696648",
"0.49691662",
"0.4964816",
"0.4964432",
"0.49615574",
"0.4957333",
"0.49569333",
"0.49548942",
"0.4951237",
"0.49504584",
"0.4946553",
"0.4934169",
"0.49324897",
"0.4927853",
"0.49225783",
"0.49169898",
"0.4916098",
"0.49103826",
"0.48964134",
"0.48959082",
"0.4890645",
"0.4885291",
"0.48850283",
"0.4884467",
"0.4875139",
"0.48738387",
"0.48709258",
"0.48673585",
"0.48667264",
"0.48636007",
"0.4857492",
"0.48570502",
"0.48415357",
"0.48370415",
"0.4828482",
"0.48245013",
"0.48155233",
"0.48146674",
"0.48143104",
"0.48142028",
"0.48121977",
"0.48112085",
"0.48108578",
"0.48087022",
"0.4807235",
"0.48067346",
"0.48054674",
"0.48004404"
] |
0.6698658
|
0
|
Calls paintShape, paintShapeChildren and paintShapeOver.
|
public void paintShapeAll(RMShapePainter aPntr)
{
// Get graphics
RMShapePainter pntr = aPntr;
// If clipping, clip to shape
if(getClipShape()!=null) {
pntr = pntr.clone();
pntr.clip(getClipShape());
}
// Have shape paint only itself
pntr.sendPaintShape(this);
// Have shape paint children
paintShapeChildren(pntr);
// Have shape paint over
paintShapeOver(aPntr);
// If graphics copied, dispose
if(pntr!=aPntr) pntr.dispose();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}",
"public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}",
"private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}",
"public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}",
"public void paint(RMShapePainter aPntr)\n{\n // Clone graphics\n RMShapePainter pntr = aPntr.clone();\n \n // Apply transform for shape\n if(isRSS()) pntr.transform(getTransform().awt());\n else pntr.translate(getX(), getY());\n \n // If shape bounds don't intersect clip bounds, just return\n Rectangle cbounds = pntr.getClip()!=null? pntr.getClipBounds() : null;\n if(cbounds!=null && !getBoundsMarkedDeep().intersects(cbounds))\n return;\n \n // If shape is semi-transparent, apply composite\n if(getOpacityDeep()!=1) {\n float op = pntr.isEditing()? Math.max(.15f, getOpacityDeep()) : getOpacityDeep();\n pntr.setOpacity(op);\n }\n \n // If shape has a effect, have it paint\n if(getEffect()!=null)\n getEffect().paint(pntr, this);\n \n // Otherwise paintShapeAll\n else paintShapeAll(pntr);\n \n // Dispose of graphics\n pntr.dispose();\n}",
"protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }",
"@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(Shape s : shapes){\n\t\t\ts.paint(g);\n\t\t}\n\t}",
"public void paint() {\n paintStrategy.paintImmediately();\n }",
"public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}",
"public void drawShape(RShape shape) {\n // Recurse through any children of this shape\n for (int i = 0; i < shape.countChildren(); i++) {\n RShape s = shape.children[i];\n drawShape(s);\n }\n\n // Iterate through each path of the shape, drawing them to the screen\n for (int i = 0; i < shape.countPaths(); i++) {\n // Get the points of the current path\n RPath p = shape.paths[i];\n RPoint[] points = p.getPoints();\n\n // Connect each of the points using lines\n for (int k = 0; k < points.length - 1; k++) {\n line(points[k].x, points[k].y, points[k + 1].x, points[k + 1].y);\n }\n }\n }",
"@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }",
"public void paint(Graphics g) {\n\t\tSystem.out.println(\"Painting shapes\");\n\t\t\n\t\t// draw a red square\n\t\tPoint corner = new Point(10,10);\n\t\tint size = 100;\n\t\tg.setColor(Color.RED);\n\t\tg.drawRect(corner.x, corner.y, size, size);\n\t\t\n\t\t// draw a blue circle\n\t\tint radius = 50;\n\t\tPoint center = new Point(200, 10+radius);\n\t\tg.setColor(Color.BLUE);\n\t\t// syntax: drawOver(xTopLeft, yTopLeft, width, height)\n\t\tg.drawOval(center.x-radius, center.y-radius, 2*radius, 2*radius);\n\n\t}",
"DrawShape(){\r\n super();\r\n setBackground(Color.WHITE);\r\n addMouseListener(this);\r\n }",
"@Override\n public void paint(Painter painter)\n {\n // Drawing the outline of the CarrierShape\n painter.drawRect(_x,_y,_width,_height);\n // Translating the origin to x and y point to the top left corner\n // of the CarrierShape to be able to paint its children relative to that point\n painter.translate(_x,_y);\n\n // Painting each child relative to the top left corner of the CarrierShape\n for(Shape child : children)\n {\n child.doPaint(painter);\n }\n\n // Translating the origin back to x = 0 y = 0\n painter.translate(-_x,-_y);\n }",
"@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}",
"public void drawShape(Shape shape);",
"public Shapes draw ( );",
"public void paint(Graphics g) {\n\t\t\tsuper.paint(g); // don't remove - required for GUI widgets to draw correctly\n\t\t\t/************************\n\t\t\t * Late Binding Demo\n\t\t\t ************************/\n\t\t\tfor (int i = 0; i < myShapes.length; i++) {\n\t\t\t\t// which draw method is invoked here?\n\t\t\t\t// There are many forms of the method (polymorphic),\n\t\t\t\t// so which is chosen?\n\t\t\t\t// Java has RTTI (run-time type info)\n\t\t\t\t// about every object,\n\t\t\t\t// and it uses this info to choose\n\t\t\t\t// the correct method to invoke!\n\t\t\t\tmyShapes[i].draw(g);\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}",
"protected abstract void paint(Painter painter);",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n progress_stack = progress_stack_bkup;\r\n\r\n rec_points = rec_points_bkup;\r\n rec_colors = rec_colors_bkup;\r\n\r\n squ_points = squ_points_bkup;\r\n squ_colors = squ_colors_bkup;\r\n\r\n ell_points = ell_points_bkup;\r\n ell_colors = ell_colors_bkup;\r\n\r\n cir_points = cir_points_bkup;\r\n cir_colors = cir_colors_bkup;\r\n\r\n str_points = str_points_bkup;\r\n str_colors = str_colors_bkup;\r\n\r\n poly_points = poly_points_bkup;\r\n poly_colors = poly_colors_bkup;\r\n\r\n handdraw_points = handdraw_points_bkup;\r\n handdraw_colors = handdraw_colors_bkup;\r\n\r\n\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n //repaint circle\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n //repaint square\r\n if(squ_colors.size()>0){\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n //repaint ellipse\r\n if(ell_colors.size()>0){\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n //repaint straight line\r\n if(str_colors.size()>0){\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n //repaint polygons\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n }\r\n\r\n //repaint freehand lines\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }",
"@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D)g;\n\n if (shapeList != null) {\n shapeList.sort(Comparator.comparing(Shape::getLayer));\n for (Shape shape : shapeList) {\n if (shape.getType() == ShapeType.RECTANGLE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillRect(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n else if (shape.getType() == ShapeType.ELLIPSE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillOval(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n }\n }\n }",
"public void draw(PApplet applet) {\n\t\tapplet.pushStyle();\n\t\t\n\t\tfor(PhysicsShape shape : shapes) {\n\t\t\tshape.draw(applet);\n\t\t}\n\t\t\n\t\tapplet.popStyle();\n\t}",
"public void paint(Graphics g) {\r\n\t\tsuper.paint(g);\r\n\t\t// add code below\r\n\t\tGraphics g1 = drawingPanel.getGraphics();\r\n\t\tif (myLine != null && myLine.getIsAPerpendicular() == false) {\r\n\t\t\tShapes.add(myLine);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1);\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t\tif (myOval != null) {\r\n\t\t\tShapes.add(myOval);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1); // To make this legal an abstract method named draw which accepted graphics g need to be added to the shapes class\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t}",
"public void paint(Graphics g, Shape a) {\n Rectangle alloc = reallocate(a); // returned rect can be modified\n getChildren().paintChildren(g, alloc);\n }",
"public void paint(Graphics g) {\r\n super.paint(g); // call method paint() of super class (JFrame)\r\n if (ge != null) { // if the paint tool exists\r\n System.out.println(\"calling method redrawAll() of PaintTool.\");\r\n ge.redrawAll(g); // call method redrawAll() of class PaintTool\r\n System.out.println(\"method redrawAll() of class PaintTool executed.\");\r\n }\r\n }",
"private void drawShape(Canvas canvas, int shape) {\n switch (shape) {\n case 1:\n canvas.drawOval(r, paint);\n break;\n case 2:\n canvas.drawRect(r, paint);\n break;\n case 3:\n drawDiamond(canvas);\n break;\n default:\n throw new IllegalArgumentException(\n \"Illegal shape characteristic.\");\n }\n }",
"public void drawAll(List<? extends Shape> shapes) {\n\t}",
"public void draw(Graphics2D graphics2D, ArrayList<OneShape> registeredShapes){\n boolean _amIPartOfAGroup = this.CheckIfIAmPartOfAGroup(registeredShapes);\n if(this.myActiveShade.equals(this.myActiveShade.OUTLINE)){\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(this.myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n graphics2D.fillOval(this.startPoint.x - 10, this.startPoint.y - 10, this.width + 20, this.height + 20);\n graphics2D.setColor(Color.WHITE);\n }\n }\n\n else if(this.myActiveShade.equals(this.myActiveShade.OUTLINE_AND_FILLED_IN)){\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(this.myShapeColorMap.getMySecondaryShapeColor(this.mySecondaryColor));\n graphics2D.fillOval(this.startPoint.x - 10, this.startPoint.y - 10, this.width + 20, this.height + 20);\n graphics2D.setColor(this.myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n }\n }\n\n else{\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n }\n }\n\n graphics2D.fillOval(this.startPoint.x, this.startPoint.y, this.width, this.height);\n }",
"@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}",
"@Override\r\n public void mousePressed(MouseEvent event) { // on left mouse press, draw shapes\r\n System.out.println(\"pressed\");\r\n\r\n switch (state) {\r\n case DRAWRECT: // for drawing rectangle\r\n RectangleNode rectangle = new RectangleNode(event.getX(), event.getY());\r\n shapes.add(rectangle);\r\n repaint();\r\n state = SELECT;\r\n break;\r\n case DRAWELLIPSE: // for drawing ellipse\r\n EllipseNode ellipse = new EllipseNode(event.getX(), event.getY());\r\n shapes.add(ellipse);\r\n repaint();\r\n state = SELECT;\r\n break;\r\n case DRAWEDGE: // for drawing edge start\r\n Edge edge = new Edge(event.getX(), event.getY(), event.getX(), event.getY());\r\n currentEdge = edge;\r\n shapes.add(edge);\r\n repaint();\r\n state = DRAWINGEDGE;\r\n break;\r\n case DRAWINGEDGE: // for drawing edge end\r\n repaint();\r\n currentEdge = null;\r\n state = SELECT;\r\n break;\r\n default: // select\r\n if (event.getButton() == MouseEvent.BUTTON1) { // if the left mouse button is clicked\r\n for (int i = 0; i < shapes.size(); i++) {\r\n if (shapes.get(i).isClicked(event.getX(), event.getY())) { // checks if the mouse click is in a shape\r\n System.out.println(\"selecting shit\");\r\n\r\n if (selectedElement != null) {\r\n selectedElement.setColor(Color.BLACK);\r\n repaint();\r\n selectedElement = null;\r\n }\r\n\r\n selectedElement = shapes.get(i);\r\n selectedElement.setColor(Color.BLUE);\r\n repaint();\r\n break;\r\n\r\n } else if (selectedElement != null) {\r\n System.out.println(\"deselecting shit\");\r\n selectedElement.setColor(Color.BLACK);\r\n repaint();\r\n selectedElement = null;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n\r\n if (event.getButton() == MouseEvent.BUTTON3 && selectedElement != null) { // on right mouse press shape is DELETED\r\n System.out.println(\"BUTTON TWO ASDFGHJKL;\");\r\n shapes.remove(selectedElement);\r\n selectedElement = null;\r\n repaint();\r\n }\r\n\r\n\r\n\r\n }",
"protected abstract void paintLayers(Graphics2D g);",
"protected void visualizeShape(Shape shape, PdfDrawer drawer) throws VisualizerException {\n visualizePosition(shape.getPosition(), drawer, Color.ORANGE);\n }",
"@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }",
"@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}",
"void draw(IViewShapes shape);",
"public void drawAllGraphics(){\r\n\t\t \r\n\t}",
"public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }",
"@Override\n public synchronized void paint(Graphics g) {\n if (!shouldPaint()) {\n return;\n }\n\n if (g instanceof Graphics2D) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHints(argoRenderingHints);\n\t double scale = getScale();\n g2.scale(scale, scale);\n }\n getLayerManager().paint(g);\n //getLayerManager().getActiveLayer().paint(g);\n if (_canSelectElements) {\n _selectionManager.paint(g);\n _modeManager.paint(g);\n }\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n g.setColor(Color.WHITE);\r\n g.fillRect(0,0,1200,800);\r\n canvas.repaint();\r\n\r\n popped_points.clear();\r\n\r\n if(progress_stack.size() > 0){\r\n last_state = progress_stack.get(progress_stack.size()-1);\r\n System.out.println(last_state+\" is the last shape in progress stack\");\r\n\r\n\r\n if(last_state.equals(\"rec\")){\r\n //recall other point_stack\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"rec\", rec_points, rec_colors);\r\n\r\n /* //recall rec points\r\n //1. store the last rectangle data\r\n //2. pop the last rectangle\r\n\r\n //for loop\r\n for (int i = 0; i < rec_colors.size(); i++) {\r\n System.out.println(rec_colors.size());\r\n int begin_index = i * 4;\r\n x1 = rec_points.get(begin_index);\r\n y1 = rec_points.get(begin_index + 1);\r\n x2 = rec_points.get(begin_index + 2);\r\n y2 = rec_points.get(begin_index + 3);\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n //last one\r\n if(i == (rec_colors.size()-1)){\r\n //store points and shape\r\n\r\n popped_points.add(x1);\r\n popped_points.add(y1);\r\n popped_points.add(x2);\r\n popped_points.add(y2);\r\n\r\n popped_shape = \"rec\";\r\n popped_color = rec_colors.get(rec_colors.size()-1);\r\n System.out.println(popped_points+ \" is popped rectangle\");\r\n\r\n //popped the last rectangle\r\n System.out.println(progress_stack+\" is the previous stack\");\r\n progress_stack.remove(progress_stack.size()-1);\r\n System.out.println(progress_stack+\" is the current stack\");\r\n\r\n //pop last 4 points from rec_points\r\n\r\n if(rec_colors.size() == 1){\r\n //last element in shape stack\r\n rec_points.clear();\r\n }\r\n else{\r\n //pop last 4 points from cir_points\r\n rec_points.remove(rec_points.size()-1);\r\n rec_points.remove(rec_points.size()-2);\r\n rec_points.remove(rec_points.size()-3);\r\n rec_points.remove(rec_points.size()-4);\r\n System.out.println(rec_points+ \" is the current rec_points\");\r\n }\r\n\r\n\r\n //pop the last color\r\n rec_colors.remove(rec_colors.size()-1);\r\n\r\n\r\n\r\n }else{\r\n g.setColor(rec_colors.get(i));\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n\r\n canvas.repaint();\r\n }\r\n\r\n }*/\r\n\r\n// if(rec_points.size() < 5){\r\n// //it is the first shape\r\n// //do nothing don't paint anything on canvas\r\n// //but store the\r\n// }else{\r\n// for (int i = 0; i < rec_colors.size()-1; i++) {\r\n// System.out.println(rec_colors.size());\r\n// int begin_index = i * 4;\r\n// x1 = rec_points.get(begin_index);\r\n// y1 = rec_points.get(begin_index + 1);\r\n// x2 = rec_points.get(begin_index + 2);\r\n// y2 = rec_points.get(begin_index + 3);\r\n//\r\n// int[] start_points = start_point(x1, y1, x2, y2);\r\n//\r\n// g.setColor(rec_colors.get(i));\r\n// g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n//\r\n// canvas.repaint();\r\n// }\r\n// }\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"cir\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"cir\", cir_points, cir_colors);\r\n\r\n /* //recall circle points\r\n //1. store the last circle data\r\n //2. pop the last circle\r\n\r\n //for loop\r\n for (int i = 0; i < cir_colors.size(); i++) {\r\n System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = cir_points.get(begin_index);\r\n y1 = cir_points.get(begin_index + 1);\r\n x2 = cir_points.get(begin_index + 2);\r\n y2 = cir_points.get(begin_index + 3);\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n //last one\r\n if(i == (cir_colors.size()-1)){\r\n //store points and shape\r\n popped_points.add(x1);\r\n popped_points.add(y1);\r\n popped_points.add(x2);\r\n popped_points.add(y2);\r\n\r\n popped_color = cir_colors.get(cir_colors.size()-1);\r\n\r\n popped_shape = \"cir\";\r\n System.out.println(popped_points+ \" is popped circle\");\r\n\r\n //popped the last circle\r\n System.out.println(progress_stack+\" is the previous stack\");\r\n progress_stack.remove(progress_stack.size()-1);\r\n System.out.println(progress_stack+\" is the current stack\");\r\n\r\n if(cir_colors.size() == 1){\r\n //last element in shape stack\r\n cir_points.clear();\r\n }\r\n else{\r\n //pop last 4 points from cir_points\r\n System.out.println(cir_points.size()+ \" is the previous circle points\");\r\n cir_points.remove(cir_points.size()-1);\r\n cir_points.remove(cir_points.size()-2);\r\n cir_points.remove(cir_points.size()-3);\r\n cir_points.remove(cir_points.size()-4);\r\n System.out.println(cir_points+ \" is the current cir_points\");\r\n }\r\n\r\n\r\n //pop the last color\r\n cir_colors.remove(cir_colors.size()-1);\r\n System.out.println(cir_colors+\" is current color stack\");\r\n\r\n\r\n }else{\r\n g.setColor(cir_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n\r\n }*/\r\n\r\n /* //recall cir points\r\n if(cir_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < cir_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = cir_points.get(begin_index);\r\n y1 = cir_points.get(begin_index + 1);\r\n x2 = cir_points.get(begin_index + 2);\r\n y2 = cir_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(cir_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"squ\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n regular_shape_undo_process(\"squ\", squ_points, squ_colors);\r\n /*//recall squ points\r\n if(squ_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < squ_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = squ_points.get(begin_index);\r\n y1 = squ_points.get(begin_index + 1);\r\n x2 = squ_points.get(begin_index + 2);\r\n y2 = squ_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(squ_colors.get(i));\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"ell\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"ell\", ell_points, ell_colors);\r\n\r\n /*//recall ellipse points\r\n if(ell_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < ell_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = ell_points.get(begin_index);\r\n y1 = ell_points.get(begin_index + 1);\r\n x2 = ell_points.get(begin_index + 2);\r\n y2 = ell_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(ell_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n\r\n canvas.repaint();\r\n }\r\n }\r\n*/\r\n\r\n }\r\n\r\n if(last_state.equals(\"str\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"str\", str_points, str_colors);\r\n\r\n /* //recall straight line points\r\n if(str_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < str_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = str_points.get(begin_index);\r\n y1 = str_points.get(begin_index + 1);\r\n x2 = str_points.get(begin_index + 2);\r\n y2 = str_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(str_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"poly\")){\r\n //repaint polygons except the last one\r\n //polygon repaint don't need to consider the last polygon\r\n //not good to use polygon color cuz it can be change whithin one polygon\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n if(separate_index.size()>1){\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n \r\n for (int j = 0; j < separate_index.size(); j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n\r\n\r\n //for the last one\r\n if(j == (separate_index.size()-1)){\r\n // store all points, color, shape\r\n int end_index = poly_points.size();\r\n popped_color = poly_colors.get(poly_colors.size()-1);\r\n popped_shape = \"poly\";\r\n\r\n popped_points.clear();\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n popped_points.add(poly_points.get(k));\r\n }\r\n\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n //popped the last one from color, points, progress stack\r\n System.out.println(poly_points + \" is the previous poly points stack\");\r\n for (int p = 0; p < (popped_points.size()+1); p++) {\r\n poly_points.remove(poly_points.size()-1);\r\n }\r\n System.out.println(poly_points+\" is the current stack\");\r\n\r\n for (int s = 0; s < popped_points.size()/2; s++) {\r\n progress_stack.remove(progress_stack.size()-1);\r\n poly_colors.remove(poly_colors.size()-1);\r\n }\r\n System.out.println(progress_stack+\" is current progress_stack\");\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n\r\n\r\n }else{\r\n //get polygon points arraylist\r\n int end_index = separate_index.get(j+1);\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n\r\n }\r\n }\r\n if(separate_index.size() == 1){\r\n // store the last color, points, shape\r\n //popped the last one from color, points, progress stack\r\n System.out.println(poly_points+\" is poly points stack\");\r\n popped_color = poly_colors.get(poly_colors.size()-1);\r\n popped_shape = \"poly\";\r\n poly_points.remove(0);\r\n popped_points.clear();\r\n for (int i = 0; i < poly_points.size(); i++) {\r\n popped_points.add(poly_points.get(i));\r\n }\r\n// int line_num = poly_points.size()-1;\r\n\r\n\r\n poly_colors.clear();\r\n\r\n for (int s = 0; s < poly_points.size()/2; s++) {\r\n progress_stack.remove(progress_stack.size()-1);\r\n }\r\n System.out.println(progress_stack+\" after polygon pop\");\r\n poly_points.clear();\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n\r\n\r\n }\r\n\r\n //repaint other shapes\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index_hand = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index_hand.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index_hand.get(j)+1;\r\n int end_index = separate_index_hand.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"handdraw\")){\r\n //repaint shapes except the last one\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n if(handdraw_colors.size() == 1){\r\n // store color points shape\r\n int begin_index = 0;\r\n int end_index = separate_index.get(0);\r\n\r\n popped_color = handdraw_colors.get(0);\r\n popped_shape = \"handdraw\";\r\n\r\n popped_points.clear();\r\n for (int p = begin_index; p < end_index; p++) {\r\n popped_points.add(handdraw_points.get(p));\r\n }\r\n\r\n //pop those data\r\n handdraw_colors.clear();\r\n progress_stack.remove(progress_stack.size()-1);\r\n handdraw_points.clear();\r\n\r\n }\r\n if(handdraw_colors.size() > 1){\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }\r\n if(i == handdraw_colors.size()-1){\r\n // the last freehand line\r\n //store shape color points\r\n int begin_index = separate_index.get(separate_index.size()-2)+1;\r\n int end_index = separate_index.get(separate_index.size()-1);\r\n\r\n popped_color = handdraw_colors.get(handdraw_colors.size()-1);\r\n popped_shape = \"handdraw\";\r\n\r\n popped_points.clear();\r\n for (int j = begin_index; j < end_index; j++) {\r\n popped_points.add(handdraw_points.get(j));\r\n }\r\n\r\n System.out.println(popped_points+\" popped freehand points\");\r\n\r\n //pop those data\r\n handdraw_colors.remove(handdraw_colors.size()-1);\r\n progress_stack.remove(progress_stack.size()-1);\r\n for (int p = 0; p < (popped_points.size()+1); p++) {\r\n handdraw_points.remove(handdraw_points.size()-1);\r\n }\r\n System.out.println(handdraw_points+\" after freehand pop\");\r\n\r\n\r\n }\r\n\r\n else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-2; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n\r\n //repaint other shapes\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n separate_index = get_separate_index(poly_points);\r\n points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }",
"public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }",
"public void renderShape(final Shape theShape) {\n if (myWidth > 0) {\n final Drawing newDrawing = new Drawing(theShape, myColor, myWidth);\n myCurrentShape = newDrawing;\n repaint();\n } \n }",
"public void draw(Shape shape) {\n this.shape = shape; //setter\n System.out.println(shape.draw()); //execute\n }",
"@Override\n public void draw(Batch batch, float parentAlpha) {\n batch.end();\n\n\n //do custom shape rendering\n shape.setProjectionMatrix(batch.getProjectionMatrix());\n\n shape.begin(ShapeRenderer.ShapeType.Filled);\n //setBounds(getParent().getX(), getParent().getY(), getParent().getWidth(), getParent().getWidth());\n\n\n shape.setColor(Color.GREEN);\n Vector2 coords = new Vector2(getX(), getY());\n localToStageCoordinates(coords);\n shape.circle(coords.x + getWidth()/2, coords.y + getHeight()/2, 10);\n\n shape.circle(coords.x, coords.y, 10);\n shape.circle(coords.x, coords.y+getHeight(), 10);\n shape.circle(coords.x + getWidth(), coords.y, 10);\n shape.circle(coords.x + getWidth(), coords.y + getHeight(), 10);\n\n shape.end();\n shape.setColor(Color.WHITE);\n\n //continue batch\n batch.begin();\n }",
"private void drawShape(Graphics g, IShape shape) {\r\n Color color = shape.getColor();\r\n if (shape.getPosition() != null) {\r\n int x = shape.getPosition().getX();\r\n int y = shape.getPosition().getY();\r\n int width = shape.getWidth();\r\n int height = shape.getHeight();\r\n\r\n\r\n switch (shape.getShapeType()) {\r\n case \"Ellipse\":\r\n g.setColor(color);\r\n g.fillOval(x, y, width, height);\r\n g.drawOval(x, y, width, height);\r\n break;\r\n case \"Rectangle\":\r\n g.setColor(color);\r\n g.fillRect(x, y, width, height);\r\n g.drawRect(x, y, width, height);\r\n break;\r\n case \"Plus\":\r\n g.setColor(color);\r\n int width1 = width ;\r\n int height2 = height;\r\n int height1 = height / 2;\r\n int width2 = width / 2;\r\n int x1 = x;\r\n int y1 = y + height / 4;\r\n int x2 = x + width / 4;\r\n int y2 = y;\r\n g.fillRect(x1, y1, width1, height1);\r\n g.fillRect(x2, y2, width2, height2);\r\n break;\r\n default:\r\n return;\r\n }\r\n }\r\n }",
"public void paint() {\n int L = 150; // Local convenience var\n\n // Declare three lines (left, middle, and right)\n Line left = new Line(L, L, L, getHeight() - L);\n Line middle = new Line(L, getHeight() / 2, getWidth() - L, getHeight() / 2);\n Line right = new Line(getWidth() - L, L, getWidth() - L, getHeight() - L);\n\n getChildren().clear(); // Clear the pane before redisplay\n\n displayHTree(order, left, middle, right); // Call the recursive method\n }",
"public void strokeShape(Shape shape);",
"public void draw() {\n draw(root, false);\n }",
"@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }",
"public void paint( Graphics g )\n {\n g.setColor( drawingColor );\n\n // draw text\n if ( textOn ) {\n g.setFont( new Font( font, Font.PLAIN, fontSize ) );\n g.drawString( text.getText(), topX, topY );\n textOn = false;\n return;\n \n } // end if statement\n\n // set shape's top left coordinates\n if ( shape != LINE ) {\n topX = Math.min( topX, bottomX );\n topY = Math.min( topY, bottomY );\n \n } // end if statement\n\n // draw filled shape\n if ( filled && shape != LINE )\n\n switch ( shape ) {\n\n case OVAL:\n g.fillOval( topX, topY, width, height );\n break;\n\n case RECT:\n g.fillRect( topX, topY, width, height );\n break;\n \n } // end switch statement\n\n // draw unfilled shapes\n else\n\n switch ( shape ) {\n\n case OVAL:\n g.drawOval( topX, topY, width, height );\n break;\n\n case LINE:\n g.drawLine( topX, topY, bottomX, bottomY );\n break;\n\n case RECT:\n g.drawRect( topX, topY, width, height );\n break;\n \n } // ens switch statement\n\n // clear background\n if ( clear == true ) {\n g.setColor( Color.white );\n g.fillRect( 0, 0, getSize().width, getSize().height );\n clear = false;\n \n } // end if statement\n\n }",
"public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }",
"protected void doPaint(Graphics2D g, T component, int width, int height)\n/* */ {\n/* 353 */ for (Painter p : getPainters()) {\n/* 354 */ Graphics2D temp = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 357 */ p.paint(temp, component, width, height);\n/* 358 */ if (isClipPreserved()) {\n/* 359 */ g.setClip(temp.getClip());\n/* */ }\n/* */ } finally {\n/* 362 */ temp.dispose();\n/* */ }\n/* */ }\n/* */ }",
"public void _doPaint(int x, int y, int width, int height)\r\n\t{\r\n\tif (_g == null)\r\n\t\t_g = new Graphics(this);\r\n\r\n\t// clear background\r\n\t_g.setClip(x, y, width, height);\r\n\tif (Vm.isColor())\r\n\t\t_g.setColor(200, 200, 200);\r\n\telse\r\n\t\t_g.setColor(255, 255, 255);\r\n\t_g.fillRect(x, y, width, height);\r\n\tonPaint(_g);\r\n\t_g.clearClip();\r\n\tpaintChildren(_g, x, y, width, height);\r\n\r\n\tif (needsPaint)\r\n\t\t{\r\n\t\tint ax = x + width;\r\n\t\tint ay = y + height;\r\n\t\tint bx = paintX + paintWidth;\r\n\t\tint by = paintY + paintHeight;\r\n\t\tif (x <= paintX && y <= paintY && ax >= bx && ay >= by)\r\n\t\t\tneedsPaint = false;\r\n\t\t}\r\n\t}",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(SnakeSquare i:sSquare)i.paint(g);\n\t\tsObst.paint(g);\n\t\tsFood.paint(g);\n\t\tboundary.paint(g);\n\t}",
"private void drawShapes() {\n\n // get a polygon shape object\n SKPolygon polygon = new SKPolygon();\n // set the polygon's nodes\n List<SKCoordinate> nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7765));\n nodes.add(new SKCoordinate(-122.4141, 37.7765));\n nodes.add(new SKCoordinate(-122.4342, 37.7620));\n polygon.setNodes(nodes);\n // set the outline size\n polygon.setOutlineSize(3);\n // set colors used to render the polygon\n polygon.setOutlineColor(new float[]{1f, 0f, 0f, 1f});\n polygon.setColor(new float[]{1f, 0f, 0f, 0.2f});\n // render the polygon on the map\n mapView.addPolygon(polygon);\n\n // get a circle mask shape object\n SKCircle circleMask = new SKCircle();\n // set the shape's mask scale\n circleMask.setMaskedObjectScale(1.3f);\n // set the colors\n circleMask.setColor(new float[]{1f, 1f, 0.5f, 0.67f});\n circleMask.setOutlineColor(new float[]{0f, 0f, 0f, 1f});\n circleMask.setOutlineSize(3);\n // set circle center and radius\n circleMask.setCircleCenter(new SKCoordinate(-122.4200, 37.7665));\n circleMask.setRadius(300);\n // set outline properties\n circleMask.setOutlineDottedPixelsSkip(6);\n circleMask.setOutlineDottedPixelsSolid(10);\n // set the number of points for rendering the circle\n circleMask.setNumberOfPoints(150);\n // render the circle mask\n mapView.addCircle(circleMask);\n\n\n // get a polyline object\n SKPolyline polyline = new SKPolyline();\n // set the nodes on the polyline\n nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7898));\n nodes.add(new SKCoordinate(-122.4141, 37.7898));\n nodes.add(new SKCoordinate(-122.4342, 37.7753));\n polyline.setNodes(nodes);\n // set polyline color\n polyline.setColor(new float[]{0f, 0f, 1f, 1f});\n // set properties for the outline\n polyline.setOutlineColor(new float[]{0f, 0f, 1f, 1f});\n polyline.setOutlineSize(4);\n polyline.setOutlineDottedPixelsSolid(3);\n polyline.setOutlineDottedPixelsSkip(3);\n mapView.addPolyline(polyline);\n }",
"public void paint(Graphics2D g){\n g.setColor(color);\n g.fill(shape);\n }",
"public void paint () {\n\t\tPaint.clear();\n\t\t\n\t\tPaint.setColor(Color.WHITE);\n\t\tPaint.fillRect(0,0,numcols_ * cellsize_,numrows_ * cellsize_);\n\t\tPaint.setColor(Color.GRAY);\n\t\tPaint.drawRect(0,0,numcols_ * cellsize_ - 1,numrows_ * cellsize_ - 1);\n\n\t\tfor ( int row = 0 ; row < numrows_ ; row++ ) {\n\t\t\tfor ( int col = 0 ; col < numcols_ ; col++ ) {\n\t\t\t\tint x = col * cellsize_;\n\t\t\t\tint y = row * cellsize_;\n\n\t\t\t\tThing thing = at(row,col);\n\t\t\t\tif ( thing != null ) {\n\t\t\t\t\tthing.paint(x,y,cellsize_,cellsize_);\n\t\t\t\t}\n\t\t\t\tPaint.setColor(Color.GRAY);\n\t\t\t\tPaint.drawRect(x,y,cellsize_,cellsize_);\n\t\t\t}\n\t\t}\n\n\t}",
"public void paint(Graphics2D g) {\r\n\t\tShape shape = getShape(g);\r\n\t\tg.setPaint(BACKGROUND_COLOR);\r\n\t\tg.fill(shape);\r\n\t\tg.setStroke(NORMAL_STROKE);\r\n\t\tg.setPaint(FOREGROUND_COLOR);\r\n\t\tg.draw(shape);\t\r\n\t\tg.setFont(INNERBOX_FONT);\r\n\t\tfor (int i= 0; i<visualStates.size(); i++) {\r\n\t\t\tvisualStates.get(i).paint(g);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}",
"void drawShape() {\n System.out.println(\"Drawing Triangle\");\n this.color.addColor();\n }",
"public void draw(Graphics g) {\n\t\tGraphics2D graphic2d = (Graphics2D) g;\n\t\t//loop through and create circles\n\t\tint bool = 0;\n\t\t//makes 36 squares\n\t\tfor (int x=1; x < 37; x++) {\t\t\t\n\t\t\tRectangle2D shape = new Rectangle2D.Double(super.getX(), super.getY(), super.width/2, super.height/2);\n\t\t\tfinal AffineTransform saved = graphic2d.getTransform();\n\t\t\t//converts 10 to radians and rotates shape by 10 degrees\n\t\t\tfinal AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(x*10), super.getX(), super.getY());\n\t\t\tgraphic2d.transform(rotate);\n\t\t\t//paints a different square colour every 9 squares\n\t\t\tif (x%9 == 0) {\n\t\t\t\tif (bool == 0) {\n\t\t\t\t\tgraphic2d.setPaint(super.borderColor);\n\t\t\t\t\tbool = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t\t\tbool = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tgraphic2d.fill(shape);\n\t\t\tgraphic2d.setTransform(saved);\n\t\t}\n\t\tdrawHandles(g);\n\t\t\n\t}",
"public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}",
"private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }",
"private void paintAllObjects()\n {\n for (int i = 0; i < allObjects.size(); i++)\n {\n JComponent c = (JComponent) allObjects.get(i);\n\n c.setBackground(backgroundColor);\n c.setForeground(foregroundColor);\n }\n }",
"void drawShape(Shape s) {\n }",
"private void updateShapeHandles() {\n for (Shape shape : this.model.getShapes()) {\n shape.updateHandles(this.viewModel.getZoomFactor());\n }\n }",
"@Override\n protected void onDraw(@NonNull Canvas canvas) {\n if (getDrawable() == null || getDrawable().getIntrinsicWidth() == 0 ||\n getDrawable().getIntrinsicHeight() == 0)\n return;\n\n switch (mPolygonShapeSpec.getNumVertex()) {\n case 0: //CIRCLE\n if (mPolygonShapeSpec.hasShadow() || mPolygonShapeSpec.hasBorder()) {\n canvas.drawCircle(mPolygonShapeSpec.getCenterX(), mPolygonShapeSpec.getCenterY(),\n mPolygonShapeSpec.getDiameter() / 2, mBorderPaint);\n }\n canvas.drawCircle(mPolygonShapeSpec.getCenterX(), mPolygonShapeSpec.getCenterY(),\n mPolygonShapeSpec.getDiameter() / 2, mPaint);\n break;\n case 1: //REGULAR IMAGE VIEW\n super.onDraw(canvas);\n break;\n case 2: //SQUARE\n if (mPolygonShapeSpec.hasShadow() || mPolygonShapeSpec.hasBorder()) {\n canvas.drawRect(mPolygonShapeSpec.getCenterX() - mPolygonShapeSpec.getDiameter() / 2,\n mPolygonShapeSpec.getCenterY() - mPolygonShapeSpec.getDiameter() / 2,\n mPolygonShapeSpec.getCenterX() + mPolygonShapeSpec.getDiameter() / 2,\n mPolygonShapeSpec.getCenterY() + mPolygonShapeSpec.getDiameter() / 2,\n mBorderPaint);\n }\n canvas.drawRect(mPolygonShapeSpec.getCenterX() - mPolygonShapeSpec.getDiameter() / 2,\n mPolygonShapeSpec.getCenterY() - mPolygonShapeSpec.getDiameter() / 2,\n mPolygonShapeSpec.getCenterX() + mPolygonShapeSpec.getDiameter() / 2,\n mPolygonShapeSpec.getCenterY() + mPolygonShapeSpec.getDiameter() / 2,\n mPaint);\n break;\n default: //POLYGON\n if (mPolygonShapeSpec.hasShadow() || mPolygonShapeSpec.hasBorder())\n canvas.drawPath(mPath, mBorderPaint);\n canvas.drawPath(mPath, mPaint);\n }\n }",
"public void draw() {\n drawSubtree(root);\n }",
"@Override\n\tpublic void drawShape(Graphics g) {\n\t\tg.setColor(getColor());\n\t\tg.drawLine(startPoint.getX(), startPoint.getY(), endPoint.getX(), endPoint.getY());\n\t\tif(isSelected())\n\t\t\tselectedShape(g);\n\t}",
"@Override\n protected void paintInternal(IGraphicsTarget target,\n PaintProperties paintProps) throws VizException {\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n // Draw the components\n Arrange();\n box.draw(canvas);\n for (Node node : nodes) {\n node.draw(canvas);\n }\n line.draw(canvas);\n invalidate(); // Force a re-draw\n }",
"@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }",
"protected synchronized void paintComponent(Graphics g) {\n /*Call the paintComponent of the super class*/\n super.paintComponent(g);\n\n /*Cast the object to a Graphics2D object*/\n Graphics2D g2 = (Graphics2D) g;\n\n /*Enable rendering Antialiasing and other rendering optimizations*/\n g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n\n /***\n * Loop through the List that holds all the shapes.\n * shapesBuffer list and Draw them on screen\n */\n for (int i=0; i<labelBuffer.size(); i++)\n {\n /*Get the Concept for each index i*/\n ShapesInterface currentConcept = (ShapesInterface) labelBuffer.get(i);\n\n \n /*Pass from the connected List*/\n if (currentConcept instanceof ShapeConcept || currentConcept instanceof ShapeLinking) {\n for (int k=0; k<currentConcept.getConnComponenetsList().size(); k++) {\n /*Get the center point of this Concept*/\n Point p1 = currentConcept.getCenter();\n Point p2 = ((ShapesInterface) currentConcept.getConnComponenetsList().get(k)).getCenter();\n \n //Point p2 = ((ShapeConcept) currentConcept.getConnComponenetsList().get(k)).getCenter();\n\n g2.draw(new Line2D.Double(p1.x, p1.y, p2.x, p2.y));\n }//end for\n }//end if check\n }//end for\n\n}",
"public void draw() {\n draw(root, true);\n }",
"public DrawPane()\n {\n //Step #1: initialize each instance variable and set up layout\n undoBtn = new Button(\"Undo\");\n eraseBtn = new Button(\"Erase\");\n undoBtn.setMinWidth(80.0);\n eraseBtn.setMinWidth(80.0);\n\n canvas = new Pane();\n setCenter(canvas);\n\n left = new VBox(20);\n left.setAlignment(Pos.CENTER);\n setLeft(left);\n this.getLeft().prefWidth(400);\n\n controls = new HBox(40);\n controls.setAlignment(Pos.CENTER);\n undoBtn.setOnAction(new ButtonHandler());\n eraseBtn.setOnAction(new ButtonHandler());\n controls.getChildren().addAll(undoBtn, eraseBtn);\n setBottom(controls);\n\n //Create the color comboBox and initialize its default color\n colorCombo = new ComboBox<>();\n colorCombo.getItems().setAll(\"Black\", \"Red\", \"Blue\", \"Green\", \"Yellow\", \"Orange\", \"Pink\");\n colorCombo.getSelectionModel().select(0);\n colorCombo.setOnAction(new ColorHandler());\n left.getChildren().add(colorCombo);\n //----\n\n //Create the three radio buttons and also a ToggleGroup\n //so that the three radio buttons can be selected\n //mutually exclusively. Otherwise they are independent of each other\n rbRect = new RadioButton(\"Rectangle\");\n rbCircle = new RadioButton(\"Circle\");\n rbArc = new RadioButton(\"Arc\");\n radioGroup = new ToggleGroup();\n rbRect.setToggleGroup(radioGroup);\n rbRect.setSelected(true);\n rbCircle.setToggleGroup(radioGroup);\n rbArc.setToggleGroup(radioGroup);\n rbRect.setOnAction(new ShapeHandler());\n rbCircle.setOnAction(new ShapeHandler());\n rbArc.setOnAction(new ShapeHandler());\n left.getChildren().addAll(rbRect, rbCircle, rbArc);\n //----\n\n //initialize shapeList, it is a data structure we used\n //to track the shape we drew\n shapeList = new ArrayList<>();\n //----\n\n //canvas is a Pane where we will draw rectagles, circles and arcs on it\n canvas.setStyle(\"-fx-background-color: Azure;\");\n\n //Step #3: Register the source nodes with its handler objects\n canvas.setOnMousePressed(new MouseHandler());\n canvas.setOnMouseDragged(new MouseHandler());\n canvas.setOnMouseReleased(new MouseHandler());\n //----\n //----\n\n }",
"public void paint(Graphics2D g) {\n\t\tfor (Operation operation : operations) {\n\t\t\toperation.paint(g);\n\t\t}\n\t}",
"public void draw(ShapeRenderer sr){\n this.draw(sr,null,true);\n }",
"protected abstract void setShapes();",
"public void draw() {\r\n System.out.println(\"Shape: \" + this.getClass().getName() +\r\n \"\\t Perimeter: \" + calculatePerimeter() +\r\n \"\\t Area: \" + calculateArea());\r\n }",
"@Override\n public void run(){\n gameItem = shapeFactory.getShape(shapeButton, shapeName);\n if (gameItem != null) {\n gameItem.clearName(); //clears text\n gameItem.draw(); //draws new shape\n }\n }",
"public void paint(Graphics g) {\n\t\tdest.paint(g);\n\t\tfor(ViewArcPath vac : arcs) {\n\t\t\tvac.paint(g);\n\t\t}\n\t}",
"@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}",
"protected void conditionallyRepaint()\n {\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.conditionallyRepaint();\n }\n }",
"@Override\n\tpublic void drawShape(Graphics2D g) {\n\t\tsuper.drawShape(g);\n\t\trect.drawAndFillShape(g);\n\t\tuiText.drawShape(g);\n\t}",
"@Override\n public void paint(final Graphics g)\n {\n try\n {\n offScreenG.setColor(getBackground());\n offScreenG.fillRect(0, 0, getSize().width, getSize().height);\n\n if(offG == null)\n \toffG = offScreenG.create();\n\n if(backGround != null)\n {\n \t//System.out.println(\"drawing the loaded background image\");\n \toffG.drawImage(backGround, 0, 0, this);\n \tfinal int h = backGround.getHeight(this);\n \tfinal int w = backGround.getWidth(this);\n \toffG.setColor(Color.BLACK);\n \t//offG.drawRect(0, 0, w, h);\n }\n\n offScreenG.setColor(Color.BLACK);\n //offScreenG.drawRect(0, 0, this.getWidth()-1, this.getHeight()-1); //disable drawing of bounding box\n\n final Graphics2D g2 = (Graphics2D)offG;\n\t\t\tfinal Composite normC = g2.getComposite();\n\t\t\tg2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP,(float)0.8));\n for(int i=0; i < associations.size(); i++)\n \tassociations.elementAt(i).render(offG);\n if(mpos != null && start != null)\n {\n \toffG.setColor(Color.DARK_GRAY);\n \tfinal Point rPoint = start.getPoint(mpos);\n \toffG.drawLine(rPoint.x, rPoint.y, mpos.x, mpos.y);\n \tif(retType.equals(\"pair\"))\n \t{\n \t\tdrawArrow(g2, mpos.x, mpos.y, rPoint.x, rPoint.y, 1);\n \t}\n \tdrawArrow(g2, rPoint.x, rPoint.y, mpos.x, mpos.y, 1);\n }\n\t\t\tif(hotspots != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t\t\thotspots.elementAt(i).render(g2);\n\t\t\t}\n\n\t\t\tif(movableObjects != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tmovableObjects.elementAt(i).render2(g2);\n\t\t\t\t}\n\t\t\t}\n g2.setComposite(normC);\n if(drawHSLabel != null)\n {\n \tif(drawHSLabel.hotSpotLabel != null && !drawHSLabel.hotSpotLabel.equals(\"\"))\n \t{\n\n \t\tfinal Rectangle2D bounds = (new TextLayout(drawHSLabel.hotSpotLabel,g2.getFont(),g2.getFontRenderContext())).getBounds();\n \t\tg2.setColor(Color.YELLOW);\n \t\tg2.fillRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.setColor(Color.BLACK);\n \t\tg2.drawRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.drawString(drawHSLabel.hotSpotLabel, mpos.x+5, mpos.y);\n \t}\n }\n\n g.drawImage(offScreenImg, 0, 0, this);\n\n if (om.equals(\"figure_placement_interaction\")) {\n for (int h=0; h < hotspots.size(); h++) {\n //g.drawRect(hotspots.elementAt(h).coords[0],hotspots.elementAt(h).coords[1],hotspots.elementAt(h).coords[2],hotspots.elementAt(h).coords[3]);\n }\n }\n }\n catch(final Exception exception)\n {\n \texception.printStackTrace();\n }\n }",
"@Override\n public void paint(Graphics g1){\n\n try{\n super.paint(g1);\n\n drawSymbols_Rel( g1 );\n drawSymbols_Att( g1 );\n /**\n //==== only for test ====\n this.setComplexRelationsCoordinates(20, 28, 33, 38);\n this.setComplexRelationsCoordinates_extraEnds(400, 404);\n */\n\n drawComplexRelationship(g1);\n drawPath(g1);\n \n \n \n }catch(Exception ex){\n }\n }",
"public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }",
"@Override\n public void draw(IPainter painter) {\n\n // Turn on stenciling\n painter.glEnable_Stencil();\n\n // Set stencil function to always pass\n painter.glStencilFunc(StencilFunc.GL_ALWAYS, 1, 1);\n\n // Set stencil op to set 1 if depth passes, 0 if it fails\n painter.glStencilOp(StencilOp.GL_KEEP, StencilOp.GL_ZERO, StencilOp.GL_REPLACE);\n\n // Draw the base polygons that should be covered by outlines\n plane.draw(painter);\n\n // Set stencil function to pass when stencil is 1\n painter.glStencilFunc(StencilFunc.GL_EQUAL, 1, 1);\n\n // Disable writes to stencil buffer\n painter.glStencilMask_False();\n\n // Turn off depth buffering\n painter.glDisable_DepthTest();\n\n // Render the overlying drawables\n for (Drawable d : outlines) {\n d.draw(painter);\n }\n\n // Reset states\n if (!painter.getQuality().isAlphaActivated()) {\n if (painter.getQuality().isDepthActivated()) {\n painter.glEnable_DepthTest();\n }\n } else if (!painter.getQuality().isDisableDepthBufferWhenAlpha()) {\n painter.glEnable_DepthTest();\n }\n\n painter.glDisable_Stencil();\n\n // could also try\n // https://www.khronos.org/opengl/wiki/Drawing_Coplanar_Primitives_Widthout_Polygon_Offset\n }",
"public void apply() {\n\n if( this.vgcomponent instanceof VisualVertex ) {\n String selectedShape = (String) this.shapeList.getSelectedItem();\n Rectangle2D bounds = this.vgcomponent.getGeneralPath().getBounds2D();\n\n if( selectedShape.equals( \"Rectangle\")) {\n Rectangle2D rect = new Rectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"RoundedRectangle\")) {\n RoundRectangle2D rect = new RoundRectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight(),\n 10, 10 );\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"Ellipse\")) {\n Ellipse2D ellipse = new Ellipse2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( ellipse.getPathIterator( null ) );\n }\n }\n\n this.vgcomponent.setFillcolor( this.fillColor.getColor() );\n this.vgcomponent.setOutlinecolor( this.outlineColorButton.getColor() );\n\n this.pathPanelList.setGeneralPath( this.vgcomponent.getGeneralPath() );\n this.pathPanelList.setOutlineColor( this.vgcomponent.getOutlinecolor() );\n }",
"public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }",
"@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics;\n\n for (int i = 0; i < myDrawingArray.size(); i++) {\n final Drawing drawing = myDrawingArray.get(i);\n g2d.setPaint(drawing.getColor());\n g2d.setStroke(new BasicStroke(drawing.getWidth()));\n g2d.draw(drawing.getShape());\n }\n \n if (myCurrentShape != null) {\n g2d.setPaint(myCurrentShape.getColor());\n g2d.setStroke(new BasicStroke(myCurrentShape.getWidth()));\n g2d.draw(myCurrentShape.getShape());\n }\n \n if (myGrid) { //Paints the grid if myGrid is true.\n g2d.setStroke(new BasicStroke(1));\n g2d.setPaint(Color.GRAY);\n for (int row = 0; row < getHeight() / GRID_SPACING; row++) {\n final Line2D line = new Line2D.Float(0, GRID_SPACING + (row * GRID_SPACING),\n getWidth(), GRID_SPACING + (row * GRID_SPACING));\n g2d.draw(line);\n }\n for (int col = 0; col < getWidth() / GRID_SPACING; col++) {\n final Line2D line = new Line2D.Float(GRID_SPACING \n + (col * GRID_SPACING), 0,\n GRID_SPACING\n + (col * GRID_SPACING), getHeight());\n g2d.draw(line);\n }\n \n }\n }",
"public void draw() {\n\t\tsuper.repaint();\n\t}",
"public void start() {\n\t\t\n\t\t/*\n\t\t * This is the main JFrame that everything will be placed on. \n\t\t * The size is set to a maximum value, and made unresizable to make repainting easier to achieve.\n\t\t */\n\t\tJFrame frame = new JFrame(\"Paint\");\n\t\tframe.setSize(Canvas.getMaxWindowSize(), Canvas.getMaxWindowSize());\n\t\tframe.setResizable(false);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t/*\n\t\t * The mainPanel is the panel on which all the other panels will be organized.\n\t\t * It uses a BorderLayout to divide the panel into 5 possible areas: North, South, West, East, and Center.\n\t\t */\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\tframe.add(mainPanel);\n\t\t\n\t\t/*\n\t\t * The canvas is added to the center of the mainPanel.\n\t\t */\n\t\tCanvas canvas = new Canvas();\n\t\tmainPanel.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * The topToolPanel is a JPanel that will also use a BorderLayout to organize items placed upon it.\n\t\t * It is placed in the North portion of the mainPanel.\n\t\t */\n\t\tJPanel topToolPanel = new JPanel(new BorderLayout());\n\t\tmainPanel.add(topToolPanel, BorderLayout.NORTH);\n\t\t\n\t\t/*\n\t\t * The shapeToolsPanel is JPanel on which all the buttons for different shapes will be placed. \n\t\t * It is placed in the West portion of the topToolPanel.\n\t\t */\n\t\tJPanel shapeToolsPanel = new JPanel();\n\t\ttopToolPanel.add(shapeToolsPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * The usefulToolPanel will hold buttons for options like \"Fill\" or \"No Fill\", as well as our \"Undo\" button.\n\t\t */\n\t\tJPanel usefulToolPanel = new JPanel();\n\t\ttopToolPanel.add(usefulToolPanel, BorderLayout.EAST);\n\t\t\n\t\t/*\n\t\t * Each of the next five buttons added represent an option to choose a certain shape to draw.\n\t\t * They all get added to the shapeToolsPanel from left to right.\n\t\t */\n\t\tJButton rectButton = new JButton(\"Rectangle\");\n\t\tshapeToolsPanel.add(rectButton);\n\t\trectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"rectangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton circButton = new JButton (\"Circle\");\n\t\tshapeToolsPanel.add(circButton);\n\t\tcircButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"circle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton triButton = new JButton (\"Triangle\");\n\t\tshapeToolsPanel.add(triButton);\n\t\ttriButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"triangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton lineButton = new JButton (\"Line\");\n\t\tshapeToolsPanel.add(lineButton);\n\t\tlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"line\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton penButton = new JButton (\"Pen\");\n\t\tshapeToolsPanel.add(penButton);\n\t\tpenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"pen\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t/*\n\t\t * The following three buttons are useful tools for the program to use: the option to choose whether or not to fill shapes, and the undo option.\n\t\t * Each of these will be added to the usefulToolPanel, once again from right to left.\n\t\t */\n\t\tJButton fillButton = new JButton(\"Fill\");\n\t\tusefulToolPanel.add(fillButton);\n\t\tfillButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton outlineButton = new JButton(\"No Fill\");\n\t\tusefulToolPanel.add(outlineButton);\n\t\toutlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton increaseButton = new JButton (\"Increase width\");\n\t\tusefulToolPanel.add(increaseButton);\n\t\tincreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() + 1);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton decreaseButton = new JButton (\"Decrease width\");\n\t\tusefulToolPanel.add(decreaseButton);\n\t\tdecreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() - 1);\n\t\t\t\t}catch(IllegalArgumentException exception) {\n\t\t\t\t\tSystem.out.println(\"The shape thickness cannot be zero.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton undoButton = new JButton (\"Undo\");\n\t\tusefulToolPanel.add(undoButton);\n\t\tundoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tcanvas.undo();\n\t\t\t\t}catch(IndexOutOfBoundsException exception) {\n\t\t\t\t\tSystem.out.println(\"No item in shape list to undo.\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The colorPanel is a JPanel which utilizes a GridLayout to organize buttons from the top to the bottom.\n\t\t * It is set up to have more rows than are actually filled to minimize the size of each button on it.\n\t\t */\n\t\tJPanel colorPanel = new JPanel(new GridLayout(defaultGridRows, defaultGridColumns, defaultGridPadding, defaultGridPadding));\n\t\tmainPanel.add(colorPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * Each of the following buttons will be added to the colorPanel.\n\t\t * They will stack one on top of the other as the grid is set up to only have one column.\n\t\t * Additionally, the text portion of each button will be set to the color that the button is connected to.\n\t\t */\n\t\tJButton blackButton = new JButton (\"Black\");\n\t\tcolorPanel.add(blackButton);\n\t\tblackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.black);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton yellowButton = new JButton (\"Yellow\");\n\t\tyellowButton.setForeground(Color.yellow);\n\t\tcolorPanel.add(yellowButton);\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.yellow);\n\t\t\t}\n\t\t});\n\n\t\tJButton greenButton = new JButton (\"Green\");\n\t\tgreenButton.setForeground(Color.green);\n\t\tcolorPanel.add(greenButton);\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.green);\n\t\t\t}\n\t\t});\n\n\t\tJButton blueButton = new JButton (\"Blue\");\n\t\tblueButton.setForeground(Color.blue);\n\t\tcolorPanel.add(blueButton);\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.blue);\n\t\t\t}\n\t\t});\n\n\t\tJButton magentaButton = new JButton (\"Magenta\");\n\t\tmagentaButton.setForeground(Color.magenta);\n\t\tcolorPanel.add(magentaButton);\n\t\tmagentaButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.magenta);\n\t\t\t}\n\t\t});\n\n\t\tJButton redButton = new JButton (\"Red\");\n\t\tredButton.setForeground(Color.red);\n\t\tcolorPanel.add(redButton);\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.red);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton pinkButton = new JButton (\"Pink\");\n\t\tpinkButton.setForeground(Color.pink);\n\t\tcolorPanel.add(pinkButton);\n\t\tpinkButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.pink);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tframe.setVisible(true);\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}",
"public abstract void paint(Graphics g);"
] |
[
"0.71614635",
"0.7094713",
"0.6995845",
"0.6880131",
"0.68800026",
"0.681294",
"0.67111003",
"0.66835827",
"0.66835827",
"0.66835827",
"0.6614024",
"0.66007155",
"0.6596064",
"0.65346116",
"0.6465991",
"0.64455855",
"0.64062977",
"0.63925546",
"0.6372358",
"0.6368468",
"0.6349739",
"0.6348717",
"0.6343953",
"0.6320068",
"0.63143915",
"0.6291438",
"0.6287979",
"0.6284983",
"0.6253489",
"0.62189984",
"0.62049055",
"0.6197055",
"0.6194163",
"0.6193947",
"0.61682457",
"0.61610466",
"0.6144285",
"0.6140223",
"0.6136859",
"0.6133339",
"0.6121951",
"0.6092799",
"0.6077762",
"0.60771364",
"0.60639584",
"0.5964064",
"0.59599537",
"0.59527713",
"0.5952246",
"0.5948305",
"0.59391785",
"0.5928818",
"0.5918576",
"0.5918058",
"0.5899787",
"0.5883441",
"0.5856124",
"0.5829367",
"0.5816803",
"0.5813752",
"0.58113605",
"0.5807366",
"0.5802754",
"0.57959926",
"0.5793883",
"0.57938033",
"0.5791573",
"0.5787595",
"0.5784021",
"0.5781657",
"0.57743496",
"0.5768747",
"0.5768008",
"0.5761239",
"0.57538027",
"0.57514566",
"0.57508874",
"0.57502216",
"0.574283",
"0.573701",
"0.5730242",
"0.5712546",
"0.57091445",
"0.570372",
"0.5703448",
"0.57033426",
"0.5702012",
"0.57012594",
"0.5699131",
"0.5688449",
"0.5678668",
"0.56702197",
"0.5666866",
"0.56654674",
"0.5662766",
"0.5659172",
"0.56565124",
"0.565609",
"0.5650749",
"0.5642485"
] |
0.7585305
|
0
|
Basic shape painting paints shape fill and stroke.
|
public void paintShape(RMShapePainter aPntr)
{
// If fill/stroke present, have them paint
if(getFill()!=null)
getFill().paint(aPntr, this);
if(getStroke()!=null && !getStrokeOnTop())
getStroke().paint(aPntr, this);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void strokeShape(Shape shape);",
"public void paint(Graphics2D g){\n g.setColor(color);\n g.fill(shape);\n }",
"public abstract void drawFill();",
"public void drawShape(Shape shape);",
"@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }",
"private void drawShapeWithFilling(Canvas canvas, int filling, int shape) {\n switch (filling) {\n case 1:\n paint.setStyle(Paint.Style.STROKE);\n drawShape(canvas, shape);\n break;\n case 2:\n /*\n * For intermediate filling, we draw concentric copies of\n * the same shape.\n */\n paint.setStyle(Paint.Style.STROKE);\n float w = r.width() / 2.0F;\n float u = CONCENTRIC_STEP * (r.height() / r.width());\n for (float i = 0; i < w; i += CONCENTRIC_STEP) {\n drawShape(canvas, shape);\n r.left += CONCENTRIC_STEP;\n r.top += u;\n r.right -= CONCENTRIC_STEP;\n r.bottom -= u;\n }\n break;\n case 3:\n paint.setStyle(Paint.Style.FILL);\n drawShape(canvas, shape);\n break;\n default:\n throw new IllegalArgumentException(\n \"Illegal filling characteristic.\");\n }\n }",
"DrawShape(){\r\n super();\r\n setBackground(Color.WHITE);\r\n addMouseListener(this);\r\n }",
"public void fillShape(Shape shape);",
"private void drawShape(Graphics g, IShape shape) {\r\n Color color = shape.getColor();\r\n if (shape.getPosition() != null) {\r\n int x = shape.getPosition().getX();\r\n int y = shape.getPosition().getY();\r\n int width = shape.getWidth();\r\n int height = shape.getHeight();\r\n\r\n\r\n switch (shape.getShapeType()) {\r\n case \"Ellipse\":\r\n g.setColor(color);\r\n g.fillOval(x, y, width, height);\r\n g.drawOval(x, y, width, height);\r\n break;\r\n case \"Rectangle\":\r\n g.setColor(color);\r\n g.fillRect(x, y, width, height);\r\n g.drawRect(x, y, width, height);\r\n break;\r\n case \"Plus\":\r\n g.setColor(color);\r\n int width1 = width ;\r\n int height2 = height;\r\n int height1 = height / 2;\r\n int width2 = width / 2;\r\n int x1 = x;\r\n int y1 = y + height / 4;\r\n int x2 = x + width / 4;\r\n int y2 = y;\r\n g.fillRect(x1, y1, width1, height1);\r\n g.fillRect(x2, y2, width2, height2);\r\n break;\r\n default:\r\n return;\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}",
"void drawShape() {\n System.out.println(\"Drawing Triangle\");\n this.color.addColor();\n }",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(this.color);\r\n\t\tg.fillOval((int)x, (int)y, side, side);\r\n\t\tg.setColor(this.color2);\r\n\t\tg.fillOval((int)x+5, (int)y+2, side/2, side/2);\r\n\t}",
"public Shapes draw ( );",
"void drawOutline(DrawContext dc, Object shape);",
"public void paint(Graphics g) {\n\t\tSystem.out.println(\"Painting shapes\");\n\t\t\n\t\t// draw a red square\n\t\tPoint corner = new Point(10,10);\n\t\tint size = 100;\n\t\tg.setColor(Color.RED);\n\t\tg.drawRect(corner.x, corner.y, size, size);\n\t\t\n\t\t// draw a blue circle\n\t\tint radius = 50;\n\t\tPoint center = new Point(200, 10+radius);\n\t\tg.setColor(Color.BLUE);\n\t\t// syntax: drawOver(xTopLeft, yTopLeft, width, height)\n\t\tg.drawOval(center.x-radius, center.y-radius, 2*radius, 2*radius);\n\n\t}",
"@Override\n public void draw(GraphicsContext gc) {\n gc.setFill(getFillColor());\n gc.setStroke(getStrokeColor());\n gc.setLineWidth(getStrokeWidth());\n gc.fillRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n gc.strokeRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n }",
"@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}",
"@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}",
"public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}",
"public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}",
"@Override\n\tpublic void paintObject(Graphics g) {\n\t\tg.setColor(this.color);\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.setStroke(new BasicStroke(3));\n\t\tg2d.drawOval(x, y, width, height);\n\t\tg2d.fillOval(x, y, width, height);\n\t}",
"static public void drawShape(Graphics g, double x, double y, double width, double height, \n \t ShapeAnnotation annotation, boolean isPrinting) {\n \t\tGraphics2D g2 = (Graphics2D)g;\n \n \t\t// System.out.println(\"drawShape: (\"+x+\",\"+y+\",\"+width+\"x\"+height+\")\");\n \n \t\t// Get the stroke\n \t\tfloat border = (float)annotation.getBorderWidth();\n \t\tif (!isPrinting && border < 1.0f) border = 1.0f;\n \t\t// System.out.println(\"Border width = \"+border+\", isPrinting = \"+isPrinting);\n \n \t\t// Get the shape\n \t\tShape shape = getShape(annotation.getShapeType(), x+border, y+border, width-border, height-border);\n \t\t// System.out.println(\"drawShape: shape = \"+shape.toString());\n \n \t\t// Set our fill color\n \t\tif (annotation.getFillColor() != null) {\n \t\t\t// System.out.println(\"drawShape: fill color = \"+annotation.getFillColor());\n \t\t\t// System.out.println(\"drawShape: fill opacity = \"+annotation.getFillOpacity());\n \t\t\tg2.setPaint(annotation.getFillColor());\n \t\t\tg2.fill(shape);\n \t\t}\n \n \t\tif (annotation.getBorderColor() != null && !annotation.isSelected()) {\n \t\t\t// System.out.println(\"drawShape: border color = \"+annotation.getBorderColor());\n \t\t\t// System.out.println(\"drawShape: border opacity = \"+annotation.getBorderOpacity());\n \t\t\tg2.setPaint(annotation.getBorderColor());\n \t\t\tg2.setStroke(new BasicStroke(border));\n \t\t\tg2.draw(shape);\n \t\t} else if (annotation.isSelected()) {\n \t\t\t// Create a yellow border around the shape\n \t\t\tBasicStroke stroke = new BasicStroke(border);\n \t\t\tShape strokedShape = stroke.createStrokedShape(shape);\n \t\t\tg2.setPaint(Color.YELLOW);\n \t\t\tg2.draw(strokedShape);\n \t\t} else {\n \t\t\tg2.draw(shape);\n \t\t}\n \t}",
"public abstract void setStroke(BasicStroke stroke);",
"public static void paint(Graphics2D g, Color color) {\n Shape shape = null;\n\n // \n\n // _0\n\n // _0_0\n shape = new GeneralPath();\n ((GeneralPath) shape).moveTo(47.0, 21.5);\n ((GeneralPath) shape).lineTo(21.6923, 0.0);\n ((GeneralPath) shape).lineTo(21.6923, 14.5);\n ((GeneralPath) shape).lineTo(0.0, 14.5);\n ((GeneralPath) shape).lineTo(0.0, 28.0);\n ((GeneralPath) shape).lineTo(21.6923, 28.0);\n ((GeneralPath) shape).lineTo(21.6923, 43.0);\n ((GeneralPath) shape).lineTo(47.0, 21.5);\n ((GeneralPath) shape).closePath();\n\n g.setPaint(color);\n g.fill(shape);\n\n }",
"public void paint( Graphics g )\n {\n g.setColor( drawingColor );\n\n // draw text\n if ( textOn ) {\n g.setFont( new Font( font, Font.PLAIN, fontSize ) );\n g.drawString( text.getText(), topX, topY );\n textOn = false;\n return;\n \n } // end if statement\n\n // set shape's top left coordinates\n if ( shape != LINE ) {\n topX = Math.min( topX, bottomX );\n topY = Math.min( topY, bottomY );\n \n } // end if statement\n\n // draw filled shape\n if ( filled && shape != LINE )\n\n switch ( shape ) {\n\n case OVAL:\n g.fillOval( topX, topY, width, height );\n break;\n\n case RECT:\n g.fillRect( topX, topY, width, height );\n break;\n \n } // end switch statement\n\n // draw unfilled shapes\n else\n\n switch ( shape ) {\n\n case OVAL:\n g.drawOval( topX, topY, width, height );\n break;\n\n case LINE:\n g.drawLine( topX, topY, bottomX, bottomY );\n break;\n\n case RECT:\n g.drawRect( topX, topY, width, height );\n break;\n \n } // ens switch statement\n\n // clear background\n if ( clear == true ) {\n g.setColor( Color.white );\n g.fillRect( 0, 0, getSize().width, getSize().height );\n clear = false;\n \n } // end if statement\n\n }",
"public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }",
"@Override\n\tpublic void paint(Graphics2D g) {\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawOval(this.x,this.y, width,height);\n\t\tg.fillOval(this.x,this.y, width,height);\n\t}",
"@Override\n\tpublic void drawShape(Graphics g) {\n\t\tg.setColor(getColor());\n\t\tg.drawLine(startPoint.getX(), startPoint.getY(), endPoint.getX(), endPoint.getY());\n\t\tif(isSelected())\n\t\t\tselectedShape(g);\n\t}",
"void renderShape(ArrayList<PVector> vertices, int fillColor) {\n processing.fill(fillColor);\n processing.noStroke();\n\n // draw a polygon\n processing.beginShape();\n for (PVector v : vertices) {\n processing.vertex(v.x, v.y);\n }\n processing.endShape(processing.CLOSE);\n }",
"public void draw() {\n\tbackground(bg_count); // set background to something\n\tbg_count = bg_count + bg_dir;\n\tif (bg_count >= 255) {\n\t bg_dir = -1;\n\t} else if (bg_count <= 0) {\n\t bg_count = 0;\n\t bg_dir = 1;\n\t}\n\tellipse_x = ellipse_x + ellipse_x_dir;\n\tellipse_y = ellipse_y - ellipse_y_dir;\n\n\tif (ellipse_x > width) {\n\t ellipse_x_dir = -1;\n\t ellipse_x = width - 1;\n\t} else if (ellipse_x < 0) {\n\t ellipse_x_dir = 1;\n\t ellipse_x = 0;\n\t}\n\tif (ellipse_y > height) {\n\t ellipse_y_dir = -1;\n\t ellipse_y = height - 1;\n\t} else if (ellipse_y < 0) {\n\t ellipse_y_dir = 1;\n\t ellipse_y = 0;\n\t}\n\n\tfill(0, 64, 0);\n\t// x y w h\n\trect(400, 300, 200, 100);\n\n\tfill(212, 111, 249);\n\t\n\tstrokeWeight(4.0f);\n\n\t// x y r1 r2 // can set to mouseX, mouseY\n\tellipse(ellipse_x, ellipse_y, 30, 30);\n\n\t// some draw methods associated with PApplet:\n\t// background(int)\n\t// stroke(int, int, int)\n\t// fill(int)\n\t// ellipse(x, y, radius_1, radius_2)\n\t// noFill()\n\n\t// text(str, x, y)\n }",
"public void strokeRectangle(RectangleShape rectangle);",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\n public void fill() {\n graphicsEnvironmentImpl.fill(canvas);\n }",
"private void setupDrawing(){\n brushSize = 1;\n lastBrushSize = brushSize;\n drawPath = new Path();\n drawPaint = new Paint();\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }",
"public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}",
"@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tgc.setFill(this.color.getColor());\n\t\tgc.fillRect(MyPoint.point[0], MyPoint.point[1], this.width, this.height);\n\t}",
"public void paint (Graphics g) {\n g.fillArc (20, 30, 150, 130, 240, 90);\n }",
"@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}",
"@Override\n public void drawingMethod(final Graphics theGraphics, final DrawShape theShape) {\n final Path2D path = new Path2D.Double();\n path.moveTo(theShape.getStartPoint().getX(), \n theShape.getStartPoint().getY());\n path.lineTo(theShape.getEndPoint().getX(),\n theShape.getEndPoint().getY());\n final Graphics2D g2d = (Graphics2D) theGraphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setStroke(new BasicStroke(theShape.getMyThick()));\n g2d.setColor(theShape.getMyColor());\n g2d.draw(path); \n }",
"public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}",
"void drawShape(Shape s) {\n }",
"public void draw(Shape shape) {\n this.shape = shape; //setter\n System.out.println(shape.draw()); //execute\n }",
"public EpsShape(Shape shape, boolean filled) {\n\t\tsuper();\n\t\tthis.shape=shape;\n\t\tthis.filled=filled;\n\t}",
"public void drawStroke(Canvas canvas, Paint eraser, Shape shape, int xPosition, int yPosition, int shapePadding) {\n }",
"public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}",
"public void paint(Graphics g) \n\t{\n\t\tg.setColor(colour);\n\t\tg.fillOval(posX, posY, diam, diam);\n\t}",
"public void paint(RMShapePainter aPntr)\n{\n // Clone graphics\n RMShapePainter pntr = aPntr.clone();\n \n // Apply transform for shape\n if(isRSS()) pntr.transform(getTransform().awt());\n else pntr.translate(getX(), getY());\n \n // If shape bounds don't intersect clip bounds, just return\n Rectangle cbounds = pntr.getClip()!=null? pntr.getClipBounds() : null;\n if(cbounds!=null && !getBoundsMarkedDeep().intersects(cbounds))\n return;\n \n // If shape is semi-transparent, apply composite\n if(getOpacityDeep()!=1) {\n float op = pntr.isEditing()? Math.max(.15f, getOpacityDeep()) : getOpacityDeep();\n pntr.setOpacity(op);\n }\n \n // If shape has a effect, have it paint\n if(getEffect()!=null)\n getEffect().paint(pntr, this);\n \n // Otherwise paintShapeAll\n else paintShapeAll(pntr);\n \n // Dispose of graphics\n pntr.dispose();\n}",
"void draw(IViewShapes shape);",
"@Override\n\tpublic void paintComponent(java.awt.Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tg.setColor(java.awt.Color.green);\n\t\tg.fillOval(x, y, 50, 50);\n\t\tg.setColor(java.awt.Color.black);\n\t\tg.drawOval(x, y, 50, 50);\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}",
"@Override\n public void draw(ModernComponent c, Graphics2D g2, IntRect rect, Props props) {\n\n g2.setColor(FILL);\n\n fill(c, g2, rect, props);\n\n g2.setColor(BORDER);\n outline(c, g2, rect, props);\n }",
"public void drawShape(RShape shape) {\n // Recurse through any children of this shape\n for (int i = 0; i < shape.countChildren(); i++) {\n RShape s = shape.children[i];\n drawShape(s);\n }\n\n // Iterate through each path of the shape, drawing them to the screen\n for (int i = 0; i < shape.countPaths(); i++) {\n // Get the points of the current path\n RPath p = shape.paths[i];\n RPoint[] points = p.getPoints();\n\n // Connect each of the points using lines\n for (int k = 0; k < points.length - 1; k++) {\n line(points[k].x, points[k].y, points[k + 1].x, points[k + 1].y);\n }\n }\n }",
"void drawInterior(DrawContext dc, Object shape);",
"@Override\n public void stroke() {\n graphicsEnvironmentImpl.stroke(canvas);\n }",
"public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}",
"public void draw(Graphics g){\n g.setColor(c);\n if (this.fill){\n g.fillOval(x, y, width, height);\n }else{\n g.drawOval(x, y, width, height);\n }\n }",
"public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }",
"@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D)g;\n\n if (shapeList != null) {\n shapeList.sort(Comparator.comparing(Shape::getLayer));\n for (Shape shape : shapeList) {\n if (shape.getType() == ShapeType.RECTANGLE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillRect(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n else if (shape.getType() == ShapeType.ELLIPSE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillOval(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n }\n }\n }",
"public void paint(Graphics g)\n {\n robot.readPosition(robotPos);\n // draws the shape\n Polygon globalShape = new Polygon();\n Point2D point = new Point2D.Double();\n for (int i = 0; i < shape.npoints; i++)\n {\n point.setLocation(shape.xpoints[i], shape.ypoints[i]);\n // calculates the coordinates of the point according to the local position\n localPos.rototras(point);\n // calculates the coordinates of the point according to the robot position\n robotPos.rototras(point);\n // adds the point to the global shape\n globalShape.addPoint((int) Math.round(point.getX()), (int) Math.round(point.getY()));\n }\n ((Graphics2D) g).setColor(bgColor);\n if (fillShape) ((Graphics2D) g).fillPolygon(globalShape);\n ((Graphics2D) g).setColor(fgColor);\n ((Graphics2D) g).drawPolygon(globalShape);\n }",
"public Pen() {\n color = Color.BLACK;\n stroke = new BasicStroke();\n }",
"@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.orange);\n\t\tg.fillRect(getX(), getY(), getW(), getH());\n\t}",
"private void drawFill(Graphics2D g2, boolean pressed, int x, int y, int w, int h)\r\n/* 218: */ {\r\n/* 219: */ Color lowerRight;\r\n/* 220: */ Color upperLeft;\r\n/* 221: */ Color lowerRight;\r\n/* 222:250 */ if (pressed)\r\n/* 223: */ {\r\n/* 224:251 */ Color upperLeft = MetalLookAndFeel.getControlShadow();\r\n/* 225:252 */ lowerRight = PlasticLookAndFeel.getControlHighlight();\r\n/* 226: */ }\r\n/* 227: */ else\r\n/* 228: */ {\r\n/* 229:254 */ upperLeft = PlasticLookAndFeel.getControl();\r\n/* 230:255 */ lowerRight = PlasticLookAndFeel.getControlHighlight().brighter();\r\n/* 231: */ }\r\n/* 232:257 */ g2.setPaint(new GradientPaint(x, y, upperLeft, x + w, y + h, lowerRight));\r\n/* 233:258 */ g2.fillOval(x, y, w, h);\r\n/* 234: */ }",
"public void draw(Graphics g) {\r\n\t\tGraphics2D g2d = (Graphics2D) g;\r\n\t\tg2d.setStroke(new BasicStroke((float) penWidth));\r\n\t\tg2d.setPaint(borderColor);\r\n\t\tif (width<height){\r\n\t\t\tg2d.drawPolygon(new int[]{p.x,p.x + (width / 2),p.x + width, p.x + (width/2)}, new int[] {p.y,p.y + (width/3),p.y,p.y + width},4);\r\n\t\t}else{\r\n\t\t\tg2d.drawPolygon(new int[]{p.x,p.x + (height/2),p.x + height, p.x + (height/2)}, new int[] {p.y,p.y+(height/3),p.y,p.y + height},4);\r\n\r\n\t\t}\r\n\t\tdrawHandles(g);\r\n\t}",
"public ShapeGraphics createShapeGraphics(Shape shape, Color filling, Color colorLine, float thick, float alpha, float depth) {\n\t\tShapeGraphics shapeGraphics = new ShapeGraphics(shape, filling, colorLine, thick, alpha, depth);\n\t\tshapeGraphics.setParent(entity);\n\t\treturn shapeGraphics;\n\t}",
"@Override\n\tpublic void drawShape(Graphics2D g) {\n\t\tsuper.drawShape(g);\n\t\trect.drawAndFillShape(g);\n\t\tuiText.drawShape(g);\n\t}",
"public void draw(GraphicsContext gc) {\r\n gc.setStroke(Color.BLACK);\r\n gc.setFill(Color.BLUE);\r\n gc.setLineWidth(5.0);\r\n double r = radius / 2;\r\n gc.fillRect(x - r, y - r, radius * 2, radius * 2);\r\n gc.strokeRect(x - r, y - r, radius * 2, radius * 2);\r\n }",
"private void drawFill(Graphics2D g2, boolean pressed, int x, int y, int w, int h)\r\n/* 114: */ {\r\n/* 115: */ Color lowerRight;\r\n/* 116: */ Color upperLeft;\r\n/* 117: */ Color lowerRight;\r\n/* 118:158 */ if (pressed)\r\n/* 119: */ {\r\n/* 120:159 */ Color upperLeft = MetalLookAndFeel.getControlShadow();\r\n/* 121:160 */ lowerRight = PlasticLookAndFeel.getControlHighlight();\r\n/* 122: */ }\r\n/* 123: */ else\r\n/* 124: */ {\r\n/* 125:162 */ upperLeft = PlasticLookAndFeel.getControl();\r\n/* 126:163 */ lowerRight = PlasticLookAndFeel.getControlHighlight().brighter();\r\n/* 127: */ }\r\n/* 128:165 */ g2.setPaint(new GradientPaint(x, y, upperLeft, x + w, y + h, lowerRight));\r\n/* 129:166 */ g2.fillRect(x, y, w, h);\r\n/* 130: */ }",
"public void draw(Graphics g) {\n g.setColor(COLOR);\n g.fillOval(x, y, WIDTH, HEIGHT);\n g.setColor(Color.BLUE);\n g.drawOval(x, y, WIDTH, HEIGHT);\n \n }",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.green);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t}",
"private void drawShape(Canvas canvas, int shape) {\n switch (shape) {\n case 1:\n canvas.drawOval(r, paint);\n break;\n case 2:\n canvas.drawRect(r, paint);\n break;\n case 3:\n drawDiamond(canvas);\n break;\n default:\n throw new IllegalArgumentException(\n \"Illegal shape characteristic.\");\n }\n }",
"public void drawFilled (Graphics g)\n {\n g.setColor (color2);\n g.fillRect (xStart, yStart, width2, height2);\n }",
"public final void draw(Graphics2D g) {\n if (fillColor == null) {\n fillColor = this.myColor();\n }\n\n super.draw(g);\n\n // refresh the width and height attributes\n refreshDimensions(g);\n\n int nameFieldHeight = calculateNameFieldHeight(g);\n int attributeFieldHeight = calculateAttributeFieldHeight(g);\n int methodFieldHeight = calculateMethodFieldHeight(g);\n int startingX = getX();\n int startingY = getY();\n\n // determine the outline of the rectangle representing the class\n g.setPaint(fillColor);\n Shape shape = new Rectangle2D.Double(startingX, startingY, width, height);\n g.fill(shape);\n\n Stroke originalStroke = g.getStroke();\n g.setStroke(new BasicStroke(1.2f));\n originalStroke = g.getStroke();\n if (isSelected()) {\n g.setStroke(new BasicStroke(2));\n g.setPaint(highlightColor);\n } else {\n g.setStroke(originalStroke);\n g.setPaint(outlineColor);\n }\n\n g.draw(shape);\n g.setStroke(originalStroke);\n g.setPaint(outlineColor);\n\n // draw the inner lines\n g.drawLine(startingX, startingY + nameFieldHeight, startingX + width, startingY + nameFieldHeight);\n g.drawLine(startingX, startingY + nameFieldHeight + attributeFieldHeight, startingX + width,\n startingY + nameFieldHeight + attributeFieldHeight);\n\n FontRenderContext frc = g.getFontRenderContext();\n int currentY = 0;\n\n currentY = drawStereotype(g, frc, startingX, startingY, currentY); //hook for design class\n\n // draw class name\n if (!abstractClass.getName().equals(\"\")) {\n String name = abstractClass.getName();\n TextLayout layout = new TextLayout(name, nameFont, frc);\n Rectangle2D bounds = layout.getBounds();\n int nameX = ((width - (int) bounds.getWidth()) / 2) - (int) bounds.getX();\n int nameY = currentY + nameFieldYOffset - (int) bounds.getY();\n\n g.setFont(nameFont);\n g.drawString(name, startingX + nameX, startingY + nameY);\n }\n\n // draw the attributes\n g.setFont(attributeFont);\n\n currentY = nameFieldHeight + 2;\n\n int attributeX;\n int attributeY;\n TextLayout layout;\n Rectangle2D bounds;\n\n String name;\n Iterator iterator = abstractClass.getAttributes().iterator();\n while (iterator.hasNext()) {\n name = ((Attribute) iterator.next()).toString();\n layout = new TextLayout(name, attributeFont, frc);\n bounds = layout.getBounds();\n attributeX = attributeFieldXOffset - (int) bounds.getX();\n attributeY = currentY + attributeFieldYOffset - (int) bounds.getY();\n g.drawString(name, startingX + attributeX, startingY + attributeY);\n currentY = currentY + attributeFieldYOffset + (int) bounds.getHeight();\n }\n\n currentY = nameFieldHeight + attributeFieldHeight + 2;\n currentY = drawMethods(g, frc, startingX, startingY, currentY);\n }",
"public void draw(Graphics g) {\n\t\t\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tjava.awt.Shape outer = new Ellipse2D.Double(getCenter().getX() - getRadius(), getCenter().getY() - getRadius(), getRadius()*2, getRadius()*2);\n\t\tjava.awt.Shape inner = new Ellipse2D.Double(getCenter().getX() - innerRadius, getCenter().getY() - innerRadius, innerRadius*2, innerRadius*2);\n\t\t\n\t\tArea circle = new Area(outer);\n\t\tcircle.subtract(new Area(inner));\n\t\t\n\t\tg2d.setColor(getInnerColor());\n\t\tg2d.fill(circle);\n\t\tg2d.setColor(getColor());\n\t\tg2d.draw(circle);\n\t\tg2d.dispose();\n\t\t\n\t\tif (isSelected()) {\n\t\t\tg.setColor(Color.BLUE);\n\t\t\tg.drawRect(this.getCenter().getX() - 3, this.getCenter().getY() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() - getRadius() - 3, this.getCenter().getY() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() + getRadius() - 3, this.getCenter().getY() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() - 3, this.getCenter().getY() - getRadius() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() - 3, this.getCenter().getY() + getRadius() - 3, 6, 6);\n\t\t}\n\t}",
"public void draw()\n {\n Rectangle hatbox = new Rectangle(x, y, 20, 20);\n hatbox.fill();\n Rectangle brim = new Rectangle(x-10, y+20, 40, 0);\n brim.draw();\n Ellipse circle = new Ellipse (x, y+20, 20, 20);\n circle.draw();\n Ellipse circle2 = new Ellipse (x-10, y+40, 40, 40);\n circle2.draw();\n Ellipse circle3 = new Ellipse (x-20, y+80, 60, 60);\n circle3.draw();\n \n }",
"public void setFill(boolean fill) {\r\n if (fill) {\r\n \tmPaint.setStyle(Paint.Style.FILL);\r\n }else{\r\n \tmPaint.setStyle(Paint.Style.STROKE);\r\n }\r\n }",
"public void setStroke(Stroke stroke);",
"@Override\r\n\tpublic void paint(Graphics g) {\n\t\tGraphics2D g2d= (Graphics2D)g;//Cast the Graphics received in the paint method to Graphics2D\r\n\t\tg2d.setColor(Color.RED);//Set the color to red\r\n\t\tg2d.setStroke(new BasicStroke(5));//Set the width of the line to 5px \r\n\t\t//g2d.drawLine(0, 0, 500, 500);//Draw a line starting at point (0,0) and ending at point (500,500)\r\n\t\t//g2d.drawRect(100, 100, 300, 300);//Draw a rectangle with upper left corner at (100,100) and with width and height of 300px\r\n\t\tg2d.setColor(Color.GREEN);//Set the color to green\r\n\t\t//g2d.fillRect(100, 100, 300, 300);//Fill the rectangle\r\n\t\t\r\n\t\t//If we will draw the line first and then the rectangle, the rectangle will be on top of the line and hide part of it\r\n\t\t//g2d.drawOval(100, 100, 300, 300);//Draw circle\r\n\t\t//g2d.fillOval(100, 100, 300, 300);//Fill the circle\r\n\t\t\r\n\t\t//g2d.drawArc(100,100,200,200,0,180);//Draw half circle\r\n\t\r\n\t\t//g2d.drawArc(100,100,200,200,180,180);//Flip it\r\n\t\t//g2d.drawArc(100,100,200,200,0,270);//Draw 3/4 of a circle\r\n\t\t\r\n\t\t//int[] xPoints= {150,250,350};\r\n\t\t//int[] yPoints= {300,150,300};\r\n\t\t//g2d.drawPolygon(xPoints,yPoints,3);//Draw rectangle using polygon, specify x points and y points of the corners and number of corners,\r\n\t\t\t\t\t\t\t\t\t\t //we can specify more than 3 corners and create different shapes.\r\n\t\t\t\t\r\n\t\t//g2d.fillPolygon(xPoints,yPoints,3);//Fill the rectangle using polygon\r\n\t\tg2d.setColor(Color.BLACK);//Set the color to black\r\n\t\tg2d.setFont(new Font(\"Ink Free\", Font.BOLD,40));\r\n\t\tg2d.drawString(\"Hello world\", 100, 100);\r\n\t}",
"private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}",
"public void fill(Shape s)\r\n\t{\r\n\t\t// draw a rectangle with these proportions\r\n\t\tif (s instanceof RectangularShape)\r\n\t\t{\r\n\t\t\tRectangularShape rect = (RectangularShape) s;\r\n\t\t\tg.fillRect((int) rect.getX(), (int) rect.getY(), (int) rect.getWidth(),\r\n\t\t\t\t\t(int) rect.getHeight());\r\n\t\t}\r\n\t\t// else\r\n\t\t// System.out.println(\"fill for this shape not supported\");\r\n\t}",
"public void draw(Graphics g) {\n\t\tGraphics2D graphic2d = (Graphics2D) g;\n\t\t//loop through and create circles\n\t\tint bool = 0;\n\t\t//makes 36 squares\n\t\tfor (int x=1; x < 37; x++) {\t\t\t\n\t\t\tRectangle2D shape = new Rectangle2D.Double(super.getX(), super.getY(), super.width/2, super.height/2);\n\t\t\tfinal AffineTransform saved = graphic2d.getTransform();\n\t\t\t//converts 10 to radians and rotates shape by 10 degrees\n\t\t\tfinal AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(x*10), super.getX(), super.getY());\n\t\t\tgraphic2d.transform(rotate);\n\t\t\t//paints a different square colour every 9 squares\n\t\t\tif (x%9 == 0) {\n\t\t\t\tif (bool == 0) {\n\t\t\t\t\tgraphic2d.setPaint(super.borderColor);\n\t\t\t\t\tbool = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t\t\tbool = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tgraphic2d.fill(shape);\n\t\t\tgraphic2d.setTransform(saved);\n\t\t}\n\t\tdrawHandles(g);\n\t\t\n\t}",
"public void execDrawEllipse(Stroke stroke , Color borderColor, Color fillColor, Ellipse2D.Double hole , boolean isFill){\n\t\tthis.mg2.setColor(borderColor); \n\t\tthis.mg2.setStroke(stroke);\t\t\n\t\tthis.mg2.draw(hole);\n\t\tif(isFill){\n\t\t\tthis.mg2.setColor(fillColor); \n\t\t\tthis.mg2.draw(hole);\n\t\t}\n\t}",
"public void draw(PApplet applet) {\n\t\tapplet.pushStyle();\n\t\t\n\t\tfor(PhysicsShape shape : shapes) {\n\t\t\tshape.draw(applet);\n\t\t}\n\t\t\n\t\tapplet.popStyle();\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.ORANGE);\n\t\tg.fillRect(x, y, WIDTH, HEIGHT);\n\t}",
"public void paint (Graphics g) {\n super.paint(g);\n // g.setColor(Color.BLUE);\n // g.drawRect(0, 0, 100, 100);\n }",
"public void paintComponent(Graphics2D g2)\r\n {\r\n g2.setColor(preferredColor());\r\n if (isPhasing)\r\n g2.draw(shape());\r\n else\r\n g2.fill(shape());\r\n }",
"public void paint(Graphics2D g) {\n g.setColor(Color.ORANGE); // sets the color of the ball as orange\r\n g.fillOval(x, y, DIAMETER, DIAMETER); // fills the oval with specific diameter and position in the screen\r\n }",
"protected boolean isShapeFilled(Plot plot, int series, int item, double x, double y) {\n return false;\n }",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t\t\r\n\t}",
"private void drawWithGraphicStroke(Graphics2D graphic, Shape path, Graphic gFill,\n Feature feature) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"drawing a graphicalStroke\");\n }\n \n int trueImageHeight = 0;\n int trueImageWidth = 0;\n \n // get the image to draw\n BufferedImage image = getExternalGraphic(gFill);\n \n if (image != null) {\n trueImageWidth = image.getWidth();\n trueImageHeight = image.getHeight();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"got an image in graphic fill\");\n }\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"going for the mark from graphic fill\");\n }\n \n Mark mark = getMark(gFill, feature);\n int size = 200;\n trueImageWidth = size;\n trueImageHeight = size;\n \n image = new BufferedImage(size, size, BufferedImage.TYPE_INT_ARGB);\n \n Graphics2D g1 = image.createGraphics();\n double rotation = 0.0;\n rotation = ((Number) gFill.getRotation().getValue(feature)).doubleValue();\n fillDrawMark(g1, markCentrePoint, mark, (int) (size * .9), rotation, feature);\n \n MediaTracker track = new MediaTracker(obs);\n track.addImage(image, 1);\n \n try {\n track.waitForID(1);\n } catch (InterruptedException e) {\n LOGGER.warning(e.toString());\n }\n }\n \n int size = 6;\n \n size = ((Number) gFill.getSize().getValue(feature)).intValue();\n \n int imageWidth = size; //image.getWidth();\n int imageHeight = size; //image.getHeight();\n \n PathIterator pi = path.getPathIterator(null, 10.0);\n double[] coords = new double[6];\n int type;\n \n double[] first = new double[2];\n double[] previous = new double[2];\n type = pi.currentSegment(coords);\n first[0] = coords[0];\n first[1] = coords[1];\n previous[0] = coords[0];\n previous[1] = coords[1];\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"starting at \" + first[0] + \",\" + first[1]);\n }\n \n pi.next();\n \n while (!pi.isDone()) {\n type = pi.currentSegment(coords);\n \n switch (type) {\n case PathIterator.SEG_MOVETO:\n \n // nothing to do?\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"moving to \" + coords[0] + \",\" + coords[1]);\n }\n \n break;\n \n case PathIterator.SEG_CLOSE:\n \n // draw back to first from previous\n coords[0] = first[0];\n coords[1] = first[1];\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"closing from \" + previous[0] + \",\" + previous[1] + \" to \"\n + coords[0] + \",\" + coords[1]);\n }\n \n // no break here - fall through to next section\n case PathIterator.SEG_LINETO:\n \n // draw from previous to coords\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"drawing from \" + previous[0] + \",\" + previous[1] + \" to \"\n + coords[0] + \",\" + coords[1]);\n }\n \n double dx = coords[0] - previous[0];\n double dy = coords[1] - previous[1];\n double len = Math.sqrt((dx * dx) + (dy * dy)); // - imageWidth;\n \n double theta = Math.atan2(dx, dy);\n dx = (Math.sin(theta) * imageWidth);\n dy = (Math.cos(theta) * imageHeight);\n \n //int dx2 = (int)Math.round(dy/2d);\n //int dy2 = (int)Math.round(dx/2d);\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"dx = \" + dx + \" dy \" + dy + \" step = \"\n + Math.sqrt((dx * dx) + (dy * dy)));\n }\n \n double rotation = theta - (Math.PI / 2d);\n double x = previous[0] + (dx / 2.0);\n double y = previous[1] + (dy / 2.0);\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"len =\" + len + \" imageWidth \" + imageWidth);\n }\n \n double dist = 0;\n \n for (dist = 0; dist < (len - imageWidth); dist += imageWidth) {\n /*graphic.drawImage(image2,(int)x-midx,(int)y-midy,null); */\n renderImage(x, y, image, size, rotation);\n \n x += dx;\n y += dy;\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"loop end dist \" + dist + \" len \" + len + \" \" + (len - dist));\n }\n \n if ((len - dist) > 0.0) {\n double remainder = len - dist;\n \n //clip and render image\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"about to use clipped image \" + remainder);\n }\n \n BufferedImage img = new BufferedImage(trueImageHeight, trueImageWidth,\n BufferedImage.TYPE_INT_ARGB);\n Graphics2D ig = img.createGraphics();\n ig.setClip(0, 0, (int) (((double) trueImageWidth * remainder) / (double) size),\n trueImageHeight);\n \n ig.drawImage(image, 0, 0, trueImageWidth, trueImageHeight, obs);\n \n renderImage(x, y, img, size, rotation);\n }\n \n break;\n \n default:\n LOGGER.warning(\"default branch reached in drawWithGraphicStroke\");\n }\n \n previous[0] = coords[0];\n previous[1] = coords[1];\n pi.next();\n }\n }",
"@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }",
"@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(Shape s : shapes){\n\t\t\ts.paint(g);\n\t\t}\n\t}",
"public Paint() {\n shapes = new ArrayList<>();\n }",
"@Override\n protected void paintComponent(Graphics g)\n {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n Rectangle r = getBounds();\n g2.setColor(theme.getPitColor());\n // Paint different shapes depending on the shape type\n switch(theme.getPitShape())\n {\n case CIRCLE:\n g2.fillOval(0, 0, r.width, r.height);\n break;\n case SQUARE:\n g2.fillRect(0, 0, r.width, r.height);\n break;\n }\n\n paintStoneCount(g2);\n }",
"public void paint(Graphics window)\n\t{\n\t\twindow.setColor(Color.WHITE);\n\t\twindow.fillRect(0,0,getWidth(), getHeight());\n\t\twindow.setColor(Color.BLUE);\n\t\twindow.drawRect(20,20,getWidth()-40,getHeight()-40);\n\t\twindow.setFont(new Font(\"TAHOMA\",Font.BOLD,18));\n\t\twindow.drawString(\"CREATE YOUR OWN SHAPE!\",40,40);\n\n\n\t\tColor[] col0 = {Color.CYAN, Color.RED, Color.GREEN};\n\t\tCustomShape cs0 = new CustomShape(500, 200, 50, 200, col0);\n\t\tcs0.draw(window);\n\t\t\n\t\tColor[] col1 = {Color.BLACK, Color.PINK, Color.DARK_GRAY};\n\t\tCustomShape cs1 = new CustomShape(180, 450, 200, 70, col1);\n\t\tcs1.draw(window);\n\t\t\n\t\tColor[] col2 = {Color.MAGENTA, Color.ORANGE, Color.YELLOW};\n\t\tCustomShape cs2 = new CustomShape(300, 120, 250, 250, col2);\n\t\tcs2.draw(window);\n\t}",
"public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50);\n }\n else if (currentTime % 13 == 3) {\n fill(200, 200, 100, 60);\n }\n else if (currentTime % 13 == 4) {\n fill(200, 200, 100, 70);\n }\n else if (currentTime % 13 == 5) {\n fill(200, 200, 100, 80);\n }\n else if (currentTime % 13 == 6) {\n fill(200, 200, 100, 90);\n }\n else if (currentTime % 13 == 7) {\n fill(200, 200, 100, 100);\n }\n else if (currentTime % 13 == 8) {\n fill(200, 200, 100, 110);\n }\n else if (currentTime % 13 == 9) {\n fill(200, 200, 100, 120);\n }\n else if (currentTime % 13 == 10) {\n fill(200, 200, 100, 130);\n }\n else if (currentTime % 13 == 11) {\n fill(200, 200, 100, 140);\n }\n else if (currentTime % 13 == 12) {\n fill(200, 200, 100, 150);\n }\n else {\n fill(255, 200, 100);\n }\n switch(x){\n case 1:\n beginShape();\n vertex(80, 330);\n vertex(50, 360);\n vertex(80, 350);\n vertex(110, 360);\n endShape();\n break;\n case 2:\n beginShape();\n vertex(370, 330);\n vertex(340, 360);\n vertex(370, 350);\n vertex(400, 360);\n endShape();\n break;\n case 3:\n beginShape();\n vertex(80, 600);\n vertex(50, 630);\n vertex(80, 620);\n vertex(110, 630);\n endShape();\n break;\n case 4:\n beginShape();\n vertex(370, 600);\n vertex(340, 630);\n vertex(370, 620);\n vertex(400, 630);\n endShape();\n break;\n }\n\n}",
"private void drawSquare(Graphics g, int x, int y, \n Tetrominoe shape) {\n Color colors[] = {\n new Color(0, 0, 0), new Color(204, 102, 102),\n new Color(102, 204, 102), new Color(102, 102, 204),\n new Color(204, 204, 102), new Color(204, 102, 204),\n new Color(102, 204, 204), new Color(218, 170, 0)\n };\n//left and top sides are brighter, bottom and right sides to look 3d\n Color color = colors[shape.ordinal()];\n\n g.setColor(color);\n g.fillRect(x + 1, y + 1, squareWidth() - 2, squareHeight() - 2);\n\n g.setColor(color.brighter());\n g.drawLine(x, y + squareHeight() - 1, x, y);\n g.drawLine(x, y, x + squareWidth() - 1, y);\n\n g.setColor(color.darker());\n g.drawLine(x + 1, y + squareHeight() - 1,\n x + squareWidth() - 1, y + squareHeight() - 1);\n g.drawLine(x + squareWidth() - 1, y + squareHeight() - 1,\n x + squareWidth() - 1, y + 1);\n\n }",
"public void paint(Graphics g) {\n\t\tshapes[0] = dc1;\n\t\tdrawables[0] = dc1;\n\t\tdc1.setColor(new Color(176,134,245));\n\t\t\n\t\t\n\t\tshapes[1] = dr1;\n\t\tdrawables[1] = dr1;\n\t\tdrawables[1].setColor(new Color(12,12,12));\n\t\t\n\t\tshapes[2] = dr2;\n\t\tdrawables[2] = dr2;\n\t\tdrawables[2].setColor(new Color(222,12,12));\n\t\t\n/*\t shapes[3] = dr3;\n \tdrawables[3] = dr3; */\n \t\n\t\tshapes[4] = dc2;\n\t\tdrawables[4] = dc2;\n\t\t\n\t\tshapes[5] = dc3;\n\t\tdrawables[5] = dc3;\n\t\tdrawables[5].setColor(new Color(255,255,0));\n\t\t\n\t\t\n\t\t// Added\n\t\tshapes[6] = dl1;\n\t\tdrawables[6] = dl1;\n\t\tdrawables[6].setColor(new Color(255,255,0));\n\n\t\tdouble total_area = 0;\n\n\t\t// use the array\n\t\tfor (int i = 0; i < shapes.length; i++) {\n\t\t\ttotal_area = total_area + shapes[i].area();\n\t\t\tdrawables[i].draw(g);\n\t\t}\n\t\tSystem.out.println(\"total_area\");\n\t\tg.drawString(\"Total area: \" + total_area, 200, 400);\n\t}"
] |
[
"0.7714503",
"0.7321152",
"0.71925193",
"0.7184422",
"0.7088493",
"0.70847017",
"0.70744824",
"0.6992015",
"0.688449",
"0.6868349",
"0.6743833",
"0.6703095",
"0.67025846",
"0.66988844",
"0.6694976",
"0.66817564",
"0.66811424",
"0.6663912",
"0.6661423",
"0.6653005",
"0.6612232",
"0.6610355",
"0.659325",
"0.6578463",
"0.6573398",
"0.6546785",
"0.65413225",
"0.65388197",
"0.6529909",
"0.6514725",
"0.64634234",
"0.6445577",
"0.6445577",
"0.6445577",
"0.6441382",
"0.6407385",
"0.6400377",
"0.6391734",
"0.6391339",
"0.6389732",
"0.63735",
"0.6368378",
"0.6364446",
"0.6361577",
"0.6357205",
"0.63566643",
"0.6348751",
"0.6347158",
"0.63415855",
"0.6338178",
"0.63376594",
"0.63348484",
"0.6332066",
"0.63316894",
"0.63216877",
"0.6318119",
"0.63158673",
"0.63041395",
"0.62977964",
"0.6285367",
"0.6282237",
"0.6276507",
"0.6276403",
"0.6275568",
"0.62559086",
"0.62472236",
"0.6236759",
"0.6233829",
"0.62214935",
"0.6218993",
"0.6210066",
"0.6197297",
"0.618041",
"0.61740744",
"0.6171332",
"0.6171249",
"0.616899",
"0.6167799",
"0.6162966",
"0.61523235",
"0.6145437",
"0.6132648",
"0.6113506",
"0.6104168",
"0.6096085",
"0.60907626",
"0.6076275",
"0.6069999",
"0.6069444",
"0.6059044",
"0.6051837",
"0.604779",
"0.60381305",
"0.60330445",
"0.6032707",
"0.60318017",
"0.60279024",
"0.6025763",
"0.602329",
"0.6021395"
] |
0.7571901
|
1
|
Paints after (on top) of children.
|
public void paintShapeOver(RMShapePainter aPntr)
{
if(getStrokeOnTop() && getStroke()!=null)
getStroke().paint(aPntr, this);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final void drawChildren() {\n // Set my clipping rectangle\n assert (window != null);\n assert (getScreen() != null);\n Screen screen = getScreen();\n\n // Special case: TStatusBar is drawn by TApplication, not anything\n // else.\n if (this instanceof TStatusBar) {\n return;\n }\n\n screen.setClipRight(width);\n screen.setClipBottom(height);\n\n int absoluteRightEdge = window.getAbsoluteX() + window.getWidth();\n int absoluteBottomEdge = window.getAbsoluteY() + window.getHeight();\n if (!(this instanceof TWindow) && !(this instanceof TVScroller)) {\n absoluteRightEdge -= 1;\n }\n if (!(this instanceof TWindow) && !(this instanceof THScroller)) {\n absoluteBottomEdge -= 1;\n }\n int myRightEdge = getAbsoluteX() + width;\n int myBottomEdge = getAbsoluteY() + height;\n if (getAbsoluteX() > absoluteRightEdge) {\n // I am offscreen\n screen.setClipRight(0);\n } else if (myRightEdge > absoluteRightEdge) {\n screen.setClipRight(screen.getClipRight()\n - (myRightEdge - absoluteRightEdge));\n }\n if (getAbsoluteY() > absoluteBottomEdge) {\n // I am offscreen\n screen.setClipBottom(0);\n } else if (myBottomEdge > absoluteBottomEdge) {\n screen.setClipBottom(screen.getClipBottom()\n - (myBottomEdge - absoluteBottomEdge));\n }\n\n // Set my offset\n screen.setOffsetX(getAbsoluteX());\n screen.setOffsetY(getAbsoluteY());\n\n // Draw me\n draw();\n\n // Continue down the chain\n for (TWidget widget: children) {\n widget.drawChildren();\n }\n }",
"public abstract void finishedPaintingChildren(JSplitPane jc, Graphics g);",
"public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }",
"@Override\n protected void finalRender() {\n finishTraversalAnimation();\n placeTreeNodes();\n placeNodesAtDestination();\n render();\n\n }",
"@Override\r\n protected void layoutChildren () {\r\n /* Custom children positioning */\r\n super.layoutChildren();\r\n\r\n if (noDataIcon.isVisible()) {\r\n noDataIcon.relocate((getWidth() - noDataIcon.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - noDataIcon.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (innerContainer != null) {\r\n innerContainer.relocate((getWidth() - innerContainer.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - innerContainer.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (currentIcon != null) {\r\n currentIcon.relocate(\r\n suffixLabel.getBoundsInParent().getMinX() + innerContainer.getBoundsInParent().getMinX(),\r\n suffixLabel.getBoundsInParent().getMinY() + innerContainer.getBoundsInParent().getMinY()\r\n - currentIcon.getLayoutBounds().getHeight() + 2);\r\n }\r\n\r\n }",
"@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }",
"public void postLayout(ZGroup node) {\n }",
"public void draw(){\n\t\t\tint x = getPreferredSize().width/2;\n\t\t\tint y = 10;\n\t\t\tif (root() != null)\n\t\t\t\tpreOrderCell(root(), x, y, root().getColor());\n\t\t\tjgraph.getGraphLayoutCache().insert(cells.values().toArray());\n\t\t\tjgraph.getGraphLayoutCache().insert(nullnodes.toArray());\n\t\t}",
"protected void afterPaint(Graphics g, int drawX, int drawY, int drawW,\r\n\t\t\tint drawH) {\r\n\t\t// nothing\r\n\t}",
"public void onFinishInflate() {\n super.onFinishInflate();\n bringChildToFront(this.menuButton);\n this.buttonsCount = getChildCount();\n createLabels();\n }",
"private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }",
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }",
"public void a(Canvas canvas) {\n int i;\n int childCount = getChildCount();\n for (int i2 = 0; i2 < childCount; i2++) {\n View childAt = getChildAt(i2);\n if (!(childAt == null || childAt.getVisibility() == 8 || !hasDividerBeforeChildAt(i2))) {\n a(canvas, childAt.getTop() - ((LayoutParams) childAt.getLayoutParams()).topMargin);\n }\n }\n if (hasDividerBeforeChildAt(childCount)) {\n View childAt2 = getChildAt(childCount - 1);\n if (childAt2 == null) {\n i = (getHeight() - getPaddingBottom()) - this.d;\n } else {\n i = childAt2.getBottom();\n }\n a(canvas, i);\n }\n }",
"protected void doBright() {\r\n\t\talpha = 1.0f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"@Override\n protected void onDraw(Canvas canvas) {\n // Draw the components\n Arrange();\n box.draw(canvas);\n for (Node node : nodes) {\n node.draw(canvas);\n }\n line.draw(canvas);\n invalidate(); // Force a re-draw\n }",
"public final void lp() {\n for (int size = this.aue.size() - 1; size >= 0; size--) {\n addView((View) this.aue.get(size));\n }\n this.aue.clear();\n }",
"@Override\r\n\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\tint bottom) {\n\t\tfor (int i = 0; i < getChildCount(); i++) {\r\n\t\t\tfinal View child = getChildAt(i);\r\n\t\t\tif(child.getVisibility() != GONE) {\r\n\t\t\t\tfinal LayoutParams params = (LayoutParams) child.getLayoutParams();\r\n\t\t\t\t\r\n\t\t\t\tfinal int width = child.getMeasuredWidth();\r\n\t\t\t\tfinal int height = child.getMeasuredHeight();\r\n\t\t\t\t\r\n\t\t\t\tint childleft = 0;\r\n\t\t\t\tint childtop = getPaddingTop()+params.topMargin;\r\n\t\t\t\t\r\n\t\t\t\tchild.layout(childleft, childtop, childleft+width, childtop+height);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }",
"@Override\n protected void afterDraw(UI ui, PGraphics pg) {\n noLights();\n hint(DISABLE_DEPTH_TEST);\n }",
"public final void markChildrenLayoutNecessary() {\n setStatusBits(CHILDREN_LAYOUT_NECESSARY_BIT);\n }",
"public void display() {\t\t\n\t\tparent.pushStyle();\n\t\t\n\t\t//parent.noStroke();\n\t\t//parent.fill(255);\n\t\tparent.noFill();\n\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\tnodeSpin.drawNode(pos.x, pos.y, diam);\n\t\t\n\t\t//This should match what happens in the hover animation\n\t\tif (focused && userId >= 0) {\n\t\t\tparent.fill(Sequencer.colors[userId]);\n\t\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\t}\n\t\t\n\t\trunAnimations();\n\t\t\n\t\tparent.popStyle();\n\t}",
"public void paint() {\n int L = 150; // Local convenience var\n\n // Declare three lines (left, middle, and right)\n Line left = new Line(L, L, L, getHeight() - L);\n Line middle = new Line(L, getHeight() / 2, getWidth() - L, getHeight() / 2);\n Line right = new Line(getWidth() - L, L, getWidth() - L, getHeight() - L);\n\n getChildren().clear(); // Clear the pane before redisplay\n\n displayHTree(order, left, middle, right); // Call the recursive method\n }",
"@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}",
"public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }",
"public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}",
"public void paint(Graphics2D g) {\n\t\tif ((_child != null) && isVisible()) {\n\t\t\t_child.paint(g);\n\t\t}\n\t}",
"@Override\r\n\tpublic void doBeforeComposeChildren(Component comp) throws Exception\r\n\t{\n\t\t\r\n\t}",
"private void createChildren() {\n\t\t\n\t\tfor(int i=0;i<horizontal;i++) {\n\t\t\t\n\t\t\tAction a = new Action(i);\n\t\t\tif(!gameOver && actionIsValid(a)) {\n\t\t\t\t\n\t\t\t\tPlayer otherPlayer;\n\t\t\t\t\n\t\t\t\tif(player == Player.PLAYER_BLUE) {\n\t\t\t\t\totherPlayer = Player.PLAYER_RED;\n\t\t\t\t}else {\n\t\t\t\t\totherPlayer = Player.PLAYER_BLUE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPosition newPosition;\n\t\t\t\tnewPosition = new Position(a, ++moveCounter, otherPlayer, this);\n\t\t\t\tchildren.add(newPosition);\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void move(int deltaX, int deltaY) {\r\n\r\n for(IShape shape : children) {\r\n shape.move(deltaX,deltaY);\r\n }\r\n }",
"public void draw()\n {\n inorder(root);\n }",
"@Override\n public void addLayerAfter(BoardLayerView layer, BoardLayerView after) {\n this.layers.add(this.layers.indexOf(after) + 1, layer);\n }",
"public void postOrder() {\n postOrder(root);\n }",
"@Override // com.android.server.wm.WindowContainer\n public void assignChildLayers(SurfaceControl.Transaction t) {\n assignStackOrdering(t);\n for (int i = 0; i < this.mChildren.size(); i++) {\n ((TaskStack) this.mChildren.get(i)).assignChildLayers(t);\n }\n }",
"@Override\n public void paint(Painter painter)\n {\n // Drawing the outline of the CarrierShape\n painter.drawRect(_x,_y,_width,_height);\n // Translating the origin to x and y point to the top left corner\n // of the CarrierShape to be able to paint its children relative to that point\n painter.translate(_x,_y);\n\n // Painting each child relative to the top left corner of the CarrierShape\n for(Shape child : children)\n {\n child.doPaint(painter);\n }\n\n // Translating the origin back to x = 0 y = 0\n painter.translate(-_x,-_y);\n }",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }",
"public void PostOrder() {\n\t\tPostOrder(root);\n\t}",
"@Override\r\n\tpublic void undo() \r\n\t\t{\n\t\tif (parent.addChild(child)) \r\n\t\t\t{\r\n\t\t\taddArcs(sourceArcs);\r\n\t\t\taddArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}",
"@Override protected void layoutPlotChildren() {\n\n for (int seriesIndex=0; seriesIndex < getData().size(); seriesIndex++) {\n Series<X,Y> series = getData().get(seriesIndex);\n Iterator<Data<X,Y>> iter = getDisplayedDataIterator(series);\n\n //Iterate through list of tasks\n while(iter.hasNext()) {\n Data<X,Y> item = iter.next();\n double x = getXAxis().getDisplayPosition(item.getXValue());\n double y = getYAxis().getDisplayPosition(item.getYValue());\n\n if (Double.isNaN(x) || Double.isNaN(y)) { //Check for null\n continue;\n }\n\n Node block = item.getNode();\n Rectangle rectangle;\n //Create stackpane for each rectangle\n if (block != null) {\n if (block instanceof StackPane) {\n StackPane region = (StackPane)item.getNode();\n if (region.getShape() == null) {\n rectangle = new Rectangle( getLength( item.getExtraValue()), getBlockHeight());\n } else if (region.getShape() instanceof Rectangle) {\n rectangle = (Rectangle)region.getShape();\n } else {\n return;\n }\n\n //Set rectangle width and height and positioning\n rectangle.setWidth( getLength( item.getExtraValue()) * ((getXAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getXAxis()).getScale()) : 1));\n rectangle.setHeight(getBlockHeight() * ((getYAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getYAxis()).getScale()) : 1));\n y -= getBlockHeight() / 2.0;\n\n //Get positions of blocks\n double paddingHeight = getBlockHeight() * ((getYAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getYAxis()).getScale()) : 1);\n double paddingWidth = getLength( item.getExtraValue()) * ((getXAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getXAxis()).getScale()) : 1);\n\n //Create regions with create rectangles\n region.setShape(null);\n region.setShape(rectangle);\n region.setScaleShape(false);\n region.setCenterShape(false);\n region.setCacheShape(false);\n\n //Set positioning and addBBA text with padding\n region.setMaxHeight(rectangle.getHeight());\n region.setMinHeight(rectangle.getHeight());\n region.setPrefHeight(rectangle.getHeight());\n\n //Create label according to properties id\n Label text = new Label(getTaskId(item.getExtraValue())); //don't delete\n text.setStyle(\"-fx-font-family: 'Space Mono', monospace; -fx-font-weight: BOLD; -fx-text-fill: white;\");\n text.setPadding(new Insets(paddingHeight, 0, 0, paddingWidth));\n region.getChildren().add(text); //don't delete\n\n //Set rectangle position\n block.setLayoutX(x);\n block.setLayoutY(y);\n }\n }\n }\n }\n }",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"private void positionItems() {\n int top = mListTop + mListTopOffset;\n\n for (int index = 0; index < getChildCount(); index++) {\n final View child = getChildAt(index);\n\n final int width = child.getMeasuredWidth();\n final int height = child.getMeasuredHeight();\n final int left = (getWidth() - width) / 2;\n final int margin = getChildMargin(child);\n final int childTop = top + margin;\n\n child.layout(left, childTop, left + width, childTop + height);\n top += height + 2 * margin;\n }\n }",
"@Override\n\tpublic void draw(Batch batch, float parentAlpha) {\n\t\tbatch.draw(leftBorder, getX(), getY());\n\t\t// Save variables to restore their state after drawing\n\t\tfloat prevX = getX();\n\t\tfloat prevWidth = getWidth();\n\t\t// Set the variables which are used to draw the background\n\t\tsetX(prevX + leftBorder.getRegionWidth());\n\t\tsetWidth(prevWidth - leftBorder.getRegionWidth() - rightBorder.getRegionWidth());\n\t\t// Draw the progress bar as it would be without borders\n\t\tsuper.draw(batch, parentAlpha);\n\t\t// Set the variables to draw the right border\n\t\tsetX(getX() + getWidth());\n\t\t// Draw the right border\n\t\tbatch.draw(rightBorder, getX(), getY());\n\t\t// Reset the state of the variables so next cycle the drawing is done at correct position\n\t\tsetX(prevX);\n\t\tsetWidth(prevWidth);\n\t}",
"private void drawHeart2 (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n \n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n System.out.println(\"Aqui\");\n \n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\t//tBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n int parentWidth = getMeasuredWidth();\n\n //get the available size of child view\n int childLeft = this.getPaddingLeft();\n int childTop = this.getPaddingTop();\n\n //walk through each child, and arrange it from left to right\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n LayoutUtils.layoutChild(child, childLeft, childTop);\n childTop += child.getMeasuredHeight();\n }\n }\n }",
"public void postorder() {\n\t\tpostorder(root);\n\t}",
"@Override\n protected void childDraw(Canvas canvas, float factor) {\n LogUtil.e(TAG, \"childDraw\");\n for (int i = 0; i < tspans.size(); i++) {\n Tspan tspan = tspans.get(i);\n paint.setColor(tspan.getFill());\n paint.setTextSize(tspan.getFont_size() * factor);\n paint.setTypeface(tspan.getFont_family());\n canvas.drawText(tspan.text, x, tspan.y * factor,\n paint);\n x += paint.measureText(tspan.getText());\n paint.reset();\n }\n x=0;\n\n }",
"@Override\n protected void dispatchDraw(Canvas canvas) {\n canvas.drawRect(mBgFadeRect, mBgFadePaint);\n\n super.dispatchDraw(canvas);\n }",
"public void b(Canvas canvas) {\n int i;\n int childCount = getChildCount();\n for (int i2 = 0; i2 < childCount; i2++) {\n View childAt = getChildAt(i2);\n if (!(childAt == null || childAt.getVisibility() == 8 || !hasDividerBeforeChildAt(i2))) {\n b(canvas, childAt.getLeft() - ((LayoutParams) childAt.getLayoutParams()).leftMargin);\n }\n }\n if (hasDividerBeforeChildAt(childCount)) {\n View childAt2 = getChildAt(childCount - 1);\n if (childAt2 == null) {\n i = (getWidth() - getPaddingRight()) - this.c;\n } else {\n i = childAt2.getRight();\n }\n b(canvas, i);\n }\n }",
"@Override\n protected Void call() {\n ((HBox) root.getTop()).getChildren().get(2).setDisable(true);\n ((HBox) root.getTop()).getChildren().get(3).setDisable(true);\n\n // The array of rectangle heights is sorted and a list of animations for the rectangles\n // on the screen is created as the sorting executes\n List<List<List<double[]>>> animations = new ArrayList<List<List<double[]>>>();\n runMergeSort(heights, numOfThreads, animations);\n runAnimations(recs, animations);\n\n return null;\n }",
"@Override\n public void mouseExited(MouseEvent e) {\n setBorderPainted(false);\n setForeground(Color.BLACK);\n }",
"public void layoutChildren() {\n super.layoutChildren();\n if (this.mFloatView != null) {\n if (this.mFloatView.isLayoutRequested() && !this.mFloatViewOnMeasured) {\n measureFloatView();\n }\n this.mFloatView.layout(0, 0, this.mFloatView.getMeasuredWidth(), this.mFloatView.getMeasuredHeight());\n this.mFloatViewOnMeasured = false;\n }\n }",
"private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}",
"public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}",
"@Override\n protected void layoutChildren() {\n super.layoutChildren();\n label.setVisible(label.prefWidth(-1) < getWidth() - getPadding().getLeft() - getPadding().getRight());\n }",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }",
"@Override\n public void update(float dt) {\n for (Background background : backgrounds) {\n background.update(dt);\n }\n\n if(backgrounds[firstBackgroundIndex].getPosition().x < -drawingWidth){\n reposition();\n }\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void onGlobalLayout() {\n\t\t\t\tanimBottom(child2);\t\t\t\n\t\t\t\tif(android.os.Build.VERSION.SDK_INT >= 16){//android.os.Build.VERSION_CODES.JELLY_BEAN){\n\t\t\t\t\tchild2.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tchild2.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}",
"public void addChild(View child) {\n/* 211 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\ttbls[innerI].setOpaque(false);\n\t\t\t\t\ttbls[innerI].repaint();\n\t\t\t\t}",
"@Override\n\tpublic void postorder() {\n\n\t}",
"private void addAndMeasureChild(View child, final int layoutMode)\n\t{\n\t\t// child.setBackgroundDrawable(_itemBackground);\n\n\t\tLayoutParams params = child.getLayoutParams();\n\t\tif (params == null)\n\t\t{\n\t\t\tparams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t}\n\n\t\tfinal int index = layoutMode == LAYOUT_MODE_LEFT ? 0 : -1;\n\t\taddViewInLayout(child, index, params, true);\n\n\t\tchild.measure(MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.AT_MOST),\n\t\t MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec.AT_MOST));\n\t}",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }",
"@Override\n public boolean onLayoutChild(CoordinatorLayout parent,\n FooterBarLayout child,\n int layoutDirection) {\n Log.d(\"=====\",child.getTop()+\"\");\n// if(mChildInitialOffset==0) {\n// parent.onLayoutChild(child, layoutDirection);\n// }\n //Gather initial state\n mChildInitialOffset = child.getTop();\n\n //Let the framework lay out the view\n return false;\n }",
"@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}",
"@Override\r\n\tpublic void redo() \r\n\t\t{\n\t\twasRemoved = parent.removeChild(child);\r\n\t\tif (wasRemoved) \r\n\t\t\t{\r\n\t\t\tremoveArcs(sourceArcs);\r\n\t\t\tremoveArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void paint(Graphics g) {\n\t\tg.setColor(getBackground());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t// Draw each of the DrawSurfaces in the correct order.\n\t\tfor (Object element : aiDrawingOrder) {\n\t\t\tpaint(g, element);\n\t\t}\n\t}",
"public void postorder()\n {\n postorder(root);\n }",
"public void postorder()\n {\n postorder(root);\n }",
"private void positionItems(final int dx) {\n\t\tif(getChildCount() > 0){\n\t\t\tmDisplayOffset += dx;\n\t\t\tint left = mDisplayOffset;\n\t\t\tint height = this.getMeasuredHeight();\n\t\t\tfor(int i=0;i<getChildCount();i++){\n\t\t\t\tView child = getChildAt(i);\n\t\t\t\tint childWidth = child.getMeasuredWidth();\n\t\t\t\tint childHeight = child.getMeasuredHeight();\n\t\t\t\tif (!mAlineBottom) {\n\t\t\t\t\tchild.layout(left, mOffsetTop, left + childWidth, mOffsetTop + childHeight);\n\t\t\t\t} else {\n\t\t\t\t\tchild.layout(left, height - childHeight, left + childWidth, height);\n\t\t\t\t}\n\t\t\t\tleft += childWidth;\n\t\t\t}\n\t\t\tupdateSelected();\n\t\t}\n\t}",
"public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }",
"public void drawBottom(float dt, Graphics g) {\n\t\tbackground.drawBottom(g);\n\t\tint x = (int) background.getPos()[Values.X];\n\t\tint y = (int) background.getPos()[Values.Y];\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\tint index = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tfloat asy = as.pos[Values.Y];\n\t\t\telements[index].setYpos(asy);\n\t\t\telements[index++].setIndex(as.hashCode());\n\t\t}\n\t\tArrays.sort(elements);\n\t\tif (sprites.size() != elements.length) {\n\t\t\tlogger.log(Level.WARNING, \"Error: the sprite list and elements are not of equal length\");\n\t\t}\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tSprite as = sprites.get(elements[i].getIndex());\n\t\t\tint asx = Math.round(as.pos[Values.X] + x);\n\t\t\tint asy = Math.round(as.pos[Values.Y] + y);\n\t\t\tas.draw(dt, g, asx, asy);\n\t\t}\n\t}",
"public void paint(PPaintContext ppc) {\n\t\tPaint paint = getPaint();\n\t\tif (paint != null) {\n\t\t\tGraphics2D g2 = ppc.getGraphics();\n\t\t\tg2.setPaint(paint);\n\t\t\t\n\t\t\tPBounds bounds = getUnionOfChildrenBounds(null);\n\t\t\tbounds.setRect(bounds.getX()-INDENT,bounds.getY()-INDENT,bounds.getWidth()+2*INDENT,bounds.getHeight()+2*INDENT);\n\t\t\tg2.fill(bounds);\n\t\t}\n\t}",
"public void draw() {\n draw(root, false);\n }",
"public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\r\n\tpublic void render() {\n\t\tv.textFont(BODY_FONT);\r\n\t\tv.textAlign(LEFT);\r\n\t\tv.textSize(16);\r\n\r\n\t\tfor(Overlay overlay : overlays) {\r\n\t\t\toverlay.render();\r\n\t\t}\r\n\t}",
"@Override\n protected void onLayout(boolean changed,\n int left,\n int top,\n int right,\n int bottom) {\n // Layout children.\n super.onLayout(changed, left, top, right, bottom);\n\n // Set translation Y of the movable child view.\n if (!isInEditMode() &&\n mElasticScrollView instanceof NestedScrollingChild &&\n changed && !isOpened()) {\n ViewCompat.setTranslationY(mElasticScrollView,\n mElasticScrollView.getMeasuredHeight());\n }\n // TODO: Handle scroll-view header and footer.\n\n // Set the cover boundary.\n if (changed) {\n mBgFadeRect.set(getLeft(),\n getTop(),\n getRight(),\n getBottom());\n }\n }",
"public void aapneOgByttFarge() {\n aapne();\n if (!bombe) {\n Color lysegroenn = Color.rgb(86, 130, 3, 0.3);\n setBackground(new Background(new BackgroundFill(lysegroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n }",
"final void layoutChildren(final boolean queryAdapter) {\n final int paddingLeft = getPaddingLeft();\n final int paddingRight = getPaddingRight();\n final int itemMargin = mItemMargin;\n final int colWidth =\n (getWidth() - paddingLeft - paddingRight - itemMargin * (mColCount - 1)) / mColCount;\n int rebuildLayoutRecordsBefore = -1;\n int rebuildLayoutRecordsAfter = -1;\n\n Arrays.fill(mItemBottoms, Integer.MIN_VALUE);\n\n final int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n View child = getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int col = lp.column;\n final int[] margins = lp.margins;\n final int position = mFirstPosition + i;\n final boolean needsLayout = queryAdapter || child.isLayoutRequested();\n boolean newChild = false;\n if (position >= mItemCount) {\n // Sometimes it happens...\n final View toDelete = getSpannedChildAt(i);\n removeViewAt(i);\n if (toDelete != null) {\n // Offset children in case our last child was max spanned\n final int height = toDelete.getHeight();\n offsetChildren(height);\n }\n continue;\n }\n\n if (queryAdapter) {\n View newView = obtainView(position, child);\n if (newView != child) {\n removeViewAt(i);\n addView(newView, i);\n child = newView;\n newChild = true;\n }\n lp = (LayoutParams) child.getLayoutParams(); // Might have changed\n\n lp.column = col; // XXX Initial version of StaggeredGridView actually forgets to correct columns which is a nasty bug\n lp.margins = margins;\n }\n\n final int span = Math.min(mColCount, lp.span);\n final int widthSize = colWidth * span + itemMargin * (span - 1);\n\n if (needsLayout) {\n final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);\n\n final int heightSpec;\n if (lp.height == LayoutParams.WRAP_CONTENT) {\n heightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);\n } else if (lp.height == LayoutParams.MATCH_PARENT) {\n /*heightSpec = getChildMeasureSpec(\n MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.AT_MOST),\n getPaddingTop() + getPaddingBottom(),\n lp.height\n );*/\n // XXX HACK\n heightSpec = MeasureSpec.makeMeasureSpec(getMeasuredHeight() - getPaddingTop() - getPaddingBottom(),\n MeasureSpec.EXACTLY);\n } else {\n heightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);\n }\n\n child.measure(widthSpec, heightSpec);\n }\n\n int childTop = mItemBottoms[col] > Integer.MIN_VALUE ? mItemBottoms[col] + mItemMargin\n : /*child.getTop() + (*/newChild ? mItemMargin + getPaddingTop() : child.getTop()/*0)*/;\n if (span > 1) {\n int lowest = childTop;\n for (int j = col + 1; j < col + span; j++) {\n final int bottom = mItemBottoms[j] + mItemMargin;\n if (bottom > lowest) {\n lowest = bottom;\n }\n }\n childTop = lowest;\n }\n final int childHeight = child.getMeasuredHeight();\n final int childBottom = childTop + childHeight;\n final int childLeft = paddingLeft + col * (colWidth + itemMargin);\n final int childRight = childLeft + child.getMeasuredWidth();\n child.layout(childLeft, childTop, childRight, childBottom);\n\n for (int j = col; j < col + span; j++) {\n mItemBottoms[j] = childBottom;\n }\n\n final LayoutRecord rec = mLayoutRecords.get(position);\n if (rec != null && rec.height != childHeight) {\n // Invalidate our layout records for everything before this.\n rec.height = childHeight;\n /*\n * XXX was \"rebuildLayoutRecordsBefore\" previously\n * Rebuilding layout records \"before\" this position\n * leads to a nasty bug - margins for spanned children disappear\n * and the grid layouts children incorrectly\n * I DON'T REALLY KNOW WHY THIS IS SO....\n */\n rebuildLayoutRecordsAfter = position;\n }\n\n if (rec != null && rec.span != span) {\n // Invalidate our layout records for everything after this.\n rec.span = span;\n rebuildLayoutRecordsAfter = position;\n }\n\n }\n\n // Update mItemBottoms for any empty columns\n for (int i = 0; i < mColCount; i++) {\n if (mItemBottoms[i] == Integer.MIN_VALUE) {\n mItemBottoms[i] = mItemTops[i];\n }\n }\n\n if (rebuildLayoutRecordsBefore >= 0 || rebuildLayoutRecordsAfter >= 0) {\n if (rebuildLayoutRecordsBefore >= 0) {\n invalidateLayoutRecordsBeforePosition(rebuildLayoutRecordsBefore);\n }\n if (rebuildLayoutRecordsAfter >= 0) {\n invalidateLayoutRecordsAfterPosition(rebuildLayoutRecordsAfter);\n }\n for (int i = 0; i < childCount; i++) {\n final int position = mFirstPosition + i;\n final View child = getChildAt(i);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n LayoutRecord rec = mLayoutRecords.get(position);\n if (rec == null) {\n rec = new LayoutRecord();\n mLayoutRecords.put(position, rec);\n }\n rec.column = lp.column;\n rec.height = child.getHeight();\n rec.id = lp.id;\n final int span = Math.min(mColCount, lp.span);\n rec.span = span;\n rec.mMargins = lp.margins;\n }\n }\n }",
"@Override\n\tpublic void AfterDraw(SpriteBatch spriteBatch, Entity owner) {\n\n\t}",
"@Override\n protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {\n }",
"private void fadeOutandDetachSprites() {\n\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\tdetachChild(sprite1);\n\t\t\t\t\tdetachChild(sprite2);\n\t\t\t\t\tdetachChild(sprite3);\n\t\t\t\t\tdetachChild(sprite4);\n\n\t\t\t\t}",
"private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }",
"@Override\n\tpublic void addView(View child, int idx) {\n\t\taddAndMeasureChild(child, idx);\n\t}",
"public void repaint() { if(_parent!=null) _parent.repaint(this); }",
"protected void processRepaint(ViewLayoutState.Parent lsParent) {\n if (lsParent != null) { // parent view is ViewLayoutState.Parent\n int firstRepaintChildIndex = children.getFirstRepaintChildIndex();\n double majorAxisOffset = children.getMajorAxisOffset(firstRepaintChildIndex);\n double repaintMajorOffset;\n double repaintMajorSpan;\n float repaintMinorOffset;\n float repaintMinorSpan;\n if (isRepaintTillEnd()\n || firstRepaintChildIndex >= getViewCount() // bit strange but possible after last child remove\n ) {\n if (isMajorAxesOrthogonal()) {\n repaintMajorOffset = 0;\n repaintMajorSpan = 0; // till end of view's span in parent\n repaintMinorOffset = (float)majorAxisOffset;\n repaintMinorSpan = 0; // till parent view minor span end\n\n } else { // major axes equal\n repaintMajorOffset = majorAxisOffset;\n repaintMajorSpan = 0; // till end of view's span in parent\n repaintMinorOffset = 0;\n repaintMinorSpan = 0; // till parent view minor span end\n }\n\n } else { // repainting just single child that did not change major axis span\n double majorAxisSpan = getChild(firstRepaintChildIndex).getLayoutMajorAxisPreferredSpan();\n if (isMajorAxesOrthogonal()) {\n repaintMajorOffset = 0;\n repaintMajorSpan = 0; // till end of view's span in parent\n repaintMinorOffset = (float)majorAxisOffset;\n repaintMinorSpan = (float)majorAxisSpan;\n\n } else { // major axes equal\n repaintMajorOffset = majorAxisOffset;\n repaintMajorSpan = majorAxisSpan;\n repaintMinorOffset = 0;\n repaintMinorSpan = 0; // till parent view minor span end\n }\n }\n \n lsParent.repaint(this, repaintMajorOffset, repaintMajorSpan,\n repaintMinorOffset, repaintMinorSpan);\n \n } else { // do not know allocation here => repaint whole component\n Component c = getContainer();\n if (c != null) {\n c.repaint();\n }\n }\n }",
"protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n super.fontRenderer.drawString(this.name, (super.xSize - super.fontRenderer.getStringWidth(this.name)) / 2, 6, 4210752);\n super.fontRenderer.drawString(this.inv, 8, super.ySize - 96 + 2, 4210752);\n }",
"public void preLayout(ZGroup node) {\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tif (childView.getWidth() <= 0) {\r\n\t\t\t\t\t\t\t\t\tremoveCallbacks(this);\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tmCustomViewGroup.setHalfWidthOfChild(1);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"private void drawHeart (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n\n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\t\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}",
"void effacer() {\r\n Graphics g = this.zoneDessin.getGraphics();\r\n g.setColor(Color.gray);\r\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n }",
"public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }",
"protected void customReloadChildren(int index, int removeLength,\n int startOffset, int endOffset) {\n\n View[] added = null;\n ViewFactory f = getViewFactory();\n // Null view factory can mean that one of the grand parents is already disconnected\n // from the view hierarchy. No added children for null factory.\n \n if (f != null) {\n Element elem = getElement();\n\n int elementCount = elem.getElementCount();\n int elementIndex = (elem != null) ? elem.getElementIndex(startOffset) : -1;\n if (elementIndex >= elementCount) {\n return; // Create no after last element\n }\n List childViews = new ArrayList();\n int viewCount = getViewCount();\n\n loop:\n while (startOffset < endOffset) {\n // Create custom child\n View childView = createCustomView(f, startOffset, endOffset, elementIndex);\n if (childView == null) {\n throw new IllegalStateException(\"No view created for area (\" // NOI18N\n + startOffset + \", \" + endOffset + \")\"); // NOI18N\n }\n\n // Assuming childView.getStartOffset() is at startOffset\n childViews.add(childView);\n\n // Update elementIndex\n int childViewEndOffset = childView.getEndOffset();\n while (childViewEndOffset > endOffset) {\n/* throw new IllegalStateException(\n \"childViewEndOffset=\" + childViewEndOffset // NOI18N\n + \" > endOffset=\" + endOffset // NOI18N\n );\n */\n /* The created child view interferes with a view\n * that is still present and which is not planned\n * to be removed.\n * This can happen e.g. when a fold hierarchy change\n * (caused by a document change) is fired\n * prior to the document change gets fired\n * to the view hierarchy.\n * The fix for that situation is to continue to remove\n * the present views until the end of the created view will match\n * a beginning of a present view.\n */\n if (index + removeLength >= viewCount) {\n // Should not happen but can't remove past the last view\n break;\n }\n endOffset = getView(index + removeLength).getEndOffset();\n removeLength++;\n if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(\n \"GapBoxView.customReloadChildren(): Increased removeLength to \" // NOI18N\n + removeLength + \", eo=\" + endOffset // NOI18N\n );\n }\n }\n\n Element childElem = elem.getElement(elementIndex);\n while (childElem.getEndOffset() <= childViewEndOffset) {\n elementIndex++;\n if (elementIndex == elementCount) {\n // #115034\n break loop;\n }\n childElem = elem.getElement(elementIndex);\n }\n\n startOffset = childViewEndOffset;\n }\n\n added = new View[childViews.size()];\n childViews.toArray(added);\n }\n\n replace(index, removeLength, added);\n }",
"abstract void addChild(SpanBranch span, int position);",
"private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }",
"private void recycleBottomInvisibleViews(RecyclerView.Recycler recycler){\r\n final int childCount = getChildCount();\r\n for(int i = childCount - 1; i >= 0; i--){\r\n View child = getChildAt(i);\r\n // Recycle views from here.\r\n if(getDecoratedStart(child) < bottomBorder){\r\n recycleChildren(recycler, i + 1, childCount - 1);\r\n lastAttachedItemPosition -= (childCount - 1 - i);\r\n updateSpanBottomParameters();\r\n return;\r\n }\r\n // Update spanBottom.\r\n int position = lastAttachedItemPosition - (childCount - 1 - i);\r\n int heightNum = itemLayoutHeightCache.get(position);\r\n for(int j = 0; j < itemLayoutWidthCache.get(position); j++){\r\n int spanIndex = itemOccupiedStartSpan.get(position) + j;\r\n spanBottom[spanIndex] -= heightNum * sizePerSpan;\r\n }\r\n }\r\n }",
"private void reposition(){\n int lastBackgroundIndex = firstBackgroundIndex-1;\n if(firstBackgroundIndex == 0){\n lastBackgroundIndex = backgrounds.length-1;\n }\n backgrounds[firstBackgroundIndex].getPosition().x = backgrounds[lastBackgroundIndex].getPosition().x + drawingWidth;\n firstBackgroundIndex = (firstBackgroundIndex+1) % backgrounds.length;\n }",
"public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }"
] |
[
"0.60282606",
"0.5969844",
"0.56724393",
"0.55769455",
"0.5526082",
"0.5406379",
"0.54045",
"0.5389046",
"0.5360554",
"0.53580153",
"0.53454864",
"0.5333357",
"0.52976364",
"0.5274772",
"0.5221312",
"0.52149963",
"0.5203094",
"0.5192503",
"0.514962",
"0.5147413",
"0.5146966",
"0.5138344",
"0.5124535",
"0.5120069",
"0.5110285",
"0.50889456",
"0.5088858",
"0.508569",
"0.5083323",
"0.50573134",
"0.50479823",
"0.5043338",
"0.5029785",
"0.5025356",
"0.5019024",
"0.5019024",
"0.5019024",
"0.49928322",
"0.4984366",
"0.4954297",
"0.4949632",
"0.49359602",
"0.49232468",
"0.49015972",
"0.48971862",
"0.4896749",
"0.4894138",
"0.4891863",
"0.48802805",
"0.48791048",
"0.48719305",
"0.4863815",
"0.48563176",
"0.48426402",
"0.48323065",
"0.48301515",
"0.4828086",
"0.48245987",
"0.48194683",
"0.48180947",
"0.48166487",
"0.48118904",
"0.4796662",
"0.4790337",
"0.47850198",
"0.4784506",
"0.47755527",
"0.47741982",
"0.4771235",
"0.47711205",
"0.47711205",
"0.47644356",
"0.47584736",
"0.47574392",
"0.4748873",
"0.4747171",
"0.47335473",
"0.4729088",
"0.47185916",
"0.47184026",
"0.47139654",
"0.47138348",
"0.4712334",
"0.47122014",
"0.47069803",
"0.47051015",
"0.47045487",
"0.47041032",
"0.470074",
"0.47002086",
"0.46955597",
"0.46951917",
"0.46948016",
"0.46930102",
"0.46892625",
"0.46884716",
"0.46882904",
"0.46846792",
"0.46844414",
"0.46810138",
"0.4676498"
] |
0.0
|
-1
|
Returns whether to stroke on top.
|
public boolean getStrokeOnTop() { return false; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override // com.android.server.wm.WindowContainer\n public boolean isOnTop() {\n return true;\n }",
"boolean isAlwaysOnTop();",
"public boolean isBringToTopEnabled() {\r\n\t\treturn this.bringToTopable;\r\n\t}",
"protected boolean mustDrawOutline()\n {\n return this.getActiveAttributes().isDrawOutline();\n }",
"@Override\n public boolean isOnTop()\n {\n return false;\n }",
"private boolean birdIsOffscreen() {\r\n return (bird.getYpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() - bird.getRadius() > width);\r\n }",
"public boolean offScreen() {\r\n\t\treturn (this.getY() < -TREE_HEIGHT || this.getY() > 1000); \r\n\t}",
"public boolean isAtTop() {\n return null != mListView && mListView.getFirstVisiblePosition() == 0;\n }",
"boolean canBeOnTop(Box b2) {\n\t\t\tif(b2 == null)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\tif(this.width < b2.width && this.height < b2.height && this.depth < b2.depth)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\treturn false;\n\t\t}",
"public boolean setOnTop(String sname) {\n return windows.setOnTop(sname);\n }",
"boolean isHollow();",
"boolean isEnableDepthOffset(DrawContext dc, Object shape);",
"boolean isFocused() {\n\t\tif (state != State.ROTATE)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean setOnTop(int i) {\n return windows.setOnTop(i);\n }",
"public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}",
"public boolean isMouseOver(){\n\t\treturn this.contains(Main.camera.getMousePos());\n\t}",
"@Override\n public void setOnTop(boolean arg0)\n {\n \n }",
"public boolean isLineClear() {\r\n return lineActivity.haveAverage() && (lineActivity.getAverage() < 0.5);\r\n }",
"public boolean isOutOfFocus() {\n\t\treturn isOutOfFocus;\n\t}",
"public int isPenDown () {\n if (myPenDown) return 1;\n return 0;\n }",
"protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }",
"public boolean onGround() {\n return getLocation().getY() <= 0 || (interactingWithY != null && interactingWithY.getLocation().getY() + interactingWithY.size.height <= getLocation().getY());\n }",
"public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }",
"@Test\n public void testIsTop() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"TOP\") || border.toString().contains(\"ALL\")) {\n Assert.assertTrue(border.isTop());\n } else {\n Assert.assertFalse(border.isTop());\n }\n }\n }",
"boolean isDrawOutline(DrawContext dc, Object shape);",
"private boolean snapToTop(int flingDelta) {\n if (mHasEverTouchedTheTop) {\n // Only when first interacting with QuickContacts should QuickContacts snap to the top\n // of the screen. After this, QuickContacts can be placed most anywhere on the screen.\n return false;\n }\n final int requiredScroll = -getScroll_ignoreOversizedHeaderForSnapping() + mTransparentStartHeight;\n if (-getScroll_ignoreOversizedHeaderForSnapping() - flingDelta < 0\n && -getScroll_ignoreOversizedHeaderForSnapping() - flingDelta > -mTransparentStartHeight\n && requiredScroll != 0) {\n // We finish scrolling above the empty starting height, and aren't projected\n // to fling past the top of the Window, so elastically snap the empty space shut.\n mScroller.forceFinished(true);\n smoothScrollBy(requiredScroll);\n return true;\n }\n return false;\n }",
"public static boolean isCornersOnTopLayer(Cube cube){\n\t\tif(countSquaresOnFace(cube, 4, 5) > 1) return true;\n\t\tfor(int i = 0; i <3; i++){\n\t\t\tif(cube.getSquare(i, 0, 0) == 4 || cube.getSquare(i, 0, 2) == 4) return true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean hasDrawableTop(Drawable[] drawables){\n\n //returns true if drawables[TOP] is not null\n //TOP = 1, which is the position of drawableTop iin drawables array\n return drawables[TOP] != null;\n\n }",
"public boolean isOnGround() {\n return this.sim_pos.getY() <= 2;\n }",
"public boolean isBackgroundPainted() {\r\n return backPainted;\r\n }",
"public static boolean isEdgesOnTopLayer(Cube cube){\n\t\tint counter = 0;\n\t\tif(cube.getSquare (5, 0, 1) !=5 && cube.getComplementaryEdgeColor(5,0,1) != 5) counter++;\n\t\tif(cube.getSquare (5, 1, 0) !=5 && cube.getComplementaryEdgeColor(5,1,0) != 5) counter++;\n\t\tif(cube.getSquare (5, 1, 2) !=5 && cube.getComplementaryEdgeColor(5,1,2) != 5) counter++;\n\t\tif(cube.getSquare (5, 2, 1) !=5 && cube.getComplementaryEdgeColor(5,2,1) != 5) counter++;\n\t\treturn (counter > 0);\n\t}",
"public boolean isHovered();",
"void setAlwaysOnTop(boolean alwaysOnTop);",
"public boolean isBelowRail() {\r\n return this.offset < 0;\r\n }",
"public boolean isTranslucent() {\n return false;\n }",
"@Override\n public boolean isGoodForTop()\n {\n return false;\n }",
"public boolean isStrike(){\r\n\t\tif( this.firstThrow == 10 )\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"public boolean isDefault() {\r\n\treturn bgclip == border;\r\n }",
"boolean hasFillBehavior();",
"private boolean isBlack(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK || aux == Cells.BLACK_QUEEN);\r\n }",
"boolean isTestAlwaysFocus();",
"public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"public boolean getPaintBorder() {\n\t\treturn p.getPaintBorder();\n\t}",
"public boolean offscreen(int top, int left, int w, int h) {\r\n return this.getPosx() + this.bound < left\r\n || this.getPosx() - this.bound > left + w\r\n || this.getPosy() + this.bound < top\r\n || this.getPosy() - this.bound > top + h;\r\n }",
"boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }",
"public boolean isBorderOpaque() {\n // TODO codavaj!!\n return false;\n }",
"@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}",
"public boolean isOver() {\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (!matrix[i][j].isClicked()) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"void setAlwaysOnTop(boolean always);",
"public boolean setOnTop(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : setOnTop(TitleBuilder.byHandle(hWnd));\n\t}",
"public boolean m2393e() {\n return VERSION.SDK_INT >= 21 ? ((WindowInsets) this.f1817a).isConsumed() : false;\n }",
"public boolean hasFront();",
"public boolean isDraw() {\n\t\tif (!h1.isAlive() && !h2.isAlive())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"boolean isHighlighted();",
"public boolean setOnTop(final WinRefEx hWnd, final boolean on) {\n\t\treturn (hWnd == null) ? false : setOnTop(TitleBuilder.byHandle(hWnd), on);\n\t}",
"public boolean isLinePainting ()\r\n {\r\n return constants.linePainting.getValue();\r\n }",
"protected boolean isOnPayline() {\n return getY()==getHeight();\n }",
"public boolean overLaps(Property prop) {\n if (this.getXRight() <= prop.getXLeft() || this.getXLeft() >= prop.getXRight()\n || this.getYTop() >= prop.getYBottom() || this.getYBottom() <= prop.getYTop()) {\n return false;\n }\n return true;\n }",
"@Override\r\n\tpublic boolean isHovered() {\n\t\tint hovered = this.group.hovered;\r\n\t\tif(hovered >= 0 && hovered < this.group.items.size())\r\n\t\t{\r\n\t\t\tif(this == this.group.items.get(hovered))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"private boolean checkIfHighlighted() {\n int i = 0;\n for (Node node : routeList) {\n if (node.getXPixels() != getHighlightGroup().getChildren().get(i).getTranslateX() ||\n node.getYPixels() != getHighlightGroup().getChildren().get(i).getTranslateY()) {\n return false;\n }\n i++;\n }\n return true;\n }",
"public boolean isFullyExplored();",
"protected boolean isStayingOnGroundSurface() {\n/* 342 */ return isShiftKeyDown();\n/* */ }",
"public boolean isCastOverLayShown() {\n if (currentContext != null) {\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(CASTING_OVERLAY_PREF_NAME, 0);\n return sharedPrefs.getBoolean(CAST_SHARED_PREF_NAME, false);\n }\n return false;\n }",
"private boolean topDrawableHit(TextView textView, int drawableHeight, float x, float y){\n\n\n\n int xmin = textView.getPaddingLeft();\n int xmax = textView.getWidth() - textView.getPaddingRight();\n int ymin = textView.getPaddingTop();\n int ymax = textView.getPaddingTop() + drawableHeight;\n\n //x should be between xmin and xmax, y should be between ymin and ymax\n return x > xmin && x <xmax && y > ymin && y < ymax ;\n }",
"public boolean isOnscreen( )\r\n {\r\n if ( this.transform.tx( ) + this.width( ) < 0.0f ) return false;\r\n if ( this.transform.tx( ) > SkyDiver.WindowWidth ) return false;\r\n if ( this.transform.ty( ) + this.height( ) < 0.0f ) return false;\r\n if ( this.transform.ty( ) > SkyDiver.WindowHeight ) return false;\r\n\r\n return true;\r\n }",
"private boolean hasAnOutline()\n {\n return getEntryEditorWidgetTreeViewerInput() != null;\n }",
"public boolean getUnderline() {\r\n return Underline;\r\n }",
"public boolean isCenteringOverCoords()\n\t{\n\t\treturn centerOverCoords;\n\t}",
"public boolean isOpaque()\n/* */ {\n/* 83 */ Color back = getBackground();\n/* 84 */ Component p = getParent();\n/* 85 */ if (p != null) {\n/* 86 */ p = p.getParent();\n/* */ }\n/* */ \n/* 89 */ boolean colorMatch = (back != null) && (p != null) && (back.equals(p.getBackground())) && (p.isOpaque());\n/* */ \n/* */ \n/* 92 */ return (!colorMatch) && (super.isOpaque());\n/* */ }",
"boolean isSetAnchorOffset();",
"public boolean isEmbracedBy (Point top,\r\n Point bottom)\r\n {\r\n for (TreeNode node : getNotes()) {\r\n Note note = (Note) node;\r\n Point center = note.getCenter();\r\n\r\n if ((center.y >= top.y) && (center.y <= bottom.y)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public boolean setOnBottom(String sname) {\n return windows.setOnBottom(sname);\n }",
"public boolean isGlowing ( ) {\n\t\treturn extract ( handle -> handle.isGlowing ( ) );\n\t}",
"boolean getArmedMark();",
"public boolean isOverridden() {\n return (isOverridden || topSwitch.get());\n }",
"public boolean isUseOffscreenBuffer() {\n return paintStrategy instanceof OffscreenBufferStrategy;\n }",
"protected final boolean shouldClearRectBeforePaint() {\n // TODO: sun.awt.noerasebackground\n return true;\n }",
"public boolean getPaintBorder() {\n\t\treturn paintBorder;\n\t}",
"public boolean isBackedge() {\n\t\treturn isBackEdge;\r\n\t}",
"public Stroke getInnerStroke() {\n return null;\n }",
"private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isBeautyShow() {\n return this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && !isDepthEnabled();\n }",
"public boolean isFocus() {\n\t\tif(lfocus.getText().equals(\"取消关注\"))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tlfocus.setText(\"取消关注\");\n\t\treturn false;\n\t}",
"public boolean isBackScreenLocked() {\n return isBSLock;\n }",
"Layer getTopMostVisible();",
"boolean isDrawState()\n\t{\n\t\treturn !state.contains(0);\n\t}",
"private boolean isInCanvas() {\n\t\tif ((sens.getXPos() >= sens.getXMax()) || (sens.getYPos() >= sens.getYMax()) || (sens.getXPos() < 0) || (sens.getYPos() < 0)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isInCanvas() {\n\t\tif ((sens.getXPos() >= sens.getXMax()) || (sens.getYPos() >= sens.getYMax()) || (sens.getXPos() < 0) || (sens.getYPos() < 0)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isDrawn();",
"boolean hasDynamicLineup();",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"@Override // android.widget.PopupWindow\n public boolean hasDecorView() {\n return true;\n }",
"boolean checkBorders();",
"public boolean isOver() {\n\t\treturn over;\n\t}",
"public boolean getIsOutOfLineFODescendant() {\n return isOutOfLineFODescendant;\n }",
"boolean isOnSecondMark(){\n return getDistanceFromSecondMark() == 0;\n }",
"boolean hasRect();"
] |
[
"0.6329537",
"0.6273177",
"0.619358",
"0.6165169",
"0.6085052",
"0.6040786",
"0.58518606",
"0.57976335",
"0.57899296",
"0.57541525",
"0.5722746",
"0.5679212",
"0.56671464",
"0.55978316",
"0.5597609",
"0.55948424",
"0.5549419",
"0.54848105",
"0.5444191",
"0.5441759",
"0.53728086",
"0.5357361",
"0.53474027",
"0.5318561",
"0.5317001",
"0.52957135",
"0.5282452",
"0.5257408",
"0.52379906",
"0.52235323",
"0.5221728",
"0.52110726",
"0.52053815",
"0.51945716",
"0.51840353",
"0.51745397",
"0.5169251",
"0.5159959",
"0.51584363",
"0.5154507",
"0.5135485",
"0.5134158",
"0.5130979",
"0.5128307",
"0.51262176",
"0.5122523",
"0.51150525",
"0.5112981",
"0.5108097",
"0.5108093",
"0.5106212",
"0.50940263",
"0.508371",
"0.5080538",
"0.5079331",
"0.5066289",
"0.5062275",
"0.50608844",
"0.5059063",
"0.50498205",
"0.5042683",
"0.5039388",
"0.50380397",
"0.5036606",
"0.5036349",
"0.5036154",
"0.5032379",
"0.5030897",
"0.5020789",
"0.5002942",
"0.49802396",
"0.49741185",
"0.4966369",
"0.4961843",
"0.49541113",
"0.49495316",
"0.49424896",
"0.49419737",
"0.49398473",
"0.49398065",
"0.49389422",
"0.49381873",
"0.49333298",
"0.4925732",
"0.4925593",
"0.492151",
"0.4912678",
"0.49126446",
"0.4911484",
"0.4909311",
"0.4909311",
"0.49066925",
"0.48991644",
"0.48955387",
"0.48938942",
"0.4889924",
"0.4886674",
"0.48832905",
"0.48784822",
"0.48657715"
] |
0.8077144
|
0
|
Returns clip shape for shape.
|
public Shape getClipShape() { return null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Shape getClip()\r\n\t{\r\n\t\treturn _g2.getClip();\r\n\t}",
"Shape getShape();",
"public Shape getShape();",
"public Shape getAreaColision();",
"public IRectangleBound getClipBound();",
"IShape getShape(String name);",
"public abstract void setClip(Shape clip);",
"public Shape getShape() { return shape; }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n return shape;\n }",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"ShapeType getShapeType();",
"IShape getCurrentShape();",
"public Shape getShape() {\n\treturn shape;\n }",
"private Shape getClipboard() { return clipboard; }",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"public String whatShape();",
"public abstract Shape getCopy();",
"public Shape getShape() {\n return null;\n }",
"public RMPath getMaskPath()\n{\n RMPath path = null;\n \n // If this shape draws anything, start with its path\n if(getStroke()!= null || getFill()!=null)\n path = getPathInBounds();\n \n // If this shape has children, add paths of children\n if(getChildCount()>0) {\n \n // Create list for paths\n List paths = new ArrayList();\n if(path!=null)\n paths.add(path);\n \n // Iterate over children and add their paths\n for(int i=0, iMax=getChildCount(); i<iMax; i++) {\n RMPath childPath = getChild(i).getMaskPath();\n if(childPath != null) {\n RMPath p2 = childPath.clone();\n p2.transformBy(getChild(i).getTransform());\n paths.add(p2);\n }\n }\n \n // Join paths\n if(paths.size() > 0)\n path = RMPathUtils.join(paths, RMPathUtils.JOIN_OP_ADD);\n }\n \n // Return path\n return path;\n}",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"IShape getStartShape();",
"protected Shape getShape()\n {\n return null;\n }",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public Rectangle getClipBounds()\r\n\t{\r\n\t\treturn _g2.getClipBounds();\r\n\t}",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"public IfcShapeAspect getShapeAspectStyle()\n\t{\n\t\treturn this.ShapeAspectStyle;\n\t}",
"public int[] getShape() {\n return shape;\n }",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"String getShapeName();",
"public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }",
"interface Clipping {\n /**\n * Sets the clip's bounding rectangle into the provided argument and\n * returns it for convenince.\n * \n * @param rect\n * the rect\n * @return the given rect\n * @since 3.1\n */\n Rectangle getBoundingBox(Rectangle rect);\n\n Clipping getCopy();\n\n void intersect(int left, int top, int right, int bottom);\n\n void scale(float horizontal, float vertical);\n\n void setOn(GC gc, int translateX, int translateY);\n\n void translate(float dx, float dy);\n }",
"public abstract int[] getShape();",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}",
"public abstract void clipRect(int x, int y, int width, int height);",
"Boolean[][] getClip()\n {\n return clip;\n }",
"@Override\r\n public Shape getShape ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.shape;\r\n } else {\r\n return null;\r\n }\r\n }",
"IShape getEndShape();",
"Shape getHighlightShape();",
"public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}",
"@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"public Rectangle2D getBoundary()\n {\n \tRectangle2D shape = new Rectangle2D.Float();\n shape.setFrame(location.getX(),location.getY(),12,length);\n return shape;\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"Shape createShape(BorderType borderType);",
"@java.lang.Override\n public int getClippingAreaIndex() {\n return clippingAreaIndex_;\n }",
"public Clip getClipAsteroid() {\r\n\t\treturn clipAsteroid;\r\n\t}",
"public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}",
"@Override\n\tpublic Polygon getCollisionShape() {\n\t\treturn null;\n\t}",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"public Shape getShape(String shapeType) {\n if (shapeType == null)\n return null;\n\n switch (ShapeType.valueOf(shapeType)) {\n case CIRCLE:\n return circle;\n case RECTANGLE:\n return rectangle;\n case SQUARE:\n return square;\n default:\n return null;\n }\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"@java.lang.Override\n public int getClippingAreaIndex() {\n return clippingAreaIndex_;\n }",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"@Override\n Shape getShape() {\n return Shape.Square;\n }",
"public static Shape[] deleteShape(Shape[] shape) {\n double minT = 0;\n double maxC = 0;\n for (Shape i : shape) {\n if (i.getClass().getSimpleName().equals(\"Triangle\")) { //get min\n if (i.getPerimeter() < minT || minT == 0) {\n minT = i.getPerimeter();\n }\n }\n if (i.getClass().getSimpleName().equals(\"Circle\")) { //get max\n if (i.getPerimeter() > maxC) {\n maxC = i.getPerimeter();\n }\n }\n }\n for (int i = 0; i < shape.length; i++) {\n if (shape[i] != null) {\n if (shape[i].getClass().getSimpleName().equals(\"Triangle\")) { //delete min\n if (shape[i].getPerimeter() == minT) {\n shape[i] = null;\n }\n }\n if (shape[i] != null) {\n if (shape[i].getClass().getSimpleName().equals(\"Circle\")) { //delete max\n if (shape[i].getPerimeter() == maxC) {\n shape[i] = null;\n }\n }\n }\n }\n }\n return shape;\n }",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"public void setClip(Shape clip)\r\n\t{\r\n\t\tg.setClip(clip);\r\n\t}",
"public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"protected abstract void clip();",
"@Override\n\tpublic String getShapeType() {\n\t\treturn \"Rectangle\";\n\t}",
"public void setRectangleClip(int x, int y, float width, float height);",
"private static <T extends Shape> Double calcShapeArea(T shape){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\treturn shapeContainer.calculateArea();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public static Shape getCurrentShape() {\n\t\treturn currentShape;\n\t}",
"public String getShapeType(){\n\t\treturn shapeType;\n\t}",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public void copyShape(RMShape aShape)\n{\n // Copy bounds\n setBounds(aShape._x, aShape._y, aShape._width, aShape._height);\n \n // Copy roll, scale, skew\n if(aShape.isRSS()) {\n setRoll(aShape.getRoll());\n setScaleXY(aShape.getScaleX(), aShape.getScaleY());\n setSkewXY(aShape.getSkewX(), aShape.getSkewY());\n }\n \n // Copy Stroke, Fill, Effect\n if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));\n if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));\n if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));\n \n // Copy Opacity and Visible\n setOpacity(aShape.getOpacity());\n setVisible(aShape.isVisible());\n \n // Copy Name, Url, Hover, Locked\n setName(aShape.getName());\n setURL(aShape.getURL());\n setHover(aShape.getHover());\n setLocked(aShape.isLocked());\n \n // Copy LayoutInfo\n setLayoutInfo(aShape.getLayoutInfo());\n \n // Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it\n //if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));\n \n // Copy bindings\n while(getBindingCount()>0) removeBinding(0);\n for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)\n addBinding(aShape.getBinding(i).clone());\n}",
"public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null; clone._effect = null;\n if(getStroke()!=null) clone.setStroke(getStroke().clone());\n if(getFill()!=null) clone.setFill(getFill().clone());\n if(getEffect()!=null) clone.setEffect(getEffect().clone());\n \n // Copy attributes map\n clone._attrMap = _attrMap.clone();\n \n // If shape has timeline, clone it\n if(getTimeline()!=null)\n clone.setTimeline(getTimeline().clone(clone));\n \n // Clone bindings and add to clone (with hack to make sure clone has it's own, non-shared, attr map)\n for(int i=0, iMax=getBindingCount(); i<iMax; i++) {\n if(i==0) clone.put(\"RibsBindings\", null);\n clone.addBinding(getBinding(i).clone());\n }\n \n // Clone event adapter\n if(getEventAdapter(false)!=null) {\n clone.put(\"EventAdapter\", null);\n clone.getEventAdapter(true).setEnabledEvents(getEventAdapter(true).getEnabledEvents());\n }\n \n // Return clone\n return clone;\n}",
"public abstract boolean canClip();",
"String getShapeLabel();",
"int getShapeId();",
"Rect getCollisionShape()\n {\n return new Rect(x+2,y+2,x +(width-2), y+(height-2));\n }",
"public int getMyShape(){ return myShape;}",
"public Rectangle getShape(){\n return myRectangle;\n }",
"public Circle getShape(){\n\t\treturn new Circle();\n\t}",
"public abstract Shape clone() throws CloneNotSupportedException;",
"public Shape createStrokedShape(Shape shape) {\n/* 140 */ GeneralPath result = new GeneralPath();\n/* 141 */ PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), 1.0D);\n/* 142 */ float[] points = new float[6];\n/* 143 */ float moveX = 0.0F, moveY = 0.0F;\n/* 144 */ float lastX = 0.0F, lastY = 0.0F;\n/* 145 */ float thisX = 0.0F, thisY = 0.0F;\n/* 146 */ int type = 0;\n/* 147 */ float next = 0.0F;\n/* 148 */ int phase = 0;\n/* 149 */ while (!it.isDone()) {\n/* 150 */ float dx, dy, distance; type = it.currentSegment(points);\n/* 151 */ switch (type) {\n/* */ case 0:\n/* 153 */ moveX = lastX = points[0];\n/* 154 */ moveY = lastY = points[1];\n/* 155 */ result.moveTo(moveX, moveY);\n/* 156 */ next = OutlineZigzagEffect.this.wavelength / 2.0F;\n/* */ break;\n/* */ \n/* */ case 4:\n/* 160 */ points[0] = moveX;\n/* 161 */ points[1] = moveY;\n/* */ \n/* */ \n/* */ case 1:\n/* 165 */ thisX = points[0];\n/* 166 */ thisY = points[1];\n/* 167 */ dx = thisX - lastX;\n/* 168 */ dy = thisY - lastY;\n/* 169 */ distance = (float)Math.sqrt((dx * dx + dy * dy));\n/* 170 */ if (distance >= next) {\n/* 171 */ float r = 1.0F / distance;\n/* 172 */ while (distance >= next) {\n/* 173 */ float x = lastX + next * dx * r;\n/* 174 */ float y = lastY + next * dy * r;\n/* 175 */ if ((phase & 0x1) == 0) {\n/* 176 */ result.lineTo(x + OutlineZigzagEffect.this.amplitude * dy * r, y - OutlineZigzagEffect.this.amplitude * dx * r);\n/* */ } else {\n/* 178 */ result.lineTo(x - OutlineZigzagEffect.this.amplitude * dy * r, y + OutlineZigzagEffect.this.amplitude * dx * r);\n/* 179 */ } next += OutlineZigzagEffect.this.wavelength;\n/* 180 */ phase++;\n/* */ } \n/* */ } \n/* 183 */ next -= distance;\n/* 184 */ lastX = thisX;\n/* 185 */ lastY = thisY;\n/* 186 */ if (type == 4) result.closePath(); \n/* */ break;\n/* */ } \n/* 189 */ it.next();\n/* */ } \n/* 191 */ return (new BasicStroke(OutlineZigzagEffect.this.getWidth(), 2, OutlineZigzagEffect.this.getJoin())).createStrokedShape(result);\n/* */ }",
"private BufferedImage getClipImage(final Rectangle effectBounds) {\n if (_clipImage == null\n || _clipImage.getWidth() < effectBounds.width\n || _clipImage.getHeight() < effectBounds.height) {\n /* */\n int w = effectBounds.width;\n int h = effectBounds.height;\n if (_clipImage != null) {\n w = Math.max(_clipImage.getWidth(), w);\n h = Math.max(_clipImage.getHeight(), h);\n }\n _clipImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n }\n return _clipImage;\n }",
"public void apply(Graphics2D g, Shape clipShape, int width, int height) {\n Rectangle tmp = clipShape.getBounds();\n width = (int) tmp.getMaxX();\n height = (int) tmp.getMaxY();\n tmp.setRect(0, 0, width + getEffectWidth() * 2 + 1,\n height + getEffectWidth() * 2 + 1);\n\n // Apply the border glow effect\n if (isShapeMasked()) {\n BufferedImage clipImage = getClipImage(tmp);\n Graphics2D g2 = clipImage.createGraphics();\n try {\n /* clear the buffer */\n g2.setPaint(Color.BLACK);\n g2.setComposite(AlphaComposite.Clear);\n g2.fillRect(0, 0, clipImage.getWidth(), clipImage.getHeight());\n\n g2.translate(getEffectWidth() - getOffset().getX(),\n getEffectWidth() - getOffset().getY());\n paintBorderGlow(g2, clipShape, width, height);\n\n /* clip out the parts we don't want */\n g2.setComposite(AlphaComposite.Clear);\n g2.setColor(Color.WHITE);\n if (isRenderInsideShape()) {\n /* clip the outside */\n Area area = new Area(tmp);\n area.subtract(new Area(clipShape));\n g2.fill(area);\n } else {\n /* clip the inside */\n g2.fill(clipShape);\n }\n } finally {\n /* draw the final image */\n g2.dispose();\n }\n g.drawImage(clipImage, -getEffectWidth() + (int) getOffset().getX(), -getEffectWidth() + (int) getOffset().getY(), null);\n } else {\n paintBorderGlow(g, clipShape, width, height);\n }\n }",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }",
"public abstract void setClip(int x, int y, int width, int height);",
"private static void clipPoly(CsgPolyStream targetStream, CsgPolyStream clippingStream, int polyAddress)\n {\n IntArrayList stack = STACK.get();\n assert stack.isEmpty();\n int nodeAddress = 0;\n \n clipPolyInner(stack, targetStream, clippingStream, polyAddress, 0);\n \n while(!stack.isEmpty())\n {\n nodeAddress = stack.popInt();\n polyAddress = stack.popInt();\n clipPolyInner(stack, targetStream, clippingStream, polyAddress, nodeAddress);\n }\n \n }",
"public Shape getShape(String shapeType)\r\n {\r\n if(shapeType == null)\r\n {\r\n return null;\r\n }\t\r\n \r\n if(shapeType.equals(\"Circle\"))\r\n {\r\n return new Circle();\r\n }\r\n else if(shapeType.equals(\"Rectangle\"))\r\n {\r\n return new Rectangle();\r\n }\r\n else if(shapeType.equals(\"Square\"))\r\n {\r\n return new Square();\r\n }\r\n \r\n return null;\r\n }",
"List<String> getShapePanelInput();",
"public String toString() {\n\t\t\treturn shape;\n\t\t}",
"public float getClipMin() {\n return _clips.getClipMin();\n }"
] |
[
"0.74958134",
"0.6660794",
"0.63354135",
"0.6313639",
"0.6226308",
"0.6189663",
"0.61105734",
"0.60237956",
"0.6010814",
"0.5993799",
"0.5991636",
"0.59881395",
"0.5881772",
"0.5869654",
"0.5849077",
"0.5843375",
"0.5838816",
"0.5829797",
"0.582919",
"0.5821392",
"0.57864285",
"0.57843727",
"0.5763581",
"0.57545215",
"0.571346",
"0.57093215",
"0.570177",
"0.56782407",
"0.56774414",
"0.5670575",
"0.5617102",
"0.5605994",
"0.5580504",
"0.55343306",
"0.55300605",
"0.5496465",
"0.5487952",
"0.5433788",
"0.54264337",
"0.5425764",
"0.5400194",
"0.539395",
"0.53878933",
"0.5383548",
"0.5374965",
"0.5374816",
"0.53740954",
"0.5360879",
"0.53461605",
"0.53393936",
"0.5317099",
"0.5311029",
"0.52886254",
"0.5268421",
"0.52629304",
"0.52481306",
"0.5213629",
"0.52089965",
"0.5200581",
"0.51982766",
"0.51982427",
"0.51928234",
"0.5188436",
"0.5158256",
"0.5155396",
"0.5141279",
"0.513093",
"0.5127911",
"0.51261854",
"0.512456",
"0.50989085",
"0.50971866",
"0.50866675",
"0.50736284",
"0.50732774",
"0.5068175",
"0.50568277",
"0.50532234",
"0.50491345",
"0.50440574",
"0.50354046",
"0.5014464",
"0.5013942",
"0.50097865",
"0.5004583",
"0.4994119",
"0.49874312",
"0.49813312",
"0.49644393",
"0.49406308",
"0.49397823",
"0.49290437",
"0.49189746",
"0.49075383",
"0.49072948",
"0.49068767",
"0.4896417",
"0.48955727",
"0.48918942",
"0.48915228"
] |
0.72875196
|
1
|
Called to update shape anim.
|
public void animUpdate(PropertyChangeEvent anEvent)
{
// Return if shape is a new-born
if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;
// If change is anim property, add record
if(isAnimProperty(anEvent.getPropertyName()))
addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());
// Add anim records for Fill
else if(anEvent.getPropertyName().equals("Fill")) {
RMFill f1 = (RMFill)anEvent.getNewValue();
RMFill f2 = (RMFill)anEvent.getOldValue();
RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;
RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;
addTimelineEntry("Color", c1, c2);
}
// Add anim records for Fill.Color
else if(anEvent.getPropertyName().equals("Fill.Color"))
addTimelineEntry("Color", anEvent.getNewValue(), anEvent.getOldValue());
// Add anim records for Stroke
else if(anEvent.getPropertyName().equals("Stroke")) {
RMStroke s1 = (RMStroke)anEvent.getNewValue();
RMStroke s2 = (RMStroke)anEvent.getOldValue();
RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;
RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;
addTimelineEntry("StrokeColor", c1, c2);
float lw1 = s1!=null? s1.getWidth() : 0;
float lw2 = s2!=null? s2.getWidth() : 0;
addTimelineEntry("StrokeWidth", lw1, lw2);
}
// Add anim records for Stroke.Color
else if(anEvent.getPropertyName().equals("Stroke.Color"))
addTimelineEntry("StrokeColor", anEvent.getNewValue(), anEvent.getOldValue());
// Add anim records for Stroke.Width
else if(anEvent.getPropertyName().equals("Stroke.Width"))
addTimelineEntry("StrokeWidth", anEvent.getNewValue(), anEvent.getOldValue());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}",
"public void animate()\n\t{\n\t\tanimation.read();\n\t}",
"@Override\n public void animate() {\n }",
"private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX();\n int offsetY = scroller.getOffsetY();\n shape.setOffset(offsetX, offsetY);\n }",
"public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}",
"@Override\n public void updateAtTime(IShape shape, int time) {\n int currentSx = formula(time, this.startTime, this.endTime, this.fromSx, this.toSx);\n int currentSy = formula(time, this.startTime, this.endTime, this.fromSy, this.toSy);\n\n shape.setScale(currentSx, currentSy);\n }",
"@Override\n void individualUpdate() {\n timeToLive--;\n radius++;\n setColor();\n }",
"protected abstract void animate(int anim);",
"private void updateShapeHandles() {\n for (Shape shape : this.model.getShapes()) {\n shape.updateHandles(this.viewModel.getZoomFactor());\n }\n }",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"@Override\n public void run(){\n gameItem = shapeFactory.getShape(shapeButton, shapeName);\n if (gameItem != null) {\n gameItem.clearName(); //clears text\n gameItem.draw(); //draws new shape\n }\n }",
"protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }",
"@Override\n public void redo() {\n shapeList.add((newShape));\n }",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"@Override\n public void finish(long now) {\n for (int i = 0; i < partCount; i++) {\n shapes[i].setReduced(true);\n }\n scene.setAdjusting(false||isInStartedPlayer());\n super.finish(now);\n }",
"private void animate() {\r\n\t\tif (spriteCounter > 50) {\r\n\t\t\tanimationFrame = 0;\r\n\t\t} else {\r\n\t\t\tanimationFrame = -16;\r\n\t\t}\r\n\t\t\r\n\t\tif (spriteCounter > 100) {\r\n\t\t\tspriteCounter = 0;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tspriteCounter++;\r\n\t\tsetImage((Graphics2D) super.img.getGraphics());\r\n\t}",
"@Override\n\tpublic void animate(GLAutoDrawable drawable) {\n\n\t}",
"public void doAnimateStep () {\n\t\tadvanceSimulation();\n\t\tpaint();\n\t}",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tdrawGraph();\r\n\t}",
"public void update()\n\t{\n\t\tGViewMapManager gViewMapManager = this.guiController.getCurrentStyleMapManager();\n\t\tLayout layout = gViewMapManager.getLayout();\n\n\t\tswitch (layout)\n\t\t{\n\t\t\tcase LINEAR:\n\t\t\t\tthis.linear.setSelected(true);\n\t\t\t\tbreak;\n\t\t\tcase CIRCULAR:\n\t\t\t\tthis.circular.setSelected(true);\n\t\t\t\tbreak;\n default:\n break;\n\t\t}\n\t}",
"@Override\n\tpublic void redo() {\n\t\tthis.list.add(shape);\n\n\t}",
"public void setShape(Info shape) {\n \n }",
"public void renderShape(final Shape theShape) {\n if (myWidth > 0) {\n final Drawing newDrawing = new Drawing(theShape, myColor, myWidth);\n myCurrentShape = newDrawing;\n repaint();\n } \n }",
"public void update( ) {\n\t\tdraw( );\n\t}",
"private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}",
"@Override\n protected void animStart() {\n }",
"@Override\r\n\tpublic void run() {\n\t\tfor(IShape shape : shapeList.getSelectedList())\r\n\t\t{\r\n\t\t\t//Create the new start positions for the shape which is offset from the start position of selected shape\r\n\t\t\tnewStart = shape.getStart();\r\n\t\t\tnewEnd = shape.getEnd();\r\n\t\t\tnewStart.setX(newStart.getX() + 100);\r\n\t\t\tnewEnd.setX(newEnd.getX() + 100);\r\n\t\t\tnewStart.setY(newStart.getY() + 100);\r\n\t\t\tnewEnd.setY(newEnd.getY() + 100);\r\n\t\t\t\r\n\t\t\t//Create a new shape and add it to shapeList\r\n\t\t\t//add to tempList as well for undo/redo function\r\n\t\t\tnewShape = new Shape(newStart, newEnd, shape.getColor(), shape.getOutline(), shape.getShape(), shape.getShading()); \r\n\t\t\tshapeList.add(newShape);\r\n\t\t\ttempList.add(newShape);\r\n\t\t}\r\n\t\tCommandHistory.add(this);\r\n\r\n\t}",
"@Override\n\tpublic void anim(float pos) {\n\t\tif (isReadyAnim(pos)) {\n\t\t\tfloat value = interpolator(pos);\n\t\t\tview.setScaleX(value);\n\t\t\tview.setScaleY(value);\n\t\t}\n\t}",
"public void assignShape() {\n\t\t\n\t}",
"private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }",
"public abstract void animationStarted();",
"@Override\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\n\t}",
"public void update() {\n\t\tthis.set(owner.getX(), owner.getY(), owner.getX() + length*(float)Math.cos(angle),\n\t\t\t\towner.getY() + length*(float)Math.sin(angle));\n\t}",
"@Override\n\tpublic void draw() {\n\t\tfloat delta = Gdx.graphics.getDeltaTime();\n\t\ti+= delta;\n\t\timage.setRegion(animation.getKeyFrame(i, true));\n\t\t//this.getSpriteBatch().draw(animation.getKeyFrame(i, true), 0, 0);\n\t\t\n\t\tGdx.app.log(\"tag\", \"delta = \" + i);\n\t\t\n\t\tsuper.draw();\n\t}",
"void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }",
"@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}",
"@Override\n public void onAnimationEnd(Animation animation) {\n setVisualState();\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"public void draw(Shape shape) {\n this.shape = shape; //setter\n System.out.println(shape.draw()); //execute\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n progress_stack = progress_stack_bkup;\r\n\r\n rec_points = rec_points_bkup;\r\n rec_colors = rec_colors_bkup;\r\n\r\n squ_points = squ_points_bkup;\r\n squ_colors = squ_colors_bkup;\r\n\r\n ell_points = ell_points_bkup;\r\n ell_colors = ell_colors_bkup;\r\n\r\n cir_points = cir_points_bkup;\r\n cir_colors = cir_colors_bkup;\r\n\r\n str_points = str_points_bkup;\r\n str_colors = str_colors_bkup;\r\n\r\n poly_points = poly_points_bkup;\r\n poly_colors = poly_colors_bkup;\r\n\r\n handdraw_points = handdraw_points_bkup;\r\n handdraw_colors = handdraw_colors_bkup;\r\n\r\n\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n //repaint circle\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n //repaint square\r\n if(squ_colors.size()>0){\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n //repaint ellipse\r\n if(ell_colors.size()>0){\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n //repaint straight line\r\n if(str_colors.size()>0){\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n //repaint polygons\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n }\r\n\r\n //repaint freehand lines\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }",
"public abstract void animationReelFinished();",
"@Override\n\tpublic void paintComponent(Graphics g){\n\t\tsuper.paintComponent(g);\n\t\tanimateFace((int)circle.x, (int)circle.y, (int)circle2.x, (int)circle2.y);\n\t\tdrawFace(g);\n\t}",
"public void update() {\n\t\tfirstMove = false;\n\t\tif (color == 1) xrange = -1;\n\t\tif (color == 0) xrange = 1;\n\t}",
"@Test\n public void testAddSizeChange() {\n testAnimation.addShape(r, 1, 100);\n // Instantiate the size change\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n size2 = new ScaleShape(r, 25.0, 100.0, 25.0, 13.0);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, size2, 71, 73);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR changes height from 100.0 to 13.0 from time t=71 to t=73\\n\",\n testAnimation.toString());\n }",
"protected abstract void updateShapeColor(Color color);",
"public void update(List<Shape> currentShapes) {\n\t\tthis.listOfShapes = currentShapes;\n\t\trepaint();\n\n\t}",
"@Override\n\tpublic void update() {\n\t\tif(!canSwoop)\n\t\tif(System.currentTimeMillis() - lastAnim >= 200){\t\n\t\t\tif(currentAnim < 2){\n\t\t\t\tcurrentAnim++;\n\t\t\t} else {\n\t\t\t\tcurrentAnim = 0;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"ANIMATING image: \" + currentAnim);\n\t\t\tlastAnim = System.currentTimeMillis();\t\t\n\t\t\t}\n\t\t\n\t\tthis.texture = Assets.shadowAnim[currentAnim];\n\t}",
"public void animate() {\n // change our angle of view\n mRenderer.setAngle(mRenderer.getAngle() + 1.2f);\n\n if (mCurrentAktieCubeLayer == null) {\n int layerID = mRandom.nextInt(9);\n mCurrentAktieCubeLayer = mAktieCubeLayers[layerID];\n mCurrentLayerPermutation = mLayerPermutations[layerID];\n mCurrentAktieCubeLayer.startAnimation();\n boolean direction = mRandom.nextBoolean();\n int count = mRandom.nextInt(3) + 1;\n\n count = 1;\n direction = false;\n mCurrentAngle = 0;\n if (direction) {\n mAngleIncrement = (float)Math.PI / 50;\n mEndAngle = mCurrentAngle + ((float)Math.PI * count) / 2f;\n } else {\n mAngleIncrement = -(float)Math.PI / 50;\n mEndAngle = mCurrentAngle - ((float)Math.PI * count) / 2f;\n }\n }\n\n mCurrentAngle += mAngleIncrement;\n\n if ((mAngleIncrement > 0f && mCurrentAngle >= mEndAngle) ||\n (mAngleIncrement < 0f && mCurrentAngle <= mEndAngle)) {\n mCurrentAktieCubeLayer.setAngle(mEndAngle);\n mCurrentAktieCubeLayer.endAnimation();\n mCurrentAktieCubeLayer = null;\n\n // adjust mPermutation based on the completed layer rotation\n int[] newPermutation = new int[27];\n for (int i = 0; i < 27; i++) {\n newPermutation[i] = mPermutation[mCurrentLayerPermutation[i]];\n }\n mPermutation = newPermutation;\n updateLayers();\n\n } else {\n mCurrentAktieCubeLayer.setAngle(mCurrentAngle);\n }\n }",
"@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}",
"public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }",
"@Override\n public final void draw(Batch batch, float parentAlpha) {\n\n Matrix4 originalTransform = ActorMixins.setBatchTransformMatrix(batch, this);\n batch.end();\n POLYGON_BATCH.begin();\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n\n if (useSpineBoy && finalSkeleton != null) {\n stateFinal.update(Gdx.graphics.getDeltaTime());\n stateFinal.apply(finalSkeleton);\n\n finalSkeleton.updateWorldTransform();\n renderer.draw(POLYGON_BATCH, finalSkeleton, parentAlpha); // Draw the skeleton images.\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n //draw debug tangent circles on running animation\n debug.draw(POLYGON_BATCH, finalSkeleton);\n } else {\n stateFinal.update(Gdx.graphics.getDeltaTime());\n stateFinal.apply(emptySkeleton);\n\n emptySkeleton.updateWorldTransform(); // Uses the bones' local SRT to compute their world SRT.\n for (Slot sl : emptySkeleton.getSlots()) {\n if (sl.getAttachment() instanceof RegionAttachment) {\n RegionAttachment r = ((RegionAttachment) sl.getAttachment());\n\n //calculate region attachment bounds here\n if (r instanceof PolygonRegionAttachment) {\n ((PolygonRegionAttachment) r).calculateBoundsAdj(sl, this);\n r.updateOffset();\n }\n\n //---------------------------------------------------------------------\n }\n }\n Skeleton temp = emptySkeleton;\n if ((useSpineBoy || temp == null) && finalSkeleton != null) {\n temp = finalSkeleton;\n }\n renderer.draw(POLYGON_BATCH, temp, 1);\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n// if (isUseSpineBoy())\n debug.draw(POLYGON_BATCH, temp);\n }\n\n POLYGON_BATCH.end();\n batch.begin();\n Array<Slot> slots = null;\n float height = 0;\n float width = 0;\n\n if (finalSkeleton != null) {\n slots = finalSkeleton.getSlots();\n width = finalSkeleton.getData().getWidth();\n height = finalSkeleton.getData().getHeight();\n } else if (emptySkeleton != null) {\n slots = emptySkeleton.getSlots();\n width = emptySkeleton.getData().getWidth();\n height = emptySkeleton.getData().getHeight();\n }\n\n int anglePart = 360 / slots.size;\n int pos = 0;\n selectedAngle = -1;\n\n for (Slot sl : slots) {\n if (sl.getAttachment() instanceof PolygonRegionAttachment) {\n PolygonRegionAttachment attachment = ((PolygonRegionAttachment) sl.getAttachment());\n if (attachment.getRegion() != null) {\n int rotation = anglePart * pos + chosAngle;\n rotation = (rotation + 360) % 360;\n float off = 1f - Math.abs((180f - rotation) / 180f);\n Vector2 dd1 = new Vector2(0, Math.max(width, height) * distance);\n if (distance > 0.0f) {\n distance -= .01f;\n }\n// System.out.println(\"distance:\"+distance);\n\n// Vector2 dd2 = new Vector2(0, Math.max(width, height) / 1.0f);\n if (getSelectedBone() != null && sl.getBone().getData().getName().equals(getSelectedBone().getData().getName())) {\n batch.setColor(Color.WHITE);\n selectedAngle = pos;\n } else {\n batch.setColor(new Color(off, off, off, 0));\n }\n\n dd1.rotate(rotation);\n\n// Vector2 dd2=dd1.cpy();\n dd1.add(-width / 2, height / 3);\n// dd2.add(-width / 2, -height);\n pos++;\n TextureRegion cropRegion = attachment.getRotatedRegion();\n boolean atlas = false;\n if (cropRegion == null || !isUseSpineBoy()) {\n cropRegion = attachment.getAtlasRegion();\n atlas = true;\n }\n TextureRegion blankRegion = attachment.getBlankRegion();\n\n if (cropRegion != null && blankRegion != null) {\n Vector2 diff = new Vector2(cropRegion.getRegionWidth() - blankRegion.getRegionWidth(), cropRegion.getRegionHeight() - blankRegion.getRegionHeight());\n diff.scl(off);\n diff.scl(.5f);\n off *= 2f;\n if (!atlas) {\n// float rot = attachment.getFinalizedRotation();\n// batch.draw(cropRegion, dd1.x - diff.x, dd1.y - diff.y, cropRegion.getRegionWidth() * .5f, cropRegion.getRegionHeight() * .5f, cropRegion.getRegionWidth(), cropRegion.getRegionHeight(), off, off * flip, rot);\n TextureRegion tr = attachment.getRotatedRegion();\n if (tr != null) {\n batch.draw(tr, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, off, 0);\n }\n\n } else {\n TextureRegion tr = attachment.getAtlasRegion();\n if (tr != null) {\n batch.draw(tr, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, -off, 0);\n }\n }\n\n batch.draw(blankRegion, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, off, 0);\n\n\n }\n }\n }\n }\n if (selectedAngle != -1) {\n int dff = anglePart * selectedAngle + chosAngle;\n if (dff > 185) {\n chosAngle -= 5;\n }\n if (dff < 175) {\n chosAngle += 5;\n }\n// if (dff < 0) {\n// chosAngle += 180;\n// }\n }\n// chosAngle=(chosAngle+360)%360;\n batch.setTransformMatrix(originalTransform);\n }",
"@Override\n public void draw(Canvas canvas)\n {\n\n animationM.draw(canvas, rectangle);\n\n }",
"public void updateImage() {\n \t\tAnimation anim = this.animationCollection.at(\n \t\t\t\tfak.getCurrentAnimationTextualId());\n \n \t\t// if animation is set to something bad, then set it to back to initial\n \t\tif(anim==null)\n \t\t{\n \t\t\tfak.setCurrentAnimationTextualId(ConstantsForAPI.INITIAL);\n \t\t\tanim = this.animationCollection.at(\n \t\t\t\t\tfak.getCurrentAnimationTextualId());\n \t\t}\n \n \t\tif(anim==null)\n \t\t{\n \t\t\tanim = this.animationCollection.at(0);\n \t\t\tfak.setCurrentAnimationTextualId(anim.getTextualId());\n \t\t}\n \n \t\tif (anim != null) {\n \t\t\tif (fak.getCurrentFrame()\n \t\t\t\t\t>= anim.getLength()) {\n \t\t\t\tfak.setCurrentFrame(\n \t\t\t\t\t\tanim.getLength() - 1);\n \t\t\t}\n \n \t\t\tcom.github.a2g.core.objectmodel.Image current = anim.getImageAndPosCollection().at(\n \t\t\t\t\tfak.getCurrentFrame());\n \n \t\t\t// yes current can equal null in some weird cases where I place breakpoints...\n \t\t\tif (current != null\n \t\t\t\t\t&& !current.equals(this)) {\n \t\t\t\tif (this.currentImage != null) {\n \t\t\t\t\tthis.currentImage.setVisible(\n \t\t\t\t\t\t\tfalse, new Point(this.left,this.top));\n \t\t\t\t}\n \t\t\t\tthis.currentImage = current;\n \t\t\t}\n \t\t}\n \t\t// 2, but do this always\n \t\tif (this.currentImage != null) {\n \t\t\tthis.currentImage.setVisible(\n \t\t\t\t\tthis.visible, new Point(this.left,\n \t\t\t\t\t\t\tthis.top));\n \t\t}\n \n \t}",
"void currentFrame(List<IShape> shapes);",
"public AnimationSVGView() {\n this.model = new BasicAnimationModel();\n this.out = new StringBuilder();\n this.speed = 1;\n }",
"@Override\n public void update(Graphics g) {\n paint(g);\n }",
"@Override\n public void animate (GL2 gl, GLU glu, GLUT glut) {\n // animate model by spinning it a few degrees each time\n myAngle += 1;\n }",
"public void animate(){\n\n if (ra1.hasStarted() && ra2.hasStarted()) {\n\n// animation1.cancel();\n// animation1.reset();\n// animation2.cancel();\n// animation2.reset();\n gear1Img.clearAnimation();\n gear2Img.clearAnimation();\n initializeAnimations(); // Necessary to restart an animation\n button.setText(R.string.start_gears);\n }\n else{\n gear1Img.startAnimation(ra1);\n gear2Img.startAnimation(ra2);\n button.setText(R.string.stop_gears);\n }\n }",
"public void animationTrans() {\n float unitAngle;\n if (type == CIRCLE) {\n unitAngle = (float) 360 / defaultCount;\n } else {\n unitAngle = 45f;\n }\n final float oldAngle = mAngle;\n float nAngle = mAngle % actualAngle;\n float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle);\n\n final float willAngle;\n if (type == CIRCLE) {\n willAngle = (float) ((0.5 - gapAngle) * unitAngle);\n } else {\n if (gapAngle < 0.5) {\n willAngle = (float) ((0 - gapAngle) * unitAngle);\n } else {\n willAngle = (float) ((1 - gapAngle) * unitAngle);\n }\n }\n Animation a = new Animation() {\n\n @Override\n protected void applyTransformation(float interpolatedTime, Transformation t) {\n\n mAngle = oldAngle + willAngle * interpolatedTime;\n\n requestLayout();\n }\n\n @Override\n public boolean willChangeBounds() {\n return true;\n }\n };\n\n a.setDuration(200);\n startAnimation(a);\n }",
"@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}",
"@Override\n public void actionPerformed( ActionEvent actionEvent )\n {\n repaint(); // repaint animator\n }",
"public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}",
"public void animate() {\n\t\t\n\t\t// already exploded\n\t\tif (disabled > explodeTime) {\n\t\t\treturn;\n\t\t} // if\n\n\t\t// exploding now\n\t\tif (disabled > 0) {\n\t\t\tsphere.explode();\n\t\t\tdisabled++;\n\t\t\treturn;\n\t\t} // if\n\t\t\n\t\t// move sphere and this\n\t\tlocation.add(movement);\n\t\tsphere.move(movement);\n\t\t\n\t\t// bounce back if too far out\n\t\tif(location.distance(new Tuple(0, 0, 0)) > FIELD_SIZE) {\n\t\t\tmovement.scale(-1, -1, -1);\n\t\t} // if\n\t}",
"@Test\n public void testChangeCanvas() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n int[] i = {40, 40, 40};\n StringBuilder sb = new StringBuilder();\n am.addShape(40, 40, 45, \"Reccy\", false, 100, 150,\n 20, 15, ShapeType.RECTANGLE);\n am.addMotion(5, 10, 100, 150, 150,\n 200, 20, 15, 15, 10, i,\n i, \"Reccy\");\n am.setCanvas(30, 30, 360, 400);\n am.startAnimation();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"30 30 360 400\\\" \"\n + \"version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"Reccy\\\" x=\\\"100.00\\\" y=\\\"150.00\\\" width=\\\"20.00\\\" \"\n + \"height=\\\"15.00\\\" fill=\\\"rgb(40,40,40)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" />\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"100\\\" to=\\\"150\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"150\\\" to=\\\"200\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"width\\\" from=\\\"20\\\" to=\\\"15\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"height\\\" from=\\\"15\\\" to=\\\"10\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }",
"@Override\r\n\tpublic void redo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.add(shape);\r\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n g.setColor(Color.WHITE);\r\n g.fillRect(0,0,1200,800);\r\n canvas.repaint();\r\n\r\n popped_points.clear();\r\n\r\n if(progress_stack.size() > 0){\r\n last_state = progress_stack.get(progress_stack.size()-1);\r\n System.out.println(last_state+\" is the last shape in progress stack\");\r\n\r\n\r\n if(last_state.equals(\"rec\")){\r\n //recall other point_stack\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"rec\", rec_points, rec_colors);\r\n\r\n /* //recall rec points\r\n //1. store the last rectangle data\r\n //2. pop the last rectangle\r\n\r\n //for loop\r\n for (int i = 0; i < rec_colors.size(); i++) {\r\n System.out.println(rec_colors.size());\r\n int begin_index = i * 4;\r\n x1 = rec_points.get(begin_index);\r\n y1 = rec_points.get(begin_index + 1);\r\n x2 = rec_points.get(begin_index + 2);\r\n y2 = rec_points.get(begin_index + 3);\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n //last one\r\n if(i == (rec_colors.size()-1)){\r\n //store points and shape\r\n\r\n popped_points.add(x1);\r\n popped_points.add(y1);\r\n popped_points.add(x2);\r\n popped_points.add(y2);\r\n\r\n popped_shape = \"rec\";\r\n popped_color = rec_colors.get(rec_colors.size()-1);\r\n System.out.println(popped_points+ \" is popped rectangle\");\r\n\r\n //popped the last rectangle\r\n System.out.println(progress_stack+\" is the previous stack\");\r\n progress_stack.remove(progress_stack.size()-1);\r\n System.out.println(progress_stack+\" is the current stack\");\r\n\r\n //pop last 4 points from rec_points\r\n\r\n if(rec_colors.size() == 1){\r\n //last element in shape stack\r\n rec_points.clear();\r\n }\r\n else{\r\n //pop last 4 points from cir_points\r\n rec_points.remove(rec_points.size()-1);\r\n rec_points.remove(rec_points.size()-2);\r\n rec_points.remove(rec_points.size()-3);\r\n rec_points.remove(rec_points.size()-4);\r\n System.out.println(rec_points+ \" is the current rec_points\");\r\n }\r\n\r\n\r\n //pop the last color\r\n rec_colors.remove(rec_colors.size()-1);\r\n\r\n\r\n\r\n }else{\r\n g.setColor(rec_colors.get(i));\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n\r\n canvas.repaint();\r\n }\r\n\r\n }*/\r\n\r\n// if(rec_points.size() < 5){\r\n// //it is the first shape\r\n// //do nothing don't paint anything on canvas\r\n// //but store the\r\n// }else{\r\n// for (int i = 0; i < rec_colors.size()-1; i++) {\r\n// System.out.println(rec_colors.size());\r\n// int begin_index = i * 4;\r\n// x1 = rec_points.get(begin_index);\r\n// y1 = rec_points.get(begin_index + 1);\r\n// x2 = rec_points.get(begin_index + 2);\r\n// y2 = rec_points.get(begin_index + 3);\r\n//\r\n// int[] start_points = start_point(x1, y1, x2, y2);\r\n//\r\n// g.setColor(rec_colors.get(i));\r\n// g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n//\r\n// canvas.repaint();\r\n// }\r\n// }\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"cir\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"cir\", cir_points, cir_colors);\r\n\r\n /* //recall circle points\r\n //1. store the last circle data\r\n //2. pop the last circle\r\n\r\n //for loop\r\n for (int i = 0; i < cir_colors.size(); i++) {\r\n System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = cir_points.get(begin_index);\r\n y1 = cir_points.get(begin_index + 1);\r\n x2 = cir_points.get(begin_index + 2);\r\n y2 = cir_points.get(begin_index + 3);\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n //last one\r\n if(i == (cir_colors.size()-1)){\r\n //store points and shape\r\n popped_points.add(x1);\r\n popped_points.add(y1);\r\n popped_points.add(x2);\r\n popped_points.add(y2);\r\n\r\n popped_color = cir_colors.get(cir_colors.size()-1);\r\n\r\n popped_shape = \"cir\";\r\n System.out.println(popped_points+ \" is popped circle\");\r\n\r\n //popped the last circle\r\n System.out.println(progress_stack+\" is the previous stack\");\r\n progress_stack.remove(progress_stack.size()-1);\r\n System.out.println(progress_stack+\" is the current stack\");\r\n\r\n if(cir_colors.size() == 1){\r\n //last element in shape stack\r\n cir_points.clear();\r\n }\r\n else{\r\n //pop last 4 points from cir_points\r\n System.out.println(cir_points.size()+ \" is the previous circle points\");\r\n cir_points.remove(cir_points.size()-1);\r\n cir_points.remove(cir_points.size()-2);\r\n cir_points.remove(cir_points.size()-3);\r\n cir_points.remove(cir_points.size()-4);\r\n System.out.println(cir_points+ \" is the current cir_points\");\r\n }\r\n\r\n\r\n //pop the last color\r\n cir_colors.remove(cir_colors.size()-1);\r\n System.out.println(cir_colors+\" is current color stack\");\r\n\r\n\r\n }else{\r\n g.setColor(cir_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n\r\n }*/\r\n\r\n /* //recall cir points\r\n if(cir_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < cir_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = cir_points.get(begin_index);\r\n y1 = cir_points.get(begin_index + 1);\r\n x2 = cir_points.get(begin_index + 2);\r\n y2 = cir_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(cir_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"squ\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n regular_shape_undo_process(\"squ\", squ_points, squ_colors);\r\n /*//recall squ points\r\n if(squ_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < squ_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = squ_points.get(begin_index);\r\n y1 = squ_points.get(begin_index + 1);\r\n x2 = squ_points.get(begin_index + 2);\r\n y2 = squ_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(squ_colors.get(i));\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"ell\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"ell\", ell_points, ell_colors);\r\n\r\n /*//recall ellipse points\r\n if(ell_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < ell_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = ell_points.get(begin_index);\r\n y1 = ell_points.get(begin_index + 1);\r\n x2 = ell_points.get(begin_index + 2);\r\n y2 = ell_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(ell_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n\r\n canvas.repaint();\r\n }\r\n }\r\n*/\r\n\r\n }\r\n\r\n if(last_state.equals(\"str\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"str\", str_points, str_colors);\r\n\r\n /* //recall straight line points\r\n if(str_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < str_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = str_points.get(begin_index);\r\n y1 = str_points.get(begin_index + 1);\r\n x2 = str_points.get(begin_index + 2);\r\n y2 = str_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(str_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"poly\")){\r\n //repaint polygons except the last one\r\n //polygon repaint don't need to consider the last polygon\r\n //not good to use polygon color cuz it can be change whithin one polygon\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n if(separate_index.size()>1){\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n \r\n for (int j = 0; j < separate_index.size(); j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n\r\n\r\n //for the last one\r\n if(j == (separate_index.size()-1)){\r\n // store all points, color, shape\r\n int end_index = poly_points.size();\r\n popped_color = poly_colors.get(poly_colors.size()-1);\r\n popped_shape = \"poly\";\r\n\r\n popped_points.clear();\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n popped_points.add(poly_points.get(k));\r\n }\r\n\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n //popped the last one from color, points, progress stack\r\n System.out.println(poly_points + \" is the previous poly points stack\");\r\n for (int p = 0; p < (popped_points.size()+1); p++) {\r\n poly_points.remove(poly_points.size()-1);\r\n }\r\n System.out.println(poly_points+\" is the current stack\");\r\n\r\n for (int s = 0; s < popped_points.size()/2; s++) {\r\n progress_stack.remove(progress_stack.size()-1);\r\n poly_colors.remove(poly_colors.size()-1);\r\n }\r\n System.out.println(progress_stack+\" is current progress_stack\");\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n\r\n\r\n }else{\r\n //get polygon points arraylist\r\n int end_index = separate_index.get(j+1);\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n\r\n }\r\n }\r\n if(separate_index.size() == 1){\r\n // store the last color, points, shape\r\n //popped the last one from color, points, progress stack\r\n System.out.println(poly_points+\" is poly points stack\");\r\n popped_color = poly_colors.get(poly_colors.size()-1);\r\n popped_shape = \"poly\";\r\n poly_points.remove(0);\r\n popped_points.clear();\r\n for (int i = 0; i < poly_points.size(); i++) {\r\n popped_points.add(poly_points.get(i));\r\n }\r\n// int line_num = poly_points.size()-1;\r\n\r\n\r\n poly_colors.clear();\r\n\r\n for (int s = 0; s < poly_points.size()/2; s++) {\r\n progress_stack.remove(progress_stack.size()-1);\r\n }\r\n System.out.println(progress_stack+\" after polygon pop\");\r\n poly_points.clear();\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n\r\n\r\n }\r\n\r\n //repaint other shapes\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index_hand = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index_hand.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index_hand.get(j)+1;\r\n int end_index = separate_index_hand.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"handdraw\")){\r\n //repaint shapes except the last one\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n if(handdraw_colors.size() == 1){\r\n // store color points shape\r\n int begin_index = 0;\r\n int end_index = separate_index.get(0);\r\n\r\n popped_color = handdraw_colors.get(0);\r\n popped_shape = \"handdraw\";\r\n\r\n popped_points.clear();\r\n for (int p = begin_index; p < end_index; p++) {\r\n popped_points.add(handdraw_points.get(p));\r\n }\r\n\r\n //pop those data\r\n handdraw_colors.clear();\r\n progress_stack.remove(progress_stack.size()-1);\r\n handdraw_points.clear();\r\n\r\n }\r\n if(handdraw_colors.size() > 1){\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }\r\n if(i == handdraw_colors.size()-1){\r\n // the last freehand line\r\n //store shape color points\r\n int begin_index = separate_index.get(separate_index.size()-2)+1;\r\n int end_index = separate_index.get(separate_index.size()-1);\r\n\r\n popped_color = handdraw_colors.get(handdraw_colors.size()-1);\r\n popped_shape = \"handdraw\";\r\n\r\n popped_points.clear();\r\n for (int j = begin_index; j < end_index; j++) {\r\n popped_points.add(handdraw_points.get(j));\r\n }\r\n\r\n System.out.println(popped_points+\" popped freehand points\");\r\n\r\n //pop those data\r\n handdraw_colors.remove(handdraw_colors.size()-1);\r\n progress_stack.remove(progress_stack.size()-1);\r\n for (int p = 0; p < (popped_points.size()+1); p++) {\r\n handdraw_points.remove(handdraw_points.size()-1);\r\n }\r\n System.out.println(handdraw_points+\" after freehand pop\");\r\n\r\n\r\n }\r\n\r\n else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-2; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n\r\n //repaint other shapes\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n separate_index = get_separate_index(poly_points);\r\n points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"@Override\n\t\t\tpublic void onChanged(ListChangeListener.Change<? extends PR1Model.Shape> e) { \n\t\t\t\t\n\t\t\t\trepaint(); \n\t\t\t\treTable();\n\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void update(){\n getNextPosition();\n checkTileMapCollision();\n setPosition(xtemp, ytemp);\n animation.update();\n }",
"@Override\n public void onCurShapeIndexUpdate(BNRGCurShapeIndexUpdate arg0) {\n Log.d(BNRemoteConstants.MODULE_TAG, \"onCurShapeIndexUpdate...... \");\n }",
"public void apply() {\n\n if( this.vgcomponent instanceof VisualVertex ) {\n String selectedShape = (String) this.shapeList.getSelectedItem();\n Rectangle2D bounds = this.vgcomponent.getGeneralPath().getBounds2D();\n\n if( selectedShape.equals( \"Rectangle\")) {\n Rectangle2D rect = new Rectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"RoundedRectangle\")) {\n RoundRectangle2D rect = new RoundRectangle2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight(),\n 10, 10 );\n this.vgcomponent.setGeneralPath( rect.getPathIterator( null ) );\n }\n else if( selectedShape.equals( \"Ellipse\")) {\n Ellipse2D ellipse = new Ellipse2D.Double(\n bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());\n this.vgcomponent.setGeneralPath( ellipse.getPathIterator( null ) );\n }\n }\n\n this.vgcomponent.setFillcolor( this.fillColor.getColor() );\n this.vgcomponent.setOutlinecolor( this.outlineColorButton.getColor() );\n\n this.pathPanelList.setGeneralPath( this.vgcomponent.getGeneralPath() );\n this.pathPanelList.setOutlineColor( this.vgcomponent.getOutlinecolor() );\n }",
"private void updateKeyframes() {\n keyframes.clear();\n ArrayList<IMotion> motions = new ArrayList<>(shape.getMotions());\n\n if (motions.size() > 0) {\n IMotion start = motions.get(0);\n keyframes.add(start.getIntermediateState(start.getStartTime()));\n }\n\n for (IMotion motion : motions) {\n IState keyframe = motion.getIntermediateState(motion.getEndTime());\n\n if (!keyframes.contains(keyframe)) {\n keyframes.add(keyframe);\n }\n }\n }",
"protected abstract void setShapes();",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"public void setTime(int aTime)\n{\n // Get shape timeline and set time (if non-null)\n RMTimeline timeline = getTimeline();\n if(timeline!=null) {\n undoerDisable();\n timeline.setTime(aTime);\n undoerEnable();\n }\n \n // If children have same animator as this shape, recurse setTime to children\n if(getAnimator()==getChildAnimator())\n for(int i=0, iMax=getChildCount(); i<iMax; i++)\n getChild(i).setTime(aTime);\n}",
"private void update() {\n if (_dirty) {\n _fmin = _clips.getClipMin();\n _fmax = _clips.getClipMax();\n _fscale = 256.0f/(_fmax-_fmin);\n _flower = _fmin;\n _fupper = _flower+255.5f/_fscale;\n _dirty = false;\n }\n }",
"@Override\n\tpublic void getShape() {\n\n\t}",
"@Override\n public void setAnim(int nextIn, int nextOut, int quitIn, int quitOut) {\n if (manager != null) {\n manager.setAnim(nextIn, nextOut, quitIn, quitOut);\n }\n }",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"@Override \n\tpublic void update(Graphics g) \n\t{\n\t\tpaint(g); \n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}",
"public void onAnimationUpdate(float fraction, T value);",
"@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentTime = t;\n\n\t\t// Fetch current animation\n\t\tBaseAnimation animation = AnimationManager.getInstance().getCurrentAnimation();\n\t\tif (animation == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Draw animation frame with delta time\n\t\tanimation.draw(dt);\n\n\t\t// Send image to driver\n\t\tdriver.displayImage(animation.getImage());\n\n\t\t// Display previews\n\t\tbackground(0);\n\t\tif (ledPreviewEnabled) {\n\t\t\timage(preview.renderPreview(animation.getImage()), 0, 0);\n\t\t} else {\n\t\t\ttextAlign(CENTER);\n\t\t\ttextSize(16);\n\t\t\ttext(\"Press W to preview the animation.\", previewRect.width/2, previewRect.height/2);\n\t\t}\n\t\t\n\t\tif (sourcePreviewEnabled && BaseCanvasAnimation.class.isAssignableFrom(animation.getClass())) {\n\t\t\timage(((BaseCanvasAnimation) animation).getCanvasImage(), 0, 0);\n\t\t} else if (sourcePreviewEnabled) {\n\n\t\t\t// Copy animation image (else the animation image gets resized)\n\t\t\t// and scale it for better visibility\n\t\t\tPImage sourcePreview = animation.getImage().get();\n\t\t\tsourcePreview.resize(130, 405);\n\n\t\t\timage(sourcePreview, 0, 0);\n\t\t}\n\n\t}",
"void onAnimationStart();",
"@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}",
"public void redraw()\r\n\t{\r\n\t\tif (needsCompleteRedraw)\r\n\t\t{\r\n\t\t\tcompleteRedraw();\r\n\t\t\tneedsCompleteRedraw = false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpartialRedraw();\r\n\t\t}\r\n\t}",
"void updateInterpretationBoards(){\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()){\r\n TShape theShape=(TShape) iter.next();\r\n if (theShape.fTypeID==TShape.IDInterpretationBoard){\r\n theShape.setSelected(false);\r\n // ((TInterpretationBoard)theShape).updateInterpretationBoard();\r\n }\r\n }\r\n }\r\n\r\n\r\n }",
"public void setStroke(RMStroke aStroke)\n{\n if(RMUtils.equals(getStroke(), aStroke)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_stroke!=null) _stroke.removePropertyChangeListener(this);\n firePropertyChange(\"Stroke\", _stroke, _stroke = aStroke, -1); // Set value and fire PropertyChange\n if(_stroke!=null) _stroke.addPropertyChangeListener(this); // Set shape\n}",
"void startAnimation();",
"@Override\n\tpublic void update(Observable obs, Object arg) {\n\t\tif (!mmc.getModel().isStart()) {\n\t\t\tprintBackground();\n\t\t\terrorMessage.setText(mmc.getModel().getErrorMessage());\n\t\t}\n\t\tfor (Star s : mmc.getModel().getStars()) {\n\t\t\tgc.setFill(s.getColor());\n\t\t\tgc.setGlobalAlpha(s.getOpacity());\n\t\t\tdouble sx;\n\t\t\tdouble sy;\n\n\t\t\tsx = map((s.getPosition().getX() / s.getZ()), 0, 1, s.getOstartx(), s.getOstopx());\n\t\t\tsy = map((s.getPosition().getY() / s.getZ()), 0, 1, s.getOstarty(), s.getOstopy());\n\n\t\t\tgc.fillOval(sx, sy, s.getRayon(), s.getRayon());\n\t\t\tgc.setGlobalAlpha(1);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}"
] |
[
"0.7030424",
"0.6726252",
"0.67087835",
"0.6657886",
"0.6442613",
"0.64001477",
"0.63509446",
"0.63212293",
"0.62859434",
"0.6277479",
"0.6254243",
"0.62539",
"0.62339914",
"0.6230396",
"0.62117004",
"0.6195011",
"0.6139627",
"0.6131241",
"0.61282223",
"0.61260295",
"0.6108951",
"0.61070526",
"0.6100102",
"0.60963744",
"0.60854244",
"0.60744023",
"0.60260177",
"0.6022803",
"0.600852",
"0.60078466",
"0.6007508",
"0.60035545",
"0.59973955",
"0.5994138",
"0.5981131",
"0.5969227",
"0.59603727",
"0.5955547",
"0.5950863",
"0.59426916",
"0.59426916",
"0.59426916",
"0.59426916",
"0.5936459",
"0.5934285",
"0.59191734",
"0.5913087",
"0.59068096",
"0.589508",
"0.5890366",
"0.587992",
"0.586948",
"0.58618915",
"0.58611244",
"0.5857033",
"0.5854738",
"0.58492905",
"0.584138",
"0.58351564",
"0.5834461",
"0.5833715",
"0.582903",
"0.58191377",
"0.58155185",
"0.5813257",
"0.5812893",
"0.5809724",
"0.58067924",
"0.5803766",
"0.5789892",
"0.5788937",
"0.57880783",
"0.57824904",
"0.5780825",
"0.577957",
"0.5775212",
"0.577425",
"0.5773248",
"0.5771292",
"0.5770596",
"0.5769232",
"0.57685995",
"0.57656133",
"0.5764099",
"0.57462263",
"0.574552",
"0.57443583",
"0.573974",
"0.573974",
"0.5739449",
"0.5738144",
"0.5730342",
"0.572823",
"0.57222617",
"0.5721534",
"0.5718788",
"0.5717518",
"0.5717401",
"0.5716764",
"0.5715486"
] |
0.70701253
|
0
|
Adds a record to the timeline.
|
private void addTimelineEntry(String aKey, Object aValue, Object anOldValue)
{
// Just return if values equal
if(RMUtils.equals(aValue, anOldValue)) return;
// Get animator and current time
RMAnimator animator = getAnimator();
int time = animator.getTime();
int oldTime = animator.getScopeTime();
// Get timeline (just return if no timeline or time zero and no key/values for this property)
RMTimeline timeline = getTimeline(time!=0);
if(timeline!=null)
timeline.addKeyFrameKeyValue(this, aKey, aValue, time, anOldValue, oldTime);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addRecord();",
"void addRecord(HistoryRecord record) throws IOException;",
"void addItem(DataRecord record);",
"public void addRecord(ListGridRecord record) {\r\n\t\tthis.addData(record);\r\n\t}",
"public void addRecord(Record record) {\n if (records.add(record)) {\n // if record has been added, then changing balance\n if (record.getType() == RecordType.WITHDRAW)\n balance -= record.getAmount();\n else if (record.getType() == RecordType.DEPOSIT)\n balance += record.getAmount();\n }\n }",
"@Override\n\tpublic void addRecords(Records record) {\n\t\trecordsDAO.addRecords(record);\n\n\t}",
"void addRecord(DistRecord record, boolean persistPoints);",
"public void insertRecord(Record record) {\n record.setIrecordTime(new Date());\n lanRenMapper.insertRecord(record);\n }",
"public void addRecord(LogRecord entry)\n\t{\n\t\tint newIndex = m_records.size();\n\t\tm_records.add(entry);\n\t\tfireTableRowsInserted(newIndex, newIndex);\n\t}",
"public RecordObject addEvent(String token, Object record) throws RestResponseException;",
"public void addNewRecord(TrajectoryTableRow newrecord){\r\n\t\tthis.data.add(newrecord);\r\n\t}",
"@PostMapping(path=\"/addRecord\")\n public ResponseEntity<Record> addRecord(@RequestBody Record record) {\n return ResponseEntity.ok().body(this.recordService.addRecord(record));\n }",
"public void addData(AggregateRecord record) {\n this.data.add(record);\n }",
"@SuppressWarnings(\"unchecked\")\n public final void addRecord(final Record record) {\n // TODO check if attributes present in report are also\n // present in record.\n // record.;\n// for (int i = 0; i < attributes.length; i++) {\n// if (!record.getAttributesString().contains(attributes[i])) {\n // launch new query to update list of attributes.\n// }\n// }\n records.add(record);\n }",
"public void add(BindRecord record) {\n map.put(record.getPeptide(), record);\n }",
"@RequiresApi(api = Build.VERSION_CODES.N)\n public long AddRecord(SHUBORecord EventRecord) {\n return model.AddRecord(EventRecord);\n }",
"@Override\r\n\tpublic int insert(CardTime record) {\n\t\treturn cardTimeMapper.insert(record);\r\n\t}",
"public static void addRecord() {\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter name: \");\r\n\t\tString name = in.nextLine();\r\n\t\tSystem.out.println(\"Enter number: \");\r\n\t\tString number = in.nextLine();\r\n\t\ttd.addRecord(name,number);\r\n\t\t\r\n\t\tSystem.out.println(\"Added record for \" + name + \" along with their number \" + number);\r\n\t}",
"public boolean add(OpenERPRecord record) {\r\n\t\tif (record != null) {\r\n\t\t\treturn records.add(record);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void startRecord(Leader leader) {\n this.record = new Record();\n record.add(leader);\n }",
"@Override\n\tpublic int addMediaRecord(MediaRecord record) {\n\t\treturn mediaRecordMapper.insertSelective(record);\n\t}",
"@Override\n\tpublic int insert(Resume record) {\n\t\treturn resumeMapper.insert(record);\n\t}",
"public synchronized void addShowRecord(String playerName, ArrayList<Reward> rewards) {\n/* 48 */ this.component.addShowRecord(playerName, rewards);\n/* */ }",
"public void addRecord(Object... args) throws Exception {\n\n //Initialize records array\n updateRecords();\n\n\n //Create new record\n Record record;\n if (args[0] instanceof Record){\n record = (Record) args[0];\n }\n else{\n Field[] fields = new Field[args.length];\n for (int i=0; i<fields.length; i++){\n String name = null;\n Object value = args[i];\n fields[i] = new Field(name, value);\n }\n record = new Record(fields);\n }\n\n\n //Add record to the records array and increment number of shapes\n records.add(record);\n numShapes++;\n }",
"public void addName(NameRecord record)\n\t{\n\t\t// add code to add record to the graphArray \n\t\t// and call repaint() to update the graph\n\t}",
"public void addRecord(final AbstractRecord record) {\n\t\tif (record == null) {\n\t\t\tthrow new IllegalArgumentException(\"Passed record is null!\");\n\t\t} else if (!recordType.equals(record.getClass())) {\n\t\t\tthrow new IllegalArgumentException(\"Passed Record type \" + record.getClass().getName()\n\t\t\t\t\t+ \" is not compatibel with the wrapper record type \" + recordType.getName());\n\t\t}\n\n\t\tif (records.isEmpty()) {\n\n\t\t\tList<String> parNames = record.getNonMetricParameterNames();\n\t\t\tList<Object> parValues = record.getNonMetricValues();\n\t\t\tfor (int i = 0; i < parNames.size(); i++) {\n\t\t\t\taddInputParameter(parNames.get(i), parValues.get(i));\n\t\t\t}\n\n\t\t}\n\n\t\trecords.add(record);\n\t}",
"public void addRecord(String lat1, String lon1, String alt1, String day18991, String date1, String time1) {\n lat.add(PApplet.parseFloat(lat1));\n lon.add(PApplet.parseFloat(lon1));\n alt.add(PApplet.parseFloat(alt1));\n day1899.add(PApplet.parseFloat(day18991));\n date.add(date1);\n time.add(time1);\n record++;\n }",
"private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}",
"public void addRecord(Record record, String clientName, String assessmentYear, String taxType, String paymentDate, String paymentAmount) {\n\n String add = \"INSERT INTO \" + TABLE_RECORDS + \" VALUES\" + \"(\\\"\" + clientName + \"\\\",\\\"\" + assessmentYear + \"\\\"\" + \",\\\"\" + taxType + \"\\\"\" + \",\\\"\" +\n paymentDate + \"\\\"\" + \",\\\"\" + paymentAmount + \"\\\")\";\n records.add(record);\n\n try {\n statement = connection.prepareStatement(add);\n statement.executeUpdate();\n logFile.modifyLogFile(\"New record added successfully in database\"); //writing insert statement into log file\n } catch (SQLException e) {\n logFile.modifyLogFile(\"Error adding new record in database : \" + e.getMessage());\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic int insert(KfExaminememo record) {\n\t\treturn mapper.insert(record);\r\n\t}",
"void addPlayRecord(User user, String video_id);",
"@Override\r\n\tpublic int insert(Movie record) {\n\t\treturn this.movieMapper.insert(record);\r\n\t}",
"void add(CallRecordAddReqDto req);",
"protected void setAddRecord() {\n\t\tbackIV.setVisibility(View.GONE);\r\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (addRecordFrag == null) {\r\n\t\t\tfTransaction.add(R.id.content, new AddRecordFrag(),\r\n\t\t\t\t\tAddRecordFrag.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(addRecordFrag);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.add_record);\r\n\t}",
"void saveActivityHistForAddEntity(Record inputRecord);",
"public void insert(RAlarmLog record) {\r\n getSqlMapClientTemplate().insert(\"R_ALARM_LOG.ibatorgenerated_insert\", record);\r\n }",
"public void addValidRecord() {\r\n recordCount++;\r\n }",
"public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}",
"@Override\n public void handleEventRecord(EventRecord record) {\n if(record.isTimepoint()){\n locationToLocationEventInfoMap.put(record.getLocation(), new LocationEventInfo(record,\"GOOD, ST\"));\n }\n if ((record.isRevenue() | ! record.isRevenue())& record.isTimepoint()){\n TimePoint timePoint = new TimePoint(\n previousTripRecord.getGtfsTripId(),\n record.getBoxId(),\n boxIdToTimepointMap.get(record.getBoxId()),\n record.getRawDistanceFromStartOfTrip());\n timePoints.add(timePoint);\n }\n }",
"int insert(EventsWaitsSummaryByInstance record);",
"public void insertHistory(RecordDTO recordDTO);",
"void insert(VRpHrFeedback record);",
"public int addRecord (DatabaseRecord r) //add a record to the end of the array\r\n\t{\r\n\t\tdataRecord[length] = r;\t\t//add new record to the next available position in the array;\r\n\t\tlength++;\t\t\t\t\t//update length, which holds the amount of positions filled\r\n\t\treturn (length - 1);\t\t//returns location where 'r' was added\r\n\t}",
"protected void addRecordWithoutChecks(final AbstractRecord record) {\n\t\trecords.add(record);\n\t}",
"@Override\n\tpublic synchronized boolean add(TracesMessage obj) {\n\t\tTracesMessage log = obj;\n\t\tlong ts =log.getTime();\n\t\tif (ts < startTime || startTime < 0)\n\t\t\tstartTime = ts;\n\t\treturn super.add(obj);\n\t}",
"public void create(Singer newRecord);",
"public RecordObject addGroup(String token, Object record) throws RestResponseException;",
"int insert(BehaveLog record);",
"@Override\n\tpublic Integer add(SocialInsuranceRecord insuranceRecord) {\n\t\treturn dao.insert(insuranceRecord);\n\t}",
"int insert(SchedulingPlay record);",
"public void record(){\n\t}",
"public int append(IDataTableRecord record)\n\t{\n\t return add(recordCount(),record);\n\t}",
"int insert(SBCallAlarm record);",
"public void addRecord(String customerID, String roomID, DateTime rentDate, \r\n\t\t\tDateTime estimatedReturnDate) {\r\n\t\t\r\n\t\tRecord record = new Record(customerID, roomID, rentDate, estimatedReturnDate);\r\n\t\t\r\n\t\t// if the size of record exceed 10, then remove the oldest record and add a new one\r\n\t\tif (records.size() < MAXOFRECORD) {\r\n\t\t\trecords.add(record);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\trecords.remove(OLDESTRECORD);\r\n\t\t\trecords.add(record);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"Long insert(EventDetail record);",
"public void insertRecord(Object key, Object record ) \n\t{ \n\t check(\"insert\", key, record);\n\t if ( htRecords.get(key) == null )\n\t {\n\t\t //--- Store a copy of the given key+record\n\t\t Object key2 = copy ( key ); // Is it realy useful for the key ?\n\t\t Object record2 = copy ( record );\n\t\t \n\t\t htRecords.put(key2, record2);\n\t }\n\t else\n\t {\n\t throw new RuntimeException(\"Cannot insert record (\" + recordClass + \") : duplicate key\");\n\t }\n\t}",
"int insert(Storydetail record);",
"public void addMatch(Match match) {\n\t\tmatch.setCreateDate(new Date());\r\n\t\tmatchDao.add(match);\r\n\t}",
"public void addRecord(Character key, String record){\n\t\trecList = map.get(key);\n\t\trecList.add(record);\n\t\tmap.put(key, recList);\n\t\tif(record.charAt(0) == 'D')\n\t\t\tdIDtoName.put(record.split(\",\")[0], record.split(\",\")[2].charAt(0));\n\t\telse if(record.charAt(0) == 'N')\n\t\t\tnIDtoName.put(record.split(\",\")[0], record.split(\",\")[2].charAt(0));\n\t\tSystem.out.println(\"Record has been created. The record is: \");\n\t\tSystem.out.println(record);\n\t}",
"@Override\n\tpublic int insert(Contract record) {\n\t\treturn contractMapper.insert(record);\n\t}",
"void insert(VRpDyLocationBh record);",
"void insert(TResearchTeach record);",
"@Override\n\tpublic int insert(WdReceiveCard record) {\n\t\treturn wdReceiveCardMapper.insert(record);\n\t}",
"int insert(FinMonthlySnapModel record);",
"void addRecord(String[] propertyValues, Date timestamp) throws IOException;",
"Builder addRecordedAt(String value);",
"Builder addRecordedAt(Event value);",
"int insert(EcsFavourableActivity record);",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord addNewTaskmonitorrecord();",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord addNewTaskmonitorrecord();",
"int insert(CmsActivity record);",
"int insert(DebtsRecordEntity record);",
"void insert(HrMscChaAssig record);",
"public boolean insert(StudentRecord record) {\r\n\t\tif (size < maxSize) {\r\n\t\t\tsize++;\r\n\t\t\tlist[size - 1] = record;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void addMedicalHistory(MedicalHistory medicalHistory){}",
"int insert(trackcomment record);",
"public void addRecord(String name, Genre genre) {\n cataloue.add(new Record(name, genre));\n }",
"int insert(PineAlarm record);",
"public void add(Speaker speaker) {\n\t\tdao.add(speaker);\r\n\t}",
"int insert(RecordLike record);",
"int insert(PointsExchangeRecord record);",
"public void addSubcontractorRecord(String[] record) { \n \tthis.records.add(record);\n }",
"int insert(MemberAdvisoryComment record);",
"public void setRecord(Record record) {\n this.record = record;\n }",
"@Override\n\tpublic void addRec() {\n\t\t\n\t}",
"public String addPlayerRecord(PlayerRecord playerRecord){\n String str = \"Player record has been saved\";\n Collections.sort(this.topPlayers);\n if (topPlayers.size() < MAX_LIST_SIZE)\n topPlayers.add(playerRecord);\n else{\n if(topPlayers.get(MAX_LIST_SIZE-1).getScore() < playerRecord.getScore()){\n topPlayers.remove(MAX_LIST_SIZE-1);\n topPlayers.add(playerRecord);\n }\n else\n str = \"Player's score is too low to be added\";\n }\n Collections.sort(this.topPlayers);\n return str;\n }",
"int insert(QtActivitytype record);",
"public void record(Event evt) {\n record0(evt);\n }",
"int insert(InternalTradeEpa022016 record);",
"public void adds(Speaker speaker) {\n\t\tdao.adds(speaker);\r\n\t}",
"void insert(TbMessage record);",
"@Override\r\n\tpublic int insert(FarmerCredit record) {\n\t\treturn farmerCreditDao.insert(record);\r\n\t}",
"public void addRecordingDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), RECORDINGDATE, value);\r\n\t}",
"@Override\n\tpublic int insert(TfLoss record) {\n\t\tif(record.getLossId()==null || record.getLossId().equals(\"\")){\n\t\t\trecord.setLossId(UUID.randomUUID().toString());\n\t\t}\n\t\treturn tfLossMapper.insert(record);\n\t}",
"public void addEntry() {\n\t\tSystem.out.print(\"Name: \");\n\t\tString entryName = getInputForName();\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\t\n\t\tp = new PhoneEntry(entryName, entryNumber);\n\t\t\n\t\ttry {\n\t\t\tphoneList.add(p);\n\t\t\twriteFile();\n\t\t\t\n\t\t\tSystem.out.println(\"Entry \" + p.getName() + \" has been added.\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(\"Could not write item into array.\");\n\t\t}\n\t}",
"int insert(ActivityHongbaoPrize record);",
"@Override\n\tpublic void insertRecordWithTimeRange(LiveInfoEntity liveInfo, long starttime, long endtime) {\n\n\t}",
"public MedicalRecord addMedicalRecord(MedicalRecord medicalRecord) {\n\n if (!medicalRecord.getFirstName().isBlank() && !medicalRecord.getLastName().isBlank()){\n medicalRecordList.add(medicalRecord);\n log.info(\"Medical record successfully added\");\n return medicalRecord;\n }\n log.error(\"Failed to add the medical record\");\n return null;\n }",
"@Override\n\tpublic int insert(RcuSettime record) {\n\t\treturn rcuSettimeMapper.insert(record);\n\t}",
"@Override\n\tpublic int insert(Staff record) {\n\t\treturn staffMapper.insert(record);\n\t}",
"int insert(TParklotstatusFile record);"
] |
[
"0.76695013",
"0.7389334",
"0.702924",
"0.69980526",
"0.6962304",
"0.69089115",
"0.6882813",
"0.6787635",
"0.678738",
"0.6776597",
"0.66529965",
"0.6540194",
"0.6524755",
"0.6514694",
"0.64984053",
"0.6468215",
"0.6338515",
"0.6333081",
"0.63270646",
"0.6312794",
"0.6218382",
"0.61302954",
"0.61030537",
"0.60808957",
"0.606344",
"0.604013",
"0.60078245",
"0.5973283",
"0.59698975",
"0.5939723",
"0.59355974",
"0.59319836",
"0.5909275",
"0.58090955",
"0.5807323",
"0.5804511",
"0.5776174",
"0.5774467",
"0.575008",
"0.5743185",
"0.5742854",
"0.57284826",
"0.5723803",
"0.5698103",
"0.56900686",
"0.5673204",
"0.5667195",
"0.56650615",
"0.5664534",
"0.56504637",
"0.5648269",
"0.5643446",
"0.56354535",
"0.5611308",
"0.5609845",
"0.5600668",
"0.56002057",
"0.5597944",
"0.5597397",
"0.55818594",
"0.55742824",
"0.5567508",
"0.5564512",
"0.5556796",
"0.5556531",
"0.5543355",
"0.5542577",
"0.5540627",
"0.55344284",
"0.55344284",
"0.5526384",
"0.552603",
"0.5515971",
"0.55151737",
"0.5510847",
"0.55051374",
"0.5490456",
"0.5485206",
"0.54824007",
"0.5481987",
"0.5468695",
"0.5467601",
"0.54587674",
"0.54562366",
"0.54369164",
"0.54357654",
"0.5431755",
"0.54181254",
"0.5409344",
"0.54045165",
"0.5396844",
"0.53936815",
"0.5390842",
"0.53902906",
"0.5383338",
"0.5379339",
"0.53790486",
"0.53785765",
"0.53780675",
"0.53767985",
"0.53755474"
] |
0.0
|
-1
|
Returns whether given property name is anim property.
|
public boolean isAnimProperty(String aPropertyName)
{
// Declare anim properties
String animProps[] = { "X", "Y", "Width", "Height", "Roll", "ScaleX", "ScaleY", "SkewX", "SkewY", "Opacity",
"Radius", // Bogus - for RMRectangle
"StartAngle", "SweepAngle", // Bogus - for RMOval
"Depth", "Yaw", "Pitch", "Roll3D", "FocalLenth", "OffsetZ", // for RMScene3D
"Playing", // Bogus - for RMSound
"Morphing", // Bogus - for RMMorphShape
"Distance", "PreservesOrientation" // Bogus - for RMAnimPath
};
// Return true if is anim property
return RMArrayUtils.contains(animProps, aPropertyName);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isAnimatableProperty() {\n\t\treturn false;\n\t}",
"public boolean isSetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWANIMATION$20) != null;\n }\n }",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"public boolean isAnimating(Animation animation) {\n return animation != null && animation.hasStarted() && !animation.hasEnded();\n }",
"public boolean isAnimated()\n {\n return animator.isAnimating();\n }",
"boolean hasPropertyLike(String name);",
"boolean hasProperty(String propertyName);",
"public boolean getShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWANIMATION$20);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public boolean isAnimating() {\n\t\treturn animationTimer.isRunning();\n\t}",
"public boolean isAnimate() {\n return animate;\n }",
"public boolean isAnimating() {\n\t\treturn mAnimating;\n\t}",
"public boolean isProperty();",
"boolean containsProperty(String name);",
"public boolean isAnimated()\n {\n return _animated;\n }",
"public boolean hasProperty( final String name )\n {\n return getPropertyClass( name ) != null;\n }",
"public boolean hasProperty(String name) {\n return properties.has(name);\n }",
"private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }",
"public boolean isAnimating() {\n return (mState != 0);\n }",
"public boolean isEnableAnimation() {\n return enableAnimation;\n }",
"public abstract boolean getProperty(String propertyName);",
"public boolean hasProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return true;\n }\n return false;\n }",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasGetProperty();",
"public boolean getAnimated() {\r\n return animated.get();\r\n }",
"@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }",
"public boolean propertyExists(String name)\n {\n return _propertyEntries.containsKey(name);\n }",
"public boolean existsProperty(String name)\r\n\t{\r\n\t\treturn obtainOntProperty(name) != null;\r\n\t}",
"@SuppressWarnings(\"rawtypes\")\n public static boolean isPropName(String varName) {\n if (varName == null)\n return false;\n varName = varName.toUpperCase().trim();\n for (Class<? extends Enum> c : CMProps.PROP_CLASSES) {\n if (CMath.s_valueOf(c, varName) != null)\n return true;\n }\n return false;\n }",
"@Override\n public boolean isPropertySupported(String name) {\n // !!! TBI: not all these properties are really supported\n return mConfig.isPropertySupported(name);\n }",
"boolean hasSetProperty();",
"public native boolean isAnimatedImage() throws MagickException;",
"boolean animationEquals(Animation animation) {\n return (animation == currAnimation);\n }",
"@Override\n public boolean hasModifierProperty(@PsiModifier.ModifierConstant @NonNull String s) {\n return hasExplicitModifier(s);\n }",
"abstract boolean hasXMLProperty(XMLName name);",
"protected boolean isSupportedProperty(String propertyName, Namespace namespace) {\n if (!WebdavConstants.DAV_NAMESPACE.equals(namespace)) {\n return true;\n }\n \n return DAV_PROPERTIES.contains(propertyName);\n }",
"public org.apache.xmlbeans.XmlBoolean xgetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SHOWANIMATION$20);\n }\n return target;\n }\n }",
"public StringKey getAnimation() {\n return ModelBundle.SHIP_ANIMATIONS.get(name);\n }",
"private static boolean isPropertyEnabled(Dictionary<?, ?> properties,\n String propertyName) {\n boolean enabled = false;\n try {\n String flag = Tools.get(properties, propertyName);\n enabled = isNullOrEmpty(flag) ? enabled : flag.equals(\"true\");\n } catch (ClassCastException e) {\n // No propertyName defined.\n enabled = false;\n }\n return enabled;\n }",
"public boolean hasProperty( String key );",
"private boolean findProperty(String name,\n PropertyDescriptor[] propertyDescriptors) {\n for (int i = 0; i < propertyDescriptors.length; i++) {\n if (propertyDescriptors[i].getName().equals(name)) {\n return true;\n }\n }\n return false;\n }",
"boolean hasProperty(String key);",
"boolean hasDuration();",
"boolean propertyExists(Object name) throws JMSException;",
"default boolean shouldAnimate() {\n return true;\n }",
"public boolean animationExists(Class<? extends Animation> clazz) {\n for (Animation a : new ArrayList<>(animations)) {\n if (a.getClass().equals(clazz)) {\n return true;\n }\n }\n return false;\n }",
"public boolean hasSetting(String name) {\n\t\treturn hasIntegerSetting(name) || hasStringSetting(name)\n\t\t\t\t|| hasTextureSetting(name) || hasFloatSetting(name)\n\t\t\t\t|| hasBooleanSetting(name) || hasFloatArraySetting(name)\n\t\t\t\t|| hasIntArraySetting(name);\n\t}",
"public boolean isFinished(){\n return animation.isAnimationFinished(stateTime);\n }",
"public boolean mo29013c() {\n ValueAnimator valueAnimator = this.f19137e;\n return valueAnimator != null && valueAnimator.isStarted();\n }",
"public boolean isPlaying()\n {\n return (state == AnimationState.FORWARD\n || state == AnimationState.BACKWARD);\n }",
"boolean hasProperty0();",
"public boolean isAnimationDisplayable() {\r\n \t\treturn true;\r\n \t}",
"boolean hasProperty1();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIsModifier();",
"private boolean isName() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tupdateToken();\n\t\t\tif(isExpression())\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\tisValid = true;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"boolean isSetDuration();",
"boolean isSetDuration();",
"boolean isSetDuration();",
"@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }",
"public final boolean superHasPublicProperty(String name)\n {\n return getSuperClass().getProperty(name) != null;\n }",
"@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}",
"@Override\n synchronized public boolean animationHasChanged(Player animationReceiver)\n {\n if(!animation.equals(\"idle1\") && !animation.equals(\"walk\"))\n {\n return super.animationHasChanged(animationReceiver);\n }\n return false;\n }",
"public static boolean checkPropertyExists(String propertyName) {\n\t\treturn CatPawConfig.getConfig().containsKey(propertyName);\n\n\t}",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public boolean isTransition() {\n/* 4839 */ return this.isTransition;\n/* */ }",
"public boolean booleanValue(String name)\n\t{\n\t\tString p = _props.getProperty(name);\n\t\tif(p != null && p.length() > 0 \n\t\t\t\t&& (p.toLowerCase().charAt(0) == 'y'\n\t\t\t\t|| p.toLowerCase().charAt(0) == 't'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public @Bool boolean isLocked()\r\n\t\tthrows PropertyNotPresentException;",
"public boolean hasAttribute(String name) {\n // if attribute() returns a value, then this jode has that attribute\n return attribute(name, true) != null;\n }",
"public synchronized boolean hasListeners(java.lang.String propertyName) {\r\n\treturn getPropertyChange().hasListeners(propertyName);\r\n}",
"boolean hasProperty2();",
"public boolean isProjectile(){\n\t\treturn (getSpeed() != -1);\t\t\n\t}",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"default Animator getInAnimation() {\n return null;\n }",
"public void _hasPropertyByName() {\n requiredMethod(\"getProperties()\");\n tRes.tested(\"hasPropertyByName()\",\n (\n (oObj.hasPropertyByName(IsThere.Name)) &&\n (!oObj.hasPropertyByName(\"Jupp\")) )\n );\n }",
"public boolean is (String name) {\n \t/* Avoid roundoff issues */\n return Math.abs(this.lookup(name)) < 0.0000001;\n }",
"boolean hasAttribute(String name);",
"public boolean hasProperty(Pp property) {\n return properties.contains(property);\n }"
] |
[
"0.65405756",
"0.6362656",
"0.6305927",
"0.6268141",
"0.62431747",
"0.6242089",
"0.6219969",
"0.62131935",
"0.62065977",
"0.61416835",
"0.614114",
"0.6105751",
"0.60599554",
"0.60491395",
"0.600289",
"0.59867465",
"0.5971283",
"0.58789337",
"0.581378",
"0.57980376",
"0.5764444",
"0.5759693",
"0.5759693",
"0.5759693",
"0.5751935",
"0.57210535",
"0.56512934",
"0.56119025",
"0.5600379",
"0.5562219",
"0.5553739",
"0.54382163",
"0.5431266",
"0.54003793",
"0.5382649",
"0.5355689",
"0.5347255",
"0.5315353",
"0.529606",
"0.5292191",
"0.52851814",
"0.5284123",
"0.52561015",
"0.5238398",
"0.52370316",
"0.5220419",
"0.5214138",
"0.5180689",
"0.51695246",
"0.5137103",
"0.51225674",
"0.5102115",
"0.50902075",
"0.50786984",
"0.50719833",
"0.5070729",
"0.5068522",
"0.5068522",
"0.5068522",
"0.50453866",
"0.5027898",
"0.5026296",
"0.5018491",
"0.50135595",
"0.5011806",
"0.49986967",
"0.49809235",
"0.49796864",
"0.49782017",
"0.49735022",
"0.4969487",
"0.49694544",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961801",
"0.4961491",
"0.49574998",
"0.49530095",
"0.4952735",
"0.4947148"
] |
0.8203852
|
0
|
Standard to string implementation (prints class name and shape bounds).
|
public String toString()
{
StringBuffer sb = new StringBuffer(getClass().getSimpleName()).append(' ');
if(getName()!=null) sb.append(getName()).append(' ');
sb.append(getFrame().toString());
return sb.toString();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toString() is called everytime printing is done\n }",
"public String toStringShort() {\n\treturn AbstractFormatter.shape(this);\n}",
"public String toString(){\n return \"Neo[\"+getName()+\"]: CRS:\"+getCRS()+\" Bounds:\"+getBounds();\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public String toString() {\n\t\t\treturn shape;\n\t\t}",
"@Override\n public String toString()\n {\n return getClass().getSimpleName() + \": \"\n + \"bounds=\" + bounds + \", isVisible=\" + visible\n + \", color=\" + color;\n }",
"public String toCodedString() {\n\t\t//System.out.println(toString());\n\t\treturn String.format(\"%s%s\", getColor().toInt(), getShape().toString());\n\t}",
"public String toString()\n {\n String str = \"\";\n switch (align)\n {\n case LEFT :\n str = \",align=left\";\n break;\n case CENTER :\n str = \",align=center\";\n break;\n case RIGHT :\n str = \",align=right\";\n break;\n }\n return getClass().getName() + \"[hgap=\" + hgap + \",vgap=\" + vgap + str + \"]\";\n }",
"public String toString() {\r\n return \"Shape: \" + this.getClass().getName() +\r\n \"\\t radius: \" + radius;\r\n }",
"public String toString() {\n\t\treturn String.format(\"Shape: %s,Color: %s\", shape, color);\n\t}",
"public String toString() {\n String str = \"\";\n str += \"Shape: \" + name + \"\\n\";\n str += \"Center: \" + \"(\" + (xPosition+radius) + \",\" + (yPosition+radius) + \")\" + \"\\n\";\n str += \"Radius: \" + radius + \"\\n\";\n str += \"Color: \" + color + \"\\n\";\n str += \"Selected: \" + isSelected + \"\\n\";\n return str;\n }",
"public String toString()\n\t{\n\t\treturn getClass().getName() +\n\t\t\t\"[hgap=\" + hgap + \",vgap=\" + vgap + \"]\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn (\"rect(\" + corner.x + \", \" + corner.y + \", \" + size.x + \", \"\n\t\t\t\t+ size.y + \")\");\n\t}",
"public String toString(){\n return String.format(\n \"Width: %.2f\\nLength: %.2f\\nArea: %.2f\\nPerimeter: %.2f\\n\",\n getLength(), getWidth(), getArea(), getPerimeter());\n }",
"public String toString() {\r\n return name + \" \" + height + \" \" + width + \" \" + depth + \" \" + weight;\r\n }",
"public String toString() {\n\t\treturn type + \" x \" + dim;\n\t}",
"public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }",
"@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(this.width+\"\"+this.height+\"\"+getPerimeter()+\"\"+getArea());\n\t}",
"public String toString(){\n\t\treturn logicalClass.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s with p=%.2f, r=%.2f and f=%.2f\", this.getClass().getSimpleName(), this.p, this.r, this.f);\n\t}",
"@Override\n public String toString() \n\t{\n\t\t// This is just for the output format\n\t\tString sg = \"\";\n\t\tsg = sg + \"(\";\n\t\tsg = sg + x;\n\t\tsg = sg + \", \";\n\t\tsg = sg + y;\n\t\tsg = sg + \") \";\n\t\t\n\t\treturn sg;\n\n\t}",
"public String toString()\n {\n return \"The square's dimensions are \" + getLength() + \" X \" + getWidth();\n }",
"public String toString()\n\t{\n\t\treturn String.format(\"Square at x=%d, y=%d with sides %d\", anchor.x, anchor.y, oneside);\n\t}",
"public String toString() {\n return \"Name: \" + this.name + \"\\nType: Rectangle\" + \"\\nCenter: (\" + this.xPos + \",\"\n + this.yPos + \"), Width: \" + this.width + \", Height: \" + this.height + \", Color: (\"\n + this.color.getRed() + \",\" + this.color.getGreen() + \",\" + this.color.getBlue()\n + \")\\nAppears at t = \" + this.startTime + \"\\nDisappears at t = \" + this.endTime;\n }",
"public String toString() {\n // DecimalFormat class is used to format the output\n DecimalFormat df = new DecimalFormat(\".0\");\n return \"\\nCoordinates of Parallelogram are:\\n\"\n + super.toString()\n + \"\\nWidth is :\"\n + df.format(width)\n + \"\\nHeight is :\"\n + df.format(height)\n + \"\\nArea is :\"\n + df.format(area());\n }",
"@Override public String toString() {\n return String.format(\n \"Rectangle with bottom left corner at (%d, %d) and top \" +\n \"right corner at (%d, %d)\", this.x1, this.y1, this.x2, this.y2);\n }",
"@Override\n public String toString() {\n return position.toString()\n + rotation.toString()\n + scale.toString();\n }",
"public String toString(){\n\t\treturn \"(\" + width + \" , \" + height + \")\" ;\n\t}",
"public String toString() {\n\t\tString stringList = Arrays.toString(this.facets.toArray());\n\t\treturn \"solid \" + name + stringList.replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\") + \"\\nendsolid \" + name;\n\t}",
"private static String classArrayToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(getTypeName(pts[i]));\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }",
"public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"public String toString() {\n return\n getLatitude(\"\") + \"|\" +\n getLongitude(\"\") + \"|\" +\n getDepth(\"\") + \"|\" +\n getTemperatureMin(\"\") + \"|\" +\n getTemperatureMax(\"\") + \"|\" +\n getSalinityMin(\"\") + \"|\" +\n getSalinityMax(\"\") + \"|\" +\n getOxygenMin(\"\") + \"|\" +\n getOxygenMax(\"\") + \"|\" +\n getNitrateMin(\"\") + \"|\" +\n getNitrateMax(\"\") + \"|\" +\n getPhosphateMin(\"\") + \"|\" +\n getPhosphateMax(\"\") + \"|\" +\n getSilicateMin(\"\") + \"|\" +\n getSilicateMax(\"\") + \"|\" +\n getChlorophyllMin(\"\") + \"|\" +\n getChlorophyllMax(\"\") + \"|\";\n }",
"public String toString() {\n\n\t\treturn Utilities.cutHeadAtLast(this.getClass().getName(), '.');\n\t}",
"public String toString() {\n\t\tif (hierarchy.equals(\"n\")) {\n\t\t\treturn visability + \" class \" + className + \"{ \\n \";\n\t\t} else if (isFinished == true) {\n\n\t\t\treturn \"}\";\n\t\t} else {\n\t\t\treturn visability + \" \" + hierarchy + \" class \" + className\n\t\t\t\t\t+ \"{ \\n \";\n\t\t}\n\t}",
"public String toString() {\n\tString\tstrStyle;\n\n\tif (isBold()) {\n\t strStyle = isItalic() ? \"bolditalic\" : \"bold\";\n\t} else {\n\t strStyle = isItalic() ? \"italic\" : \"plain\";\n\t}\n\n\treturn getClass().getName() + \"[family=\" + getFamily() + \",name=\" + name + \",style=\" +\n\t strStyle + \",size=\" + size + \"]\";\n }",
"private static String actualParametersToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(\"p\").append(i);\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }",
"public String toString() {return classSimpleName+\"#\"+name;}",
"public String toString() {\r\n String modelString =\r\n \"value=\"\r\n + getValue()\r\n + \", \"\r\n + \"extent=\"\r\n + getExtent()\r\n + \", \"\r\n + \"min=\"\r\n + getMinimum()\r\n + \", \"\r\n + \"max=\"\r\n + getMaximum()\r\n + \", \"\r\n + \"adj=\"\r\n + getValueIsAdjusting();\r\n\r\n return getClass().getName() + \"[\" + modelString + \"]\";\r\n }",
"public String toString(){\n \tint longest = longestClassName;\n StringBuffer sb = new StringBuffer();\n PrintfFormat\tformat = null;\n \n if (attributeDefinitions.getLongestName() > longest)\n \tlongest = attributeDefinitions.getLongestName();\n \n String\tlongestStr = \"\" + longest;\n format = new PrintfFormat(\"%-\" + longestStr + \"s \");\n\n sb.append(\"*** Attributes\\n\");\n TreeMap<DefinitionName,AttributeDefinition> sattrs = new TreeMap<DefinitionName, AttributeDefinition>();\n \n for(AttributeDefinition ad: attributeDefinitions.values())\n \tsattrs.put(ad.getName(), ad);\n \n for(AttributeDefinition ad : sattrs.values())\n sb.append(format.sprintf(ad.getObjectName()) + ad.getDefinedIn().getName() + \"\\n\");\n \n sb.append(\"*** Classes\\n\");\n// TreeMap<DefinitionName,ClassDefinition> scdefs = new TreeMap<DefinitionName, ClassDefinition>();\n// \n// for(ClassDefinition cd : classDefs.values())\n// \tscdefs.put(cd.getName(), cd);\n// \n// for(ClassDefinition cd : scdefs.values()){\n// sb.append(format.sprintf(cd.getObjectName()));\n// if (cd.getAbbrev() != null)\n// sb.append(\" AB \" + cd.getAbbrev());\n// sb.append(cd.getDefinedIn().getName() + \"\\n\");\n// }\n \n for(ClassDefinition cd : classDefinitions.values()){\n sb.append(format.sprintf(cd.getObjectName()));\n if (cd.getAbbrev() != null)\n sb.append(\" AB \" + cd.getAbbrev());\n sb.append(cd.getDefinedIn().getName() + \"\\n\");\n }\n \n return(new String(sb.toString()));\n }",
"public String ToStringClass()\n\t{\n\t\tif (!_canonical)\n\t\t{\n\t\t\tCanonicalize();\n\t\t}\n\n\t\t// make a guess about the length of the ranges. We'll update this at the end. \n\t\t// This is important because if the last range ends in LastChar, we won't append\n\t\t// LastChar to the list. \n\t\tint rangeLen = _rangelist.size() * 2;\n\t\tStringBuilder sb = new StringBuilder(rangeLen + _categories.length() + 3);\n\n\t\tint flags;\n\t\tif (_negate)\n\t\t{\n\t\t\tflags = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tflags = 0;\n\t\t}\n\n\t\tsb.append((char) flags);\n\t\tsb.append((char) rangeLen);\n\t\tsb.append((char) _categories.length());\n\n\t\tfor (int i = 0; i < _rangelist.size(); i++)\n\t\t{\n\t\t\tSingleRange currentRange = _rangelist.get(i);\n\t\t\tsb.append(currentRange._first);\n\n\t\t\tif (currentRange._last != Lastchar)\n\t\t\t{\n\t\t\t\tsb.append((char)(currentRange._last + 1));\n\t\t\t}\n\t\t}\n\n\t\tsb.setCharAt(SETLENGTH, (char)(sb.length() - SETSTART));\n\n\t\tsb.append(_categories);\n\n\t\tif (_subtractor != null)\n\t\t{\n\t\t\tsb.append(_subtractor.ToStringClass());\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }",
"public String toString() { return stringify(this, true); }",
"public String toString()\n {\n return \"I am the nice \" + NAME + \", I am now standing on square \" + x + \" , \" + y + \".\";\n }",
"public String toString() {\n/* 387 */ if (this.toString == null) {\n/* 388 */ StrBuilder buf = new StrBuilder(32);\n/* 389 */ buf.append(\"Range[\");\n/* 390 */ buf.append(this.min);\n/* 391 */ buf.append(',');\n/* 392 */ buf.append(this.max);\n/* 393 */ buf.append(']');\n/* 394 */ this.toString = buf.toString();\n/* */ } \n/* 396 */ return this.toString;\n/* */ }",
"public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}",
"public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }",
"@Override\n\tpublic String toString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] dimensions = {\"i\", \"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"r\", \"s\", \"t\", \"u\", \"v\", \"z\"};\n\t\t\n\t\tsb.append(\"V = \");\n\t\tsb.append(this.get(0));\n\t\tsb.append(dimensions[0]);\n\t\tfor(int i=1; i<this.getDimension(); i++){\n\t\t\tsb.append(\" + \");\n\t\t\tsb.append(this.get(i));\n\t\t\tsb.append(dimensions[i]);\n\t\t}\n\t\t\t\t\n\t\treturn sb.toString();\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString()\n {\n String contents = \"\";\n double totalArea = 0;\n \n contents = contents + \"\\nThere are \" + shapes.size() + \" shapes in the container.\\n\";\n \n for(int i = 0; i < shapes.size(); i++)\n {\n totalArea = totalArea + shapes.get(i).getArea();\n contents = contents + shapes.get(i).toString();\n }\n contents = contents + \"\\nand total area of shapes is \" + totalArea + \"\\n\";\n return contents;\n }",
"public String toString()\n {\n return getClass().getName() + \"[name=\" + name + \",area=\" + area + \"]\";\n }",
"public String toString() {\n\t\tString s = \"\";\n\t\t// Loop through all the vertices and add their neighbors to a string\n\t\tfor (int i = 0; i < this.vertices.size(); i++) {\n\t\t\ts += this.vertices.get(i).toString() + \": \" + this.vertices.get(i).getNeighbors() + \"\\n\\n\";\n\t\t}\n\t\ts += \"Number of Total Edges: \" + this.actualTotalEdges;\n\t\treturn s;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name() + \" \" + \"w:\" + weight + \" \" + \"d:\" + diameter;\n\t}",
"@Override public String toString() {\n\t\tif (this.valido == true) \t\n\t \t\treturn String.format(\"Il quadrato di vertici %s %s %s %s ha perimetro %.2f e area %.2f\", this.vertici[0].toString(),\n\t\t\tthis.vertici[1].toString(), this.vertici[2].toString(), this.vertici[3].toString(),this.calcolaPerimetro(),this.calcolaArea());\n\t\telse return (\"Quadrato non valido\");\n\t}",
"public String toString()\n\t{\n\t\treturn getArea() + \".\" + getLine() + \".\" + getDevice();\n\t}",
"public String toString() {\n\t\treturn getClass().getName() + \"[mode=\" + mode + \",size=\" + size\n\t\t\t + \",hgap=\" + hgap + \",vgap=\" + vgap + \"]\";\n\t}",
"public String toDebugString();",
"@Override\r\n public String toString() {\r\n return \"Rectangle length: \" + length + \", Rectangle width: \" + width + \", Rectangle color: \" + super.toString();\r\n }",
"public String toString() {\n\t\tString ret = obox.toString();\n\t\t// TODO: return extra info during debugging:\n\t\t//ret += \" Offsets: \" + getWordOffsetsAsStr();\n\t\t//ret += \" Occlusions: \" + getOcclusionsAsStr();\n\t\treturn ret;\n\t}",
"public java.lang.String toDebugString () { throw new RuntimeException(); }",
"public String toString() {\n\t\tString returnString=\"\";\n\t\t\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\treturnString+=Character.toString(squares[i][j].getValue());\n\t\t\t}\n\t\t\treturnString+=\"// \";\n\t\t}\n\t\t\n\t\treturn returnString;\n\t}",
"@Override\r\n \tpublic final String toStringAsNode(boolean printRangeInfo) {\r\n \t\tString str = toStringClassName();\r\n \t\t\r\n \t\tif(printRangeInfo) {\r\n \t\t\tif(hasNoSourceRangeInfo()) {\r\n \t\t\t\tstr += \" [?+?]\";\r\n \t\t\t} else {\r\n \t\t\t\tstr += \" [\"+ getStartPos() +\"+\"+ getLength() +\"]\";\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn str;\r\n \t}",
"public String toString()\n\t{\n\t\treturn \"x:\"+xPos+\" y:\"+yPos+\" width:\"+width+\" height:\"+height+\" color:\"+ color;\n\t}",
"public String toString()\n {\n String s = \"\";\n for (Point2D.Float p : points) {\n if (s.length() > 0) s += \", \";\n s += round(p.x) + \"f\" + \",\" + round(p.y) + \"f\";\n }\n return s;\n }",
"protected String getToStringFormat()\n {\n return getClass().getSimpleName() + \"@\"\n + Integer.toHexString(hashCode()) + \": { \"\n + \"offset = 0x\" + Integer.toHexString(offset) + \"; \"\n + \"size = \" + size + \"; \"\n + \"%s\"\n + \"value = \" + getValue() + \"; \"\n + \"isAccessible = \" + isAccessible() + \"; \"\n + \"checksum = 0x\" + Integer.toHexString(checksum()) + \"; \"\n + \"}\";\n }",
"public String toString(){\n return \"X = \" + xPosition + \", Y = \" + yPosition + \", width = \" + widthRadius + \", height = \" + \n heightRadius;\n }",
"public String toString() {\n\n String str = super.toString() + \"; descriptor for class: \";\n\n //-- add class name\n if (_class != null)\n str += _class.getName();\n else\n str += \"[null]\";\n\n //-- add xml name\n str += \"; xml name: \" + _xmlName;\n\n return str;\n }",
"public String classOut() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(objective());\n\t\ts.append(' ');\n\t\ts.append(optimal() ? 1 : 0);\n\t\ts.append('\\n');\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.append(item(i) ? 1 : 0);\n\t\t\ts.append(i < n - 1 ? ' ' : '\\n');\n\t\t}\n\t\treturn s.toString();\n\t}",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String toString()\n\t{\n\t\treturn String.format(Locale.getDefault(), \"{Width:%1$ Height:%2$ Format:%3$ AspectRatio:%4$}\", new Object[] { this._width, this._height, this._format, this.getAspectRatio() });\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn \"pX = \" + personX + \" ,pY = \" + personY + \" ,boxX = \" + boxX + \" ,boxY = \" + boxY + \" ,cost = \" + cost + \" , push = \" + push ;\n\t\t}",
"@Override\n public String toString() {\n if (hasChildren) {\n return \"parent \" + rectangle + \" Points: \" + Arrays.toString(points.toArray());\n } else {\n return \"leaf \" + rectangle + \" Points: \" + Arrays.toString(points.toArray());\n }\n }",
"public String toString(){\n\t\tString s = new String();\n\t\tif( x != null ){\n\t\t\ts = s+\"x: \"+x.toString()+\" \";\n\t\t}\n\t\tif( y != null ){\n\t\t\ts = s+\"y: \"+y.toString()+\" \";\n\t\t}\n\t\tif( z != null ){\n\t\t\ts = s+\"z: \"+z.toString()+\" \";\n\t\t}\n\t\tif( intensity != null){\n\t\t\ts = s+\"Intensity: \";\n\t\t\tfor( int i=0; i<intensity.length; i++){\n\t\t\t\ts = s+intensity[i]+\" \";\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t}",
"@Override\n public String toString() {\n if (isValid()) {\n return String.format(\n Locale.US,\n \"%+02f%+02f%s/\",\n coordinates.get(1), coordinates.get(0), coordinateSystem.toString());\n }\n return \"\";\n }",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public java.lang.String toString(){\n DecimalFormat df = new DecimalFormat(\"0.0\");\n return \"< \" + df.format(this.x) + \", \" + df.format(this.y) + \" >\";\n }",
"public String toString() {\n\t\treturn \"[\" + this.type + \n\t\t\t\t\" | rate:\" + this.rate + \n\t\t\t\t\" | err:\" + this.error + \n\t\t\t\t\" | loc:\" + this.localisation.x + \",\" + this.localisation.y + \"]\" + \n\t\t\t\t\" | range:\" + this.range + \"\\n\";\n\t}",
"public String toString(){\n String s = \"\";\n s += \"\\t\";\n \n for (int i = 0; i < n; i++){\n // adding vertices for columns\n s += vertices[i] + \"\\t\";\n }\n \n s += \"\\n\";\n \n for (int i = 0; i < n; i++){\n s += vertices[i] + \"\\t\"; // vertex for row\n for (int j = 0; j < n; j++){\n s += edges[j][i] + \"\\t\"; // adding edges across row\n }\n s += \"\\n\";\n }\n \n return s;\n }",
"public String getDumpString() {\n return \"[clazz = \" + clazz + \" , name = \" + name + \" , elementType = \" + elementType + \" , primitivePointerType = \" + primitivePointerType + \"]\";\n }"
] |
[
"0.69996446",
"0.68553627",
"0.6806402",
"0.6670906",
"0.66661793",
"0.6549311",
"0.6466007",
"0.6451373",
"0.64475894",
"0.6396878",
"0.6396384",
"0.6353597",
"0.6328383",
"0.6328222",
"0.6325234",
"0.63094306",
"0.6306204",
"0.62509626",
"0.6212525",
"0.6194939",
"0.6188376",
"0.6182814",
"0.61734015",
"0.61593556",
"0.6157435",
"0.613597",
"0.6133214",
"0.6084202",
"0.6059996",
"0.6055305",
"0.6051207",
"0.60494167",
"0.60460573",
"0.60392815",
"0.6033339",
"0.6018375",
"0.60149807",
"0.60014856",
"0.5998935",
"0.59925663",
"0.59872055",
"0.598191",
"0.5969494",
"0.59611833",
"0.5960474",
"0.5953785",
"0.5953094",
"0.59479344",
"0.5945388",
"0.59272814",
"0.5925144",
"0.5918256",
"0.5914472",
"0.5911672",
"0.5905924",
"0.5903123",
"0.5901047",
"0.58922744",
"0.5875943",
"0.58736956",
"0.58643484",
"0.58476543",
"0.58415574",
"0.58401036",
"0.58277196",
"0.58204585",
"0.5816659",
"0.58143294",
"0.5813864",
"0.58059657",
"0.58014816",
"0.579127",
"0.5790701",
"0.5786204",
"0.5779733",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57756865",
"0.57635516",
"0.57576233",
"0.5757563",
"0.5753813"
] |
0.0
|
-1
|
private SewingServiceTracker stc; private ServiceTracker st; / (nonJavadoc)
|
public void start(BundleContext context) throws Exception {
this.context = context;
LogManager.setContext(context);
log = LogServiceUtil.getLogService(context);
// Create the service tracker and run it.
stc = ServiceTrackerUtil.openServiceTracker(context, HttpService.class.getName(), this);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERVICE_PID + \".storeforward\"; //$NON-NLS-1$\n\n}",
"public void service() {\n\t}",
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}",
"public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }",
"private SiteEditService() {\r\n \r\n }",
"public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}",
"public void setService (String service) {\n\t this.service = service;\n\t}",
"public SsoService ssoService() {\n\t\treturn ssoService;\n\t}",
"public TrackCoach(FortuneService theFortuneService) {\n this.fortuneService = theFortuneService;\n }",
"private static interface Service {}",
"public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }",
"public UpdateService() {\n super(\"UpdateService\");\n }",
"private void setService(Service service) {\n this.service = service;\n }",
"@Override\r\n\tpublic void modifiedService(ServiceReference<T> reference, ServletContextHelperElement service) {\n\t}",
"private Service() {}",
"public interface JournalizeCrawlService extends UpdateService<JournalizeCrawl> {\n}",
"public Service(){\n\t\t\n\t}",
"public String getServiceName(){\n return serviceName;\n }",
"public void setServiceContext(org.apache.axis2.context.xsd.ServiceContext param){\n localServiceContextTracker = true;\n \n this.localServiceContext=param;\n \n\n }",
"ClassOfService getClassOfService();",
"public BrightTimeService() {\n super(\"BrightTimeService\");\n }",
"public BaseballCoach(FortuneService theFortuneService){\n\t\tfortuneService=theFortuneService;\n\t}",
"public BaseballCoach(FortuneService theFortuneService)\r\n {\r\n fortuneService = theFortuneService;\r\n }",
"public interface Service {\n\n}",
"public interface Service {\n\n}",
"public TrackCoach(FortuneService fortuneService) {\r\n\t\tthis.fortuneService = fortuneService;\r\n\t}",
"public interface Service extends WrappedIndividual {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasMicroService\n */\n \n /**\n * Gets all property values for the hasMicroService property.<p>\n * \n * @returns a collection of values for the hasMicroService property.\n */\n Collection<? extends MService> getHasMicroService();\n\n /**\n * Checks if the class has a hasMicroService property value.<p>\n * \n * @return true if there is a hasMicroService property value.\n */\n boolean hasHasMicroService();\n\n /**\n * Adds a hasMicroService property value.<p>\n * \n * @param newHasMicroService the hasMicroService property value to be added\n */\n void addHasMicroService(MService newHasMicroService);\n\n /**\n * Removes a hasMicroService property value.<p>\n * \n * @param oldHasMicroService the hasMicroService property value to be removed.\n */\n void removeHasMicroService(MService oldHasMicroService);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasSCF\n */\n \n /**\n * Gets all property values for the hasSCF property.<p>\n * \n * @returns a collection of values for the hasSCF property.\n */\n Collection<? extends SCF> getHasSCF();\n\n /**\n * Checks if the class has a hasSCF property value.<p>\n * \n * @return true if there is a hasSCF property value.\n */\n boolean hasHasSCF();\n\n /**\n * Adds a hasSCF property value.<p>\n * \n * @param newHasSCF the hasSCF property value to be added\n */\n void addHasSCF(SCF newHasSCF);\n\n /**\n * Removes a hasSCF property value.<p>\n * \n * @param oldHasSCF the hasSCF property value to be removed.\n */\n void removeHasSCF(SCF oldHasSCF);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#performAt\n */\n \n /**\n * Gets all property values for the performAt property.<p>\n * \n * @returns a collection of values for the performAt property.\n */\n Collection<? extends Facility> getPerformAt();\n\n /**\n * Checks if the class has a performAt property value.<p>\n * \n * @return true if there is a performAt property value.\n */\n boolean hasPerformAt();\n\n /**\n * Adds a performAt property value.<p>\n * \n * @param newPerformAt the performAt property value to be added\n */\n void addPerformAt(Facility newPerformAt);\n\n /**\n * Removes a performAt property value.<p>\n * \n * @param oldPerformAt the performAt property value to be removed.\n */\n void removePerformAt(Facility oldPerformAt);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#produces\n */\n \n /**\n * Gets all property values for the produces property.<p>\n * \n * @returns a collection of values for the produces property.\n */\n Collection<? extends Computer> getProduces();\n\n /**\n * Checks if the class has a produces property value.<p>\n * \n * @return true if there is a produces property value.\n */\n boolean hasProduces();\n\n /**\n * Adds a produces property value.<p>\n * \n * @param newProduces the produces property value to be added\n */\n void addProduces(Computer newProduces);\n\n /**\n * Removes a produces property value.<p>\n * \n * @param oldProduces the produces property value to be removed.\n */\n void removeProduces(Computer oldProduces);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#uses\n */\n \n /**\n * Gets all property values for the uses property.<p>\n * \n * @returns a collection of values for the uses property.\n */\n Collection<? extends Equipment> getUses();\n\n /**\n * Checks if the class has a uses property value.<p>\n * \n * @return true if there is a uses property value.\n */\n boolean hasUses();\n\n /**\n * Adds a uses property value.<p>\n * \n * @param newUses the uses property value to be added\n */\n void addUses(Equipment newUses);\n\n /**\n * Removes a uses property value.<p>\n * \n * @param oldUses the uses property value to be removed.\n */\n void removeUses(Equipment oldUses);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}",
"private ReportService() { }",
"public void setService(String service) {\n this.service = service;\n }",
"public SunshineService(String name) {\n super(\"SunshineService\");\n\n }",
"private ServiceGenerator() {\n }",
"Tracker getFeatureEngagementTracker();",
"private ServiceGen() {\n }",
"public Service_WidgetUpdate() {\n super(\"WidgetUpdateService\");\n }",
"StockNotifier(PriceSubject sg) {\n\t\tthis.observerID = ++observerIDTracker;\n\t\tSystem.out.println(\"Analyser created : \"+this.observerID);\n\t\tsg.register(this);\n\t}",
"public ReceivingMonitoringBean() {\n serviceVessel=new ServiceVessel();\n }",
"@Override\n public String getName() {\n return \"Service Stability\";\n }",
"protected SDB_ServiceClass( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }",
"private SparkeyServiceSingleton(){}",
"public WidgetUpdateService() {\n super(\"WidgetUpdateService\");\n }",
"public interface SysLogService extends CurdService<SysLog> {\n\n}",
"public GoogleAnalyticsTracker(Tracker tracker) {\n this.tracker = tracker;\n }",
"public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}",
"private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}",
"public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}",
"public EPGUpdateService() {\n // Worker thread name which is only important for debugging\n super(\"EPGUpdateService\");\n }",
"public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}",
"public void setServiceID(ID sid) {\n\tserviceID = sid;\n }",
"TesttrackFactory getTesttrackFactory();",
"public interface ControllcurveService extends Service<Controllcurve> {\n\n}",
"public void setServiceName(String serviceName)\r\n {\r\n this.serviceName = serviceName;\r\n }",
"public interface SeatService extends Service {\r\n\t/**\r\n\t * gets all seats with their states by film session id\r\n\t * \r\n\t * @param filmSessionId\r\n\t * film session id\r\n\t * @return list of seats with their states\r\n\t */\r\n\tList<Seat> getSeatsWithState(int filmSessionId);\r\n\r\n\t/**\r\n\t * check is seat free\r\n\t * \r\n\t * @param seatId\r\n\t * checking seat id\r\n\t * @param filmSessionId\r\n\t * film session id\r\n\t * @return {@code true} if seat free, {@code false} otherwise\r\n\t */\r\n\tboolean isSeatFree(int seatId, int filmSessionId);\r\n\r\n\t/**\r\n\t * gets seat by id\r\n\t * \r\n\t * @param seatId\r\n\t * seat id\r\n\t * @return found seat\r\n\t */\r\n\tSeat getSeat(int seatId);\r\n\r\n}",
"public interface WeighInService {\n}",
"public TTSService getService() {\n return TTSService.this;\n }",
"private stendhal() {\n\t}",
"public AppsFlyerTracker() {}",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"Sticker.Factory getStickerFactory();",
"public CSSTidier() {\n\t}",
"SourceBuilder createService();",
"private ServiceLocator() {\r\n\t\t\r\n\t}",
"public interface Service {\n // Service-specific methods go here\n }",
"public interface SearchClientService {\r\n\t/**\r\n\t * Get Search engine client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tClient getClient();\r\n\r\n\tvoid setup();\r\n\r\n\tvoid shutdown();\r\n}",
"public BaseballCoach(FortuneService theFortuneService) {\n\t\tfortuneService=theFortuneService;\n\t}",
"public SwerveModuleTracker(TrackableSwerveModule tsm) {\n this(\n tsm.getDriveEncoder(),\n tsm.getTurnEncoder(),\n tsm.getDriveCpr(),\n tsm.getTurnCpr(),\n tsm.getWheelDiameter()\n );\n }",
"public interface ConceptService {\n}",
"public StartedService() {\n super(\"StartedService\");\n }",
"@Override\n\tpublic BaseService<Object> getService() {\n\t\treturn analyticsService;\n\t}",
"public interface TaReviewsService extends GenericService<TaReviews,String> {\n}",
"public void setServiceName(String serviceName)\n {\n this.serviceName = serviceName;\n }",
"public RiftsawServiceLocator() {\n }",
"public CounterLocalService getCounterLocalService() {\n return counterLocalService;\n }",
"public BaseballCoach(FortuneService theFortuneService)\n {\n this.fortuneService = theFortuneService;\n }",
"private final StarService m75163p() {\n AbstractC32572g gVar = this.f53577b;\n AbstractC32607k kVar = f53576a[0];\n return (StarService) gVar.mo102348b();\n }",
"public Tracker getTracker() {\n return tracker;\n }",
"public BaseBallCoach(FortuneService theFortuneSerive) {\n\t\t\tfortuneService= theFortuneSerive;\n\t\t\t\n\t\t}",
"public interface IWarnHistoryService {\n}",
"public interface RefreshSfClient {\n\n /** 'my-super-cool-service' */\n public String getName();\n\n /** 'https://refresh-sf.herokuapp.com' */\n public String getUrl();\n\n public Css getCssApi();\n\n public Html getHtmlApi();\n\n public Javascript getJavascriptApi();\n\n}",
"public interface SloganService extends BaseService<Slogan> {\n}",
"private void ss(){\n }",
"public Services(){\n ID = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n state = STATUS_IN_PROGRESS;\n name = \"\";\n date = \"\";\n description = \"\";\n note = \"\";\n mileage = 000000;\n }",
"public interface GoodStyleService extends Service<GoodStyle> {\n\n}",
"public String getService(){\n\t\t return service;\n\t}",
"Service newService();",
"public StockWidgetIntentService() {\n super(\"StockWidgetIntentService\");\n }",
"private ServiceLocator(){}",
"public interface MineService {\n}",
"public TrackingServiceTarget(final ServiceTarget delegate) {\n this(delegate, Collections.synchronizedSet(new HashSet<ServiceName>()));\n }",
"public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}",
"public TrackerService(@Nonnull TrackedTorrentRegistry torrents) {\n this.torrents = torrents;\n }",
"@Autowired\n public TrackController(TrackService trackService){\n this.trackService = trackService;\n }",
"public interface IFeedComponentService {\n C28197y getFeedAdapterService();\n\n C28680d getFeedExperimentService();\n\n C28649y getFeedFragmentPanelService();\n\n C28681e getFeedWidgetService();\n\n C28394j getGuideService();\n\n C28134ag getVideoViewHolderService();\n}",
"public ProviderService() {\r\n super(TAG, SASOCKET_CLASS);\r\n }",
"public StudyService getStudyService() {\n\t\treturn mStudyService;\n\t}",
"public StudyService getStudyService() {\n\t\treturn mStudyService;\n\t}",
"public static JaegerTracer initTracer(String service) {\n SamplerConfiguration mySamplerConfig = SamplerConfiguration.fromEnv().withType(\"const\").withParam(1);\r\n\r\n //Whether the reporter should also log the spans\r\n ReporterConfiguration myReporterConfig = ReporterConfiguration.fromEnv().withLogSpans(true);\r\n \r\n //Creates configuration with the above created sampler and reporter configuration\r\n Configuration config = new Configuration(service).withSampler(mySamplerConfig).withReporter(myReporterConfig);\r\n \r\n //return the tracker\r\n return config.getTracer();\r\n\r\n }",
"public interface DiscountService extends ServiceInterface<DiscountEntity>{\n}",
"public WeatherService() {\n super(\"WeatherService\");\n }"
] |
[
"0.623579",
"0.60509133",
"0.60214335",
"0.60154545",
"0.60109335",
"0.5959703",
"0.5927889",
"0.5920684",
"0.58641195",
"0.58261853",
"0.5782263",
"0.5774121",
"0.5744859",
"0.5737829",
"0.572809",
"0.57222486",
"0.5718501",
"0.5692947",
"0.5691742",
"0.5688805",
"0.5672193",
"0.56694996",
"0.56688416",
"0.56579",
"0.5646974",
"0.5646974",
"0.56402117",
"0.5640072",
"0.5631717",
"0.56252",
"0.5620005",
"0.56148547",
"0.56022906",
"0.5601916",
"0.55990237",
"0.55828047",
"0.5565542",
"0.55567056",
"0.555648",
"0.5554978",
"0.55525446",
"0.55462724",
"0.5545221",
"0.55449563",
"0.5538992",
"0.55293083",
"0.5523418",
"0.55185974",
"0.5505335",
"0.5497833",
"0.5496771",
"0.54947656",
"0.5488713",
"0.54851145",
"0.5483834",
"0.54824543",
"0.5481427",
"0.54755235",
"0.54755235",
"0.54755235",
"0.5475154",
"0.54691696",
"0.5468332",
"0.546599",
"0.546272",
"0.5462706",
"0.54541504",
"0.54463446",
"0.54452467",
"0.54446614",
"0.5435263",
"0.5433973",
"0.5433811",
"0.5428893",
"0.5424737",
"0.5419074",
"0.5410071",
"0.54092854",
"0.5404049",
"0.5399026",
"0.53934294",
"0.5392017",
"0.5390103",
"0.5387667",
"0.5384686",
"0.5378455",
"0.5375841",
"0.53730303",
"0.5370063",
"0.53678703",
"0.53672075",
"0.53612673",
"0.5359912",
"0.5358976",
"0.5355767",
"0.53468955",
"0.5345232",
"0.5345232",
"0.5330549",
"0.5329052",
"0.5327405"
] |
0.0
|
-1
|
returns the singleton instance of this class.
|
public static SkinNotAvailable getSkinNotAvailable()
{
return _INSTANCE;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static Singleton getInstance() {\n return mSing;\n }",
"public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}",
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }",
"public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}",
"public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }",
"public static Main getInstance() {\r\n return instance;\r\n }",
"public static SingleObject getInstance(){\n return instance;\n }",
"public static Main getInstance() {\n return instance;\n }",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}",
"public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public T getInstance() {\n return instance;\n }",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }",
"public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}",
"@Override\n public T getInstance() {\n return instance;\n }",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }",
"public static SingletonEager getInstance()\n {\n return instance;\n }",
"public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }",
"public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }",
"public static SingletonClass getInstance() {\n if (instance == null) {\n synchronized (SingletonClass.class) {\n if (instance == null) {\n instance = new SingletonClass();\n }\n }\n }\n return instance;\n }",
"public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }",
"public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }",
"public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }",
"public static ChatSingleton getInstance( ) {\n return singleton;\n }",
"synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }",
"public static SingletonEager get_instance(){\n }",
"public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}",
"public static MetaDataManager getInstance() {\n return instance;\n }",
"public static Parser getInstance() {\n return instance;\n }",
"public static Empty getInstance() {\n return instance;\n }",
"public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}",
"public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }",
"public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }",
"public static LinkList instance() {\n\t\tif(singleton == null) \n\t\t\tsingleton = new LinkList();\n\t\t\t\t\n\t\t\n\t\treturn singleton;\n\t}",
"public static Boot getInstance()\n {\n return instance;\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}",
"public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }",
"public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }",
"public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }",
"public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}",
"public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }",
"public static TaskManager getInstance()\n {\n return gInstance;\n }",
"public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }",
"T getInstance();",
"public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\t\treturn instance;\n\t}",
"public synchronized static SynchronizedMethodSingleton getInstance()\n\t{\n\t\tif ( instance == null )\n\t\t{\n\t\t\tinstance = new SynchronizedMethodSingleton();\n\t\t}\n\t\treturn instance;\n\t}",
"public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static J2_Singleton getInstance() {\n\t\tif(singletonInstance == null ) {\n\t\t\tsynchronized(J2_Singleton.class) {\n\t\t\t\tif(singletonInstance == null) {\n\t\t\t\t\tsingletonInstance = new J2_Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn singletonInstance;\n\t}",
"public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (null == instance) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }",
"public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }",
"public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}",
"public synchronized static RecordManager instance() {\n\t\tif (s_Instance == null) s_Instance = new RecordManager();\n\t\treturn s_Instance;\n\t}",
"public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public static AppClient getInstance() {\n return instance;\n }",
"public static DotPrinter getInstance() {\n\t\t// needed because once there is singleton available no need to acquire\n\t\t// monitor again & again as it is costly\n\t\tif (instance == null) {\n\t\t\tsynchronized (DotPrinter.class) {\n\t\t\t\t// this is needed if two threads are waiting at the monitor at\n\t\t\t\t// the\n\t\t\t\t// time when singleton was getting instantiated\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new DotPrinter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}",
"synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }",
"public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static Controller getInstance() { return INSTANCE; }",
"public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }",
"public static SingletonDoubleCheck getInstance() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (SingletonDoubleCheck.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new SingletonDoubleCheck();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}",
"public static MainActivity instance() {\n Log.d(TAG, \" instance(): called\");\n return inst;\n }",
"public static GameManager getInstance() {\n return ourInstance;\n }",
"public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }",
"public static Ambulancia get_instance() {\n if (instance == null)\n instance = new Ambulancia();\n return instance;\n }",
"public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }",
"public static synchronized MainModel getInstance() {\n\n if (instance == null)\n instance = new MainModel();\n\n return instance;\n\n }",
"public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}",
"public static LibValid getInstance() {\n\t\treturn instance;\n\t}",
"public static Parser getInstance() {\n\t\tif (theOne == null) {\n\t\t\ttheOne = new Parser();\n\t\t}\n\t\treturn theOne;\n\t}",
"public static AccessSub getInstance() {\n\t\treturn instance;\n\t}",
"public static AsteroidFactory getInstance() {\r\n\t\treturn instance;\r\n\t}",
"public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}",
"private Singleton(){}",
"public ScannerSimulator getInstance() {\n\t\tif (mInstance == null)\n\t\t\tmInstance = new ScannerSimulator();\n\t\treturn mInstance;\n\t}",
"public static Singleton getInstanceDC() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (Singleton.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}",
"private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }",
"public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }",
"private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }",
"public static ServerModel getInstance() {\n if (SINGLETON == null) {\n SINGLETON = new ServerModel();\n }\n return SINGLETON;\n }",
"public static App getInstance() {\n return applicationInstance;\n }",
"public static ModuleMapper getInstance() {\n return singleton;\n }",
"public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }"
] |
[
"0.86122155",
"0.8531964",
"0.8163124",
"0.8077955",
"0.80347794",
"0.8033637",
"0.80265135",
"0.80203176",
"0.8016662",
"0.80117553",
"0.79906404",
"0.7941816",
"0.79360515",
"0.7918087",
"0.7913716",
"0.7908758",
"0.78825265",
"0.787187",
"0.78421813",
"0.78097504",
"0.78015476",
"0.7768813",
"0.7730668",
"0.7723148",
"0.7720136",
"0.7713116",
"0.7692696",
"0.7619202",
"0.75990355",
"0.7591804",
"0.7575932",
"0.7511565",
"0.7489912",
"0.74199826",
"0.74085534",
"0.7403396",
"0.7401022",
"0.73208904",
"0.73129034",
"0.7308281",
"0.73018885",
"0.72980076",
"0.7281221",
"0.7277733",
"0.7277398",
"0.7273938",
"0.7261528",
"0.72452307",
"0.7244203",
"0.72359145",
"0.7230779",
"0.7227086",
"0.7227058",
"0.72195035",
"0.7212731",
"0.7208",
"0.7207678",
"0.7194243",
"0.71937656",
"0.719197",
"0.71858716",
"0.71775764",
"0.71773773",
"0.71713",
"0.7167774",
"0.71611464",
"0.71537864",
"0.71534485",
"0.7146551",
"0.7132775",
"0.7129043",
"0.71278405",
"0.71270424",
"0.71238166",
"0.7116703",
"0.7113431",
"0.70965815",
"0.70926267",
"0.70901227",
"0.70840096",
"0.70785743",
"0.70741355",
"0.706977",
"0.70666116",
"0.70658433",
"0.7062566",
"0.7053548",
"0.7052391",
"0.70497084",
"0.7035895",
"0.7035761",
"0.7032967",
"0.70318514",
"0.70246595",
"0.70132154",
"0.7011623",
"0.7003458",
"0.69972223",
"0.69968057",
"0.69931436",
"0.69908464"
] |
0.0
|
-1
|
A service interface exposing CRUD methods for making reservations to the campsite.
|
public interface ReservationsService {
/**
* Lists reservations 'conflicting' with the given time range. This means that the method will list
* all reservations conflicting with the specified start date and/or end date, plus all
* reservations contained within the specified range.
* <p>
* If no length is provided for the time range (numberOfDays = null), the default will be used.
*
* @param startDate start date (Instant) of time range for which campsite availability is requested
* @param numberOfDays length of time range for which campsite availability is requested (in days).
* Defaults to the {@code campsite.reservation.list.default} config parameter.
* @return reservations 'conflicting' with the given time range.
*/
List<Reservation> listReservationsWithinTimeRange(Instant startDate, Integer numberOfDays);
/**
* Creates a reservation for the provided {@link User} between two
* given dates. The length of the reservation cannot exceed the amount
* of days specified by the {@code campsite.reservation.length.maximum}
* configuration property.
*
* @param userData information about the user that will own the reservation
* @param startDate date (Instant) in which the reservation starts
* @param endDate date (Instant) in which the reservation ends
* @return the reservation between the requested dates for the specified user, containing an
* automatically generated booking id
* @throws IllegalArgumentException if:
* - length of stay exceeds {@code campsite.reservation.length.maximum} or
* - reservation start date comes before {@code campsite.reservation.days-ahead.minimum} or
* - reservation start date comes after {@code campsite.reservation.days-ahead.maximum}
*/
Reservation createReservation(User userData, Instant startDate, Instant endDate);
/**
* Updates a given {@link Reservation}, uniquely identified by its {@code id}.
* This operation uses optimistic locking for preventing silent updates.
*
* @param reservation contains the information for the reservation that is to be updated,
* uniquely identified by its {@code id}
* @return the updated reservation information
* @throws ObjectOptimisticLockingFailureException if a stale copy of the reservation attempts
* to be updated
*/
Reservation updateReservation(Reservation reservation);
/**
* Deletes a given {@link Reservation}, uniquely identified by its {@code id}.
* This operation uses optimistic locking for preventing silent deletes.
*
* @param reservation contains the information for the reservation that is to be deleted,
* uniquely identified by its {@code id}
* @throws ObjectOptimisticLockingFailureException if a stale copy of the reservation attempts
* to be deleted
*/
void deleteReservation(Reservation reservation);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Reservation createReservation();",
"public interface ReservationService {\n\n @POST(\"reservations/add\")\n Call<Void> addReservations(@Body Reservation reservation);\n\n @GET(\"reservations/{id}.json\")\n Call<Reservation> getReservation(@Path(\"id\") int id) ;\n\n @PUT(\"reservations/{id}.json\")\n Call<Void> editReservations(@Path(\"id\") int id,@Body Reservation reservation);\n\n\n}",
"CurrentReservation createCurrentReservation();",
"void addReservation(ReservationDto reservationDto) ;",
"PastReservation createPastReservation();",
"@RequestMapping(value=\"/add\", method = RequestMethod.POST)\r\n public void addAction(@RequestBody Reservation reservation){\n reservationService.create(reservation);\r\n }",
"public interface ReservationFacade {\n\n ReservationDTO create(ReservationDTO reservation);\n\n ReservationDTO findById(Long id);\n\n ReservationDTO update(ReservationDTO reservation);\n\n void delete(ReservationDTO reservation);\n\n List<ReservationDTO> getAll();\n\n List<ReservationDTO> getReservations(EmployeeDTO employee);\n}",
"public interface ReservationDao {\n Reservation getReservation(int reservationId);\n void updateReservation(Reservation reservation);\n void deleteReservation(Reservation reservation);\n void insertReservation(Reservation reservation);\n}",
"public RentalResponse createReservation(Reservation argRequest) {\r\n\t\t\r\n\t\tRentalResponse response = service.processRequest(argRequest);\r\n\t\t\r\n\t\treturn response;\r\n\t\t\r\n\t}",
"public RentalResponse createReservation(RentalRequest argRequest) {\r\n\t\t\r\n\t\tRentalResponse response = service.processRequest(argRequest);\r\n\t\t\r\n\t\treturn response;\r\n\t\t\r\n\t}",
"public interface CargoService {\n\n public void save(Cargo tarea);\n\n public void update(Cargo tarea);\n\n public Cargo findById(Long id);\n\n public List<Cargo> findAll();\n\n}",
"BookReservationDao getBookReservationDao();",
"public int getReservationId() { return reservationId; }",
"@Override\n public Reservation call() throws ReservationNotCreatedException {\n return reservationService.create(reservation);\n }",
"public interface ReservationDao extends Dao<Reservation> {\n\n void addReservation(Reservation reservation);\n\n void removeReservation(Reservation reservation);\n\n Reservation getReservation(int userId, int bookId);\n}",
"void storeReservation(Reservation reservation) throws DataAccessException;",
"@Autowired\n public ReservationController(ReservationService service) {\n this.service = service;\n }",
"@Operation(\n summary = \"Save a new reservation\"\n )\n @ApiResponses(\n @ApiResponse(\n responseCode = \"200\",\n description = \"Successful Response\",\n content = @Content(schema = @Schema(implementation = Reservation.class))\n )\n )\n @PostMapping(\n path = \"/new-reservation\",\n consumes = APPLICATION_JSON_VALUE\n )\n public ResponseEntity<String> newReservation(\n @RequestBody Reservation reservation) {\n reservationsRepository.save(reservation);\n return new ResponseEntity<>(\"Info saved correctly\", HttpStatus.OK);\n }",
"public interface ReservationDao extends JpaRepository<Reservation, Long> {\n\n /**\n * Find reservations by user book id list.\n *\n * @param userId the user id\n * @return the list\n */\n List<Reservation> findReservationsByUserBookId (Long userId);\n\n /**\n *\n * @param id\n * @return\n */\n Optional<Reservation> findById(Long id);\n\n /**\n *\n * @param reservation\n * @return\n */\n Reservation save(Reservation reservation);\n\n /**\n *\n * @param reservation\n */\n void delete(Reservation reservation);\n\n /**\n * Find by end borrowing after list.\n *\n * @param endBorrowing the end borrowing\n * @return the list\n */\n @Query(\"select reservation from Reservation reservation where reservation.endBorrowing>=:endBorrowing\")\n List<Reservation> findByEndBorrowingAfter(@Param(\"endBorrowing\")Date endBorrowing);\n\n /**\n *\n * @param bookId\n * @return\n */\n List<Reservation> findAllByBookIdOrderByEndBorrowingAsc(Long bookId);\n}",
"public interface ITempSeatScheduleService extends IService<TssTempSeatSchedule> {\n\n boolean resetTepIdAndSeatNumInTemp(List<String> readyDelIds);\n\n boolean copyToMainTableByTeId(String mainExId);\n\n boolean removeByTeId(String mainExId);\n}",
"public ModifyRoomReservation() {\n initComponents();\n\n btn_search.requestFocus();\n\n getAllIds();\n\n }",
"public interface HotelReservations {\n\n void lookupHotels();\n Hotel getSelectedHotel();\n \n void destroy();\n}",
"public interface TripService extends CrudService<Trip>{\n List<Trip> getAllOnDateByCities(LocalDate date, int departureId, int destinationId);\n}",
"public ReservationApi()\r\n {\r\n }",
"RentalAgency createRentalAgency();",
"@Test\n public void testReservationFactoryGetReservation() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n Table table = tableFactory.getTableController().getTable(1);\n reservationController.addReservation(date, customer, 2, table);\n assertEquals(1, reservationController.getReservationList().size());\n assertEquals(CUSTOMER_NAME, reservationController.getReservation(1).getCustomer().getName());\n assertEquals(CUSTOMER_CONTACT, reservationController.getReservation(1).getCustomer().getContactNo());\n assertEquals(1, reservationController.getReservation(1).getTable().getTableId());\n assertEquals(2, reservationController.getReservation(1).getTable().getNumSeats());\n assertEquals(date, reservationController.getReservation(1).getReservationDate());\n }",
"void confirmerReservation(String proprietaire, Integer topoId);",
"public interface ClassRoomService {\n ClassRoom findClassRoomByName(String name);\n ClassRoom findClassRoomById(String id);\n List<ClassRoom> getClassRooms();\n List<Seat> bookSeat(ClassRoom room, int row, int col, Date date);\n Seat getSeat(ClassRoom room ,int row ,int col);\n void updateClassroom(ClassRoom classRoom);\n\n}",
"Collection<Reservation> getReservations() throws DataAccessException;",
"FutureReservation createFutureReservation();",
"void realizarReserva(Reserva reserva) throws OperationNotSupportedException;",
"public interface ReservationRepository extends CrudRepository<Reservation, Integer> {\n\n}",
"Reservation loadReservation(int id) throws DataAccessException;",
"@Local\npublic interface ReservationProvider {\n \n public List<Reservation> getAll();\n\n public List<Boardreservation> getAllBoardReservations();\n\n /**\n * Returns all reservations on certain Table\n * @param boardID\n * @return List of found Reservations\n */\n public List<Boardreservation> getBoardReservations(int boardID);\n\n public Reservation placeReservation(Reservation reservation);\n \n}",
"@Operation(\n summary = \"Get a list of all reservations\"\n )\n @ApiResponses(\n @ApiResponse(\n responseCode = \"200\",\n description = \"Successful Response\",\n content = @Content(array = @ArraySchema(schema = @Schema(implementation =\n Reservation.class)))\n )\n )\n @GetMapping(\n path = \"/reservations\",\n produces = APPLICATION_JSON_VALUE\n )\n public ResponseEntity<List<Reservation>> getReservation() {\n List<Reservation> listofReservations = (List<Reservation>) reservationsRepository.findAll();\n return new ResponseEntity(listofReservations, HttpStatus.OK);\n }",
"@Repository\npublic interface ReservationRepository extends CrudRepository<Reservation, Long> {\n}",
"public void insertReservation(TestDto testDto) throws Exception;",
"@Test\n public void testReservationFactoryCreate() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n Table table = tableFactory.getTableController().getTable(1);\n reservationController.addReservation(date, customer, 2, table);\n assertEquals(1, reservationController.getReservationList().size());\n }",
"@GetMapping\n\t@ApiOperation(value = \"Get reservation\", notes = \"Service to get a just reservation\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Retrieved reservation\"),\n\t\t\t@ApiResponse(code = 404, message = \"Reservation not found\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad request\")\n\t})\n\tpublic ResponseEntity<?> get(){\n\t\tResponseEntity<?> response;\n\t\tList<Reservation> reservations = reservationService.getAll();\n\t\tif(reservations.size()==0) {\n\t\t\tMap<String,String> errors = new HashMap<>();\n\t\t\terrors.put(\"Errors\", \"No reservations\");\n\t\t\tresponse = new ResponseEntity<>(errors,HttpStatus.NOT_FOUND);\n\t\t}else {\n\t\t\tList<ReservationDTO> reservationsDTO = new LinkedList<>();\n\t\t\tReservationDTO reservationDTO;\n\t\t\tfor(Reservation reservation : reservations) {\n\t\t\t\treservationDTO = new ReservationDTO(reservation);\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t\tresponse = new ResponseEntity<>(reservationsDTO,HttpStatus.OK);\n\t\t}\n\t\treturn response;\n\t}",
"@Service\npublic interface RestaurantService {\n\n void save();\n\n}",
"public interface BookOnAppointmentService extends IService<BookOnAppointment> {\n BookOnAppointment book(ZegnaModel model);\n\n boolean isBooked(Integer memberId);\n\n void logMember(ZegnaModel model);\n}",
"@RequestMapping(value = \"/Reservation\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<Reservation> listReservations() {\n\t\treturn new java.util.ArrayList<Reservation>(reservationService.loadReservations());\n\t}",
"AllocationPolicy getAllocationPolicy(ReservationDAO reservations);",
"public interface CorretorService {\n\n /**\n * Save a corretor.\n * \n * @param corretor the entity to save\n * @return the persisted entity\n */\n Corretor save(Corretor corretor);\n\n /**\n * Get all the corretors.\n * \n * @return the list of entities\n */\n List<Corretor> findAll();\n\n /**\n * Get the \"id\" corretor.\n * \n * @param id the id of the entity\n * @return the entity\n */\n Corretor findOne(Long id);\n\n /**\n * Delete the \"id\" corretor.\n * \n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the corretor corresponding to the query.\n * \n * @param query the query of the search\n * @return the list of entities\n */\n List<Corretor> search(String query);\n}",
"Booking createBooking(Booking newBooking) throws Exception;",
"@Override\r\n\tpublic ErrorCode reserveRoom(\r\n\t\t\tString guestID, String hotelName, RoomType roomType, SimpleDate checkInDate, SimpleDate checkOutDate,\r\n\t\t\tlong resID) {\n\t\tErrorAndLogMsg m = clientProxy.reserveHotel(\r\n\t\t\t\tguestID, hotelName, roomType, checkInDate, checkOutDate, \r\n\t\t\t\t(int)resID);\r\n\t\t\r\n\t\tSystem.out.print(\"RESERVE INFO:\");\r\n\t\tm.print(System.out);\r\n\t\tSystem.out.println(\"\");\r\n\t\t\r\n\t\treturn m.errorCode();\r\n\t}",
"private ReservationDAO getReservationDAO() {\r\n return this.reservationDAO;\r\n }",
"Rental createRental();",
"public interface LandService {\n\t//declare some methods \n\tpublic List<LandBean> getAllLands() ;\n\tpublic boolean deleteLand(int id);\n\tpublic boolean addLand(LandBean bean);\n\tboolean modifyLand(LandBean bean);\n\n}",
"@RequestMapping(value = \"/createReservation.htm\", method = RequestMethod.POST)\n\tpublic ModelAndView createReservation(HttpServletRequest request) {\n\t\tModelAndView modelAndView = new ModelAndView();\t\n\t\t\n\t\tif(request.getSession().getAttribute(\"userId\") != null){\n\t\t\n\t\t\t\n\t\t\tBank bank = bankDao.retrieveBank(Integer.parseInt(request.getParameter(\"bankId\")));\t\t\n\t\t\tUser user = userDao.retrieveUser(Integer.parseInt(request.getParameter(\"id\")));\n\t\t\t\n\t\t\t\n\t\t\tNotes notes5 = noteskDao.retrieveNotes(500);\n\t\t\tNotes notes10 = noteskDao.retrieveNotes(1000);\n\t\t\t\n\t\t\tint quantity5 = Integer.parseInt(request.getParameter(\"five\"));\n\t\t\tint quantity10 = Integer.parseInt(request.getParameter(\"thousand\"));\n\t\t\t\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId5 = new ReservationDetailsId();\n\t\t\treservationDetailsId5.setNotesId(notes5.getId());\n\t\t\treservationDetailsId5.setQuantity(quantity5);\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId10 = new ReservationDetailsId();\n\t\t\treservationDetailsId10.setNotesId(notes10.getId());\n\t\t\treservationDetailsId10.setQuantity(quantity10);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails5= new ReservationDetails();\n\t\t\treservationDetails5.setId(reservationDetailsId5);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails10= new ReservationDetails();\n\t\t\treservationDetails10.setId(reservationDetailsId10);\n\t\t\t\n\t\t\t\n\t\t\tReservation reservation = new Reservation();\t\n\t\t\treservation.setBank(bank);\n\t\t\treservation.setDate(request.getParameter(\"date\"));\n\t\t\treservation.setTimeslot(request.getParameter(\"timeslot\"));\n\t\t\treservation.setUser(user);\n\t\t\treservation.setStatus(\"incomplete\");\n\t\t\treservation.getReservationDetailses().add(reservationDetails5);\n\t\t\treservation.getReservationDetailses().add(reservationDetails10);\n\t\t\t\n\t\t\tuser.getResevations().add(reservation);\n\t\t\tuserDao.createUser(user);\n\t\t\t\n\t\t\t\n\t\t\treservationDAO.createReservation(reservation);\n\t\t\treservationDetails5.setResevation(reservation);\n\t\t\treservationDetails10.setResevation(reservation);\n\t\t\t\n\t\t\treservationDetailsId10.setResevationId(reservation.getId());\n\t\t\treservationDetailsId5.setResevationId(reservation.getId());\n\t\t\t\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails5);\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails10);\n\t\t\t\n\t\t\tmodelAndView.setViewName(\"result_reservation\");\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tmodelAndView.setViewName(\"login\");\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t\treturn modelAndView;\n\t}",
"void Planificar(Reserva unaReserva);",
"@Dao\npublic interface ReservationDao {\n\n @Query(\"SELECT * FROM reservation\")\n Single<List<Reservation>> getAllReservations();\n\n @Query(\"SELECT * FROM reservation where customer_id = :id LIMIT 1\")\n Single<Reservation> findByCustomerId(long id);\n\n @Query(\"SELECT * FROM reservation where table_no = :tableNo LIMIT 1\")\n Single<Reservation> findByTableNo(int tableNo);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insertReservation(Reservation reservation);\n\n @Insert\n long[] insertAll(List<Reservation> reservations);\n\n @Update\n void update(Reservation reservation);\n\n @Delete\n int delete(Reservation reservation);\n\n @Query(\"DELETE FROM reservation\")\n int deleteAll();\n}",
"public List<Reservation> findByReservationUser_Id(@Param(\"id\") int id);",
"public interface LocativeService {\n public List<Locative> getAll();\n public Locative add(Locative locative);\n public Locative update(Locative locative);\n public Locative findById(int id);\n public void delete(int id);\n /*public List<Locative> findByProperty(Property property);\n public List<Locative> findByCity(City city);*/\n public double garanty(int id);\n // public List<Locative> getLocativeNotInContrat();\n public int countLocative();\n public List<Locative> export(int cpt, HttpServletRequest request);\n}",
"@Repository\npublic interface ReservationRepository extends CrudRepository<ReservationModel, Integer> {\n\n ReservationModel findByLastname(String name);\n\n ReservationModel findById(int Id);\n\n List<ReservationModel> findByIdGreaterThan(int ID);\n List<ReservationModel> findByDateBetween(LocalDate date, LocalDate date2);\n List<ReservationModel> findByLastnameContaining(String letter);\n List<ReservationModel> deleteByLastname(String lastname);\n List<ReservationModel> findAll();\n\n\n}",
"public interface VehicleAssignmentService {\n\n /**\n * Get a list of vehicles assigned to the named depot.\n * \n * @param depotIdentifier The depot identifier to request vehicles for.\n */\n public ArrayList<AgencyAndId> getAssignedVehicleIdsForDepot(String depotIdentifier)\n throws Exception;\n\n /**\n * Get depot for the given vehicleId, assuming the depot has been previously requested\n * with getAssignedVehicleIdsForDepot().\n * \n * @param vehicleId The vehicle identifier to request depot for.\n */\n public String getAssignedDepotForVehicleId(AgencyAndId vehicle);\n\n}",
"OperacionColeccion createOperacionColeccion();",
"Service_Resource createService_Resource();",
"ReservationPackage getReservationPackage();",
"@PostMapping(\"reservar\")\n\tpublic ReservasEntity add(@RequestBody ReservasEntity reserva ) {\n\t\treturn reservaService.add(reserva);\n\t}",
"Sporthall() {\n reservationsList = new ArrayList<>();\n }",
"public interface ResidentialAreaService {\n public List<TMdResidentialArea> getAreaByBranchNo(String branchNo);\n\n public TMdResidentialArea selectById(String id);\n\n public PageInfo findAreaListByPage(ResidentialAreaModel residentialAreaModel);\n\n int addResidentialArea(TMdResidentialArea area);\n\n int addResidentialAreas(List<TMdResidentialArea> area);\n\n int uptResidentialArea(TMdResidentialArea area);\n\n int deleteAreaById(String id);\n\n public PageInfo searchAreaByBranchNo(BranchAreaSearch bsearch);\n\n public int areaRelBranch(BranchScopeModel rmodel);\n\n List<TMdResidentialArea> getUnDistAreas();\n\n List<TMdResidentialArea> searchAreaBySalesOrg( AreaSearchModel aModel);\n\n List<TMdResidentialArea> searchSalesOrgArea(AreaSearchModel aModel);\n\n List<TMdResidentialArea> searchAreaSaleOrgBranchNo (AreaSearchModel aModel);\n}",
"@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }",
"@Override\n public Reservation createReservation(String reservationID, Reservation newReservation) {\n Reservation reservation = new Reservation(getHostName(), getHostAddress(), getUID(), generateNextNumber());\n\n //Plan: Add new reservation into the list, then update it on firebase\n reservationList.add(reservation);\n\n //Get reference to reservation\n DatabaseReference userSpaceRef = FirebaseDatabase.getInstance().getReference().child(\"Host/\" + UID);\n return null;\n }",
"public void createResident(Resident resident);",
"public interface SponsorService {\n public Sponsor addSponsor(Sponsor sponsor) throws BaseException;\n\n public Integer updateSponsor(Sponsor sponsor) throws BaseException;\n\n public Integer updateSponsorStatusByID(Map<String,String> params) throws BaseException;\n\n public Sponsor findSponsorByID(Map<String,String> params) throws BaseException;\n\n public Page<Sponsor> findSponsorList(Map<String,String> params,PaginationParameters paginationParameters) throws BaseException;\n}",
"@GetMapping(\"/trip/{id}/reservation/add\")\n public String showReservationForm(@PathVariable(\"id\") long id, Model model) {\n \n \tReservation reservation = new Reservation();\n \treservation.setAddress(new Address());\n \tTrip trip = tripRepository.findById(id).get();\n model.addAttribute(\"reservation\", reservation);\n model.addAttribute(\"trip\", trip);\n return \"add-reservation\";\n }",
"public void setReservationId(int i) { reservationId = i; }",
"private SiteReservation save(SiteReservation reservation){\n try {\n reservation = repo.save(reservation);\n }\n catch (RuntimeException e){\n throw new DayReservedException();\n }\n return reservation;\n }",
"public interface XPMScheduleAddressService\r\n{\r\n\r\n\t/** \r\n\t * Insert a(an) XPmScheduleAddress record into XPM_SCHEDULE_ADDRESS table.\r\n\t * @param theXPmScheduleAddressModel a XPmScheduleAddress model object\r\n\t * @throws AAException\r\n\t */\r\n\tpublic void createXPmScheduleAddress(XPMScheduleAddressModel theXPmScheduleAddressModel) throws AAException, RemoteException ;\r\n\r\n\t/** \r\n\t * Get a(an) XPmScheduleAddress record from XPM_SCHEDULE_ADDRESS table by primary keys.\r\n\t * @param theXPmScheduleAddressPK a XPmScheduleAddress primary key object\r\n\t * @return theXPmScheduleAddressModel a XPmScheduleAddressModel object\r\n\t */\r\n\tpublic XPMScheduleAddressModel getXPmScheduleAddressByPK(XPMScheduleAddressPK theXPmScheduleAddressPK) throws AAException, RemoteException ;\r\n\r\n\t/** \r\n\t * Update a(an) XPmScheduleAddress record into XPM_SCHEDULE_ADDRESS table.\r\n\t * @param theXPmScheduleAddressModel a XPmScheduleAddress model object\r\n\t * @throws AAException\r\n\t * @return how many XPmScheduleAddress have(has) been updated.\r\n\t */\r\n\tpublic int updateXPmScheduleAddress(XPMScheduleAddressModel theXPmScheduleAddressModel) throws AAException, RemoteException ;\r\n\r\n\t/** \r\n\t * delete a(an) XPmScheduleAddress record from XPM_SCHEDULE_ADDRESS table.\r\n\t * @param theXPmScheduleAddressPK a XPmScheduleAddress primary key object\r\n\t * @throws AAException\r\n\t * @return how many XPmScheduleAddress have(has) been deleted.\r\n\t */\r\n\tpublic int deleteXPmScheduleAddressByPK(XPMScheduleAddressPK theXPmScheduleAddressPK,String recFulNam,Date recDate) throws AAException, RemoteException ;\r\n\r\n\t/** \r\n\t * get an XPmScheduleAddress list\r\n\t * @param theXPmScheduleAddressModel the search conditions\r\n\t * @param queryFormat to support quick query function\r\n\t * @throws AAException\r\n\t */\r\n\tpublic Collection searchXPmScheduleAddressList(XPMScheduleAddressModel theXPmScheduleAddressModel,QueryFormat queryFormat) throws AAException, RemoteException ;\r\n\r\n\t/** \r\n\t * get an XPmScheduleAddress list\r\n\t * @param sourceSeq\r\n\t * @param addressId\r\n\t * @param queryFormat to support quick query function\r\n\t * @throws AAException\r\n\t */\r\n\tpublic Collection getPMScheduleListByAddresPK(Long sourceSeq,Long addressId,QueryFormat queryFormat) throws AAException, RemoteException ;\r\n\r\n\t/** \r\n\t * get an XPmScheduleAddress list\r\n\t * @param servProvCode\r\n\t * @param PMScheduleSeq\r\n\t * @param queryFormat to support quick query function\r\n\t * @throws AAException\r\n\t */\r\n\tpublic Collection getAddressListByPMSchedulePK(String servProvCode, Long PMScheduleSeq,QueryFormat queryFormat) throws AAException, RemoteException ;\r\n\r\n\t/**\r\n * Get the ref address infomation by RefAddressModel instance.\r\n *\r\n * @param serviceProviderCode servProvCode\r\n * @param pm schedule sequence\r\n * @param objRefAddressModel address model\r\n * @return\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n\tpublic Collection getPMScheduleAddressListByAddressModel(String serviceProviderCode, Long pmScheduleSeq, \r\n\t\t\tRefAddressModel objRefAddressModel) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Calculate how many addresses are linked to a PM Schedule\r\n\t * @param serviceProviderCode Service Provide Code\r\n\t * @param pmScheduleSeq PM Schedule Sequence\r\n\t * @return\r\n\t * @throws AAException\r\n\t */\r\n\tpublic int getPMScheduleAddressCount(String serviceProviderCode, Long pmScheduleSeq) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Calculate how many PM Schedules are linked to an address \r\n\t * @param sourceSeq\r\n\t * @param addressId\r\n\t * @return\r\n\t * @throws AAException \r\n\t */\r\n\tpublic int getAddressPMScheduleCount(Long sourceSeq, Long addressId) throws AAException, RemoteException;\r\n\r\n}",
"public interface CarvingService {\n\n List<Carving> list();\n\n List<Carving> get(String name);\n\n boolean add(Carving carving);\n\n boolean delete(Carving carving);\n\n boolean update(Carving carving);\n}",
"@Repository\npublic interface ReservationRepository extends CrudRepository<ReservEntity,Integer> {\n\n List<ReservEntity> findAll();\n List<ReservEntity> findByUserId(int userId);\n\n}",
"public ListReservations() {\n\t\tsetTitle(\"Liste de Reservations\");\n\t\tsetBounds(100, 100, 450, 300);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t//contentPane.setLayout(null);\n\t\t//Appel de la couche service\n\t\t\n\t\t\t\tIService service = new ServiceImpl();\n\t\t\t\t\n\t\t\t\t//Appel de la methode ListEtudiants de la couche service.\n\t\t\t\tList<Etudiant> etudiants;\n\t\t\t\t\n\t\t\t\tetudiants = service.listEtudiantsService();\n\t\t\t\t\n\t\t\t\tetudiantModel = new EtudiantModel (etudiants);\n\t\t\t\t //Insertion des attributs de la variable Etudiant model dans la table.\n\t\t table_1 = new JTable(etudiantModel);\t\n\t\ttable_1.setBounds(160, 105, 1, 1);\n\t\t//contentPane.add(table_1);\n\t\tJScrollPane scrollPane = new JScrollPane(table_1);\n\t\t//scrollPane.setBounds(0, 264, 435, -264);\n\t\tcontentPane.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t}",
"Vehicle createVehicle();",
"Vehicle createVehicle();",
"public interface VolunteerworkService {\n Iterable<Volunteerwork> listAllVolunteerworks();\n\n Volunteerwork getVolunteerworkById(Integer id);\n\n Volunteerwork saveVolunteerwork(Volunteerwork volunteerwork);\n}",
"public interface RestaurantService {\n\n ServiceResult createRestaurant(Restaurant restaurant);\n\n ServiceResult deleteRestaurant(String restaurantId,int userId);\n\n ServiceResult getAllMyRestaurant(int page,int userId);\n\n ServiceResult getAllMyRestaurant(int userId);\n\n ServiceResult getNearRestaurant(double lng,double lat,double length);\n\n ServiceResult findByRestaurentId(String restaurantId);\n}",
"void cancelReservation(String reservationId) throws ObjectNotFoundException;",
"public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}",
"public interface EquipmentService {\r\n\r\n /**\r\n * 通过日期查询设备明细集合\r\n * @param documentNumber 单据号\r\n * @return 设备明细集合\r\n */\r\n List<EquipmentDate> getEquipment(String documentNumber);\r\n\r\n /**\r\n * 查询设备按日期生成的列表\r\n * @return 设备列表\r\n */\r\n List<EquipmentDate> listEquipment();\r\n\r\n /**\r\n * 新增设备\r\n */\r\n void addEquipment(EquipmentDate equipmentDate);\r\n\r\n /**\r\n * 查找最新单据号\r\n */\r\n List<String> getNewestId();\r\n\r\n /**\r\n * 插入设备明细\r\n */\r\n void addEquipmentItem(EquipmentItem equipmentItem);\r\n\r\n /**\r\n * 更新设备明细\r\n * @param equipmentItemList 设备明细条目\r\n */\r\n void updateEquipmentItem(List<EquipmentItem> equipmentItemList);\r\n\r\n /**\r\n * 设置下拉框数据\r\n */\r\n List<Equipment> getEquipmentNameList(Equipment equipment);\r\n\r\n /**\r\n * 查询设备\r\n */\r\n List<EquipmentDate> search(EquipmentDate equipmentDate);\r\n\r\n /**\r\n * 根据日期查询设备\r\n */\r\n List<EquipmentItem> getEquipmentDataByDate(Date dayTime,Date editTime);\r\n\r\n /**\r\n * 分页\r\n * @param page\r\n * @return Equipment列表\r\n */\r\n List<EquipmentDate> equipmentListPage(Page page);\r\n\r\n /**\r\n * 获取设备数量\r\n * @return 设备数量\r\n */\r\n int count();\r\n\r\n /**\r\n * 查询数量\r\n * @return 查询数量\r\n */\r\n int searchCount(Equipment equipment);\r\n\r\n /**\r\n * 删除设备\r\n */\r\n void deleteEquipment(String documentNumber);\r\n\r\n /**\r\n * 获取编号\r\n * @return 编号\r\n */\r\n String getDocumentNumber();\r\n\r\n Equipment getEquipmentByDocumentNumber(String documentNumber);\r\n\r\n EquipmentDate getEquipmentDateByDocumentNumber(String documentNumber);\r\n}",
"public interface IDenominationsService\n{\n Collection<Denominations> findAll();\n\n List<String> findById(int id);\n\n Denominations create(Denominations denominations);\n\n Denominations update(Denominations denominations);\n\n boolean remove(int id);\n}",
"@GetMapping(\"/reservation\")\n public List<Reservation> getReservations(@RequestParam int userID) { return reservationDataTierConnection.getReservations(userID); }",
"@Override\n void create(Cliente cliente);",
"public void reservarSitio() {\r\n\t\ttry {\r\n\t\t\tif (sitioId == null)\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Debe seleccionar sitio para la reserva.\");\r\n\t\t\telse if (!mayorEdad && (getDniRepresentante() == null || getNombreRepresentante() == null\r\n\t\t\t\t\t|| getDniRepresentante().trim().isEmpty() || getDniRepresentante().length() < 9\r\n\t\t\t\t\t|| !Funciones.isNumeric(getDniRepresentante()) || !Funciones.validacionCedula(getDniRepresentante())\r\n\t\t\t\t\t|| getNombreRepresentante().trim().isEmpty()))\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Los datos de representante son requeridos, y la cédula debe ser válida.\");\r\n\t\t\telse {\r\n\t\t\t\tif (reserva != null) {// POSEE RESERVA\r\n\t\t\t\t\tmodificarReserva();\r\n\t\t\t\t\tSystem.out.println(\"MODIFICA\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tingresarReserva();\r\n\t\t\t\t\tSystem.out.println(\"INGRESA\");\r\n\t\t\t\t}\r\n\t\t\t\tfinalizado = true;\r\n\t\t\t\treserva = mngRes.buscarReservaPorID(getDniEstudiante(), periodo.getPrdId());// CARGAR\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RESERVA\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ACTUAL\r\n\t\t\t\tcargarSitiosLibres();\r\n\t\t\t\tcargarEstudiantesSitio();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error al realizar reserva: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public ResponseEntity<Reservation> handleReservationFromWeb(ReservationInfo fromWeb) {\n Customer customer = customerService.customerExists(new Customer (fromWeb.getEmail(),fromWeb.getFullName()));\n //Find menu by name\n int menuId = menuService.findMenuByName(fromWeb.getMenuName()).getBody().getId();\n\n //Find event by name\n int eventId = eventRepo.findByEventName(fromWeb.getEventName()).getId();\n\n //Create the price\n double totalPrice = calculatePrice(fromWeb);\n\n //Create the reservation (messageId might be outdated as an attribute)\n Reservation toDb = new Reservation(0, fromWeb.getTotalPeople(), BigDecimal.valueOf(totalPrice),\n menuId, eventId, customer.getId(), null);\n\n\n /*\n\n use information from the fromWeb\n\n */\n //Check if Reservation message exists and send it\n\n //Don't actually send, just see if condition works\n messageService.sendMessageToEmail(new Message(fromWeb.sendToMail(), \"New Reservation\"));\n\n Reservation reservation = createReservation(toDb);\n int reservationId = reservationRepo.findAll().\n get(reservationRepo.findAll().size() - 1).\n getId();\n\n //Create the extras (No return type, results seen in the ManyToMany table)\n addExtrasToReservation(reservationId, fromWeb.getExtras());\n\n return new ResponseEntity<>(reservation, HttpStatus.CREATED);\n }",
"@Override\r\n\tpublic List<Reservation> rechercherReservation(Voyage v, Client c) {\n\t\treturn null;\r\n\t}",
"public List<TblReservation>getAllDataReservationByPeriode(Date startDate,Date endDate,\r\n RefReservationStatus reservationStatus,\r\n TblTravelAgent travelAgent,\r\n RefReservationOrderByType reservationType,\r\n TblReservation reservation);",
"public interface ClientService {\n\n void add(String name, String country);\n\n List<Client> findAll();\n\n Client findById(int i);\n}",
"@PostMapping(\"/reservation\")\n\tpublic String loadSeatPlan(@ModelAttribute SearchInfoEntity searchInfo, Model model) {\n\t\tSystem.out.println(\"|MTKTWEB Reservation POST CNTRL | \");\n\t\treturn \"reservation\";\n\t}",
"public interface ApplicantService {\r\n\r\n\t/**\r\n\t * Adds a new application or updates an existing application.\r\n\t * \r\n\t * @param addApplicantRequest\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tApplicantDetailsResponse addOrUpdateApplicant(AddApplicantRequest addApplicantRequest) throws ServiceException;\r\n\r\n\t/**\r\n\t * Gets applicant details along with application details by applicant id.\r\n\t * \r\n\t * @param employeeId\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tApplicantDetailsResponse getApplicantDetailsById(Integer employeeId) throws ServiceException;\r\n\r\n\t/**\r\n\t * Deletes applicant by its given applicant id.\r\n\t * \r\n\t * @param applicantId\r\n\t */\r\n\tvoid deleteApplicantById(Integer applicantId);\r\n\r\n\t/**\r\n\t * Gets all applicants present.\r\n\t * \r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tList<ApplicantDetailsResponse> getAllApplicants() throws ServiceException;\r\n\r\n\t/**\r\n\t * Gets all applicants by given years of experience and skill.\r\n\t * \r\n\t * @param skill\r\n\t * @param yearsOfExperience\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tList<ApplicantDetailsResponse> getAllApplicantsByYearsOfExperienceAndSkill(String skill, Integer yearsOfExperience)\r\n\t\t\tthrows ServiceException;\r\n\r\n\t/**\r\n\t * Gets all jobs by given years of experience and skill.\r\n\t * \r\n\t * @param skill\r\n\t * @param yearsOfExperience\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tList<JobDetailsResponse> getAllJobByYearsOfExperienceAndSkill(String skill, Integer yearsOfExperience)\r\n\t\t\tthrows ServiceException;\r\n\r\n\t/**\r\n\t * Enables applicant to apply for the given job id.\r\n\t * \r\n\t * @param applicantId\r\n\t * @param jobId\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tApplicantDetailsResponse applyJob(Integer applicantId, Integer jobId) throws ServiceException;\r\n\r\n}",
"public interface RenterService {\n List<Renter> getRentersByType(Integer type);\n\n List<Renter> getRentersByPage(Integer offset, Integer perPage);\n\n Long selectCount();\n\n Integer insertRenter(Renter renter);\n\n Integer getTotalPage(Integer perPage);\n}",
"Customers createCustomers();",
"Obligacion createObligacion();",
"public JSONResponse set(HashMap<String, String> parameters) {\n\t\tString pos = parameters.get(\"pos\"); \t\t\t\t\t\t// the point of sale code.\n\t\tString reservationid = parameters.get(\"reservationid\");\t\t// the ID of the reservation.\n\t\tString arrivaltime = parameters.get(\"arrivaltime\"); \t\t// the email address of the payer.\n\t\tString departuretime = parameters.get(\"departuretime\"); \t// the departure time.\n\t\tString emailaddress = parameters.get(\"emailaddress\"); \t\t// the guest's emailaddress.\n\t\tString servicefrom = parameters.get(\"servicefrom\");\t\t\t// the preferred service time.\n\t\tString mobilephone = parameters.get(\"mobilephone\");\t\t\t// the guest's mobile phone number.\n\t\tString notes = parameters.get(\"notes\"); \t\t\t\t\t// the reservation notes.\n\t\tString termsaccepted = parameters.get(\"termsaccepted\");\t\t// reservation terms accepted\n\n\t\tif (pos == null || pos.isEmpty() || Model.decrypt(pos).length() > 10) {throw new ServiceException(Error.pos_invalid, pos);}\n\t\tif (reservationid == null || reservationid.isEmpty() || reservationid.length() > 10) {throw new ServiceException(Error.reservation_id, reservationid);}\n//\t\tif (emailaddress == null || emailaddress.isEmpty() || !Party.isEmailAddress(emailaddress)) {throw new ServiceException(Error.party_emailaddress, emailaddress);}\n\n\t\tSqlSession sqlSession = RazorServer.openSession();\n\t\tPayWidgetItem result = new PayWidgetItem();\n\t\ttry {\n\t\t\tParty agent = JSONService.getParty(sqlSession, pos);\n\t\t\tReservation reservation = sqlSession.getMapper(ReservationMapper.class).read(reservationid);\n//\t\t\tParty customer = sqlSession.getMapper(PartyMapper.class).read(reservation.getCustomerid());\n\t\t\treservation.setArrivaltime(arrivaltime);\n\t\t\treservation.setDeparturetime(departuretime);\n\t\t\treservation.setServicefrom(servicefrom);\n\t\t\treservation.setTermsaccepted(termsaccepted == null ? null : Boolean.valueOf(termsaccepted));\n\t\t\treservation.setNotes(notes);\n\t\t\tsqlSession.getMapper(ReservationMapper.class).update(reservation);\n\t\t\tMonitorService.update(sqlSession, Data.Origin.JQUERY, NameId.Type.Reservation, reservation);\n\t\t\tsqlSession.commit();\n\t\t}\n\t\tcatch (Throwable x) {\n\t\t\tsqlSession.rollback();\n\t\t\tresult.setId(null);\n\t\t\tresult.setName(null);\n\t\t\tresult.setState(RazorWidget.State.FAILURE.name());\n\t\t\tresult.setCurrency(Currency.Code.USD.name());\n\t\t\tresult.setMessage(x.getMessage());\n\t\t}\n\t\tfinally {sqlSession.close();}\n\t\treturn result;\n\t}",
"@RequestMapping(value=\"/reservas\", method=RequestMethod.POST)\r\n\tpublic void crearReserva(@RequestBody @Valid Reserva r) throws SistemaReservaException{\n\t\tif(!reservaRpository.obtenerTraslapes(r.getFechaInicio(), r.getFechaFin()).isEmpty()){\r\n\t\t\tthrow new SistemaReservaException(); \r\n\t\t }\r\n\t\t reservaRpository.save(r);\r\n\t}",
"public interface LignePlanningFormationRS\r\n extends GenericService<LignePlanningFormation, Long>\r\n{\r\n\r\n\t@PUT\r\n @Consumes({MediaType.APPLICATION_JSON})\r\n @Produces({MediaType.APPLICATION_JSON})\r\n @Path(\"demarre\")\r\n public LignePlanningFormation demarrer(@Context HttpHeaders headers,LignePlanningFormation entity);\r\n\t\r\n\r\n}",
"@RequestMapping(value = \"/completeReservation\", method = RequestMethod.POST)\r\n public String completeReservation(ReservationRequest request,ModelMap modelMap){\n Reservation reservation= reservationService.bookFlight(request);\r\n modelMap.addAttribute(\"msg\",\"Resevation created succesfully and id is \"+reservation.getId());\r\n\r\n return \"reservation Confirmed\";\r\n }",
"public interface IRechargeSelectService {\n\n List<RechargeSelect> list();\n\n RechargeSelect getById(String id);\n}",
"void setBookReservationDao(final BookReservationDao bookReservationDao);",
"@RequestMapping(value = \"/Reservation\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic Reservation newReservation(@RequestBody Reservation reservation) {\n\t\treservationService.saveReservation(reservation);\n\t\treturn reservationDAO.findReservationByPrimaryKey(reservation.getReservationId());\n\t}"
] |
[
"0.7640538",
"0.7100174",
"0.705186",
"0.67643833",
"0.67515814",
"0.65498847",
"0.63044304",
"0.63007236",
"0.6272632",
"0.62688535",
"0.6233418",
"0.6208401",
"0.61686057",
"0.61440885",
"0.61435735",
"0.6140407",
"0.61156434",
"0.61056626",
"0.6075951",
"0.60591966",
"0.60409164",
"0.6023872",
"0.6020105",
"0.59848964",
"0.59801537",
"0.59773046",
"0.5972873",
"0.597278",
"0.59714925",
"0.59667754",
"0.59633106",
"0.5958405",
"0.59340787",
"0.59332305",
"0.5912169",
"0.59110576",
"0.5867575",
"0.586739",
"0.5853024",
"0.5830728",
"0.58118105",
"0.58091825",
"0.579843",
"0.5766444",
"0.57568145",
"0.5753777",
"0.5753384",
"0.5749434",
"0.57230854",
"0.5722175",
"0.5716865",
"0.5702445",
"0.5695398",
"0.56873363",
"0.5685922",
"0.56812066",
"0.5674928",
"0.56406367",
"0.5637015",
"0.56352353",
"0.5630563",
"0.56253564",
"0.56244636",
"0.5617231",
"0.56142825",
"0.56054866",
"0.55957186",
"0.5595239",
"0.55937356",
"0.55903065",
"0.55876964",
"0.5584343",
"0.5580301",
"0.55627096",
"0.55627096",
"0.55443007",
"0.5528707",
"0.5524785",
"0.55125153",
"0.5510729",
"0.55018044",
"0.5490592",
"0.54767996",
"0.5475977",
"0.54683614",
"0.5463388",
"0.54605114",
"0.5460393",
"0.5458197",
"0.5455761",
"0.5454297",
"0.5452739",
"0.5442197",
"0.54395103",
"0.5435128",
"0.5429823",
"0.54283905",
"0.54271626",
"0.5421621",
"0.54213154"
] |
0.7225783
|
1
|
Decodes your encoded data to tree.
|
public TreeNode deserialize(String data) {
if (data == null) return null;
String[] nodes = data.split(separator);
Queue<String> q = new LinkedList<>();
for (String n : nodes) {
q.offer(n);
}
return helper(q);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i<nums.length;++i) System.out.print(nums[i]);\n return deserialize(new DataIterator(nums), false, 0);\n }",
"public TreeNode deserialize(String data) {\n return null;\n }",
"public TreeNode deserialize(String data) {\n return deserialize(data, new int[]{0});\n }",
"public TreeNode deserialize(String data) {\n return preOrderFromString(data);\n }",
"public TreeNode deserialize(StringBuilder data) {\r\n //分成两组\r\n \tHashMap<Integer,Integer> showMapAct = new HashMap<>();\r\n \tStringBuilder[] result = data.split(\"k\");\r\n \t//deal with showMapAct\r\n \tif(result.length==1 || result[1].length()==0){\r\n \t}\r\n \telse{\r\n \t\tStringBuilder[] extraInfo = result[1].split(\",\");\r\n \t\tfor(int i = 0; i < extraInfo.length;i++){\r\n \t\t\tStringBuilder[] temp = extraInfo[i].split(\":\");\r\n \t\t\tshowMapAct.put(Integer.valueOf(temp[0]),Integer.valueOf(temp[1]));\r\n \t\t}///////\r\n \t}\r\n \tStringBuilder[] nums = result[0].split(\",\");\r\n \tint[] preOrder = new int[nums.length/2];\r\n \tint[] inOrder = new int[nums.length/2];\r\n \tinitArray(preOrder,nums,0,nums.length/2);\r\n \tinitArray(inOrder,nums,nums.length/2,nums.length);\r\n \treturn constructTree(preOrder,0,preOrder.length,inOrder,0,inOrder.length,showMapAct);\r\n }",
"public TreeNode deserialize(String data) {\n int[] ptr = { 0 };\n return parse(data, ptr);\n }",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) {\n return null;\n }\n return deserialize(data.toCharArray(), new int[] { 0 });\n }",
"public TreeNode deserialize(String data) {\n return build(new Scanner(data));\n }",
"public Node decode(TreeNode root) {\n if (root == null) return null;\n\n Node newNodeRoot = new Node(root.val, new ArrayList<>());\n\n // Decoding all the children nodes\n TreeNode sibling = root.left;\n while (sibling != null) {\n newNodeRoot.children.add(decode(sibling));\n sibling = sibling.right;\n }\n\n return newNodeRoot;\n }",
"public Node decode(TreeNode root) {\n\t\t\tif (root == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Node(root.val, de(root.left));\n\t\t}",
"public Node decode(TreeNode root) {\n if (root == null) {\n return null;\n }\n return new Node(root.val, de(root.left));\n }",
"private RealDecisionTree deserialize(byte[] bytes){\n try {\n ObjectInputStream stream = new ObjectInputStream(new ByteArrayInputStream(bytes));\n RealDecisionTree tree = (RealDecisionTree)stream.readObject();\n return tree;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public TreeNode deserialize(String data) {\n Queue<String> queue = new LinkedList<>(Arrays.asList(data.split(SP)));\n return buildTree(queue);\n }",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] node = data.split(\" \");\n int n = node.length;\n Deque<TreeNode> stack = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(node[0]));\n TreeNode x = root;\n stack.push(x);\n\n int i = 1;\n while (i < n) {\n while (i < n && !node[i].equals(\"null\")) {\n x.left = new TreeNode(Integer.parseInt(node[i++]));\n x = x.left;\n stack.push(x);\n }\n while (i < n && node[i].equals(\"null\")) {\n x = stack.pop();\n i++;\n }\n if (i < n) {\n x.right = new TreeNode(Integer.parseInt(node[i++]));\n x = x.right;\n stack.push(x);\n }\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n \n Queue<String> q = new LinkedList<>(Arrays.asList(data.split(\" \")));\n return helper(q);\n }",
"public TreeNode deserialize(String data) {\n String[] nodes=data.substring(1,data.length()-1).split(\",\");\n TreeNode root=reverseTreeNode(nodes[0]);\n Queue<TreeNode> parents=new LinkedList<>();\n TreeNode parent=root;\n boolean isLeft=true;\n for(int i=1;i<nodes.length;i++){\n TreeNode cur=reverseTreeNode(nodes[i]);\n if(isLeft){\n parent.left=cur;\n }else{\n parent.right=cur;\n }\n if(cur!=null){\n parents.add(cur);\n }\n isLeft=!isLeft;\n if(isLeft){\n parent=parents.poll();\n }\n }\n return root;\n }",
"public void decode(String name) {\n\t\tByteWriter bw = new ByteWriter(name + \"-restored\");\n\n\t\t/*\n\t\t * Read bytes until none are left.\n\t\t */\n\t\twhile (!data.eof()) {\n\t\t\tBST node = tree;\n\t\t\tString decoded = \"\";\n\t\t\tclear();\n\n\t\t\twhile (decoded.equals(\"\")) {\n\t\t\t\tgrabBits(1);\n\n\t\t\t\t/*\n\t\t\t\t * Follow the bits read from file through the Huffman tree\n\t\t\t\t * until a leaf is found. Once found, convert the code back\n\t\t\t\t * to the original bitstring.\n\t\t\t\t */\n\t\t\t\tnode = (proc.equals(\"0\")) ? node.getLeft() : node.getRight();\n\n\t\t\t\tif (node.getRight() == null && node.getLeft() == null) {\n\t\t\t\t\tdecoded = node.getData().getBitstring();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* \n\t\t\t * If EOF byte is found, quit writing to file.\n\t\t\t */\n\t\t\tif (decoded.equals(\"0000\")) {\n\t\t\t\tSystem.out.println(\"Found the null byte!\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//Write translated H. code to target as byte\n\t\t\tbw.writeByte(decoded);\n\t\t}\n\t\tbw.close();\n\t}",
"public TreeNode deserialize(String data) {\r\n // We use a queue because we can deserialse in the same way we serialised (preorder)\r\n Queue<String> dserialised = new LinkedList<>();\r\n dserialised.addAll(Arrays.asList(data.split(\",\")));\r\n return helper(dserialised);\r\n }",
"public TreeNode deserialize(String data) {\n\t\tString[] orders = data.split(\":\");\n\t\tString[] preorderString = orders[0].split(\",\");\n\t\tString[] inorderString = orders[1].split(\",\");\n\n\t\tint[] preorder = new int[preorderString.length], inorder = new int[inorderString.length];\n\t\tfor (int i = 0; i < preorderString.length; i++) {\n\t\t\tpreorder[i] = Integer.parseInt(preorderString[i]);\n\t\t\tinorder[i] = Integer.parseInt(inorderString[i]);\n\t\t}\n\t\treturn buildTree(preorder, inorder, 0, preorder.length - 1, 0, inorder.length - 1);\n\t}",
"public Node decode(TreeNode root) {\n if (root == null) {\n return null;\n }\n Node result = new Node(root.val, new ArrayList<>());\n TreeNode cur = root.left;\n while (cur != null) {\n result.children.add(decode(cur));\n cur = cur.right;\n }\n return result;\n }",
"public TreeNode deserialize(String data) {\n // write your code here\n Queue<String> queue = new LinkedList<>();\n queue.addAll(Arrays.asList(data.split(splitter)));\n return deserializeHelper(queue);\n }",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] node = data.split(\" \");\n Queue<TreeNode> qu = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(node[0]));\n qu.offer(root);\n int i = 1;\n while (!qu.isEmpty()) {\n Queue<TreeNode> nextQu = new LinkedList<>();\n while (!qu.isEmpty()) {\n TreeNode x = qu.poll();\n if (node[i].equals(\"null\")) x.left = null;\n else {\n x.left = new TreeNode(Integer.parseInt(node[i]));\n nextQu.offer(x.left);\n }\n i++;\n if (node[i].equals(\"null\")) x.right = null;\n else {\n x.right = new TreeNode(Integer.parseInt(node[i]));\n nextQu.offer(x.right);\n }\n i++;\n }\n qu = nextQu;\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n Deque<String> nodes = new LinkedList<>();\n nodes.addAll(Arrays.asList(data.substring(1, data.length() - 1).split(SPLITER)));\n \n return build_tree(nodes);\n }",
"private static void decode() throws IOException{\n File file = new File(_encodedBinFile);\n String longStringAsFile;\n \n //DataInputStream dis;\n FileWriter w;\n try {\n //dis = new DataInputStream(new FileInputStream(file));\n longStringAsFile = getLongStringAsFile();\n //dis.close();\n w = new FileWriter(\"decoded.txt\");\n Node traverser = root;\n for(int i=0; i < longStringAsFile.length(); i++){\n if(longStringAsFile.charAt(i) == '0'){\n //go to left\n if (traverser.getLeftPtr() == null){\n //fallen off the tree. Print to file\n if (i == longStringAsFile.length() - 1 ){\n w.write(((LeafNode)traverser).getData());\n }\n else{\n w.write(((LeafNode)traverser).getData() + \"\\n\");\n traverser = root.getLeftPtr();\n }\n }\n else{\n traverser = traverser.getLeftPtr();\n }\n }\n else{\n //go to right of tree\n if (traverser.getRightPtr() == null){\n //fallen off the tree. PRint to file\n if (i == longStringAsFile.length() - 1){\n w.write(((LeafNode)traverser).getData() );\n }\n else{\n w.write(((LeafNode)traverser).getData() + \"\\n\");\n traverser = root.getRightPtr();\n }\n\n }\n else{\n traverser = traverser.getRightPtr();\n }\n }\n \n }\n //dis.close();\n w.close();\n } catch (IOException ex) {\n Logger.getLogger(decoder.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public TreeNode deserialize(String data) {\r\n Deque<String> nodes = new LinkedList<>();\r\n nodes.addAll(Arrays.asList(data.split(spliter)));\r\n return buildTree(nodes);\r\n }",
"public TreeNode deserialize(String data) {\n // write your code here\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n boolean isLeftPosition = true;\n String[] stringArray = data.substring(1, data.length() - 1).split(\",\");\n if(data.equals(\"{}\")){\n \treturn null;\n }\n TreeNode root = new TreeNode(Integer.parseInt(stringArray[0]));\n queue.add(root);\n int index = 0;\n for(int i = 1; i < stringArray.length; i++){\n \tif(!stringArray[i].equals(\"#\")){\n \t\tTreeNode node = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\tSystem.out.print((new TreeNode(Integer.parseInt(stringArray[i])).equals(new TreeNode(Integer.parseInt(stringArray[i])))));\n \t\tif (isLeftPosition){\n \t\t queue.get(index).left = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\telse {\n \t\t queue.get(index).right = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\tqueue.add(new TreeNode(Integer.parseInt(stringArray[i])));\n \t}\n \tif(!isLeftPosition) index++;\n \tisLeftPosition = !isLeftPosition;\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n if(data.charAt(start)=='#'){\n start++;\n return null;\n }\n int end=start;\n while(end==data.length() || data.charAt(end)!='|'){\n end++;\n }\n String num=data.substring(start,end);\n TreeNode node=new TreeNode(Integer.valueOf(num));\n start=end;\n start++; node.left=deserialize(data);\n start++;node.right=deserialize(data);\n return node;\n }",
"public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tchar[] encodedArray = encoded.toCharArray();\n\n\t\tString decoded = \"\";\n\n\t\tLeaf current = root;\n\n\t\tfor(char c : encodedArray) {\n\n\t\t\tif (c == '0' && current.left != null) {\n\t\t\t\tcurrent = current.left;\n\t\t\t}\n\t\t\telse if(c == '1' && current.right != null){\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tchar letter = current.character;\n\t\t\t\tdecoded = decoded + letter;\n\t\t\t\tcurrent = root;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(textArray);\n\t\tSystem.out.println(decoded);\n\n\t\treturn decoded;\n\t}",
"public TreeNode deserialize(String data) {\n LinkedList<String> linkedList = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return buildTree(linkedList);\n }",
"public TreeNode deserialize(String data) {\n if (data == null) return null;\n LinkedList<String> queue = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return deserialize(queue);\n }",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] vals = data.split(\"\\\\,\");\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.valueOf(vals[0]));\n queue.offer(root);\n for (int i = 1; i < vals.length; ++i) {\n TreeNode cur = queue.poll();\n if (!vals[i].equals(\"#\")) {\n cur.left = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(cur.left);\n } \n if (!vals[++i].equals(\"#\")) {\n cur.right = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(cur.right);\n }\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n String[] token = data.split(\",\");\n int index = 0;\n Queue<TreeNode> q = new LinkedList<>();\n TreeNode root = convertTreeNode(token[index++]);\n q.add(root);\n \n while(!q.isEmpty()) {\n TreeNode node = q.poll();\n if (node == null) {\n continue;\n }\n node.left = convertTreeNode(token[index++]);\n node.right = convertTreeNode(token[index++]);\n q.offer(node.left);\n q.offer(node.right);\n }\n \n return root;\n }",
"public TreeNode deserialize(String data) {\n if (data==null || data.length()==0){\n return null;\n }\n Node n = deSerRec(data.split(\",\"),0);;\n return n.node;\n }",
"public TreeNode deserialize(String data) {\n \n \tif(!data.contains(\"(\") && !data.contains(\")\")) {\n \t\tif(data.length() == 0) {\n \t\t\treturn null;\n \t\t}else {\n \t\t\treturn new TreeNode(Integer.valueOf(data));\n \t\t}\n \t}\n \tint count = 0;\n \tint index = 0;\n \tint start = 0;\n \twhile(index < data.length()) {\n \t\tif(data.charAt(index) == '(') {\n \t\t\tcount ++;\n \t\t}\n \t\tif(data.charAt(index) == ')') {\n \t\t\tcount --;\n \t\t}\n \t\tif(count == 0) {\n \t\t\tstart = index;\n \t\t\tbreak;\n \t\t}\n \t\tindex ++;\n \t}\n \tstart ++;\n \tint temp = start + 1;\n \twhile(temp < data.length()) {\n \t\tif(data.charAt(temp) == ')') {\n \t\t\tbreak;\n \t\t}\n \t\ttemp ++;\n \t}\n \tTreeNode root = new TreeNode(Integer.valueOf(data.substring(start + 1, temp)));\n \troot.left = deserialize(data.substring(1, start - 1));\n \troot.right = deserialize(data.substring(temp + 2, data.length() - 1));\n \treturn root;\n \t\n }",
"public TreeNode deserialize(String data) {\r\n\r\n\t\tQueue<TreeNode> q = new LinkedList<>();\r\n\t\tint[] start = new int[1];\r\n\t\tint qSize = 0;\r\n\t\tTreeNode head = read(data, start);\r\n\t\tif (head == null)\r\n\t\t\treturn head;\r\n\t\tq.offer(head);\r\n\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tqSize = q.size();\r\n\r\n\t\t\tfor (int i = 0; i < qSize; i++) {\r\n\t\t\t\tTreeNode n = q.poll();\r\n\t\t\t\tif (start[0] >= data.length()) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tn.left = read(data, start);\r\n\r\n\t\t\t\tn.right = read(data, start);\r\n\t\t\t\tif (n.left != null) {\r\n\t\t\t\t\tq.offer(n.left);\r\n\t\t\t\t}\r\n\t\t\t\tif (n.right != null) {\r\n\t\t\t\t\tq.offer(n.right);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}",
"public TreeNode deserialize(String data) {\n if (\"\".equals(data)) return null;\n String dataArray[] = data.split(NODE_SEPERATOR);\n TreeNode root = new TreeNode(Integer.valueOf(dataArray[0]));\n Queue<TreeNode> q = new LinkedList<>();\n q.offer(root);\n int dataIndex = 1;\n while (!q.isEmpty()) {\n TreeNode parent = q.poll();\n if (!dataArray[dataIndex].equals(EMPTY_NODE_INDICATOR)) {\n TreeNode left = new TreeNode(Integer.valueOf(dataArray[dataIndex]));\n parent.left = left;\n q.offer(left);\n }\n dataIndex++;\n if (!dataArray[dataIndex].equals(EMPTY_NODE_INDICATOR)) {\n TreeNode right = new TreeNode(Integer.valueOf(dataArray[dataIndex]));\n parent.right = right;\n q.offer(right);\n }\n dataIndex++;\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n String[] dchar = data.split(\",\");\n return deserialize(dchar, new Index(0));\n }",
"public TreeNode deserialize(String data) {\r\n String[] ar = data.split(\":\");\r\n\r\n LinkedList<String> list = new LinkedList<>(Arrays.asList(ar));\r\n\r\n return doDeSerialize(list);\r\n }",
"public static TreeNode deserialize(String data) {\n String[] split = data.split(\"-\");\n if (split[0].length() == 2 && split[1].length() == 2) {\n return null;\n }\n split[0] = split[0].replace('[', ' ').replace(']', ' ').trim();\n split[1] = split[1].replace('[', ' ').replace(']', ' ').trim();\n String[] split1 = split[0].split(\",\");\n String[] split2 = split[1].split(\",\");\n int[] pre = new int[split1.length];\n int[] inor = new int[split2.length];\n for (int i = 0; i < pre.length; i++) {\n pre[i] = Integer.parseInt(split1[i].trim());\n }\n for (int i = 0; i < inor.length; i++) {\n inor[i] = Integer.parseInt(split2[i].trim());\n }\n return buildTree(pre, inor);\n }",
"public TreeNode deserialize(String data) {\n if (data == \"\") return null; \n \n String[] strs = data.split(\" \");\n Queue<TreeNode> q = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(strs[0]));\n q.offer(root);\n \n for (int i = 1; i < strs.length; i++) {\n TreeNode cur = q.poll(); // cannot use root, since we need return root at the end\n if (!strs[i].equals(\"null\")) { // use equals, not ==\n cur.left = new TreeNode(Integer.parseInt(strs[i]));\n q.offer(cur.left);\n }\n \n if (!strs[++i].equals(\"null\")) { // use equals, not ==\n cur.right = new TreeNode(Integer.parseInt(strs[i]));\n q.offer(cur.right);\n }\n }\n \n return root;\n }",
"public TreeNode deserialize(String tree) {\r\n\r\n // **** sanity check ****\r\n if (tree.isEmpty())\r\n return null;\r\n\r\n // **** populate the queue with the serialized data ****\r\n Queue<String> q = new LinkedList<>(Arrays.asList(tree.split(\" \")));\r\n\r\n // **** deserialize the BST ****\r\n return deserialize(q, Integer.MIN_VALUE, Integer.MAX_VALUE);\r\n }",
"public TreeNode deserialize(String data) {\n start = 0;\n TreeNode root = build(data.split(\",\",-1));\n return root;\n }",
"public TreeNode deserialize(String data) {\n// String[] nodes = data.split(\",\");\n Deque<String> nodes = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return build(nodes);\n }",
"public TreeNode deserialize(String data) {\r\n if (\"n\".equals(data)) {\r\n return null;\r\n }\r\n\r\n final String[] nodes = data.split(\", \");\r\n int i = 0;\r\n final TreeNode root = new TreeNode(Integer.parseInt(nodes[i]));\r\n final Queue<TreeNode> queue = new ArrayDeque<>();\r\n queue.add(root);\r\n i++;\r\n while (!queue.isEmpty()) {\r\n final TreeNode node = queue.poll();\r\n\r\n if (!\"n\".equals(nodes[i])) {\r\n node.left = new TreeNode(Integer.parseInt(nodes[i]));\r\n queue.add(node.left);\r\n } else {\r\n node.left = null;\r\n }\r\n i++;\r\n\r\n\r\n if (!\"n\".equals(nodes[i])) {\r\n node.right = new TreeNode(Integer.parseInt(nodes[i]));\r\n queue.add(node.right);\r\n } else {\r\n node.right = null;\r\n }\r\n i++;\r\n }\r\n\r\n return root;\r\n }",
"public CodeTree toCodeTree() {\n List<Node> nodes = new ArrayList<Node>();\n for (int i = max(codeLengths); i >= 0; i--) { // Descend through code lengths\n List<Node> newNodes = new ArrayList<Node>();\n\n // Add leaves for symbols with positive code length i\n if (i > 0) {\n for (int j = 0; j < codeLengths.length; j++) {\n if (codeLengths[j] == i)\n newNodes.add(new Leaf(j)); //Isidedame ASCII reiksmes ilgiausio kodo\n }\n }\n\n // Merge pairs of nodes from the previous deeper layer\n for (int j = 0; j < nodes.size(); j += 2) {\n newNodes.add(new InternalNode(nodes.get(j), nodes.get(j + 1))); //Sujungia lapus i InternalNodes\n }\n nodes = newNodes;\n }\n return new CodeTree((InternalNode)nodes.get(0), codeLengths.length);\n }",
"public TreeNode deserialize(String data) {\n String[] vals = data.split(\"\\\\,\");\n Queue<String> queue = new LinkedList<>();\n queue.addAll(Arrays.asList(vals));\n return deserialize(queue);\n }",
"public TreeNode deserialize(String data) {\n if (data == \"\") {\n return null;\n }\n String[] dataSplit = data.split(\",\");\n Queue<String> nodes = new ArrayDeque<String>(Arrays.asList(dataSplit));\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(nodes.poll()));\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode curNode = queue.poll();\n String left = nodes.poll(), right = nodes.poll();\n if (!left.equals(\"X\")) {\n curNode.left = new TreeNode(Integer.parseInt(left));\n queue.offer(curNode.left);\n }\n if (!right.equals(\"X\")) {\n curNode.right = new TreeNode(Integer.parseInt(right));\n queue.offer(curNode.right);\n }\n }\n return root;\n }",
"public Node deserialize(String data) {\n String subData = data.substring(1, data.length() - 1);\n if (subData.indexOf(\"(\") == -1) {\n return new Node(Integer.parseInt(subData));\n }\n System.out.println(\"the data \" + subData);\n String val = subData.substring(0, subData.indexOf(\"(\"));\n\n List<String> childData = new ArrayList<>();\n subData = subData.substring(subData.indexOf(\"(\"));\n int cnt = 0;\n int lstIndex = 0;\n for (int i = subData.indexOf('('); i < subData.length(); i++) {\n if (subData.charAt(i) == '(') {\n cnt += 1;\n } else if (subData.charAt(i) == ')') {\n cnt -= 1;\n }\n\n if (cnt == 0) {\n childData.add(subData.substring(lstIndex, i + 1));\n lstIndex = i + 1;\n }\n }\n System.out.println(childData);\n\n Node root = new Node();\n root.val = Integer.parseInt(val);\n for (int i = 0; i < childData.size(); i++) {\n root.children.add(deserialize(childData.get(i)));\n }\n return root;\n }",
"@Test\r\n public void testDeserialize() {\r\n System.out.println(\"deserialize\");\r\n String data = \"1,#,2\";\r\n BinaryTreeSerialization instance = new BinaryTreeSerialization();\r\n TreeNode expResult = null;\r\n TreeNode result = instance.deserialize(data);\r\n String s = instance.serialize(result);\r\n result = instance.deserialize(s);\r\n assertEquals(expResult, result);\r\n }",
"public TreeNode deserialize(String data) {\n //LinkedList doesnot have the constructor form array\n LinkedList<String> l = new LinkedList<>();\n //LinkedList.addAll doesnot support array, need to use Arrays.asList\n //String.split(String regex, int limit) when limit<0, return the most part of splits as possibile, delete the empty items\n l.addAll(Arrays.asList(data.split(\",\",-1)));\n TreeNode root = build(l);\n return root;\n }",
"public TreeNode deserialize(String data) {\n String[] strings = data.split(\",\");\n LinkedList<String> stack = new LinkedList<>();\n for (String s : strings) {\n stack.add(s);\n }\n return deserialize(stack);\n }",
"public TreeNode deserialize1(String tree) {\r\n \r\n // **** sanity checks ****\r\n if (tree.isEmpty())\r\n return null;\r\n\r\n // **** split the tree string ****\r\n String[] strs = tree.split(\" \");\r\n\r\n // **** deserialise BST ****\r\n return deserialize1(strs, 0, strs.length - 1);\r\n }",
"public TreeNode deserialize(String data) {\n if(data.charAt(0)=='n') return null;\n String[] array = data.split(\",\");\n TreeNode[] nodes = new TreeNode[array.length];\n for(int i = 0; i < nodes.length; i++){\n if(array[i].equals(\"null\")) nodes[i] = null;\n else nodes[i] = new TreeNode(Integer.valueOf(array[i]));\n }\n int index = 0;\n Deque<TreeNode> deque = new LinkedList<>();\n deque.addLast(nodes[index++]);\n //level-first recover\n while(!deque.isEmpty() && index<nodes.length){\n TreeNode current = deque.pollFirst();\n if(current==null) continue;\n current.left = nodes[index++];\n current.right = nodes[index++];\n deque.addLast(current.left);\n deque.addLast(current.right);\n }\n \n return nodes[0];\n }",
"public void getDecodedMessage(String encoding){\n\n String output = \"\";\n Node temp = this.root;\n for(int i = 0;i<encoding.length();i++){\n\n if(encoding.charAt(i) == '0'){\n temp = temp.left;\n\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root;\n }\n }\n else\n {\n temp = temp.right;\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root; \n }\n\n }\n }\n }",
"public TreeNode deserialize(String data) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n data=data.substring(1,data.length()-1);\n System.out.println(data);\n if(data.length()==0) return null;\n String[] datas=data.split(\",\");\n if (datas.length%2==0) {\n data=data.concat(\",null\");\n System.out.println(data);\n datas=data.split(\",\");\n }\n TreeNode[] nodes=new TreeNode[datas.length];\n nodes[0]=new TreeNode(Integer.parseInt(datas[0]));\n int p=0;\n for (int i=1;i<datas.length;i+=2){\n System.out.println(datas[i]);\n System.out.println(datas[i+1]);\n nodes[i]=datas[i].equals(\"null\")?null:new TreeNode(Integer.parseInt(datas[i]));\n nodes[i+1]=datas[i+1].equals(\"null\")?null:new TreeNode(Integer.parseInt(datas[i+1]));\n nodes[p].left=nodes[i];\n nodes[p].right=nodes[i+1];\n p++;\n while(nodes[p]==null) p++;\n }\n return nodes[0];\n // res=new ArrayList<Integer>(Arrays.asList(data.split(\",\")));\n }",
"public TreeNode deserialize(String data) {\n if (data == null || data.isEmpty()) {\n return null;\n }\n String[] nodesStr = data.split(\",\");\n TreeNode[] nodes = new TreeNode[nodesStr.length];\n for (int i = 0; i < nodes.length; i++) {\n nodes[i] = \"null\".equals(nodesStr[i]) ? null : new TreeNode(Integer.parseInt(nodesStr[i]));\n }\n int index = 1;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i] != null) {\n nodes[i].left = nodes[index++];\n nodes[i].right = nodes[index++];\n }\n }\n return nodes[0];\n }",
"public TreeNode deserialize(String data) {\n String[] arr = data.split(\",\");\n Queue<String> queue = new LinkedList<>(Arrays.asList(arr));\n return deserialize(queue);\n }",
"void decodeObject();",
"public TreeNode deserialize(String data) {\n if (data == null || data.equals(\"[]\") || data.length() <= 2) {\n return null;\n }\n\n String[] strArray = data.substring(1, data.length() - 1).split(\",\");\n Queue<String> list = new LinkedList<>();\n list.addAll(Arrays.asList(strArray));\n\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.valueOf(list.poll()));\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n\n String leftVal = list.poll();\n if (leftVal == null || leftVal.equals(\"null\")) {\n node.left = null;\n } else {\n TreeNode leftNode = new TreeNode(Integer.valueOf(leftVal));\n node.left = leftNode;\n queue.offer(leftNode);\n }\n\n String rightVal = list.poll();\n if (rightVal == null || rightVal.equals(\"null\")) {\n node.right = null;\n } else {\n TreeNode rightNode = new TreeNode(Integer.valueOf(rightVal));\n node.right = rightNode;\n queue.offer(rightNode);\n }\n }\n\n return root;\n }",
"public TreeNode deserialize(String data) {\n String[] strs = data.split(\",\");\n LinkedList<String> list = new LinkedList<>();\n for(String s:strs){\n list.add(s);\n }\n return deserialize(list);\n }",
"public TreeNode deserialize(String data) {\n if (data == null || data.length() == 0) return null;\n Queue<TreeNode> queue = new LinkedList<>();\n String[] nodes = data.split(\",\");\n TreeNode root = new TreeNode(Integer.parseInt(nodes[0]));\n queue.offer(root);\n for (int i = 1; i < nodes.length; i += 2) {\n TreeNode cur = queue.poll();\n if (!nodes[i].equals(\"null\")) {\n TreeNode left = new TreeNode(Integer.parseInt(nodes[i]));\n cur.left = left;\n queue.offer(left);\n }\n if (!nodes[i+1].equals(\"null\")) {\n TreeNode right = new TreeNode(Integer.parseInt(nodes[i+1]));\n cur.right = right;\n queue.offer(right);\n }\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n //1,2,3,null,null,4,5\n // 0 1 2 3 4 5 6 7\n // 1, 2, null, 3, null, 4, null, 5\n\n if (data == null || data.length() ==0)\n return null;\n\n StringTokenizer st = new StringTokenizer(data, \",\");\n String[] nodes = new String[st.countTokens()];\n int index =0;\n while (st.hasMoreTokens()) {\n nodes[index++] = st.nextToken();\n }\n\n TreeNode root = new TreeNode(Integer.parseInt(nodes[0]));\n Queue<TreeNode> nodeQueue = new LinkedBlockingQueue<TreeNode>();\n Queue<Integer> indexQueue = new LinkedBlockingQueue<Integer>();\n int currentIndex = 0;\n\n indexQueue.offer(currentIndex);\n nodeQueue.offer(root);\n\n while (!nodeQueue.isEmpty()) {\n\n TreeNode node = nodeQueue.poll();\n int nodeIndex = indexQueue.poll();\n int leftChild = 2 * nodeIndex + 1;\n int rightChild = 2 * nodeIndex + 2;\n TreeNode leftNode = generateNode(leftChild, nodes);\n if (leftNode != null) {\n node.left = leftNode;\n nodeQueue.offer(leftNode);\n indexQueue.offer(++currentIndex);\n }\n\n TreeNode rightNode = generateNode(rightChild, nodes);\n if (rightNode != null) {\n node.right = rightNode;\n nodeQueue.offer(rightNode);\n indexQueue.offer(++currentIndex);\n }\n }\n\n return root;\n\n }",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) {\n return null;\n }\n String[] input = data.split(\",\");\n\n int childIndex = 1;\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.valueOf(input[0]));\n queue.add(root);\n while (queue.size() > 0) {\n TreeNode node = queue.remove();\n if (!input[childIndex].equals(\"#\")) {\n node.left = new TreeNode(Integer.valueOf(input[childIndex]));\n queue.add(node.left);\n }\n if (!input[childIndex + 1].equals(\"#\")) {\n node.right = new TreeNode(Integer.valueOf(input[childIndex + 1]));\n queue.add(node.right);\n }\n childIndex += 2;\n }\n return root;\n }",
"public TreeNode deserialize(String data){\n String[] arr = data.split(\",\");\n List<String> list = new ArrayList<String>(Arrays.asList(arr));\n return desHelper(list);\n }",
"public TreeNode deserialize(String data) {\n String[] nums = data.split(\",\");\n List<String> dataNums = new ArrayList<>(Arrays.asList(nums));\n return deserializeCore(dataNums);\n }",
"public TreeNode deserialize(String data) {\n\t\tString[] nodes = data.split(\",\");\n\t\tQueue<String> queue = new LinkedList<>();\n\t\tqueue.addAll(Arrays.asList(nodes));\n\t\treturn treeDeserialize(queue);\n\t}",
"public TreeNode deserialize(String data) {\n if (data == null || data.isEmpty()) {\n return null;\n }\n\n String[] values = data.split(\",\");\n List<Integer> preorder = Arrays.stream(values)\n .map(Integer::parseInt)\n .collect(Collectors.toList());\n\n return preOrderDeserialize(preorder);\n }",
"public TreeNode deserialize(String data) {\n if (data.isEmpty()) return null;\n\n LinkedList<Integer> list = new LinkedList();\n for (String s: data.split(\",\"))\n list.add(Integer.parseInt(s));\n return doDeserialize(list, Integer.MIN_VALUE, Integer.MAX_VALUE);\n }",
"public TreeNode deserialize(String data) {\n if (data.length()==0 || data.equals(\"#\")) return null;\n String[] n = data.split(\",\");\n idx = 0;\n return helper(n);\n }",
"public TreeNode deserialize(String data) {\n \tif(data == null || data.length() == 0)\n return null;\n String[] splits = data.split(\",\");\n if(splits.length == 0)\n return null;\n Queue<TreeNode> curList = new LinkedList<TreeNode>();\n int index = 0;\n if(isNull(splits[index]))\n return null;\n TreeNode head = new TreeNode(Integer.parseInt(splits[index++])); \n curList.add(head);\n Queue<TreeNode> nextList = new LinkedList<TreeNode>();\n while(curList.size() != 0){\n while(curList.size() != 0){\n TreeNode curNode = curList.poll();\n if(isNull(splits[index])){\n curNode.left = null;\n index++;\n }\n else{\n TreeNode left = new TreeNode(Integer.parseInt(splits[index++]));\n curNode.left = left;\n nextList.add(left);\n }\n if(isNull(splits[index])){\n curNode.right = null;\n index++;\n }\n else{\n TreeNode right = new TreeNode(Integer.parseInt(splits[index++]));\n curNode.right = right;\n nextList.add(right);\n }\n }\n curList = nextList;\n }\n return head;\n }",
"public TreeNode deserialize(String data) {\n String[] arr = data.split(\",\");\n int[] index = new int[1];\n return helper(arr, index);\n }",
"public Node deserialize(String data) {\n return deserialize_helper(data, new int[]{1}, new StringBuilder());\n }",
"Object decode(String encoded);",
"public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }",
"public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }",
"public static TreeNode deserialize(String data) {\n String[] dataArray = data.split(\",\");\n Queue<String> dataQueue = new LinkedList<>(Arrays.asList(dataArray));\n return deserializeHelper(dataQueue);\n }",
"private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}",
"private static TreeNode deserializeHelper(Queue<String> dataQueue){\n \t// use equals to compare Strings\n if (dataQueue.peek().equals(\"null\")){\n dataQueue.poll();\n return null;\n }\n int val = Integer.parseInt(dataQueue.poll());\n TreeNode res = new TreeNode(val);\n res.left = deserializeHelper(dataQueue);\n res.right = deserializeHelper(dataQueue);\n return res;\n }",
"public Node readTree() {\n boolean totuusarvo = b.readBoolean();\n if (totuusarvo == true) {\n return new Node(b.readShort(), -1, null, null);\n } else {\n return new Node(\"9000\", -1, readTree(), readTree());\n }\n }",
"public Node deserialize(String data) {\n if (data.length()==0){\n return null;\n }\n int i=0;\n int temp=0;\n while (i<data.length()&&Character.isDigit(data.charAt(i))){\n temp=temp*10+data.charAt(i)-'0';\n i++;\n }\n data=data.substring(i);\n Node root=new Node(temp);\n Queue<Node> q=new LinkedList<>();\n q.offer(root);\n while (!q.isEmpty()){\n Node n=q.poll();\n int index=data.indexOf(')');\n String childrenString=data.substring(1,index);\n n.children=new ArrayList<>();//就算没有children也要建,不然lc不行\n if (childrenString!=null&&childrenString.length()!=0){\n String[] array=childrenString.split(\",\");\n if (array.length>0){\n for (String v:array){\n Node child=new Node(Integer.valueOf(v));\n n.children.add(child);\n q.offer(child);\n }\n }\n }\n data=data.substring(index+1);\n }\n return root;\n }",
"private void encodeTree(BitOutputStore output, SymbolNode root) {\n output.appendBits(8, nLeafNodes - 1);\n SymbolNode[] path = new SymbolNode[256];\n int[] pathBranch = new int[256];\n path[0] = root;\n pathBranch[0] = 0;\n int depth = 1;\n while (depth > 0) {\n int index = depth - 1;\n SymbolNode pNode = path[index];\n int pBranch = pathBranch[index];\n // pBranch is set as follows:\n // 0 we've just arrived at the node and have not yet\n // identified whether it is a branch or a leaf.\n // we have not yet traversed any of its children\n //\n // 1 we traversed down the left branch and need to traverse\n // down the right\n //\n // 2 we have traversed both branches and are on our way up\n\n switch (pBranch) {\n case 0:\n // we've just pushed the node on the stack and have not yet\n // identified whether it is a leaf or a branch.\n if (pNode.isLeaf) {\n output.appendBit(1); // terminal\n output.appendBits(8, pNode.symbol);\n BitOutputStore bitpath = encodePath(depth, path);\n pNode.nBitsInCode = bitpath.getEncodedTextLength();\n pNode.code = bitpath.getEncodedText();\n // pop the stack\n depth--;\n index--;\n // pro-forma, clear the stack variables\n pathBranch[depth] = 0;\n path[depth] = null;\n\n } else {\n output.appendBit(0); // non-terminal\n pathBranch[index] = 1;\n pathBranch[depth] = 0;\n path[depth] = pNode.left;\n depth++;\n }\n break;\n case 1:\n pathBranch[index] = 2;\n pathBranch[depth] = 0;\n path[depth] = pNode.right;\n depth++;\n break;\n case 2:\n // we're on our way up\n pathBranch[index] = 0;\n path[index] = null;\n depth--;\n break;\n default:\n // error condition, won't happen\n throw new IllegalStateException(\"Internal error encoding tree\");\n }\n }\n }",
"public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder decodedText = new StringBuilder();\n\t\tNode currentBit = huffmanTree;\n\t\tint index = 0;\n\t\t//System.out.println(currentBit.getLeft());\n\t\t//System.out.println(currentBit.getRight());\n\t\twhile (index < encoded.length()) {\n\t\t\tif (encoded.charAt(index) == '0') {\n\t\t\t\tif (currentBit.getLeft() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getLeft();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentBit.getRight() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getRight();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n if (index == encoded.length()) {\n decodedText.append(currentBit.getCharacter());\n }\n\t\t}\n System.out.println(\"EncondedText: \" + encoded);\n\t\tSystem.out.print(\"decodedText: \" + decodedText.toString());\n\t\treturn decodedText.toString();\n\n\t}",
"public MorseCodeTree()\r\n\t{\r\n\t\tbuildTree();\r\n\t}",
"void decodeObjectArray();",
"void decode (DataInputStream dis, Node [] table, Decoder decoder) {\n m_size = Decoder.readUnsignedByte (dis);\n if (m_size == 255) {\n m_size = Decoder.readUnsignedByte (dis) * 255 + Decoder.readUnsignedByte (dis) ;\n }\n //System.out.println (m_size);\n if (m_size > 0) {\n m_node = new Node [m_size];\n for (int i = 0; i < m_size; i++) {\n m_node[i] = Node.decode (dis, table, decoder);\n }\n }\n //System.out.println (\"decoding MFNode done\");\n }",
"public void decode()\n {\n if (null == escherRecords || 0 == escherRecords.size()){\n byte[] rawData = getRawData();\n convertToEscherRecords(0, rawData.length, rawData );\n }\n }",
"private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n StringBuilder result = serialiseBT(root, new StringBuilder());\n System.out.println(result.toString());\n String[] strings = result.toString().split(\",\");\n TreeNode head = deserialize(strings, new int[]{0});\n System.out.println(serialiseBT(head, new StringBuilder()));\n }",
"public static java.lang.Object decodeObject(com.webobjects.foundation.NSCoder coder){\n return null; //TODO codavaj!!\n }",
"@Override\n public String decode(String code) throws IllegalStateException {\n if (code == null || code.equals(\"\")) {\n throw new IllegalStateException(\"the code cannot be null or empty.\");\n }\n Tree iterator = root;\n decode = \"\";\n\n for (int i = 0; i < code.length(); i++) {\n if (!encodingArray.contains(code.charAt(i))) {\n throw new IllegalStateException(\"The encoded string contains illegal symbol\");\n }\n }\n\n code = decoder(code, iterator);\n\n if (code.length() != 0) {\n throw new IllegalStateException(\"there is some problem with decoding.\");\n }\n\n return decode;\n }",
"public void decode(String data) throws JSONException {\n\t\tthis.dtoObj=getObj(data, JrGxpgbillDTO.class);\n\t}",
"void loadNodeData(byte[] data) throws Exception;",
"public TreeNode encode(Node root) {\n return en(root);\n }",
"public TreeNode encode(Node root) {\n if (root == null) {\n return null;\n }\n TreeNode head = new TreeNode(root.val);\n head.left = en(root.children);\n return head;\n }",
"@Override\n public String decode(File fileName) throws IOException\n {\n HuffmanEncodedResult result = readFromFile(fileName);\n StringBuilder stringBuilder = new StringBuilder();\n\n BitSet bitSet = result.getEncodedData();\n\n for (int i = 0; bitSet.length() - 1 > i; )\n {\n Node currentNode = result.getRoot();\n while (!currentNode.isLeaf())\n {\n if (bitSet.get(i))\n {\n currentNode = currentNode.getLeftChild();\n }\n else\n {\n currentNode = currentNode.getRightChild();\n }\n i++;\n }\n stringBuilder.append(currentNode.getCharacter());\n }\n return stringBuilder.toString();\n }",
"public TreeNode encode(Node root) {\n\t\t\tif (root == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTreeNode head = new TreeNode(root.val);\n\t\t\thead.left = en(root.children);\n\t\t\treturn head;\n\t\t}",
"public void reset(final byte[] treeData) {\n \t\traw = treeData;\n \t\trawPtr = 0;\n \t}",
"public void decode(byte[] data)\n\t{\n\t\ttry\n\t\t{\n\n\t\t\tByteArrayInputStream bstream = new ByteArrayInputStream(data);\n\t\t\tDataInputStream istream = new DataInputStream(bstream);\n\t\t\tlevel = istream.readInt();\n\t\t\thp = istream.readInt();\n\t\t\tattack = istream.readInt();\n\t\t\tdefend = istream.readInt();\n\t\t\tmoney = istream.readInt();\n\t\t\texperience = istream.readInt();\n\t\t\tyellowKey = istream.readInt();\n\t\t\tblueKey = istream.readInt();\n\t\t\tredKey = istream.readInt();\n\t\t\tint can = istream.readInt();\n\t\t\t// canlookup\n\t\t\tif (can == 0)\n\t\t\t{\n\t\t\t\tcanLookup = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcanLookup = true;\n\t\t\t}\n\t\t\tcan = istream.readInt();\n\t\t\t// canjump\n\t\t\tif (can == 0)\n\t\t\t{\n\t\t\t\tcanJump = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcanJump = true;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"decode error::\" + e);\n\t\t}\n\t}",
"public Object decode(Object value) {\n\t\treturn decode(value, null, this.filter);\n\t}",
"private byte[] decode(Node root) {\n BitSet dataInBits = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, buffer.capacity()));\n int bitIndex = 0;\n\n ByteBuffer result = ByteBuffer.allocate(inputFileSize);\n\n for (int i = 0; i < inputFileSize; i++) {\n Node node = root;\n while (!node.hasValue() && i < inputFileSize) {\n boolean bit = dataInBits.get(bitIndex);\n bitIndex += 1;\n if (bit) node = node.getRightChild();\n else node = node.getLeftChild();\n }\n if (node.hasValue()) {\n result.put(node.getValue());\n }\n }\n\n // preparing byte buffer for converting to byte array\n int pos = result.position();\n result.flip();\n byte[] resultArray = new byte[pos];\n result.get(resultArray);\n return resultArray;\n }"
] |
[
"0.6894664",
"0.6808548",
"0.650279",
"0.64891165",
"0.64851105",
"0.6415433",
"0.6362339",
"0.63083476",
"0.6284537",
"0.622987",
"0.6213446",
"0.6161982",
"0.6140804",
"0.6133282",
"0.6078927",
"0.6073399",
"0.6069482",
"0.6064389",
"0.60632867",
"0.6053727",
"0.60433733",
"0.60367304",
"0.6033932",
"0.59991515",
"0.59938365",
"0.5980659",
"0.596683",
"0.5959962",
"0.59403956",
"0.5926964",
"0.59259915",
"0.5904777",
"0.5904113",
"0.58938473",
"0.58901024",
"0.5863078",
"0.585575",
"0.58412635",
"0.5839326",
"0.5826294",
"0.5817251",
"0.58140945",
"0.58085304",
"0.5806847",
"0.5799143",
"0.5789812",
"0.57792795",
"0.57764786",
"0.57683444",
"0.57327855",
"0.5725321",
"0.5709299",
"0.5705495",
"0.56862473",
"0.56824213",
"0.5681499",
"0.5657532",
"0.5635658",
"0.5633201",
"0.56222343",
"0.5621862",
"0.5619518",
"0.5614503",
"0.55898565",
"0.5585282",
"0.55714303",
"0.5560025",
"0.5553068",
"0.55436295",
"0.5540626",
"0.5527881",
"0.5520708",
"0.5510794",
"0.5509914",
"0.54495806",
"0.54390955",
"0.53605646",
"0.5349602",
"0.5349041",
"0.5328883",
"0.5313851",
"0.52906096",
"0.52453035",
"0.5230596",
"0.5184324",
"0.5172378",
"0.5150647",
"0.5116578",
"0.5107965",
"0.5099443",
"0.5095703",
"0.5091816",
"0.5067655",
"0.5054793",
"0.5025217",
"0.49959937",
"0.49791348",
"0.49754342",
"0.49738646",
"0.49662596"
] |
0.6147146
|
12
|
1 2 5 3 6 7
|
private TreeNode helper(Queue<String> q) {
String val = q.poll();
if (val.equals(N)) {
return null;
}
TreeNode node = new TreeNode(Integer.valueOf(val));
node.left = helper(q);
node.right = helper(q);
return node;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getBlockNumbers(int index);",
"@Test\n void first() {\n int[] answers = {1,2,3,4,5,1,2,3,4,5};\n int[] first = {1,2,3,4,5};\n int collect = 0;\n for (int i=0; i < answers.length ; i++) {\n if (answers[i] == first[i % 5]) {\n //0 0\n //1 1\n //2 2\n //3 3\n //4 4\n //5 0\n //6 1\n //7 2\n collect++;\n }\n }\n assertThat(collect).isEqualTo(10);\n }",
"int[] getGivenByOrder();",
"public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }",
"public static void main(String[] args) {\n int[] array = new int[6];\n array[0] = 33;\n int[] arr = { 2, 3, 5, 7 };\n \n //1 2,5 4,7\n for (int i = 0; i < arr.length; i++) {\n // for ctrl space to bring for loop\n //3,6\n System.out.println(arr[i]);\n\t}\n\n}",
"public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }",
"public static void main(String[] args) {\n int[] arr = new int[] {2,3,1,4,6};\n partition(arr, 0, arr.length - 1);\n for(int i : quickselect(arr, 0, arr.length - 1)) {\n System.out.print(i);\n }\n }",
"int getBlockNums(int index);",
"int getBlockNums(int index);",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<ArrayList<Integer>> rows = new ArrayList<>();\n\n for (int i = 0; i < n; i++) {\n int r = scan.nextInt();\n ArrayList<Integer> row = new ArrayList<>();\n\n for (int j = 0; j < r; j++) {\n row.add(scan.nextInt());\n }\n rows.add(row);\n }\n\n int q = scan.nextInt();\n for (int k = 0; k < q; k++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n try {\n System.out.println(rows.get(x - 1).get(y - 1));\n } catch (IndexOutOfBoundsException e) {\n System.out.println(\"ERROR!\");\n }\n }\n }",
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }",
"@Test\n public void testRangeMultipleIterations() {\n final int start = 1;\n final int max = 7;\n final int step = 2;\n\n final List<Integer> seq = new ArrayList<>();\n final IntegerSequence.Range r = IntegerSequence.range(start, max, step);\n\n final int numTimes = 3;\n for (int n = 0; n < numTimes; n++) {\n seq.clear();\n for (Integer i : r) {\n seq.add(i);\n }\n Assert.assertEquals(4, seq.size());\n Assert.assertEquals(seq.size(), r.size());\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint[] x = {1,2,2};\r\n\t\tint[] y = {1, 2, 1,2};\r\n\t\tint[] a = {2,1,2};\r\n\t\tint[] b = {2,2,1,2};\r\n\t\t\r\n\t\tSystem.out.println(nextToTwo(x));\r\n\t\tSystem.out.println(nextToTwo(y));\r\n\t\tSystem.out.println(nextToTwo(a));\r\n\t\tSystem.out.println(nextToTwo(b));\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint value = 1;\n\t\t int count = 7;\n\t\t\tint curr = 0;\n\t\t\t int prev = 0;\n\t\t\tint num = 0;\n\t\twhile (value <= count)\n\t\t{\n\t\t\tnum = curr + prev;\n\t\t\tSystem.out.print(num);\t\n\t\t\t\tvalue++;\n\t\t\t\tif (value == 2)\n\t\t\t\t{\n\t\t\t\t\tprev = num;\n\t\t\t\t\tcurr = 1;\n\t\t\t\t}\n\t\t\t\t\t\tprev = curr;\n\t\t\t\t\t\tcurr = num;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}",
"public static void pattern7(int input){\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\r\n\t\tint[] a = {23,12,45,98,54};\r\n\t\t\r\n\t\tint [] result = new int [6]; //{54,98,45,12,23}\r\n\t\t\r\n\t\tint [] b = new int[6];\r\n\t\r\n\t\t\r\n\t\tfor(int i =0; i<a.length; i++) {\r\n\t\t\tresult[5 - i] = a[i];\r\n\t\t}\r\n\t\tfor(int i : result) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\t\r\n\t\t//a 배열과 b배열의 값은 index 해당하는 값을 더하고 그 결과가 3의 배수이면 result 의 \r\n\t\t//해당 index에 값을 5배 하여 저장하고 그렇지 않은 index에는 10을 저장함 \r\n\t\t\r\n\t\tfor (int i=0; i<6; i++) {\r\n\t\t\tif((a[i] + b[i])%3 ==0)\r\n\t\t\t{\r\n\t\t\t\tresult[i] = a[i] + b[i]*5;\r\n\t\t\t}\r\n\t\t\telse result[i] = 10;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint arr[] = {4,3,6,1,7,2};\r\n\t\tquick(arr,0,arr.length-1);\r\n\t\tfor(int i :arr){\r\n\t\t\tSystem.out.print(i+\" \");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tint[] num = {1,1,5};\r\n\t\tnextPermutation(num);\r\n\t\tfor(int n : num)\r\n\t\t\tSystem.out.print(n + \" \");\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tfor(int i = 1;i<= 7; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<= i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tfor(int i = 6; i>=1; i--)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<=i; j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void Series() {\n\t\tint n=8,i=1,k=2,count=0;\n\t\tSystem.out.print(n+\" \");\n\t\twhile (count<5) {\n\t\t\tn=n*i;//12\n\t\t\tn=n-k;//9\n\t\t\tSystem.out.print(n+\" \");//9\n\t\t\ti++;\n\t\t\tk++;\n\t\t\tcount++;\n\t\t}\n\t\t/*System.out.println(n);//8\n\t\tn=n*1;//8\n\t\tn=n-2;//6\n\t\t\n\t\tSystem.out.println(n);//6\n\t\tn=n*2;//12\n\t\tn=n-3;//9\n\t\tSystem.out.println(n);//9\n\t\tn=n*3;//27\n\t\tn=n-4;//23\n\t\tSystem.out.println(n);\n\t\tn=n*4;//12\n\t\tn=n-5;*/\n\t\t\n\t\t/*System.out.println(n);\n\t\tn=n*5;//12\n\t\tn=n-6;\n\t\tSystem.out.println(n);*/\n\t\t\n\t}",
"public static void main(String[] args) {\n int N = 100, i, j, min;\n System.out.println(\"Value of N: \" + N);\n\n for (i = 1; i <= N; i++)\n {\n for (j = 1; j <= N; j++)\n {\n min = i < j ? i : j;\n System.out.print(N - min + 1);\n }\n System.out.println();\n\n\n\n\n }\n}",
"public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint c=num*2-1;//5\r\n\t\tfor(int j=0 ; j< c ; j++){//j: 0, 1, 2,3 4\r\n\t\t\t\r\n\t\t\tif(j<num) {///j: 0, 1, 2\r\n\t\t\t\t// 1 ,2,3 : 0+1, 1+1, 2+1\r\n\t\t\t\tfor(int i=0; i<j+1 ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}else {//j: 3,4\r\n\t\t\t\t//2,1 : 5-3, 5-4\r\n\t\t\t\tfor(int i=0; i<c-j ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint a=4;\r\n\t\tint b=16;\r\n\t\tfor (int i=1; i<5; i++){\r\n\t\t\tfor (int j=b; j>=a; j=j-4){\r\n\t\t\t\tSystem.out.print(j);\r\n\t\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\t}\r\n\t\t\tb--;\r\n\t\t\ta--;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n ArrayList<ArrayList<Integer>> arrlist=new ArrayList<ArrayList<Integer>>();\n for(int i=1;i<=n;i++)\n {\n ArrayList<Integer> row=new ArrayList<Integer>();\n int d=sc.nextInt();\n for(int j=1;j<=d;j++)\n {\n row.add(sc.nextInt());\n }\n arrlist.add(row);\n }\n\n //ArrayList<Integer> arr=new ArrayList<Integer>();\n int q=sc.nextInt();\n for(int i=0;i<q;i++)\n {\n int x=sc.nextInt();\n int y=sc.nextInt();\n try\n {\n\n System.out.println(arrlist.get(x-1).get(y-1));\n }\n catch(Exception e)\n {\n System.out.println(\"error\");\n }\n }\n\n\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<ArrayList<Integer>> lines = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n int l = sc.nextInt();\n ArrayList<Integer> line = new ArrayList<>();\n for (int j = 0; j < l; j++) {\n line.add(sc.nextInt());\n }\n lines.add(line);\n }\n\n int k = sc.nextInt();\n for (int i = 0; i < k; i++) {\n int lineNumber = sc.nextInt();\n int elementNumber = sc.nextInt();\n\n if(lines.get(lineNumber - 1).size() >= elementNumber){\n System.out.println(lines.get(lineNumber - 1).get(elementNumber - 1));\n }else{\n System.out.println(\"ERROR!\");\n }\n }\n }",
"public void swapAdjacentElements(int[] values)\n {\n // your work here\n\n\n\n\n }",
"abstract int[] crossOver();",
"public static void main(String[] args) {\n\t\tint a[]= {8,4,1,5,9,2};\r\n\t\tint n=6;\r\n\t\tfor(int i=1;i<n;i++)\r\n\t\t{\r\n\t\t\tint temp=a[i];\r\n\t\t\tint j=i-1;\r\n\t\t\twhile(j>=0 && a[j]>temp)\r\n\t\t\t{\r\n\t\t\t\ta[j+1]=a[j];\r\n\t\t\t\tj--;\r\n\t\t\t}\r\n\t\t\ta[j+1]=temp;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(a[i]+\" \");\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t int a[]= {1,2,3,4,6};\n\t int sum = 0;\n\t for(int i =0; i<a.length; i++){\n System.out.println(sum);\n\t sum = sum + a[i];\n\t int sum1= 0;\n\t for(int j=1; j<=6; j++) {\n\t \t\n\t }\n\t \n\t }\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tfor(int i=1; i<=4; i++) {\n\t\t\tfor(int j=1; j<=4; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//1, 1 2, 1 2 3\n\t\tfor(int i=1; i<=5; i++) {\n\t\t\tfor(int j=1; j<=i; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//5, 5 4, 5 4 3.....\n\t\tfor(int i=5; i>=1; i--) {\n\t\t\tfor(int j=5; j>=i; j--) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//5, 4 4, 3 3 3.....\n\t\t\t\tfor(int i=5; i>=1; i--) {\n\t\t\t\t\tfor(int j=5; j>=i; j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.print(i+ \" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\n\t}",
"private static int[] p1(int[] ar, int n) {\n int[] p1 = new int[n];\n Arrays.fill(p1, -1);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] <= ar[st.peek()]) {\n st.pop();\n }\n if (st.size() != 0) {\n p1[i] = st.peek();\n }\n st.push(i);\n }\n return p1;\n }",
"public static void main(String[] args) {\n\t\tint c = 7;\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(c+\" \");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint a[]= {2,5,7,8,4,6,3};\n\t\tint start=0;\n\t\tint end=a.length-1;\n\t\tint minindex=0;\n\t\tint maxindex=0;\n\t\twhile(end>start)\n\t\t{\n\t\t minindex=start;\n\t\t maxindex=end;\n\t\t for (int i =start; i <=end; i++) \n\t\t {\n\t\t\tif(a[i]<a[minindex])\n\t\t\t{\n\t\t\t\tminindex=i;\n\t\t\t}\n\t\t\tif(a[i]>a[maxindex])\n\t\t\t{\n\t\t\t\tmaxindex=i;\n\t\t\t}\n\t\t }\n\t\t \n\t\tint temp=a[end];\n\t\t a[end]=a[maxindex];\n\t\t a[maxindex]=temp;\n\t\t temp=a[start];\n\t\t a[start]=a[minindex];\n\t\t a[minindex]=temp;\n\t\t start++;end--;\n\t\t}\n\t\tSystem.out.println(Arrays.toString(a));\n\n\t}",
"public static void main(String[] args)\n {\n int[][] ints;\n int[][] ints1;\n\n\n\n\n ints = new int[][]{\n {1, 2, 3, 4, 5, 6, 7, 8, 9},\n {10, 11, 12, 13, 14, 15, 16, 17, 18},\n {19, 20, 21, 22, 23, 24, 25, 26, 27},\n {28, 29, 30, 31, 32, 33, 34, 35, 36},\n {37, 38, 39, 40, 41, 42, 43, 44, 45},\n {46, 47, 48, 49, 50, 51, 52, 53, 54},\n {55, 56, 57, 58, 59, 60, 61, 62, 63},\n {64, 65, 66, 67, 68, 69, 70, 0, 71},\n {73, 74, 75, 76, 77, 78, 79, 80, 72}\n };\n\n ints = new int[][]{\n {1,0},\n {2,3},\n };\n ints1 = new int[][]{\n {1, 2, 3},\n {4, 5, 6},\n {7, 0, 8}\n };\n\n ints1 = new int[][]{\n {1, 2, 3},\n {4, 8, 5},\n {7, 0, 6}\n };\n ints = new int[][]{\n {5, 0, 4},\n {2, 3, 8},\n {7,1,6}\n };\n ints1 = new int[][]{\n {1, 6, 4},\n {7, 0, 8},\n {2, 3, 5}\n };\n\n ints1 = new int[][]{\n {6, 0, 5},\n {8, 7, 4},\n {3, 2, 1}\n };\n ints1 = new int[][]{\n {11, 0, 4, 7},\n {2, 15, 1, 8},\n {5, 14, 9, 3},\n {13, 6, 12, 10 }\n };\n\n\n ints1 = new int[][]{\n {14, 13, 5, 3},\n {0, 1, 8, 12},\n {6, 2, 4, 10},\n {11, 9, 15, 7 }\n };\n\n ints1 = new int[][]{\n {8, 4, 7},\n {1,5,6},\n {3,2,0}\n };\n\n\n ints1 = new int[][]{\n {8, 4, 7},\n {1,5,6},\n {3,2,0}\n };\n\n\n ints = new int[][]{\n {1, 2, 3},\n {4, 6,5},\n {7, 8,0}\n };\n ints1 = new int[][]{\n {8, 4, 7},\n {1,5,6},\n {3,2,0}\n };\n ints = new int[][]{\n {1,0},\n {2,3},\n };\n System.out.println(System.currentTimeMillis());\n Board board = new Board(ints);\n Solver solution = new Solver(board);\n\n for (Board el :solution.solution())\n {\n System.out.println(el);\n }\n System.out.println(System.currentTimeMillis());\n\n\n }",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\tfor(int i=5; i>=1; i--) {\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor(int j=5; j>=1; j--) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j);\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int i=5; i>1; i--) {\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor(int j=5; j>1; j--) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.print(i);\n\t\t}\n\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint total = sc.nextInt();\n\t\tint lastAns = 0;\n\t\tList<List<Integer>> list = new ArrayList();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(new ArrayList());\n\t\t}\n\t\tfor (int i = 0; i < total; i++) {\n\t\t\tint q = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint seq = (x ^ lastAns) % N;\n\t\t\tList<Integer> seqList = list.get(seq);\n\t\t\t\n\t\t\tswitch (q) {\n\t\t\t\tcase 1:\n\t\t\t\t\tseqList.add(y);\n\t\t\t\t\tlist.set(seq, seqList);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tlastAns = seqList.get(y % seqList.size());\n\t\t\t\t\tSystem.out.println(lastAns);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\nint a1=0;\r\nint a2=1;\r\nint a3=a1+a2;\r\nfor(int row=1;row<=5;row++)\r\n{\r\n\tfor(int col=1;col<row;col++)\r\n\t{\r\n\t\tSystem.out.print(a3+\" \");\r\n\t\ta3=a1+a2;\t//0+1=1\t\t1+1=2 \r\n\t\ta1=a2;\t\t//0=1 1=1\t2=2\r\n\t\ta2=a3;\t\t//1=1 1=1\t1=1\r\n\t}\r\n\tSystem.out.println();\r\n}\r\n\t\r\n}",
"private static int[] p2(int[] ar, int n) {\n int[] p2 = new int[n];\n Arrays.fill(p2, n);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] < ar[st.peek()]) {\n p2[st.peek()] = i;\n st.pop();\n }\n st.push(i);\n }\n return p2;\n }",
"public static void main(String[] args) {\n int[] nums={5, 6, 2};\n System.out.println(groupSum6(0, nums, 8));\n }",
"@Test\n public void test1And2And6() {\n int[] numbers = {1, 2, 6};\n assertTrue(obj.firstLast6(numbers));\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tint n =5;\n\t\tfor (int i = 0; i <= n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tlist.add(a);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i <list.size(); i++) {\n\t\t\tSystem.out.print(list.get(i)+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = list.size()-1; i >=0; i--) {\n\t\t\tSystem.out.print(list.get(i)+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"E__F___L\");\n\t\tfor(int val : list) {\n\t\t\tSystem.out.print(val+\" \");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\tfor (int i = 1; i <= 7; i++) { //outer loop for 7 rows\n\t\t String print=\"\";\n\t\t for(int j = 1; j <= i; j++) { //inner loop\n\t\t print=print+i;\n\t\t }\n\t\t System.out.println(print);\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint i=0;\r\n\t\tint j=0;\r\n\t\tint cnt=0;\r\n\t\t\r\n while(true) {//무한 반복\r\n i=(int)(Math.random()*6)+1;//첫번째 주사위 1<=i<=6\r\n j=(int)(Math.random()*6)+1;//두번째 주사위 1<=j<=6\r\n if(i+j==5) break;//무한 반복을 빠져나가는 조건\r\n cnt++;\r\n }\r\n \r\n System.out.println(\"(\"+i+\",\"+j+\")\");\r\n\t System.out.println(\"총반복횟수:\"+cnt);\r\n\t\t\r\n\t}",
"int toIndex(int x, int y);",
"public static void main(String[] args) {\n\t\t\n\t int a, b;\n\t int arr[] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 };\n\t int range[][]={{3,7}, {4,6}, {5,5}};\n\n\t for (int i = 0; i < range.length; i++){\n\t \t\n\t \ta = range[i][0];\n\t \tb = range[i][1];\n\n\t\t\tfor(int j = 0; j < (b-a)/2; j++){\n\t\t\t\tint temp = arr[a-1+j];\n\t\t\t\tarr[a-1+j] =arr[b-1-j]; \n\t\t\t\tarr[b-1-j] = temp;\n\t\t\t}\n\t }\n\n\t\tSystem.out.print (\"결과 : \"+\"[ \");\n\t\t\n\t\tfor(int i=0; i<arr.length ; i++ ) {\n\t\t\tSystem.out.print (arr[i] + \" \" );\n\n\t\t}\n\t\tSystem.out.print (\"]\");\n\t}",
"public static void main(String...args){\n\t\tIntStream.rangeClosed(2, 5).forEach(x -> System.out.println(x));\n\t\tSystem.out.println(IntStream.rangeClosed(2, 5).forEach(x -> System.out.println(x)));\n\t}",
"private static void test4() {\n int[] numbers = {4, 5, 1, 6, 2, 7, 2, 8};\n int[] expected = {1, 2};\n\n test(\"Test4\", numbers, expected);\n }",
"public static void main(String[] args) {\n\t\tint first;\n\t\tint second;\n\t\tfor (first=0; first <=5; first++) {\n\t\t\tfor (second=0; second<=5;second++) {\n\t\t\t\tSystem.out.printf(\"%d%d\\t\",first,second);//is there any kind of methode u can represent with 00\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint a[] = {1,2,3,4,5};\n\t\tint la = a.length;\n\t\tint b [] = {6,7,8,9,10};\n\t\tint lb = b.length;\n\t\tint c [] = new int[la+lb];\n\t\tint lc = c.length;\n\t\tint pos=la;\n\t\tfor(int i =0 ;i<la;i++)\n\t\t{\n\t\t\tc[i]=a[i];\n\t\t\t//pos=i+1;\n\t\t}\n\t\t//pos = la;\n\t\tfor(int j= 0;j<lb;j++)\n\t\t{\n\t\t\tc[pos]=b[j];\n\t\t\tpos++;\n\t\t}\n for(int k = 0;k<lc;k++)\n {\n \t System.out.println(c[k]);\n }\n\t}",
"public static void findFirstMultipleOfSixViaStreams(List<Integer> numbers){\n\n int abc = 9;\n numbers.stream().filter(x -> {\n System.out.println(\"x = \" + x);\n return x % 6 == 0;\n }).map(x -> x + abc).findFirst();\n// Optional<Integer> firstSixMultiple = numbers.stream()\n// .filter(x -> {\n// System.out.println(\"x = \" + x);\n// return x % 6 == 0;\n// })\n// .findFirst();\n\n// int ans = firstSixMultiple.orElse(-1);\n\n// System.out.println(ans);\n }",
"public static void main(String[] args) {\n\t\tint[] nums1 = { 1,2,3,0,0,0 };\n\t\tint[] nums2 = { 2,5,6 };\n\t\tint n = 3, m = 3;\n\t\tint[] res = new int[n+m];\n\t\tint index = 0;\n\t\tint i,j;\n\t\tfor (i = 0, j = 0; i<m && j<n ;) {\n\n\t\t\tif (nums1[i] <= nums2[j]) {\n\t\t\t\tres[index] = nums1[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t\telse if (nums2[j] <nums1[i]) {\n\t\t\t\tres[index] = nums2[j];\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tindex++;\n\t\t}\n//\t\tSystem.out.println(i);\n//\t\tSystem.out.println(j);\n\t\tif(i<m)\n\t\t{\n\t\t\tfor(int k = i ; k < m;k++)\n\t\t\t{\n\t\t\t\tres[index] = nums1[k];\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(j<n)\n\t\t{\n\t\t\tfor(int k = j ; k < n;k++)\n\t\t\t{\n\t\t\t\tres[index] = nums2[k];\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int l = 0; l < n + m; l++)\n\t\t{\n\t\t\tnums1[l] = res[l];\n\t\t\t//System.out.println(nums1[l]);\n\t\t\tSystem.out.println(res[l]);\n\t\t}\n\t\t\t\n\t}",
"int getRange();",
"public static void main(String[] args) {\n\t\tint a[] = {2,5,4,3,6,7};\r\n\t\tint sum = 0;\r\n\t\tint b;\r\n\t\tfor(int i=0; i < a.length; i++) // Gonna loop 5 times\r\n\t\t{\r\n\t\t\t//System.out.println(a[i]);\r\n\t\t sum = sum + a[i];\r\n\t\t System.out.println(a[i]);\r\n\t\t if (a[i] == 6)\r\n\t\t {\r\n\t\t\t //System.out.println(i);\r\n\t\t\t // break;\r\n\t\t }\r\n\t\t //System.out.println(sum);\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(sum);\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint i, j;\n\n\t\tfor (i = 1; i <= 5; i++) {\n\n\t\t\tfor (j = 1; j <= i; j++) {\n\n\t\t\t\tSystem.out.print(j);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n\t\tint n = new.nextInt();\n\t\tint v1=1,v2=0,v3=0;\n\t\tfor(int a=n;a>=1;a--){\n\t\t\tv3=v2+v1;\n\t\t\tSystem.out.print(v3+\"\\t\");\n\t\t\tv1=v2;\n\t\t\tv2=v3;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t int m= 9, n= 1,x=0 ;\n\t\t \n\t\t while (m>n) {\n\t\t\t m--;\n\t\t\t n+=2;\n\t\t\t x+=m+n;\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t \n\t\t }\n\t\t System.out.println(x);\n\t\t \n\t\t \n\t\t \n\t\t // a) 11\n\t \t// b) 13\n //c) 23\n //d) 36\n //e) 50\n\t\t\n\n\t}",
"public int[] numbers();",
"public static void main(String[] args) {\n\t\tint[] arr= {6,9,5,7,4};\r\n\t\t//int[] arr= {3,9,9,3,5,7,2};\r\n\t\t//int[] arr= {1,5,3,6,7,6,5};\r\n\t\tint[] tmp=solution(arr);\r\n\t\tfor(int i=0;i<tmp.length;i++)\r\n\t\t\tSystem.out.print(tmp[i]+\" \");\r\n\t}",
"void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }",
"int order();",
"public static void m7() {\r\n\tchar ch ='A';\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\tfor(int j =1;j<=i;j++)\r\n\t\t{\r\n\t\t\tSystem.out.print(ch);\r\n\t\t}\r\n\t\tch++;\r\n\t\tSystem.out.println();\r\n\t}\r\n}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint a[]= {4 ,3 ,7 ,8 ,6 ,2 ,1};\r\n\t\t\r\n\t\tArrayList al=new ArrayList();\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tif(i+1<a.length)\r\n\t\t\t{\r\n\t\t\tif(a[i]<a[i+1])\r\n\t\t\t{\r\n\t\t\t\tal.add(a[i+1]);\r\n\t\t\t\tal.add(a[i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tal.add(a[i+1]);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(al);\r\n\t}",
"public static void main(String args[]){\n int int2DArr[][] = new int[4][5];\n int k=0;\n for (int i=0;i<4;i++) {\n for (int j=0;j<5;j++){\n int2DArr[i][j] = k++;\n }\n }\n for (int i=0;i<4;i++) {\n for (int j=0;j<5;j++){\n System.out.print(int2DArr[i][j] + \" \");\n }\n System.out.println();\n }\n }",
"public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }",
"void runTime1() {\n\t\tint[]numList= {45,78,99};\n\t\tSystem.out.println(numList[5]);\n\t}",
"public static void main(String[] args) {\r\n\t\tint numRows = 15;\r\n\t\tfor(List<Integer> list : generate(numRows)){\r\n\t\t\tfor( Integer i : list ){\r\n\t\t\t\tSystem.out.print(i + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"private int parent(int i){return (i-1)/2;}",
"private int h1(int p){\n\t\t return p % table.length;\n\t}",
"static void mostrar(int a, int b){\n\tint mayor = a > b ? a : b; //asignamos a mayor el mayor entre a y b\n\tint menor = a < b ? a : b; //y en menor el mas pequeños entre a y b\n\t\t\n\tfor (int i = menor; i <= mayor; i++) { //siempre iremos del menor al mayor\n \tSystem.out.println(i);\n\t}\n\t\t\n\t}",
"public static void main(String[] args) \n\t{\n\t\t int i=20, j=40;\n\t\t int k=0;\n\t\t ArrayList<Integer> l1=new ArrayList<Integer>();\n\t\t ArrayList<Integer> l2=new ArrayList<Integer>();\n\t\t for(int a=i;a<=j;a++){\n\t\t int count=0;\n\t\t for(int b=2;b<a;b++)\n\t\t if(a%b==0)\n\t\t count++;\n\t\t if(count==0)\n\t\t l1.add(a); }\n\t\t for(int e=i;e<=j;e++)\n\t\t l2.add(e);\n\t\t l2.removeAll(l1);\n\t\t for(int d=0;d<l2.size();d++)\n\t\t k=k+l2.get(d);\n\t\t \n\t\tSystem.out.println(k);\n\t}",
"@Test\n public void findFirstSquareThatIsDivisibleBy5() {\n // HINT: IntStream.range(1, 100) creates a stream 1, 2, ... 99\n final int first = 0; // TODO\n\n assertEquals(25, first);\n }",
"private static List<Integer> nextInt() {\n\t\tRandom rnd = new Random();\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tfor (;;) {\n\t\t\tfinal int r = rnd.nextInt(5);\n\t\t\tif (!l.contains(r)) {\n\t\t\t\tl.add(r);\n\t\t\t}\n\t\t\tif (l.size() == 5)\n\t\t\t\treturn l;\n\t\t}\n\t}",
"public static void main(String[] args) {\n IntStream.range(0, 10)\n .forEach(System.out::print);\n\n System.out.println();\n\n // print the range of elements but skip first 5\n IntStream.range(0, 10)\n .skip(5)\n .forEach(System.out::print);\n\n // Integer stream with sum\n System.out.println(\n IntStream\n .range(0, 10)\n .sum());\n\n }",
"public static void main(String[] args) {\n\t\tfor(int i = 1, j = i + 10; i < 5; i++, j = i * 2) \r\n\t\t{\r\n System.out.println(\"i= \" + i + \" j= \" + j);\r\n\t\t}\r\n\t\tfor(int i=0, j=i+99; i<101; i++, j=i/2 ) {\r\n\t\t\tSystem.out.println(\"i= \" +i + \" j= \"+j);\r\n\t}\r\n\t\t\r\n\t\tint n=0;\r\n\t\twhile(n<10)\r\n\t\t{ System.out.println(n);\r\n\t\tn++;\r\n\t\t}\r\n\t\t\r\n//\t int a = 1;\r\n//\t int b = 2;\r\n//\t int c = 3;\r\n//\t \r\n//\t a += 5;\r\n//\t b *= 4;\r\n//\t c += a * b;\r\n//\t c %= 6;\r\n//\t System.out.println(\"a = \" + a);\r\n//\t System.out.println(\"b = \" + b);\r\n//\t System.out.println(\"c = \" + c);\r\n\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint [] queue1 = {4,7,2,9,12,35,8,49};\r\n\t int [] queue2 = {24,53,6,19,41,71,1,68,11,32,99}; \r\n\t int[]mergeQ = new int[queue1.length + queue2.length];\r\n\r\n\t for(int i=0; i < queue1.length; i++ )\r\n\t {\r\n\r\n\t mergeQ[i*2] = queue1[i]; \r\n\t mergeQ[i*2+1] = queue2[i]; \r\n\t }\r\n\t for(int i=0; i < mergeQ.length; i++) { \r\n\t System.out.print(mergeQ[i]+\",\");\r\n\t }\r\n\t}",
"int main()\n{\n int n;\n cin >>n;\n int m = 11;\n for(int i=0; i<n; i++){\n cout << m*m << \" \";\n m += 4;\n }\n}",
"public static void main(String[] args) {\n\t\tint []a = {1,2,3,4,5,6};\n\t\tint i = a.length - 1;\n\t\t\n\t\twhile(i>=0) {\n\t\t\tSystem.out.println(a[i]); //continous loop of 6\n\t\t\ti--; //ye loop ko break krega from 6 to 1\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint[] a = {2, 1, 3, 1, 5, 7, 9};\n\t\tnextGreaterElem(a);\n\t}",
"List<Integer> getNeighbors(int x);",
"private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }",
"public static void main(String[] args) {\n\t\tint arr[] = { 0, 3, 7, 6, 4, 0, 5, 5, 5 };\n\t\tplusOne(arr);\n\t\tplusOne1(new ArrayList<Integer>(Arrays.asList(0, 3, 7, 6, 4, 0, 5, 5, 5)));\n\t}",
"public static void main(String[] args) {\n ArrayList<Integer> items = new ArrayList<>();\n items.add(1);\n items.add(2);\n items.add(3);\n items.add(4);\n items.add(5);\n items.add(6);\n items.add(7);\n items.add(8);\n\n\n printArray(items);\n }",
"int main()\n{\n int n,p=0,n2=2;\n cin>>n;\n if(n>0)\n cout<<p<<\" \";\n for(int i=1;i<n;i++)\n {\n p=p+n2;\n cout<<p<<\" \";\n if(i%2==1)\n \tn2=n2+4;\n }\n \n}",
"private static void skipByExample(List<Integer> numbers) {\n\t\tList<Integer> skippedNumbers = numbers.stream().skip(5).collect(Collectors.toList());\r\n\t\tint fifthNumber = numbers.stream().skip(5 - 1).findFirst().orElse(0);\r\n\t\tList<Integer> firstFiveNumber = numbers.stream().limit(5).collect(Collectors.toList());\r\n\t\tSystem.out.println(skippedNumbers); // Output: [6, 7, 8, 9, 10]\r\n\t\tSystem.out.println(\"5th number = \" + fifthNumber);\r\n\t\tSystem.out.println(\"Limit of 5 number = \" + firstFiveNumber);\r\n\t}",
"public static void main(String args[]){\n InputReader reader = new InputReader(System.in);\n int size = reader.readInt();\n\n int[] arr = new int[size];\n int[] nge = new int[size];\n Stack<Integer> stack = new Stack<>();\n\n for(int i=0; i<arr.length; i++){\n arr[i] = reader.readInt();\n }\n\n for(int i=arr.length-1; i>=0; i--){\n int element = arr[i];\n if(!stack.isEmpty()){\n while(!stack.isEmpty() && stack.peek() <= element){\n stack.pop();\n }\n }\n nge[i] = stack.isEmpty()? -1 : stack.size()-1;\n stack.push(element);\n }\n\n\n for(int i=0; i < arr.length; i++){\n System.out.print(nge[i]+\" \");\n }\n\n }",
"public static void main(String[] args) {\n\t\tint number1 =0;\r\n\t\tint number2 =1;\r\n\t\tint number3,limit = 10;\r\n\t\t\r\n\t\tSystem.out.print(number1+\" \"+number2);\r\n\t\tint i=2;\r\n\t\tdo \r\n\t\t{\r\n\t\t\tnumber3= number1+number2;\r\n\t\t\tSystem.out.print(\" \"+number3);\r\n\t\t\tnumber1=number2;\r\n\t\t\tnumber2=number3;\r\n\t\t\ti++;\r\n\t\t}while(i<limit);\r\n\t}",
"public void nextPermutation(int[] nums) {\n // if only 1 num or less, no need to do anything.\n if (nums == null || nums.length <= 1) {\n return;\n }\n // inverse index, start with 2nd lastNum.\n int inverseIndex = nums.length - 2;\n // search for ip. Found / dir where leftNum < rightNum.\n while (inverseIndex >= 0 && nums[inverseIndex] >= nums[inverseIndex + 1]) {\n inverseIndex--;\n }\n // if found inversePoint, now find smallest # > IP# on right subarr.\n if (inverseIndex >= 0) {\n int minLargerIndex = inverseIndex + 1;\n for (int i = minLargerIndex; i < nums.length; i++) {\n // num > IP#, <= curMin. if == curMin, we want the rightmost smallest.\n if (nums[i] <= nums[minLargerIndex] && nums[i] > nums[inverseIndex]) {\n minLargerIndex = i;\n }\n }\n // swap Ip with smallest # > ip.\n int temp = nums[inverseIndex];\n nums[inverseIndex] = nums[minLargerIndex];\n nums[minLargerIndex] = temp;\n // reverse the right side to become smallest possible right subarr.\n // Ex: 2,(4,3,1) -> 2,1,3,4;\n reverse(nums, inverseIndex + 1, nums.length - 1);\n } else {\n // if no inversePoint, index= -1, Reverse all elms to return the smallest.\n reverse(nums, 0, nums.length - 1);\n }\n }",
"public static void main(String[] args) {\n Integer arr[] = new Integer[]{1, 1, 1, 2, 2, 2, 2, 2, 4, 4, 5, 5, 5, 6, 6, 6};\n for (int i = 0; i <= 8; i++) {\n\n int floorIndex = floor(arr, i);\n System.out.println(\"the floor index of \" + i + \" is \" + floorIndex + \".\");\n if (floorIndex >= 0 && floorIndex < arr.length)\n System.out.println(\"The value is \" + arr[floorIndex] + \".\");\n System.out.println();\n\n int ceilIndex = ceil(arr, i);\n System.out.println(\"the ceil index of \" + i + \" is \" + ceilIndex + \".\");\n if (ceilIndex >= 0 && ceilIndex < arr.length)\n System.out.println(\"The value is \" + arr[ceilIndex] + \".\");\n System.out.println();\n\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int size = in.nextInt();\n int[] a = new int[100];\n for (int i = 0; i < size; i++) {\n int j = in.nextInt();\n a[j] = a[j] + 1;\n }\n\n for(int n : a){\n System.out.print(n+\" \");\n }\n System.out.println(\"\");\n }",
"public static void code_fragment(){\n int[] a = new int[10];\n for(int i = 0; i < 10 ; i++){\n a[i] = 9 - i;\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n a[i] = a[a[i]];\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n System.out.println(i);\n }\n }",
"public static void main(String[] args){\n int[] a = new int[10];\n for(int i = 0; i < a.length; i++){\n a[i] = i;\n }\n\n int[] b = new int[a.length];\n\n for(int i=1; i <= b.length; i++){\n b[i-1] = a[a.length-1-i];\n }\n\n System.out.println(b);\n }",
"public static void main(String args[] ) throws Exception {\n Scanner s = new Scanner(System.in);\n String arrSizeAndNumber = s.nextLine();\n String number = arrSizeAndNumber.split(\" \")[1];\n\n List<String> numbers = Arrays.asList(s.nextLine().split(\" \"));\n\n AtomicInteger i= new AtomicInteger(1);\n AtomicInteger pos= new AtomicInteger(1);\n\n numbers.forEach((value)-> {\n if (value.equals(number))\n pos.set(i.get());\n i.getAndIncrement();\n });\n\n System.out.println(pos);\n }",
"public static void main(String[] args) {\n\t\tScanner scr = new Scanner(System.in);\n\t\tSystem.out.print(\"반복할 횟수를 입력하시오 ->\");\n\t\tint n = scr.nextInt();\n\n\t\tint[] a = new int[] {3,8,9,7,6};\n\n\t\tint temp=0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ttemp=a[a.length-1];\n\t\t\tfor(int j=a.length-1; j>0; j--) {\n\t\t\t\ta[j]=a[j-1];\n\t\t\t}\n\t\t\t\n\t\t\ta[0]=temp;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tSystem.out.printf(\"%d \" , a[i]);\n\t\t}\n\n\t}",
"@Test\n\tpublic void testStartingIndicesRegression(){\n\t\tassertLeftmostStartingIndices(\"5,1,7,3,2|-..xxx$1..x...xxx$3....-xx........\", 0, 6, 8, 18, 22);\n\t\tassertRightmostStartingIndices(\"7,5|.......xxx$1....xxx$2..-\", 6, 14);\n\t\t\n\t}",
"ArrayList<Integer> getStepCounterTileX();",
"public static void main(String[] args) {\n\t\tint [] numbers= {23,45,67,78,90}; // int numlent=numbers.length;\n\t\t // index 0 1 2 3 4\n\t\t\n\t//\tnumbers[0]=23;\n\t\t//numbers[1]=45;\n\t\t\n\t\t\n\t\t\n\t\t\n\t \n\t\t\n\t\t\n\t//\tSystem.out.println(numbers[4]);\n\t\n\t\n\t//for( int k : numbers) {\n\t\n\t//System.out.println(k);\n\t\n\t\n//\tSystem.out.println(numbers[numbers.length-3]);\n\t\n\t\n\t\n\t//for(int idx=0; idx<numbers.length; idx++) {\n\t\n\t//System.out.print(Arrays.toString(numbers));\n\t\n\t\n\t\n\t\tSystem.out.println(\"-----EXAMPLE RUN ---------\");\n\t \n\t\tString[] number = {\"zero\", \"one\", \"two\",\"three\",\"four\"};\n\t System.out.println(Arrays.toString(getWithE(number)));\n\t \n\t }",
"public static void main(String[] args) {\n\t\tint arr[] = {1, 14, 5, 20, 4,15, 2, 54, 20, 87, 98, 3, 1, 32};\n\t\tint n = arr.length;\n\t\tthreeWayPartition(arr, 14, 20);\n\t\t\n\t\tfor(int i =0;i<n;i++) {\n\t\t\t\n\t\t\tSystem.out.print(arr[i]+\",\");\n\t\t}\n\t\t\n\t\t\n\n\t}",
"void explode(int x, int y) {\n //Implemented \n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint[] a1=new int[a];\n\t\tfor(int i=0;i<a;i++)\n\t\t{\n\t\t\ta1[i]=sc.nextInt();\n\t\t}\n\t\tfor(int j=0;j<b;j++)\n\t\t{\t\n\t\t\tint i;\n\t\t\tint temp=a1[a-1];\n\t\t\tfor(i=a-1;i>0;i--)\n\t\t\t{\n\t\t\t\ta1[i]=a1[i-1];\n\t\t\t}\n\t\t\ta1[i]=temp;\n\t\t}\n\t\tfor(int i=0;i<a;i++)\n\t\t{\n\t\t\tSystem.out.print(a1[i]+\" \");\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n int arr[]= {7,9,88,-33,2,12,6,1};\n Arrays.sort(arr);\n /*for(int i=0; i<arr.length; i++)\n \t System.out.print(arr[i]+\", \");\n System.out.println(\"\\n DESC\");\n System.out.print(\"{ \");\n for(int i=arr.length-1; i>=0; i--) {\n \t if(arr[i]==arr[0])\n \t System.out.print(arr[i]);\n \t else \n \t\t System.out.print(arr[i]+\", \");\n }*/\n // System.out.print(\" }\");\n \n int[] ar= {6,2,2,5,2,2,1};\n int startIndex=0;\n int lastIndex=ar.length-1;\n //a is sumRight,b = sumLeft\n int a=0,b=0;\n /* while(true) {\n \t \n \t if(b>a) \n \t\t //1+2+2=+5\n \t\t a+=ar[lastIndex--];\n \t else \n \t\t //6+2+2\n \t\t\t b+=ar[startIndex++];\n \t\tif(startIndex>lastIndex) {\n \t\t\tSystem.out.println(startIndex);\n \t\t\tif(a==b)\n \t\t\t\tbreak;\n \t\t\t else\n \t\t\t throw new Exception(\"not a valid array\");\n \t\t\t\n \t\t}\n \t\t\t \n \t\t\n }\n System.out.println(lastIndex);\n */\n \n \n while(true) {\n \t \n \t if(b>a)\n \t\t a+= ar[lastIndex--];\n \t else\n b+=ar[startIndex++];\n \t if(startIndex>lastIndex) {\n \t\t if(a==b)\n \t\t\t break;\n \t }\n }\n System.out.println(lastIndex);\n\t}"
] |
[
"0.57223046",
"0.57057196",
"0.56938136",
"0.56573915",
"0.5625419",
"0.55881745",
"0.55517226",
"0.5525678",
"0.5525678",
"0.55238056",
"0.5464598",
"0.54640746",
"0.54557514",
"0.54507494",
"0.54486096",
"0.54421014",
"0.5421163",
"0.54100955",
"0.53710586",
"0.5367503",
"0.5349681",
"0.5342063",
"0.5319436",
"0.52988297",
"0.5298115",
"0.5295231",
"0.529387",
"0.5291802",
"0.5291405",
"0.52901965",
"0.5288573",
"0.5271007",
"0.5248984",
"0.5247198",
"0.5228857",
"0.5227679",
"0.5219618",
"0.52169913",
"0.52123964",
"0.5210962",
"0.5201921",
"0.51980084",
"0.51847196",
"0.5178309",
"0.51779073",
"0.5167951",
"0.5139616",
"0.51362073",
"0.51358145",
"0.5133736",
"0.5125534",
"0.5124863",
"0.51247805",
"0.51236504",
"0.5122964",
"0.51193637",
"0.51109755",
"0.5109269",
"0.5106704",
"0.5106647",
"0.5104387",
"0.51024574",
"0.509382",
"0.5093395",
"0.5092224",
"0.50898284",
"0.50886524",
"0.5086558",
"0.50836444",
"0.5077848",
"0.5075601",
"0.50579256",
"0.5054002",
"0.5051531",
"0.50506204",
"0.5044068",
"0.50430125",
"0.50427276",
"0.50425833",
"0.5042372",
"0.5032089",
"0.5031696",
"0.5030247",
"0.5029745",
"0.50275075",
"0.50260913",
"0.50210553",
"0.5019311",
"0.50181127",
"0.50169504",
"0.5010811",
"0.50104076",
"0.50092465",
"0.5008958",
"0.5005801",
"0.5005743",
"0.5002703",
"0.5001282",
"0.4999396",
"0.4998586",
"0.49973106"
] |
0.0
|
-1
|
Helper Methods Used for the convert loops to recursive calls This method for iterate to right direction
|
public void right(int[][] arr,int start,int end,int i){
if(start==end){
return;
}
else{
System.out.println(arr[i][start]);
start++;
}
right(arr,start,end,i);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void reverse_Iteratively_Data() throws Exception {\r\n\t\tint left = 0, right = this.size() - 1;\r\n\r\n\t\twhile (left <= right) {\r\n\t\t\tNode leftNode = this.getNodeAt(left);\r\n\t\t\tNode rightNode = this.getNodeAt(right);\r\n\r\n\t\t\tT temp = leftNode.data;\r\n\t\t\tleftNode.data = rightNode.data;\r\n\t\t\trightNode.data = temp;\r\n\r\n\t\t\tleft++;\r\n\t\t\tright--;\r\n\t\t}\r\n\t}",
"public void inOrderTraverseIterative();",
"public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}",
"void reverseDirection();",
"private ArrayList<Point2d> makeRightOrder(ArrayList<Point2d> points) {\n\n int sum = 0;\n for (int i = 0; i < points.size(); i++) {\n Point2d currentPoint = points.get(i);\n Point2d nextPoint = points.get((i + 1) % points.size());\n double x1 = currentPoint.getX();\n double x2 = nextPoint.getX();\n double y1 = currentPoint.getY();\n double y2 = nextPoint.getY();\n sum += (x2 - x1) * (y2 + y1);\n\n }\n// System.out.println(sum);\n if (sum < 0) {\n\n return points;\n } else {\n\n Collections.reverse(points);\n return points;\n\n }\n\n\n }",
"private static void turnRight(Robot r) \n {\n for(int i=0; i<3;i++)\n {\n r.turnLeft();\n }\n }",
"public Recusive_Methods(){\n int[][] array = {\n {1,2,3,4},\n {5,6,7,8},\n {9,10,11,12},\n {13,14,15,16},\n {17,18,19,20},\n };\n printer(array,0,0,array[0].length-1,array.length-1,0);\n\n StringReverse(\"this function writes the sentence in reverse\");\n StringReverse(\"selam alp emir bilek ben\");\n\n elfish(\"alpemir\",0,0,0);\n elfish(\"leaf\",0,0,0);\n elfish(\"waffles\",0,0,0);\n }",
"private Object asReversedIteration(final List<Object> list, final boolean recursive, final List<Object> disc) {\n Stack<Object> s = new Stack<>();\n disc.add(list);\n outerLoop:\n for (Object m : list) {\n s.push(m);\n\n for (Object e : disc) {\n {\n if (e == m) {\n continue outerLoop;\n }\n }\n }\n if (recursive) {\n if (m instanceof List<?>) {\n asReversedIteration((List<Object>) m, true, disc);\n }\n if (m instanceof Map<?, ?>) {\n asReversedIteration((Map<String, Object>) m, true, disc);\n }\n }\n\n }\n list.clear();\n int size = s.size();\n for (int i = 0; i < size; i++) {\n list.add(s.pop());\n }\n return list;\n }",
"public static void reverseIterative(int[] data) {\n int low = 0, high = data.length - 1;\n while (low < high) { // swap data[low] and data[high]\n int temp = data[low];\n data[low++] = data[high]; // post-increment of low\n data[high--] = temp; // post-decrement of high\n }\n }",
"Node reverseIterative(Node head) {\n\t\tNode prev = null;\n\t\tNode current = head;\n\t\tNode next = null;\n\t\twhile (current != null) {\n\t\t\tnext = current.next;\n\t\t\tcurrent.next = prev;\n\t\t\tprev = current;\n\t\t\tcurrent = next;\n\t\t}\n\t\thead = prev;\n\t\treturn head;\n\t}",
"private void spiralOrder(Node root) \n { \n \n \tLinkedList<Node> ls = new LinkedList<Node>(); \n \n // Push root \n ls.addLast(root); \n \n // Direction 0 shows print right to left \n // and for Direction 1 left to right \n int dir = 0; \n while (ls.size() > 0) \n { \n int size = ls.size(); \n while (size-->0) \n { \n // One whole level \n // will be print in this loop \n \n if (dir == 0) \n { \n Node temp = ls.peekLast(); \n ls.pollLast(); \n if (temp.right != null) \n ls.addFirst(temp.right); \n if (temp.left != null) \n ls.addFirst(temp.left); \n System.out.print(temp.value + \" \"); \n } \n else \n { \n Node temp = ls.peekFirst(); \n ls.pollFirst(); \n if (temp.left != null) \n ls.addLast(temp.left); \n if (temp.right != null) \n ls.addLast(temp.right); \n System.out.print(temp.value + \" \"); \n } \n } \n System.out.println(); \n \n // Direction change \n dir = 1 - dir; \n } \n }",
"private static void listIteratorMovesInBothDirections(){\n\t ArrayList<String> list = new ArrayList<String>();\n\t \n\t list.add(\"ONE\");\n\t \n\t list.add(\"TWO\");\n\t \n\t list.add(\"THREE\");\n\t \n\t list.add(\"FOUR\");\n\t \n\t //RSN NOTE ListIterator\n\t ListIterator iterator = list.listIterator();\n\t \n\t System.out.println(\"Elements in forward direction\");\n\t \n\t while (iterator.hasNext())\n\t {\n\t System.out.println(iterator.next());\n\t }\n\t \n\t System.out.println(\"Elements in backward direction\");\n\t \n\t while (iterator.hasPrevious())\n\t {\n\t System.out.println(iterator.previous());\n\t }\n\t}",
"protected void refillRight(){\n\t\tif(!shouldRepeat && isSrollingDisabled) return; //prevent next layout calls to override override first init to scrolling disabled by falling to this branch\n\t\tif(getChildCount() == 0) return;\n\t\t\n\t\tfinal int leftScreenEdge = getScrollX();\n\t\tfinal int rightScreenEdge = leftScreenEdge + getWidth();\n\t\t\n\t\tView child = getChildAt(getChildCount() - 1);\n\t\tint right = child.getRight();\n\t\tint currLayoutLeft = right + ((LoopLayoutParams)child.getLayoutParams()).rightMargin;\n\t\twhile(right < rightScreenEdge){\n\t\t\tmLastItemPosition++;\n\t\t\tif(mLastItemPosition >= mAdapter.getCount()) mLastItemPosition = 0;\n\t\t\t\n\t\t\tchild = mAdapter.getView(mLastItemPosition, getCachedView(), this);\n Validate.notNull(child,\"Your adapter has returned null from getView.\");\n\t\t\tchild = addAndMeasureChildHorizontal(child, LAYOUT_MODE_AFTER);\n\t\t\tcurrLayoutLeft = layoutChildHorizontal(child, currLayoutLeft, (LoopLayoutParams) child.getLayoutParams());\n\t\t\tright = child.getRight();\n\t\t\t\n\t\t\t//if selected view is going to screen, set selected state on him\n\t\t\tif(mLastItemPosition == mSelectedPosition){\n\t\t\t\tchild.setSelected(true);\n\t\t\t}\n\t\t}\n\t}",
"public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}",
"protected void visitRightSubtree() {\n\t\tif(tree.hasRightNode()) {\n\t\t\ttree.moveToRightNode();\n\t\t\ttraverse();\n\t\t\ttree.moveToParentNode();\n\t\t}\n\t}",
"private void rightRotate(int[] nums, int n) {\n\t\tint temp;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttemp = nums[nums.length - 1];\n\t\t\tfor (int j = nums.length - 1; j > 0; j--) {\n\t\t\t\tnums[j] = nums[j - 1];\n\n\t\t\t}\n\n\t\t\tnums[0] = temp;\n\n\t\t}\n\t\tSystem.out.println(Arrays.toString(nums));\n\n\t}",
"public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }",
"public void reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\n }",
"public List<Integer> rightSideView(TreeNode root) {\n List<Integer> r = new ArrayList<>();\n LinkedList<LinkedList<Integer>> levelOrder = new LinkedList<>();\n LinkedList<TreeNode> queue = new LinkedList<>();\n if(root == null) return r;\n queue.offer(root);\n while(!queue.isEmpty()){\n int size = queue.size();\n LinkedList<Integer> res = new LinkedList<>();\n for(int i=0;i<size;i++){\n TreeNode cur = queue.pop();\n res.add(cur.val);\n if(cur.left != null) queue.offer(cur.left);\n if(cur.right != null) queue.offer(cur.right);\n }\n levelOrder.add(res);\n }\n //2. store the last element of each list\n LinkedList<Integer> ans = new LinkedList<>();\n for(LinkedList<Integer> l : levelOrder){\n int s = l.get(l.size() - 1);\n ans.add(s);\n }\n return ans;\n }",
"public Vertex moveRight() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x + 1, e);\n }\n return current;\n }",
"private static void iterateLinkedListInReverseOrder() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\t\tCollections.reverse(list);\n\t\tSystem.out.println(\"Reverse the LinkedList is : \" + list);\n\t}",
"protected abstract void traverse();",
"private int rightIndex(int i) {\n return i * 2 + 1;\n }",
"public static void goRight(Node parent) {\n\t\tint[][] tempArray = new int[3][3];\n\t\t\n\t\tint blankPositionRow = parent.getblankPositionRow();\n\t\tint blankPositionCol = parent.getblankPositionCol();\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\ttempArray[i][j] = parent.stateSpace[i][j];\n\t\t\t}\n\t\t}\n\t\tif (blankPositionCol != 2) {\n\t\t\tint temp = tempArray[blankPositionRow][blankPositionCol + 1];\n\t\t\ttempArray[blankPositionRow][blankPositionCol + 1] = 0;\n\t\t\ttempArray[blankPositionRow][blankPositionCol] = temp;\n\t\t\tNode node = new Node(tempArray, finalState, parent);\n\t\t\tchoiceOfNodes.add(node);\n\t\t\tnodesGenerated++;\n\t\t}\n\t}",
"protected int rightChild(int i) {\n return (i + 1) << 1;\n }",
"void reverseIterative(char arr[],int start) {\n // Your Logic Here\n for(int i=start;i<arr.length/2;i++)\n {\n if(arr[i] != arr[arr.length-1-i])\n {\n arr[i]^=arr[arr.length-1-i];\n arr[arr.length-1-i]^=arr[i];\n arr[i]^=arr[arr.length-1-i];\n }\n }\n}",
"protected void reversePath() {\n\t\t\n\t\tif(_reverse) {\n\t\t\t\n\t\t\tif(_nextMove + 1 > movingPattern.size() - 1)\n\t\t\t\t_nextMove = 0;\n\t\t\telse\n\t\t\t\t_nextMove++;\n\t\t\t\n\t\t\t_reverse = false;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(_nextMove - 1 < 0)\n\t\t\t\t_nextMove = movingPattern.size() - 1;\n\t\t\telse\n\t\t\t\t_nextMove--;\n\t\t\t\n\t\t\t_reverse = true;\n\t\t}\n\t}",
"private static int reverse(int i) {\n\t\tint r = 0;\n\t\tfor(int b = 0; b < TILE_DIM; b++) {\n\t\t\tr = r << 1;\n\t\t\tr += (i % 2);\n\t\t\ti = i >> 1;\n\t\t}\n\t\treturn r;\n\t}",
"public static LinkedList iterativeReverse(LinkedList linkedList) {\n if (linkedList == null || linkedList.next == null) {\n return linkedList;\n }\n\n LinkedList prevNode, currNode, nextNode;\n prevNode = null;\n nextNode = null;\n currNode = linkedList;\n\n while (currNode != null) {\n nextNode = currNode.next;\n currNode.next = prevNode;\n prevNode = currNode;\n currNode = nextNode;\n }\n return prevNode;\n }",
"public void inOrderTraverseRecursive();",
"private void rightRightCase(NodeRB<K, V> x) {\n\t\t// Swap colors of g and p\n\t\tboolean aux = x.parent.color;\n\t\tx.parent.color = x.getGrandParent().color;\n\t\tx.getGrandParent().color = aux;\n\n\t\t// Left Rotate g\n\t\tNodeRB<K, V> g = x.getGrandParent();\n\t\tif (g.parent == null) {\n\t\t\troot = rotateLeft(g);\n\t\t} else {\n\t\t\trotateLeft(g);\n\t\t}\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"private int getRightOf(int i) {\n \t\t// TODO Complete this method!\n \t\treturn 2*i + 1;\n \t}",
"private void moveRight()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length; row++) {\n\n // chek is set to false, meaning no combinations have been made\n boolean check = false;\n for ( int column = grid[row].length-2; column >= 0; column--) {\n int compare = column;\n if ( grid[row][compare] != 0 ) { \n\n // loop continues while there are still zero values to the right of\n // the tile\n while ( grid[row][compare+1] == 0 ) {\n\n // switches places of the current tile with the zero tile\n grid[row][compare+1] = grid[row][compare];\n grid[row][compare] = 0;\n compare ++;\n\n // if you reach the end of the board, break from the loop\n if ( compare == grid[row].length-1 ){\n break;\n }\n }\n // if a combination was made on the previous loop, set check to false\n if ( check == true ){\n check = false;\n }\n // if a combination wasn't made on the previous loop and two tiles\n // next to each other have the same value, combine them\n else if ( compare != grid[row].length-1 && \n grid[row][compare+1] == grid[row][compare] ) {\n grid[row][compare+1] = 2*grid[row][compare+1];\n grid[row][compare] = 0;\n\n // sets check to true to indicate a combination was made\n check = true;\n\n // increases your score by the value of the combined tiles\n score+=grid[row][compare+1];\n } \n }\n }\n } \n }",
"private static int rightIndex(int parentIndex) {\n return (parentIndex + 1) << 1;\n }",
"public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}",
"static void rotate_right(int[] arr, int rotate){\n for (int j = 0; j < rotate; j++) {\n int temp = arr[j];\n for (int i = j; i < arr.length+rotate; i+=rotate) {\n if(i-rotate < 0)\n temp = arr[i];\n else if(i >= arr.length)\n arr[i-rotate] = temp;\n else\n arr[i-rotate] = arr[i]; \n }\n }\n }",
"public Direction right() {\r\n\t\tint newDir = this.index + 1;\r\n\r\n\t\tnewDir = (this.index + 1 == 5) ? 1 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}",
"public void rotateRight() {\n\t\tthis.direction = this.direction.rotateRight();\n\t}",
"private void doNextRow(){\n\t\tmove();\n\t\twhile (frontIsClear()){\n\t\t\talternateBeeper();\n\t\t}\n\t\tcheckPreviousSquare();\t\n\t}",
"protected static int right(int i){\n return 2*(i+1);\n }",
"public boolean moveRight()\n {\n boolean update;\n\tboolean action = false;\n\t\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=cases.length-1; y>0; y--)\n {\n for (int x=0; x<cases[y].length; x++)\n {\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n merge = merge(cases[x][y-1],cases[x][y]);\n move = move(cases[x][y-1],cases[x][y]);\n update = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n\t\t}\n }\n\t} while (update);\n \n return action;\n }",
"public TreeNode invertBinaryTreeIterative(TreeNode node) {\n if (node == null) return node;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.add(node);\n\n while (!queue.isEmpty()) {\n TreeNode temp = node.left;\n node.left = node.right;\n node.right = temp;\n if (node.left != null) queue.add(node.left);\n if (node.right != null) queue.add(node.right);\n }\n\n return node;\n }",
"public static List<TreeNode> postOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\n\t\tif (rootNode == null)\n\t\t\treturn output;\n\n\t\tStack<TreeNode> s = new Stack<TreeNode>();\n\t\tTreeNode current = rootNode;\n\n\t\twhile (true) {\n\n\t\t\tif (current != null) {\n\t\t\t\tif (current.right != null)\n\t\t\t\t\ts.push(current.right);\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.left;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (s.isEmpty())\n\t\t\t\treturn output;\n\t\t\tcurrent = s.pop();\n\n\t\t\tif (current.right != null && !s.isEmpty() && current.right == s.peek()) {\n\t\t\t\ts.pop();\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.right;\n\t\t\t} else {\n\t\t\t\toutput.add(current);\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t}\n\n\t}",
"private int rightSideView(Node root, int currentLevel, int processingLevel){\n if(root== null){\n return processingLevel;\n }\n if(processingLevel == currentLevel) {\n System.out.println(root.getData());\n processingLevel++;\n }\n processingLevel = rightSideView(root.getRight(), currentLevel+1, processingLevel);\n processingLevel = rightSideView(root.getLeft(), currentLevel+1, processingLevel);\n\n return processingLevel;\n }",
"private static int rightChild(int i) {\n\t\treturn 2 * i + 2;\n\t}",
"private static int rightChild(int i) {\n\t\treturn 2*i + 2;\n\t}",
"private void inOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n inOrderTraversalRec(root.getLeft());\n System.out.print(root.getData() + \" \");\n inOrderTraversalRec(root.getRight());\n }",
"public static List<TreeNode> spiralOrdertraversal(TreeNode node) {\n\t\tList<TreeNode> result = new ArrayList<TreeNode>();\n\t\tif (node == null)\n\t\t\treturn result;\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\n\t\tstack.push(node);\n\n\t\tboolean directionflag = false;\n\t\twhile (!stack.isEmpty()) {\n\t\t\tStack<TreeNode> tempStack = new Stack<TreeNode>();\n\n\t\t\twhile (!stack.isEmpty()) {\n\t\t\t\tTreeNode tempNode = stack.pop();\n\t\t\t\tresult.add(tempNode);\n\t\t\t\tif (!directionflag) {\n\t\t\t\t\tif (tempNode.left != null)\n\t\t\t\t\t\ttempStack.push(tempNode.left);\n\t\t\t\t\tif (tempNode.right != null)\n\t\t\t\t\t\ttempStack.push(tempNode.right);\n\t\t\t\t} else {\n\t\t\t\t\tif (tempNode.right != null)\n\t\t\t\t\t\ttempStack.push(tempNode.right);\n\t\t\t\t\tif (tempNode.left != null)\n\t\t\t\t\t\ttempStack.push(tempNode.left);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// for changing direction\n\t\t\tdirectionflag = !directionflag;\n\n\t\t\tstack = tempStack;\n\t\t}\n\t\treturn result;\n\t}",
"private int right(int parent) {\n\t\treturn parent*2+2;\n\t}",
"void resDiagonale(){ \r\n for (int i = 0; i<N; i=i+nCarre) \r\n \tresCarre(i, i); \r\n }",
"private int right(int i) {\r\n\t\treturn 2 * i + 2;\r\n\t}",
"private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}",
"private void rotateRight(Node curr, boolean colorChangeNeeded) {\n\t\tNode parent = curr.parent;\n\t\tcurr.parent = parent.parent;\n if(parent.parent != null) {\n if(parent.parent.right == parent) {\n \tparent.parent.right = curr;\n } else {\n \tparent.parent.left = curr;\n }\n }\n Node right = curr.right;\n curr.right = parent;\n parent.parent = curr;\n parent.left = right;\n if(right != null) {\n right.parent = parent;\n }\n if(colorChangeNeeded) {\n curr.color = Color.BLACK;\n parent.color = Color.RED;\n }\n\t}",
"private void rotateRight() {\r\n\t switch(direction){\r\n\t case Constants.DIRECTION_NORTH:\r\n\t direction = Constants.DIRECTION_EAST;\r\n\t break;\r\n\t case Constants.DIRECTION_EAST:\r\n\t direction = Constants.DIRECTION_SOUTH;\r\n\t break;\r\n\t case Constants.DIRECTION_SOUTH:\r\n\t direction = Constants.DIRECTION_WEST;\r\n\t break;\r\n\t case Constants.DIRECTION_WEST:\r\n\t direction = Constants.DIRECTION_NORTH;\r\n\t break;\r\n\t }\r\n\t }",
"public static void main(String args[]){\n BinaryTreeNode root = new BinaryTreeNode();\n root.setData(1);\n\n BinaryTreeNode left = new BinaryTreeNode();\n left.setData(2);\n\n BinaryTreeNode right = new BinaryTreeNode();\n right.setData(3);\n\n BinaryTreeNode leftleft = new BinaryTreeNode();\n leftleft.setData(4);\n\n BinaryTreeNode leftright = new BinaryTreeNode();\n leftright.setData(5);\n\n root.setLeft(left);\n root.setRight(right);\n left.setLeft(leftleft);\n left.setRight(leftright);\n\n\n postOrderIterative(root);\n\n }",
"private void rightRotateFixup(RedBlackNode y){\n\n // Przypadek 1: tylko y, y.left i y.left.left są nil.\n if (isNil(y.right) && isNil(y.left.right)){\n y.numRight = 0;\n y.numLeft = 0;\n y.left.numRight = 1;\n }\n\n // Przypadek 2: y.left.right istnieje w dodatku do przypadku 1\n else if (isNil(y.right) && !isNil(y.left.right)){\n y.numRight = 0;\n y.numLeft = 1 + y.left.right.numRight +\n y.left.right.numLeft;\n y.left.numRight = 2 + y.left.right.numRight +\n y.left.right.numLeft;\n }\n\n // Przypadek 3: y.right istnieje w dodatku do przypadku 1\n else if (!isNil(y.right) && isNil(y.left.right)){\n y.numLeft = 0;\n y.left.numRight = 2 + y.right.numRight +y.right.numLeft;\n\n }\n\n // Przypadek 4: y.right i y.left.right istnieją w dodatku do przypadku 1\n else{\n y.numLeft = 1 + y.left.right.numRight +\n y.left.right.numLeft;\n y.left.numRight = 3 + y.right.numRight +\n y.right.numLeft +\n y.left.right.numRight + y.left.right.numLeft;\n }\n\n }",
"@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}",
"@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}",
"private long rightRotate(long n) throws IOException {\n Node current = new Node(n);\r\n long currentLeft = current.left;\r\n Node tempN = new Node(current.left);\r\n current.left = tempN.right;\r\n tempN.right = n;\r\n current.height = getHeight(current);\r\n current.writeNode(n);\r\n tempN.height = getHeight(tempN);\r\n tempN.writeNode(currentLeft);\r\n return currentLeft;\r\n }",
"private void rightRotate(RedBlackNode<T> y){\n rightRotateFixup(y);\n\n RedBlackNode<T> x = y.left;\n y.left = x.right;\n\n // Czy istnieje x.right\n if (!isNil(x.right))\n x.right.parent = y;\n x.parent = y.parent;\n\n // y.parent jest nil\n if (isNil(y.parent))\n root = x;\n\n // y jest prawym dzieckiem swojego rodzica\n else if (y.parent.right == y)\n y.parent.right = x;\n\n // y jest lewym dzieckiem swojego rodzica\n else\n y.parent.left = x;\n x.right = y;\n\n y.parent = x;\n\n }",
"private void rotateRight(Node tree) {\n assert tree != null;\n assert tree.left != null;\n\n Node temp = tree.left;\n tree.left = temp.right;\n if(temp.right != null) { //no null pointers\n temp.right.parent = tree;\n }\n temp.parent = tree.parent;\n if(temp.parent != null) { //am i at the root?\n if(temp.parent.left == tree) {\n temp.parent.left = temp;\n } else if (temp.parent.right == tree) {\n temp.parent.right = temp;\n }\n }\n tree.parent = temp;\n temp.right = tree;\n if(tree == root) { root = temp; } //rewrite the root\n rotations += 1;\n }",
"public void rightRotate(Node n) {\r\n\t\tNode y = n.left;\r\n\t\tn.left = y.right;\r\n\t\tif(!y.right.isNil)\r\n\t\t\ty.right.parent = n;\r\n\t\ty.parent = n.parent;\r\n\t\tif(n.parent.isNil)\r\n\t\t\troot = y;\r\n\t\telse if(n == n.parent.right)\r\n\t\t\tn.parent.right = y;\r\n\t\telse\r\n\t\t\tn.parent.left = y;\r\n\t\ty.right = n;\r\n\t\tn.parent = y;\r\n\t}",
"public static void main(String[] args) {\nDGraph g=new DGraph();\r\nDirectedDFS d=new DirectedDFS(g);\r\nfor(Iterator<Integer> i=d.preorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\nfor(Iterator<Integer> i=d.postorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\n\r\n/*for(Iterator i=d.topologicalorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();*/\r\n\r\n\r\n\tfor(int w:d.reversepost())\r\n\t\tSystem.out.print(w+\" \");\r\n\t//System.out.println(d.topologicalorder.pop());\r\n\t}",
"public static void rightToLeft(Node root, int level){\n if(root == null){\n return;\n }\n if(level == 1){\n System.out.print(root.data +\" \");\n }else if(level>1){\n rightToLeft(root.right, level-1);\n rightToLeft(root.left, level-1);\n }\n }",
"@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}",
"private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }",
"private void backwardIteration() {\n\t\t// variables declaration\n\t\tint ortho;\n\t\tint diago;\n\t\tint diag2;\n\t\tint newVal;\n\n\t\t// Process last line: consider only the pixel just after (on the right)\n\t\tfor (int i = width - 2; i > 0; i--) {\n\t\t\tif (maskProc.getPixel(i, height - 1) != maskLabel)\n\t\t\t\tcontinue;\n\n\t\t\tnewVal = buffer.get(i + 1, height - 1) + weights[0];\n\t\t\tupdateIfNeeded(i, height - 1, newVal);\n\t\t}\n\n\t\t// last pixel of penultimate line: consider the 3 pixels below\n\t\tif (maskProc.getPixel(width - 1, height - 2) == maskLabel) {\n\t\t\tortho = buffer.get(width - 1, height - 1);\n\t\t\tdiago = buffer.get(width - 2, height - 1);\n\t\t\tdiag2 = buffer.get(width - 3, height - 1);\n\t\t\tnewVal = min3w(ortho, diago, diag2);\n\t\t\tupdateIfNeeded(width - 1, height - 2, newVal);\n\t\t}\n\n\t\t// penultimate pixel of penultimate line: consider right pixel, and the 4 pixels below\n\t\tif (maskProc.getPixel(width - 2, height - 2) == maskLabel) {\n\t\t\tortho = min(buffer.get(width - 1, height - 2), buffer.get(width - 2, height - 1));\n\t\t\tdiago = min(buffer.get(width - 1, height - 1), buffer.get(width - 3, height - 1));\n\t\t\tdiag2 = buffer.get(width - 4, height - 1);\n\t\t\tnewVal = min3w(ortho, diago, diag2);\n\t\t\tupdateIfNeeded(width - 2, height - 2, newVal);\n\t\t}\n\n\t\t// Process regular pixels of penultimate line\n\t\tfor (int i = width - 3; i > 0; i--) {\n\t\t\tif (maskProc.getPixel(i, height - 2) != maskLabel)\n\t\t\t\tcontinue;\n\n\t\t\t// minimum distance of neighbor pixels\n\t\t\tortho = min(buffer.get(i + 1, height - 2), buffer.get(i, height - 1));\n\t\t\tdiago = min(buffer.get(i - 1, height - 1), buffer.get(i + 1, height - 1));\n\t\t\tdiag2 = min(buffer.get(i - 2, height - 1), buffer.get(i + 2, height - 1));\n\t\t\t\n\t\t\t// compute new distance of current pixel\n\t\t\tnewVal = min3w(ortho, diago, diag2);\n\n\t\t\t// modify current pixel if needed\n\t\t\tupdateIfNeeded(i, height - 2, newVal);\n\t\t}\n\n\t\t// Process regular lines\n\t\tfor (int j = height - 3; j >= 0; j--) {\n\n\t\t\t// process last pixel of the current line: consider pixels\n\t\t\t// down, down-left and (-2,+1)\n\t\t\tif (maskProc.getPixel(width - 1, j) == maskLabel) {\n\t\t\t\tortho = buffer.get(width - 1, j + 1);\n\t\t\t\tdiago = buffer.get(width - 2, j + 1);\n\t\t\t\tdiag2 = buffer.get(width - 3, j + 1);\n\t\t\t\tnewVal = min3w(ortho, diago, diag2);\n\t\t\t\tupdateIfNeeded(width - 1, j, newVal);\n\t\t\t}\n\n\t\t\n\t\t\t// process penultimate pixel of current line\n\t\t\tif (maskProc.getPixel(width - 2, j) == maskLabel) {\n\n\t\t\t\t// minimum distance of neighbor pixels\n\t\t\t\tortho = min(buffer.get(width - 1, j), buffer.get(width - 2, j + 1));\n\t\t\t\tdiago = min(buffer.get(width - 3, j + 1), buffer.get(width - 1, j + 1));\n\t\t\t\tdiag2 = min3(\n\t\t\t\t\t\tbuffer.get(width - 3, j + 2), \n\t\t\t\t\t\tbuffer.get(width - 1, j + 2), \n\t\t\t\t\t\tbuffer.get(width - 4, j + 1));\n\t\t\t\t\n\t\t\t\t// compute new distance of current pixel\n\t\t\t\tnewVal = min3w(ortho, diago, diag2);\n\n\t\t\t\t// modify current pixel if needed\n\t\t\t\tupdateIfNeeded(width - 2, j, newVal);\n\t\t\t}\n\n\t\t\t// Process pixels in the middle of the current line\n\t\t\tfor (int i = width - 3; i > 1; i--) {\n\t\t\t\t// process only pixels inside structure\n\t\t\t\tif (maskProc.getPixel(i, j) != maskLabel)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// minimum distance of neighbor pixels\n\t\t\t\tortho = min(buffer.get(i + 1, j), buffer.get(i, j + 1));\n\t\t\t\tdiago = min(buffer.get(i - 1, j + 1), buffer.get(i + 1, j + 1));\n\t\t\t\tdiag2 = min(\n\t\t\t\t\t\tmin(buffer.get(i - 1, j + 2), buffer.get(i + 1, j + 2)),\n\t\t\t\t\t\tmin(buffer.get(i - 2, j + 1), buffer.get(i + 2, j + 1)));\n\t\t\t\t\n\t\t\t\t// compute new distance of current pixel\n\t\t\t\tnewVal = min3w(ortho, diago, diag2);\n\n\t\t\t\t// modify current pixel if needed\n\t\t\t\tupdateIfNeeded(i, j, newVal);\n\t\t\t}\n\n\t\t\t// process second pixel of current line: consider pixels right,\n\t\t\t// down-right and down\n\t\t\tif (maskProc.getPixel(1, j) == maskLabel) {\n\t\t\t\tortho = min(buffer.get(2, j), buffer.get(1, j + 1));\n\t\t\t\tdiago = min(buffer.get(0, j + 1), buffer.get(2, j + 1));\n\t\t\t\tdiag2 = min3(buffer.get(3, j + 2), buffer.get(2, j + 1), buffer.get(0, j + 1));\n\t\t\t\tnewVal = min3w(ortho, diago, diag2);\n\t\t\t\tupdateIfNeeded(1, j, newVal);\n\t\t\t}\n\n\t\t\t// process first pixel of current line: consider pixels right,\n\t\t\t// down-right and down\n\t\t\tif (maskProc.getPixel(0, j) == maskLabel) {\n\t\t\t\tortho = min(buffer.get(1, j), buffer.get(0, j + 1));\n\t\t\t\tdiago = buffer.get(1, j + 1);\n\t\t\t\tdiag2 = min(buffer.get(2, j + 2), buffer.get(1, j + 1));\n\t\t\t\tnewVal = min3w(ortho, diago, diag2);\n\t\t\t\tupdateIfNeeded(0, j, newVal);\n\t\t\t}\n\n\t\t} // end of processing for current line\n\t\t \n\t}",
"public static ListNode iterativeReverseNode(ListNode node) {\n\t\tif (node.getNext() == null) {\n\t\t\treturn node;\n\t\t}\n\t\tListNode previous = new ListNode(node);\n\t\tListNode middle = new ListNode(previous.getNext());\n\t\tListNode next = new ListNode(middle.getNext());\n\t\tprevious.setNext(null);\n\n\t\twhile (next != null) {\n\t\t\tmiddle.setNext(previous);\n\t\t\tprevious = middle;\n\t\t\tmiddle = next;\n\t\t\tnext = middle.getNext();\n\t\t}\n\t\tmiddle.setNext(previous);\n\t\treturn middle;\n\t}",
"private Node rotateRight() {\n Node left = this.leftChild;\n this.leftChild = left.rightChild;\n left.rightChild = this;\n\n this.updateHeight();\n left.updateHeight();\n\n return left;\n }",
"private List<ru.mtl.VoidVoice.model.Finger> generateRightFingerList() {\n List<ru.mtl.VoidVoice.model.Finger> res = new ArrayList<>();\n addToFingerList(res, FingerType.Thumb, rightThumbDir, rightPalmNormal, rightThumbPos);\n addToFingerList(res, FingerType.Index, rightIndexDir, rightPalmNormal, rightIndexPos);\n addToFingerList(res, FingerType.Middle, rightMiddleDir, rightPalmNormal, rightMiddlePos);\n addToFingerList(res, FingerType.Ring, rightRingDir, rightPalmNormal, rightRingPos);\n addToFingerList(res, FingerType.Pinky, rightPinkyDir, rightPalmNormal, rightPinkyPos);\n\n return res;\n }",
"void visitForLoopNode(ForLoopNode node);",
"protected int right(int i) { return 2 * i + 2; }",
"private void percolateDown(int index) {\n\n\t\twhile(numChildren(index) != 0){\n\t\t\t\n\t\t\t// If the node has one child\n\t\t\tif(numChildren(index) == 1){\n\t\t\t\t// If the node is greater than its child, swap them\n\t\t\t\tif(compare(array[index], array[leftChildIndex(index)]) > 0){\n\t\t\t\t\tAnyType temp = array[leftChildIndex(index)];\n\t\t\t\t\tarray[leftChildIndex(index)] = array[index];\n\t\t\t\t\tarray[index] = temp;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// If the node is less than its child, it is at its correct position\n\t\t\t\telse return;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// If the node is less than both its children, it is at its correct position\n\t\t\t\tif(compare(array[index], array[leftChildIndex(index)]) < 0 && compare(array[index], array[rightChildIndex(index)]) < 0){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// If the node's right child is less than its left child, swap the node with the right child\n\t\t\t\t// and continue percolating downwards\n\t\t\t\tif(compare(array[rightChildIndex(index)], array[leftChildIndex(index)]) < 0){\n\t\t\t\t\tAnyType temp = array[rightChildIndex(index)];\n\t\t\t\t\tarray[rightChildIndex(index)] = array[index];\n\t\t\t\t\tarray[index] = temp;\n\t\t\t\t\tindex = rightChildIndex(index);\n\t\t\t\t}\n\t\t\t\t// If the node's left child is less than its right child, swap the node with the left child\n\t\t\t\t// and continue percolating downwards \n\t\t\t\telse if(compare(array[leftChildIndex(index)], array[rightChildIndex(index)]) < 0){\n\t\t\t\t\tAnyType temp = array[leftChildIndex(index)];\n\t\t\t\t\tarray[leftChildIndex(index)] = array[index];\n\t\t\t\t\tarray[index] = temp;\n\t\t\t\t\tindex = leftChildIndex(index);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void printRightView(){\n \n if(root == null)\n return;\n\n // Take a queue and enqueue root and null\n // every level ending is signified by null\n // since there is just one node at root we enqueue root as well as null\n // take a bool value printed = false\n Queue<Node<T>> queue = new LinkedList<>();\n queue.add(root);\n queue.add(null);\n Node<T> lastVal = null;\n\n while(queue.size() != 0){\n Node<T> node = queue.remove();\n if(node != null){\n\n // keep track of last node and dont print it\n lastVal = node;\n\n // Enqueue left and right child if they exist\n if(node.left != null)\n queue.add(node.left);\n if(node.right != null)\n queue.add(node.right);\n }else{\n // print last node\n System.out.println(lastVal.data + \" ,\");\n if(queue.size() == 0)\n break;\n queue.add(null);\n }\n }\n }",
"private static void rightRotate(int[] nums, int k) {\r\n\t if (nums.length == 0) return;\r\n\t \r\n\t k %= nums.length;\r\n\t \r\n\t if (k == 0) return;\r\n\t \r\n\t int left=0, right=nums.length-1, tmp;\r\n\t \r\n\t while(left < right) {\r\n\t tmp = nums[left];\r\n\t nums[left] = nums[right];\r\n\t nums[right] = tmp;\r\n\t \r\n\t left++;\r\n\t right--;\r\n\t }\r\n\t \r\n\t left=0;\r\n\t right=k-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t \r\n\t left=k;\r\n\t right=nums.length-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t }",
"public void rotateRight() {\n// tileLogic = getRotateRight();\n tileLogic = getRotateLeft();\n// rotateRightTex();\n rotateLeftTex();\n }",
"private int rightchild(int i) {\n return (2 * i) + 2;\n }",
"public void iterate() {\n\t\tfor (int i = 0; i < this.getRemainingAmount(); i++) {\n\t\t\t// O(1) getter of the Circular Vector.\n\t\t\tCarAndTime temp = mVehicles.getIndex(i);\n\t\t\t// to increment the travel time of the car self\n\t\t\ttemp.getCar().incrementTravelTime(1);\n\t\t\t// to decrement the travel time of the car in the pair(in the\n\t\t\t// street)\n\t\t\ttemp.setTime(temp.getTime() - 1);\n\t\t}\n\n\t}",
"public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }",
"private void fillListRight(int rightEdge, final int offset)\n\t{\n\t\t// Log.v(TAG, \".fillListRight: rightEdge = \" + rightEdge + \", offset = \"\n\t\t// + offset + \", _lastItemPosition = \"\n\t\t// + _lastItemPosition);\n\n\t\tint numItems = _adapter.getCount();\n\t\twhile (rightEdge + offset < getWidth() && _lastItemPosition < numItems - 1)\n\t\t{\n\t\t\t_lastItemPosition++;\n\t\t\tfinal View newRightChild = _adapter.getView(_lastItemPosition, getCachedView(), this);\n\t\t\taddAndMeasureChild(newRightChild, LAYOUT_MODE_RIGHT);\n\t\t\trightEdge += newRightChild.getMeasuredWidth();\n\t\t}\n\t}",
"private static int[] Reverse(int[] num, int left, int right)\n\t{\n\t\tif(num == null || num.length == 1)\n\t\t\treturn num;\n\t\t\n\t\t// Swap values for the given point of left end and right end of the array.\n\t\twhile(left < right)\n\t\t{\n\t\t\tint temp;\n\t\t\ttemp = num[left];\n\t\t\tnum[left++] = num[right];\n\t\t\tnum[right--] = temp;\n\t\t\t//left ++;\n\t\t\t//right --;\n\t\t}\n\t\treturn num;\n\t}",
"public void goRight()\r\n\t{\r\n\t\tthis.X++;\r\n\t}",
"private void rightRotate(RBNode<T> y) {\r\n\r\n //node y must have leftChild\r\n RBNode<T> x = y.left;\r\n //1. deal with x's rightChild, move it to y's leftChild:\r\n // update y's leftChild as x's rightChild,\r\n y.left = x.right;\r\n\r\n //update x.right.parent as y (only x.right is not null)\r\n if(x.right != null)\r\n x.right.parent = y;\r\n\r\n //2. deal with parent of y, move x to y's position\r\n // update x's parent as y's parent\r\n x.parent = y.parent;\r\n // if y.parent = null, set root = x\r\n if(y.parent == null) {\r\n this.root = x;\r\n } else {\r\n //if y is rightChild of parent, update x as parent's rightChild\r\n if(y == y.parent.right)\r\n y.parent.right = x;\r\n else//if y is leftChild of parent, update x as parent's leftChild\r\n y.parent.left = x;\r\n }\r\n\r\n //3. update x.right as y, update y.parent as x\r\n x.right = y;\r\n y.parent = x;\r\n }",
"public void compactRight() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la columna anterior\n\t// de la misma fila es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[i][j] == EMPTY && board[i][j - 1] != EMPTY) {\n\t\t board[i][j] = board[i][j - 1];\n\t\t board[i][j - 1] = EMPTY;\n\t\t compactRight();\n\t\t}\n\t }\n\t}\n }",
"public CustomForLoop(Node forLoopNode, int position, CustomClassObject theForLoopsClass, ArrayList<CustomClassObject> allTheClasses){\n this.positon = position;\n //System.out.println(\"this is for loop12345 \" + forLoopNode);\n String loopIteratorType = \"\";\n String declaratorVar = \"\";\n String declaratorVal = \"\";\n String fullRelationalExpression = \"\";\n String rightHandVar = \"\";\n String incrementor;\n String postfixExpression = \"\";\n\n for (int i = 0; i < forLoopNode.getNode(0).size(); i++) {\n\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"Type\")){\n //System.out.println(\"$FOR TYPE\");\n Node getType = forLoopNode.getNode(0).getNode(i);\n loopIteratorType = getType.getNode(0).getString(0);\n CppDataLayout.typeTranslate trans = new CppDataLayout.typeTranslate();\n loopIteratorType = trans.translateType(loopIteratorType);\n }\n\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"Declarators\")){\n\n\n Node declarator = forLoopNode.getNode(0).getNode(i).getNode(0);\n declaratorVar = declarator.getString(0);\n declaratorVal = declarator.getNode(2).getString(0);\n }\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"RelationalExpression\")){\n\n Node relationalExpression = forLoopNode.getNode(0).getNode(i);\n String primaryId = relationalExpression.getNode(0).getString(0);\n String operator = relationalExpression.getString(1);\n Node selectionExpressionNode = relationalExpression.getNode(2);\n String selectionExpression = \"\";\n if (selectionExpressionNode.getNode(0).getName().equals(\"SubscriptExpression\")){\n Node subscriptExpression = selectionExpressionNode.getNode(0);\n selectionExpression += subscriptExpression.getNode(0).getString(0);\n for (int s = 1; s < subscriptExpression.size(); s++){\n selectionExpression += \"[\" + subscriptExpression.getNode(s).getString(0) + \"]\";\n }\n }else {\n selectionExpression = selectionExpressionNode.getNode(0).getString(0);\n }\n String lengthField = \"\";\n if (selectionExpressionNode.getString(1) != null) {\n lengthField = \".\" + selectionExpressionNode.getString(1);\n }\n //for (int32_t i = 0; i < ({__rt::checkNotNull(args); args->length; }); i++) {\n fullRelationalExpression += primaryId + \" \" + operator + \"({__rt::checkNotNull(\"+ selectionExpression +\"); \"+selectionExpression+\"->length; })\";\n }\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"ExpressionList\")){\n //System.out.println(\"$FOR EXPRESSION\");\n Node expressionList = forLoopNode.getNode(0).getNode(i);\n Node postfixExpressionNode = expressionList.getNode(0);\n postfixExpression = postfixExpressionNode.getNode(0).getString(0) + postfixExpressionNode.getString(1);\n }\n } // end of get for loop header\n this.forLoopDecLine = \"for (\" + loopIteratorType + \" \" + declaratorVar + \" = \" + declaratorVal + \"; \" + fullRelationalExpression + \"; \" + postfixExpression + \")\";\n //System.out.println(\"fullForLoop1234678 \" + forLoopDecLine);\n for (int i = 0; i < forLoopNode.size(); i++) {\n //Use this to find the for loops block\n if(forLoopNode.getNode(i).getName().equals(\"Block\")){\n //This is the for loops block\n this.forLoopsTranslatedBlock = new TranslatedBlock(forLoopNode.getNode(i), false, theForLoopsClass, allTheClasses);\n }\n }\n }",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tTreeNode r1 = new TreeNode(1);\n\t\tTreeNode r2 = new TreeNode(2);\n\t\tTreeNode r3 = new TreeNode(3);\n\t\tTreeNode r4 = new TreeNode(4);\n\t\tTreeNode r5 = new TreeNode(5);\n\t\tTreeNode r6 = new TreeNode(6);\n\t\tTreeNode r7 = new TreeNode(7);\n\t\tTreeNode r8 = new TreeNode(8);\n\t\t\n\t\tr1.left = r2;\n\t\tr1.right = r5;\n\t\tr2.left = r3;\n\t\tr2.right = r4;\n\t\tr5.right = r6;\n\t\tr6.left = r7;\n\t\tr6.right = r8;\n\t\t\n\t\tflatten(r1);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tTreeNode p = r1;\n\t\twhile(p !=null){\n\t\t\tsb.append(p.val+\"-->\");\n\t\t\tp=p.right;\n\t\t}\n\t\t\n\t\tSystem.out.println(sb);\n\t\t\n\t}",
"private void rightRotate(WAVLNode x) {\n\t WAVLNode a=x.left;\r\n\t WAVLNode b=x.right;\r\n\t WAVLNode y=x.parent;\r\n\t WAVLNode c=y.right;\r\n\t x.right=y;\r\n\t y.left=b;\r\n\t if (y.parent!=null) {\r\n\t\t WAVLNode d=y.parent;\r\n\t\t String side=parentside(d,y);\r\n\r\n\t\t if (side.equals(\"right\")) {\r\n\t\t\t d.right=x;\r\n\t\t\t x.parent=d;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t d.left=x;\r\n\t\t\t x.parent=d;\r\n\t\t }\r\n\t }\r\n\t else {\r\n\t\t x.parent=null;\r\n\t\t this.root=x;\r\n\t }\r\n\t y.parent=x;\r\n\t b.parent=y;\r\n\t y.rank=y.rank-1;\r\n\t \r\n\t y.sizen=b.sizen+c.sizen+1;\r\n\t x.sizen=a.sizen+y.sizen+1;\r\n\t \r\n }",
"private void fillListRight(int rightEdge, final int dx)\n\t{\n\t\tint nextViewNo = getNextRightItemNo();\n\t\twhile (rightEdge + dx < getWidth() && nextViewNo < mAdapter.getCount())\n\t\t{\n\t\t\tView child = mAdapter.getView(nextViewNo, mRemovedViewQueue.poll(), this);\n\t\t\taddAndMeasureChild(child, -1);\n\t\t\trightEdge += child.getMeasuredWidth();\n\t\t\tmRightViewIndex++;\n\t\t\tnextViewNo = getNextRightItemNo();\n\t\t}\n\t\t\n\t\tif (mRightViewIndex == mAdapter.getCount() )\n\t\t{\n\t\t\tmMaxX = mCurrentX + rightEdge - getWidth();//2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmMaxX = Integer.MAX_VALUE;\n\t\t}\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n private Object asReversedIteration(final Map<String, Object> input, final boolean recursive, final List<Object> disc) {\n Stack<Entry<String, Object>> s = new Stack<>();\n disc.add(input);\n outerLoop:\n for (Entry<String, Object> entry : input.entrySet()) {\n s.push(entry);\n\n for (Object e : disc) {\n {\n if (e == entry) {\n continue outerLoop;\n }\n }\n }\n if (recursive) {\n if (entry.getValue() instanceof List<?>) {\n entry.setValue(asReversedIteration((List<Object>) entry.getValue(), true, disc));\n }\n if (entry.getValue() instanceof Map<?, ?>) {\n entry.setValue(asReversedIteration((Map<String, Object>) entry.getValue(), true, disc));\n }\n }\n\n }\n input.clear();\n int size = s.size();\n for (int i = 0; i < size; i++) {\n Entry<String, Object> e = s.pop();\n input.put(e.getKey(), e.getValue());\n }\n return input;\n }",
"@Override\n\tpublic void moveRight()\n\t{\n\t\tif (!isAtEnd()) left.push(right.pop());\n\t}",
"private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }",
"public List<Integer> rightSideView(TreeNode root) {\n List<Integer> res = new ArrayList<>();\n if (root == null) return res;\n dfs(res, root, 1);\n return res;\n }",
"private void renderDownPaths(Node n)\n {\n\tif (n.siblings.size()==0) {\n\t renderPath(n);\n\t return;\n\t}\n\n\tVectorIterator vi = new VectorIterator(n.siblings);\n\twhile (vi.hasNext()) {\n\t Node s = (Node)(vi.next());\n\t renderDownPaths(s);\n\t}\n }",
"public void loopThroughEdge()\n {\n int margin = 2;\n\n if (getX() < margin) //left side\n { \n setLocation(getWorld().getWidth()+ margin, getY());\n }\n else if (getX() > getWorld().getWidth() - margin) //right side\n {\n setLocation(margin, getY());\n }\n\n if (getY() < margin) //top side\n { \n setLocation(getX(), getWorld().getHeight() - margin);\n }\n else if(getY() > getWorld().getHeight() - margin) //bottom side\n { \n setLocation(getX(), margin);\n }\n }",
"private void rightRotate(AVLNode<T> parent, AVLNode<T> node) {\n AVLNode<T> oldRight = parent.getRight();\n AVLNode<T> parDat = new AVLNode<>(parent.getData());\n parent.setRight(parDat);\n if (oldRight != null) {\n parent.getRight().setRight(oldRight);\n calcDeterminants(parent.getRight().getRight());\n }\n if (node.getRight() != null) {\n parent.getRight().setLeft(node.getRight());\n calcDeterminants(parent.getRight().getLeft());\n }\n parent.setData(node.getData());\n if (node.getLeft() != null) {\n parent.setLeft(node.getLeft());\n calcDeterminants(parent.getLeft());\n } else {\n parent.setLeft(null);\n calcDeterminants(parent.getRight());\n }\n }",
"public void moveRight() {\n for(int i=0;i<this.body.size();i++){\n// TranslateTransition translate = new TranslateTransition();\n// translate.setNode(this.body.get(i));\n// smoothSnake obj=new smoothSnake();\n// obj.swiftSnake(translate,i,this,1);\n this.body.get(i).setCenterX(this.body.get(i).getCenterX()+10);\n }\n\n \tsetScoreText();\n }",
"public List<Integer> rightSideView(TreeNode root) {\n\t\tList<Integer> result = new ArrayList<>();\n\t\tif (root == null) {\n\t\t\treturn result;\n\t\t}\n\t\tQueue<TreeNode> queue = new LinkedList<>();\n\t\tqueue.offer(root);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tint size = queue.size();\n\t\t\tint changeSize = size;\n\t\t\tList<Integer> tempList = new ArrayList<>();\n\t\t\twhile (changeSize > 0) {\n\t\t\t\tTreeNode tempNode = queue.poll();\n\t\t\t\ttempList.add(tempNode.val);\n\t\t\t\tif (tempNode.left != null) {\n\t\t\t\t\tqueue.offer(tempNode.left);\n\t\t\t\t}\n\t\t\t\tif (tempNode.right != null) {\n\t\t\t\t\tqueue.offer(tempNode.right);\n\t\t\t\t}\n\t\t\t\tchangeSize--;\n\t\t\t}\n\t\t\tresult.add(tempList.get(size - 1));\n\t\t}\n\t\treturn result;\n\t}",
"public static void invertBinaryTreeIteratively(BinaryTree tree) {\n Queue<BinaryTree> queue = new LinkedList<>();\n queue.add(tree);\n while (!queue.isEmpty()) {\n BinaryTree currentNode = queue.remove();\n if (currentNode != null) {\n BinaryTree temp = currentNode.left;\n currentNode.left = currentNode.right;\n currentNode.right = temp;\n queue.add(currentNode.left);\n queue.add(currentNode.right);\n }\n }\n\n }"
] |
[
"0.63303894",
"0.60181195",
"0.57990897",
"0.56678617",
"0.5629734",
"0.56257707",
"0.56005377",
"0.55815953",
"0.5545346",
"0.5458954",
"0.5443878",
"0.5411305",
"0.5402509",
"0.53998965",
"0.5384465",
"0.5372977",
"0.5337002",
"0.5334713",
"0.5326848",
"0.5308857",
"0.53052306",
"0.52978635",
"0.5282798",
"0.5269653",
"0.5252327",
"0.52418566",
"0.52325034",
"0.52215683",
"0.51963603",
"0.518948",
"0.51808417",
"0.5180795",
"0.51748693",
"0.5172359",
"0.5167242",
"0.51662207",
"0.51659566",
"0.5164587",
"0.5163542",
"0.51590824",
"0.51559365",
"0.5151669",
"0.5137055",
"0.5133538",
"0.5129302",
"0.51238614",
"0.51163477",
"0.51047516",
"0.5095421",
"0.5093128",
"0.5090347",
"0.50789315",
"0.5078203",
"0.5072819",
"0.5072492",
"0.5071145",
"0.50610167",
"0.5060402",
"0.5056772",
"0.50500095",
"0.5048249",
"0.5047694",
"0.5043292",
"0.5038526",
"0.50248915",
"0.5023478",
"0.5022688",
"0.50181186",
"0.50157225",
"0.5015681",
"0.50095016",
"0.50000936",
"0.4992153",
"0.4987637",
"0.49830657",
"0.49796674",
"0.49762005",
"0.49757737",
"0.4974258",
"0.4972503",
"0.49715784",
"0.49706814",
"0.49698892",
"0.4969438",
"0.49690163",
"0.49661103",
"0.49558803",
"0.495161",
"0.49413833",
"0.49379477",
"0.4931653",
"0.49296182",
"0.49210188",
"0.49166134",
"0.49160373",
"0.49101654",
"0.49039596",
"0.49036667",
"0.49027187",
"0.48957002"
] |
0.52655494
|
24
|
This method for iterate to down direction
|
public void down(int[][] arr,int start,int end,int i){
if(start==end){
return;
}
else{
System.out.println(arr[start][i]);
start++;
}
down(arr,start,end,i);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}",
"public Vertex moveDown() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y + 1, e);\n }\n return current;\n }",
"public void moveDown()\n\t{\n\t\trow--;\n\t}",
"public void Down(){\r\n \r\n if(By>0 && By<900){\r\n \r\n By+=2;\r\n }\r\n }",
"public void moveDown() {\n\t\t\n\t}",
"public void walkDownWall() {\r\n\t\tthis.move();\r\n\t\tthis.turnRight();\r\n\t\tthis.move();\r\n\t\tthis.move();\r\n\t\tthis.move();\r\n\t\tthis.turnLeft();\r\n\t}",
"protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }",
"public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}",
"static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }",
"private static void listIteratorMovesInBothDirections(){\n\t ArrayList<String> list = new ArrayList<String>();\n\t \n\t list.add(\"ONE\");\n\t \n\t list.add(\"TWO\");\n\t \n\t list.add(\"THREE\");\n\t \n\t list.add(\"FOUR\");\n\t \n\t //RSN NOTE ListIterator\n\t ListIterator iterator = list.listIterator();\n\t \n\t System.out.println(\"Elements in forward direction\");\n\t \n\t while (iterator.hasNext())\n\t {\n\t System.out.println(iterator.next());\n\t }\n\t \n\t System.out.println(\"Elements in backward direction\");\n\t \n\t while (iterator.hasPrevious())\n\t {\n\t System.out.println(iterator.previous());\n\t }\n\t}",
"public boolean down() {\r\n if( row >= MAXROWS-1 ) return false;\r\n ++row;\r\n return true;\r\n }",
"void reverseDirection();",
"public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}",
"public boolean moveDown() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenDown() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.DOWN);\r\n\t\t\tif ( currentRow+1 >= size || maze [currentRow+1] [currentCol].isOpenUp() )\r\n\t\t\t{\r\n\t\t\t\tcurrentRow++;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentRow < size )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Down: \" + moved );\r\n\t\treturn moved;\r\n\t\t\r\n\t}",
"private void backward() {\n index--;\n if(column == 0) {\n line--;\n linecount = column = content.getColumnCount(line);\n }else{\n column--;\n }\n }",
"public synchronized Iterator<E> iteratorDownAll()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorDown<E>(this, this.m_LastNode, this.m_FirstNode.m_Element);\n }",
"public void moveDown()\n {\n if (!this.search_zone.isDownBorder(this.y_position))\n {\n this.y_position = (this.y_position + 1);\n }\n }",
"public void moveDown() {\n this.accelerateYD();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(0);\n this.setLoopCells(true);\n }",
"public void down()\n {\n if (this.index >= 0 && this.index < this.morphs.size())\n {\n MorphType type = this.morphs.get(this.index);\n\n if (type.morphs.size() > 1)\n {\n type.down();\n this.resetTime();\n }\n }\n }",
"protected void nextDirection()\n {\n if (this.lastKeyDirection == Canvas.LEFT)\n {\n this.lastKeyDirection = keyDirection = Canvas.RIGHT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n else if (this.lastKeyDirection == Canvas.RIGHT)\n {\n this.lastKeyDirection = keyDirection = Canvas.LEFT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n }",
"public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}",
"public void goDown()\r\n\t{\r\n\t\tthis.Y++;\r\n\t}",
"public void moveDown() {\n Coordinate downCoord = new Coordinate(getX(), getY() + 1);\n handleMove(downCoord, InteractionHandler.DOWN);\n }",
"void moveDown() {\n\t\tsetY(y+1);\r\n\t\tdx=0;\r\n\t\tdy=1;\r\n\t}",
"public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"public void moveDown() {\n locY = locY - 1;\n }",
"public void stepForward() {\n\t\tposition = forwardPosition();\n\t}",
"public void shiftDown() {\n\t\tif (prev == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" down because it is already at the bottom\");\n\t\t}\n\t\tDependencyElement p = prev;\n\t\tDependencyElement pp = prev.prev;\n\t\tif (pp != null) {\n\t\t\tpp.next = this;\n\t\t\tprev = pp;\n\t\t}\n\t\telse {\n\t\t\tprev = null;\n\t\t}\n\t\tp.prev = this;\n\t\tp.next = next;\n\t\tnext = p;\n\t}",
"@Override\n public void backward() {\n }",
"public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}",
"public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}",
"public boolean up() {\r\n if( row <= 0 ) return false;\r\n --row;\r\n return true;\r\n }",
"private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}",
"public void moveDown() {\n\t\tstate.updateFloor(state.getFloor()-1);\n\t}",
"@Override\n\tpublic boolean moveDown() {\n\t\tboolean rs = super.moveDown();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}",
"public void cyclePoles(boolean up) {\n\t\tint dir = up ? 1 : -1;\n\t\tselectedPoleIndex += dir;\n\t\tif (selectedPoleIndex >= listOfZP.size()) {\n\t\t\tselectedPoleIndex = 0;\n\t\t}\n\t\tif (selectedPoleIndex < 0) {\n\t\t\tselectedPoleIndex = listOfZP.size() - 1;\n\t\t}\n\t}",
"public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }",
"public void moveDown() {\n\t\tsetPosY(getPosY() + steps);\n\t}",
"void moveDown();",
"void moveDown();",
"public void grip(){\n\t\tthis.motor.backward();\n\t}",
"public void moveDown(){\n if(currentText != null) {\n //If this is not the very last text\n if (lineIndex < texts.size() - 1) {\n //Move down\n lineIndex++;\n currentText = texts.get(lineIndex);\n\n //Try to use the saved character index as the character index\n if (savedCharacterIndex != -1) {\n characterIndex = savedCharacterIndex;\n }\n\n //Ensure that character index is within the bounds of the text\n if (characterIndex > currentText.getCharacterEdges().length - 1) {\n //Save the character index\n if (characterIndex > savedCharacterIndex) {\n savedCharacterIndex = characterIndex;\n }\n characterIndex = currentText.getCharacterEdges().length - 1;\n }\n\n //Update the position\n updatePosition();\n }\n //If this is the last line then the cursor should be moved to the end of the line\n else {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n characterIndex = currentText.getCharacterEdges().length - 1;\n updateXPosition(true);\n }\n }\n }",
"public void animateMovementDown()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (downMvt.length);\n setImage(downMvt[imageNumber]);\n } \n }",
"public void moveDown()\n {\n if (yPos == yBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive Y because we are moving DOWN!\n movementY = 0.5;\n movementX = 0;\n }",
"public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public void backward(int step) {\r\n\t\tString s;\r\n\t\tthis.x = checkValidX(this.x + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][0]); // Move back without turning\r\n\t\tthis.y = checkValidX(this.y + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][1]);\r\n\t\tswitch (this.getDirection()) {\r\n\t\t\tcase Constant.NORTH:\r\n\t\t\t\ts = \"Up\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.EAST:\r\n\t\t\t\ts = \"Right\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.SOUTH:\r\n\t\t\t\ts = \"Down\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.WEST:\r\n\t\t\t\ts = \"Left\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\ts = \"Error\";\r\n\t\t}\r\n\t\ttoggleValid();\r\n\t\tfor (int i = 0; i < step * Constant.GRIDWIDTH; i++) {\r\n\t\t\tt.schedule(new MoveImageTask(robotImage, s, 1), delay * (i + 1));\r\n\t\t}\r\n\t}",
"public Integer checkDown()\r\n\t{\r\n\t\t// array bound\r\n\t\treturn this.Y + 1;\r\n\t}",
"public Room goDown() {\n return goDir(Side.DOWN);\n }",
"@Test\n public void testIterator_Backward() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n\n int i = 0;\n while (instance.hasNext()) {\n instance.next();\n }\n\n i = baseList.size() - 1;\n while (instance.hasPrevious()) {\n assertEquals(baseList.get(i--), instance.previous());\n }\n\n }",
"public void moveDown() {\n btMoveDown().push();\n }",
"public void moveDown() {\n btMoveDown().push();\n }",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"public void back() {\n\t\tif (path.isEmpty()) {\n\t\t\tpath = crossLocation.pop();\n\t\t\tLocation loc = path.get(path.size() - 1);\n\t\t\tint dir = getLocation().getDirectionToward(loc);\n\t\t\tif (dir == Location.HALF_CIRCLE) {\n\t\t\t\tdirsCount[0]--;\n\t\t\t} else if (dir == Location.AHEAD) {\n\t\t\t\tdirsCount[1]--;\n\t\t\t} else if (dir == Location.RIGHT) {\n\t\t\t\tdirsCount[2]--;\n\t\t\t} else {\n\t\t\t\tdirsCount[3]--;\n\t\t\t}\n\t\t}\n\t\tnext = path.remove(path.size() - 1);\n\t\tmove();\n\t}",
"public boolean stepDown() {\n yMaze++;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}",
"public void move_down() {\n\t\tlocation.setY(location.getY()+y_velocity);\n\t\timage.setTranslateY(location.getY());\n\t}",
"public void reverse_Iteratively_Data() throws Exception {\r\n\t\tint left = 0, right = this.size() - 1;\r\n\r\n\t\twhile (left <= right) {\r\n\t\t\tNode leftNode = this.getNodeAt(left);\r\n\t\t\tNode rightNode = this.getNodeAt(right);\r\n\r\n\t\t\tT temp = leftNode.data;\r\n\t\t\tleftNode.data = rightNode.data;\r\n\t\t\trightNode.data = temp;\r\n\r\n\t\t\tleft++;\r\n\t\t\tright--;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}",
"protected void siftDown() {\r\n\t\tint parent = 0, child = (parent << 1) + 1;// preguntar porque 0 y no 1\r\n\t\t\r\n\t\twhile (child < theHeap.size()) {\r\n\t\t\tif (child < theHeap.size() - 1\r\n\t\t\t\t\t&& compare(theHeap.get(child), theHeap.get(child + 1)) > 0)\r\n\t\t\t\tchild++; // child is the right child (child = (2 * parent) + 2)\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tparent = child;\r\n\t\t\tchild = (parent << 1) + 1; // => child = (2 * parent) + 1\r\n\t\t}\r\n\t}",
"public void downPressed() {\n System.out.println(\"downPressed()\");\n current.translate(1, 0);\n display.showBlocks();\n }",
"public Location down() {\n return new Location(row + 1, column);\n }",
"public void moveDown(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.DOWN;\n\t\tif(animation!=ANIMATION.MOVEDOWN) {\n\t\t\tanimation=ANIMATION.MOVEDOWN;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"down\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=spd/2;\n\t\tvelX=0;\n\t}",
"public void iterate() {\n\t\tfor (int i = 0; i < this.getRemainingAmount(); i++) {\n\t\t\t// O(1) getter of the Circular Vector.\n\t\t\tCarAndTime temp = mVehicles.getIndex(i);\n\t\t\t// to increment the travel time of the car self\n\t\t\ttemp.getCar().incrementTravelTime(1);\n\t\t\t// to decrement the travel time of the car in the pair(in the\n\t\t\t// street)\n\t\t\ttemp.setTime(temp.getTime() - 1);\n\t\t}\n\n\t}",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"public int moveStepDown(final int index) {\r\n\t\tif ( index >= ( numberOfSteps() - 1 ) ) {\r\n\t\t\treturn index;\t\r\n\t\t}\r\n\t\tfinal int newIndex = index + 1;\r\n\t\tCollections.swap( getSteps(), index, newIndex );\r\n\t\treturn newIndex;\r\n\t}",
"public void down() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}",
"private void goDownWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move(2);\n\t\tthis.turnLeft();\n\t}",
"public void goDown() {\n if(page.down == null)\n {\n if(editText.getText().toString().equals(\"\")) {\n return;\n }\n page.addRelation(\"down\",editText.getText().toString());\n editText.setText(\"\");\n }\n\n page = page.down;\n addQueue();\n }",
"public boolean moveForward(){\n \n int[] last = (int[]) this.snake.elementAt(this.snake.size() -1);\n int[] sLast = (int[]) this.snake.elementAt(this.snake.size() -2);\n int[] diff = new int[2];\n int[] diff2 = new int[2];\n \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n \n //left\n if( direction == 1){\n diff2[0]--;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff = diff2; \n }\n \n //down\n }else if(direction == 2){\n \n diff2[1]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n //System.out.println(\"first one: \" + diff[0] + \", \" + diff[1]);\n }\n \n //right\n }else if(direction == 3){\n diff2[0]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n \n //up\n }else if(direction == 4){\n \n diff2[1]--;\n //System.out.println(\"\" + diff[0] + \", \" + diff[1]);\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n }else{ \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n }\n \n int[] newPoint = new int[2];\n newPoint[0] = last[0] + diff[0];\n newPoint[1] = last[1] + diff[1];\n \n //if it hits the snake itself\n boolean hits = false;\n Enumeration enu = this.snake.elements();\n int[] temp = new int[2];\n while(enu.hasMoreElements()){\n temp = (int[]) enu.nextElement();\n if(temp[0] == newPoint[0] && temp[1] == newPoint[1]){\n hits = true; \n }\n }\n if(hits){\n return false; \n }\n //if it hits the wall\n if( newPoint[0] >50 || newPoint[0] <0 || newPoint[1] >50 || newPoint[1] <0){\n return false; \n }else{\n if(newPoint [0] == this.apple[0] && newPoint[1] == this.apple[1]){\n this.snake.add(newPoint);\n this.ateApple();\n }else{\n this.snake.add(newPoint);\n this.snake.remove(0);\n \n \n }\n return true;\n }\n }",
"protected void reversePath() {\n\t\t\n\t\tif(_reverse) {\n\t\t\t\n\t\t\tif(_nextMove + 1 > movingPattern.size() - 1)\n\t\t\t\t_nextMove = 0;\n\t\t\telse\n\t\t\t\t_nextMove++;\n\t\t\t\n\t\t\t_reverse = false;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(_nextMove - 1 < 0)\n\t\t\t\t_nextMove = movingPattern.size() - 1;\n\t\t\telse\n\t\t\t\t_nextMove--;\n\t\t\t\n\t\t\t_reverse = true;\n\t\t}\n\t}",
"public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}",
"void moveBack()\n\t{\n\t\tif (length != 0) \n\t\t{\n\t\t\tcursor = back; \n\t\t\tindex = length - 1; //cursor will be at the back\n\t\t\t\n\t\t}\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"public void moveDown() {\n \t if(!move.moveDown()) {\n \t\t if(physinteractor(this.getX(),this.getY()+1)) {\n \t\t\t move.moveDown();\n \t\t\t nonphysinteractor(getX(),getY());\n \t\t\t updatemove();\n \t\t }\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }",
"public void inOrderTraverseIterative();",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }",
"@Override\n\tpublic void run() {\n\t\tfor(int i = 1; i<=5; i++) {\n\t\t\tdata.down();\n\t\t}\n\t}",
"public synchronized void scrollDown()\r\n\t{\r\n\t\treferenceImage.scrollDown();\r\n\t\tdisplayedImage.scrollDown();\r\n\t}",
"Enumerator getDirection();",
"public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}",
"private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}",
"public void moveUporDown(int direction)\n\t{\n\t\tif (this.direction == direction || this.direction == -direction)\n\t\t\treturn ;\n\t\tthis.direction = direction;\n\t\tdirx = 0;\n\t\tdiry = 0;\n\t\tif (direction == 1 || direction == -1)\n\t\t\tdirx = direction;\n\t\telse\n\t\t\tdiry = direction / 2;\n\t}",
"protected void trickleDown(int i) {\n\n int left = this.leftChild(i);\n int right = this.rightChild(i);\n T element = this.elements[i];\n\n if (left < currentSize && right < currentSize) {\n int min = this.minPosition(right, left);\n\n if ( element.compareTo(this.elements[min]) > 0)\n this.swapTrickleDown(i, min);\n\n } else if (left < currentSize && element.compareTo(this.elements[left]) > 0)\n this.swapTrickleDown(i, left);\n\n }",
"public boolean goBack() {\n if(index > 0) {\n index--;\n return true;\n } else {\n return false;\n }\n }",
"public void loopThroughEdge()\n {\n int margin = 2;\n\n if (getX() < margin) //left side\n { \n setLocation(getWorld().getWidth()+ margin, getY());\n }\n else if (getX() > getWorld().getWidth() - margin) //right side\n {\n setLocation(margin, getY());\n }\n\n if (getY() < margin) //top side\n { \n setLocation(getX(), getWorld().getHeight() - margin);\n }\n else if(getY() > getWorld().getHeight() - margin) //bottom side\n { \n setLocation(getX(), margin);\n }\n }",
"public Vertex moveUp() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y - 1, e);\n }\n return current;\n }",
"public void reverseDirectionY()\n\t{\n\t\t\n\t\tvy = -vy;\n\t}",
"public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"void scroll(int dir) {\n if (!isScrolling && selectedEgg - dir >= 0 && selectedEgg - dir < shopEggs.size()) {\n isScrolling = true;\n if (dir > 0) {\n setEggGoRight(selectedEgg);\n setEggGoRight(selectedEgg - 1);\n } else {\n setEggGoLeft(selectedEgg);\n setEggGoLeft(selectedEgg + 1);\n }\n selectedEgg -= dir;\n }\n }",
"public Integer checkUp()\r\n\t{\r\n\t\treturn this.Y - 1;\r\n\t}",
"public void uncover ()\n {\n for (DancingNode i=this.U; i!=this; i=i.U) // go up the column\n {\n for (DancingNode j=i.L; j!=i; j=j.L) // go left across the row \n {\n j.C.size++;\n j.relinkUD();\n }\n }\n this.relinkLR();\n }",
"public void reverseDirection(Position ep) throws InvalidPositionException;",
"public void startReverse() {\n startHelper(f_startDirection.getOppositeDirection(), \"startReverse()\");\n }",
"public Location getDown()\n\t{\n\t\tif(checkDown())\n\t\t{\n\t\t\treturn new Location(row+1,col);\n\t\t}\n\t\treturn this;\n\t}",
"@Override\n\t\tpublic Item next() {\n\t\t\treturn items[--i];\n\t\t}",
"public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }",
"private int down(int row, int column, char check, char[][] downBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\tif (row == 18 || traversedPoints.contains(new Point(column, row + 1)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (downBoard[column][row + 1] != ' ' && downBoard[column][row + 1] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn row + 1;\n\t\t}\n\t}"
] |
[
"0.6766972",
"0.6766057",
"0.65191764",
"0.6474156",
"0.64544916",
"0.6404034",
"0.6316834",
"0.6286961",
"0.62699026",
"0.625707",
"0.62285525",
"0.62155503",
"0.62035817",
"0.619949",
"0.6194049",
"0.6168282",
"0.615653",
"0.61289126",
"0.61090845",
"0.60868174",
"0.6075245",
"0.60501295",
"0.604993",
"0.6047604",
"0.60435367",
"0.6039294",
"0.60357916",
"0.6031582",
"0.602629",
"0.6021359",
"0.6020545",
"0.5990797",
"0.59856206",
"0.5985433",
"0.59803134",
"0.5957082",
"0.59526527",
"0.594427",
"0.5916972",
"0.58847266",
"0.58847266",
"0.58597565",
"0.58593035",
"0.5839001",
"0.581972",
"0.5818976",
"0.580686",
"0.576581",
"0.5763572",
"0.5761941",
"0.5747554",
"0.5747554",
"0.5740005",
"0.5731822",
"0.5726474",
"0.5725179",
"0.57120794",
"0.5708178",
"0.5706141",
"0.56991136",
"0.569783",
"0.5689955",
"0.5684781",
"0.5682005",
"0.56785476",
"0.567591",
"0.5670018",
"0.5664894",
"0.565477",
"0.5644129",
"0.56390536",
"0.563408",
"0.5619732",
"0.56169343",
"0.561662",
"0.5611699",
"0.5602501",
"0.5601081",
"0.5597781",
"0.5592815",
"0.55742776",
"0.5569303",
"0.55661786",
"0.5565611",
"0.55601954",
"0.5558727",
"0.5558721",
"0.5557229",
"0.5556278",
"0.5555402",
"0.5550526",
"0.5544299",
"0.5544278",
"0.55420816",
"0.5539903",
"0.5538943",
"0.5537818",
"0.55316085",
"0.5525221",
"0.551703"
] |
0.5873069
|
41
|
This method for iterate to left direction
|
public void left(int[][] arr,int start,int end,int i){
if(start==end){
return;
}
else{
System.out.println(arr[i][start]);
start--;
}
left(arr,start,end,i);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Dir moveLeft() {\n\t\t\tint newDir = (this.ordinal() + SIZE - 1) % SIZE;\n\t\t\treturn dirArray[newDir];\n\t\t}",
"public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }",
"public Direction left() {\r\n\t\tint newDir = this.index - 1;\r\n\r\n\t\tnewDir = (newDir == 0) ? 4 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}",
"public void rotateLeft() {\n\t\tthis.direction = this.direction.rotateLeft();\n\t}",
"public Vertex moveLeft() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x - 1, e);\n }\n return current;\n }",
"private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}",
"public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }",
"@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}",
"public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}",
"public void moveLeft() {\n this.accelerateXL();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(141);\n this.setLoopCells(true);\n }",
"public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}",
"protected void refillLeft(){\n\t\tif(!shouldRepeat && isSrollingDisabled) return; //prevent next layout calls to override first init to scrolling disabled by falling to this branch\n\t\tif(getChildCount() == 0) return;\n\t\t\n\t\tfinal int leftScreenEdge = getScrollX();\n\t\t\n\t\tView child = getChildAt(0);\n\t\tint childLeft = child.getLeft();\n\t\tint currLayoutRight = childLeft - ((LoopLayoutParams)child.getLayoutParams()).leftMargin;\n\t\twhile(currLayoutRight > leftScreenEdge){\n\t\t\tmFirstItemPosition--;\n\t\t\tif(mFirstItemPosition < 0) mFirstItemPosition = mAdapter.getCount()-1;\n\t\t\t\n\t\t\tchild = mAdapter.getView(mFirstItemPosition, getCachedView(), this);\n Validate.notNull(child,\"Your adapter has returned null from getView.\");\n\t\t\tchild = addAndMeasureChildHorizontal(child, LAYOUT_MODE_TO_BEFORE);\n\t\t\tcurrLayoutRight = layoutChildHorizontalToBefore(child, currLayoutRight, (LoopLayoutParams) child.getLayoutParams());\n\t\t\tchildLeft = child.getLeft() - ((LoopLayoutParams)child.getLayoutParams()).leftMargin;\n\t\t\t//update left edge of children in container\n\t\t\tmLeftChildEdge = childLeft;\n\t\t\t\n\t\t\t//if selected view is going to screen, set selected state on him\n\t\t\tif(mFirstItemPosition == mSelectedPosition){\n\t\t\t\tchild.setSelected(true);\n\t\t\t}\n\t\t}\n\t}",
"public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}",
"public Direction left() {\n\t\treturn left;\n\t}",
"protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }",
"public boolean moveLeft() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenLeft() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.LEFT);\r\n\t\t\tif ( currentCol-1 < 0 || maze [currentRow] [currentCol-1].isOpenRight() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Left: \" + moved );\r\n\t\treturn moved;\r\n\t}",
"public boolean left() {\r\n if( col <= 0 ) return false;\r\n --col;\r\n return true;\r\n }",
"public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}",
"private int leftIndex(int i) {\n return i * 2;\n }",
"private void turnLeft() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.NORTH;\n break;\n case WEST:\n direction = Position.Direction.SOUTH;\n break;\n case NORTH:\n direction = Position.Direction.WEST;\n break;\n case SOUTH:\n direction = Position.Direction.EAST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }",
"public void slideLeft() {\n turnLeft();\n move();\n turnRight();\n }",
"public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}",
"public Direction moveLeft() {\n switch(this){\n case EAST :\n return NORTH;\n case SOUTH :\n return EAST;\n case WEST :\n return SOUTH;\n case NORTH :\n return WEST;\n }\n return this;\n }",
"public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}",
"public void rotLeft()\n\t{\n\t\t//only rotate if a PlayerShip is currently spawned\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext ())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif(current instanceof PlayerShip)\n\t\t\t{\n\t\t\t\t((PlayerShip)current).moveLeft();\n\t\t\t\tSystem.out.println(\"Heading -20\");\n\t\t\t\tnotifyObservers();\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(\"There is no playerShip spawned\");\n\t}",
"public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forward();\n }",
"public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(animation!=ANIMATION.MOVELEFT) {\n\t\t\tanimation=ANIMATION.MOVELEFT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.LEFT;\n\t\tdirection=\"left\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=-1*spd/2;\n\t\tvelY=0;\n\t}",
"public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}",
"private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }",
"public void leftPressed() {\n System.out.println(\"leftPressed()\");\n current.translate(0, -1);\n display.showBlocks();\n }",
"public void moveLeft() {\n \tif(!move.moveLeft()) {\n \t\tif(physinteractor(getX()-1,getY())) {\n \t\t\tmove.moveLeft();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }",
"public void moveLeft() {\n\t\t\n\t}",
"public Direction toLeft()\n {\n return new Direction(dirInDegrees - (FULL_CIRCLE / 4));\n }",
"protected long getLeftPosition() {\n return leftPosition;\n }",
"public void moveLeft()\n\t{\n\t\tmoveLeft = true;\n\t}",
"private void printLeft() {\n System.out.println(\"left side:\");\n if(leftSide != null) {\n for (int person : leftSide) System.out.print(Integer.toString(person) + \" \");\n System.out.println();\n }\n }",
"public void moveLeft() {\n locX = locX - 1;\n }",
"private void LeftLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t}",
"public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }",
"public void turnLeft() {\n\t\tthis.setSteeringDirection(getSteeringDirection()-5);\n\t\t}",
"@Override\n\tpublic boolean moveLeft() {\n\t\tboolean rs = super.moveLeft();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}",
"public void animateMovementLeft()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (leftMvt.length);\n setImage(leftMvt[imageNumber]);\n }\n }",
"void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}",
"private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }",
"public boolean slideLeft() {\n\t\tif (currentCol > 0) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow][currentCol - 1];\n\t\t\tcurrentCol--;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }",
"private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }",
"public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}",
"public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }",
"public void moveLeft()\n\t{\n\t\tcol--;\n\t}",
"public void moveLeft(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex -= 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex >= 0) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very first line move to the end of the previous line\n if (lineIndex > 0) {\n lineIndex--;\n currentText = texts.get(lineIndex);\n characterIndex = currentText.getCharacterEdges().length - 1;\n if (characterIndex < 0) {\n characterIndex = 0;\n }\n updatePosition();\n }\n //If this is the first line character index should not change and position does not need to be updated\n else {\n characterIndex = 0;\n }\n }\n }\n }",
"private void fillListLeft(int leftEdge, final int offset)\n\t{\n\t\t// Log.v(TAG, \".fillListLeft: leftEdge = \" + leftEdge + \", offset = \" +\n\t\t// offset + \", _firstItemPosition = \"\n\t\t// + _firstItemPosition);\n\n\t\twhile (leftEdge + offset > 0 && _firstItemPosition > 0)\n\t\t{\n\t\t\t_firstItemPosition--;\n\n\t\t\tfinal View newLeftCild = _adapter.getView(_firstItemPosition, getCachedView(), this);\n\t\t\taddAndMeasureChild(newLeftCild, LAYOUT_MODE_LEFT);\n\t\t\tfinal int childWidth = newLeftCild.getMeasuredWidth();\n\t\t\tleftEdge -= childWidth;\n\n\t\t\t// Update the list offset (since we added a view at the left)\n\t\t\t_listLeftOffset -= childWidth;\n\t\t}\n\t}",
"public void changeDirection()\n {\n if(goLeft){\n goLeft = false;\n }else{\n goLeft = true;\n }\n }",
"private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}",
"protected int left(int i ) { return 2 * i + 1; }",
"public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public void rotateLeft() {\n // I fucked up? Rotations are reversed, just gonna switch em\n// tileLogic = getRotateLeft();\n tileLogic = getRotateRight();\n// rotateLeftTex();\n rotateRightTex();\n }",
"@Override\n\tpublic void moveLeft()\n\t{\n\t\tif (!isAtStart()) right.push(left.pop());\n\n\t}",
"public boolean pageLeft() {\n if (this.mCurItem <= 0) {\n return false;\n }\n setCurrentItem(this.mCurItem - 1, true);\n return true;\n }",
"public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }",
"public static int rotateLeft(int dir) {\n return (dir + 1) & 3;\n }",
"public void moveLeft() {\n this.velocity = this.velocity.add(leftVelocity());\n }",
"public Direction toLeft(int deg)\n {\n return new Direction(dirInDegrees - deg);\n }",
"private int left(int i) {\r\n\t\treturn 2 * i + 1;\r\n\t}",
"void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }",
"private void applyLeftTurn(WorldSpatial.Direction orientation, float delta) {\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.NORTH)){\n\t\t\t\tturnLeft(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase NORTH:\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.WEST)){\n\t\t\t\tturnLeft(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.EAST)){\n\t\t\t\tturnLeft(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.SOUTH)){\n\t\t\t\tturnLeft(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t\n\t\t}\n\t\t\n\t}",
"public boolean moveLeft()\n {\n\tboolean update;\n\tboolean action = false;\n\t\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=0; y<cases.length-1; y++)\n {\n for (int x=0; x<cases[y].length; x++)\n\t\t{\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n merge = merge(cases[x][y+1],cases[x][y]);\n move = move(cases[x][y+1],cases[x][y]);\n\t\t\tupdate = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n }\n }\n } while (update);\n \n return action;\n }",
"public void adjustLeft() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x - 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x - 4;\n grassTiles[x][y].x = grassTiles[x][y].x - 4;\n }\n }",
"public static void slide_right_to_left(RecyclerView.ViewHolder holder){\n AnimatorSet animatorSet = new AnimatorSet();\n ObjectAnimator alpha = ObjectAnimator.ofFloat(holder.itemView,\"alpha\",0.1f,1f);\n ObjectAnimator objectAnimatorX2 = ObjectAnimator.ofFloat(holder.itemView,\"translationX\",500,0);\n alpha.setDuration(1000);\n objectAnimatorX2.setDuration(1000);\n animatorSet.playTogether(alpha,objectAnimatorX2);\n animatorSet.setInterpolator(new OvershootInterpolator(2.0f));\n animatorSet.start();\n\n }",
"public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}",
"private Position nextPositionLeftToRight(Position pos) {\n return (pos.getColNum() == nCols - 1\n ? new Position(pos.getRowNum(), 0)\n : new Position(pos.getRowNum(), pos.getColNum() + 1));\n }",
"public void goLeft() {\n if(page.left == null)\n {\n if(editText.getText().toString().equals(\"\")) {\n return;\n }\n page.addRelation(\"left\",editText.getText().toString());\n editText.setText(\"\");\n }\n\n page = page.left;\n addQueue();\n }",
"public void moveLeft() {\n speedX -= (speedX > 0) ? acceleration * 2 : acceleration;\n if (speedX < -maxSpeed) {\n speedX = -maxSpeed;\n }\n direction = Direction.LEFT;\n }",
"private void RightLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\t\n \t\t\n \t\n \t}\n \t}",
"private int getLeftOf(int i) {\n \t\t// TODO Complete this method!\n \t\treturn 2*i;\n \t}",
"public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"private void left(int pos) {\n while (pos < gapLeft) {\n gapLeft--;\n gapRight--;\n buffer[gapRight+1] = buffer[gapLeft];\n buffer[gapLeft] = '\\0';\n }\n }",
"public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }",
"public void leftRotateByOne(int[] data) {\n\t\tint temp = data[0]; // Storing first element in temp value\n\t\tfor (int i = 0; i < data.length - 1; i++) {\n\t\t\t// shift each element\n\t\t\tdata[i] = data[i + 1];\n\t\t}\n\t\t// store the last index by temp val\n\t\tdata[data.length - 1] = temp;\n\t}",
"private List<ru.mtl.VoidVoice.model.Finger> generateLeftFingerList() {\n List<ru.mtl.VoidVoice.model.Finger> res = new ArrayList<>();\n addToFingerList(res, FingerType.Thumb, leftThumbDir, leftPalmNormal, leftThumbPos);\n addToFingerList(res, FingerType.Index, leftIndexDir, leftPalmNormal, leftIndexPos);\n addToFingerList(res, FingerType.Middle, leftMiddleDir, leftPalmNormal, leftMiddlePos);\n addToFingerList(res, FingerType.Ring, leftRingDir, leftPalmNormal, leftRingPos);\n addToFingerList(res, FingerType.Pinky, leftPinkyDir, leftPalmNormal, leftPinkyPos);\n return res;\n }",
"public void leftPressed() {\n\t\tkeys.get(keys.put(Keys.LEFT, true));\n\t}",
"public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }",
"public static void slide_left_to_right(RecyclerView.ViewHolder holder){\n AnimatorSet animatorSet = new AnimatorSet();\n ObjectAnimator alpha = ObjectAnimator.ofFloat(holder.itemView,\"alpha\",0.1f,1f);\n ObjectAnimator objectAnimatorX2 = ObjectAnimator.ofFloat(holder.itemView,\"translationX\",-500,0);\n alpha.setDuration(1000);\n objectAnimatorX2.setDuration(1000);\n animatorSet.playTogether(alpha,objectAnimatorX2);\n animatorSet.setInterpolator(new OvershootInterpolator(2.0f));\n animatorSet.start();\n\n }",
"boolean getLeftToRight();",
"private static int moveLeft()\n {\n int num_chocolates = choArr[baby.row][baby.column-1];\n // change both the choArr and baby position\n baby.column=baby.column-1;\n choArr[baby.row][baby.column]=0;\n return num_chocolates;\n }",
"@Test\n\tpublic final void nextPositionLeftTest() {\n\t\tplayer.setLeft(true);\n\t\tplayer.setMovSpeed(3.0);\n\t\tplayer.setMaxSpeed(2.0);\n\t\tplayer.getNextXPosition();\n\t\tassertEquals(player.getDx(), -2.0, 0.1);\n\t}",
"private int movesLeft() {\n\t\treturn movesLeft.size() - 1; // don't count quit\n\t}",
"public Direction left() {\r\n\t\tif (this.direction == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tthis.direction = Direction.WEST;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tthis.direction = Direction.SOUTH;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tthis.direction = Direction.EAST;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tthis.direction = Direction.NORTH;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn this.direction;\r\n\t}",
"public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }",
"@Override\n\tpublic INode getLeft() {\n\t\treturn left;\n\t}",
"protected static int left(int i){\n return 2*i+1;\n }",
"private void adjustLeft(WorldSpatial.Direction orientation, float delta) {\n\t\tSystem.out.println(getAngle());\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\tif(getAngle() > WorldSpatial.EAST_DEGREE_MIN+EAST_THRESHOLD){\n\t\t\t\tturnRight(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase NORTH:\n\t\t\tif(getAngle() > WorldSpatial.NORTH_DEGREE){\n\t\t\t\tturnRight(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tif(getAngle() > WorldSpatial.SOUTH_DEGREE){\n\t\t\t\tturnRight(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tif(getAngle() > WorldSpatial.WEST_DEGREE){\n\t\t\t\tturnRight(delta);\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"public void alignSelectedFurnitureOnLeftSide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float [][] points = leadPiece.getPoints();\n Line2D leftLine = new Line2D.Float(points [3][0], points [3][1], points [0][0], points [0][1]); \n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n alignPieceOfFurnitureAlongLeftOrRightSides(alignedPiece.getPieceOfFurniture(), leadPiece, leftLine, false);\n }\n }\n });\n }",
"boolean isDirectionLTR() {\n return ltr;\n }",
"public void justifyLeft() {\n\t\tleft.left();\n\t}",
"public void scrollLeft() {\r\n for(int i = 0; i < grid.getNumRows(); i++) {\r\n for(int j = 0; j < grid.getNumCols(); j++) {\r\n if(grid.getImage(i, j) == avoidImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, avoidImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n } else if(grid.getImage(i, j) == getImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, getImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n }\r\n }\r\n }\r\n \r\n handleCollision(userRow, 1);\r\n }",
"@Override\r\n\tpublic void moveLeft() {\n\t\tswitch(state) {\r\n\t\tcase 0: case 2:\r\n\t\t\t{\r\n\t\t\t\tboolean ok = true;\r\n\t\t\t\tfor(Case c: cases) {\r\n\t\t\t\t\tif(!grille.isEmpty(c.getX()+x-1, c.getY()+y))\r\n\t\t\t\t\t\tok = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(ok)\r\n\t\t\t\t\t--x;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t{\r\n\t\t\tint x3 = cases.get(3).getX()-1, y3 = cases.get(3).getY();\r\n\t\t\tif(grille.isEmpty(x+x3, y+y3))\r\n\t\t\t\t--x;\r\n\t\t\t\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 3:\r\n\t\t{\r\n\t\t\tint x0 = cases.get(0).getX()-1, y0 = cases.get(0).getY();\r\n\t\t\tif(grille.isEmpty(x+x0, y+y0))\r\n\t\t\t\t--x;\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault : \r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"public void setLeft(boolean left) {\n\t\tthis.left = left;\n\t}",
"private void moveToLeft (List<NodeRealizer> rightList, List<NodeRealizer> maxXList)\n {\n for (NodeRealizer nodeRealizer : rightList)\n {\n double minY = nodeRealizer.getY ();\n double maxY = nodeRealizer.getY () + nodeRealizer.getHeight ();\n int minYIndex = findRealizerIndex (maxXList, minY);\n int maxYIndex = findRealizerIndex (maxXList, maxY);\n double maxX = maxXList.get (minYIndex).getX () + maxXList.get (minYIndex).getWidth ();\n for (int i = minYIndex + 1; i <= maxYIndex; i++)\n {\n NodeRealizer realizer = maxXList.get (i);\n maxX = Math.max (maxX, realizer.getX () + realizer.getWidth ());\n }\n nodeRealizer.setX (maxX + GAP);\n }\n }"
] |
[
"0.71523196",
"0.69764936",
"0.69341063",
"0.6865108",
"0.68196106",
"0.6626615",
"0.662514",
"0.6569907",
"0.6562719",
"0.65504",
"0.65395194",
"0.6508784",
"0.648303",
"0.6475734",
"0.64429283",
"0.6426688",
"0.6419337",
"0.64157593",
"0.63552773",
"0.6354368",
"0.6351105",
"0.6339659",
"0.6325379",
"0.63144034",
"0.63013536",
"0.6274555",
"0.62573683",
"0.6256268",
"0.62394947",
"0.6228266",
"0.62272704",
"0.6225945",
"0.6222954",
"0.62207127",
"0.62175053",
"0.6216798",
"0.6213204",
"0.62120205",
"0.62031597",
"0.61996293",
"0.61906296",
"0.61821806",
"0.6179608",
"0.6163586",
"0.61576074",
"0.6155116",
"0.6148159",
"0.6144563",
"0.61380917",
"0.61104906",
"0.6108608",
"0.610086",
"0.60899734",
"0.60854304",
"0.6059196",
"0.6047408",
"0.60448164",
"0.6041421",
"0.60389334",
"0.60384095",
"0.6037156",
"0.6032729",
"0.6029827",
"0.60284185",
"0.6027323",
"0.601147",
"0.60091066",
"0.6003553",
"0.59870446",
"0.59789443",
"0.5976197",
"0.5975087",
"0.59711045",
"0.5966708",
"0.59556997",
"0.5953691",
"0.5945969",
"0.59353507",
"0.59346503",
"0.593232",
"0.5928234",
"0.5927706",
"0.5925142",
"0.5920414",
"0.59167534",
"0.59094304",
"0.59064096",
"0.5899465",
"0.58977497",
"0.58896565",
"0.58862436",
"0.58853126",
"0.5884977",
"0.58800054",
"0.58761257",
"0.5870279",
"0.586157",
"0.58473605",
"0.5843995",
"0.58350754",
"0.58211184"
] |
0.0
|
-1
|
This method for iterate to up direction
|
public void up(int[][] arr,int start,int end,int i){
if(start==end){
return;
}
else{
System.out.println(arr[start][i]);
start--;
}
up(arr,start,end,i);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Vertex moveUp() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y - 1, e);\n }\n return current;\n }",
"public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}",
"public boolean up() {\r\n if( row <= 0 ) return false;\r\n --row;\r\n return true;\r\n }",
"public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }",
"@Override\n\tpublic boolean moveUp() {\n\t\tboolean rs = super.moveUp();\n\t\tif(rs == true){\n\n\t\t}\n\t\treturn rs;\n\t}",
"public Vertex moveDown() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y + 1, e);\n }\n return current;\n }",
"public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}",
"public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public void cyclePoles(boolean up) {\n\t\tint dir = up ? 1 : -1;\n\t\tselectedPoleIndex += dir;\n\t\tif (selectedPoleIndex >= listOfZP.size()) {\n\t\t\tselectedPoleIndex = 0;\n\t\t}\n\t\tif (selectedPoleIndex < 0) {\n\t\t\tselectedPoleIndex = listOfZP.size() - 1;\n\t\t}\n\t}",
"public void moveUp() {\n Coordinate upCoord = new Coordinate(getX(), getY() - 1);\n handleMove(upCoord, InteractionHandler.UP);\n }",
"void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}",
"public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }",
"private void goUpWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.turnLeft();\n\t\tthis.move(2);\n\t\tthis.turnRight();\n\t}",
"public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}",
"public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}",
"public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }",
"public void goUp();",
"void moveUp();",
"void moveUp();",
"private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }",
"public Room goUp() {\n return goDir(Side.UP);\n }",
"public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }",
"public void moveUp() {\n locY = locY + 1;\n }",
"public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}",
"public boolean moveUp() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenUp() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.UP);\r\n\t\t\tif ( currentRow-1 < 0 || maze [currentRow-1] [currentCol].isOpenDown() )\r\n\t\t\t{\r\n\t\t\t\tcurrentRow--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentRow >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Up: \" + moved );\r\n\t\treturn moved;\r\n\t}",
"public void moveUp() {\n if(!move.moveUp()) {\n \t if(physinteractor(getX(),getY()-1)) {\n \t\t move.moveUp();\n \t\t nonphysinteractor(getX(),getY());\n \t\t updatemove();\n \t }\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }",
"public void moveUp() {\n btMoveUp().push();\n }",
"public void moveUp() {\n btMoveUp().push();\n }",
"public void up()\n {\n if (this.index >= 0 && this.index < this.morphs.size())\n {\n MorphType type = this.morphs.get(this.index);\n\n if (type.morphs.size() > 1)\n {\n type.up();\n this.resetTime();\n }\n }\n }",
"public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}",
"public void Down(){\r\n \r\n if(By>0 && By<900){\r\n \r\n By+=2;\r\n }\r\n }",
"public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}",
"public void shiftUp() {\n\t\tif (next == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" up because it is already at the top\");\n\t\t}\n\t\tDependencyElement n = next;\n\t\tDependencyElement nn = next.next;\n\t\tif (nn != null) {\n\t\t\tnn.prev = this;\n\t\t\tnext = nn;\n\t\t}\n\t\telse {\n\t\t\tnext = null;\n\t\t}\n\t\tn.next = this;\n\t\tn.prev = prev;\n\t\tprev = n;\n\t}",
"public void moveUp(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.UP;\n\t\tif(animation!=ANIMATION.MOVEUP) {\n\t\t\tanimation=ANIMATION.MOVEUP;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"up\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=-1*spd/2;\n\t\tvelX=0;\n\t}",
"public boolean moveUp()\n {\n\tboolean update;\n\tboolean action = false;\n\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=0; y<cases.length-1; y++)\n {\n\t\tfor (int x=0; x<cases[y].length; x++)\n {\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n\t\t\tmerge = merge(cases[y+1][x],cases[y][x]);\n\t\t\tmove = move(cases[y+1][x],cases[y][x]);\n\t\t\tupdate = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n\t\t}\n }\n } while (update);\n \n return action;\n }",
"void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}",
"@Test\n\tpublic final void nextPositionUpTest() {\n\t\tplayer.setUp(true);\n\t\tplayer.getNextYPosition();\n\t\tassertTrue(player.isJumping());\n\t}",
"public synchronized Iterator<E> iteratorUpAll()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorUp<E>(this, this.m_FirstNode, this.m_LastNode.m_Element);\n }",
"public Integer checkUp()\r\n\t{\r\n\t\treturn this.Y - 1;\r\n\t}",
"public boolean stepUp() {\n yMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"public int upright();",
"private void trickleUp(int index) {\n Map.Entry<String, Double> bottom = this.get(index);\n\n // if bottom < parent, move up\n while (PARENT(bottom).getValue().compareTo(bottom.getValue()) > 0) {\n Collections.swap(this, this.indexOf(bottom), this.indexOf(PARENT(bottom)));\n }\n\n }",
"public void updateUp() {\n int newY = this.getY() + 1;\n this.setY(newY);\n }",
"public void goUp() {\n if(page.up == null)\n {\n if(editText.getText().toString().equals(\"\")) {\n return;\n }\n page.addRelation(\"up\",editText.getText().toString());\n editText.setText(\"\");\n }\n\n page = page.up;\n addQueue();\n }",
"public void moveUp()\n {\n if (yPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative Y because we are moving UP!\n movementY = -0.5;\n movementX = 0;\n }",
"@Override\n\tpublic void movePlayerUp() {\n\t\tpacman.changeNextDirection(Direction.up);\n //movePacman();\n\t}",
"public void animateMovementUp()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (upMvt.length);\n setImage(upMvt[imageNumber]);\n } \n }",
"private static void listIteratorMovesInBothDirections(){\n\t ArrayList<String> list = new ArrayList<String>();\n\t \n\t list.add(\"ONE\");\n\t \n\t list.add(\"TWO\");\n\t \n\t list.add(\"THREE\");\n\t \n\t list.add(\"FOUR\");\n\t \n\t //RSN NOTE ListIterator\n\t ListIterator iterator = list.listIterator();\n\t \n\t System.out.println(\"Elements in forward direction\");\n\t \n\t while (iterator.hasNext())\n\t {\n\t System.out.println(iterator.next());\n\t }\n\t \n\t System.out.println(\"Elements in backward direction\");\n\t \n\t while (iterator.hasPrevious())\n\t {\n\t System.out.println(iterator.previous());\n\t }\n\t}",
"public void moveUp() {\n\n if (this.row - 1 < 16) {\n return;\n }\n this.row -= 1;\n\n playerImage.translate(0, -Cell.CELLSIZE);\n playerImage.draw();\n }",
"public void siftUp(int i){\n int child = i;\n if (child==0){\n return;\n }else{\n int parent = (child-1) / 2;\n if(eventArray[parent].eventTime > eventArray[child].eventTime) {\n swap(child, parent);\n siftUp(parent);\n }\n }\n }",
"static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }",
"void findUp(Board board) {\n if (tile.getRowPos() != 0) {\n Tile upTile = board.getTileObjByPosition(tile.getRowPos() - 1, tile.getColPos());\n if (upTile != null) {\n if (RailroadInk.areConnectedNeighbours(tile.getPlacementStr(), upTile.getPlacementStr())) {\n Node upNode;\n if ((upTile.graphId > 0) || ((upTile.graphId == -1) && (upTile.upId == graphId))) {\n upNode = nodeMap.get(upTile.pos);\n } else {\n upNode = new Node(upTile);\n if (upTile.name.equals(\"B2\")) {\n upTile.downId = graphId;\n }\n nodeMap.put(upTile.pos, upNode);\n }\n\n // Update the connection relationship.\n this.up = upNode;\n upNode.down = this;\n if (this.tile.name.equals(\"B2\")) {\n this.tile.upId = graphId;\n }\n\n if (upNode.up == null) {\n upNode.findUp(board);\n }\n if ((!upTile.name.equals(\"B2\")) && (upNode.right == null)) {\n upNode.findRight(board);\n }\n if ((!upTile.name.equals(\"B2\")) && (upNode.left == null)) {\n upNode.findLeft(board);\n }\n }\n }\n }\n }",
"protected void moveUp(Position<Item<E>> p) {\n int cnt = count(p);\n Position<Item<E>> walk = p;\n while (walk != list.first() && count(list.before(walk)) < cnt) // found smaller access count ahead of Item\n walk = list.before(walk); // set walk to the left position\n if (walk != p) // we need to remove and re-insert the item at its right position\n list.addBefore(walk, list.remove(p)); // remove and re-inser the item\n\n }",
"public void moveDown()\n\t{\n\t\trow--;\n\t}",
"public Vector get_vUp() {\n\t\treturn _vUp;\n\t}",
"public void up() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}",
"public Location getUp()\n\t{\n\t\tif(checkUp())\n\t\t\treturn new Location(row-1,col);\n\t\treturn this;\n\t}",
"protected void moveUp(Position<Entry<E>> p)\r\n\t{\n\t\tint count = key(p);\r\n\t\tPosition<Entry<E>> walk = p;\r\n\r\n\t\twhile(walk != fList.first() && key(fList.before(walk)) < count)\r\n\t\t\twalk = fList.before(walk);\r\n\t\tif(walk != p)\r\n\t\t\tfList.addBefore(walk, fList.remove(p));\r\n\t}",
"public boolean goAllUp() {\n\t\tif ( topLimitSwitch.get() ) {\n\t\t\tstop();\n\t\t}\n\t\telse {\n\t\t\tup();\n\t\t}\n\t\t\n\t\treturn topLimitSwitch.get();\n\t}",
"public Location up() {\n return new Location(row - 1, column);\n }",
"protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }",
"protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}",
"private void handleUp() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()-1), controller.getCurrentPosition().getX());\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getY()== -1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((GameViewController.BOARD_ROWS-1), controller.getCurrentPosition().getX());\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private int up(int row, int column, char check, char[][] upBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\t// checks if requesting point off board, or point already traversed\n\t\tif (row == 0 || traversedPoints.contains(new Point(column, row - 1)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (upBoard[column][row - 1] != ' ' && upBoard[column][row - 1] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn row - 1;\n\t\t}\n\t}",
"public void moveUporDown(int direction)\n\t{\n\t\tif (this.direction == direction || this.direction == -direction)\n\t\t\treturn ;\n\t\tthis.direction = direction;\n\t\tdirx = 0;\n\t\tdiry = 0;\n\t\tif (direction == 1 || direction == -1)\n\t\t\tdirx = direction;\n\t\telse\n\t\t\tdiry = direction / 2;\n\t}",
"public void goUp() {\n\t\tacceleration = -1;\n\t}",
"public void moveUp() {\n if (propertyOwner != null) {\n propertyOwner.moveUp( this );\n }\n }",
"public void moveUp() {\n if (ycoor >= movingSpeed) {\n ycoor = ycoor - movingSpeed;\n }\n }",
"@Override\r\n\tpublic int ToggleUp() {\n\t\treturn 0;\r\n\t}",
"public void backward(int step) {\r\n\t\tString s;\r\n\t\tthis.x = checkValidX(this.x + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][0]); // Move back without turning\r\n\t\tthis.y = checkValidX(this.y + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][1]);\r\n\t\tswitch (this.getDirection()) {\r\n\t\t\tcase Constant.NORTH:\r\n\t\t\t\ts = \"Up\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.EAST:\r\n\t\t\t\ts = \"Right\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.SOUTH:\r\n\t\t\t\ts = \"Down\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.WEST:\r\n\t\t\t\ts = \"Left\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\ts = \"Error\";\r\n\t\t}\r\n\t\ttoggleValid();\r\n\t\tfor (int i = 0; i < step * Constant.GRIDWIDTH; i++) {\r\n\t\t\tt.schedule(new MoveImageTask(robotImage, s, 1), delay * (i + 1));\r\n\t\t}\r\n\t}",
"public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"private Boolean moveUp() {\n\t\t\tboolean loose = true;\n\n\t\t\tint x = startX;\n\t\t\tint y = startY;\n\n\t\t\tNode newNode = new Node(x, y, Util.getBall(1));\n\n\t\t\twhile (y >= 0 && chart[y][x] == null) {\n\t\t\t\tif (y + 1 < chart.length)\n\t\t\t\t\tchart[y + 1][x] = null;\n\n\t\t\t\tchart[y][x] = newNode;\n\n\t\t\t\tcanvas = holder.lockCanvas();\n\t\t\t\tonDraw(canvas);\n\t\t\t\tpostInvalidate();\n\t\t\t\tholder.unlockCanvasAndPost(canvas);\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(50);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tnewNode.setyPos(--y);\n\n\t\t\t\tloose = false;\n\t\t\t}\n\n\t\t\tif (loose)// No Update\n\t\t\t\treturn false;\n\n\t\t\tconnectNewNode(newNode);\n\t\t\treturn true;\n\t\t}",
"void reverseDirection();",
"public void moveDown() {\n\t\t\n\t}",
"public void moveUp() {\n\t\tposY += speed;\n\t}",
"public static void goUp(Node parent) {\n\t\tint[][] tempArray = new int[3][3];\n\t\t\n\t\tint blankPositionRow = parent.getblankPositionRow();\n\t\tint blankPositionCol = parent.getblankPositionCol();\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\ttempArray[i][j] = parent.stateSpace[i][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (blankPositionRow != 0) {\n\t\t\tint temp = tempArray[blankPositionRow - 1][blankPositionCol];\n\t\t\ttempArray[blankPositionRow - 1][blankPositionCol] = 0;\n\t\t\ttempArray[blankPositionRow][blankPositionCol] = temp;\n\t\t\tNode node = new Node(tempArray, finalState, parent);\n\t\t\tchoiceOfNodes.add(node);\n\t\t\tnodesGenerated++;\n\t\t\t\n\t\t}\n\t}",
"public boolean moveForward(){\n \n int[] last = (int[]) this.snake.elementAt(this.snake.size() -1);\n int[] sLast = (int[]) this.snake.elementAt(this.snake.size() -2);\n int[] diff = new int[2];\n int[] diff2 = new int[2];\n \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n \n //left\n if( direction == 1){\n diff2[0]--;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff = diff2; \n }\n \n //down\n }else if(direction == 2){\n \n diff2[1]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n //System.out.println(\"first one: \" + diff[0] + \", \" + diff[1]);\n }\n \n //right\n }else if(direction == 3){\n diff2[0]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n \n //up\n }else if(direction == 4){\n \n diff2[1]--;\n //System.out.println(\"\" + diff[0] + \", \" + diff[1]);\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n }else{ \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n }\n \n int[] newPoint = new int[2];\n newPoint[0] = last[0] + diff[0];\n newPoint[1] = last[1] + diff[1];\n \n //if it hits the snake itself\n boolean hits = false;\n Enumeration enu = this.snake.elements();\n int[] temp = new int[2];\n while(enu.hasMoreElements()){\n temp = (int[]) enu.nextElement();\n if(temp[0] == newPoint[0] && temp[1] == newPoint[1]){\n hits = true; \n }\n }\n if(hits){\n return false; \n }\n //if it hits the wall\n if( newPoint[0] >50 || newPoint[0] <0 || newPoint[1] >50 || newPoint[1] <0){\n return false; \n }else{\n if(newPoint [0] == this.apple[0] && newPoint[1] == this.apple[1]){\n this.snake.add(newPoint);\n this.ateApple();\n }else{\n this.snake.add(newPoint);\n this.snake.remove(0);\n \n \n }\n return true;\n }\n }",
"protected void siftUp(int start) {\r\n\t\tint child = start, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1; // >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"public void moveUp(TLProperty element);",
"public void stepForward() {\n\t\tposition = forwardPosition();\n\t}",
"public String moveUp() {\n\r\n\t\tif((0<=x && x<=50) && (0<=y && y<10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\ty++;\t\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}",
"public boolean moveUp() throws EatableObjectOnPlaceException {\r\n\t\tif (!treeAbove() && !mouseAbove()) {\r\n\t\t\tif (!onTopBorder(positionY)) {\r\n\t\t\t\tpositionY = positionY - 1;\r\n\t\t\t\teatPerformingStep();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn moveDown();\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public synchronized void scrollUp()\r\n\t{\r\n\t\treferenceImage.scrollUp();\r\n\t\tdisplayedImage.scrollUp();\r\n\t}",
"public int moveStepUp(final int index) {\r\n\t\tif ( index < 1 ) {\r\n\t\t\treturn index;\r\n\t\t}\r\n\t\tfinal int newIndex = index - 1;\r\n\t\tCollections.swap( getSteps(), index, newIndex );\r\n\t\treturn newIndex;\r\n\t}",
"public boolean isMoveUp() {\n return moveUp;\n }",
"public final flipsParser.upDownDirection_return upDownDirection() throws RecognitionException {\n flipsParser.upDownDirection_return retval = new flipsParser.upDownDirection_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal448=null;\n Token string_literal449=null;\n Token char_literal450=null;\n Token string_literal451=null;\n Token string_literal452=null;\n Token string_literal453=null;\n Token string_literal454=null;\n Token char_literal455=null;\n Token string_literal456=null;\n Token string_literal457=null;\n Token string_literal458=null;\n\n CommonTree char_literal448_tree=null;\n CommonTree string_literal449_tree=null;\n CommonTree char_literal450_tree=null;\n CommonTree string_literal451_tree=null;\n CommonTree string_literal452_tree=null;\n CommonTree string_literal453_tree=null;\n CommonTree string_literal454_tree=null;\n CommonTree char_literal455_tree=null;\n CommonTree string_literal456_tree=null;\n CommonTree string_literal457_tree=null;\n CommonTree string_literal458_tree=null;\n RewriteRuleTokenStream stream_300=new RewriteRuleTokenStream(adaptor,\"token 300\");\n RewriteRuleTokenStream stream_297=new RewriteRuleTokenStream(adaptor,\"token 297\");\n RewriteRuleTokenStream stream_302=new RewriteRuleTokenStream(adaptor,\"token 302\");\n RewriteRuleTokenStream stream_298=new RewriteRuleTokenStream(adaptor,\"token 298\");\n RewriteRuleTokenStream stream_301=new RewriteRuleTokenStream(adaptor,\"token 301\");\n RewriteRuleTokenStream stream_304=new RewriteRuleTokenStream(adaptor,\"token 304\");\n RewriteRuleTokenStream stream_299=new RewriteRuleTokenStream(adaptor,\"token 299\");\n RewriteRuleTokenStream stream_303=new RewriteRuleTokenStream(adaptor,\"token 303\");\n RewriteRuleTokenStream stream_305=new RewriteRuleTokenStream(adaptor,\"token 305\");\n RewriteRuleTokenStream stream_243=new RewriteRuleTokenStream(adaptor,\"token 243\");\n RewriteRuleTokenStream stream_296=new RewriteRuleTokenStream(adaptor,\"token 296\");\n\n try {\n // flips.g:669:2: ( ( 'u' | 'up' | 'c' | 'climb' | 'climbing' | 'ascend' | 'ascending' ) -> CLIMB | ( 'd' | 'down' | 'descend' | 'descending' ) -> DESCEND )\n int alt177=2;\n int LA177_0 = input.LA(1);\n\n if ( ((LA177_0>=296 && LA177_0<=302)) ) {\n alt177=1;\n }\n else if ( (LA177_0==243||(LA177_0>=303 && LA177_0<=305)) ) {\n alt177=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 177, 0, input);\n\n throw nvae;\n }\n switch (alt177) {\n case 1 :\n // flips.g:669:4: ( 'u' | 'up' | 'c' | 'climb' | 'climbing' | 'ascend' | 'ascending' )\n {\n // flips.g:669:4: ( 'u' | 'up' | 'c' | 'climb' | 'climbing' | 'ascend' | 'ascending' )\n int alt175=7;\n switch ( input.LA(1) ) {\n case 296:\n {\n alt175=1;\n }\n break;\n case 297:\n {\n alt175=2;\n }\n break;\n case 298:\n {\n alt175=3;\n }\n break;\n case 299:\n {\n alt175=4;\n }\n break;\n case 300:\n {\n alt175=5;\n }\n break;\n case 301:\n {\n alt175=6;\n }\n break;\n case 302:\n {\n alt175=7;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 175, 0, input);\n\n throw nvae;\n }\n\n switch (alt175) {\n case 1 :\n // flips.g:669:5: 'u'\n {\n char_literal448=(Token)match(input,296,FOLLOW_296_in_upDownDirection3902); \n stream_296.add(char_literal448);\n\n\n }\n break;\n case 2 :\n // flips.g:669:9: 'up'\n {\n string_literal449=(Token)match(input,297,FOLLOW_297_in_upDownDirection3904); \n stream_297.add(string_literal449);\n\n\n }\n break;\n case 3 :\n // flips.g:669:14: 'c'\n {\n char_literal450=(Token)match(input,298,FOLLOW_298_in_upDownDirection3906); \n stream_298.add(char_literal450);\n\n\n }\n break;\n case 4 :\n // flips.g:669:18: 'climb'\n {\n string_literal451=(Token)match(input,299,FOLLOW_299_in_upDownDirection3908); \n stream_299.add(string_literal451);\n\n\n }\n break;\n case 5 :\n // flips.g:669:26: 'climbing'\n {\n string_literal452=(Token)match(input,300,FOLLOW_300_in_upDownDirection3910); \n stream_300.add(string_literal452);\n\n\n }\n break;\n case 6 :\n // flips.g:669:37: 'ascend'\n {\n string_literal453=(Token)match(input,301,FOLLOW_301_in_upDownDirection3912); \n stream_301.add(string_literal453);\n\n\n }\n break;\n case 7 :\n // flips.g:669:46: 'ascending'\n {\n string_literal454=(Token)match(input,302,FOLLOW_302_in_upDownDirection3914); \n stream_302.add(string_literal454);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 670:2: -> CLIMB\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(CLIMB, \"CLIMB\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:671:4: ( 'd' | 'down' | 'descend' | 'descending' )\n {\n // flips.g:671:4: ( 'd' | 'down' | 'descend' | 'descending' )\n int alt176=4;\n switch ( input.LA(1) ) {\n case 243:\n {\n alt176=1;\n }\n break;\n case 303:\n {\n alt176=2;\n }\n break;\n case 304:\n {\n alt176=3;\n }\n break;\n case 305:\n {\n alt176=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 176, 0, input);\n\n throw nvae;\n }\n\n switch (alt176) {\n case 1 :\n // flips.g:671:5: 'd'\n {\n char_literal455=(Token)match(input,243,FOLLOW_243_in_upDownDirection3926); \n stream_243.add(char_literal455);\n\n\n }\n break;\n case 2 :\n // flips.g:671:9: 'down'\n {\n string_literal456=(Token)match(input,303,FOLLOW_303_in_upDownDirection3928); \n stream_303.add(string_literal456);\n\n\n }\n break;\n case 3 :\n // flips.g:671:16: 'descend'\n {\n string_literal457=(Token)match(input,304,FOLLOW_304_in_upDownDirection3930); \n stream_304.add(string_literal457);\n\n\n }\n break;\n case 4 :\n // flips.g:671:26: 'descending'\n {\n string_literal458=(Token)match(input,305,FOLLOW_305_in_upDownDirection3932); \n stream_305.add(string_literal458);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 672:2: -> DESCEND\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(DESCEND, \"DESCEND\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public int up() throws InterruptedException {\n\t\tif (direction == Direction.IDLE || direction == Direction.UP) {\n\t\t\tdirection = Direction.UP;\n\t\t\tThread.sleep(TIME_DELAY);\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}",
"private void edgeUp(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest))\r\n\t\t\t\tedge.setStatus(true);\r\n\t\t}\r\n\t}",
"@Test\n public void testIterator_Backward() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n\n int i = 0;\n while (instance.hasNext()) {\n instance.next();\n }\n\n i = baseList.size() - 1;\n while (instance.hasPrevious()) {\n assertEquals(baseList.get(i--), instance.previous());\n }\n\n }",
"public void upPressed() {\n System.out.println(\"upPressed()\");\n current.rotate();\n display.showBlocks();\n }",
"public boolean down() {\r\n if( row >= MAXROWS-1 ) return false;\r\n ++row;\r\n return true;\r\n }",
"public void moveUp() {\n speedY += (speedY < 0) ? acceleration * 2 : acceleration;\n if (speedY > maxSpeed) {\n speedY = maxSpeed;\n }\n direction = Direction.UP;\n }",
"public void upPressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.up();\n\t\t} else {\n\t\t\tactiveNode.nextChild();\n\t\t}\n\t}",
"private void moveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length; column++) {\n\n // check is set to false, meaning no combinations have been made\n boolean check = false;\n for ( int row = 1; row < grid.length; row++) {\n int compare = row;\n if ( grid[compare][column] != 0 ) { \n\n // loop continues while there are still zero values above the current\n // tile\n while ( grid[compare-1][column] == 0 ) {\n\n // switches places of the current tile with the zero tile\n grid[compare-1][column] = grid[compare][column];\n grid[compare][column] = 0;\n compare --;\n\n // if you reach the top of the board, break from the loop\n if ( compare == 0 ){\n break;\n }\n }\n // if a combination was made on the previous loop, set check to false\n if ( check == true ){\n check = false;\n }\n // if a combination wasn't made on the previous loop and two tiles\n // next to each other have the same value, combine them\n else if ( compare!=0 && \n grid[compare-1][column] == grid[compare][column] ) {\n grid[compare-1][column] = 2*grid[compare-1][column];\n grid[compare][column] = 0;\n\n // sets check to true to indicate a combination was made\n check = true;\n\n // increases your score by the value of the combined tile\n score+= grid[compare-1][column];\n } \n }\n }\n } \n }",
"public boolean isUp () { return n.isUp(); }",
"@Override\n public void backward() {\n }"
] |
[
"0.69527197",
"0.68187225",
"0.67802685",
"0.67598194",
"0.6689416",
"0.66326964",
"0.65203065",
"0.64909697",
"0.64778316",
"0.6476382",
"0.6456438",
"0.6453512",
"0.64087635",
"0.63906294",
"0.6382688",
"0.6374619",
"0.6318699",
"0.63168246",
"0.6288433",
"0.6285795",
"0.6285795",
"0.6276175",
"0.6274673",
"0.625307",
"0.6251757",
"0.6242262",
"0.62327176",
"0.6229154",
"0.6213362",
"0.6213362",
"0.61798424",
"0.61737746",
"0.6148015",
"0.61340564",
"0.61205816",
"0.6106547",
"0.6094924",
"0.6084112",
"0.6078713",
"0.6078213",
"0.60659397",
"0.6055704",
"0.604046",
"0.60371107",
"0.6036456",
"0.6030833",
"0.6025623",
"0.60129344",
"0.600115",
"0.5988201",
"0.59644765",
"0.59620994",
"0.59618306",
"0.5957953",
"0.5952233",
"0.5950525",
"0.5949559",
"0.59253985",
"0.5914969",
"0.5896975",
"0.58929336",
"0.588529",
"0.5872663",
"0.5868108",
"0.5864333",
"0.58630097",
"0.5860755",
"0.5836362",
"0.5801792",
"0.579753",
"0.5793692",
"0.5788058",
"0.5782982",
"0.57788587",
"0.5775362",
"0.5768474",
"0.5764783",
"0.57645047",
"0.57533085",
"0.573217",
"0.572545",
"0.57195646",
"0.57165724",
"0.5714016",
"0.5712637",
"0.57020396",
"0.57002604",
"0.5690782",
"0.568568",
"0.5681302",
"0.5680366",
"0.56745684",
"0.56735945",
"0.5670041",
"0.5666842",
"0.5666571",
"0.5657678",
"0.5652354",
"0.56509143",
"0.5650588"
] |
0.580488
|
68
|
Printer for the given 2D Array
|
public void printer(int[][] arr, int xS, int yS, int yL, int xL,int counter) {
if (counter == yL * xL) {
return;
}
else {
right(arr, xS, yL + 1, xS);
down(arr, xS + 1, xL + 1, yL);
if (xL >= xS + 1) {
left(arr, yL - 1, yS - 1, xL);
}
if (yL >= yS + 1) {
up(arr, yL, xS, yS);
}
if (xL - 1 >= xS + 1 && yL - 1 >= yS + 1) {
printer(arr, xS + 1, yS + 1, yL - 1, xL - 1, counter++);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void printdia(int[][] array){\n\t\tint dim = array.length;\n\n\t for( int k = 0 ; k < dim * 2 ; k++ ) {\n\t for( int j = 0 ; j <= k ; j++ ) {\n\t int i = k - j;\n\t if( i < dim && j < dim ) {\n\t System.out.print( array[i][j] + \" \" );\n\t }\n\t }\n\t System.out.println();\n\t }\n\t}",
"private static void printArray(Node[][] puzzle) {\r\n\t\tfor (int i = 0; i < puzzle.length; i++) {\r\n\t\t\tfor (int j = 0; j < puzzle[0].length; j++) {\r\n\t\t\t\tSystem.out.print(puzzle[i][j].getValue());\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t}",
"public static void display2dArray(int [][] arr){\n for (int i = 0; i < arr.length; i++){ \n System.out.println(Arrays.toString(arr[i]));\n }\n \n // the iterative approach\n for (int i = 0; i < arr.length; i++){\n for (int j = 0; j < arr[i].length; j++){\n System.out.print(arr[i][j]+ \" \");\n }\n System.out.println();\n }\n System.out.println();\n }",
"public void printArray2D(int[][] array2D) {\r\n\t\tfor (int i = 0; i < array2D.length; i++) {\r\n\t\t\tfor (int j = 0; j < array2D[i].length; j++) {\r\n\t\t\t\tSystem.out.print(array2D[i][j] + \", \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public static void printArray(Object[][] dataArray) {\n\t\t\n\t\tif (dataArray == null) {\n\t\t\tSystem.out.print(\"Empty Array\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint rows = dataArray.length;\n\t\tint cols = dataArray[0].length;\n\t\t\n\t\tSystem.out.print(\"\\nData: \\n\");\n\t\tSystem.out.print(\"Number of Rows: \" + (rows) + \" \\n\");\n\t\tSystem.out.print(\"Number of Columns: \" + (cols) + \" \\n\\n\");\n\t\n\t\tfor (int i = 0; i < rows ; i++) { \n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tSystem.out.print(dataArray[i][j].toString() + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}",
"public static void printArray(int[][] twoDArray) {\n\t\tfor (int i = 0; i < twoDArray.length; i++) {\n\t\t\tSystem.out.println(Arrays.toString(twoDArray[i]));\n\t\t}\n\t}",
"public Array2DPrint() {}",
"public static void print1( int[][] a )\n {\n for(int x = 0; a.length > x; x++) { //for the amount of rows...\n\t for(int y = 0; a[x].length > y; y++){//...and for the length of the\n\t //nested array\n\t System.out.println(a[x][y]); //print out that specific array point\n\t }\n }\n }",
"public void print() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n System.out.print(matrix[i][j] + \" \");\n }\n System.out.println();\n }\n }",
"public static void print2DArray(int input[][]) {\n int m = input.length;\n if (m == 0)\n return;\n int n = input[0].length;\n\n for (int i = 0; i < m; i++) {\n int k = i;\n while (k < m) {\n for (int j = 0; j < n; j++) {\n System.out.print(input[i][j] + \" \");\n }\n k++;\n System.out.println();\n }\n }\n }",
"public void printArray(){\n\n\t\tfor (int i=0;i<1;i++){\n\n\t\t\tfor (int j=0;j<population[i].getLength();j++){\n\n\t\t\t\tSystem.out.println(\"X\" + j + \": \" + population[i].getX(j) + \" \" + \"Y\"+ j + \": \" + population[i].getY(j));\n\t\t\t\tSystem.out.println();\n\n\t\t\t}//end j\n\n\t\t\tSystem.out.println(\"The duplicate count is: \" + population[i].duplicateCheck());\n\t\t\tSystem.out.println(\"The fitness is \" + population[i].computeFitness());\n\t\t\t//population[i].computeFitness();\n\n\t\t}//end i\n\n\t}",
"public static void print2D(char mat[][]) {\n System.out.println(\"printing matrix\");\n for (int i = 0; i < mat.length; i++) {\n for (int j = 0; j < mat[i].length; j++) {\n System.out.print(mat[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n\n }",
"public static void printArray(int[][] Array) {\r\n\t\t\tfor (int i = 0; i < Array.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < Array[0].length; j++) {\r\n\t\t\t\t\tSystem.out.print(Array[i][j] + \" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}",
"void show(double[][][] arr,String name){\n \n System.out.println(name+\"Array\");\n Vector Size = new Vector(arr.length,arr[0].length,arr[0][0].length);\n \n for(int i=0;i<Size.x;i++){\n \n for(int j=0;j<Size.y;j++){\n \n for(int k=0;k<Size.z;k++){\n \n System.out.print(arr[i][j][k]+\" \");\n }\n System.out.println();\n }\n System.out.println();\n }\n\n}",
"public static void printTwoDimensionalArray(int[][] arr) {\n\n\t\tfor (int[] row : arr) { // rows means a 1-D array\n\t\t\tfor (int item : row) { // item - all the elements present in each row\n\t\t\t\tSystem.out.print(item + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void print2DArray(int[][] myDataGrid){\n\t\n\tfor(int i=0; i<3; i++){\n\t\tfor(int j=0; j<5; j++){\n\t\t\tSystem.out.println(myDataGrid[i][j] + \", \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public static void printArray(double[][] dataArray) {\n\t\t\n\t\tif (dataArray == null) {\n\t\t\tSystem.out.print(\"Empty Array\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint rows = dataArray.length;\n\t\tint cols = dataArray[0].length;\n\t\t\n\t\tSystem.out.print(\"\\nData: \\n\");\n\t\tSystem.out.print(\"Number of Rows: \" + (rows) + \" \\n\");\n\t\tSystem.out.print(\"Number of Columns: \" + (cols) + \" \\n\\n\");\n\t\n\t\tfor (int i = 0; i < rows ; i++) { \n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tSystem.out.printf(\"%.3f \\t\", dataArray[i][j] );\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}",
"private static void print(int[][] image) {\n for(int i = 0; i < image.length; i++) {\n for(int j = 0; j < image[0].length; j++) {\n System.out.print(image[i][j] + \" \");\n }\n System.out.println(\"\\n\");\n }\n }",
"public static void show(int[][] arr) {\n\t\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\t\tfor(int j=0;j<arr.length;j++) {\n\t\t\t\t\tSystem.out.print(arr[i][j]+\"\\t \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"public void print() {\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(m[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\n\t}",
"public void PrintGameBoard(int [][] arr) {\r\n\t\tsb.append(\" | A B C D E F G H I J\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\tsb.delete(0, sb.length());\r\n\t\tfor (int i = 0; i <arr.length; i++ ) {\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\t\tif (arr[i][j] == 0 || arr[i][j] == 3) {\r\n\t\t\t\t\tsb.append(\"* \");\r\n\t\t\t\t}\r\n\t\t\t\telse if(arr[i][j] == 1) {\r\n\t\t\t\t\tsb.append(\"O \");\r\n\t\t\t\t}\r\n\t\t\t\telse if (arr[i][j] == 2) {\r\n\t\t\t\t\tsb.append(\"X \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(i+\"| \"+sb.toString());\r\n\t\t\tsb.delete(0, sb.length());\r\n\t\t}\r\n\t}",
"public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }",
"public static void printMatrix(int[][] array, boolean format) {\n if (format) {\n \n }\n }",
"public static void printOneDimensionalArray(int[] arr) {\n\n\t\tfor (int value : arr) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void print(String[][][] god){\n for(int i = 0; i < god.length; i++){\n for(int j = 0; j < god[i].length; j++){\n for(int k = 0; k < god[i][j].length; k++){\n if(k == 0){\n System.out.print(\"[\" + god[i][j][k] + \",\");\n }\n if(k == (god[i][j].length - 1)){\n System.out.print(god[i][j][k] +\"]|\");\n }\n else{\n System.out.print(god[i][j][k] + \",\");\n }\n }\n }\n System.out.print(\"---\");\n }\n \n }",
"public void print() {\n\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n System.out.format(\"%.4f\", data[i][j]);\n if (j != this.cols - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }",
"static void printArr(int[][] a){\n for(int i = 0; i < a.length; i++){\n for(int j = 0; j < a[i].length; j++){\n if(a[a.length/2][a[i].length/2] > 99) {\n if (a[i][j] < 10)\n System.out.print(\"00\" + a[i][j] + \" \");\n else if (a[i][j] < 100)\n System.out.print(\"0\" + a[i][j] + \" \");\n else if (a[i][j] < 1000)\n System.out.print(a[i][j] + \" \");\n else\n System.out.print(\"XXX \");\n }\n else if (a[a.length/2][a[i].length/2] > 9){\n if (a[i][j] < 10)\n System.out.print(\"0\" + a[i][j] + \" \");\n else\n System.out.print(a[i][j] + \" \");\n }\n else System.out.print(a[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println(\"\\n\\n\\n\");\n }",
"public void displayArray(Cell[][] cells);",
"public void printArray1D(int[] array1D) {\r\n\t\tfor (int i = 0; i < array1D.length; i++) {\r\n\t\t\tSystem.out.print(array1D[i] + \", \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}",
"private void printBoard() {\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n System.out.print(board[j][i] + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }",
"private static void printArray(int[] array) {\n\t\tfor(int i: array) {\n\t\t\tSystem.out.print(i + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void print2DArr1(int[][] myArr2D)\n {\n for(int row = 0; row < myArr2D.length; row++)\n { \n for( int col = 0; col < myArr2D[row].length; col++)\n {\n if(col == myArr2D[row].length-1)\n System.out.format(\"%4d%n\",myArr2D[row][col]);\n else\n System.out.format(\"%4d\",myArr2D[row][col]);\n }\n }\n }",
"public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t\t\t}\n\t\t\tprint.append(array[arraySize - 1]);\n\t\t\tSystem.out.println(print.toString());\n\t\t}\n\t}",
"public static void print1D(int[] arr) {\n\t for (int ele : arr) {\n\t System.out.print(ele + \" \");\n\t }\n\t System.out.println();\n\t }",
"private static void printArray(Object[] array) {\n for (Object t : array) {\n System.out.println(\" \" + t + \", \");\n }\n }",
"public static String toString(int[][] a) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tString ret = \"\";\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tif (colNum == 0) {\r\n\t\t\t\t\tret += \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tret += \"\\t\" + a[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public static void printArray(double[] array) {\r\n\r\n for (int i = 0; i < array.length; i++) {\r\n System.out.print(\"[\" + array[i] + \"] \");\r\n }\r\n System.out.println(\"\");\r\n }",
"private void showArray(ArrayList<String[]> arr) {\n for(String[] row: arr){\n for(String x: row){\n System.out.print(x + \"\\t\\t\");\n }\n System.out.println();\n } \n System.out.println(\"------------------------------------\");\n }",
"public void print () \r\n\t{\r\n\t\tfor (int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\tif (index % 5 == 0) // print 5 columns\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\tSystem.out.print(array[index] + \"\\t\");\t// print next element\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public static void showDoubleArray(double[][] arr)\n {\n System.out.println(\"...........................................\");\n\n for (int i = 0; i < arr.length; i++) {\n for (int j = 0; j < arr[0].length; j++) {\n System.out.print(arr[i][j] + \" \");\n }\n\n System.out.println();\n }\n\n }",
"static void printPossible (int[][][] P){\n for(int i=1; i<P.length; i++){\n for (int j=1; j<P[i].length; j++){\n if (P[i][j][0]==0){\n System.out.print(\"- \");\n } else System.out.print(P[i][j][0]+\" \");\n if ( j==3) System.out.print(\" \");\n if ( j==6) System.out.print(\" \");\n if ( j==9) System.out.print(\"\\n\");\n }\n if ( i==3) System.out.print(\"\\n\");\n if ( i==6) System.out.print(\"\\n\");\n }\n }",
"public void print() {\n\t\t\n\t\tfor (int j = 0; j < height(); j++) {\n\t\t\tfor (int i = 0; i < width(); i++) {\n\t\t\t\tSystem.out.printf(\"%3d \", valueAt(i, j));\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\t\n\t}",
"public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i<this.size; i++){\n\t\t\tfor(int j=0; j<this.size; j++){\n\t\t\t\toutput.append(this.numbers[i][j] + \"\\t\");\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}",
"public static String arrayToString (int[][] a){\r\n\t\tString toString = \"\";\r\n\t\tfor (int r=0 ;r<a.length;r++) {\r\n\t\t\tfor (int c=0;c<a[0].length;c++) {\r\n\t\t\t\ttoString+=a[r][c];\r\n\t\t\t\t\tif (c<a[0].length-1)\r\n\t\t\t\t\ttoString+=\" \";\r\n\t\t\t}\r\n\t\t\t\t\tif (r<a.length-1)\r\n\t\t\t\t\ttoString+=\"\\n\";\r\n\t\t}\r\n\t\treturn toString;\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\nint arr[][]= {{1,2,3},{4,5,6},{7,8,9}};\r\nfor(int row=0;row<3;row++)\t{\t\r\n\tfor(int col=0;col<3;col++) {\r\n\t\tSystem.out.print(arr[row][col]+\" \");}\r\nSystem.out.println();\r\n}\r\n\t}",
"public void displayData(int[][] arr);",
"public static void print(double[][] path)\n\t{\n\t\tSystem.out.println(\"X: \\t Y:\");\n\n\t\tfor(double[] u: path)\n\t\t\tSystem.out.println(u[0]+ \"\\t\" +u[1]);\n\t}",
"public static void printArray(double[] array){\n for(int k = 0; k < array.length; k++){\n System.out.print(array[k] + \" \");\n }\n System.out.println();\n }",
"public static void printArray(Cell[] arr) {\r\n\t\tConstants.logger.info(\"\\nWhole Field as single Array[\");\r\n\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\tSystem.out.print(arr[j]);\r\n\t\t}\r\n\t\tConstants.logger.info(\"]\\n\");\r\n\t}",
"public <T> void printMatrix(T matrix[][])\n {\n int longestString = 0;\n \n for (T[] m : matrix)\n {\n for (T j : m)\n {\n if (j.toString().length() > longestString)\n {\n longestString = j.toString().length();\n }\n }\n }\n String matrixLength = \"\";\n matrixLength += matrix.length;\n \n if (longestString < matrixLength.length())\n {\n longestString = matrix.length;\n }\n \n // limit the length of a string to 4 characters\n longestString = (longestString > 4) ? 4 : longestString;\n \n String format = \"%-\" + (longestString + 1) + \".\" + longestString + \"s\";\n \n System.out.printf(format, \" \");\n for (int i = 0; i < matrix.length; i++)\n {\n System.out.printf(format, i);\n }\n System.out.println(\"\");\n\n int k = 0;\n\n for (T j[] : matrix)\n {\n System.out.printf(format, k++);\n\n for (T i : j)\n {\n String s = \"\";\n s += (i == null) ? \"-\" : i;\n System.out.printf(format, s);\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }",
"static void printMatrix(int[][] inp){\n\n for(int i=0;i<inp.length;i++){\n for(int j=0;j<inp[0].length;j++){\n System.out.print(inp[i][j]+\" \");\n }\n System.out.println(\"\");\n }\n }",
"public static void printArray(double[] a) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.format(\"%.2f \",a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void print() {\r\n\r\n\t\tfor (int row=0; row<10; row++) \r\n\t\t{\r\n\t\t\tfor (int col=0; col<10; col++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"\\t\"+nums[row][col]); //separated by tabs\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"static void printPuzzle(int sudoku[][])\n\t{\n\t\tfor (int y = 0; y < 9; y++)\n\t\t{\n\t\t\tfor (int x = 0; x < 9; x++)\n\t\t\t\tSystem.out.print(sudoku[y][x]+\" \");\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void display(double[][] t)\n\t{\n\t\tfor (int i=0;i<t.length;i++)\n\t\t{\n\t\t\tfor (int j=0;j<t[i].length;j++)\n\t\t\t\tSystem.out.print(t[i][j]+\" \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void showPuzzle() {\n\n for (int r = 0; r < numbers.length; r++) {\n for (int c = 0; c < numbers[r].length; c++) {\n System.out.print(numbers[r][c] + \"\\t\");\n }\n System.out.println();\n }\n }",
"public String toString()\n\t{\n\t\t//DecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tString report = \"\";\n\t\treport += \"m = \" + rows + \"\\n\";\n\t\treport += \"n = \" + cols + \"\\n\";\n\t\treport += \"[ | ] = \" + \"\\n\";\n\t\tfor(int i = 0; i < rows; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < cols+1; j++)\n\t\t\t{\n\t\t\t\treport += /*df.format*/(A[i][j]) + \" \";\n\t\t\t}\n\t\t\treport += \"\\n\";\n\t\t}\n\t\treturn report;\n\t}",
"private static void printMatrix(int[][] matrix) {\n\t\t\n\t\tSystem.out.println(\"\\n\\t[\\n\");\n\t\tArrays.asList(matrix).stream().forEach(intArray -> {\n\t\t\t\n\t\t\tSystem.out.print(\"\\t\\t\" + Arrays.toString(intArray));\n\t\t\tif(!intArray.equals(matrix[matrix.length-1])){\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tSystem.out.println(\"\\n\\n\\t]\");\n\t}",
"static void printSolution(int sol[][]) {\n for (int x = 0; x < N; x++) {\n for (int y = 0; y < N; y++)\n System.out.print(sol[x][y] + \" \");\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n int [][] flats; // A 2-D Array\n flats = new int[3][3];\n flats[0][0] = 101; flats[1][0] = 201; flats[2][0] = 301;\n flats[0][1] = 102; flats[1][1] = 202; flats[2][1] = 302;\n flats[0][2] = 103; flats[1][2] = 203; flats[2][2] = 303;\n\n\n //Displaying the Array (for loop)\n System.out.println(\"Printing a 2-D array using for loop\");\n for (int i=0; i<flats.length; i++){\n for (int j=0; j<flats[i].length; j++) {\n System.out.print(flats[i][j]);\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }",
"void printMatrix(int[][] matrix){\n\t\tfor(int i = 0; i < matrix.length; i++){\n\t\t\tfor(int j = 0; j < matrix[i].length; j++){\n\t\t\t\tSystem.out.print(matrix[i][j] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public static void print(int[][][] source) {\n\n\t\t// Creating a loop to print\n\t\tfor (int i = 0; i < source.length; i++) { \n\t\t\t// Getting to every single place\n\t\t\tfor (int j = 0; j < source[0].length; j++) { \n\t\t\t\tfor (int k = 0; k < 3; k++) {\n\t\t\t\t\t// Printing every number correctly\n\t\t\t\t\tSystem.out.printf(\"%5s\", source[i][j][k]); \n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(); \n\t\t}\n\t\tSystem.out.println(); // For a clean code\n\t\treturn;\n\t}",
"@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }",
"public void printArray()\n {\n for (int i=0;i<array.length; i++)\n {\n System.out.print(array[i] + \" \"); \n }\n System.out.println();\n }",
"public static void print1( int[][] a )\n {\n\t for (int i = 0; i < a.length; i++) { \t\t\t//iterate over each array\n\n\t\t for (int n = 0; n < a[i].length; n++) {\t//iterate over the contents pf each individual array\n\t\t\t System.out.print(a[i][n] + \" \");\t\t//print out the number with a space in between each one\n\t\t }\n\n\t\t System.out.println();\t\t\t\t\t\t//add a new line after each \"row\" (individual array) is looped through\n\t }\n }",
"public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }",
"public static void printArray(int[] arr) {\n String output = \"[ \";\n for (int i = 0; i < arr.length; i++) {\n if (i != 0) {\n output += \", \" + arr[i];\n }\n else {\n output += arr[i];\n }\n }\n output += \" ]\";\n System.out.println(output);\n }",
"public static void printArray(int[] array){\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\" \");\n }}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n for (double[] b : matrix) {\n builder.append(\"\\n\");\n for (double c : b) {\n builder.append(c).append(\" \");\n }\n }\n return builder.toString();\n }",
"public void printGrid(){\n\t\tfor (int i = 0; i < 8; i++){\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tSystem.out.print(Grid[i][j]+\" \"); \n\t\t\tSystem.out.println(); \n\t\t}\n\t}",
"void printGrid() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void printMatrix(Object[][] matrix) {\n for (Object[] row : matrix) {\n for (Object cell : row) {\n System.out.print(cell + \" \");\n }\n System.out.println();\n }\n }",
"public void test(){\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.position[i][p]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.Ari[i][p]);\n\t\t\t}\n\t\t}\n\t}",
"public void print(){\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tSystem.out.print(table[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private static void print(int[] arr) {\n\t\tfor(int i=0;i<=arr.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(arr[i]+\" \");\r\n\t\t}\r\n\t}",
"public void printArray(int array[]) {\n\t\tfor(int i = 0;i<array.length;i++) {\n\t\t\tSystem.out.println(\"Array[\"+ (i+1) +\"] = \"+array[i]);\n\t\t}\n\t}",
"private static void printRow(int[] row) {\r\n for (int i : row) {\r\n System.out.print(i);\r\n System.out.print(\"\\t\");\r\n }\r\n System.out.println();\r\n }",
"public static String arrayToString(int[][] a) {\n\t\tString toString = \"\";\n\t\tfor (int row = 0; row < a.length; row++) {\n\t\t\tfor (int column = 0; column < a[row].length; column++) {\n\t\t\t\ttoString += a[row][column];\n\t\t\t\tif (!(column == a[row].length - 1)) {\n\t\t\t\t\ttoString += \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(row == a.length - 1)) {\n\t\t\t\ttoString += \"\\n\";\n\t\t\t}\n\t\t}\n\t\treturn toString;\n\t}",
"public static void Display(int[] array) {\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\"\\t\");\n }\n System.out.println();\n }",
"private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}",
"private static void printArray(Integer[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"static void printArray(Comparable[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}",
"private static void printArray(int[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private static void printBoard(char[][] board) {\n\n\t\t// header\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tSystem.out.print(\"- \");\n\t\t}\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board[0].length; j++) {\n\t\t\t\tSystem.out.print(board[i][j] + \" \");\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t// footer\n\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\tSystem.out.print(\"- \");\n\t\t}\n\n\t\tSystem.out.println();\n\t}",
"public void printGrid(){\n System.out.println(\"printing the grid\");\n for(int i=0;i<row_size;i++){\n for(int j = 0;j<col_size;j++){\n System.out.println(grid[i][j]);\n }\n }\n }",
"public void printMatrix(){\n for (int row = 0; row < matrix.length; row++){\n for (int count = 0; count < matrix[row].length; count++){\n System.out.print(\"----\");\n }\n System.out.println();\n System.out.print('|');\n for (int column = 0; column < matrix[row].length; column++){\n if (matrix[row][column] == SHIP)\n System.out.print('X' + \" | \");\n else if (matrix[row][column] == HIT)\n System.out.print('+' + \" | \");\n else if (matrix[row][column] == MISS)\n System.out.print('*' + \" | \");\n else\n System.out.print(\" \" + \" | \");\n }\n System.out.println();\n }\n }",
"private static void printArray(int[] arr) {\n\t\tSystem.out.println(\"array is \");\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void printSudokuField(int[][] arr) {\n\t\tfor (int row = 0; row < NUM_OF_ROWS; row++) {\n\t\t\tif(row % 3 == 0)\n\t\t\t\tprintln(\"+---+---+---+\");\n\t\t\t\n\t\t\tfor (int column = 0; column < NUM_OF_COLS; column++) {\n\t\t\t\tif(column % 3 == 0)\n\t\t\t\t\tprint(\"|\");\n\t\t\t\tprint(arr[row][column]);\n\t\t\t}\n\t\t\tprintln(\"|\");\n\t\t}\n\t\tprintln(\"+---+---+---+\");\n\t}",
"@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }",
"public void affiche(){\r\n\t\tfor (int i = 0; i < this.grille.length; i++){\r\n\t\t\tfor (int j = 0; j < this.grille.length; j++){\r\n\t\t\t\tSystem.out.print(this.grille[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print('\\n');\r\n\t\t}\r\n\t}",
"void matice(){\n\t\tfor(int i = 0;i<matice.length;i++){\n\t\t\tfor(int j =0; j< matice[i].length;j++){\n\t\t\t\tSystem.out.print(matice[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n int[][] numbers = {{1, 2, 3}, {4, 5, 6, 7, 8}, {9, 10, 11, 12, 13,}};\n // 0 1 2\n\n // numbers[0]==>{1,2,3} numbers[0][i]\n //numbers[1]==>{4,5,6,7,8} numbers[1][i]\n //numbers[2]==>{9,10,11,12,13} numbers[2][i]\n\n for (int j = 0; j < numbers.length; j++) {\n for (int i = 0; i < numbers[j].length; i++) {\n System.out.print(numbers[j][i] + \" \");\n }\n\n System.out.println();\n\n\n }\n }",
"public static void print2( int[][] a )\n {\n for ( int[] i : a) { //for each int in array a\n\t for ( int j : i) { //and for each slot of array i\n\t System.out.println(j); //print out j\n\t }\n }\n }",
"private static void printOutput (int[][] results)\n {\n for (int i=0; i<=results[0].length-1; i++)\n {\n System.out.println(results[0][i] +\",\"+ results[1][i]);\n }\n System.out.println();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint [][] numbers = {{2,3,4},{6,7,8}};\n\t\tSystem.out.println(Arrays.deepToString(numbers));\n\t\t//multidimensional arrays\n\n\t}",
"public void printBoard() {\n\t\tfor (int row=8; row>=0;row--){\n\t\t\tfor (int col=0; col<9;col++){\n\t\t\t\tSystem.out.print(boardArray[col][row]);\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}",
"public static void printMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tfor (int i = 0; i < matrix.size(); i++){\r\n\t\t\tchar index = (char) ('A' + i);\r\n\t\t\tSystem.out.print(index);\r\n\t\t\tSystem.out.print(\":\\t \"); \r\n\t\t\tfor (int j = 0; j < matrix.get(i).size(); j++){\r\n\t\t\t\tSystem.out.print(matrix.get(i).get(j));\r\n\t\t\t\tif (j != matrix.get(i).size() - 1) System.out.print(\"\\t|\");\r\n\t\t\t\telse System.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void printMatrix(BigDecimal[][] m){\n\t\tfor(int i = 0; i < m.length; i++){\n\t\t\tfor(int j = 0; j < m[0].length; j++)\n\t\t\t\tSystem.out.print(m[i][j]+\"\\t\");\n\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private static void printBoard(char [][] board){\n for (int i = 0; i < 6; i++){\n for(int j = 0; j < 7; j++){\n System.out.print(\"|\"+board[i][j]);\n }\n System.out.println(\"|\");\n }\n System.out.println();\n }",
"public static void printArray(int[] array) {\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.print(array[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}"
] |
[
"0.7601454",
"0.7591306",
"0.75407135",
"0.73980874",
"0.7346088",
"0.72854036",
"0.725654",
"0.71964747",
"0.7189404",
"0.715876",
"0.7144289",
"0.7128448",
"0.71216875",
"0.709004",
"0.70439225",
"0.70437586",
"0.7029444",
"0.697296",
"0.69484127",
"0.69355434",
"0.6930702",
"0.6926561",
"0.6891654",
"0.68846816",
"0.685772",
"0.68522745",
"0.6844182",
"0.6843708",
"0.6834516",
"0.68217784",
"0.6800216",
"0.6790651",
"0.6789188",
"0.6772168",
"0.67666745",
"0.67595565",
"0.6757608",
"0.6753566",
"0.67483497",
"0.6737904",
"0.67370844",
"0.673707",
"0.67207944",
"0.6715963",
"0.67058665",
"0.6703154",
"0.6689809",
"0.66875374",
"0.6686618",
"0.6682777",
"0.6676903",
"0.6674984",
"0.6674146",
"0.66562533",
"0.6655461",
"0.6650013",
"0.6629902",
"0.66161406",
"0.65963095",
"0.65933055",
"0.65904707",
"0.6589949",
"0.6584701",
"0.65792733",
"0.6579132",
"0.6566467",
"0.6564847",
"0.6558727",
"0.65575117",
"0.6550079",
"0.6542525",
"0.6539355",
"0.65348464",
"0.65311617",
"0.65291035",
"0.65206957",
"0.6519332",
"0.6518113",
"0.65172493",
"0.65165615",
"0.65154743",
"0.6514953",
"0.6510933",
"0.6505182",
"0.6500696",
"0.6496555",
"0.64898545",
"0.64777386",
"0.6472134",
"0.64716595",
"0.64661384",
"0.6455139",
"0.6448062",
"0.64468396",
"0.64412624",
"0.6439841",
"0.643684",
"0.6432925",
"0.64305544",
"0.6428797",
"0.6426242"
] |
0.0
|
-1
|
Helper function for the reverse a String Cover Method for the reverse!
|
public void reverser(String[] x){
reverse(x, 0, x.length -1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}",
"static void test_reverse() {\n\n System.out.println( \"\\nTESTS for reverse() : \" );\n\n System.out.print( \"String 'Racecar' returns : \" );\n try { System.out.println(StringStuff.reverse( \"Racecar\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"String 'sbmal EVOL I' returns : \" );\n try { System.out.println(StringStuff.reverse( \"sbmal EVOL I\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n }",
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}",
"@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = new ReverseString();\n\t\tchar[] input = new char[] { 'h', 'e', 'l', 'l', 'o' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'o', 'l', 'l', 'e', 'h' }, input);\n\n\t\tinput = new char[] { 'H', 'a', 'n', 'n', 'a', 'h' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' }, input);\n\n\t\tinput = new char[] { 'H' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'H' }, input);\n\n\t\tinput = new char[0];\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[0], input);\n\t}",
"@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}",
"public static String reverse(String sentence)\n {\n // Complete this method. Use a Stack.\n ...\n\n\n\n\n\n\n }",
"String reverseMyInput(String input);",
"private static String reverseString(String s) \r\n\t{\r\n\t\tif(s.length() == 1)\r\n\t\t\treturn s;\r\n\t\treturn \"\" + s.charAt(s.length() - 1) + reverseString(s.substring(0, s.length() - 1));\r\n\t}",
"static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}",
"@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }",
"static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}",
"@Test\n\tpublic void checkReverseString()\n\n\t{\n\t\tassertEquals(\"nitin si a doog yob \",test.testReverseString(\"nitin is a good boy\"));\n\t\t\n\t}",
"public String reverse(String s) {\n String ret = \"\";\n for(int i = 0; i < s.length; i+= 1) {\n ret = s.charAt(i) + ret; //this will go in reverse as the next character will appear before the previously placed ret character.\n }\n return ret;\n}",
"void reverse();",
"void reverse();",
"public static String reverse(String s){\n \tif(s.length()==0)\n return s;\n else{\n \treturn reverse(s.substring(1))+s.substring(0,1);\n }\n }",
"@org.junit.Test\n\tpublic void testingStringReverse() {\n\t\tString result=object.reverseString(\"Game of Thrones\");\n\t\tassertEquals(\"senorhT fo emaG\",result );\n\t}",
"public static String reverse(String st) {\n\t\t\n\t\tif(st == null || st ==\"\") {\n\t\t\treturn st;\n\t\t}\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int i=st.length()-1; i>=0; i--) {\n\t\t\tbr.append(st.charAt(i));\n\t\t}\n\t\treturn br.toString();\n\t}",
"public static void reverseUsingCustomizedLogic(String str) {\n\t\tint strLength = str.length();\n\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\tfor (int i = strLength - 1; i >= 0; i--) {\n\t\t\tstrBuilder = strBuilder.append(str.charAt(i));\n\t\t}\n\t\tSystem.out.println(\"str value after reverse using customized logic : \" + strBuilder.toString());\n\t}",
"public static String reverse( String s ) {\n String s2 = \"\";\n for (int i = s.length() -1; i >= 0; i--) { // start at the end of the string; keep going while i>= 0; decriment i\n s2 = s2 += s.charAt(i);\n }\n return s2;\n }",
"public IDnaStrand reverse();",
"@Test\n public void reverse_Givenastring_ReverseEachWord()\n {\n\n assertEquals(\"a kciuq nworb xof spmuj revo eht yzal god\",fp.Reversethestring(\"a quick brown fox jumps over the lazy dog\"));\n\n }",
"public static String reverse(String s)\n\t{\n\t\tStringBuilder stb = new StringBuilder(s);\n\t\treturn stb.reverse().toString();\n\t}",
"private String reverseString(String s) {\n char[] c = s.toCharArray();\n int i = 0, j = s.length() - 1;\n while (i < j) {\n if (c[i] != c[j]) {\n c[i] ^= c[j];\n c[j] ^= c[i];\n c[i] ^= c[j];\n }\n ++i;\n --j;\n }\n return new String(c);\n }",
"public static void main(String[] args) {\n String str = null;\n //String str = \"My Name Is Aakash\";\n //String str = \"!@@#$%^&*()+_)(*&^%$#@!@#$%^&*(_)(*&^%$%^&**&^%$#$%^&*&^%$##$%^&*&^%$\";\n //String str = \"_sakdkjashdksahkdhjksahdkjakjshdkjahsdkaskdkasdjhasjhckhagcuagskdjkasdjkaskjdhjkashdkjhakjdjkasdkaskjdajksdhjkashdjkahsjkdhjkasckjackhaduihcadlcdjcbkjsbdcjksdjkckjsdcjksdnjkcnjksdhckjsdhjkvsdjvnkjdsbvjkdsvkjdshkhsdkfheklwjfbjkwegfwegfiuwekjfbewjkhfgwejyfguiwejfbwekhfgywegfkjewbhjfgewjfgewhjfjhewgf\";\n\n System.out.println(reverseString(str));\n }",
"public static void main(String[] args) {\n\n StringBuilder lz = new StringBuilder(\"Led Zeppelin\");\n lz.reverse();\n System.out.println(lz);\n\n String lz2 = \"Led Zeppelin\";\n// System.out.println(lz2.reverse()); // does not compile\n\n }",
"void reverse(string str) \n{ \n for (int i=str.length()-1; i>=0; i--) \n cout << str[i]; \n}",
"@Override\n\t\t\t\t\tpublic String call() throws Exception {\n\t\t\t\t\t\treturn reverser.reverseString(target);\n\t\t\t\t\t}",
"private static String reverseString(char[] str, int begin, int end) {\n\t\tfor(int i = 0; i < (end-begin)/2; i++){\n\t\t\tchar temp = str[begin+i];\n\t\t\tstr[begin+i] = str[end-i-1];\n\t\t\tstr[end-i-1] = temp;\n\t\t}\n\t\treturn new String(str);\n\t}",
"public static void Rev_Str_Fn(){\r\n\t\r\n\tString x=\"ashu TATA\";\r\n\t\r\n\tStringBuilder stb=new StringBuilder();\r\n\tstb.append(x);\r\n\tstb.reverse();\r\n\tSystem.out.println(stb);\r\n}",
"public static final String reverseString2(final String inString){\n\t\tif (inString==null || inString.length()==0) return inString;\r\n\t\tchar[] cStringArray=inString.toCharArray();\r\n\t\tchar first;\r\n\t\tfor (int i=0;i<(cStringArray.length/2);i++){\r\n\t\t\tfirst = cStringArray[ i ];\r\n\t\t\tcStringArray[ i ] = cStringArray[ cStringArray.length - i - 1 ];\r\n\t\t\tcStringArray[ cStringArray.length - i - 1 ] = first;\r\n\t\t}\r\n\t\treturn String.valueOf(cStringArray);\r\n\t}",
"public String reverse(String s) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = s.length() - 1; i >= 0; i--) {\n\t\t\tchar charS = s.charAt(i);\n\t\t\tbuilder.append(charS);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"public static String reverse(String str){\n if(str.equals(\"\")){\n return str;\n }\n //must make problem simpler\n String firstChar = str.substring(0,1);\n String restOfString = str.substring(1);\n\n //recurse - calling this method with a simpler problem\n String restOfStringReversed = reverse(restOfString);\n\n String strReversed = restOfStringReversed + firstChar;\n return strReversed;\n }",
"public String reverse(String input) {\n if (input == null || input.length() <= 1) {\n return input;\n }\n char[] array = input.toCharArray();\n int slow = 0;\n int fast = array.length - 1;\n while (slow < fast) {\n swap(array, slow, fast);\n slow++;\n fast--;\n }\n return new String(array);\n }",
"public static void main(String[] args) {\n\t\tString str1=\"A man, a plan, a canal: Panama\";\r\n\t\tSystem.out.println(reverseString(str1));\r\n\t}",
"public String reverse(String input) {\n\t\t// Write your solution here.\n\t\tchar[] arr = input.toCharArray();\n\t\tint left = 0, right = input.length() - 1;\n\t\thelper(arr, left, right);\n\t\treturn new String(arr);\n\t}",
"public static String reverse(String s)\n {\n return new StringBuilder(s).reverse().toString();\n }",
"public static void main(String[] args) {\n \n String str1 = \"hello, return olleh\";\n \n System.out.println( \"ReverseString ans: \" + reverseStr(str1)); \n \n }",
"public String reverse(String input) \n {\n \tString outputt = \"\";\n \t//Finds the length of the string input\n \tint i = input.length();\n \t\n \tif (input == \"\")\n \t{\n \t\treturn outputt;\n \t}\n \telse\n \t{\n \t\t//Goes letter by letter building the string backwards\n \t\tfor (int c = 0; c < i; c++)\n \t\t{\n \t\tString a_letter = Character.toString(input.charAt((i - c -1)));\n \t\toutputt = (outputt + a_letter);\n \t\t}\n \t\treturn outputt;\n \t\t//return new StringBuffer(input).reverse().toString();\n \t}\n }",
"public static String reverse(String str) {\n String retStr = \"\"; //final string\n for (int i = str.length(); i > 0; i--) { //for loop starting from the end of the string\n retStr += str.substring(i-1,i);\n }\n return retStr;\n }",
"public static String reverse(String str)\n {\n // return if string is null or empty\n if (str == null || str.equals(\"\"))\n return str;\n \n // variable to store the reversed string\n String rev = \"\";\n \n // use string concatenation operator to build reversed string by\n // reading character from the end of the original string\n for (int i = str.length() - 1; i >=0 ; i--)\n rev += str.charAt(i);\n \n return rev;\n }",
"public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }",
"public static String reverseString(String s) {\n\t\tString reverse = \"\";\n\t\tint length = s.length();\n\t\t\n\t\tfor(int i=0; i<length; i++){\n\t\t\t//reverse += (s.charAt(length-1-i) + \"\");\n\t\t\treverse = reverse.concat(s.charAt(length-i-1) + \"\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn reverse;\n \n }",
"public static String reverseStr( String str ){\n //your code goes here\n if (str == null || \"\".equalsIgnoreCase(str)){\n return str;\n }\n\n String reverse = \"\";\n for (int i = 0; i < str.length(); i++){\n reverse += str.charAt(str.length()-1-i);\n }\n\n return reverse;\n }",
"public String reversestring(String inputstring){\n String originalstring = inputstring; //Originial String\n int n = originalstring.length(); //Length of the string\n String answer=\"\";\n\n for(int i=n-1;i>=0;i--){\n System.out.print(originalstring.charAt(i));\n answer += originalstring.charAt(i) + \" \";//Reversing the string\n }\n answer = answer.trim();\n return answer;\n }",
"public static String reverse(String inputString) {\n\t\tif (inputString.length() == 1) {\n\t\t\treturn inputString;\n\t\t} \n\t\tint len = inputString.length();\n\t\treturn inputString.substring(len-1,len) \n\t\t\t+ RecursiveStringReverser.reverse(inputString.substring(0,len-1));\n\t}",
"public static String reverser(String line) {\n String result=\"\";\n for (int i = line.length()-1; i >=0 ; i--) {\n result += line.charAt(i);\n }\n return result;\n}",
"public static void main(String[] args) {\n StringBuffer s = new StringBuffer(\"GeeksforGeeks\");\n System.out.println(\"Original string is : \" + s );\n //print the reversed string\n System.out.print(\"Reversed string is : \" );\n //call reverse method\n reverse(s);\n\t}",
"@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}",
"public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!words.isEmpty())\n {\n \n \tsb.append(words.pop()) ;\n \n sb.append(\" \") ;\n }\n return sb.substring(0, s.length()) .toString();\n }",
"public static String reverse(String input)\n\t{\n\t\tif(input.length()==0) return input;\n\t\tStringBuilder s = new StringBuilder();\n\t\treturn s.append(input.substring(1)).append(input.charAt(0)).toString();\n\t}",
"public static void main(String[] args) {\n\t\tStringReverse m = new StringReverse();\n\t\t//char[] a = {'A',' ','m','a','n',',',' ','a',' ','p','l','a','n',',',' ','a',' ','c','a','n','a','l',':',' ','P','a','n','a','m','a'};\n\t\tchar[] a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tSystem.out.println(m.reverseString(a));\n\t}",
"public String reverse(String input) {\n char[] carr = input.toCharArray();\n reverse(carr, 0 ,carr[carr.length - 1]);\n return String.valueOf(carr);\n }",
"public void StringReverse(String parameter){\n String str=parameter;\n String[] arr=str.split(\"\\\\s+\");\n for(int i=0;i<arr.length;i++){\n arr[i]=arr[i].replaceAll(\"[^\\\\w]\", \"\");\n }\n reverser(arr);\n\n String output=new String();\n for(int i=0;i<arr.length;i++){\n output=output+arr[i]+\" \";\n }\n System.out.println(output);\n }",
"public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }",
"static void reverse(StringBuffer str)\n\t {\n\t\t Stack<Character> s = new Stack<Character>();\n\t\t int len = str.length();\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t s.push(str.charAt(i));\n\t\t }\n\t\t \n\t\t //pop the string and print it\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t System.out.print(s.pop());\n\t\t }\n\t }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString str=\"Ali Can\";\r\n\t\t\r\n\t\tString reverse=\"\";\r\n\t\t\r\n\t\tfor(int i=str.length()-1;i>=0;i--) {\r\n\t\t\treverse=reverse+str.charAt(i);\r\n\t\t}\r\n\t\tSystem.out.println(reverse);\r\n\t}",
"@Test\n\tvoid testReverseOnlyLetters() {\n\t\tassertEquals(\"dc-ba\", new ReverseOnlyLetters().reverseOnlyLetters(\"ab-cd\"));\n\t\tassertEquals(\"j-Ih-gfE-dCba\", new ReverseOnlyLetters().reverseOnlyLetters(\"a-bC-dEf-ghIj\"));\n\t\tassertEquals(\"Qedo1ct-eeLg=ntse-T!\", new ReverseOnlyLetters().reverseOnlyLetters(\"Test1ng-Leet=code-Q!\"));\n\t\tassertEquals(\"e\", new ReverseOnlyLetters().reverseOnlyLetters(\"e\"));\n\t\tassertEquals(\"\", new ReverseOnlyLetters().reverseOnlyLetters(\"\"));\n\t\tassertEquals(\"-\", new ReverseOnlyLetters().reverseOnlyLetters(\"-\"));\n\t}",
"public static void reverseUsingStringBuilder(String str) {\n\n\t\tStringBuilder revStrBuilder = new StringBuilder(str);\n\t\tString revStr = revStrBuilder.reverse().toString();\n\n\t\tSystem.out.println(\"str value after reverse using JAVA API: \" + revStr);\n\t}",
"static String reverse5(String s)\n\t{\n\t\t//base condition to handle one char and empty string\n\t\tif(s.length()==1) return s;\n\t\treturn reverse5(s.substring(1))+s.charAt(0);\n\t\t\n\t\t\n\t}",
"public static String reverseWithStaticMethod(String str) {\n return new StringBuilder(str).reverse().toString();\n\n }",
"public String reverse(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString result = \"\";\n\t\tint indexCount = string.length()-1;\n\t\t\n\t\twhile(indexCount > -1) {\n//\t\t\tresult += string.charAt(indexCount);\n\t\t\tchar character = string.charAt(indexCount);\n\t\t\t//System.out.println(character);\n\t\t\tresult = result + character;\n\t\t\tindexCount--;\n\t\t}\n\t\t\n\t\t//System.out.println(result);\n\t\treturn result;\n\n\t}",
"public String reverseInput(String input)\n\t{\n\t\tif(input==null)\n\t\t\treturn null;\n String reverseString=\"\";\n for(int i=input.length()-1;i>=0;i--)\n {\n \treverseString+=input.charAt(i);\n }\n return reverseString;\n\t}",
"@Test\n public void reverseComplement() {\n ReverseComplementor r = new ReverseComplementor();\n String x = r.reverseComplement(\"AATGATACGGCGACCACCGAGATCTACACTCTTTCCCTACACGACGCTCTTCCGATCT\");\n assertEquals(\"AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTAGATCTCGGTGGTCGCCGTATCATT\", x);\n }",
"public static void main(String[] args) {\n\r\n\t\tString s = \"hello my name is john\";\r\n\t\t//System.out.println(reverse(s,0,s.length()-1));\r\n\t\t\r\n\t\tSystem.out.println(reverseWordsAlt(s));\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(reverse(\"foo\"));\n\t\tSystem.out.println(reverse(\"student\"));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tStringBuffer s1 = new StringBuffer(\"This method returns the reversed object on which it was called\");\r\n\t\tSystem.out.println(\"Original string: \" + s1);\r\n\t\ts1.reverse();\r\n\t\tSystem.out.println(\"Reversed string: \" + s1);\r\n\r\n\t}",
"static void findReverseString(String string){\n\t\tfor (int i = string.length() -1; i >= 0; i--) {\n\t\t\tSystem.out.print(string.charAt(i));\n\t\t}\n\t}",
"String reverse(String first) {\n\t String reverse = \"\";\n\t for (int i = first.length()-1; i>=0; i--) {\n\t reverse = reverse+first.charAt(i);\n\t }\n\t return reverse;\n\t }",
"public static void main(String[] args)\n {\n String input = \"now this was interesting\";\n\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n input1.append(input);\n\n // reverse StringBuilder input1\n input1.reverse();\n\n // print reversed String\n System.out.println(input1);\n }",
"public static String reverse(String text) {\n String helper=\"\";\n int a=0;\n \n \n while (a < text.length()){\n helper = helper + text.charAt(text.length() - (1+a));\n a++;\n }\n return helper;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str=\"Selenium\";\n\t\tString revStr=\"\";\n\t\t\n\t\tfor (int i=str.length()-1;i>=0;i--){\n\t\t\trevStr=revStr+str.charAt(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse String is \"+revStr);\n\n\t}",
"public static void main(String[] args) {\n System.out.println(\"what do you wanna reverse?\");\n Scanner in = new Scanner(System.in);\n String str = in.nextLine();\n StringBuilder ohyeah = new StringBuilder(str);\n System.out.println(\"Here ya go:\");\n System.out.println(ohyeah.reverse().toString());\n\n//option 2 with recursion\n System.out.println(\"what do you wanna reverse?\");\n Scanner in2 = new Scanner(System.in);\n String hey = in2.nextLine();\n String reverseHey = reverse(hey);\n System.out.println(\"Here ya go: \"+ reverseHey);\n }",
"public static String reverse(String str){\n String result=\"\";//\"CBA\"\n\n for (int i = str.length()-1; i>=0; i--) {\n result+=str.charAt(i);\n }\n return result;\n }",
"String toStringBackwards();",
"public static String reverseString(String input) {\r\n\t\tString reversed = \"\";\r\n\t\tfor (int i = input.length() - 1; i >= 0; i--) {\r\n\t\t\treversed += input.charAt(i);\r\n\t\t}\r\n\t\treturn reversed;\r\n\t}",
"public static String revserse(char string[], int suffixStartIndex) {\n\t\tint j = string.length -1;\n\n\t\twhile (suffixStartIndex < j) {\n\t\t\tchar temp = string[j];\n\t\t\tstring[j] = string[suffixStartIndex];\n\t\t\tstring[suffixStartIndex] = temp;\n\n\t\t\tj--;\n\t\t\tsuffixStartIndex++;\n\t\t}\n\n\t\treturn new String(string);\n\t}",
"public static void main(String[] args) {\nString str=\"Welcome To Coding Ninja\";\n\nSystem.out.println(reverse_each(str));\n\t\t\n\t}",
"public static void main (String []args){\n\t\tString reverse=\"\";\n\t\tString s=\"ABCDEF\";\n\t\tint length=s.length();\n\t\tSystem.out.println(length);\n\t\tfor (int i=length-1;i>=0;i--)\n\t\t{\n\t\t\treverse=reverse+s.charAt(i);\n\n\t\t}\n\n\n\n\t\t//String reversing with String Builder class\n\n\t\tStringBuilder str= new StringBuilder(\"ReverseNumber\");\n\t\tString\tNewoff= \"\"+str.reverse();\n\t\tSystem.out.println(Newoff);\n\n\n\n\n\t}",
"public String reverse() {\n\t\treturn null;\n\t}",
"private void reverseString(int from, int to) {\n System.out.println(\"from is \" + from + \" to is \" + to);\n char[] input = this.inputString.toCharArray();\n char[] substring = new char[to - from + 1];\n for(int i=0; i < substring.length; i++) {\n substring[i] = input[from++];\n }\n for(int i=0; i < substring.length/2; i++) {\n char temp = substring[i];\n substring[i] = substring[substring.length - i -1];\n substring[substring.length -1 -i] = temp;\n }\n from = from - substring.length;\n for(int i=0; i < substring.length; i++) {\n input[from++] = substring[i];\n }\n inputString = new String(input);\n System.out.println(inputString);\n }",
"public static void main(String[] args) {\n String input = \"Lukman\";\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n //input1.append(input);\n\n // reverse StringBuilder input1\n //input1 = input1.reverse();\n\n // print reversed String\n int len = input.length() - 1;\n for (int i = len; i >= 0; --i) {\n input1.append(input.charAt(i));\n }\n System.out.println(\"Reverse:\" + input1);\n }",
"public static String reverseR(String x) {\n int size = ( x.length() - 1 ) / 2; //variable to hold the midpoint\n String left = x.substring(0,size); //left half of string\n String right = x.substring(size,x.length()); //right half of string\n\n if( x.length() == 1){ //base case, when the string only has one character left\n return x.substring(0,1); //return it\n }\n if( x.length() == 2){ //when the string only has two characters left\n left = x.substring(0,1); //override the values for left and right so no errors are made\n right = x.substring(1,2);\n }\n //this is needed because when splitting the string, one can end up with a 2 length and a 1 length, and to counter for the\n //2 length this code is essential (n is odd)\n if(right.length() == 1 && left.length() == 1){ //if there is only one character in left and right\n return right + left; //return the characters in reverse order\n }\n return reverseR(right) + reverseR(left); //recursive: return right plus left because strings being reversed\n }",
"public static void main(String[] args) {\n\t\tString s = \"I am Ritesh Kumar\";\r\n \r\n\t\tString to = StringRecusiveReverse.reverseMe(s);\r\n\t\tString to1 = StringRecusiveReverse.recursiveReverseString(s);\r\n\t\tSystem.out.println(to);\r\n System.out.println(to1);\r\n /*StringTokenizer st=new StringTokenizer(s);\r\n while(st.hasMoreTokens()) {\r\n \ts1=st.nextToken(); \r\n \tSystem.out.println(s1);\r\n }*/\r\n String[] s1=s.split(\" \");\r\n \r\n for(int i=s1.length-1;i>=0;i--)\r\n \tSystem.out.println(s1[i]);\r\n\t}",
"public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }",
"void reverseDirection();",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = sc.next();\n char[] ch = string.toCharArray();\n String reverse = \"\";\n for (int i=string.length() - 1; i >=0 ; i--){\n reverse += ch[i];\n }\n if (string.equals(reverse) ) {\n System.out.println(\"yes\");\n } else {\n System.out.println(\"no\");\n }\n }",
"public static String reverseString2(String s) {\n\t\tint length = s.length();\n\t\tchar[] arr = s.toCharArray();\n\t\t\n\t\tfor(int i=0; i< length / 2; i++){\n\t\t\tchar temp = arr[i];\n\t\t\tarr[i] = arr[length-1-i];\n\t\t\tarr[length-1-i] = temp;\n\t\t}\n\t\t\n\t\n\t\treturn new String(arr);\n\t\t\t\n\t}",
"String str(String strR) {\n\t\tString rev = \"\";\n\t\tfor (int i = strR.length(); i >0; i--) {\n\t\t\trev = rev + strR.substring(i - 1, i);\n\t\t}\n\t\treturn rev;\n\t}",
"public String backAround(String str) {\n char last = str.charAt(str.length()-1);\n return last + str + last;\n}",
"public static String Converterback(String z)\n\t{\n\n\t\t\n\t\tswitch(z)\n\t\t{\n\t\tcase \"10\":\n\t\t\treturn \"A\";\n\t\tcase \"11\":\n\t\t\treturn \"B\";\n\t\tcase \"12\":\n\t\t\treturn \"C\";\n\t\tcase \"13\":\n\t\t\treturn \"D\";\n\t\tcase \"14\":\n\t\t\treturn \"E\";\n\t\tcase \"15\":\n\t\t\treturn \"F\";\n\t\t}\n\t\treturn z;\n\t}",
"private void reverse(StringBuffer s)\n {\n s.reverse();\n String k = s.toString();\n String tokens[] = k.split(\" \");\n for(int i=0;i<tokens.length;i++)\n {\n StringBuffer temp = new StringBuffer(tokens[i]);\n System.out.print(temp.reverse()+\" \");\n }\n //Normal method\n /*String[] words = s.split(\" \");\n int i = words.length-1;\n while(i>=0)\n {\n System.out.print(words[i]+\" \");\n i--;\n }*/\n }",
"public static void main(String[] args) {\n String input = \"DXC technologies limited\";\n\n String revr = \"\";\n for (int z = input.length() - 1; z >= 0; z--) {\n revr = revr + input.charAt(z);\n }\n System.out.println(revr);\n\n\n String splitwords[] = input.split(\" \");\n String reverseword = \"\";\n\n for (int i = 0; i < splitwords.length; i++) {\n String word = splitwords[i];\n String reversewords = \"\";\n\n for (int j = word.length() - 1; j >= 0; j--) {\n reversewords = reversewords + word.charAt(j);\n }\n reverseword = reverseword + reversewords + \" \";\n\n }\n System.out.println(\"traditional method is \" +trim(reverseword));\n\n //return reverseword;\n\n }",
"private static String palindromeHelper(String string, int begin, int end) {\n while (begin >= 0 && end < string.length() && string.charAt(begin) == string.charAt(end)) {\n begin--;\n end++;\n }\n return string.substring(begin + 1, end);\n }",
"private static String reverseCase(String string) {\n\t\tboolean flag= false;\n\t\tStringBuilder result=new StringBuilder();\n\t\tstring=string.toLowerCase();\n\t\tfor(int i=string.length()-1;i>=0;i--)\n\t\t{\t\n\t\t\tString temp = String.valueOf(string.charAt(i));\n\t\t\tif((i==string.length()-1))\n\t\t\t result.append(string.toUpperCase().charAt(i));\n\t\t\telse if (flag==true)\n\t\t\t{\n\t\t\t\tresult.append(string.toUpperCase().charAt(i));\n\t\t\t\tflag=false;\n\t\t\t}\n\t\t\telse\n\t\t\t\t result.append(string.charAt(i));\n\t\t\tif (temp.matches(\" \")) flag=true;\n\t\t}\n\t\treturn result.toString();\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str= sc.nextLine();\n\t\n\t\tSystem.out.println(\"with char Array \");\n\t\treverse1(str);\n\t\t\n\t\tSystem.out.println(\"with stack \");\n\t\tString revStr = reverse2(str);\n\t\tSystem.out.print (revStr);\n\t\t\n\t\tSystem.out.println(\"with string buffer reverse function\");\n\t\tString revStr3 = reverse3(str);\n\t\tSystem.out.print (revStr3);\n\t\t\n\t\tSystem.out.println(\"with recursion\");\n\t\tString revStr5 = reverse5(str);\n\t\tSystem.out.print(revStr5);\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Hello Watson\");\n\t\tString output = reverseCase(\"Thou art thyself though not a Montague - from Romeo and Juliet\");\n\t\tSystem.out.print(output);\n\t\tsc.close();\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"Pooja\";\n\t\tchar str1[] = str.toCharArray();\n\t\tString reverse = \"\";\n\t\t\n\t\tfor (int i = str1.length; i>=0 ; i--) {\n\t\t\treverse = reverse + str1[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(reverse);\n\n\t}",
"static String reverseEndRekursiv_Help(String text, int size, String result) {\n\n\t\tif (text.length() == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tchar lastChar = text.charAt(text.length() - 1);\n\t\tString lastCharString = Character.toString(lastChar);\n\t\tString subText = text.substring(0, text.length() - 1);\n\t\t// System.out.println(\n\t\t// \"Result: \" + result + \"\\tLastChar: \" + lastCharString + \"\\tText: \" + text +\n\t\t// \"\\tSubtext: \" + subText);\n\t\treturn reverseEndRekursiv_Help(subText, size, result + lastCharString);\n\n\t}",
"@Test\r\n\tpublic void test04_isReverse() {\r\n\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\r\n\t\tassertEquals(\"\", rm.reverseOf(\"\"));\r\n\t\tassertEquals(\"a\", rm.reverseOf(\"a\"));\r\n\t\tassertEquals(\"ba\", rm.reverseOf(\"ab\"));\r\n\t\tassertEquals(\"cba\", rm.reverseOf(\"abc\"));\r\n\t\tassertEquals(\"dcba\", rm.reverseOf(\"abcd\"));\r\n\t}",
"public String reverseVowels(String s) {\n \n // Cases 1 and 2\n if (s == null || \"\".equals(s) || s.length() < 2) return s;\n \n // Case 3\n StringBuilder result = new StringBuilder(s);\n int start = 0;\n int end = s.length() - 1;\n \n while (start < end) {\n \n // Increment start until char is vowel\n while (!isVowel(s.charAt(start)) && start < end) {\n start++;\n }\n \n // Decrement end until char is vowel\n while (!isVowel(s.charAt(end)) && start < end) {\n end--;\n }\n \n // Swap start and end in result\n if (start < end) {\n char temp = result.charAt(start);\n result.setCharAt(start, result.charAt(end));\n result.setCharAt(end, temp);\n \n // Change values to prevent infinite loop\n start++;\n end--;\n }\n }\n \n return result.toString();\n }",
"public static void main(String[] args)\r\n\t{\n\t\t\tString s;\r\n\t\t\tSystem.out.println(\"Enter a string\");\r\n\t\t\tScanner in=new Scanner(System.in);\r\n\t\t\ts=in.nextLine();\r\n\t\t\tStringBuffer s2=new StringBuffer(s);\r\n\t\t\tfor(int i=0;i<s.length();i++)\r\n\t\t\t{\r\n\t\t\t\ts2.setCharAt(i,s.charAt(s.length()-i-1));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Reverse is \"+s);\r\n\t}"
] |
[
"0.74872804",
"0.74017483",
"0.72807974",
"0.72069114",
"0.71802324",
"0.71257323",
"0.7053806",
"0.7000195",
"0.69993335",
"0.698927",
"0.6968398",
"0.69443375",
"0.6917859",
"0.69060546",
"0.69060546",
"0.68554664",
"0.6840395",
"0.6794182",
"0.67802465",
"0.67747086",
"0.6746256",
"0.6743202",
"0.6732598",
"0.6655768",
"0.6646791",
"0.6645627",
"0.6636061",
"0.6635236",
"0.66324794",
"0.6631063",
"0.66136056",
"0.66035277",
"0.65815055",
"0.65723944",
"0.65575814",
"0.65562284",
"0.65538234",
"0.6551575",
"0.65322423",
"0.65118754",
"0.6507847",
"0.64832395",
"0.64749134",
"0.64498967",
"0.6449058",
"0.64406335",
"0.64241457",
"0.64075",
"0.6405637",
"0.6405584",
"0.6397843",
"0.63863254",
"0.6375021",
"0.63663644",
"0.6343396",
"0.6338805",
"0.63249135",
"0.6300832",
"0.62932044",
"0.62857425",
"0.62712586",
"0.6267518",
"0.62659395",
"0.62583846",
"0.62579006",
"0.624818",
"0.6246185",
"0.6239535",
"0.62364763",
"0.62337255",
"0.623258",
"0.62250835",
"0.62197787",
"0.62079567",
"0.619017",
"0.61875093",
"0.6180315",
"0.6179021",
"0.617631",
"0.6172312",
"0.6166874",
"0.6166836",
"0.61591095",
"0.61570454",
"0.6153842",
"0.6145009",
"0.6139014",
"0.611224",
"0.6072012",
"0.60719526",
"0.60682386",
"0.60501504",
"0.6050081",
"0.6032247",
"0.60320044",
"0.6029127",
"0.6017489",
"0.601731",
"0.6010359",
"0.60068816",
"0.599303"
] |
0.0
|
-1
|
Reverse the given String array'
|
public void reverse(String[] x, int i, int j){
if(i<j){
String tmp = x[i];
x[i] = x[j];
x[j] = tmp;
reverse(x, ++i, --j);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String[] reverse(String[] arr) {\n String[] rev = new String[arr.length];\n int k = arr.length - 1; //4 // sondan baslattik reverse yapmak icin\n for (int i = 0; i < arr.length; i++) {\n rev[i] = arr[k];\n k--;\n }\n return rev;\n }",
"static void reverse( String[]array) {\n\t\tfor (int i = array.length-1; i >=0; i--) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}",
"public static <T> T[] reverse(T[] array) {\n\t\tfor (int i=0; i<array.length/2;i++) {\n\t\t\tT s = array[i];\n\t\t\tarray[i] = array[array.length-1-i];\n\t\t\tarray[array.length-1-i] = s;\n\t\t}\n\t\treturn array;\n\t}",
"public static void reverse(byte[] array) {\n if (array == null) {\n return;\n }\n int i = 0;\n int j = array.length - 1;\n byte tmp;\n while (j > i) {\n tmp = array[j];\n array[j] = array[i];\n array[i] = tmp;\n j--;\n i++;\n }\n }",
"public static void reverse(int[] array) {\n\t\tfor (int i=0; i<array.length/2;i++) {\n\t\t\tint s = array[i];\n\t\t\tarray[i] = array[array.length-1-i];\n\t\t\tarray[array.length-1-i] = s;\n\t\t}\n\t}",
"public void reverser(String[] x){\n reverse(x, 0, x.length -1);\n }",
"public static String[] reverse(String... words) {\n }",
"public static <E> void reverse(E[] a) {\n Stack<E> buffer = new ArrayStack<>(a.length);\n for (int i = 0; i < a.length; i++)\n buffer.push(a[i]);\n for (int i = 0; i < a.length; i++)\n a[i] = buffer.pop();\n }",
"public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }",
"public static void reverse(int[] array){\n int[] reverseArray = Arrays.copyOf(array,array.length);\n for(int i=0;i<array.length;i++){\n reverseArray[i]=array[array.length-i-1];\n }\n System.out.println(\"The reversed assay is:\"+ Arrays.toString(reverseArray));\n }",
"private static void reverseWithSplitArray(String str) {\n\t\tString result = \"\";\r\n\t\tString wordArray[] = str.split(\" \");\r\n\t\tfor (int j = wordArray.length - 1; j >= 0; j--) {\r\n\t\t\tresult = result + wordArray[j] + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}",
"public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }",
"public static <T> T[] reverse(T[] array) {\n for (int i = 0; i < array.length / 2; i++) {\n T temp = array[i];\n array[i] = array[array.length - i - 1];\n array[array.length - i - 1] = temp;\n }\n return array;\n }",
"private static int[] reverseArray(int[] inputs) {\n for(int i =0; i < inputs.length/2; i++) {\n int tmp = inputs[i];\n int nextPosition = (inputs.length - i) -1;\n inputs[nextPosition] = tmp;\n }\n return inputs;\n }",
"public String reverseArray(ArrayList<Integer> array)\n\t{\n\t\tString num = \"\";\n\t\tfor (int i = array.size()-1; i >= 0; i--) \n\t\t{\n \tnum = num + array.get(i);\n }\n\t\treturn num;\n\t}",
"private static void reverse(int[] elements) {\n int[] reversed = new int[elements.length];\n int cursor = elements.length - 1;\n\n for (int i = 0; i < elements.length; i++) {\n reversed[i] = elements[cursor];\n cursor--;\n }\n\n for (int i = 0; i < reversed.length; i++) {\n elements[i] = reversed[i];\n }\n }",
"public static Object[] reverse(Object[] array){\n \n Object[]result = new Object[array.length];\n \n for(int i = 0; i < array.length; i++){\n \n result[i] = array[array.length - 1 - i];\n }\n \n return result;\n }",
"public static byte[] reverse(byte[] source) {\n\t\tint len = source.length;\n\t\tbyte[] destination = new byte[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tdestination[len - i - 1] = source[i];\n\t\t}\n\t\treturn destination;\n\t}",
"void reverseIterative(char arr[],int start) {\n // Your Logic Here\n for(int i=start;i<arr.length/2;i++)\n {\n if(arr[i] != arr[arr.length-1-i])\n {\n arr[i]^=arr[arr.length-1-i];\n arr[arr.length-1-i]^=arr[i];\n arr[i]^=arr[arr.length-1-i];\n }\n }\n}",
"@Test\n public void reverseArray () {\n\n int[] input = {-2,5,-1,7,-3};\n int[] output = {-3,7,-1,5,-2};\n assertArrayEquals(output, Computation.reversal(input));\n\n }",
"private static void reverse(char[] programs, int start, int end) {\n char temp;\n while (start < end) {\n temp = programs[start];\n programs[start] = programs[end];\n programs[end] = temp;\n start++;\n end--;\n }\n }",
"public static void reverseArray(int[] arr) {\r\n\t\tfor (int i = 0; i < arr.length / 2; i++) {\r\n\t\t\tint temp = arr[i];\r\n\t\t\tarr[i] = arr[arr.length - 1 - i];\r\n\t\t\tarr[arr.length - 1 - i] = temp;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n String myStr = scan.nextLine();\n\n String[] useThisArray = myStr.split(\" \");\n\n// Code start here ignore the above codes, that is related to the test class.\n// You should use -> useThisArray\n\n String[] reversed = new String[useThisArray.length];\n\n int counter = 0 ;\n\n for(int i = useThisArray.length-1 ; i >=0 ; i--){\n\n reversed[counter++] = useThisArray[i];\n\n }\n\n\n System.out.println(Arrays.toString(reversed));\n }",
"public static void displayReverse(int [] array){\n int reverse;\n int[] reversedArray = new int[array.length];\n for(int i =0; i < array.length; i++){\n reversedArray[i] = array[i];\n }\n for(int i = 0; i < reversedArray.length/2; i++){\n reverse = reversedArray[i];\n reversedArray[i] = reversedArray[reversedArray.length-1-i];\n reversedArray[reversedArray.length-1-i] = reverse;\n }\n System.out.println(\"Reversed array: \" + Arrays.toString(reversedArray));\n }",
"public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }",
"public static void reverseInSameArray(int[] array) {\n\n int length = array.length;\n\n for (int i = 0; i < length / 2; i++) {\n swap(array, i, length / 2);\n\n }\n\n System.out.println(\"reverseInSameArray\");\n print(array);\n }",
"public static void reverseByteArray(byte[] array) {\n for (int i = 0; i < array.length / 2; i++) { // Reverse the byte order.\n byte temp = array[i];\n array[i] = array[array.length - 1 - i];\n array[array.length - 1 - i] = temp;\n }\n }",
"private static int[] reverseArray(int[] arr) {\n int n = arr.length;\n int[] revertedArray = new int[n];\n int j = n;\n\n for (int value : arr) {\n revertedArray[j - 1] = value;\n j = j - 1;\n }\n\n return revertedArray;\n }",
"public static void reverse(int[] numbers) {\n\t\tfor(int i = 0; i < numbers.length / 2; i++) {\n\t\t\tint tempVar = numbers[i];\n\t\t\tnumbers[i] = numbers[numbers.length - 1 - i];\n\t\t\tnumbers[numbers.length - 1 - i] = tempVar;\n\t\t}\n\t}",
"private static void reverse(int[] arr) {\n\t\t\r\n\t\tfor(int i=arr.length-1;i >=0;i--)\r\n\t\t{\r\n\t\t\tSystem.out.print(arr[i]+\" \");\r\n\t\t}\r\n\t}",
"public static void reverseOrder (Character[] symbols)\n {\n // Setup temporary character variable\n \t\n \tchar temp;\n \t\n \t// Cycle through the array and swap the corresponding first position with the last and onward. If there are an odd number of elements\n \t// the center element will not be switched with anything and will still appropriately switch the order of the array\n \t\n \tfor(int startingElements = 0, endingElements = (symbols.length - 1); startingElements < (symbols.length / 2); startingElements++)\n \t{\n \t\ttemp = symbols[endingElements];\n \t\tsymbols[endingElements] = symbols[startingElements];\n \t\tsymbols[startingElements] = temp;\n \t\t\n \t\tendingElements--;\n \t}\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tint a[]= {10,30,50,70,89,76,67,43,90};\r\n\t\tint temp;\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"ORIGNAL ARRAY\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i]+\" \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\nfor (int i = 0; i < a.length; i++) {\r\n\t\t\t\r\n\t\tfor (int j = i+1; j < a.length; j++) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttemp=a[i];\r\n\t\t\ta[i]=a[j];\r\n\t\t\ta[j]=temp;\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nREVERSE ARRAY\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i]+\" \");\r\n\t\t}\r\n\t}",
"private static void reverse(int[] myArray) {\n int temp;\n for (int i = 0; i < myArray.length / 2; i++) {\n// System.out.println(\"first = \" + myArray[i]);\n// System.out.println(\"last = \" + myArray[myArray.length - 1 - i]);\n temp = myArray[i];\n myArray[i] = myArray[myArray.length - 1 - i];\n myArray[myArray.length - 1 - i] = temp;\n }\n }",
"private static int[] reverse(int[] original) {\n int size = original.length;\n int[] reversed = new int[size];\n for(int i=0; i<size; i++) {\n reversed[i]= original[size - i-1];\n }\n return reversed;\n }",
"public static void main(String[] args) {\n\n\t\tint[] list1 = {1,2,3,4,5,6};\n\t\t//reverse array will be stored in this new array\n\t\tint[] list2 = reverse(list1);\n\t\t\n\t\tSystem.out.println(\"The original array is: \" + Arrays.toString(list1));\n\t\tSystem.out.println(\"The reversed array is: \" + Arrays.toString(list2));\n\t\t\n\t\tString myText = \"I see i and j in my dream\";\n\t\t\n\t\tchar[] chars = myText.toCharArray();\n\t\t\n\t\tSystem.out.println(Arrays.toString(chars));\n\t\t\n\t\tchar[] myText2 = reverse(chars);\n\t\t\n\t\tSystem.out.println(myText2);\n\t\t\n\t\t//convert character array back to string\n\t\tString myText3 = new String(myText2);\n\t\t\n\t\tSystem.out.println(\"Reversed string: \" + myText3);\n\n\n\t}",
"public static int[] reverse(int[] array) {\n\n int length = array.length;\n int[] result = new int[length];\n\n\n for (int j = length - 1; j >= 0; j--) {\n\n result[j] = array[length - j - 1];\n\n }\n\n System.out.println(\"reverse\");\n print(result);\n\n return result; // this must be replaced by correct code\n }",
"public static void reverse(int[] a){\n \n int n = a.length;\n \n for(int i = 0; i<n/2;i++){\n int c = a[i];\n int d = a[n-1-i];\n int temp=0;\n \n temp =c;\n c= d;\n d=temp;\n a[i]= c;\n a[n-1-i]=d;\n }\n \n \n \n }",
"public static void reverseOptimized(int[] elements) {\n int cursor = elements.length - 1;\n for (int i = 0; i < elements.length / 2; i++) {\n swap(elements, i, cursor);\n cursor--;\n }\n }",
"@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = new ReverseString();\n\t\tchar[] input = new char[] { 'h', 'e', 'l', 'l', 'o' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'o', 'l', 'l', 'e', 'h' }, input);\n\n\t\tinput = new char[] { 'H', 'a', 'n', 'n', 'a', 'h' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' }, input);\n\n\t\tinput = new char[] { 'H' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'H' }, input);\n\n\t\tinput = new char[0];\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[0], input);\n\t}",
"public void lastToFirst(String[] array) {\n System.out.println(\"\" + Arrays.deepToString(array));\n String temp = array[array.length - 1];\n for (int i = array.length - 1; i > 0; i--) {\n array[i] = array[i - 1];\n }\n array[0] = temp;\n System.out.println(\"\" + Arrays.deepToString(array));\n }",
"public static void main(String[] args) {\n\t\tStringReverse m = new StringReverse();\n\t\t//char[] a = {'A',' ','m','a','n',',',' ','a',' ','p','l','a','n',',',' ','a',' ','c','a','n','a','l',':',' ','P','a','n','a','m','a'};\n\t\tchar[] a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tSystem.out.println(m.reverseString(a));\n\t}",
"public static byte[] reverseBytes(byte[] data) {\r\n byte[] out = new byte[data.length];\r\n\r\n for (int i = 0; i < out.length; i++) {\r\n out[i] = data[data.length - 1 - i];\r\n }\r\n\r\n return out;\r\n }",
"public static byte[] reverseBytes(byte[] bytes) {\n // We could use the XOR trick here but it's easier to understand if we don't. If we find\n // this is really a\n // performance issue the matter can be revisited.\n byte[] buf = new byte[bytes.length];\n for (int i = 0; i < bytes.length; i++)\n buf[i] = bytes[bytes.length - 1 - i];\n return buf;\n }",
"public static void main1(String[] args) {\n String str = \"i am a student\";\n String[] arr = str.split(\" \");\n reverse(arr);\n System.out.println(Arrays.toString(arr));\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < arr.length; i++) {\n builder.append(arr[i]);\n if (i != arr.length - 1) {\n builder.append(\" \");\n }\n }\n builder.reverse();\n System.out.println(builder);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint[] a = {1,2,3,4,5,6};\n\t\t\n\t\tint[] rev = new int[a.length];\n\t\t\n\t\tfor(int i=a.length-1;i>=0;i--) {\n\t\t\trev[a.length-1-i] = a[i];\n\t\t}\n\t\t\n\t\tfor(int j=0;j<rev.length;j++) {\n\t\tSystem.out.println(rev[j]);\n\t}\n\n}",
"public static void main(String[] args) {\n\t\tString str = \"Pooja\";\n\t\tchar str1[] = str.toCharArray();\n\t\tString reverse = \"\";\n\t\t\n\t\tfor (int i = str1.length; i>=0 ; i--) {\n\t\t\treverse = reverse + str1[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(reverse);\n\n\t}",
"public static void printBackwards(String[] arr) {\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[arr.length-1 - i] + \" \");\n\t\t}\n\t}",
"public static void main(String[] args) {\n Integer arr[] = {10, 20, 30, 40, 50}; \n \n System.out.println(\"Original Array : \" + \n Arrays.toString(arr)); \n \n // Please refer below post for details of asList() \n \n Collections.reverse(Arrays.asList(arr)); \n \n System.out.println(\"Modified Array : \" + \n Arrays.toString(arr)); \n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n int[] array = {1,2,3,4,5,6,7,8,9,10};\n System.out.println(\"The original array is:\"+Arrays.toString(array));\n reverse(array);\n }",
"static int[] reverseArray(int[] a) {\n\t\tint[] result = new int[a.length];\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tresult[a.length - 1 - i] = a[i];\n\t\t}\n\t\treturn result;\n\t}",
"void reverse();",
"void reverse();",
"public static void printReverseArray(double[] array) {\n for(int i = array.length - 1; i >= 0; i--) {\n System.out.print( array[i] + \", \" );\n }\n System.out.println();\n\n }",
"public E[] reverseList(E[] toReverse) {\n\t\tfor (int i = 0; i < toReverse.length / 2; i++) {\n\t\t\tE temp = toReverse[i];\n\t\t\ttoReverse[i] = toReverse[toReverse.length - 1 - i];\n\t\t\ttoReverse[toReverse.length - 1 - i] = temp;\n\t\t}\n\t\treturn toReverse;\n\t}",
"public static Object[] reverseArray(Object[] arr) {\n for (int i = 0; i < arr.length / 2; i++) {\n Object tmpObject = arr[i];\n arr[i] = arr[arr.length - i - 1];\n arr[arr.length - i - 1] = tmpObject;\n }\n\n return arr;\n }",
"public static void main(String[] args) {\n\t\tint a[]=new int[]{-2,-1,0,1,2,3,4,5,6,7,8,9},temp=0;\r\n\t\tSystem.out.println(\"Array before reversing and after reversing\");\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t\tfor(int i=0,j=(a.length/2)-1;i<a.length/2/2;i++,j--)\r\n\t\t{\r\n\t\t\ttemp=a[i];\r\n\t\t\ta[i]=a[j];\r\n\t\t\ta[j]=temp;\r\n\t\t}\t\r\n\t\tfor(int i=a.length/2,j=a.length-1;i<(a.length*3)/4;i++,j--)\r\n\t\t{\r\n\t\t\ttemp=a[i];\r\n\t\t\ta[i]=a[j];\r\n\t\t\ta[j]=temp;\r\n\t\t}\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}",
"public String reverse(String input) {\n if (input == null || input.length() <= 1) {\n return input;\n }\n char[] array = input.toCharArray();\n int slow = 0;\n int fast = array.length - 1;\n while (slow < fast) {\n swap(array, slow, fast);\n slow++;\n fast--;\n }\n return new String(array);\n }",
"private static void reverse(int[] arr, int i, int length) {\n\t\tif(i >= length)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint temp=arr[i];\r\n\t\tarr[i]=arr[length];\r\n\t\tarr[length]=temp;\r\n\t\treverse(arr, i+1, length-1);\r\n\t}",
"public static int[] reverseArray(int[] array) {\r\n\r\n\t\tSystem.out.print(\"\\n5. Reversed array: \");\r\n\t\tint[] newArray = new int[array.length];\r\n\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tnewArray[i] = array[array.length - 1 - i];\r\n\t\t}\r\n\r\n\t\tSystem.out.println(Arrays.toString(newArray));\r\n\t\treturn newArray;\r\n\t}",
"private void flipArray(T[] array) {\n int point1 = 0,point2 = array.length - 1;\r\n while (point1 < point2) {\r\n T t = array[point1];\r\n array[point1] = array[point2];\r\n array[point2] = t;\r\n point1++;\r\n point2--;\r\n }\r\n }",
"public static Object[] reverseArray(Object[] a) {\n \n if (a.length == 0) {\n return null;\n }\n \n Object[] result = new Object[a.length];\n for (int i = 0; i < a.length; i++) {\n result[i] = a[(a.length - 1) - i];\n }\n return result;\n }",
"void reverseH(char arr[],int start) {\nif(arr == null)\n return;\n if(start==(arr.length/2))\n return;\n \n int i=start;\n if(arr[i] != arr[arr.length-1-i])\n {\n arr[i]^=arr[arr.length-1-i];\n arr[arr.length-1-i]^=arr[i];\n arr[i]^=arr[arr.length-1-i];\n }\n reverseH(arr,start+1);\n}",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"Sunday Perfect Day to start coding\";\n\t\t\n\t\tString [] reverseStr = str.split(\" \");\n\t\t\n\t\t//1ST WAY\n\t\tSystem.out.println(Arrays.toString(reverseStr));\n\t\tString store [] = new String[reverseStr.length];\n\t\tfor (int i = 0; i < reverseStr.length; i++) {\n\t\t\tstore[i]=reverseStr[reverseStr.length-1-i];\n\t\t}\n\t\tSystem.out.print(Arrays.toString(store));\n\t\t//--------------------------------------\n\t\t//This one would only print words without Array type\n//\t\tfor (int i = 0; i < reverseStr.length; i++) {\n//\t\t\tSystem.out.print(reverseStr[reverseStr.length-1-i] + \" \");\n//\t\t}\n\t\t//--------------------------------------\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t//2ND WAY\n\t\tfor (int i = 0; i < reverseStr.length/2; i++) {\n\t\t\tString temp = reverseStr[i];\n\t\t\treverseStr[i]=reverseStr[reverseStr.length-1-i];\n\t\t\treverseStr[reverseStr.length-1-i]=temp;\n\t\t}\n\t\tSystem.out.println(Arrays.toString(reverseStr));\n\t\t\n\t\t//--------------------------------------\n\t\tString str1 = \"Sunday Perfect Day to start coding\";\n\t\t\n\t\tString [] reverseStr1 = str.split(\" \");\n\t\tString store1 = \"\";\n\t\tfor (int i = 0; i < reverseStr1.length; i++) {\n\t\t\tchar []c1 = reverseStr1[i].toCharArray();\n\t\t\tfor (int j = 0; j < c1.length/2; j++) {\n\t\t\t\tchar temp = c1[j];\n\t\t\t\tc1[j]=c1[c1.length-1-j];\n\t\t\t\tc1[c1.length-1-j]=temp;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(c1));\n\t\t\tString reverse = new String(c1);\n\t\t\tstore1+=reverse+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println(store1);\n\t\tString [] splt2 = store1.split(\" \");\n\t\tSystem.out.println(Arrays.toString(splt2));\n\t\t\n\t\t\n\t\t\n\t\t//--------------------------------------\n\t\t//REVERSE\n//\t\tString []fruit = {\"Apple\"};\n//\t\tString fruit2 = \"\";\n//\t\tfor (int i = 1; i <= fruit[0].length(); i++) {\n//\t\t\tfruit2+=\"\"+fruit[0].charAt(fruit[0].length()-i);\n//\t\t\t\n//\t\t}\n//\t\tSystem.out.print(fruit2);\n//\t\tString []fruit3 = {fruit2};\n//\t\t\n//\t\tSystem.out.println();\n//\t\t\n//\t\tSystem.out.println(Arrays.toString(fruit3));\n//\t\t\n\t\t//--------------------------------------\n\t\t\n\n\t\t\n\t\t\n\t}",
"public static void sortReverse(Integer[] array) {\n Arrays.sort(array, new Comparator<Integer>() {\n @Override\n public int compare(Integer o1, Integer o2) {\n return o2.compareTo(o1);\n }\n });\n }",
"<T> void inverse(final T[] array);",
"public static void main(String[] args) {\n\t\tString s = \"the sky is blue\";\n\t\tString[] s2 = s.split(\" \");\n\n\t\tfor (String string : s2) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tList<String> s3 = Arrays.asList(s2);\n\t\tCollections.reverse(s3);\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s3) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING NOT USING COLLECTIONS AND ARRAYS\n\t\tString s4 = \"the sky is blue\";\n\t\tString[] s5 = s.split(\" \");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tint totalLength = s5.length;\n\t\tfor (int i = 0; i < totalLength / 2; i++) {\n\t\t\tString actual = s5[i];\n\t\t\tString opposite = s5[totalLength - 1 - i];\n\t\t\ts5[i] = opposite;\n\t\t\ts5[totalLength - 1 - i] = actual;\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING WITHOUT ALLOCATING EXTRA SPACE\n\t\t/*\n\t\t * 1- convertir a array de char\n\t\t * 2- revertir las letrs de las palabras pero dejŠndolas en su sitio\n\t\t * 3- revertir todo el array de char con actual/opuesto\n\t\t */\n\t\tString cadena = \"the sky is blue\";\n\t\tchar[] s6 = cadena.toCharArray();\n\n\t\tint i = 0;\n\t\tfor (int j = 0; j < s6.length; j++) {\n\t\t\tif (s6[j] == ' ') {\n\t\t\t\treverse(s6, i, j - 1);\n\t\t\t\ti = j + 1;\n\t\t\t}\n\t\t}\n\n\t\treverse(s6, i, s6.length - 1);\n\n\t\treverse(s6, 0, s6.length - 1);\n\t\t\n\t\tSystem.out.print(\"\\n\\nREVERSE STRING WITHOUT ALLOCATING EXTRA SPACE: \");\n\t\tfor(int k = 0; k<s6.length; k++) {\n\t\t\tSystem.out.print(s6[k]);\n\t\t}\n\t}",
"static void reverseArray(int arr[], int start, int end) \n { \n int temp; \n while (start < end) \n { \n temp = arr[start]; \n arr[start] = arr[end]; \n arr[end] = temp; \n start++; \n end--; \n } \n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str=\"Selenium\";\n\t\tString revStr=\"\";\n\t\t\n\t\tfor (int i=str.length()-1;i>=0;i--){\n\t\t\trevStr=revStr+str.charAt(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse String is \"+revStr);\n\n\t}",
"public static void main (String[] args) {\r\n int arr[] = {1, 2, 3, 4, 5, 6};\r\n printArray(arr, 6);\r\n rvereseArray(arr, 0, arr.length-1);\r\n System.out.println(\"Reversed array is \");\r\n printArray(arr, 6);\r\n }",
"void reverse(string str) \n{ \n for (int i=str.length()-1; i>=0; i--) \n cout << str[i]; \n}",
"public static void reverseWithCollections(Integer[] elements) {\n // Convert Integer[] to List<Integer>\n List<Integer> myList = Arrays.asList(elements);\n // Collections.reverse()\n Collections.reverse(myList);\n // Convert List<Integer> to Integer[] and assign it to elements\n myList.toArray(new Integer[myList.size()]);\n }",
"public static void main(String[] args) {\n\t\tString str = \"Bangalore is capital of Karnataka where\";\n\t\tString[] words = str.split(\" \");\n\t\tString newString=\"\";\n\t\t\t\n\t\tfor(String word: words) {\n\t\n\t\t\t\tnewString= newString+reverse(word);\n\t\t}\n\t\t\n\t\tSystem.out.println(newString);\n\t}",
"public String reverse(String input) {\n\t\t// Write your solution here.\n\t\tchar[] arr = input.toCharArray();\n\t\tint left = 0, right = input.length() - 1;\n\t\thelper(arr, left, right);\n\t\treturn new String(arr);\n\t}",
"public static void main (String[] args) {\r\n\t int arr[] = {1, 2, 3, 4, 5, 6};\r\n\t printArray(arr, 6);\r\n\t reverseArray(arr, 0, 5);\r\n\t System.out.println(\"Reversed array is \");\r\n\t printArray(arr, 6);\r\n\t }",
"public static <E> void reverse (E[] array, int startIndex, int endIndex) {\r\n\t\tE temp;\r\n\t\t\r\n\t\t// swap items at both ends\r\n\t\twhile (startIndex < endIndex) {\r\n\t\t\ttemp = array[startIndex];\r\n\t\t\tarray[startIndex] = array[endIndex];\r\n\t\t\tarray[endIndex] = temp;\r\n\t\t\t\r\n\t\t\tstartIndex++;\r\n\t\t\tendIndex--;\r\n\t\t}\r\n\t}",
"public String reverse(String input) {\n char[] carr = input.toCharArray();\n reverse(carr, 0 ,carr[carr.length - 1]);\n return String.valueOf(carr);\n }",
"public void StringReverse(String parameter){\n String str=parameter;\n String[] arr=str.split(\"\\\\s+\");\n for(int i=0;i<arr.length;i++){\n arr[i]=arr[i].replaceAll(\"[^\\\\w]\", \"\");\n }\n reverser(arr);\n\n String output=new String();\n for(int i=0;i<arr.length;i++){\n output=output+arr[i]+\" \";\n }\n System.out.println(output);\n }",
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}",
"protected static void reverseWordsInAString(String s) {\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\r\n String words[] = s.split(\" \"); // splits the input string into an array of\r\n // strings based on a split character\r\n for (String word: words) // iterates through all the entries in the string array\r\n sb.append(new StringBuilder(word).reverse().toString() + \" \"); //uses the reverse\r\n //method to reverse the entry in the array, append it to the string builder and add the\r\n // space back in\r\n System.out.println(sb.toString().trim()); // outputs the fully appended StringBuilder\r\n // .trim() removes any extra whitespace\r\n\t}",
"public static char[] reverseString(char[] temp, int start, int end) {\n\t\tint mid = (start + end) / 2;\n\t\tfor (int i = start; i <= mid; i++) {\n\t\t\tchar tempSwapChar = temp[i];\n\t\t\ttemp[i] = temp[end + start - i];\n\t\t\ttemp[end + start - i] = tempSwapChar;\n\t\t}\n\t\treturn temp;\n\t}",
"public static void reverse(char[] p, int from, int to) {\n\t\tchar tmp;\n\t\tint l = to-1;\n\t\tint k = from;\n\t\tfor (; k<l; k++, l--) {\n\t\t\ttmp = p[k];\n\t\t\tp[k] = p[l];\n\t\t\tp[l] = tmp;\n\t\t}\n\t}",
"private static int[] Reverse(int[] num, int left, int right)\n\t{\n\t\tif(num == null || num.length == 1)\n\t\t\treturn num;\n\t\t\n\t\t// Swap values for the given point of left end and right end of the array.\n\t\twhile(left < right)\n\t\t{\n\t\t\tint temp;\n\t\t\ttemp = num[left];\n\t\t\tnum[left++] = num[right];\n\t\t\tnum[right--] = temp;\n\t\t\t//left ++;\n\t\t\t//right --;\n\t\t}\n\t\treturn num;\n\t}",
"public IDnaStrand reverse();",
"public void reverse(int[] nums, int i, int j) {\n while (i < j) {\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n j--;\n i++;\n }\n }",
"public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!words.isEmpty())\n {\n \n \tsb.append(words.pop()) ;\n \n sb.append(\" \") ;\n }\n return sb.substring(0, s.length()) .toString();\n }",
"public static void reverseIterative(int[] data) {\n int low = 0, high = data.length - 1;\n while (low < high) { // swap data[low] and data[high]\n int temp = data[low];\n data[low++] = data[high]; // post-increment of low\n data[high--] = temp; // post-decrement of high\n }\n }",
"public static void reverse(double[] p, int from, int to) {\n\t\tdouble tmp;\n\t\tint l = to-1;\n\t\tint k = from;\n\t\tfor (; k<l; k++, l--) {\n\t\t\ttmp = p[k];\n\t\t\tp[k] = p[l];\n\t\t\tp[l] = tmp;\n\t\t}\n\t}",
"private static void invertBuffer(char[] buffer,\n int start,\n int length) {\n\n for(int i = start, j = start + length - 1; i < j; i++, --j) {\n char temp = buffer[i];\n buffer[i] = buffer[j];\n buffer[j] = temp;\n }\n }",
"public void reverseArray(int[] arr1) {\n int k = arr1.length;\n int arr2[] = new int[arr1.length];\n for (int i = 0; i < arr1.length; i++) {\n arr2[k - 1] = arr1[i];\n k = k - 1;\n }\n System.out.println( \"After Reversing Elemenst\" );\n dispArray( arr2 );\n // Swap\n int temp;\n for (int i = 0; i < arr1.length / 2; i++) {\n temp = arr1[i];\n arr1[i] = arr1[arr1.length - i - 1];\n arr1[arr1.length - i - 1] = temp;\n }\n dispArray( arr1 );\n\n\n }",
"public static String[] nameReverse(String firstName, String secondName, String thirdName)\n\t\t{\n\t\t String name[]= {firstName,secondName,thirdName};\n\t\t \n\t\t int START = 0;\n\t\t \n\t\t int END = name.length-1;\n\t\t \n\t\t while(START < END) {\n\t\t \n\t\t String temp = name[START];\n\t\t \n\t\t name[START] = name[END];\n\t\t \n\t\t name[END]=temp;\n\t\t \n\t\t START++;\n\t\t \n\t\t END--;\n\t\t }\n\t\t \n\t\t return name;\n\t\t}",
"public static void main(String[] args) {\n\t\tString s = \"I am Ritesh Kumar\";\r\n \r\n\t\tString to = StringRecusiveReverse.reverseMe(s);\r\n\t\tString to1 = StringRecusiveReverse.recursiveReverseString(s);\r\n\t\tSystem.out.println(to);\r\n System.out.println(to1);\r\n /*StringTokenizer st=new StringTokenizer(s);\r\n while(st.hasMoreTokens()) {\r\n \ts1=st.nextToken(); \r\n \tSystem.out.println(s1);\r\n }*/\r\n String[] s1=s.split(\" \");\r\n \r\n for(int i=s1.length-1;i>=0;i--)\r\n \tSystem.out.println(s1[i]);\r\n\t}",
"public int[] reverseArray(int[] arr) {\n return null;\n }",
"private ArrayList<Double> reverseInputBranch(ArrayList<Double> inputBranchArray)\r\n\t{\r\n\t\tArrayList<Double> reversedArray = new ArrayList<Double>();\r\n\r\n\t\tfor (int i = 0; i < inputBranchArray.size(); i++) {\r\n\t\t\treversedArray.add(inputBranchArray.get(inputBranchArray.size() - 1 - i));\r\n\t\t}\r\n\r\n\t\tinputIsFlipped = true;\r\n\t\treturn reversedArray;\r\n\t}",
"private static String reverseString(char[] str, int begin, int end) {\n\t\tfor(int i = 0; i < (end-begin)/2; i++){\n\t\t\tchar temp = str[begin+i];\n\t\t\tstr[begin+i] = str[end-i-1];\n\t\t\tstr[end-i-1] = temp;\n\t\t}\n\t\treturn new String(str);\n\t}",
"public void reverseWords(char[] s) {\n if (s == null || s.length <= 1) {\n return;\n }\n reverse(s, 0, s.length - 1);\n int start = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == ' ') {\n // revresting between publish and i +1\n reverse(s, start, i - 1);\n // setting publish = i +1 assuming there is only\n // one space between words !!!\n start = i + 1;\n } else if (i == s.length - 1) {\n reverse(s, start, i);\n }\n }//end for\n }",
"public void getReverseA(byte[] is, int offset, int length) {\n\t\tfor (int i = offset + length - 1; i >= offset; i--) {\n\t\t\tis[i] = getByteA();\n\t\t}\n\t}",
"public String decode(String words) {\n \n String reversedLetters = words;\n String [] reverseWordPosition = reversedLetters.split (\" \");\n String [] tempCopy = new String [reverseWordPosition.length];\n \n \n //Reverse the order of the words to position after Transpose has ran.\n for (int i = 0; i <= (((reverseWordPosition.length) - 1 - i) / 2); i++){\n tempCopy [i] = reverseWordPosition [i];\n reverseWordPosition [i] = reverseWordPosition [(reverseWordPosition.length) - 1 - i];\n reverseWordPosition [(reverseWordPosition.length) - 1 - i] = tempCopy [i]; \n }\n \n \n String s = new String();\n //Pass that array into a String\n for (int i = 0; i < reverseWordPosition.length; i++ ){\n s += reverseWordPosition [i] + \" \";\n }\n \n //Words are in original position but letter are still reversed. Decrypt\n //must be implemented after decode.\n \n return s;\n \n \n }",
"public static void invert(int[] a) {\r\n\t\tint n = a.length;\r\n\t\tint j = n - 1;\r\n\t\tfor (int i = 0; i < j; i++) {\r\n\t\t\tint tmp = a[i];\r\n\t\t\ta[i] = a[j];\r\n\t\t\ta[j] = tmp;\r\n\t\t\tj--;\r\n\t\t}\r\n\t}",
"void reverseDirection();",
"public void Reverse(int arr[], int n){\r\n\t\tint newArray[] = new int[n];\r\n\t\tfor(int i=(n-1); i>=0; i--){\r\n\t\t\tnewArray[i] = arr[n-(i+1)];\r\n\t\t}\r\n\t\tSystem.out.print(\"\\nReversed array : [\");\r\n\t\tfor(int j=0; j<n; j++){\r\n\t\t\tSystem.out.print(newArray[j]+\",\");\r\n\t\t}\r\n\t\tSystem.out.print(\"\\b]\\n\\n\");\r\n\t}"
] |
[
"0.80189806",
"0.7698262",
"0.7464842",
"0.73775506",
"0.7337676",
"0.7276535",
"0.7180703",
"0.71133155",
"0.70865655",
"0.7013788",
"0.69593716",
"0.6909284",
"0.6862526",
"0.68499184",
"0.6834611",
"0.67780703",
"0.67665607",
"0.67078954",
"0.66948664",
"0.66886836",
"0.6685466",
"0.66580725",
"0.66224587",
"0.65983826",
"0.6590654",
"0.657441",
"0.6564764",
"0.6475965",
"0.6474715",
"0.64646345",
"0.64641887",
"0.6452639",
"0.6435629",
"0.6432837",
"0.6414925",
"0.6412177",
"0.64038765",
"0.63922036",
"0.63621247",
"0.6353631",
"0.6313313",
"0.63069177",
"0.6302035",
"0.62896836",
"0.62545204",
"0.6238281",
"0.62139237",
"0.6212213",
"0.6209035",
"0.6193003",
"0.61777204",
"0.61777204",
"0.6160712",
"0.6155574",
"0.615364",
"0.61459386",
"0.61130357",
"0.6109291",
"0.6106107",
"0.6104189",
"0.6090105",
"0.60785484",
"0.60519946",
"0.60517156",
"0.5991535",
"0.5978056",
"0.59768414",
"0.59760594",
"0.59552443",
"0.5949105",
"0.5920154",
"0.59166634",
"0.5913924",
"0.59086376",
"0.5905597",
"0.5880241",
"0.5877492",
"0.5867739",
"0.5854307",
"0.5854111",
"0.58486027",
"0.5844969",
"0.58433026",
"0.5843245",
"0.583956",
"0.5834911",
"0.58162194",
"0.58093196",
"0.57940054",
"0.5788718",
"0.5783609",
"0.5777172",
"0.5776503",
"0.5776364",
"0.57713735",
"0.5768219",
"0.5764351",
"0.575701",
"0.5748152",
"0.5745805"
] |
0.66607994
|
21
|
Takes a String.Pushes it to a String array.Reverses it and makes it String again!
|
public void StringReverse(String parameter){
String str=parameter;
String[] arr=str.split("\\s+");
for(int i=0;i<arr.length;i++){
arr[i]=arr[i].replaceAll("[^\\w]", "");
}
reverser(arr);
String output=new String();
for(int i=0;i<arr.length;i++){
output=output+arr[i]+" ";
}
System.out.println(output);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }",
"@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = new ReverseString();\n\t\tchar[] input = new char[] { 'h', 'e', 'l', 'l', 'o' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'o', 'l', 'l', 'e', 'h' }, input);\n\n\t\tinput = new char[] { 'H', 'a', 'n', 'n', 'a', 'h' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' }, input);\n\n\t\tinput = new char[] { 'H' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'H' }, input);\n\n\t\tinput = new char[0];\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[0], input);\n\t}",
"static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}",
"public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }",
"public void reverser(String[] x){\n reverse(x, 0, x.length -1);\n }",
"public static String[] reverse(String[] arr) {\n String[] rev = new String[arr.length];\n int k = arr.length - 1; //4 // sondan baslattik reverse yapmak icin\n for (int i = 0; i < arr.length; i++) {\n rev[i] = arr[k];\n k--;\n }\n return rev;\n }",
"private static void reverseWithSplitArray(String str) {\n\t\tString result = \"\";\r\n\t\tString wordArray[] = str.split(\" \");\r\n\t\tfor (int j = wordArray.length - 1; j >= 0; j--) {\r\n\t\t\tresult = result + wordArray[j] + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}",
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}",
"void reverse(string str) \n{ \n for (int i=str.length()-1; i>=0; i--) \n cout << str[i]; \n}",
"static void reverse( String[]array) {\n\t\tfor (int i = array.length-1; i >=0; i--) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}",
"private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}",
"String reverseTheString(String str)\n {\n \n char s[] = str.toCharArray();\n char temp [] = new char[s.length];\n \n int j = 0; \n for (int i = s.length - 1; i >=0; i--)\n {\n temp[j++] = s[i];\n }\n return new String(temp) ; \n }",
"public String reverse(String input) {\n if (input == null || input.length() <= 1) {\n return input;\n }\n char[] array = input.toCharArray();\n int slow = 0;\n int fast = array.length - 1;\n while (slow < fast) {\n swap(array, slow, fast);\n slow++;\n fast--;\n }\n return new String(array);\n }",
"protected static void reverseWordsInAString(String s) {\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\r\n String words[] = s.split(\" \"); // splits the input string into an array of\r\n // strings based on a split character\r\n for (String word: words) // iterates through all the entries in the string array\r\n sb.append(new StringBuilder(word).reverse().toString() + \" \"); //uses the reverse\r\n //method to reverse the entry in the array, append it to the string builder and add the\r\n // space back in\r\n System.out.println(sb.toString().trim()); // outputs the fully appended StringBuilder\r\n // .trim() removes any extra whitespace\r\n\t}",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n String myStr = scan.nextLine();\n\n String[] useThisArray = myStr.split(\" \");\n\n// Code start here ignore the above codes, that is related to the test class.\n// You should use -> useThisArray\n\n String[] reversed = new String[useThisArray.length];\n\n int counter = 0 ;\n\n for(int i = useThisArray.length-1 ; i >=0 ; i--){\n\n reversed[counter++] = useThisArray[i];\n\n }\n\n\n System.out.println(Arrays.toString(reversed));\n }",
"public static String[] reverse(String... words) {\n }",
"private String reverseString(String s) {\n char[] c = s.toCharArray();\n int i = 0, j = s.length() - 1;\n while (i < j) {\n if (c[i] != c[j]) {\n c[i] ^= c[j];\n c[j] ^= c[i];\n c[i] ^= c[j];\n }\n ++i;\n --j;\n }\n return new String(c);\n }",
"public static void main(String[] args) {\n\t\tString str = \"Pooja\";\n\t\tchar str1[] = str.toCharArray();\n\t\tString reverse = \"\";\n\t\t\n\t\tfor (int i = str1.length; i>=0 ; i--) {\n\t\t\treverse = reverse + str1[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(reverse);\n\n\t}",
"public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!words.isEmpty())\n {\n \n \tsb.append(words.pop()) ;\n \n sb.append(\" \") ;\n }\n return sb.substring(0, s.length()) .toString();\n }",
"public static void Rev_Str_Fn(){\r\n\t\r\n\tString x=\"ashu TATA\";\r\n\t\r\n\tStringBuilder stb=new StringBuilder();\r\n\tstb.append(x);\r\n\tstb.reverse();\r\n\tSystem.out.println(stb);\r\n}",
"public String reverse(String input) {\n\t\t// Write your solution here.\n\t\tchar[] arr = input.toCharArray();\n\t\tint left = 0, right = input.length() - 1;\n\t\thelper(arr, left, right);\n\t\treturn new String(arr);\n\t}",
"public String reverse(String input) {\n char[] carr = input.toCharArray();\n reverse(carr, 0 ,carr[carr.length - 1]);\n return String.valueOf(carr);\n }",
"private void reverse(StringBuffer s)\n {\n s.reverse();\n String k = s.toString();\n String tokens[] = k.split(\" \");\n for(int i=0;i<tokens.length;i++)\n {\n StringBuffer temp = new StringBuffer(tokens[i]);\n System.out.print(temp.reverse()+\" \");\n }\n //Normal method\n /*String[] words = s.split(\" \");\n int i = words.length-1;\n while(i>=0)\n {\n System.out.print(words[i]+\" \");\n i--;\n }*/\n }",
"public static void main1(String[] args) {\n String str = \"i am a student\";\n String[] arr = str.split(\" \");\n reverse(arr);\n System.out.println(Arrays.toString(arr));\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < arr.length; i++) {\n builder.append(arr[i]);\n if (i != arr.length - 1) {\n builder.append(\" \");\n }\n }\n builder.reverse();\n System.out.println(builder);\n }",
"public static void main(String[] args) {\n\t\tStringReverse m = new StringReverse();\n\t\t//char[] a = {'A',' ','m','a','n',',',' ','a',' ','p','l','a','n',',',' ','a',' ','c','a','n','a','l',':',' ','P','a','n','a','m','a'};\n\t\tchar[] a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tSystem.out.println(m.reverseString(a));\n\t}",
"public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }",
"public static String reverse( String s ) {\n String s2 = \"\";\n for (int i = s.length() -1; i >= 0; i--) { // start at the end of the string; keep going while i>= 0; decriment i\n s2 = s2 += s.charAt(i);\n }\n return s2;\n }",
"static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}",
"public static String reverseString(String a) {\n StringBuilder stringBuilder = new StringBuilder();\n char[] masiiv = a.toCharArray();\n char[] newchar = new char[a.length()];\n int j = 0;\n for (int i = masiiv.length - 1; i >= 0; i--) {\n stringBuilder.append(newchar[j] = masiiv[i]);\n j++;\n }\n String joinedString = stringBuilder.toString();\n return joinedString;\n }",
"@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}",
"public static String reverseString(String s) {\n\t\tString reverse = \"\";\n\t\tint length = s.length();\n\t\t\n\t\tfor(int i=0; i<length; i++){\n\t\t\t//reverse += (s.charAt(length-1-i) + \"\");\n\t\t\treverse = reverse.concat(s.charAt(length-i-1) + \"\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn reverse;\n \n }",
"static void reverse(StringBuffer str)\n\t {\n\t\t Stack<Character> s = new Stack<Character>();\n\t\t int len = str.length();\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t s.push(str.charAt(i));\n\t\t }\n\t\t \n\t\t //pop the string and print it\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t System.out.print(s.pop());\n\t\t }\n\t }",
"public static String reverse(String sentence)\n {\n // Complete this method. Use a Stack.\n ...\n\n\n\n\n\n\n }",
"public String reversestring(String inputstring){\n String originalstring = inputstring; //Originial String\n int n = originalstring.length(); //Length of the string\n String answer=\"\";\n\n for(int i=n-1;i>=0;i--){\n System.out.print(originalstring.charAt(i));\n answer += originalstring.charAt(i) + \" \";//Reversing the string\n }\n answer = answer.trim();\n return answer;\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = sc.next();\n char[] ch = string.toCharArray();\n String reverse = \"\";\n for (int i=string.length() - 1; i >=0 ; i--){\n reverse += ch[i];\n }\n if (string.equals(reverse) ) {\n System.out.println(\"yes\");\n } else {\n System.out.println(\"no\");\n }\n }",
"static void reverseString(String s){\n\tString[] words=s.split(\" \");\n\tString ReverseString=\"\";\n\tfor(int i=0;i<words.length;i++)\n\t{\n\t\tString word=words[i];\n\t\tString reverseword=\"\";\n\t\tfor(int j=word.length()-1;j>=0;j--){\n\t\t\treverseword=reverseword+word.charAt(j);\n\t\t}\n\t\t\n\t\tReverseString=ReverseString+reverseword+\"\";\n\t}\n\tSystem.out.println(s);\n\tSystem.out.println(\"ReverseString is - \" +ReverseString);\n\t\n}",
"public static String reverseString2(String s) {\n\t\tint length = s.length();\n\t\tchar[] arr = s.toCharArray();\n\t\t\n\t\tfor(int i=0; i< length / 2; i++){\n\t\t\tchar temp = arr[i];\n\t\t\tarr[i] = arr[length-1-i];\n\t\t\tarr[length-1-i] = temp;\n\t\t}\n\t\t\n\t\n\t\treturn new String(arr);\n\t\t\t\n\t}",
"public static String reverse(String str) {\n String retStr = \"\"; //final string\n for (int i = str.length(); i > 0; i--) { //for loop starting from the end of the string\n retStr += str.substring(i-1,i);\n }\n return retStr;\n }",
"private static String reverseString(char[] str, int begin, int end) {\n\t\tfor(int i = 0; i < (end-begin)/2; i++){\n\t\t\tchar temp = str[begin+i];\n\t\t\tstr[begin+i] = str[end-i-1];\n\t\t\tstr[end-i-1] = temp;\n\t\t}\n\t\treturn new String(str);\n\t}",
"public static void main(String[] args) {\n\n\t\tint[] list1 = {1,2,3,4,5,6};\n\t\t//reverse array will be stored in this new array\n\t\tint[] list2 = reverse(list1);\n\t\t\n\t\tSystem.out.println(\"The original array is: \" + Arrays.toString(list1));\n\t\tSystem.out.println(\"The reversed array is: \" + Arrays.toString(list2));\n\t\t\n\t\tString myText = \"I see i and j in my dream\";\n\t\t\n\t\tchar[] chars = myText.toCharArray();\n\t\t\n\t\tSystem.out.println(Arrays.toString(chars));\n\t\t\n\t\tchar[] myText2 = reverse(chars);\n\t\t\n\t\tSystem.out.println(myText2);\n\t\t\n\t\t//convert character array back to string\n\t\tString myText3 = new String(myText2);\n\t\t\n\t\tSystem.out.println(\"Reversed string: \" + myText3);\n\n\n\t}",
"public String reverse(String s) {\n String ret = \"\";\n for(int i = 0; i < s.length; i+= 1) {\n ret = s.charAt(i) + ret; //this will go in reverse as the next character will appear before the previously placed ret character.\n }\n return ret;\n}",
"public static String reverseString(String input) {\n\t\tStringBuffer output=new StringBuffer();\n\t\tchar[] charArray = input.toCharArray();\n\t\tfor (int i = charArray.length-1; i >= 0; i--) {\n\t\t\toutput.append(charArray[i]);\n\t\t}\n return output.toString();\n\t}",
"public void reverse(String[] x, int i, int j){\n if(i<j){\n String tmp = x[i];\n x[i] = x[j];\n x[j] = tmp;\n reverse(x, ++i, --j);\n }\n }",
"public static void reverser(String word) {\n String newStr = \"\";\n for (int i = word.length(); i > 0; i--) {\n newStr += word.substring(i - 1, i);\n }\n System.out.println(newStr);\n }",
"public static String reverse(String s){\n \tif(s.length()==0)\n return s;\n else{\n \treturn reverse(s.substring(1))+s.substring(0,1);\n }\n }",
"private static String reverseString(String s) \r\n\t{\r\n\t\tif(s.length() == 1)\r\n\t\t\treturn s;\r\n\t\treturn \"\" + s.charAt(s.length() - 1) + reverseString(s.substring(0, s.length() - 1));\r\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"I am Ritesh Kumar\";\r\n \r\n\t\tString to = StringRecusiveReverse.reverseMe(s);\r\n\t\tString to1 = StringRecusiveReverse.recursiveReverseString(s);\r\n\t\tSystem.out.println(to);\r\n System.out.println(to1);\r\n /*StringTokenizer st=new StringTokenizer(s);\r\n while(st.hasMoreTokens()) {\r\n \ts1=st.nextToken(); \r\n \tSystem.out.println(s1);\r\n }*/\r\n String[] s1=s.split(\" \");\r\n \r\n for(int i=s1.length-1;i>=0;i--)\r\n \tSystem.out.println(s1[i]);\r\n\t}",
"public static void main(String[] args) {\n String str = null;\n //String str = \"My Name Is Aakash\";\n //String str = \"!@@#$%^&*()+_)(*&^%$#@!@#$%^&*(_)(*&^%$%^&**&^%$#$%^&*&^%$##$%^&*&^%$\";\n //String str = \"_sakdkjashdksahkdhjksahdkjakjshdkjahsdkaskdkasdjhasjhckhagcuagskdjkasdjkaskjdhjkashdkjhakjdjkasdkaskjdajksdhjkashdjkahsjkdhjkasckjackhaduihcadlcdjcbkjsbdcjksdjkckjsdcjksdnjkcnjksdhckjsdhjkvsdjvnkjdsbvjkdsvkjdshkhsdkfheklwjfbjkwegfwegfiuwekjfbewjkhfgwejyfguiwejfbwekhfgywegfkjewbhjfgewjfgewhjfjhewgf\";\n\n System.out.println(reverseString(str));\n }",
"public static String reverse(String s)\n\t{\n\t\tStringBuilder stb = new StringBuilder(s);\n\t\treturn stb.reverse().toString();\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str=\"Selenium\";\n\t\tString revStr=\"\";\n\t\t\n\t\tfor (int i=str.length()-1;i>=0;i--){\n\t\t\trevStr=revStr+str.charAt(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse String is \"+revStr);\n\n\t}",
"public String reverse(String s) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = s.length() - 1; i >= 0; i--) {\n\t\t\tchar charS = s.charAt(i);\n\t\t\tbuilder.append(charS);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"public String reverse(String string) {\n\t\tchar[] reversed = new char[string.length()];\n\t\tfor (int i = reversed.length - 1, j=0; i >= 0; i--, j++) {\n\t\t\treversed[j] = string.charAt(i);\n\t\t}\n\t\treturn new String(reversed);\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"Sunday Perfect Day to start coding\";\n\t\t\n\t\tString [] reverseStr = str.split(\" \");\n\t\t\n\t\t//1ST WAY\n\t\tSystem.out.println(Arrays.toString(reverseStr));\n\t\tString store [] = new String[reverseStr.length];\n\t\tfor (int i = 0; i < reverseStr.length; i++) {\n\t\t\tstore[i]=reverseStr[reverseStr.length-1-i];\n\t\t}\n\t\tSystem.out.print(Arrays.toString(store));\n\t\t//--------------------------------------\n\t\t//This one would only print words without Array type\n//\t\tfor (int i = 0; i < reverseStr.length; i++) {\n//\t\t\tSystem.out.print(reverseStr[reverseStr.length-1-i] + \" \");\n//\t\t}\n\t\t//--------------------------------------\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t//2ND WAY\n\t\tfor (int i = 0; i < reverseStr.length/2; i++) {\n\t\t\tString temp = reverseStr[i];\n\t\t\treverseStr[i]=reverseStr[reverseStr.length-1-i];\n\t\t\treverseStr[reverseStr.length-1-i]=temp;\n\t\t}\n\t\tSystem.out.println(Arrays.toString(reverseStr));\n\t\t\n\t\t//--------------------------------------\n\t\tString str1 = \"Sunday Perfect Day to start coding\";\n\t\t\n\t\tString [] reverseStr1 = str.split(\" \");\n\t\tString store1 = \"\";\n\t\tfor (int i = 0; i < reverseStr1.length; i++) {\n\t\t\tchar []c1 = reverseStr1[i].toCharArray();\n\t\t\tfor (int j = 0; j < c1.length/2; j++) {\n\t\t\t\tchar temp = c1[j];\n\t\t\t\tc1[j]=c1[c1.length-1-j];\n\t\t\t\tc1[c1.length-1-j]=temp;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(c1));\n\t\t\tString reverse = new String(c1);\n\t\t\tstore1+=reverse+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println(store1);\n\t\tString [] splt2 = store1.split(\" \");\n\t\tSystem.out.println(Arrays.toString(splt2));\n\t\t\n\t\t\n\t\t\n\t\t//--------------------------------------\n\t\t//REVERSE\n//\t\tString []fruit = {\"Apple\"};\n//\t\tString fruit2 = \"\";\n//\t\tfor (int i = 1; i <= fruit[0].length(); i++) {\n//\t\t\tfruit2+=\"\"+fruit[0].charAt(fruit[0].length()-i);\n//\t\t\t\n//\t\t}\n//\t\tSystem.out.print(fruit2);\n//\t\tString []fruit3 = {fruit2};\n//\t\t\n//\t\tSystem.out.println();\n//\t\t\n//\t\tSystem.out.println(Arrays.toString(fruit3));\n//\t\t\n\t\t//--------------------------------------\n\t\t\n\n\t\t\n\t\t\n\t}",
"public static void reverse(byte[] array) {\n if (array == null) {\n return;\n }\n int i = 0;\n int j = array.length - 1;\n byte tmp;\n while (j > i) {\n tmp = array[j];\n array[j] = array[i];\n array[i] = tmp;\n j--;\n i++;\n }\n }",
"@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }",
"public static void main(String[] args) {\nString str=\"Welcome To Coding Ninja\";\n\nSystem.out.println(reverse_each(str));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString str=\"Ali Can\";\r\n\t\t\r\n\t\tString reverse=\"\";\r\n\t\t\r\n\t\tfor(int i=str.length()-1;i>=0;i--) {\r\n\t\t\treverse=reverse+str.charAt(i);\r\n\t\t}\r\n\t\tSystem.out.println(reverse);\r\n\t}",
"public static String reverse(String str)\n {\n // return if string is null or empty\n if (str == null || str.equals(\"\"))\n return str;\n \n // variable to store the reversed string\n String rev = \"\";\n \n // use string concatenation operator to build reversed string by\n // reading character from the end of the original string\n for (int i = str.length() - 1; i >=0 ; i--)\n rev += str.charAt(i);\n \n return rev;\n }",
"public static void main(String[] args)\r\n\t{\n\t\t\tString s;\r\n\t\t\tSystem.out.println(\"Enter a string\");\r\n\t\t\tScanner in=new Scanner(System.in);\r\n\t\t\ts=in.nextLine();\r\n\t\t\tStringBuffer s2=new StringBuffer(s);\r\n\t\t\tfor(int i=0;i<s.length();i++)\r\n\t\t\t{\r\n\t\t\t\ts2.setCharAt(i,s.charAt(s.length()-i-1));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Reverse is \"+s);\r\n\t}",
"public static String reverseStr( String str ){\n //your code goes here\n if (str == null || \"\".equalsIgnoreCase(str)){\n return str;\n }\n\n String reverse = \"\";\n for (int i = 0; i < str.length(); i++){\n reverse += str.charAt(str.length()-1-i);\n }\n\n return reverse;\n }",
"public static void main(String[] args) {\n\n StringBuilder lz = new StringBuilder(\"Led Zeppelin\");\n lz.reverse();\n System.out.println(lz);\n\n String lz2 = \"Led Zeppelin\";\n// System.out.println(lz2.reverse()); // does not compile\n\n }",
"public String reverse(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString result = \"\";\n\t\tint indexCount = string.length()-1;\n\t\t\n\t\twhile(indexCount > -1) {\n//\t\t\tresult += string.charAt(indexCount);\n\t\t\tchar character = string.charAt(indexCount);\n\t\t\t//System.out.println(character);\n\t\t\tresult = result + character;\n\t\t\tindexCount--;\n\t\t}\n\t\t\n\t\t//System.out.println(result);\n\t\treturn result;\n\n\t}",
"@Test\n\tpublic void revStrSentances() {\n\n\t\tString s = \"i like this program very much\";\n\t\tString[] words = s.split(\" \");\n\t\tString revStr = \"\";\n\t\tfor (int i = words.length - 1; i >= 0; i--) {\n\t\t\trevStr += words[i] + \" \";\n\n\t\t}\n\n\t\tSystem.out.println(revStr);\n\n\t}",
"public static final String reverseString2(final String inString){\n\t\tif (inString==null || inString.length()==0) return inString;\r\n\t\tchar[] cStringArray=inString.toCharArray();\r\n\t\tchar first;\r\n\t\tfor (int i=0;i<(cStringArray.length/2);i++){\r\n\t\t\tfirst = cStringArray[ i ];\r\n\t\t\tcStringArray[ i ] = cStringArray[ cStringArray.length - i - 1 ];\r\n\t\t\tcStringArray[ cStringArray.length - i - 1 ] = first;\r\n\t\t}\r\n\t\treturn String.valueOf(cStringArray);\r\n\t}",
"public static String reverse(String st) {\n\t\t\n\t\tif(st == null || st ==\"\") {\n\t\t\treturn st;\n\t\t}\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int i=st.length()-1; i>=0; i--) {\n\t\t\tbr.append(st.charAt(i));\n\t\t}\n\t\treturn br.toString();\n\t}",
"public static void main(String[] args) {\n String input = \"Lukman\";\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n //input1.append(input);\n\n // reverse StringBuilder input1\n //input1 = input1.reverse();\n\n // print reversed String\n int len = input.length() - 1;\n for (int i = len; i >= 0; --i) {\n input1.append(input.charAt(i));\n }\n System.out.println(\"Reverse:\" + input1);\n }",
"private static void reverseWord(String word) {\n // StringBuild.reverse()\n System.out.println(new StringBuilder(word).reverse().toString());\n\n // Add char one by one iteration method\n StringBuilder reversed = new StringBuilder();\n char[] chars = word.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n reversed.append(chars[chars.length - i - 1]);\n }\n System.out.println(reversed.toString());\n }",
"public String reverse(String input) \n {\n \tString outputt = \"\";\n \t//Finds the length of the string input\n \tint i = input.length();\n \t\n \tif (input == \"\")\n \t{\n \t\treturn outputt;\n \t}\n \telse\n \t{\n \t\t//Goes letter by letter building the string backwards\n \t\tfor (int c = 0; c < i; c++)\n \t\t{\n \t\tString a_letter = Character.toString(input.charAt((i - c -1)));\n \t\toutputt = (outputt + a_letter);\n \t\t}\n \t\treturn outputt;\n \t\t//return new StringBuffer(input).reverse().toString();\n \t}\n }",
"public static String reverser(String line) {\n String result=\"\";\n for (int i = line.length()-1; i >=0 ; i--) {\n result += line.charAt(i);\n }\n return result;\n}",
"String reverseMyInput(String input);",
"public static String revserse(char string[], int suffixStartIndex) {\n\t\tint j = string.length -1;\n\n\t\twhile (suffixStartIndex < j) {\n\t\t\tchar temp = string[j];\n\t\t\tstring[j] = string[suffixStartIndex];\n\t\t\tstring[suffixStartIndex] = temp;\n\n\t\t\tj--;\n\t\t\tsuffixStartIndex++;\n\t\t}\n\n\t\treturn new String(string);\n\t}",
"public static void main(String[] args) {\n StringBuffer s = new StringBuffer(\"GeeksforGeeks\");\n System.out.println(\"Original string is : \" + s );\n //print the reversed string\n System.out.print(\"Reversed string is : \" );\n //call reverse method\n reverse(s);\n\t}",
"public static String reverseString(String input) {\r\n\t\tString reversed = \"\";\r\n\t\tfor (int i = input.length() - 1; i >= 0; i--) {\r\n\t\t\treversed += input.charAt(i);\r\n\t\t}\r\n\t\treturn reversed;\r\n\t}",
"public static void main(String[] args)\n {\n String input = \"now this was interesting\";\n\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n input1.append(input);\n\n // reverse StringBuilder input1\n input1.reverse();\n\n // print reversed String\n System.out.println(input1);\n }",
"public static String reverse(String str){\n String result=\"\";//\"CBA\"\n\n for (int i = str.length()-1; i>=0; i--) {\n result+=str.charAt(i);\n }\n return result;\n }",
"public static <T> T[] reverse(T[] array) {\n\t\tfor (int i=0; i<array.length/2;i++) {\n\t\t\tT s = array[i];\n\t\t\tarray[i] = array[array.length-1-i];\n\t\t\tarray[array.length-1-i] = s;\n\t\t}\n\t\treturn array;\n\t}",
"public static String reverse(String s)\n {\n return new StringBuilder(s).reverse().toString();\n }",
"public static char[] reverseString(char[] temp, int start, int end) {\n\t\tint mid = (start + end) / 2;\n\t\tfor (int i = start; i <= mid; i++) {\n\t\t\tchar tempSwapChar = temp[i];\n\t\t\ttemp[i] = temp[end + start - i];\n\t\t\ttemp[end + start - i] = tempSwapChar;\n\t\t}\n\t\treturn temp;\n\t}",
"@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString str1 = \"madam\";\r\n\t\tString str2 = \"\";\r\n\t\tfor(int i = str1.length()-1;i>=0;i--) {\t\r\n\t\t\tchar[] rev = str1.toCharArray();\r\n\t\t\tstr2 =str2+ rev[i];\r\n\t\t}\r\n\t\tif(str1.equals(str2))System.out.println(\"The \"+str1+\" is a Palindrome\");\r\n\t\telse System.out.println(\"The \"+str1+\" is not a Palindrome\");\r\n\t}",
"public static byte[] reverse(byte[] source) {\n\t\tint len = source.length;\n\t\tbyte[] destination = new byte[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tdestination[len - i - 1] = source[i];\n\t\t}\n\t\treturn destination;\n\t}",
"public static String isPalindrome(String str) {\n\t\tchar ch[] = new char[(str.length())];\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tfor (int i = str.length()-1; i>=0; i--) {\r\n\t\t\tch[i] = str.charAt(i);\r\n\t\t\t// System.out.println(ch[i]);\r\n\t\t\tsb.append(ch[i]);\r\n\t\t}\r\n\t\t// System.out.println(sb);\r\n\t\tString rev = sb.toString();\r\n\t\treturn rev;\r\n\t\t}",
"public static void main(String[] args) {\n\r\n\t\tString reverse = \"hakunaMatata\";\r\n\t\tchar[] creverse = reverse.toCharArray();\r\n\r\n\t\tList<Character> list = new ArrayList();\r\n\r\n\t\tfor (char c : creverse)list.add(c);\r\n\t\tCollections.reverse(list);\r\n\t\tListIterator litr = list.listIterator();\r\n\t\twhile (litr.hasNext())\r\n\t\t\tSystem.out.println(\"Reverse of String: \" + litr.next());\r\n\t}",
"String reverse(String first) {\n\t String reverse = \"\";\n\t for (int i = first.length()-1; i>=0; i--) {\n\t reverse = reverse+first.charAt(i);\n\t }\n\t return reverse;\n\t }",
"void reverseIterative(char arr[],int start) {\n // Your Logic Here\n for(int i=start;i<arr.length/2;i++)\n {\n if(arr[i] != arr[arr.length-1-i])\n {\n arr[i]^=arr[arr.length-1-i];\n arr[arr.length-1-i]^=arr[i];\n arr[i]^=arr[arr.length-1-i];\n }\n }\n}",
"public static <E> void reverse(E[] a) {\n Stack<E> buffer = new ArrayStack<>(a.length);\n for (int i = 0; i < a.length; i++)\n buffer.push(a[i]);\n for (int i = 0; i < a.length; i++)\n a[i] = buffer.pop();\n }",
"public static void main(String[] args) {\n\t\tString str1=\"A man, a plan, a canal: Panama\";\r\n\t\tSystem.out.println(reverseString(str1));\r\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"the sky is blue\";\n\t\tString[] s2 = s.split(\" \");\n\n\t\tfor (String string : s2) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tList<String> s3 = Arrays.asList(s2);\n\t\tCollections.reverse(s3);\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s3) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING NOT USING COLLECTIONS AND ARRAYS\n\t\tString s4 = \"the sky is blue\";\n\t\tString[] s5 = s.split(\" \");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tint totalLength = s5.length;\n\t\tfor (int i = 0; i < totalLength / 2; i++) {\n\t\t\tString actual = s5[i];\n\t\t\tString opposite = s5[totalLength - 1 - i];\n\t\t\ts5[i] = opposite;\n\t\t\ts5[totalLength - 1 - i] = actual;\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING WITHOUT ALLOCATING EXTRA SPACE\n\t\t/*\n\t\t * 1- convertir a array de char\n\t\t * 2- revertir las letrs de las palabras pero dejŠndolas en su sitio\n\t\t * 3- revertir todo el array de char con actual/opuesto\n\t\t */\n\t\tString cadena = \"the sky is blue\";\n\t\tchar[] s6 = cadena.toCharArray();\n\n\t\tint i = 0;\n\t\tfor (int j = 0; j < s6.length; j++) {\n\t\t\tif (s6[j] == ' ') {\n\t\t\t\treverse(s6, i, j - 1);\n\t\t\t\ti = j + 1;\n\t\t\t}\n\t\t}\n\n\t\treverse(s6, i, s6.length - 1);\n\n\t\treverse(s6, 0, s6.length - 1);\n\t\t\n\t\tSystem.out.print(\"\\n\\nREVERSE STRING WITHOUT ALLOCATING EXTRA SPACE: \");\n\t\tfor(int k = 0; k<s6.length; k++) {\n\t\t\tSystem.out.print(s6[k]);\n\t\t}\n\t}",
"void reverse();",
"void reverse();",
"public static String reverse(String str){\n if(str.equals(\"\")){\n return str;\n }\n //must make problem simpler\n String firstChar = str.substring(0,1);\n String restOfString = str.substring(1);\n\n //recurse - calling this method with a simpler problem\n String restOfStringReversed = reverse(restOfString);\n\n String strReversed = restOfStringReversed + firstChar;\n return strReversed;\n }",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\n\t\tString string=s.nextLine();\n\t\tSystem.out.println(string);\n\t\tString rev=\"\";\n\t\tint length=string.length();\n\t\tfor(int i=length-1;i>=0;i--) {\n\t\t\trev=rev+string.charAt(i);\n\t\t}\n\t\tSystem.out.println(rev);\n\t}",
"@Test\n public void reverse_Givenastring_ReverseEachWord()\n {\n\n assertEquals(\"a kciuq nworb xof spmuj revo eht yzal god\",fp.Reversethestring(\"a quick brown fox jumps over the lazy dog\"));\n\n }",
"public static String reverseString(String input) {\r\n\t\tif(input==null)\r\n\t\t\t\treturn null;\r\n\t\t\r\n\t\tchar [] inputCharacter = input.toCharArray();\r\n\t\tint inputLength = inputCharacter.length;\r\n\t\t\r\n\t\tfor(int i=0; i<inputLength/2 ;i++){\r\n\t\t\tchar temp = inputCharacter[i];\r\n\t\t\tinputCharacter[i] = inputCharacter[inputLength-1-i];\r\n\t\t\tinputCharacter[inputLength-1-i] = temp;\r\n\t\t}\r\n\t\treturn new String(inputCharacter);\r\n\t}",
"public String transformString( String inputString) {\n char c[]=inputString.toCharArray();\n String transformedString=\"\";\n \n for (int i =c.length-1; i>=0; i--) { \n transformedString +=c[i];\n }\n return transformedString;\n }",
"public static void main(String[] args) {\r\n\t\tString str = \"madam\";\r\n\t\tString rev = \"\";\r\n\t\tfor(int i = str.length()-1; i>=0; i--)\r\n\t\t{\r\n\t\t rev = rev+str.charAt(i);\t\r\n\t\t}\r\n\t\tSystem.out.println(rev);\r\n\t\tif(rev.equals(str))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"its a palendrome\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"its not palendrome\");\r\n\t\t}\r\n\t\treverse(\"avinesh\");\r\n\t\t\r\n\r\n\t}",
"public static void reverseUsingCustomizedLogic(String str) {\n\t\tint strLength = str.length();\n\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\tfor (int i = strLength - 1; i >= 0; i--) {\n\t\t\tstrBuilder = strBuilder.append(str.charAt(i));\n\t\t}\n\t\tSystem.out.println(\"str value after reverse using customized logic : \" + strBuilder.toString());\n\t}",
"public void reverseWords(char[] s) {\n if (s == null || s.length <= 1) {\n return;\n }\n reverse(s, 0, s.length - 1);\n int start = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == ' ') {\n // revresting between publish and i +1\n reverse(s, start, i - 1);\n // setting publish = i +1 assuming there is only\n // one space between words !!!\n start = i + 1;\n } else if (i == s.length - 1) {\n reverse(s, start, i);\n }\n }//end for\n }",
"public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Enter any string :\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString stringInput=sc.nextLine();\r\n\t\t\r\n\t\tchar[] inputTemp=stringInput.toCharArray();\r\n\t\t\r\n\t\tint i=0;\r\n\t\tint j=inputTemp.length-1;\r\n\t\tfor(;i<j;i++,j--)\r\n\t\t{\r\n\t\t\tchar temp=inputTemp[i];\r\n\t\t\tinputTemp[i]=inputTemp[j];\r\n\t\t\tinputTemp[j]=temp;\r\n\t\t}\r\n\t\t\r\n\t\tfor (char c : inputTemp) {\r\n\t\t\tSystem.out.print(c);\r\n\t\t}\r\n\t}",
"public String reverseInput(String input)\n\t{\n\t\tif(input==null)\n\t\t\treturn null;\n String reverseString=\"\";\n for(int i=input.length()-1;i>=0;i--)\n {\n \treverseString+=input.charAt(i);\n }\n return reverseString;\n\t}"
] |
[
"0.7358167",
"0.7274213",
"0.7264654",
"0.7255132",
"0.7195314",
"0.70657",
"0.6949401",
"0.6907772",
"0.6800301",
"0.67766386",
"0.6753001",
"0.67395675",
"0.6729305",
"0.669155",
"0.667531",
"0.6665894",
"0.66390574",
"0.6629023",
"0.66040224",
"0.6589029",
"0.6586575",
"0.65860486",
"0.65560573",
"0.65332615",
"0.6528827",
"0.6516243",
"0.6469624",
"0.6438647",
"0.6435349",
"0.64256346",
"0.6417972",
"0.6397826",
"0.63945556",
"0.63876367",
"0.6375845",
"0.6375109",
"0.63731176",
"0.63712496",
"0.63602626",
"0.63599443",
"0.63433343",
"0.6342311",
"0.62984675",
"0.6292382",
"0.6288845",
"0.6282953",
"0.6277306",
"0.6273631",
"0.6262388",
"0.62561435",
"0.62398046",
"0.6234663",
"0.623217",
"0.6231184",
"0.6221012",
"0.62136084",
"0.6207886",
"0.62060654",
"0.62052876",
"0.62027854",
"0.6197322",
"0.61924314",
"0.61923474",
"0.6175367",
"0.6171392",
"0.6155984",
"0.6150265",
"0.6144635",
"0.613561",
"0.61341745",
"0.613266",
"0.61276317",
"0.6127072",
"0.61225647",
"0.61212575",
"0.6118977",
"0.610842",
"0.60996664",
"0.60912955",
"0.60801107",
"0.6077999",
"0.6073079",
"0.6070157",
"0.60671544",
"0.6066134",
"0.60653746",
"0.60653365",
"0.6059793",
"0.605133",
"0.605133",
"0.60467416",
"0.60425174",
"0.60273314",
"0.6027273",
"0.6021495",
"0.5988546",
"0.59873706",
"0.59842217",
"0.59798634",
"0.5970875"
] |
0.64429134
|
27
|
Checks given String is an elfish or not!
|
public void elfish(String str,int countL,int countE,int countF) {
if (str.length() == 0 ) {
if((countE>0 &&countF>0 && countL>0)){
System.out.println("This is an elfish word!");
}
else{
System.out.println("This is not an elfish word!");
}
return;
}
if (str.substring(0, 1).equals("l")) {
countL ++;
}
else if(str.substring(0,1).equals("e")){
countE++;
}
else if(str.substring(0,1).equals("f")){
countF++;
}
elfish(str.substring(1),countL,countE,countF);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean isValid(String word);",
"private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }",
"private boolean checkInCashe(String s) {\n return true;\n }",
"@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}",
"public boolean isCorrect(String str);",
"private boolean STRING(String s) {\r\n int n = input.match(s, in);\r\n in += n;\r\n return (n > 0);\r\n }",
"public static boolean stringHasValidEscapes( String string )\n\t{\t\t\n\t\tboolean answer = true;\n\t\tfor( int i = 0; i < string.length(); i++ )\n\t\t{\n\t\t\tif( string.charAt( i ) == '\\\\' && i + 1 < string.length() )\n\t\t\t{\n\t\t\t\tchar nextchar = string.charAt( i + 1 );\n\t\t\t\tif( nextchar == '\\\"' || nextchar == '\\\\' || nextchar == '/' \n\t\t\t\t|| nextchar == 'b' || nextchar == 'f' || nextchar == 'n' \n\t\t\t\t|| nextchar == 'r' || nextchar == 't' || nextchar == 'u' )\n\t\t\t\t{\n\t\t\t\t\tif( nextchar == 'u' && i + 5 < string.length() )\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//the next 4 characters should be hex digits\n\t\t\t\t\t\t\tfor(int j = i + 2; j < i + 6; j++ )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tInteger.parseInt( string.substring( j , j + 1 ) , 16 ); //substring instead of charAt because parseInt requires a string\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch( NumberFormatException nfe )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//one of the 4 characters was not a hex value\n\t\t\t\t\t\t\tanswer = false;\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//the character following the slash was not a valid escape character\n\t\t\t\t\tanswer = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn answer;\n\t}",
"public static boolean check(String s)\n {\n if (s.length() < 0 || s.length() > 10)\n {\n return true;\n }\n for (int i = 0 ; i < s.length(); i++)\n {\n if ((s.charAt(i) < 'a' || s.charAt(i) > 'z') && \n (s.charAt(i) < 'A' || s.charAt(i) > 'Z') && \n (s.charAt(i) < '0' || s.charAt(i) > '9'))\n {\n return true;\n }\n }\n return false;\n }",
"public abstract boolean isValid(String s);",
"private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }",
"public abstract boolean mo70721d(String str);",
"public boolean isActivationString(String word);",
"private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }",
"public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isValid(String str)\n\t{\n\t\tboolean len = false;\n\t\tboolean cap = false;\n\t\tboolean small = false;\n\t\tboolean num = false;\n\t\tboolean valid = false;\n\n\t\tchar[] pieces = str.toCharArray();\n\n\t\tif(!(pieces.length<6))\n\t\t{\n\t\t\tlen = true;\n\t\t\tfor(int i=0; i<pieces.length; i++)\n\t\t\t{\n\t\t\t\tif(Character.isLowerCase(pieces[i])) \n\t\t\t\t\tcap = true;\n\t\t\t\telse if(Character.isUpperCase(pieces[i])) \n\t\t\t\t\tsmall = true;\n\t\t\t\telse if(Character.isDigit(pieces[i])) \n\t\t\t\t\tnum = true;\n\t\n\t\t\t\tif(len && cap && small && num)\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}",
"public static boolean check(String str) {\n return str.contains(\"oo\");\n }",
"private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"private boolean validWord(String word) {\n\t\tPattern p = Pattern.compile(\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~,;:/§.£/{}¨\\\"]\");\n\t\tMatcher m = p.matcher(word);\n\t\treturn !m.find();\n\t}",
"public synchronized boolean validate(Object data) {\n if (!(data instanceof String)) {\n return false;\n }\n\n String dataString = (String) data;\n dataString = dataString.replaceAll(\"\\\\s\", \"\").replaceAll(\"-\", \"\");\n if (dataString.length() != 6) {\n return false;\n }\n\n for (Character c : dataString.substring(0, 2).toCharArray()) {\n if (!Character.isLetter(c)) {\n return false;\n }\n }\n for (Character c : dataString.substring(3, 5).toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }",
"private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isA(String s) {\n\t\tlong ip = IP4Style.transfer(s);\n\t\tif (ip == -1L) return false;\n\t\tlong a = (ip >>> 24) & 0xFF;\n\t\treturn (a >> 7) == 0L;\n\t}",
"public abstract boolean mo70724g(String str);",
"private boolean m81839a(String str) {\n return C6969H.m41409d(\"G738BDC12AA\").equals(str) || C6969H.m41409d(\"G738BDC12AA39A528F61E\").equals(str);\n }",
"boolean hasString();",
"private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasScStr();",
"public static boolean isEHDAA2(String str) {\n return patternExists(str, ehdaa2Pattern); \n }",
"private static boolean m66068b(String str) {\n for (int i = 0; i < str.length(); i++) {\n char charAt = str.charAt(i);\n if (charAt <= 31 || charAt >= 127 || \" #%/:?@[\\\\]\".indexOf(charAt) != -1) {\n return true;\n }\n }\n return false;\n }",
"boolean isWord(String potentialWord);",
"private boolean preTest(String str) {\n\t\treturn str.matches(\"^[\\\"A-Z][\\u0000-\\u0080]+$\");\n\t}",
"public boolean ehInteiro(String s) {\n\t\tchar[] c = s.toCharArray();\n\t\tboolean d = true;\n\t\tfor (int i = 0; i < c.length; i++)\n\t\t\t// verifica se o char não é um dígito\n\t\t\tif (!Character.isDigit(c[i])) {\n\t\t\t\td = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\treturn d;\n\t}",
"public abstract boolean mo70720c(String str);",
"public abstract boolean accepts(String string);",
"private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }",
"@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }",
"public boolean mo1777b(String str) {\n return false;\n }",
"public static boolean m136427a(String str) {\n if (TextUtils.isEmpty(str)) {\n return false;\n }\n return new File(str).exists();\n }",
"public static boolean ShouldEncode(String str) {\r\n\r\n char SAFE_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 0};\r\n char SAFE_INIT_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 32, ':', '<', 0};\r\n\r\n // Are there safe initial character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_INIT_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_INIT_CHAR_EXCEPTIONS[ji]) == 0) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Are there safe character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_CHAR_EXCEPTIONS[ji]) != -1) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Is there a trailing space?\r\n if (str.endsWith(\" \")) {\r\n return (true);\r\n }\r\n\r\n\r\n return (false);\r\n }",
"public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}",
"public static boolean validatenum(String str) {\n\t\tchar[] s=str.toCharArray();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar temp=s[i];\n\t\t\ts[i]=temp; \n\t\t}\n\t\tchar ch;\n\t\tboolean capital=false;\n\t\tboolean lower=false;\n\t\tboolean num=false;\n\t\tboolean spc=false;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t\tch=s[i];\n\t\t\tif(s.length>9) {\n\t\t\t\tif(Character.isDigit(ch)) {\n\t\t\t\t\tSystem.out.println(\"digit char: \"+ch);\n\t\t\t\t\tnum=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isUpperCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"upper char: \"+ch);\n\t\t\t\t\tcapital=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"lower char: \"+ch);\n\t\t\t\t\tlower=true;\n\t\t\t\t}\n\t\t\t\telse if((int)ch==(int)'$'|| (int)ch==(int)'#') {\n\t\t\t\t\tSystem.out.println(\"special char: \"+ch);\n\t\t\t\t\tspc=true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Extra :\"+ch);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tif(num && spc && lower && capital) {\n\t\t\tSystem.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\t\treturn true;\n\t\t}\n\t\t//System.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\treturn false;\n\t}",
"public abstract boolean mo70717b(String str);",
"public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public boolean canConvert(String s);",
"private boolean erLong(String s)\n\t{\n\t\ttry\n\t\t{\n\t\t\tLong.parseLong(s);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean isVog(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n flag = (s.charAt(i) == 'a' || s.charAt(i) == 'A' ||\n s.charAt(i) == 'e' || s.charAt(i) == 'E' ||\n s.charAt(i) == 'i' || s.charAt(i) == 'I' ||\n s.charAt(i) == 'o' || s.charAt(i) == 'O' ||\n s.charAt(i) == 'u' || s.charAt(i) == 'U' );\n i++;\n }\n return flag;\n }",
"private static boolean isURIString(String p_uric) {\n if (p_uric == null) {\n return false;\n }\n int end = p_uric.length();\n char testChar = '\\0';\n for (int i = 0; i < end; i++) {\n testChar = p_uric.charAt(i);\n if (testChar == '%') {\n if (i+2 >= end ||\n !isHex(p_uric.charAt(i+1)) ||\n !isHex(p_uric.charAt(i+2))) {\n return false;\n }\n else {\n i += 2;\n continue;\n }\n }\n if (isURICharacter(testChar)) {\n continue;\n }\n else {\n return false;\n }\n }\n return true;\n }",
"public static boolean stringContainsEmoticon(String str) {\n\t\tstr = \" \" + str + \" \"; // helps identify spacing around emoticons\n\t\tif(str.matches(\"(.*?)( )(:|;|x|X|8|=)(-?)(\\\\S)( )\")) /* identifies standard 'western' emoticons */\n\t\t\treturn true;\n\t\tif(str.matches(\"(.*?)( )(\\\\S)(-?)(:|;|x|X|8|=)( )\")) /* identifies standard backwards 'western' emoticons */\n\t\t\treturn true;\n\t\tif(str.matches(\"( )(\\\\(?)(>|<|;|T|\\\\^|-|#|@|\\\\$|Q|\\\\*)(_*)(>|<|;|T|\\\\^|-|#|@|\\\\$|Q|\\\\*)(\\\\)?)(;*)( )\")) /* identfies standard 'eastern' emoticons */\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}",
"boolean mo1887a(String str);",
"boolean hasCsStr();",
"public static boolean checkInput(String saInput) {\r\n\t\treturn checkGenericPattern(saInput) && checkGenericPattern(unalter(saInput));\r\n\t}",
"public boolean hasBad(String str) {\r\n String word = \"bad\";\r\n\r\n int indexOf = str.lastIndexOf(word);\r\n return indexOf == 0 || indexOf == 1;\r\n }",
"public boolean isValidResource(String resource)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n if ( (resource == null) ||\r\n (resource.equals(\"\")) ||\r\n (resource.startsWith(TIGHT_BINDING)) ||\r\n (resource.endsWith(TIGHT_BINDING)) ||\r\n (resource.endsWith(LOOSE_BINDING)) ||\r\n containsSubString(resource, TIGHT_BINDING+TIGHT_BINDING) ||\r\n containsSubString(resource, SINGLE_MATCH+SINGLE_MATCH) ||\r\n containsSubString(resource, \" \") ||\r\n containsSubString(resource, \"\\t\") ||\r\n containsSubString(resource, \"\\n\") )\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n }",
"public static boolean ehInteiro(String s) {\n char[] c = s.toCharArray();\n boolean d = true;\n\n for (int i = 0; i < c.length; i++) {\n // verifica se o char não é um dígito\n if (!Character.isDigit(c[i])) {\n d = false;\n break;\n }\n }\n\n return d;\n }",
"public boolean isValidString(String data) { \n String blackList = \"[<>;/@#$%^&+=]\";\n p = Pattern.compile(blackList);\n m = p.matcher(data);\n isValid = m.find(); \n if(isValid)\n \tisValid = containsScriptTag(data);\n return isValid;\n }",
"private void checkEasterEgg (String word) {\r\n if (word.startsWith (\"IMAC\") || word.equals (\"APPLE\") || word.equals (\"KATZ\") || word.startsWith (\"IPOD\") || word.startsWith (\"IPHONE\")\r\n || word.startsWith (\"MAC\") && !word.startsWith (\"MACR\") && !word.startsWith (\"MACE\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered cannot be recognized\\nSince we are nice, we will add it for you anyways.\",\r\n \"Woah There!\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }",
"@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }",
"public boolean isDeActivationString(String word);",
"private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }",
"public static boolean checkInputAlert(String saInput) throws Exception {\r\n\t\tboolean bool = checkInput(saInput);\r\n\r\n\t\tif (! bool) {\r\n\t\t\tStringBuffer sb = new StringBuffer(\"Hazardous characters found in the input: \");\r\n\t\t\tsb.append(\"\\\"\").append(HansFilter.alter(saInput)).append(\"\\\"\");\r\n\r\n\t\t\tthrow new Exception(sb.toString());\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"boolean harry(String str) {\n return str.matches(\".+\\\\bHarry\\\\b\");\n }",
"boolean checkChar(String s1, String s2);",
"public static void main(String[] args) {\n System.out.println(\"1. \" + StringTools.isAlpha(\"Happy\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"Happy-Happy\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '-'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isNumeric(\"09368955866\"));\n System.out.println(\"2. \" + StringTools.isNumeric(\"0936-895-5866\"));\n System.out.println(\"3. \" + StringTools.isNumeric(\"0936/895/5866\", '/'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isAlpha(\"HappyDay\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"#Happy-Day\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '#', '-'));\n // alpha space\n System.out.println(\"1. \" + StringTools.isAlpha(\"asd\", ' '));\n }",
"public boolean stringE(String str) {\n int count = 0;\n \n for (int i=0; i < str.length(); i++) {\n if (str.charAt(i) == 'e') count++;\n }\n \n return (count >= 1 && count <=3);\n}",
"private boolean checkIfEligible(String word) {\n\t\tif (word != null && word.length() > 0) {\n\t\t\tchar otherChar = Character.MIN_VALUE;\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\tchar curChar = word.charAt(i);\n\t\t\t\tif (curChar != '\\'' && curChar != '\\\"' && ELIGIBLECHARSTRING.indexOf(curChar) < 0) {\n\t\t\t\t\tif (otherChar != Character.MIN_VALUE && curChar != otherChar) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse if (otherChar == Character.MIN_VALUE ) {\n\t\t\t\t\t\totherChar = curChar;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"private boolean validDefinition(String definition) {\n\t\tPattern p = Pattern.compile(\"[@#$%&*_+=|<>{}\\\\[\\\\]~¨§£{}]\");\n\t\tMatcher m = p.matcher(definition);\n\t\treturn !m.find();\n\t}",
"private boolean dobParser(String string) {\r\n if (!Character.isDigit(string.charAt(0)))\r\n return false;\r\n else if (!Character.isDigit(string.charAt(1)))\r\n return false;\r\n else if (string.charAt(2) != '/')\r\n return false;\r\n else if (!Character.isDigit(string.charAt(3)))\r\n return false;\r\n else if (!Character.isDigit(string.charAt(4)))\r\n return false;\r\n else if (string.charAt(5) != '/')\r\n return false;\r\n else if (!Character.isDigit(string.charAt(6)))\r\n return false;\r\n else if (!Character.isDigit(string.charAt(7)))\r\n return false;\r\n else if (!Character.isDigit(string.charAt(8)))\r\n return false;\r\n else if (!Character.isDigit(string.charAt(9)))\r\n return false;\r\n return true;\r\n }",
"private boolean checkDouble(String str) {\n\t\tint i = 0, flag = 0;\n\t\tchar ch;\n\n\t\tif (str.length() == 0)\n\t\t\treturn false;\n\n\t\twhile (i < str.length()) {\n\t\t\tch = str.charAt(i);\n\n\t\t\tif (ch == '-' && flag == 0) {\n\t\t\t\tflag = 1;\n\t\t\t} else if (ch >= '0' && ch <= '9' && (flag <= 2)) {\n\t\t\t\tflag = 2;\n\t\t\t} else if (ch == '.' && (flag < 3)) {\n\t\t\t\tflag = 3;\n\t\t\t} else if (ch >= '0' && ch <= '9' && (flag == 3 || flag == 4)) {\n\t\t\t\tflag = 4;\n\t\t\t} else if (whiteSpace(ch) && (flag == 2 || flag == 4)) {\n\t\t\t\tflag = 5;\n\t\t\t} else if (!(whiteSpace(ch) && flag == 0)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tif (flag < 2)\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean canProvideString();",
"public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }",
"static boolean isWellFormed(String move) {\n if (move.length() != 4) {\n return false;\n } else {\n boolean mPieces = _PIECES.indexOf(move.substring(0, 1)) != -1;\n boolean mCol = _POSITIONS.indexOf(move.substring(1, 2)) != -1;\n boolean mRow = _POSITIONS.indexOf(move.substring(2, 3)) != -1;\n boolean mOrientations = _ORIENTATIONS.indexOf(move.substring(3, 4)) != -1;\n return mPieces && mCol && mRow && mOrientations;\n }\n }",
"private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(i)) < 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}",
"static boolean isLocalUnique(String s) {\n\t\tboolean result = false;\n\t\tif (s != null && s.length() > 8) {\n\t\t\tresult = true;\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tif (isHex(c) == false) {\n\t\t\t\t\tresult = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }",
"public boolean mo61197b(String str) {\n return false;\n }",
"public static boolean advancedBinaryStrTests()\n\t{\n\t\tSystem.out.println(\"Beginning Advanced Binary String Tests...\");\n\t\tString binary = stringtoBinary(TEST_STR).toString();\n\t\tfinal Smartprint blueprint = new Smartprint(binary);\n\t\tbinary = scramble(binary, blueprint);\n\t\tfinal byte[] scrambled = array(binary);\n\t\tbinary = scramble(binary, blueprint);\n\t\tfinal byte[] unscrambled = array(binary);\n\t\t\n\t\tfinal String translated = new String(unscrambled);\n\t\tfinal boolean match = unscrambled.equals(scrambled), \n\t\t\t\tsuccess = translated.equals(TEST_STR) && !match;\n\t\t\n\t\tSystem.out.println(\"Encoded: \"+new String(scrambled));\n\t\tSystem.out.println(\"Decoded: \"+new String(unscrambled));\n\t\tSystem.out.println(\"Match: \" + match);\n\t\tSystem.out.println(\"Success: \" + success + \"\\n\");\n\t\treturn success;\n\t}",
"public static boolean isURI(String string) {\n\t\treturn string.startsWith(\"http://\") && string.length() > 7;\n\t}",
"public static Boolean Word(String arg){\n\t\tif(arg.matches(\"^[a-zA-ZåÅäÄöÖüÜéÉèÈ]*\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\n\t}",
"private boolean isWordValid(String word){\n\t\tif(word.isEmpty())\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public static boolean isValidHexString(String inputStrInHex)\n\t{\n\t\tboolean isValidHexString = false;\n\n\t\tif(StringUtil.isInvalidString(inputStrInHex))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tchar[] charArray = inputStrInHex.toCharArray();\n\n\t\tfor(char c : charArray)\n\t\t{\n\t\t\tisValidHexString = false;\n\n\t\t\tif(isValidNumber(c)) /* Ascii 48 to 57 -> 0 to 9 digits */\n\t\t\t{\n\t\t\t\tisValidHexString = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif(c>=65 && c<=70) /* ASCII 65 to 70 -> 'A' to 'F' */\n\t\t\t{\n\t\t\t\tisValidHexString = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif(c>=97 && c<=102) /* ASCII 97 to 102 -> 'a' to 'f' */\n\t\t\t{\n\t\t\t\tisValidHexString = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif(!isValidHexString)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn isValidHexString ;\n\t}",
"private boolean m29108b(String str) {\n if (str != null) {\n if (str.endsWith(\"\\n\")) {\n str = str.substring(0, str.length() - 1);\n }\n return 24 == str.length() && !this.f22553a.matcher(str).find();\n }\n }",
"public boolean FromString(String string) {\n if (string.length() >= 38 && string.charAt(0) == '{' && string.charAt(37) == '}') {\n string = string.substring(1, 37);\n } else if (string.length() > 36) {\n string = string.substring(0, 36);\n }\n if (string.length() == 36) {\n string = string.substring(0, 36).replaceAll(\"-\", \"\");\n }\n if (string.length() != 32) {\n string = string.substring(0, 32);\n }\n data = new byte[16];\n for (int i = 0; i < 16; ++i) {\n data[i] = (byte) Integer.parseInt(string.substring(i * 2, (i * 2) + 2), 16);\n }\n return true;\n }",
"static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"void isHexadecimal(String stringhex){\n \t\tif(stringhex.charAt(2) == '0') {\n \t\t\t// on skip 0x0.\n \t\t\tbeginZeroHex(stringhex.substring(4));\n \t\t}\n \t\telse {\n \t\t\tbeginNonZeroHex(stringhex.substring(2));\n \t\t}\n \t}",
"public static boolean m1387a(String str) {\n return str.contains(\"RC2\") || str.contains(\"RC4\") || str.contains(\"DES\") || str.contains(\"MD2\") || str.contains(\"MD4\") || str.contains(\"MD5\") || str.contains(\"ANON\") || str.contains(\"NULL\") || str.contains(\"SKIPJACK\") || str.contains(\"SHA1\") || str.contains(\"TEA\") || str.contains(\"SHA0\") || str.contains(\"RIPEMD\") || str.contains(\"TLS_EMPTY_RENEGOTIATION_INFO_SCSV\") || str.contains(\"aNULL\") || str.contains(\"eNULL\") || str.contains(\"TLS_DH_anon_WITH_AES_256_CBC_SHA\") || str.contains(\"DES40\") || str.contains(\"DESX\") || str.contains(\"TLS_RSA\") || str.contains(\"SSL_RSA\");\n }",
"public boolean isValid (String c)\n {\n\tif (c.equals (\"f\") || c.equals (\"F\") || c.equals (\"Fire\") || c.equals (\"FIRE\") || c.equals (\"fire\") || c.equals (\"Water\") || c.equals (\"water\") || c.equals (\"WATER\") || c.equals (\"W\") || c.equals (\"w\") || c.equals (\"GRASS\") || c.equals (\"grass\") || c.equals (\"Grass\") || c.equals (\"G\") || c.equals (\"g\"))\n\t return true;\n\telse\n\t return false;\n }",
"public static boolean isValidState(String state) {\n\n\t\tboolean valid = true;\n\n\t\tif (StringUtils.isBlank(state)) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tif (StringUtils.containsAny(state, new char[] { ' ', '\\t' })) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\treturn valid;\n\t}",
"private boolean checkTag(String tag) {\n if (tag.length() < 1) {\n return false;\n }\n char c = tag.charAt(0);\n if (!(c >= 'a' && c <= 'z')) {\n return false;\n }\n for (int i = 1; i < tag.length(); ++i) {\n c = tag.charAt(i);\n if (!(c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '-')) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isTaken(String string) {\n return false;\n }",
"private boolean validateFuel(String inFuel)\n {\n String upFuel = new String(inFuel.toUpperCase());\n return ( upFuel.equals(BIO) || upFuel.equals(BATT) || \n upFuel.equals(DIES) );\n }",
"private boolean checkWord(String str)\n\t{\n\t\tfor (int i = 0; i < words.length(); i++)\n\t\t{\n\t\t\tif (equals(words.get(i), str))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isValidSymbol(String s){\n\t\t// check whether the specified string s is a valid tent or tree symbol of the game\n\t\t// O(1)\n\t\tif(s.equals(tentSymbol) || s.equals(treeSymbol)) { //If the symbol is the same as the tent or tree symbol the it will return true\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"static boolean verifyID(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif((c <= 'Z' && c >= 'A') || (c >= 'a' && c <= 'z')) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c >= '0' && c <= '9' || c == '_' || c == '-') //is digit or _ or -\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn id.length() > 0;\r\n\t}",
"public boolean validate(final String hex){\n\t\tmatcher = pattern.matcher(hex);\n\t\treturn matcher.matches();\n\t}",
"public boolean validarEntradaLetra(String letra) {\n\n\t\tPattern p = Pattern.compile(\"[a-zA-Z]{1,1}\");\n\n\t\tMatcher m = p.matcher(letra);\n\n\t\tif (m.matches() == false) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Letra inválida, favor insira uma letra válida!\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private static boolean validateHashTag(String line) {\n\t\tif (\"\".equals(line.trim()))\n\t\t\treturn false;\n\t\treturn Pattern.matches(\"[a-zA-Z0-9]*\", line);\n\t}",
"public final boolean mo99837a(String str) {\n return true;\n }",
"public static boolean isInstruction(String line){\n\t\tString[] validInstructions = {\"add\", \"and\", \"or\", \"xor\", \"addi\",\n\t\t\t\t\"lw\", \"sw\", \"jr\", \"cmp\", \"b\", \"bal\", \"j\", \"jal\", \"li\", \n\t\t\t\t\"blt\", \"beq\", \"bne\", \"sub\"};\n\t\tif(line.trim().indexOf(\" \") == -1)\n\t\t\treturn false;\n\t\tString inst2bedet = line.trim().substring(0, line.indexOf(\" \"));\n\t\tfor(int i = 0; i<validInstructions.length; i++){\n\t\t\t\tif(validInstructions[i].equals(inst2bedet)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private static String validateHexStr(String hexStr) throws UnsignedBigIntUtilsException {\n String tmpStr = RegExp.replaceAll(\"[ \\\\|\\\\t\\\\n]+\", hexStr, \"\");\n tmpStr = RegExp.replaceFirst(\"0[xX]\", tmpStr, \"\");\n if (tmpStr.matches(\"[0-9a-fA-F]+\") == false) {\n String msg = \"ERROR: Invalid HEX characters in input => \" + tmpStr + \"\\n\";\n throw new UnsignedBigIntUtilsException(msg);\n }\n return (tmpStr);\n }"
] |
[
"0.6381152",
"0.6366786",
"0.63063973",
"0.62986064",
"0.6266685",
"0.62403786",
"0.62179995",
"0.62174904",
"0.62141794",
"0.6205644",
"0.6200402",
"0.61473423",
"0.6120807",
"0.61122245",
"0.6094861",
"0.60927695",
"0.608555",
"0.6060548",
"0.6060548",
"0.6055568",
"0.60536736",
"0.604991",
"0.6041852",
"0.6037341",
"0.6032534",
"0.6028821",
"0.5999381",
"0.59888154",
"0.59877634",
"0.59682477",
"0.59657013",
"0.59601206",
"0.59519106",
"0.5940234",
"0.5935465",
"0.5924024",
"0.5910584",
"0.5899314",
"0.58950377",
"0.5893462",
"0.5888696",
"0.5883204",
"0.5872899",
"0.5862544",
"0.5852046",
"0.58461344",
"0.5842564",
"0.5839764",
"0.5828621",
"0.5826981",
"0.5826268",
"0.58193374",
"0.58117",
"0.58104163",
"0.5810236",
"0.5801054",
"0.57979465",
"0.5794352",
"0.5760354",
"0.5754026",
"0.57472396",
"0.57441306",
"0.5739853",
"0.57336336",
"0.5729095",
"0.5727845",
"0.57250667",
"0.5722344",
"0.5711744",
"0.57117325",
"0.57116634",
"0.5706167",
"0.5692219",
"0.5690696",
"0.5681179",
"0.56753296",
"0.56691515",
"0.5654949",
"0.5653",
"0.56377244",
"0.5632393",
"0.5629992",
"0.5622556",
"0.56184995",
"0.56170756",
"0.56115353",
"0.5609846",
"0.55940145",
"0.5593996",
"0.5584681",
"0.55744815",
"0.5568347",
"0.5567654",
"0.55644864",
"0.5562085",
"0.55588233",
"0.5553339",
"0.5549252",
"0.55492055",
"0.55462354",
"0.55371153"
] |
0.0
|
-1
|
Constructor is used for call the all methods!
|
public Recusive_Methods(){
int[][] array = {
{1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,16},
{17,18,19,20},
};
printer(array,0,0,array[0].length-1,array.length-1,0);
StringReverse("this function writes the sentence in reverse");
StringReverse("selam alp emir bilek ben");
elfish("alpemir",0,0,0);
elfish("leaf",0,0,0);
elfish("waffles",0,0,0);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Curso() {\r\n }",
"public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }",
"private Main() {\n\n super();\n }",
"public Pasien() {\r\n }",
"public void init() {\n \n }",
"public CyanSus() {\n\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public Call_simple() {\n }",
"public Tbdtokhaihq3() {\n super();\n }",
"private TMCourse() {\n\t}",
"public void init(){\n \n }",
"public Methods() {\n // what is this doing? -PMC\n }",
"public PSRelation()\n {\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Chick() {\n\t}",
"public CSSTidier() {\n\t}",
"public Calculator() {\r\n\t\t/*\r\n\t\t * Constructor - Method name which has the same class name is called a Consatructor\r\n\t\t */\r\n\t\tSystem.out.println(\"Calling constructor\");\r\n\t}",
"public contrustor(){\r\n\t}",
"public Chauffeur() {\r\n\t}",
"public Lanceur() {\n\t}",
"public Pitonyak_09_02() {\r\n }",
"public AllOne() {\n \n }",
"public Aanbieder() {\r\n\t\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public Libro() {\r\n }",
"private Rekenhulp()\n\t{\n\t}",
"public Cohete() {\n\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"private void init() {\n\n\n\n }",
"public void init() {\n\t\t \r\n\t\t }",
"public AntrianPasien() {\r\n\r\n }",
"public MethodEx2() {\n \n }",
"public Demo() {\n\t\t\n\t}",
"public OOP_207(){\n\n }",
"public void init(){}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"public Main() {\n\t\tsuper();\n\t}",
"private Instantiation(){}",
"public void init() {\r\n\r\n\t}",
"public Anschrift() {\r\n }",
"public JSFOla() {\n }",
"public Coche() {\n super();\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"public Orbiter() {\n }",
"public SlanjePoruke() {\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"private CommonMethods() {\n }",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public Method() {\n }",
"public void init(){\r\n\t\t\r\n\t}",
"public void init() {\n\t\t\n\t}",
"public void init()\n { \t\n }",
"public Excellon ()\n {}",
"private Main ()\n {\n super ();\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"@Override // opcional\n public void init(){\n\n }",
"@Override\n void init() {\n }",
"public void init() {\n\t\t}",
"public void init(){\n \n }",
"private void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"private LOCFacade() {\r\n\r\n\t}",
"public _355() {\n\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public Odontologo() {\n }",
"public void init() {\n\n }",
"public void init() {\n\n }",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"@Override\n public void init() {\n }",
"public void init() { }",
"public void init() { }",
"public void initialize()\n {\n }",
"protected void init(){\n }",
"@Override\n public void init() {}",
"public Sandwich()\n\t{super();\n \n\t\t\n\t}",
"public void init()\n {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public Carrera(){\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public Achterbahn() {\n }",
"private CheckingTools() {\r\n super();\r\n }",
"@Override\n public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private Aliyun() {\n\t\tsuper();\n\t}"
] |
[
"0.8433648",
"0.8148274",
"0.74706465",
"0.7348061",
"0.7304652",
"0.72705954",
"0.7266199",
"0.72626275",
"0.7259019",
"0.7250779",
"0.72329277",
"0.7232597",
"0.72077954",
"0.7189874",
"0.7189555",
"0.71886873",
"0.71871126",
"0.718064",
"0.7168141",
"0.71680856",
"0.7142908",
"0.713508",
"0.71349406",
"0.7120739",
"0.71121967",
"0.7105682",
"0.7104012",
"0.7101094",
"0.7096108",
"0.7087764",
"0.7086309",
"0.70743847",
"0.7064464",
"0.7063395",
"0.70539653",
"0.7048614",
"0.7048219",
"0.70446575",
"0.7037796",
"0.7034217",
"0.7034059",
"0.7026263",
"0.7024993",
"0.70065063",
"0.7002864",
"0.7002716",
"0.7002628",
"0.6996333",
"0.69941586",
"0.6986657",
"0.6986657",
"0.6986657",
"0.6972563",
"0.6971082",
"0.6971082",
"0.6971082",
"0.6969017",
"0.69679534",
"0.6963279",
"0.6958044",
"0.69578314",
"0.6949565",
"0.6947694",
"0.6947694",
"0.6947694",
"0.6947694",
"0.6947494",
"0.69408387",
"0.6939891",
"0.6938992",
"0.6926127",
"0.6924056",
"0.6919732",
"0.69144124",
"0.69138116",
"0.69114953",
"0.6910987",
"0.6910987",
"0.6907357",
"0.690564",
"0.6901649",
"0.6901649",
"0.68984747",
"0.6895834",
"0.6893896",
"0.6892467",
"0.6889886",
"0.6888267",
"0.6888267",
"0.6887935",
"0.68844163",
"0.6883868",
"0.6881418",
"0.68809026",
"0.68807983",
"0.68807983",
"0.68807983",
"0.68807983",
"0.68805134",
"0.68683517",
"0.6865641"
] |
0.0
|
-1
|
Make all people susceptible to start
|
public void seedPeopleInfections(
Int2ObjectMap<InfectionState> personStates,
Int2ObjectMap<IntSet> peopleByLocation
) {
IntSet animalKeys = startLocations.getLocationsByPeopleId().keySet();
for (int animalID : animalKeys) {
personStates.put(animalID, InfectionState.SUSCEPTIBLE);
}
NationalSampler ns = nsf.build(peopleByLocation);
IntSet sampledSeeds = ns.getSampledPeople();
for (int personID : sampledSeeds) {
AgeClass ageClass = peopleAgeClasses.get(personID);
//Get what age group the person is in
switch (ageClass) {
case YOUNG:
personStates.put(personID, EXPOSED_YOUNG);
break;
case ADULT:
personStates.put(personID, EXPOSED_ADULT);
break;
case ELDERLY:
personStates.put(personID, EXPOSED_ELDERLY);
break;
default:
throw new UnsupportedOperationException("Age class not known- for recovered event");
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void startEating() {\n\t\tthrow new RuntimeException(\"Robot cant eat\");\n\t}",
"public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n final long startTime = System.currentTimeMillis();\r\n while (System.currentTimeMillis() - startTime < runningTime) {\r\n if (wasAttemptSuccessful || hungryPhils.isEmpty()) {\r\n hungryPhils.addAll(disabledPhils);\r\n disabledPhils.clear();\r\n }\r\n Philosopher philBeingServed = null;\r\n try {\r\n philBeingServed = hungryPhils.take(); // get phil with the highest priority\r\n disabledPhils.add(philBeingServed);\r\n if (forks.get(philBeingServed.id).attempt(1)) { // Could use tryLock instead\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took left fork\");\r\n }\r\n if (forks.get(philBeingServed.id + 1).attempt(Math.round(Math.random() *\r\n (MAX_ATTEMPT_TIME + 1)))) {\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took right fork\");\r\n }\r\n philBeingServed.giveMeal();\r\n disabledPhils.remove(philBeingServed);\r\n wasAttemptSuccessful = true;\r\n } else {\r\n wasAttemptSuccessful = false;\r\n forks.get(philBeingServed.id).release();\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] put left fork\");\r\n }\r\n }\r\n } else {\r\n wasAttemptSuccessful = false;\r\n }\r\n } catch (InterruptedException e) {\r\n if (philBeingServed != null) {\r\n forks.get(philBeingServed.id).release();\r\n forks.get(philBeingServed.id + 1).release();\r\n }\r\n e.printStackTrace();\r\n }\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.printf(\"\\n\\n\"); // Kinda delimiter\r\n FireStarter.isDebugEnabled = false; // Stop producing messages from philosophers\r\n }\r\n }\r\n }",
"public void startPhilosophers() {\n\t\tstarted=true;\n\t\tphil1.start();\n\t\tphil2.start();\n\t\tphil3.start();\n\t\tphil4.start();\n\t\tphil5.start();\n\t}",
"private void initializeBadGuys() {\n\t\tplayer = new Player();\t\t\n\t\tfor (int i = 0; i < councilmen.length; i++) {\n\t\t\tcouncilmen[i] = new Councilman();\n\t\t}\n\t}",
"public void startup() {\n neutral();\n }",
"private synchronized void userStartThreads() throws Exception {\n myGamePause = false;\n if (!myHiddenPause) {\n startThreads();\n }\n }",
"void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }",
"@Override\n\t\tpublic void start() {\n\t\t\tsuper.start();\n\t\t\tAbstractMinutemanEntity.this.setAggressive(true);\n\t\t}",
"public void forceStart() {\r\n\t\tchaseObj = true;\r\n\t}",
"@Override\n public void checkEffect()\n {\n age(1);\n\n if (!suspended)\n suspend();\n }",
"private void notWorthy(final Player player) {\n\t\tplayer.getInterfaceManager().closeChatBoxInterface();\n\t\tplayer.lock(15);\n\t\tplayer.setNextFaceWorldTile(new WorldTile(3084, 3483, 0));\n\t\tWorldTasksManager.schedule(new WorldTask() {\n\t\t\tint phase = 0;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal int[] randomNPC = { 6935, 3283, 4344, 6966 };\n\t\t\t\tswitch (phase) {\n\t\t\t\tcase 0:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(857));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(915));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(857));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tplayer.setNextGraphics(new Graphics(86));\n\t\t\t\t\tplayer.getGlobalPlayerUpdater().transformIntoNPC(randomNPC[Utils.random(randomNPC.length - 1)]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tplayer.setNextForceTalk(new ForceTalk(\".... what in Helwyr is going on..!?\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tplayer.setNextGraphics(new Graphics(86));\n\t\t\t\t\tplayer.getGlobalPlayerUpdater().transformIntoNPC(-1);\n\t\t\t\t\tplayer.setNextAnimation(new Animation(10070));\n\t\t\t\t\t//player.setNextForceMovement(new ForceMovement(new WorldTile(3084, 3485, 0), 0, 2));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\t//player.setNextWorldTile(new WorldTile(3084, 3485, 0)); TODO find out why force movement doesn't work <.>\n\t\t\t\t\tNPC guard = World.findNPC(5941);\n\t\t\t\t\tsendNPCDialogue(4405, GOOFY_LAUGH, \"Looks like Dahmaroc had a sense of humour!\");\n\t\t \t // player.faceEntity(guard);\n\t\t \t // guard.faceEntity(player);\n\t\t\t\t\tplayer.unlock();\n\t\t\t\t\tstage = 99;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tphase++;\n\t\t\t}\n\t\t}, 0, 2);\n\t}",
"public void caughtCheating(){\n\t\tinGoodStanding = false;\n\t}",
"private static Sittable[] makePeopleWhoCanSit() {\n\t\treturn null;\n\t}",
"public void makeTombstone()\r\n\t\t{\r\n\t\t\tisTombstone = true;\r\n\t\t}",
"public void start(){\r\n int keuze; \r\n try{\r\n laadSpellen();\r\n keuze = geefNaamIn();\r\n if(keuze>this.spellen.length){\r\n throw new IllegalArgumentException(\"\");\r\n }\r\n laadSpelIn(keuze);\r\n }catch(SpelerHeeftGeenOpgeslagenSpellenException she){\r\n throw she;\r\n }catch(IllegalArgumentException iae){\r\n System.err.println(r.getString(\"probeerOpnieuw\"));\r\n start();\r\n }\r\n }",
"private void startUpPhase()\n\t{\n\t\tmap.distributeCountries(); /* Randomly split the countries between the players */\n\t\tArrayList<Player> remainingPlayers = new ArrayList<Player>(map.players);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tIterator<Player> i = remainingPlayers.iterator();\n\t\t\t\n\t\t\twhile (i.hasNext()) \n\t\t\t{\n\t\t\t\tPlayer p = i.next();\n\t\t\t\tif(p.getArmies() == 0) \n\t\t\t\t{\n\t\t\t\t\ti.remove();\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tp.placeOneArmy();\n\t\t\t\t}\n\t\t\t}\n\t\t}while(remainingPlayers.size() != 0);\n\t}",
"private void startGame() {\r\n\t\tlog(mName + \": print an opening message (something useful, it is up to you)\");\r\n\t\tnew Thread(new Host(mRightPercent)).start();\r\n\r\n\t\tfor (Contestant c : Contestant.mGame.getContestants()) {\r\n\t\t\tlog(mName + \": Welcome \" + c.getName() + \" to the game.\");\r\n\t\t\tsynchronized (c.mConvey) {\r\n\t\t\t\tc.mConvey.notify();\r\n\t\t\t}\r\n\r\n\t\t\tsynchronized (intro) {\r\n\t\t\t\twaitForSignal(intro, null);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsynchronized (Contestant.mGame) {\r\n\t\t\tContestant.mGame.setGameStarted(true);\r\n\t\t\tContestant.mGame.notify();\r\n\t\t}\r\n\t}",
"private synchronized void trySendToServer() throws SecurityException, KeyPoolException, IdentityException, IOException {\n if (Thread.currentThread().isInterrupted()) return;\n\n // Wait for enough proofs (don't forget we included our proof)\n if (proofs.size() >= HelperConstants.MAX_BYZANTINE_USERS + 1 + 1) {\n // Send records to all known servers\n this.user.trySendLocationReport(new Report(this.myRecord, List.copyOf(proofs)));\n // System.out.printf(\"[epoch %d] Got OK from quorum of servers\\n\", this.myRecord.getEpoch());\n\n // kill all threads\n for(Thread t: ongoingProofRequests) {\n // I will kill myself last\n if (t.isAlive() && Thread.currentThread().getId() != t.getId()) t.interrupt();\n }\n }\n }",
"protected void startAll() throws Throwable {\n\t\tthis.udpServer = new UDPServer(this.agent);\n\t\tthis.connectionServer = new TCPServer(this.agent);\n\t}",
"public void ratCrewStart() {\n printStatus();\n ratCrewGo();\n madeTheRun = true;\n printStatus();\n }",
"public void willStartOne() {\n startOne();\n }",
"public void start() throws CoreHunterException;",
"public final void putSelfInCheck() {\n\t\tout.println(\"You can't place yourself in check.\");\n\t}",
"public void bad(){\n\t\tSystem.out.println(\"you mom's a beautiful woman\");\r\n\t}",
"@Override\r\n\tpublic void tellStarting() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\t// Not used here\r\n\t}",
"public void launchTurn() {\n \twhile (getCurrentPlayer() instanceof AbstractIA) {\n \t\tSystem.out.println(\"Some thing happen or nothing\");\n \t\tjouerIA();\n \t\tendTurn();\n \t\t//setCurrentPlayer(getJoueur1());\t\n \t}\n \t\n }",
"public void start( )\n {\n // Implemented by student.\n }",
"private void SetInitialPoliticalParty() {\n\t\tif(debug) logger.info(\"SetInitialPoliticalParty: Entering\");\n\t\tint rand = Random.randomInt(100);\t\t \n\t\tif(debug) logger.info(\"SetInitialPoliticalParty: rand = \" + rand);\n\t\tif (rand < 50) {\n\t\t\tsetDemocratElected(true);\t\t\t\n\t\t}\n\t\telse {\n\t\t\tsetDemocratElected(false);\n\t\t}\n\t\tif(debug) logger.info(\"SetInitialPoliticalParty: Returning\");\n\t}",
"private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}",
"public void setupGame() {\n\t\t// Re-spawn the appropriate number of sheep\n\t\tint numSheep = 31;\n\t\t\n\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\tnumSheep = 1;\n\t\t}\n\t\t\n\t\t// It takes half the sheep to win.\n\t\t_scoreToWin = numSheep / 2;\n\t\tp(\"It takes \" + _scoreToWin + \" sheep to win.\");\n\t\t\n\t\t_hasBeenWon = false;\n\t\t\n\t\t// Non-infrastructural entities.\n\t\t//////////////////////////\n\t\t\n\t\t// Don't create this stuff if I'm replaying.\n\t\tint mod = 1;\n\t\tfor (int i = 0; i < numSheep; i++) {\n\t\t\t//int x = _generator.nextInt(40) - 20;\n\t\t\t//int z = _generator.nextInt(80) - 40;\n\t\t\tmod *= -1;\n\t\t\tint x = i/2 * mod;\n\t\t\tint z = 0;\n\n\t\t\tSheep s = new Sheep(\"sheep-\" + i + \"[\" + _sheepID + \"]\", x, 2, z);\n\t\t\t\n\t\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\t\ts.setBehaviorActive(false);\n\t\t\t}\n\t\t\t\n\t\t\t_sheepID++;\n\t\t}\n\t\t\n\t\t// Add a wubble for testing.\n\t\tif (!_isJimboSpawned && !SheepPhysicsState.PRODUCTION) {\n\t\t\tSystem.out.println(\"Adding Jimbo.\");\n\t\t\t_isJimboSpawned = true;\n\t\t\taddWubble(\"Jimbo\", (short)100, (Integer)1);\n\t\t\taddSidekick(\"Jimbo\");\n\t\t\t//addWubble(\"Bimbo\", (short)101, (Integer)0);\n\t\t}\n\t\t\n\t\t//////////////////////////\n\n\t\t// Add some wrenches in the appropriate spots.\n\t\tnew Wrench(\"blueWrench1\", -8, 5, -20);\n\t\tnew Wrench(\"blueWrench2\", 8, 5, -20);\n\t\tnew Wrench(\"redWrench1\", -8, 5, 20);\n\t\tnew Wrench(\"redWrench2\", 8, 5, 20);\n\t\t\n\t\t// Save the start of the me.\n\t\t_gameStart = System.currentTimeMillis();\n\t\tSystem.out.println(\"Started game at \" + _gameStart);\n\t\t\n\t\t// Make some predicates.\n\t\t//Predicate p = new Predicate(\"baseClassPred\");\n\t\t//GoPred g = new GoPred(\"derivedGoClass\", 1);\n\t\t\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.SPEEDY, new Vector3f(0, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpE\", -1, PowerUpInfo.PowerUpType.EATER, new Vector3f(2, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.STICKY, new Vector3f(2, 0.4f, 2));\n\t}",
"public void startNewGame() {\n\t\tif (this.currentPlayer != -1) {\n\t\t\tthrow new RuntimeException(\"The game has already started.\");\n\t\t}\n\n\t\tif (this.players.size() == 0) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"The game cannot be started with a single player\");\n\t\t}\n\n\t\tthis.currentPlayer = 0;\n\n\t\tstartTurn();\n\t}",
"public void start(){\r\n\t\tcantStop.getGameBoard().startNewTurn();\r\n\t\tallowNewRoll();\r\n\t}",
"protected abstract void kickStart() throws OptimizerException;",
"public void startTurn(){\n if (hasWinner()){\n announceWinner();\n return;\n }\n\n gameDraft();\n gameAttack();\n if (hasWinner()) return; //Skipping fortify if the game is won\n gameFortify();\n displayMessage(\"End of \" + currentPlayer.getName() + \"'s turn!\");\n }",
"public void kill() {\r\n\t\t\tfor(Guerre war : aggresiveWar) {\r\n\t\t\t\twar.finalize();\r\n\t\t\t}\r\n\t\t\tfor(Guerre war : defensiveWar) {\r\n\t\t\t\twar.finalize();\r\n\t\t\t}\r\n\t\t\tfor(Case c : caseOwned) {\r\n\t\t\t\tc.liberate();\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(nom + \" n'a pas su s'adapter aux nombreux dangers environnants, l'Histoire oublie les faibles.\");\r\n\t\t\t\r\n\t\t\tfor(String str : saveStats()) System.out.println(str);\r\n\t\t\t//finalisation de la mort\r\n\t\t\tthis.die();\r\n\t\t\tSystem.out.println(\"Une civilisation c'est éteinte...\");\r\n\t\t\t//finalize(); //bloque la sauvegarde et case les relations avec les autres (du à la recherche de la civ par id dans l'arraylist\r\n\t\t}",
"public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }",
"@Override\n public void bankrupt() {\n this.mortgaged = false;\n }",
"protected void errorIfStarted() {\r\n if (HasStarted) {\r\n throw new Error(\"Cannot change settings, algorithm has started.\");\r\n }\r\n }",
"void forceSpawn() throws SpawnException;",
"public void stoperJeux() {\n\t\t\n\t\tliaison.stopper();\n\t}",
"private void tickPeople() {\n\t\tplayer.tick();\n\t\tfor (Councilman councilman: councilmen) {\n\t\t\tcouncilman.tick();\n\t\t}\n\t}",
"@Override\r\n public void knife() {\n System.out.println(\"검이 없습니다\");\r\n }",
"public void cantPlayGoNext() {\n\t switchTurn();\n }",
"public void startHealing()\n\t{\n\t\ttimerList.clear();\n\t\tinHospitalTimer = new PlayPauseTimer(10, new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tworld.heal();\n\t\t\t\tx = random.nextInt(world.getSIMULATION_WIDTH() - individualSize);\n\t\t\t\ty = random.nextInt(world.getSIMULATION_HEIGHT() - individualSize); \n\t\t\t\tmoveInPopulation();\n\t\t\t\texitHospital();\n\t\t\t\thealthStatus = HealthStatus.HEALTHY;\n\t\t\t\ttimerList.remove(inHospitalTimer);\n\t\t\t}\n\t\t\t\n\t\t}, world.getRefreshTime());\n\t\ttimerList.add(inHospitalTimer);\n\t}",
"public static void main(String[] args) {\n\n List<Monkey> monkeyList = new LinkedList<Monkey>();\n\n int start = getStartingMonkeyNum(args);\n Monkey tmpMonkey;\n Banana b1 = new Banana();\n MonkeyWatcher mw = new MonkeyWatcher();\n\n for (int j = 0; j < start + 1; j++) {\n tmpMonkey = new Monkey();\n monkeyList.add(tmpMonkey);\n }\n monkeyList.get(start).throwBananaTo(b1);\n\n int numRounds = runSimulation(monkeyList, mw);\n System.out.println(\"Completed in \" + numRounds + \" rounds.\");\n\n //Run the simulation passing to prime monkeys\n isPrimeSim = true;\n System.out.println(\"\\nStarting Again...\");\n MonkeyWatcher mwPrime = new MonkeyWatcher();\n\n //Get rid of the banana that the first monkey has from the previous game\n getFirstMonkey(monkeyList).throwBananaFrom();\n monkeyList.get(start).throwBananaTo(b1);\n\n numRounds = runSimulation(monkeyList, mwPrime);\n System.out.println(\"Completed in \" + numRounds + \" rounds.\");\n }",
"public void startDummyGame()\n\t{\n\t\t//game.dummyGame();\n\t}",
"private void smell() {\n try {\n this.console.println(MapControl.checkSmell(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public abstract void anticipate();",
"public void infect() {\n\t\tPlagueAgent current = this;\n\t\tif (!current.infected) {\n\t\t\tfor (PlagueAgent a : plagueWorld.getNeighbors(current, 5)) {\n\t\t\t\tif (a.infected) {\n\t\t\t\t\tint luck = Utilities.rng.nextInt(100);\n\t\t\t\t\tif (luck < plagueWorld.VIRULENCE) {\n\t\t\t\t\t\tthis.infected = true;\n\t\t\t\t\t\tplagueWorld.newInfection();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplagueWorld.changed();\n\t}",
"private void start() {\n\n\t}",
"public void startup()\n\t{\n\t\t; // do nothing\n\t}",
"public void swim() {\n\t\tSystem.out.println(\"All the ducks can swim. This is an unchanged behavior for all ducks\");\n\t}",
"public void reproduceVirus() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < 1; i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inherit(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_nTotalChildren++;\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t\t_infectedGeneticCode = null;\n\t\t\t}\n\t\t\t_timeToReproduce = 20;\n\t\t}\n\t}",
"public void setAllUserThreadsDied() {\n setProperty(\"allUserThreadsDied\", true);\n _writer.println(\"// Note: all user threads died\");\n enableRecording(_includeTermSyncPoints);\n }",
"public void startAgain() {\n setLevel(1);\n setScore(0);\n setPotion(0);\n setBonusKeys(0);\n setCoin(0);\n setHealth(100);\n startGame();\n }",
"public synchronized void runPreTurtles() {\n\t\tcomputePerceptions();\n\t\tfirePreAgentScheduling();\n\t}",
"synchronized void systemStartThreads() throws Exception {\n myHiddenPause = false;\n if (!myGamePause) {\n startThreads();\n }\n }",
"public void bake() {\n\t\twhile(true) {\n\t\t\tSystem.out.print(\"attempting to bake 1 souffle...\");\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tSystem.out.println(\"success!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"but it didn't rise\");\n\t\t\t\tprepare();\n\t\t\t}\n\t\t}\n\t}",
"public void playerHasNoSword() {\n\t\tthis.state = cannotBeKilled;\n\t}",
"public synchronized void setBegun(){\n\tif(!begun){\n\t begun=true;\n\t moveGhosts();\n\t if(gameMode==2){\n\t\tjuggernaut=(int)(Math.random() * (getNbJoueurs()));\n\t\tnomJugger=getJoueurs()[juggernaut];\n\t }\n\t}\n }",
"BossEnemy(){\n super();\n totallyDied = true;\n }",
"public static void checkForPeopleInShelters() {\n\t\tfor(int i=0; i<vertexMatrix.length; i++){\n\t\t\tif (shelters[i])\n\t\t\t\tpeopleToSave[i]=0;\t\t\n\t\t}\n\t}",
"public void smell() {\n\t\t\n\t}",
"public void flagUser() {\n\t\tsuper.flagUser();\n\t}",
"public void initialAssignment(Agent owner, int forces){\n this.owner = owner;\n this.troops = forces;\n inGameInvariant(); //A game has begun. Start enforcing the invariant.\n }",
"public void startGame() {\n\t\tinitChips();\n\t\tassignAndStartInitialProjects();\n\t}",
"public void killAll() {\n distributors.forEach(Person::kill);\n distributors = new ArrayList<>();\n }",
"private void allowContinueOrStop(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(false);\r\n\t\tagain.setEnabled(true);\r\n\t\tnoMore.setEnabled(true);\r\n\t\tstatusLabel.setText(\"Feeling lucky?\");\r\n\t\tupdate();\r\n\t}",
"@Override\n public void initialize() {\n intake.intakePistons.set(true);\n }",
"static void startJavaTrainer() {\n initializeMap();\n promptUser();\n startProgram();\n }",
"void takeLeadership() throws Exception;",
"public void start(){\n return;\n }",
"private void startGame()\n {\n if (heroPlayer != null && antagonistPlayer != null && location != null && currentPlayerName != \"null\")\n {\n gameStarted = true;\n }\n }",
"public void start() {\n ArrayList<String> names = new ArrayList<>();\n game.initialize(names);\n //game.play(this.mainPkmn, this.attack);\n\n }",
"public void infect() {\n isInfected = true;\n }",
"@Override\n\tpublic void swim() {\n\t\tSystem.out.println(\"Pawan started swimming\");\n\t}",
"public void makeSilence() {\n\t\tmakeSilence(0, getSampleCount());\n\t}",
"@Override\r\n\tpublic void preStart() throws Exception {\n\t\tgetContext().actorOf(ClassifyingActor.props(\"context\"), \"ca1\");\r\n\t getContext().actorOf(ClassifyingActor.props(\"gender\"), \"ca2\");\r\n\t getContext().actorOf(ClassifyingActor.props(\"language\"), \"ca3\");\r\n\t getContext().actorOf(ClassifyingActor.props(\"spam\"), \"ca4\");\r\n\t \r\n\t}",
"private synchronized void attemptDespawnCreatures() {\n\t\ttry {\n\t\t\tfor (int i = 0; i < this.creatureEntities.size(); i++) {\n\t\t\t\tCreature creature = creatureEntities.get(i);\n\n\t\t\t\t// Acquire a read only lock, source:\n\t\t\t\t// http://winterbe.com/posts/2015/04/30/java8-concurrency-tutorial-synchronized-locks-examples/\n\t\t\t\tReadWriteLock readOnlyLock = new ReentrantReadWriteLock();\n\n\t\t\t\treadOnlyLock.readLock().lock();\n\t\t\t\tcreature.tryToDespawn();\n\t\t\t\treadOnlyLock.readLock().unlock();\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tLastTry.handleException(exception);\n\t\t}\n\t}",
"public abstract void tellStarting();",
"private void forPractice() //for loop- always a counting loop (like Simon says- do it 3 times)-pass two streets then turn left\n\t{\n\t\tfor (int i = 1; i < 4; i++)\n\t\t{\n\t\t\taskUser();\n\t\t}\n\t\n\t\n\t\n\t//Analogy-\n\t//model is what you can see\n\t//controller-director-not seen in the movie\n\t//all work goes \n\n\t\n\t}",
"public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public boolean killSpice() {\n return false;\n }",
"private void ensureChangesAllowed() {\n if (lifecycle.started() == false) {\n throw new IllegalStateException(\"Can't make changes to indices service, node is closed\");\n }\n }",
"public void infect() {\n\n if (random.getRandom() <= getProbability()) {\n isInfected = true;\n isInfectedOnThisStep = true;\n }\n }",
"public void think() {\n\t\t\n\t}",
"void beginPeriodic() {\n\t\t// if some subsystems need to get called in all modes at the beginning\n\t\t// of periodic, do it here\n\n\t\t// don't need to do anything\n\t}",
"public void startGame() {\n\t\tgameStart = true;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tenemys[i] = new Enemy(1 + (-i * 164), 192, pacman, 64, 64, 2.5, 0.0, 50);\n\t\t}\n\t\tfor(int i = 2; i < 10; i++) {\n\t\t\tenemys[i] = new Enemy(-100 + (-i * 164), 192, msPacman, 64, 64, 2.5, 0.0, 75);\n\t\t}\n\t\t\n\t\trepaint();\n\t}",
"@Override\n public void start() {\n System.out.println(\"smart life cycle start\");\n flag = true;\n }",
"void start() throws Exception;",
"void start() throws Exception;",
"public void notifyBuildFailedToStart(SRunningBuild arg0, Set<SUser> sUsers) {\n\t\t\r\n\t}",
"public synchronized void startRegistration() {\n state = State.REGISTRATION;\n players = new HashSet<>();\n }",
"@Before\n\tpublic void Contractor() {\n\t\tminiGame = new MiniGame();\n\n\t}",
"public void startWithoutChecks() {\n service.enableMonitoring();\n for (ServiceNotifier serviceNotifier : serviceNotifiers) {\n serviceNotifier.onStart();\n }\n }",
"public void beginTakingPlayers() {\n currentQuestionIndex = 0;\n setGameState(GameState.AWAITING_PLAYERS);\n }",
"private ThoseMain()\n {\n // Do nothing\n }",
"public void restart() {\n eaten = 0;\n }",
"@Override\r\n\tpublic void runInstincts() throws GameActionException {\n\t\t\r\n\t}",
"public void spawnFirstCreature(){\n\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\"))\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"antorc\"+spawnId);\n\t\t\n\t\t//Add new event into pool which will spawn the rest of the worms ( -1 because this method already spawned one )\n\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,spawnCount-1));\n\t}",
"private static void giveUp() {\r\n\t\tSystem.out.println(\"The server will now terminate.\");\r\n\t\tthrow(new RuntimeException());\r\n\t}"
] |
[
"0.5986095",
"0.5923531",
"0.5746691",
"0.57215357",
"0.5713406",
"0.5679763",
"0.5645329",
"0.5623572",
"0.5618687",
"0.55456454",
"0.5534662",
"0.551791",
"0.5512744",
"0.5475462",
"0.5464575",
"0.54496056",
"0.543872",
"0.543738",
"0.54296243",
"0.5422124",
"0.53944427",
"0.5391118",
"0.53859174",
"0.53653854",
"0.5364955",
"0.5352862",
"0.53463864",
"0.5336487",
"0.5332519",
"0.533182",
"0.5329949",
"0.5327352",
"0.5320767",
"0.5296571",
"0.5294415",
"0.52906615",
"0.5290518",
"0.52859277",
"0.528579",
"0.52838874",
"0.52760386",
"0.52685684",
"0.526357",
"0.52552825",
"0.52525175",
"0.52494025",
"0.5244763",
"0.5241585",
"0.52383375",
"0.52253836",
"0.5224391",
"0.5213659",
"0.5210504",
"0.520882",
"0.5206723",
"0.5204439",
"0.52029896",
"0.51967436",
"0.5196115",
"0.51955676",
"0.5190557",
"0.51889855",
"0.51870644",
"0.5183466",
"0.518133",
"0.51783484",
"0.5175865",
"0.5170727",
"0.51686007",
"0.5158987",
"0.51582015",
"0.51579136",
"0.5156998",
"0.51537275",
"0.5150769",
"0.5147954",
"0.5144757",
"0.5133493",
"0.5132984",
"0.5130342",
"0.51255995",
"0.5124916",
"0.5122389",
"0.5121325",
"0.5115961",
"0.51142436",
"0.5113851",
"0.51121086",
"0.51090354",
"0.51076657",
"0.51076657",
"0.5098547",
"0.5098151",
"0.5088364",
"0.5088163",
"0.5084838",
"0.50818485",
"0.5077211",
"0.50751203",
"0.5074613",
"0.50672925"
] |
0.0
|
-1
|
init attribute by name and owner. the value must be set later
|
public Attribute(final String name, final String resourceId) {
this.name = name;
this.resourceId = resourceId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setOwner(String owner);",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"public static void set(Object owner, String fieldName, Object value) {\n\t\ttry {\n\t\t\tField field = owner.getClass().getDeclaredField(fieldName);\n\t\t\tif (!field.isAccessible()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t}\n\t\t\tfield.set(owner, value);\n\t\t} catch (Exception e) {}\n\t}",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"public void setOwner(String owner) {\n mOwner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(int owner) { this.owner = owner; }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}",
"public void setOwner(Owner owner) {\n this.owner = owner;\n }",
"protected void setOwner(T owner) {\n this.owner = owner;\n }",
"public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"public AttrObject(){\t\r\n\tvalue = null;\r\n }",
"public void setDataOwner(String sDataOwner);",
"public void changeOwner(String o){\n owner = o;\r\n }",
"public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }",
"@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }",
"void setOwner(Entity owner);",
"public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"private XmlAttributeInfo (String name, String text, byte kind)\r\n {\r\n _name = name;\r\n switch (kind)\r\n\t{\r\n\tcase _ISATTRIBUTE:\r\n\t // in this case text is an attribute name reference:\r\n\t _value = new XmlTextInfo(text);\r\n\t break;\r\n\r\n\tcase _LITERAL_SYM:\r\n\t // in this case text is a literal string:\r\n\t (_value = new XmlTextInfo()).setText(text);\r\n\t break;\r\n\r\n\tcase _ELT_CONTENT:\r\n\t // in this case text is null and the value is initialized\r\n\t // to an empty XML tree path ...\r\n\t _value = new XmlTextInfo(new XmlTreePath());\r\n\t break;\r\n\t}\r\n }",
"public void setOwner(Person person) {\n _owner = person;\n }",
"public synchronized void setOwner(String s) {\n owner = s;\n }",
"private Identifier(Scope scope, Type type, String name, String value){\n if(scope == null || type == null || name == null || value == null){\n throw new IllegalStateException(\"Cannot assign nullvalue\");\n }\n this.scope = scope;\n this.type = type;\n this.name = name;\n this.value = value;\n }",
"public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }",
"public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"public void setOwner(com.sforce.soap.enterprise.sobject.SObject owner) {\r\n this.owner = owner;\r\n }",
"public Owner() {\n }",
"public Property (String propertyName, String city, double rentAmount, String owner) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot = new Plot();\n\t}",
"public void setOwner(AbstractGameObject owner) {\r\n\t\tthis.owner = owner;\r\n\t}",
"void SetOwner(int passedOwner) {\n if(passedOwner == 0 || passedOwner == 1) {\n owner = passedOwner;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the owner of a build in the build class.\");\n }\n }",
"public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }",
"public void setOwner(User owner) {\n this.owner = owner;\n }",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"public void setOwner(RMParentShape anObj) { _owner = anObj; }",
"public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}",
"public void setOwnerName( String name ) {\n\n ownerName = name;\n }",
"public HealthComponent(final IEntity owner)\n\t{\n\t\tsetOwner(owner);\n\t\tinit();\n\t}",
"Attribute createAttribute();",
"Attribute createAttribute();",
"public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}",
"public Cross(String owner){\r\n super(owner);\r\n }",
"public void setOwnerString(String s) {\n ownerString = s;\r\n }",
"public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }",
"final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}",
"protected void init(String fullName, String namespace, String systemID, int lineNr)\n/* */ {\n/* 209 */ this.fullName = fullName;\n/* 210 */ if (namespace == null) {\n/* 211 */ this.name = fullName;\n/* */ } else {\n/* 213 */ int index = fullName.indexOf(':');\n/* 214 */ if (index >= 0) {\n/* 215 */ this.name = fullName.substring(index + 1);\n/* */ } else {\n/* 217 */ this.name = fullName;\n/* */ }\n/* */ }\n/* 220 */ this.namespace = namespace;\n/* 221 */ this.line = lineNr;\n/* 222 */ this.systemID = systemID;\n/* */ }",
"public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"public Property (String propertyName, String city, double rentAmount, String owner, int x, int y, int width, int depth) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot= new Plot(x,y,width,depth);\n\t}",
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"protected Attr attr(String name, String value){\n\t\tAttr a = doc.createAttribute(name);\n\t\ta.setValue(value);\n\t\treturn a;\n\t}",
"public Property(String owners,int estvalue, String location,char PPR2,String yearsowned,String eircode,String address) {\r\n this.owners = owners;\r\n this.estValue = estvalue;\r\n this.Address = address;\r\n this.postcode = eircode;\r\n this.PPR = PPR2;\r\n this.locationCategory = location;\r\n }",
"@Override\n protected void allocateAttributes() {\n super.allocateAttributes();\n\n owner = new ByteArrayAttribute(Attribute.OWNER);\n acIssuer = new ByteArrayAttribute(Attribute.AC_ISSUER);\n serialNumber = new ByteArrayAttribute(Attribute.SERIAL_NUMBER);\n attrTypes = new ByteArrayAttribute(Attribute.ATTR_TYPES);\n value = new ByteArrayAttribute(Attribute.VALUE);\n\n putAttributesInTable(owner, acIssuer, serialNumber, attrTypes, value);\n }",
"public String getOwner(){\n return owner;\r\n }",
"public void setOwner(ListenerOwner owner)\n {\n super.setOwner(owner);\n if (owner != null)\n this.fieldChanged(DBConstants.DISPLAY, DBConstants.INIT_MOVE); // Do this\n }",
"public void setOwner(Player player) {\n owner = player;\n }",
"public Armor(String _name){\n super();\n // sets owner = _owner\n // sets posX = _posX\n // sets posY = _posY\n // sets itemIntValue = _itemIntValue\n name = _name; \n }",
"private void constructObjectPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n\n SWRLVariable var1 = null, var2 = null, var3 = null;\n String classNm, classObject = null;\n OWLObjectProperty o = ontologyOWLObjectPropertylVocabulary.get(name);\n\n classNm = constructObjectSubjectAtom(name, antecedent);\n classObject = constructObjectObjectAtom(name, antecedent);\n var2 = initalizeVariable(classNm, var2);\n var3 = initalizeVariable(classObject, var3);\n antecedent.add(factory.getSWRLObjectPropertyAtom(o, var2, var3));\n\n constructBuiltinAtom(classObject, operator, value, null, antecedent);\n\n }",
"@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}",
"public Assigner (String type){\n\t\tif(type.equals(\"owner\"))\n\t\t\tassignId(1);\n\t\telse\n\t\t\tassignId(2);\n\t}",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"private Attr newAttr(String tipo, String valor) {\n/* 341 */ Attr atrib = this.pagHTML.createAttribute(tipo);\n/* 342 */ atrib.setValue(valor);\n/* 343 */ return atrib;\n/* */ }",
"public DefaultAttribute( String upId )\n {\n setUpId( upId );\n }",
"public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }",
"public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }",
"public void set(String name, Object value) {\n }",
"public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }",
"private ConsistentVariable(String name, Class<V> type, V initValue, long initVersion) {\n super(name, type);\n versionedValue = new AtomicReference<>(new VersionedValue<>(initVersion, initValue));\n }",
"public Tag(Property.Name value) {\n\t}",
"public String getOwner() { return owner; }",
"public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}",
"public void setOwner(UserModel param) {\n localOwnerTracker = true;\n\n this.localOwner = param;\n }",
"protected Object getOwner(){\n return owner;\n }",
"public LPDMODOMAttribute(String name, String value, int type) {\n super(name, value, type);\n }",
"public ObserverClass(String name, String code, String owner){\n super(name, code);\n this.id = ++amount;\n this.owner = owner;\n this.validated = false;\n }",
"public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}",
"public Node setNamedItem(Node arg)\n throws DOMException {\n\n \tif (isReadOnly()) {\n throw\n new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR,\n \"DOM001 Modification not allowed\");\n }\n \tif(arg.getOwnerDocument() != ownerNode.ownerDocument()) {\n throw new DOMExceptionImpl(DOMException.WRONG_DOCUMENT_ERR,\n \"DOM005 Wrong document\");\n }\n\n NodeImpl argn = (NodeImpl)arg;\n\n \tif (argn.isOwned()) {\n throw new DOMExceptionImpl(DOMException.INUSE_ATTRIBUTE_ERR,\n \"DOM009 Attribute already in use\");\n }\n\n // set owner\n argn.ownerNode = ownerNode;\n argn.isOwned(true);\n\n \tint i = findNamePoint(arg.getNodeName(),0);\n \tNodeImpl previous = null;\n \tif (i >= 0) {\n previous = (NodeImpl) nodes.elementAt(i);\n nodes.setElementAt(arg,i);\n previous.ownerNode = ownerNode.ownerDocument();\n previous.isOwned(false);\n // make sure it won't be mistaken with defaults in case it's reused\n previous.isSpecified(true);\n \t} else {\n i = -1 - i; // Insert point (may be end of list)\n if (null == nodes) {\n nodes = new Vector(5, 10);\n }\n nodes.insertElementAt(arg, i);\n }\n\n if (NodeImpl.MUTATIONEVENTS &&\n ownerNode.ownerDocument().mutationEvents) {\n // MUTATION POST-EVENTS:\n ownerNode.dispatchAggregateEvents(\n (AttrImpl)arg,\n previous==null ? null : previous.getNodeValue()\n );\n }\n \treturn previous;\n\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"public Obj(ObjKind kind, String name, Type type) {\n this.kind = kind;\n this.name = name;\n this.type = type;\n\n\n\n if(kind==ObjKind.PROC||kind==ObjKind.TYPE){\n localScope=new Scope();\n nPars=0;\n }\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"void setOwner(Subject owner)\n {\n this.owner = owner;\n }",
"private <T, V> RichAttribute<T, V> setUpVirtualRichAttribute(\n\t\tT holder1,\n\t\tV holder2,\n\t\tString name\n\t) throws Exception {\n\t\tAttributeDefinition attributeDefinition = new AttributeDefinition();\n\t\tattributeDefinition.setNamespace(\"urn:perun:user:attribute-def:virt\");\n\t\tattributeDefinition.setFriendlyName(name);\n\t\tAttribute attribute = new Attribute(attributeDefinition);\n\t\treturn new RichAttribute<>(holder1, holder2, attribute);\n\t}",
"public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }",
"String attributeToSetter(String name);",
"public ByteArrayAttribute getOwner() {\n return owner;\n }",
"public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }",
"protected ObjectRepresentant (Object counterPart, TypeSystemNode type, String name) {\r\n this.counterPart = counterPart;\r\n if (name!=null) {\r\n setName(name);\r\n }\r\n else {\r\n setName(\"this\");\r\n }\r\n typeSystemNode = type;\r\n System.out.println(this+\" value: \"+value());\r\n }",
"estateName initestateName(estateName iEstateName)\n {\n iEstateName.updateElementValue(\"estateName\");\n return iEstateName;\n }",
"public CustomDialogs owner(final Object owner)\n\t{\n\t\tthis.owner = owner;\t\t\n\t\treturn this;\n\t}"
] |
[
"0.64709365",
"0.6168612",
"0.6168612",
"0.6122681",
"0.607192",
"0.6049511",
"0.6031431",
"0.6031431",
"0.6031431",
"0.6031431",
"0.60286456",
"0.6012878",
"0.6012878",
"0.59778225",
"0.59614706",
"0.5928877",
"0.5909395",
"0.5888477",
"0.5837405",
"0.58164394",
"0.5807058",
"0.580294",
"0.5794677",
"0.5792496",
"0.578762",
"0.575389",
"0.5740697",
"0.57357705",
"0.5730513",
"0.5679355",
"0.5675974",
"0.5674349",
"0.5662466",
"0.5662466",
"0.55804634",
"0.5569971",
"0.5561722",
"0.5556862",
"0.55239284",
"0.55167925",
"0.55086",
"0.549335",
"0.5473021",
"0.54622954",
"0.5462197",
"0.54446703",
"0.5441662",
"0.5422362",
"0.54144144",
"0.54144144",
"0.53858596",
"0.5380508",
"0.5377221",
"0.5348484",
"0.53463733",
"0.53410727",
"0.53402424",
"0.5339934",
"0.53398997",
"0.5336262",
"0.5331561",
"0.53114784",
"0.52997047",
"0.52931386",
"0.52838594",
"0.52693784",
"0.5251224",
"0.5247013",
"0.5237046",
"0.52305615",
"0.52215356",
"0.5219798",
"0.52158755",
"0.52103",
"0.52056175",
"0.51927894",
"0.5189189",
"0.5186764",
"0.518537",
"0.5174426",
"0.5170522",
"0.5165668",
"0.51651853",
"0.5161206",
"0.5156843",
"0.515678",
"0.5142338",
"0.5139758",
"0.5138775",
"0.5134713",
"0.5134713",
"0.5134713",
"0.5133348",
"0.5131267",
"0.5128234",
"0.51229984",
"0.51185936",
"0.5117725",
"0.51171875",
"0.50981927",
"0.50968724"
] |
0.0
|
-1
|
init attribute by name, value and owner.
|
public Attribute(final String name, final String resourceId,
final Value value) {
this(name, resourceId);
this.value = value;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private XmlAttributeInfo (String name, String text, byte kind)\r\n {\r\n _name = name;\r\n switch (kind)\r\n\t{\r\n\tcase _ISATTRIBUTE:\r\n\t // in this case text is an attribute name reference:\r\n\t _value = new XmlTextInfo(text);\r\n\t break;\r\n\r\n\tcase _LITERAL_SYM:\r\n\t // in this case text is a literal string:\r\n\t (_value = new XmlTextInfo()).setText(text);\r\n\t break;\r\n\r\n\tcase _ELT_CONTENT:\r\n\t // in this case text is null and the value is initialized\r\n\t // to an empty XML tree path ...\r\n\t _value = new XmlTextInfo(new XmlTreePath());\r\n\t break;\r\n\t}\r\n }",
"public static void set(Object owner, String fieldName, Object value) {\n\t\ttry {\n\t\t\tField field = owner.getClass().getDeclaredField(fieldName);\n\t\t\tif (!field.isAccessible()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t}\n\t\t\tfield.set(owner, value);\n\t\t} catch (Exception e) {}\n\t}",
"public AttrObject(){\t\r\n\tvalue = null;\r\n }",
"protected Attr attr(String name, String value){\n\t\tAttr a = doc.createAttribute(name);\n\t\ta.setValue(value);\n\t\treturn a;\n\t}",
"final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}",
"private Identifier(Scope scope, Type type, String name, String value){\n if(scope == null || type == null || name == null || value == null){\n throw new IllegalStateException(\"Cannot assign nullvalue\");\n }\n this.scope = scope;\n this.type = type;\n this.name = name;\n this.value = value;\n }",
"Attribute createAttribute();",
"Attribute createAttribute();",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"protected Attribute attribute(final QName name, final String value) {\n return new Attribute() {\n @Override\n public QName getName() {\n return name;\n }\n\n @Override\n public String getValue() {\n return value;\n }\n };\n }",
"public Attribute_New(String _name, String _value)\n {\n name = _name;\n\n List singleAttributList = new ArrayList<String>();\n singleAttributList.add(_value);\n\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"void setOwner(String owner);",
"public XmlAttributeInfo (String name)\r\n {\r\n this(name,XmlSpecialForm.value());\r\n }",
"public void setAttrib(String name, String value);",
"public LPDMODOMAttribute(String name, String value, int type) {\n super(name, value, type);\n }",
"@Function Attr createAttribute(String name);",
"String attributeToSetter(String name);",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public void setAttribute(String name, Object value);",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }",
"public LPDMODOMAttribute(String name, String value) {\n super(name, value);\n }",
"private void constructObjectPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n\n SWRLVariable var1 = null, var2 = null, var3 = null;\n String classNm, classObject = null;\n OWLObjectProperty o = ontologyOWLObjectPropertylVocabulary.get(name);\n\n classNm = constructObjectSubjectAtom(name, antecedent);\n classObject = constructObjectObjectAtom(name, antecedent);\n var2 = initalizeVariable(classNm, var2);\n var3 = initalizeVariable(classObject, var3);\n antecedent.add(factory.getSWRLObjectPropertyAtom(o, var2, var3));\n\n constructBuiltinAtom(classObject, operator, value, null, antecedent);\n\n }",
"public GraphAttribute(V value) {\n Rules.checkAttributeValue(value);\n this.value = value;\n this.valueClass = value.getClass();\n }",
"public DefaultAttribute( String upId, Value... vals )\n {\n // The value can be null, this is a valid value.\n if ( vals[0] == null )\n {\n add( new Value( ( String ) null ) );\n }\n else\n {\n for ( Value val : vals )\n {\n add( val );\n }\n }\n\n setUpId( upId );\n }",
"void setAttribute(String name, Object value);",
"void setAttribute(String name, Object value);",
"public XmlAttributeInfo (String name, XmlTextInfo value)\r\n {\r\n _name = name;\r\n _value = value;\r\n }",
"private Attr newAttr(String tipo, String valor) {\n/* 341 */ Attr atrib = this.pagHTML.createAttribute(tipo);\n/* 342 */ atrib.setValue(valor);\n/* 343 */ return atrib;\n/* */ }",
"public Attribute(String name, String value, Condition condition) {\n if(name == \"\")\n try {\n throw new Exception(\"Attribute Name is null\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n this.name = name;\n this.value = value;\n this.condition = condition;\n }",
"@Override\n protected void allocateAttributes() {\n super.allocateAttributes();\n\n owner = new ByteArrayAttribute(Attribute.OWNER);\n acIssuer = new ByteArrayAttribute(Attribute.AC_ISSUER);\n serialNumber = new ByteArrayAttribute(Attribute.SERIAL_NUMBER);\n attrTypes = new ByteArrayAttribute(Attribute.ATTR_TYPES);\n value = new ByteArrayAttribute(Attribute.VALUE);\n\n putAttributesInTable(owner, acIssuer, serialNumber, attrTypes, value);\n }",
"public XmlAttributeInfo (String name, XmlSpecialForm form)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(form);\r\n }",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"public void set(String name, Object value) {\n }",
"public SolutionAttributes(String name, String type, double lbound,double ubound, \n\t\t\tdouble granularity, double rateOfEvolution, double value, String dfault, String flag, String unit){\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tthis.lbound = lbound;\n\t\tthis.ubound = ubound;\n\t\tthis.granularity = granularity;\n\t\tthis.rateOfEvolution = rateOfEvolution;\n\t\tthis.value = value;\n\t\tthis.dfault = dfault;\n\t\tthis.flag = flag;\n\t\tthis.unit = unit;\n\t}",
"public Tag(Property.Name value) {\n\t}",
"public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;",
"private <T, V> RichAttribute<T, V> setUpVirtualRichAttribute(\n\t\tT holder1,\n\t\tV holder2,\n\t\tString name\n\t) throws Exception {\n\t\tAttributeDefinition attributeDefinition = new AttributeDefinition();\n\t\tattributeDefinition.setNamespace(\"urn:perun:user:attribute-def:virt\");\n\t\tattributeDefinition.setFriendlyName(name);\n\t\tAttribute attribute = new Attribute(attributeDefinition);\n\t\treturn new RichAttribute<>(holder1, holder2, attribute);\n\t}",
"protected TreeAttribute (TreeAttribute attribute) {\n super (attribute);\n \n this.name = attribute.name;\n this.specified = true; //??? -- copy will be specified\n this.valueList = new TreeObjectList (createValueListContentManager ());\n this.valueList.addAll ((TreeObjectList)attribute.valueList.clone ());\n }",
"private Attribute createAttribute() {\n\t\t\tAttribute att = AttributeFactory.createAttribute(getName(), getValueType());\n\t\t\tatt.getAnnotations().clear();\n\t\t\tatt.getAnnotations().putAll(getAnnotations());\n\t\t\tattribute = att;\n\t\t\treturn att;\n\t\t}",
"@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}",
"public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}",
"public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }",
"public Property(String owners,int estvalue, String location,char PPR2,String yearsowned,String eircode,String address) {\r\n this.owners = owners;\r\n this.estValue = estvalue;\r\n this.Address = address;\r\n this.postcode = eircode;\r\n this.PPR = PPR2;\r\n this.locationCategory = location;\r\n }",
"public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"public DefaultAttribute( String upId, String... vals )\n {\n try\n {\n add( vals );\n }\n catch ( LdapInvalidAttributeValueException liave )\n {\n // Do nothing, it can't happen\n }\n\n setUpId( upId );\n }",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic GoodUnitView initOxAttrs(GoodUnit gu)\n\t{\n\t\tList<UnityAttr> uas = bean(GetUnity.class).\n\t\t getAttrs(gu.getPrimaryKey());\n\n\t\t//~: create the type mapping\n\t\tMap<Long, GoodAttr> map = new LinkedHashMap<>();\n\t\tfor(UnityAttr ua : uas)\n\t\t{\n\t\t\tGoodAttr ga = map.get(ua.getAttrType().getPrimaryKey());\n\t\t\tif(ga == null) map.put(ua.getAttrType().getPrimaryKey(),\n\t\t\t ga = OU.cloneBest((GoodAttr) ua.getAttrType().getOx()));\n\n\t\t\t//=: primary key\n\t\t\tga.setPkey(ua.getAttrType().getPrimaryKey());\n\n\t\t\t//=: name local\n\t\t\tif(ga.getNameLo() == null)\n\t\t\t\tga.setNameLo(ga.getName());\n\n\t\t\t//=: {is taken value}\n\t\t\tga.setTaken(ua.getSource() != null);\n\n\t\t\t//?: {has no values}\n\t\t\tValue v = ga.getValue();\n\t\t\tif((v == null) && (ga.getValues() == null))\n\t\t\t\tga.setValue(Goods.value(ua));\n\t\t\t//?: {has several values now}\n\t\t\telse if(ga.getValues() != null)\n\t\t\t\tga.getValues().add(Goods.value(ua));\n\t\t\t//?: {make two values}\n\t\t\telse\n\t\t\t{\n\t\t\t\tArrayList<Value> vs = new ArrayList<>(2);\n\t\t\t\tvs.add(v); //<-- existing, first\n\t\t\t\tvs.add(Goods.value(ua));\n\n\t\t\t\tga.setValue(null);\n\t\t\t\tga.setValues(vs);\n\t\t\t}\n\t\t}\n\n\t\t//=: attributes list\n\t\tthis.attrValues = new ArrayList<>(map.values());\n\n\t\t//=: attributes mapping\n\t\tthis.attrs = Goods.convert(this.attrValues);\n\t\tif(this.attrs == null) this.attrs = new HashMap<>();\n\n\t\treturn this;\n\t}",
"public XmlAttributeInfo (String name,\r\n\t\t\t int child,\r\n\t\t\t int[] path,\r\n\t\t\t String attribute)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(child,path,attribute);\r\n }",
"public XMLValueNode(String name, String value, String type) {\r\n\t\tsuper(name);\r\n\t\tthis.set(\"xsi:type\", type);\r\n\t\tthis.setContent(value);\r\n\t}",
"public Attribute(String name, Type type, int ID, int length){\r\n\t\tthis.name = name;\r\n\t\tthis.type = type;\r\n\t\tthis.ID = ID;\r\n\t\tthis.length = length;\r\n\t\tvalues = new ArrayList();\r\n\t}",
"public XmlAttributeInfo (String name, XmlTreePath path)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(path);\r\n }",
"static Attribute createAttribute(String name) {\n\t\treturn createAttribute(name, new IntegerFieldWrapper());\n\t}",
"public DefaultAttribute( String upId, byte[]... vals )\n {\n try\n {\n add( vals );\n }\n catch ( LdapInvalidAttributeValueException liave )\n {\n // Do nothing, this can't happen\n }\n\n setUpId( upId );\n }",
"final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public RequestAttribute(String name, String value) {\n this.name = name;\n this.value = value;\n }",
"private ConsistentVariable(String name, Class<V> type, V initValue, long initVersion) {\n super(name, type);\n versionedValue = new AtomicReference<>(new VersionedValue<>(initVersion, initValue));\n }",
"public NameValue() {\n }",
"public XmlAttributeInfo (String name,\r\n\t\t\t int child,\r\n\t\t\t IntArrayList path,\r\n\t\t\t String attribute)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(child,path,attribute);\r\n }",
"protected abstract void setContextAttribute(String name, Object value);",
"public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}",
"@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"public Builder addAattribute(final String name, final Object value) {\n if (name != null && value != null) {\n this.sessionAttrs.put(name, value);\n }\n return this;\n }",
"public TreeAttribute (String qName, String value, boolean specified) throws InvalidArgumentException {\n super ();\n \n TreeName treeName = new TreeName (qName);\n checkName (treeName);\n checkValue (value);\n \n this.name = treeName;\n this.specified = specified;\n this.valueList = new TreeObjectList (createValueListContentManager ());\n setValueImpl (value);\n \n if ( Util.THIS.isLoggable() ) /* then */ Util.THIS.debug (\"TreeAttribute::INIT : name = \" + qName + \" : specified = \" + specified); // NOI18N\n }",
"private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }",
"public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}",
"public void setOwner(int owner) { this.owner = owner; }",
"public Property (String propertyName, String city, double rentAmount, String owner) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot = new Plot();\n\t}",
"public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}",
"public native final <T> Selection attr(final String name, String value)\n\t/*-{\n\t\treturn this.attr(name, value);\n\t}-*/;",
"private void constructOwlDataPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n SWRLVariable var1 = null, var2;\n String classNm = null;\n\n var1 = initalizeVariable(name, var1);\n OWLDataProperty p = ontologyOWLDataPropertyVocabulary.get(name);\n\n classNm = constructpropertySubjectAtom(name, antecedent);\n\n var2 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(classNm)));\n antecedent.add(factory.getSWRLDataPropertyAtom(p, var2, var1));\n Set<OWLDataPropertyRangeAxiom> sgdp = domainOntology.getDataPropertyRangeAxioms(p);\n OWLDataRange r = null;\n for (OWLDataPropertyRangeAxiom a : sgdp) {\n r = a.getRange();\n }\n constructBuiltinAtom(name, operator, value, r.asOWLDatatype(), antecedent);\n\n }",
"void setAttribute( String attrName, Object value ) throws FileSystemException;",
"public DefaultAttribute( String upId )\n {\n setUpId( upId );\n }",
"protected void init(String fullName, String namespace, String systemID, int lineNr)\n/* */ {\n/* 209 */ this.fullName = fullName;\n/* 210 */ if (namespace == null) {\n/* 211 */ this.name = fullName;\n/* */ } else {\n/* 213 */ int index = fullName.indexOf(':');\n/* 214 */ if (index >= 0) {\n/* 215 */ this.name = fullName.substring(index + 1);\n/* */ } else {\n/* 217 */ this.name = fullName;\n/* */ }\n/* */ }\n/* 220 */ this.namespace = namespace;\n/* 221 */ this.line = lineNr;\n/* 222 */ this.systemID = systemID;\n/* */ }",
"private NodeTypeHolder(Attributes a)\r\n\t{\r\n\t this.attributes = a;\r\n\t}",
"void setOwner(Entity owner);",
"public LPDMODOMAttribute(String name, String value, Namespace namespace) {\n super(name, value, namespace);\n }",
"public AttributeSet(Object elem) {\n\n elements = new Hashtable(1, 1);\n elements.put(elem, elem);\n }",
"TAttribute createTAttribute();",
"public Armor(String _name){\n super();\n // sets owner = _owner\n // sets posX = _posX\n // sets posY = _posY\n // sets itemIntValue = _itemIntValue\n name = _name; \n }",
"@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }",
"private DataType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}",
"protected void setOwner(T owner) {\n this.owner = owner;\n }",
"protected final void addAttribute(final String name, final String value) {\n if(value == null) attributes.remove(name);\n else attributes.put(name, value);\n\t}",
"public VAttribute getNonmutableAttribute(String name) throws VlException\n {\n // by prefix values with \"\", a NULL value will be convert to \"NULL\".\n if (name.compareTo(ATTR_TYPE) == 0)\n return new VAttribute(name, \"\"+getType());\n else if (name.compareTo(ATTR_LOCATION) == 0)\n return new VAttribute(name, getVRL()); \n else if (name.compareTo(ATTR_NAME) == 0)\n return new VAttribute(name, \"\"+getName());\n else if (name.compareTo(ATTR_HOSTNAME) == 0)\n return new VAttribute(name, getHostname());\n // only return port attribute if it has a meaningful value \n else if (name.compareTo(ATTR_PORT) == 0)\n return new VAttribute(name,getPort());\n else if (name.compareTo(ATTR_ICONURL) == 0)\n return new VAttribute(name, getIconURL());\n else if (name.compareTo(ATTR_SCHEME) == 0)\n return new VAttribute(name, getScheme());\n else if (name.compareTo(ATTR_PATH) == 0)\n return new VAttribute(name, getPath());\n else if ( (name.compareTo(ATTR_URI_QUERY) == 0) && getLocation().hasQuery() )\n return new VAttribute(name, getQuery());\n else if ( (name.compareTo(ATTR_URI_FRAGMENT) == 0) && getLocation().hasFragment() )\n return new VAttribute(name, getLocation().getFragment());\n else if (name.compareTo(ATTR_NAME) == 0) \n return new VAttribute(name, getName());\n else if (name.compareTo(ATTR_LOCATION) == 0)\n return new VAttribute(name, getLocation().toString());\n else if (name.compareTo(ATTR_MIMETYPE) == 0)\n return new VAttribute(name, getMimeType());\n else if (name.compareTo(ATTR_ISVLINK) == 0)\n return new VAttribute(name, getLocation().isVLink());\n else if (name.compareTo(ATTR_CHARSET) == 0)\n return new VAttribute(name, getCharSet());\n \n return null; \n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"public HealthComponent(final IEntity owner)\n\t{\n\t\tsetOwner(owner);\n\t\tinit();\n\t}",
"private AttributeDefinition setUpAttributeDefinition(String name) throws Exception {\n\t\tAttributeDefinition ad = new AttributeDefinition();\n\t\tad.setNamespace(\"ns\");\n\t\tad.setFriendlyName(name);\n\t\tad.setId(idCounter++);\n\t\twhen(attrManagerImplMock.getAttributeDefinition(any(), eq(ad.getName()))).thenReturn(ad);\n\t\treturn ad;\n\t}",
"public Property (String propertyName, String city, double rentAmount, String owner, int x, int y, int width, int depth) {\n\t\tthis.propertyName= propertyName;\n\t\tthis.city= city;\n\t\tthis.rentAmount= rentAmount;\n\t\tthis.owner=owner;\n\t\tplot= new Plot(x,y,width,depth);\n\t}"
] |
[
"0.5995932",
"0.5816179",
"0.5781097",
"0.57672626",
"0.5704101",
"0.5686164",
"0.5685213",
"0.5685213",
"0.5538521",
"0.5538521",
"0.5537125",
"0.55342805",
"0.5506311",
"0.5506064",
"0.5479769",
"0.5461494",
"0.5457978",
"0.5457279",
"0.54482144",
"0.54330504",
"0.5422598",
"0.5393918",
"0.5393918",
"0.53933483",
"0.5382622",
"0.537451",
"0.53715676",
"0.5369602",
"0.5367472",
"0.53588784",
"0.5356616",
"0.5356616",
"0.5348354",
"0.53401524",
"0.532606",
"0.5320056",
"0.53174585",
"0.5311157",
"0.530294",
"0.5302912",
"0.52918094",
"0.5289176",
"0.52834696",
"0.5251292",
"0.523802",
"0.52375835",
"0.5236609",
"0.52240884",
"0.52217674",
"0.521041",
"0.52086926",
"0.5202634",
"0.5197776",
"0.5183319",
"0.5154253",
"0.51535577",
"0.5146944",
"0.51442003",
"0.51435417",
"0.51359516",
"0.5122314",
"0.51205707",
"0.5102266",
"0.51009965",
"0.5096876",
"0.5089393",
"0.50876135",
"0.5086439",
"0.50731623",
"0.50594974",
"0.5036946",
"0.5036946",
"0.50315696",
"0.5021277",
"0.50146955",
"0.5010244",
"0.50063473",
"0.50006044",
"0.49973258",
"0.4994774",
"0.49888635",
"0.49802744",
"0.49791154",
"0.49776015",
"0.4977121",
"0.49764457",
"0.4976432",
"0.49758542",
"0.4966268",
"0.4947536",
"0.49443302",
"0.4927781",
"0.49240583",
"0.49203494",
"0.49193424",
"0.49148577",
"0.49125624",
"0.49110892",
"0.4909868",
"0.49086326"
] |
0.538738
|
24
|
ActionListener for "AdminLogin" button
|
private void setActionListener() {
btn_login.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if(tf_user.getText().equals("admin") && tf_password.getText().equals("utpal")){
PatientTable table = new PatientTable();
table.setVisible(true);
dispose();
}
else
JOptionPane.showMessageDialog(null, "Sorry Username and Password didn't match!!");
}
});
btn_clear.addActionListener(new ActionListener() {
// ActionListener for "Clear" button
@Override
public void actionPerformed(ActionEvent e) {
tf_user.setText("");
tf_password.setText("");
}
});
btn_back.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
dispose();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void btnLogin(ActionEvent e) {\n }",
"public void LoginButton() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tUserLoginPage userloginpanel = new UserLoginPage();\n\t\t\t\t\tuserloginpanel.login.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tDatabaseMethods DB = new DatabaseMethods();\n\t\t\t\t\t\t\tArrayList<User> usrarray = DB.ReadUser();\n\t\t\t\t\t\t\tArrayList<Admin> adminarray = DB.ReadAdmin();\n\t\t\t\t\t\t\tfor(User u:usrarray) {\n\t\t\t\t\t\t\t\t//System.out.println(u.getUserName().equals(login.psw.getPassword()) + \" \" + u.getPassword() + \" \" + new String(login.psw.getPassword()));\n\t\t\t\t\t\t\t\tif(u.getUserName().equals(userloginpanel.usr_name.getText()) && u.getPassword().equals(new String(userloginpanel.psw.getPassword()))) {\n\t\t\t\t\t\t\t\t\tuserloginpanel.frame.setVisible(false);\n\t\t\t\t\t\t\t\t\tex.setuser(u);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor(Admin a:adminarray){\n\t\t\t\t\t\t\t\tif(a.getAdminName().equals(userloginpanel.usr_name.getText()) && a.getPassword().equals(new String(userloginpanel.psw.getPassword()))) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"admin\");\n\t\t\t\t\t\t\t\t\tuserloginpanel.frame.setVisible(false);\n\t\t\t\t\t\t\t\t\tex.sidebar.admin_button.setVisible(true);\n\t\t\t\t\t\t\t\t\t//ex.repaint();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n \t\t\t\tlogin();\n \t\t\t}",
"public void actionPerformedLogin(ActionListener login) {\n btnLogin.addActionListener(login);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\n\t\tif(ae.getSource().equals(j_b_login)) {\n\t\t\tString username;\n\t\t\tString password;\n\t\t\t\n\t\t\tusername = j_text_Username.getText();\n\t\t\tpassword = j_text_password.getText();\n\t\t\tif(username.contentEquals(\"admin\") && password.equals(\"admin\")) {\n//\t\t\t\tnew Admin_Dashboard();\n\t\t\t\tAdmin_Dashboard AD =new Admin_Dashboard();\n\t\t\t\tAD.setVisible(true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Invalid Username or Password\");\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinputListenerForLoginButton();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tlogin();\n\t\t\t}",
"private void LoginActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }",
"private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUILogin in = new GUILogin(UserType.ADMIN);\n\t\t\t\tcloseFrame();\n\t\t\t}",
"public void actionPerformed(ActionEvent e){\n\t\tString command = e.getActionCommand();\n\t\tif(command == \"login\"){\n\t\t\tif(isUserValid(loginView.getUserNameTextField().getText(),\n\t\t\t\t\t\t loginView.getUserPasswordField().getPassword())){\n\t\t\t\tPosPiMenu posMenu = new PosPiMenu(this.dataConnection, this.dataUser, this.dataPassword);\n\t\t\t\tposMenu.showGUI();\n\t\t\t\tthis.loginView.getMainFrame().dispose();\n\t\t\t}\n\t\t}//end if\n\t}",
"private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}",
"@Override\r\n\tpublic void login_admin() {\n\t\trender(\"admin/login.jsp\");\r\n\t}",
"public Authentification() {\n initComponents();\n init_Panel();\n Admin_Button.addActionListener(new Admin_Action()); \n User_Button.addActionListener(new User_Action());\n Retour_Button.addActionListener(new Retour_Action() );\n Retour_Button.addActionListener(new Connexion_Action() );\n \n \n }",
"public void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tlogin();\n\t\t\t\t\n\t\t\t}",
"public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}",
"public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}",
"public void gotoAdminLogin(){ application.gotoAdminLogin(); }",
"@Override\n public void loginScreen() {\n logIn = new GUILogInScreen().getPanel();\n frame.setContentPane(logIn);\n ((JButton) logIn.getComponent(4)).addActionListener(e -> {\n setUsername();\n });\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\t\t\tboolean approved = showLoginScreen();\n\t\t\t\tif(approved) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tGUIDriver.goToScreen(\"welcome\");\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectMessage();\n\t\t\t\t}\n\t\t}",
"public void actionPerformed(ActionEvent event) {\n\t\t//We have only one button\n\t\tif(event.getSource() == loginButton) {\n\t\t\t//Getting the username and password inserted\n\t\t\tauxUsername = usernameTextField.getText();\n\t\t\tauxPassword = new String(passwordField.getPassword());\n\t\t\t\n\t\t\t//Check if user introduces username and password\n\t\t\tif(!auxUsername.equals(\"\") && !auxPassword.equals(\"\")) {\n\t\t\t\t//First case: the administrator is logging\n\t\t\t\tif(auxUsername.equals(\"admin\") \n\t\t\t\t\t\t&& auxPassword.equals(\"admin\")) {\n\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\n\t\t\t\t\tUser auxUser = null;\n\t\t\t\t\tfor(int i=0 ; i<usersList.size(); i++) {\n\t\t\t\t\t\tif(usersList.get(i).getUsername().equals(\"admin\") && \n\t\t\t\t\t\t\t\t\tusersList.get(i).getPassword().equals(\"admin\")) {\n\t\t\t\t\t\t\tauxUser = usersList.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tAdminGUI adminGUI = new AdminGUI(this, auxUser);\n\t\t\t\t\tadminGUI.run();\n\t\t\t\t} else {\n\t\t\t\t\t//Second case: somebody else is logging\n\t\t\t\t\tUser auxUser = null;\n\t\t\t\t\tfor(int i=0; i<usersList.size(); i++) {\n\t\t\t\t\t\tif(usersList.get(i).getUsername().equals(auxUsername) &&\n\t\t\t\t\t\t\t\t\tusersList.get(i).getPassword().equals(auxPassword)) {\n\t\t\t\t\t\t\tauxUser = usersList.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(auxUser != null) {\n\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\tUserGUI userGUI = new UserGUI(this, auxUser);\n\t\t\t\t\t\tuserGUI.run();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Username or password incorect! Try again!\",\n\t\t\t\t \t\t\"ERROR!\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t//Delete text from textfields\n\t\t\t\t\t\tusernameTextField.setText(\"\");\n\t\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Delete text from textfields\n\t\t\t\tusernameTextField.setText(\"\");\n\t\t\t\tpasswordField.setText(\"\");\n\t\t\t}\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (campoUsername.getText().replace(\" \", \"\").equals(\"\")\n\t\t\t\t\t\t|| new String(campoPassword.getPassword()).replace(\" \", \"\").equals(\"\")) {\n\t\t\t\t\tmostraMissatge(\"No ha possat username o password\");\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\tcv.PrLogin(campoUsername.getText(), new String(campoPassword.getPassword()));\n\t\t\t\t}\n\t\t\t}",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"public void Login(ActionEvent event) throws Exception{\r\n Login();\r\n }",
"@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tDatabaseMethods DB = new DatabaseMethods();\n\t\t\t\t\t\t\tArrayList<User> usrarray = DB.ReadUser();\n\t\t\t\t\t\t\tArrayList<Admin> adminarray = DB.ReadAdmin();\n\t\t\t\t\t\t\tfor(User u:usrarray) {\n\t\t\t\t\t\t\t\t//System.out.println(u.getUserName().equals(login.psw.getPassword()) + \" \" + u.getPassword() + \" \" + new String(login.psw.getPassword()));\n\t\t\t\t\t\t\t\tif(u.getUserName().equals(userloginpanel.usr_name.getText()) && u.getPassword().equals(new String(userloginpanel.psw.getPassword()))) {\n\t\t\t\t\t\t\t\t\tuserloginpanel.frame.setVisible(false);\n\t\t\t\t\t\t\t\t\tex.setuser(u);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor(Admin a:adminarray){\n\t\t\t\t\t\t\t\tif(a.getAdminName().equals(userloginpanel.usr_name.getText()) && a.getPassword().equals(new String(userloginpanel.psw.getPassword()))) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"admin\");\n\t\t\t\t\t\t\t\t\tuserloginpanel.frame.setVisible(false);\n\t\t\t\t\t\t\t\t\tex.sidebar.admin_button.setVisible(true);\n\t\t\t\t\t\t\t\t\t//ex.repaint();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"public void login(ActionEvent e) throws IOException {\r\n\t\t\r\n \tString username = loginuser.getText().trim();\r\n \t//if user is admin, change to userlist screen\r\n \tif (username.equals(\"admin\")) {\r\n \tPhotos.userlistscreen();\r\n \t} else {\r\n \t\tUser user = currentAdmin.findUser(username);\r\n \t\t//if user is found, log into that user and show the album view for that user specifically\r\n \t\tif (user!=null) {\r\n \t\t\tAlbumController.currentUser = (NonAdmin) user;\r\n \t\t\tCopyController.currentUser = (NonAdmin) user;\r\n \t\t\tMoveController.currentUser = (NonAdmin) user;\r\n \t\t\tPhotos.albumscreen(user);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n \t\t\talert.setTitle(\"Error\");\r\n \t\t\talert.setHeaderText(\"Invalid username\");\r\n \t\t\talert.setContentText(\"Please try again\");\r\n \t\t\talert.showAndWait();\r\n \t\t\tloginuser.setText(\"\");\r\n \t\t}\r\n \t}\r\n\t}",
"public void actionPerformed(ActionEvent e){\n if (e.getSource() == login_var){\r\n String username_input = userInp.getText();\r\n login_username = username_input;\r\n \r\n String password_input = passInp.getText();\r\n status = systemssoftwareproject.Authentication.login.login(username_input, password_input);\r\n \r\n // If credentials are a match - login successfully\r\n if(status) {\r\n setVisible(false);\r\n }\r\n \r\n // Else - display error\r\n else{\r\n JOptionPane.showMessageDialog(c, \"Incorrect Credentials! Try again.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n \r\n // Send user to SignupForm\r\n if (e.getSource() == signup){\r\n setVisible(false);\r\n SignupForm signupForm = new SignupForm();\r\n signupForm.getLoginInstance(this);\r\n }\r\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t\trealLogin(host.getText(), tf_name.getText());\r\n\t\t\t\td.dispose();\r\n\t\t\t}",
"public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}",
"@Override\r\n\tpublic void actionPerformed(Object e) {\n\t\tif(e == loginButton) {\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT * FROM users WHERE username LIKE ? AND password LIKE ?\");\r\n\t\t\t\tps.setString(1, usernameField.getText());\r\n\t\t\t\tps.setString(2, passField.getText());\r\n\t\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t\t\r\n\t\t\t\tif(!rs.next()) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"invalid username/password\",\"error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tint i = rs.getInt(\"UserId\");\r\n\t\t\t\t\tString name = rs.getString(\"Name\");\r\n\t\t\t\t\tBlob blob = rs.getBlob(\"ProfilePic\");\r\n\t\t\t\t\tUser user = User.getUser(i, name,usernameField.getText(), passField.getText(),blob);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Login Successfull !\");\r\n\t\t\t\t\tsm.setNewPage(StateManager.HOME);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(\"ERROR\");\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void LoginAction() {\n\t\tsubmit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tif (username.getText().isEmpty() || password.getPassword().length == 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"All fields have not been entered.\", \"Oops! Please Try Again\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(myController.login(username.getText(), String.valueOf(password.getPassword())))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"We login\");\n\t\t\t\t\t\tmyController.showHomePage();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The username and password do not match an account.\", \"Login Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\telse if (username.getText().equalsIgnoreCase(\"User\") && Arrays.equals(password.getPassword(), new char[]{'u','s','e','r','p','w','d'})) {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged in as a USER!\", \"Success!\", JOptionPane.PLAIN_MESSAGE);\n//\t\t\t\t\t\n//\t\t\t\t} else if (username.getText().equalsIgnoreCase(\"Judge\") && Arrays.equals(password.getPassword(), new char[]{'j','u','d','g','e','p','w','d'})) {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged in as a Judge!\", \"Success!\", JOptionPane.PLAIN_MESSAGE);\n//\t\t\t\t\n//\t\t\t\t} else if (username.getText().equalsIgnoreCase(\"Admin\") && Arrays.equals(password.getPassword(), new char[]{'a','d','m','i','n','p','w','d'})) {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged in as an Admin!\", \"Success!\", JOptionPane.PLAIN_MESSAGE);\n//\t\t\t\t\n//\t\t\t\t} else {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Incorrect Login.\", \"Oops! Please Try Again\", JOptionPane.ERROR_MESSAGE);\n//\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (server == null)\r\n\t\t\t\t\tlogin();\r\n\t\t\t}",
"private JPanel adminLoginButtons() {\n JPanel loginButtons = new JPanel();\n JButton login = new JButton(\"Login\");\n login.addActionListener(new adminLoginListener());\n loginButtons.add(login);\n loginButtons.add(Box.createHorizontalStrut(15));\n JButton cancel = new JButton(\"Cancel\");\n cancel.addActionListener(new adminLoginListener());\n loginButtons.add(cancel);\n return loginButtons;\n }",
"private JButton getLoginButton() {\n\t\tif (LoginButton == null) {\n\t\t\tLoginButton = new JButton();\n\t\t\tLoginButton.setBounds(new Rectangle(140, 230, 80, 25));\n\t\t\tLoginButton.setText(\"Login\");\n\t\t\tLoginButton.addActionListener(new ActionListener () {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(NameTextField.getText().compareTo(\"admin\")==0)\n\t\t\t\t\t{\n//\t\t\t\t\t\tSystem.out.println(\"clicked\");\n\t\t\t\t\t\tif(String.valueOf(PasswordField.getPassword()).equals(\"mds\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tMainFrame m = new MainFrame();\n//\t\t\t\t\t\t\tm.setBounds(0,0,900,600);\n\t\t\t\t\t\t\tm.setVisible(true);\n\t\t\t\t\t\t\tcloseWindow();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tshowMessageDialog(\"Invalid Username or Password\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn LoginButton;\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (ConnectionActivity.isNetConnected(AdminLoginActivity.this)) {\r\n\r\n\t\t\t\t\tdoAdminLogin();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog( AdminLoginActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}",
"public void login(ActionEvent event) throws IOException {\n\t\t//if user is admin, open admin screen\n\t\tif(username.getText().toLowerCase().equals(\"admin\")) {\n\t\t\t//open admin screen\n\t\t\tMain.changeScene(\"/view/admin.fxml\", \"Administrator Dashboard\");\t\t\t\n\t\t}\n\t\t//if user is blank, throw error\n\t\telse if(username.getText().isEmpty()){\n\t\t\tinvalidUserError.setVisible(true);\n\t\t}\n\t\t//otherwise make sure user exists and if they do set current user and change screen, if not throw error.\n\t\telse {\n\t\t\tfor(User user : UserState.getAllUsers()) {\n\t\t\t\tif(user.getUserName().toLowerCase().equals(username.getText().toLowerCase())) {\n\t\t\t\t\tUserState.setCurrentUser(user);\n\t\t\t\t\tMain.changeScene(\"/view/userhome.fxml\", \"User Home\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tinvalidUserError.setVisible(true);\n\t\t\tusername.setText(\"\");\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tVariables.editorselete = 10;\r\n\t\t\t\tnew Login();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tVariables.editorselete = 5;\r\n\t\t\t\tnew Login();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"public void inputListenerForLoginButton() throws SQLException, ParseException {\n\t\t// when Login is pressed\n\t\tString email = textField_Email.getText().toLowerCase();\n\t\ttextField_Email.setText(\"\");\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tString password = passwordField.getText();\n\t\tpasswordField.setText(\"\");\n\n\t\tMember m = memberRepository.passwordMatchesForLogin(email, password);\n\n\t\tif (!isEmailFormatCorrect(email) || password.equals(\"\")) {\n\t\t\tlblLabel_Invalid.setVisible(true);\n\t\t\tpanel.revalidate();\n\t\t\tpanel.repaint();\n\t\t\treturn;\n\t\t}\n\n\t\tif (m != null) {\n\t\t\tif (m.isAdmin()) {\n\t\t\t\t// view el admin Panel\n\t\t\t\tAdminGUI admin = new AdminGUI();\n\t\t\t\tfrmLibraryManagementSystem.remove(panel11);\n\t\t\t\tfrmLibraryManagementSystem.getContentPane().add(admin);\n\t\t\t\tfrmLibraryManagementSystem.revalidate();\n\t\t\t\tfrmLibraryManagementSystem.repaint();\n\t\t\t} else {\n\t\t\t\t// go to BookGUI panel\n\t\t\t\tBooksGUI p = new BooksGUI(m);\n\t\t\t\tfrmLibraryManagementSystem.remove(panel11);\n\t\t\t\tfrmLibraryManagementSystem.getContentPane().add(p);\n\t\t\t\tfrmLibraryManagementSystem.revalidate();\n\t\t\t\tfrmLibraryManagementSystem.repaint();\n\t\t\t}\n\t\t} else {\n\t\t\tlblLabel_Invalid.setVisible(true);\n\t\t\tpanel.revalidate();\n\t\t\tpanel.repaint();\n\t\t}\n\n\t}",
"public void actionPerformed(ActionEvent e)\r\n\t\t\t{\n\t\t\t\temailTextBox.setText(emailTextBox.getText().trim());\r\n\t\t\t\tpasswordTextBox.setText(new String(passwordTextBox.getPassword()).trim());\r\n\t\t\t\t\r\n\t\t\t\tloginButton.setEnabled(false);\r\n\t\t\t\temailTextBox.setEnabled(false);\r\n\t\t\t\tpasswordTextBox.setEnabled(false);\r\n\t\t\t\t\r\n\t\t\t\t// check the login credentials\r\n\t\t\t\tif(loginModule.login(emailTextBox.getText(), new String(passwordTextBox.getPassword())))\r\n\t\t\t\t{\r\n\t\t\t\t\t// correct credentials and authentication\r\n\t\t\t\t\terrorLabel.setVisible(false);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// load up the Room Viewer window\r\n\t\t\t\t\tif(!loginModule.getUsername().trim().equals(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// set basic properties based upon the login result\r\n\t\t\t\t\t\troomViewerUI.setAvatarBasicData(new AStarCharacterBasicData(loginModule.getUsername(), emailTextBox.getText(), loginModule.getGender(), loginModule.getContentRating(), loginModule.getCredits()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// close the login window\r\n\t\t\t\t\tloginLoadRoomViewerUI();\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// incorrect credentials\r\n\t\t\t\t\terrorLabel.setText(loginModule.getErrorMessage());\r\n\t\t\t\t\terrorLabel.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\tloginButton.setEnabled(true);\r\n\t\t\t\t\temailTextBox.setEnabled(true);\r\n\t\t\t\t\tpasswordTextBox.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}",
"public void clickOnLoginButton() {\n\t\tutil.clickOnElement(this.loginPageLocators.getLoginButtonElement());\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==login){\n\t\t\tnew Client();\n\t\t\tuser=username.getText();\n\t\t\t isLogin();\n\t\t}\n\t}",
"protected void confirmLogin() {\n String nameString1 = this.adminName.getText();\n String passwordString1 = this.adminPassword.getText();\n UserType userType = (UserType) this.user_type_combobox.getSelectedItem();\n if (\"系统管理员\".equals(userType.getName())) {\n AdminDao adminDao = new AdminDao();\n SystemAdmin admin = adminDao.selectAdmin(nameString1, passwordString1);\n if (admin == null) {\n JOptionPane.showMessageDialog(this, \"用户名或者密码错误!!\");\n return;\n }\n IndexFrame indexFrame = new IndexFrame(userType, admin, passwordString1);\n indexFrame.setVisible(true);\n this.dispose();\n }\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tif (e.getSource() == btnExit){\n\t\t\t//if exit button is pressed the program quits\n\t\t\tSystem.exit(0);\n\t\t}\n\t\telse if (e.getSource()==btnLogin){\n\t\t\t//if login button is pressed, program checks\n\t\t\t//if the username and password are valid, if \n\t\t\t//valid the creates the listMenu!\n\t\t\tif (username.getText().equals(\"campos\")&& \"dev\".equals(new String (password.getPassword()))) {\n\t\t\t\ttry {\n\t\t\t\t\tListMenu menu = new ListMenu();\n\t\t\t\t\t//catches for file and format!\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Number Format Error\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t\t\t}\n\t\t\t\t//welcome user and dispose the login menu\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Welcome \" + username.getText());\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//if username and/or password is incorrect \n\t\t\t\t//displays a message telling them its incorrect and\n\t\t\t\t//sets the text fields as empty\n\t\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\t\"Incorrect Username or Password\\nPlease Read Readme File\\n to find the admin account\");\n\t\t\t\tusername.setText(\"\");\n\t\t\t\tpassword.setText(\"\");\n\t\t\t}\n\t\t}\n\t}",
"void updateButtonLogin() {\n\t\tthis.mButtonLogin.setEnabled(this.mAuthUsername.getText().length() > 0\n\t\t\t\t&& this.mAuthPassword.getText().length() > 0);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n login_admin_username = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n Login = new java.awt.Button();\n Login1 = new java.awt.Button();\n jLabel6 = new javax.swing.JLabel();\n login_admin_password = new javax.swing.JPasswordField();\n Login2 = new java.awt.Button();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(236, 104, 16));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));\n\n login_admin_username.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n login_admin_usernameActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/gambar/icons8_Contacts_25px.png\"))); // NOI18N\n jLabel3.setText(\"Username\");\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/gambar/icons8_Lock_25px.png\"))); // NOI18N\n jLabel4.setText(\"Password\");\n\n Login.setBackground(new java.awt.Color(0, 153, 51));\n Login.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 12)); // NOI18N\n Login.setForeground(new java.awt.Color(255, 255, 255));\n Login.setLabel(\"Login\");\n Login.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n LoginActionPerformed(evt);\n }\n });\n\n Login1.setBackground(new java.awt.Color(51, 51, 255));\n Login1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 12)); // NOI18N\n Login1.setForeground(new java.awt.Color(255, 255, 255));\n Login1.setLabel(\"Login Petugas\");\n Login1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Login1ActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"LOGIN\");\n\n login_admin_password.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n login_admin_passwordActionPerformed(evt);\n }\n });\n\n Login2.setBackground(new java.awt.Color(255, 0, 0));\n Login2.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n Login2.setForeground(new java.awt.Color(255, 255, 255));\n Login2.setLabel(\"X\");\n Login2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Login2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel6))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Login, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(login_admin_username)\n .addComponent(login_admin_password, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(20, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(Login1, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Login2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jLabel6))\n .addComponent(Login2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(Login1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(login_admin_username, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(login_admin_password, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(16, 16, 16)\n .addComponent(Login, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tf.dispose();\r\n\t\t\t\tnew Login();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}",
"private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }",
"private void createLoginEvents() {\n\t\t\n\t\t//Fires after the user clicks the login button. If they typed in the wrong creds or they have been inactivated\n\t\t//they will be given a proper pop up message notifying them\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString pass = new String(passwordLogin.getPassword());\n\t\t\t\tUser u = jdbc.login(txtLoginUser.getText(), pass);\n\t\t\t\tif (u == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Incorrect Login Credentials\");\n\t\t\t\t} else if (!u.active()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your account has been inactivated. Contact your manager for help\");\n\t\t\t } else {\n\t\t\t\t\tif (u.get_usertype() == 1) {\n\t\t\t\t\t\t//They are an Admin\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneAdmin, 10);\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 0);\n\t\t\t\t\t\tlayeredPaneAdmin.setLayer(pnlAdmin, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Admin\");\n\t\t\t\t\t\tlblPortal.setText(\"Admin Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\t\t\t\t\t\t\n\t\t\t\t\t} else if (u.get_usertype() == 2) {\n\t\t\t\t\t\t//They are a Manager\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 10);\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 0);\n\t\t\t\t\t\tlayeredPaneManagerWorker.setLayer(pnlManagerWorker, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Manager\");\n\t\t\t\t\t\tlblPortal.setText(\"Manager Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//They are a Worker\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Worker\");\n\t\t\t\t\t\tlblPortal.setText(\"Worker Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcurrentSessionUserID = u.get_userID();\n\t\t\t\t\tbtnLogout.setVisible(true);\n\t\t\t\t\tlblPortal.setVisible(true);\n\t\t\t\t\tbtn_settings.setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 10);\n\t\t\t\tlayeredPane.setLayer(layeredPaneAdmin, 0);\n\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 0);\n\t\t\t\tbtnLogout.setVisible(false);\n\t\t\t\tlblPortal.setVisible(false);\n\t\t\t\tbtn_settings.setVisible(false);\n\t\t\t\ttxtLoginUser.setText(\"\");\n\t\t\t\tpasswordLogin.setText(\"\");\n\t\t\t}\n\t\t});\n\t}",
"public void actionPerformed(ActionEvent event)\r\n\t{\r\n\t\tObject trigerObject = event.getSource();\r\n\r\n\t\tif (trigerObject == this.cmdLogin || trigerObject == this.txtUsername || trigerObject == this.txtPassword)\r\n\t\t\tlogin();\r\n\t\telse\r\n\t\t\tJOptionPane.showMessageDialog(this, \"This option is temporarily unavailable.\", Application.NAME, JOptionPane.INFORMATION_MESSAGE);\r\n\t}",
"public void loginButtonAction() {\n String username = usernameTextField.getText();\n String pass = passwordField.getText();\n\n if(checkFields()){\n if(am.login(username, pass)){\n LoginDetails.currentAdmin = am.getAdmin();\n try {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n Stage stage = new Stage();\n Parent parent = FXMLLoader.load(getClass().getResource(\"/app/main/MainView.fxml\"));\n stage.setResizable(true);\n stage.setTitle(\"Admin Application\");\n stage.setScene(new Scene(parent, screenSize.getWidth() * 0.9, screenSize.getHeight() * 0.9));\n stage.show();\n\n Stage thisStage = (Stage) usernameTextField.getScene().getWindow();\n thisStage.close();\n\n stage.setOnCloseRequest(e -> {\n System.err.println(\"Main: Shutting down!\");\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n setInfoMessage(\"Wrong username and/or password\", true);\n }\n }\n else{\n setInfoMessage(\"You have to enter username/password\", true);\n }\n }",
"@FXML\r\n\tpublic void handleLoginButton() throws IOException{\r\n\t\tString username = tfUsernameLogin.getText();\r\n\t\tString password = pfPasswordLogin.getText();\r\n\t\tuserCred = theController.isValidUser(username, password);\r\n\t\tif(userCred.equals(\"manager\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(false);\r\n\t\t\tteamScreen.setDisable(false);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse if(userCred.equals(\"employee\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(true);\r\n\t\t\tteamScreen.setDisable(true);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tlbAlertLogin.setTextFill(Color.RED);\r\n\t\t\tlbAlertLogin.setText(userCred);\r\n\t\t}\r\n\t}",
"public void login(ActionEvent actionEvent) throws IOException {\n if (\"123\".equals(password.getText().toString())) {\r\n URL resource = getClass().getResource(\"../view/AdminWindow.fxml\");\r\n Parent load = FXMLLoader.load(resource);\r\n contextLog.getChildren().clear();\r\n contextLog.getChildren().add(load);\r\n }else {\r\n URL resource = getClass().getResource(\"../view/CashierWindow.fxml\");\r\n Parent load = FXMLLoader.load(resource);\r\n contextLog.getChildren().clear();\r\n contextLog.getChildren().add(load);\r\n }\r\n\r\n }",
"@Given ( \"I am logged into iTrust2 as an Admin\" )\r\n public void loginAsAdmin () {\r\n driver.get( baseUrl );\r\n final WebElement username = driver.findElement( By.name( \"username\" ) );\r\n username.clear();\r\n username.sendKeys( \"admin\" );\r\n final WebElement password = driver.findElement( By.name( \"password\" ) );\r\n password.clear();\r\n password.sendKeys( \"123456\" );\r\n final WebElement submit = driver.findElement( By.className( \"btn\" ) );\r\n submit.click();\r\n\r\n }",
"public void login(ActionEvent e) throws IOException{\n\t\tString username = Username.getText().toLowerCase();\n\t\tString password = Password.getText();\n\t\tif(username.equalsIgnoreCase(\"admin\")){\n\t\t\tif (password.equals(PhotoAlbum.admin.getPassword())) {\n\t\t\t\tsegue(\"/view/Admin.fxml\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpasswrong.setStyle(\"-fx-opacity: 1;\");\n\t\t\t\tPassword.setStyle(\"-fx-text-box-border: red; -fx-focus-color: red;\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t} \n\t\t//search through list\n\t\tfor(int i = 0; i < PhotoAlbum.admin.getUserList().size(); i++){\n\t\t\tPhotoAlbum.regular_user = (NonAdminUser) PhotoAlbum.admin.getUserList().get(i);\n\t\t\tif(PhotoAlbum.regular_user.getUsername().equals(username)){\n\t\t\t\tif(PhotoAlbum.regular_user.getPassword().equals(password)){\n\t\t\t\t\tUsername.setStyle(\"-fx-text-box-border: white; -fx-focus-color: #008ED6;\");\n\t\t\t\t\tuserwrong.setStyle(\"-fx-opacity: 0;\");\n\t\t\t\t\tPassword.setStyle(\"-fx-text-box-border: white; -fx-focus-color: #008ED6;\");\n\t\t\t\t\tpasswrong.setStyle(\"-fx-opacity: 0;\");\n\t\t\t\t\tPhotoAlbum.logged_in = (NonAdminUser) PhotoAlbum.admin.getUserList().get(i);\n\t\t\t\t\tsegue(\"/view/Albums.fxml\");\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tpasswrong.setStyle(\"-fx-opacity: 1;\");\n\t\t\t\t\tPassword.setStyle(\"-fx-text-box-border: red; -fx-focus-color: red;\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if not found\n\t\tuserwrong.setStyle(\"-fx-opacity: 1;\");\n\t\tUsername.setStyle(\"-fx-text-box-border: #e67e22; -fx-focus-color: #e67e22;\");\n\t\tPassword.setStyle(\"-fx-text-box-border: #e67e22; -fx-focus-color: #e67e22;\");\n\t}",
"public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }",
"private void loginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loginButtonActionPerformed\n uL.setVisible(true);\n boolean isLoggedInNew = uL.isLoggedIn();\n boolean isLoggedIn = na.isLoggedIn();\n if (isLoggedInNew || isLoggedIn) {\n dm.messageMustLogOut();\n uL.dispose();\n }\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tnew LibrarianLogin().setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\tlogin();\n\t\t\t}",
"protected void doAdminLogin() {\n\t\tif (et_pin.getText().toString().trim().equals(\"\")) {\r\n//\t\t\td.dialogShow(v, AdminLoginActivity.this, \"Sorry\",\r\n//\t\t\t\t\t\"Please enter your master pin\");\r\n\t\t\t\r\n\t\t\td.showSingleButtonDialog( AdminLoginActivity.this,\r\n\t\t\t\t\t\"Please enter your master pin\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\r\n\t\t\tGlobalVariable.adminMasterPin = et_pin.getText().toString().trim();\r\n\t\t\tIntent i = new Intent(AdminLoginActivity.this,\r\n\t\t\t\t\tAdminConfirmLoginActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\toverridePendingTransition(R.anim.open_translate,\r\n\t\t\t\t\tR.anim.close_translate);\r\n\r\n\t\t}\r\n\t}",
"public AdminLogin() {\n initComponents();\n }",
"private void tillbakaKnappActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tillbakaKnappActionPerformed\n avslut(false);\n new Login(mib).setVisible(true);\n //Tar användaren tillbaka till login-fönstret\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif ((JButton) e.getSource() == sbt_jbt) {\n\t\t\t\t\tString uname = u_jtf.getText().toString();\n\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\tString pwd = pwd_jtf.getText().toString();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tConnection conn = BaseDao.getConn();\n\t\t\t\t\t\tif (guanli.isSelected()) {\n\t\t\t\t\t\t\tString sql = \"select * from admin where adminName=?\";\n\t\t\t\t\t\t\tPreparedStatement stm = conn.prepareStatement(sql);\n\t\t\t\t\t\t\tstm.setString(1, uname);\n\t\t\t\t\t\t\tResultSet res = stm.executeQuery();\n\t\t\t\t\t\t\tif (res.next()) {\n\t\t\t\t\t\t\t\tif (uname.equals(res.getString(\"adminName\"))) {\n\t\t\t\t\t\t\t\t\tif (pwd.equals(res.getString(\"password\"))) {\n\t\t\t\t\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\t\t\t\t\tnew Admin_Main();\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的密码有误,请重新输入\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的账号有误,请重新输入\");\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的账号有误,请重新输入\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (duzhe.isSelected()) {\n\t\t\t\t\t\t\tString sql1 = \"select * from user_info where userid=?\";\n\t\t\t\t\t\t\tPreparedStatement stmt = conn.prepareStatement(sql1);\n\t\t\t\t\t\t\tstmt.setString(1, uname);\n\t\t\t\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\t\t\tif (uname.equals(rs.getString(\"userid\"))) {\n\t\t\t\t\t\t\t\t\tif (pwd.equals(rs.getString(\"password\"))) {\n\t\t\t\t\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\t\t\t\t\tuserid = u_jtf.getText();\n\t\t\t\t\t\t\t\t\t\tnew Reader_Main(userid);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的密码有误,请重新输入\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的账号有误,请重新输入\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的账号有误,请重新输入\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }",
"public void navLogin() {\n container.getChildren().clear();\n loginText.setText(\"Vennligst skriv inn brukernavn og passord:\");\n Label name = new Label(\"Brukernavn:\");\n Label pwd = new Label(\"Passord:\");\n TextField username = new TextField(); /* Lager tekstfelt */\n username.getStyleClass().add(\"textField\");\n PasswordField password = new PasswordField(); /* Ditto */\n password.getStyleClass().add(\"textField\");\n password.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent args) {\n handleLogin(login.checkLogin(username.getText(), password.getText()));\n }\n });\n username.getStyleClass().add(\"inpDefault\");\n password.getStyleClass().add(\"inpDefault\");\n Button logIn = new Button(\"Logg inn\"); /* Laget knapp, Logg inn */\n Button register = new Button(\"Registrer deg\"); /* Skal sende deg til en side for registrering */\n HBox buttons = new HBox();\n buttons.getChildren().addAll(logIn, register);\n container.setPadding(new Insets(15, 12, 15, 12));\n container.setSpacing(5);\n container.getChildren().addAll(loginText, name, username, pwd, password, buttons);\n register.setOnMouseClicked(event -> navRegister());\n logIn.setOnMouseClicked(event -> handleLogin(login.checkLogin(username.getText(), password.getText())));\n }",
"private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}",
"public void AdminLink(){\n\t\tAdminLink.click();\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) { // Acionado qnd aperta ENTER\n String string = \"\";\n // Fechar janela de login\n setVisible(false);\n\n String usuario = textField.getText();\n String senha = passwordField.getText();\n\n // Usuário pressionou ENTER no JTextField textField[0]\n if (e.getSource() == textField || e.getSource() == passwordField) {\n if (usuario.equals(\"Daniel\")) {\n if (senha.equals(\"Daniel21\")) {\n JOptionPane.showMessageDialog(null, \"Entrou no sistema!\", \"Usuário: \" + usuario,\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, \"Senha Incorreta!\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Usuário Inválido!\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n // mostrar janela de login\n setVisible(true);\n }",
"private void btnAdministrarActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public AdminLogInPage() {\n initComponents();\n }",
"private void loginButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_loginButtonMouseClicked\n //Make a default user object and bind the input data\n User loginUser;\n loginUser = new User(emailField.getText(), new String(passwordField.getPassword()));\n //Check hashed credentials against database\n //JEncryption encrypter = new JEncryption();\n //loginUser.setPswd(new String(encrypter.encrypt(loginUser.getPswd())));\n try\n {\n if(loginUser.login())\n {\n //If successful load the view\n //System.out.println(loginUser.toString());\n View v = new View(loginUser.getRole(), loginUser.getUserId());\n v.setVisible(true);\n this.setVisible(false);\n }\n //If not, pop out a login failed message\n else\n {\n JOptionPane.showMessageDialog(null, \"No user with that e-mail/password combination found.\");\n }\n }\n catch(DLException d)\n {\n JOptionPane.showMessageDialog(null, \"Connection Error. Please contact an administrator if the problem persists.\");\n }\n }",
"public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n pass = new javax.swing.JPasswordField();\n jLabel3 = new javax.swing.JLabel();\n user = new javax.swing.JTextField();\n combo = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login Here\");\n setBounds(new java.awt.Rectangle(0, 0, 0, 0));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 3, 12)); // NOI18N\n jLabel2.setText(\"Password\");\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 3, 12)); // NOI18N\n jLabel3.setText(\"User level\");\n\n user.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n\n combo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Admin\", \"Others\" }));\n combo.setSelectedIndex(-1);\n\n jButton1.setBackground(new java.awt.Color(0, 204, 51));\n jButton1.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 3, 12)); // NOI18N\n jLabel1.setText(\"Username\");\n\n jButton2.setBackground(new java.awt.Color(0, 204, 51));\n jButton2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"Visitor\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 204, 51));\n jLabel4.setText(\"Login in to your account here\");\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Steve/images/user4.jpg\"))); // NOI18N\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Steve/images/pass4.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(combo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pass, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addComponent(user, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(10, 10, 10))))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(user, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(pass, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n setSize(new java.awt.Dimension(446, 359));\n setLocationRelativeTo(null);\n }",
"private void onLoginButtonClicked() {\n this.loginManager = new LoginManager(this, this);\n this.password = passwordEditText.getText().toString().trim();\n this.username = usernameEditText.getText().toString().trim();\n if (username.isEmpty() || password.isEmpty()) {\n Snackbar.make(coordinatorLayout, R.string.fill_all_fields_snackbar, Snackbar.LENGTH_LONG).show();\n } else loginManager.fetchUsersToDatabase(username, password, serverName, serverPort);\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tString username = name.getText().trim();\n\t\tSystem.out.println(\"[username]\" + username);\n\t\t\n\t\tif (e.getActionCommand().equals(\"登陆\")) {\n\t\t\tString password = new String(passwordField.getPassword());\n\t\t\tSystem.out.println(\"[password]\" + password);\n\t\t\t\n\t\t\t//初始化客户端连接\n\t\t\tClient client = new Client();\n\t\t\tSystem.out.println(\"port:\" + this.port);\n\t\t\tSystem.out.println(\"ip:\" + this.ip);\n\t\t\tclient.init(this.port,this.ip,username,password,decoders,handlers,encoders);\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tif(SysVariables.channel !=null){\n\t\t\t\tLOG.info(\"登陆成功\");\n\t\t\t\tSysVariables.user = username;\n\t\t\t\tthis.setVisible(false);\n\t\t\t\tnew MenuView();\n\t\t\t}else{\n\t\t\t\tmsg = new JTextField(23);\n\t\t\t\tmsg.setBounds(110, 180, 165, 26);\n\t\t\t\tif(SysVariables.loginResult ==1){\n\t\t\t\t\tLOG.error(\"用户名或密码错误\");\n\t\t\t\t\tmsg.setText(\"用户名或密码错误\");\n\t\t\t\t\tmsg.setEditable(false);\n\t\t\t\t\tthis.add(msg);\n\t\t\t\t\tClient.shutDown();\n\t\t\t\t}else{\n\t\t\t\t\tLOG.error(\"未知错误\");\n\t\t\t\t\tmsg.setText(\"未知错误\");\n\t\t\t\t\tmsg.setEditable(false);\n\t\t\t\t\tthis.add(msg);\n\t\t\t\t\tClient.shutDown();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t} else if (e.getActionCommand().equals(\"注册账号\")) {\n\t\t\tname.setText(\"\");\n\t\t\tpasswordField.setText(\"\");\n\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tmenuPanel.setVisible(false);\n\t\t\t\tloginPanel.setVisible(true);\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand() == \"Iniciar sesión\" ){\n this.mostrarDatosUsuario();\n this.entrar();\n }\n if(e.getActionCommand() == \"Registrate\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón registrarse\" , \"Advertencia\", 1);\n }\n if(e.getActionCommand() == \"¿Olvidaste tu contraseña?\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón recuperar contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerContraseña()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerMas()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver mas\" , \"Advertencia\", 1);\n }\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tString user = userInput.getText();\r\n\t\t\t\tString password = passwordInput.getText();\r\n\t\t\t\tnew controlador.Login().checkUser(user, password);\t\r\n\t\t\t\tdispose();\r\n\t\t\t\t//if (usr.checkUserAndPass(user, password)) { \r\n\t\t\t\t//Login atras1 = new Login(); \r\n\t\t\t\t//atras1.setVisible(true); \r\n\t\t\t\t//setVisible(false); \r\n//} else { \r\n\t//JOptionPane.showMessageDialog(null, \"Usuario no reconocido\"); }\r\n\t\t\t\t//new vista.ElegirEquipo().setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}",
"public void LogoutListener()\n {\n \tLogout.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString sql = \"UPDATE admin_login SET isLogedin = '0' WHERE isLogedin = '1'\";\n\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(card, \"You have logged Out from admin \");\n\n\t\t\t\ttry {\n\t\t\t\t\t\t\tdb.ExecuteStatement(sql);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLoginName.setText(\"\");\n\t\t\t\t\t\t\tLoginLabel.setForeground(Color.red);//disable logout button on login\n\t\t\t\t\t\t\tLogout.setEnabled(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//enable login button on logout\n\t\t\t\t\t\t\tLogIn.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Reset staff id and password here\n\t\t\t\t\t\t\t UserName.setText(\"\");\n\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t\tresetPassword.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t UserName.setEnabled(true);\n\t\t\t\t\t\t\t Password.setEnabled(true);\n\t\t\t\t\t} catch (SQLException e1) {}\n\t\t\t\t\n\t\t\t}\n \t\t\n \t});\n }",
"@FXML\n\tpublic void buttonLogIn(ActionEvent event) throws IOException {\n\t\tFXMLLoader loginScreen = new FXMLLoader(getClass().getResource(\"login.fxml\"));\n\t\tloginScreen.setController(this);\n\t\tParent changeToLogin = loginScreen.load();\n\t\tmainPaneRegister.getChildren().setAll(changeToLogin);\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == buttonRegister) {\n\t\t\tthis.dispose();\n\t\t\tnew Register(userVec, db);\n\t\t\t\n\t\t}else if(e.getSource() == buttonLogin) {\n\t\t\tString name = texNama.getText();\n\t\t\tString password = String.valueOf(texPass.getPassword());\n\t\t\t\n\t\t\tif(passwordValidator(name, password) != -1) {\n\t\t\t\tJOptionPane.showMessageDialog(this, name+\" berhasil login!\");\n\t\t\t\tthis.dispose();\n\t\t\t\tnew Home(userVec, userVec.get(passwordValidator(name, password)), db);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}",
"public void actionPerformed(ActionEvent action){\n new Login().setVisible(true);\n this.setVisible(false);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (arg0.getActionCommand().equals(\"LOGIN\")) {\n\t\t\t\n\t\t\t// Verify username is valid and acquire associated password for account\n\t\t\tString username = usernameTF.getText();\n\t\t\t\n\t\t\t// Database: Check for username\n\t\t\tif (username == \"jmn7080\") {\n\t\t\t\t// Get password from database\n\t\t\t//\tcorrectPassword = getAssociatedPassword(username);\n\t\t\t\t\n\t\t\t\t// Retrieve password input by user\n\t\t\t\tchar[] input = passwordPF.getPassword();\n\t\t\t\tchar[] correctPassword = { 's', 'a', 'v', 'e', 'm', 'e'};\n\t\t\t\t\n\t\t\t\tif (isPasswordCorrect(input, correctPassword)) {\n\t\t\t\t\tJOptionPane.showMessageDialog(newUserWindow,\"Success! You typed the right password.\");\n\t\t\t\t\tloginWindow.dispose();\n\t\t\t\t\tcreateTempData();\n\t\t\t\t\tteacherPortalScreen();\n\t\t\t\t\t\n\t\t } else {\n\t\t \t\t\tJOptionPane.showMessageDialog(newUserWindow,\"Invalid password. Try again.\",\n\t\t \"Error Message\", JOptionPane.ERROR_MESSAGE);\n\t\t usernameTF.setText(\"\");\n\t\t passwordPF.setText(\"\");\n\t\t \n\t\t // Zero out the possible password, for security.\n\t\t Arrays.fill(input, '0');\n\t\t }\n\t\t\t\t\n\t\t\t\t// Zero out the possible password, for security.\n\t Arrays.fill(input, '0');\n\t \n\t passwordPF.selectAll();\n\t resetFocus();\n\t\t\t} \n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tloginTF.setText(\"\");\n\t\t\t\tpasswordTF.setText(\"\");\n\t\t\t\tmainJTabbedPane.setSelectedIndex(0);\n\t\t\t\tmainJTabbedPane.setEnabledAt(1, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(2, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(3, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(4, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(5, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(6, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(7, false);\n\t\t\t\tlogoutComponentsJPanel.setVisible(false);\n\t\t\t\tloginComponentsJPanel.setVisible(true);\n\t\t\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tloginPage = new LoginGUI();\n\t\t\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tloginPage.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\tdispose();\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(v==buttonlogin)\n\t\t\t\t{\n\t\t\t\t\tloginUser();\n\t\t\t\t}\n\t\t\t}",
"void SubmitButton() {\r\n\t\tint checker = Accounts.checkUser(username.getText(), password.getText());\r\n\t\tif(checker == -1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tAdminScreen adminScreen = new AdminScreen();\r\n\t\t}\r\n\t\telse if(checker >= 0) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tStudentScreen studentScreen = new StudentScreen(checker);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: username \"\r\n\t\t\t\t\t+ \"and/or password is incorrect.\");\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tusername.setText(\"\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tnew AdminLogin().start(new Stage());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\tprimaryStage.close();\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdatePwd_click(e);\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Admin_Screen();\n\t\t\t\tADCL.setVisible(false);\n\t\t\t}",
"public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tADCLE.Admin_DDL_Grant();\n\t\t\t\tADCL.setVisible(false);\n\t\t\t}",
"public void clickOnLogin() {\n\t\tWebElement loginBtn=driver.findElement(loginButton);\n\t\tif(loginBtn.isDisplayed())\n\t\t\tloginBtn.click();\n\t}",
"private void logInBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logInBtnActionPerformed\n User theUser = null;\n String[] options = {\"OK\"};\n String userName = userNameTF.getText();\n String password = passwordTF.getText();\n\n theUser = HF.findUser(userName);\n\n if (userNameTF.getText().equals(\"\") || passwordTF.getText().equals(\"\")){\n JOptionPane.showOptionDialog(this, \"Please fill in your username \"\n + \"and password!\",\n \"\", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n null, options, options[0] );\n }\n else if (theUser == null) {\n JOptionPane.showOptionDialog(this, \"No such username!\",\n \"\", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n null, options, options[0] );\n }\n else if (!theUser.getPassword().equals(password)) {\n JOptionPane.showOptionDialog(this, \"Invalid password!\",\n \"\", JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n null, options, options[0] );\n }\n else {\n if (theUser instanceof Trainer){\n TrainerMenu tm = new TrainerMenu(this, (Trainer)theUser);\n tm.setVisible(true);\n this.setVisible(false);\n }\n else if (theUser instanceof Member){\n MemberMenu mm = new MemberMenu(this, (Member)theUser);\n mm.setVisible(true);\n this.setVisible(false);\n }\n userNameTF.setText(\"\");\n passwordTF.setText(\"\");\n }\n }",
"public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }",
"@FXML\n\tpublic void buttonSignUpAdministrator(ActionEvent event) throws IOException {\n\t\tFXMLLoader addUserfxml = new FXMLLoader(getClass().getResource(\"Add-User.fxml\"));\n\t\taddUserfxml.setController(this);\n\t\tParent addUser = addUserfxml.load();\n\t\tmainPaneLogin.getChildren().setAll(addUser);\n\n\t\ttxtUserUsername.setText(\"ADMINISTRATOR\");\n\t\ttxtUserUsername.setEditable(false);\n\t}"
] |
[
"0.774858",
"0.7668827",
"0.7639927",
"0.76193154",
"0.759632",
"0.751812",
"0.749509",
"0.7471926",
"0.73695844",
"0.7307717",
"0.73026043",
"0.7236108",
"0.72294456",
"0.7221028",
"0.7195049",
"0.71651393",
"0.71574837",
"0.71315634",
"0.71068126",
"0.7083196",
"0.707626",
"0.7018141",
"0.70177734",
"0.69862425",
"0.697583",
"0.69660914",
"0.6941054",
"0.69374293",
"0.69009686",
"0.6894594",
"0.6894351",
"0.68925744",
"0.68898106",
"0.6867943",
"0.6844617",
"0.6839656",
"0.68326294",
"0.6818278",
"0.6797828",
"0.6795915",
"0.6782019",
"0.6754674",
"0.67100316",
"0.6679325",
"0.66750747",
"0.6674426",
"0.66738164",
"0.6673052",
"0.6661851",
"0.6615203",
"0.6601495",
"0.6593834",
"0.6591298",
"0.6588088",
"0.65614295",
"0.65607834",
"0.6548058",
"0.6547541",
"0.65425336",
"0.6540036",
"0.65343845",
"0.65342915",
"0.6531305",
"0.65274715",
"0.65152633",
"0.6500754",
"0.64965683",
"0.6492209",
"0.6489949",
"0.64868945",
"0.6480259",
"0.6475566",
"0.64707756",
"0.64688176",
"0.64659315",
"0.6459967",
"0.64543885",
"0.64431685",
"0.6443065",
"0.6440857",
"0.6432654",
"0.6425805",
"0.64256036",
"0.64164835",
"0.6407712",
"0.6407253",
"0.64059156",
"0.6399253",
"0.63972324",
"0.6390951",
"0.6389655",
"0.6383008",
"0.6381489",
"0.6379206",
"0.63655317",
"0.6364293",
"0.63642716",
"0.6363761",
"0.6362115",
"0.6352485"
] |
0.659242
|
52
|
ActionListener for "Clear" button
|
@Override
public void actionPerformed(ActionEvent e) {
tf_user.setText("");
tf_password.setText("");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tthis.jmf.btnClear_actionPerformed(e);\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclear();\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n clear();\n\n }",
"private void clearButtonActionPerformed(ActionEvent evt) {\r\n\t\tlogger.info(\"Clear button Clicked.\");\r\n\t\tinputTextField.setText(\"\");\r\n\t\toutputScoreTextArea.setText(\"\");\r\n\t}",
"protected void ACTION_ON_CLEAR(ActionEvent arg0) {\n\t\ttextArea_1.setText(\"\");\r\n\t}",
"private void btnclearActionPerformed(java.awt.event.ActionEvent evt) {\n try\n {\n clearForm();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"private void clearButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearButtonActionPerformed\n textArea.setText(null);\n }",
"public void actionPerformed(ActionEvent ev){\r\n\t\t\t//clear out the card list and clear out the text area\r\n\t\t\t\r\n\t\t\tcardList.clear();\r\n\t\t\tclearCard();\r\n\t\t}",
"public void clearButton(ActionEvent event) {\n\t\t//Sets the fields to blank\n\t\tnameField.setText(\"\");\n\t\tdescriptionField.setText(\"\");\n\t\t\n\t\t//Clears the selected values on the drop downs\n\t\tmakeDropDowns();\n\n\t\t//Removes all checks in the check boxes\n\t\tmondayCheck.setSelected(false);\n\t\ttuesdayCheck.setSelected(false);\n\t\twednesdayCheck.setSelected(false);\n\t\tthursdayCheck.setSelected(false);\n\t\tfridayCheck.setSelected(false);\n\t\tsaturdayCheck.setSelected(false);\n\t\tsundayCheck.setSelected(false);\n\t}",
"public void clearButtonClick (ActionEvent e) {\r\n\t\tSearchDate1.setText(\"\");\r\n\t\tSearchDate2.setText(\"\");\r\n\t\tLat1.setText(\"\");\r\n\t\tLat2.setText(\"\");\r\n\t\tLon1.setText(\"\");\r\n\t\tLon2.setText(\"\");\r\n\t\tDepth1.setText(\"\");\r\n\t\tDepth2.setText(\"\");\r\n\t\tMag1.setText(\"\");\r\n\t\tMag2.setText(\"\");\r\n\t\tMagType.setText(\"\");\r\n\t\tPlace.setText(\"\");\r\n\t\tStatus.setText(\"\");\r\n\t\tReportArea.setText(\"\");\r\n\t\tquakes.clear();\r\n\t\treportList.clear();\r\n\t}",
"private void actionClear() {\n\t\tclearing = true;\n\t\ttableModel.clearDownload(table.getSelectedRow());\n\t\tclearing = false;\n\t\tselectedDownload = null;\n\t\tupdateButtons();\n\t}",
"private void clearBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMousePressed\n clearBtn.setBackground(Color.decode(\"#1e5837\"));\n }",
"private void addClearButton() {\n\t\t// make the \"clear\" button\n\t\tclearButton = new JButton(\"Clear\");\n\t\tadd (clearButton, SOUTH);\n\t\tclearButton.addActionListener(this);\n\t}",
"private void jButton_ClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ClearActionPerformed\n //Clear all user entered inputs from the grid.\n myTable.clear(START_EDITABLE_ROW, END_EDITABLE_ROW, START_EDITABLE_COL, END_EDITABLE_COL);\n }",
"private void btClearActionPerformed(java.awt.event.ActionEvent evt) {\n if(tbphieuphat.isEnabled())\n txMaPM.setText(\"\");\n /*if(EditOrSearch==0){\n tf.setText(\"\");\n txSoLuongMax.setText(\"\");\n txDonGiaMax.setText(\"\");\n }*/\n txMaPM.setText(\"\");\n txTongTien.setText(\"\");\n }",
"private void btnClearActionPerformed(java.awt.event.ActionEvent evt) {\n txtSentence.setText(\"\");\n Result.setText(\"\");\n Vowel.setSelected(false);\n Notvowel.setSelected(false);\n V3.setSelected(false);\n }",
"public void ClearActionPerformed(java.awt.event.ActionEvent evt) {\n drawingPanel.setPath(\"null\"); \r\n }",
"private void clearBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n modelTxt.setText(\"\");\n catCombo.setSelectedIndex(0);\n rentTxt.setText(\"\");\n }",
"private void clearBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseClicked\n clearFields();\n //by Default hide Update button\n deleteBtn.setVisible(false);\n\n }",
"private void clearValue(Event e)\n\t{\n\t\tif (e.getSource() == btnClear) \n\t\t{\n\t\t tfNum1.setText(\"\");\n\t\t tfNum2.setText(\"\");\n\t\t FinalAnswer.setText(\"\");\n\t\t FileMenu.setValue(\"\");\n\t\t tfNum1.requestFocus();\n\t\t return;\n\t\t}\n\t}",
"private void butClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butClearActionPerformed\n radDum.setSelected(true);\n radDum2.setSelected(true);\n tfBookID.setText(\"\");\n tfBorrowerID.setText(\"\");\n tfDate.setText(\"\");\n scrollPane.setViewportView(null);\n }",
"public void actionPerformed(ActionEvent event) {\n\t\t\tcardList.clear();\n\t\t\tclearCard();\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtNombre.setText(\"\");\n\t\t\t\ttxtSueldo.setText(\"\");\n\t\t\t}",
"private void clearAction(final int row, final int col){\n\t\tclearButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfor(int i = 0; i < row; i++) \n\t\t\t\t\tfor(int j = 0;j < col; j++)\n\t\t\t\t\t\tbutton[i][j].setBackground(Color.blue);\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextField_1.setText(\"\");\r\n\t\t\t\ttextField.setText(\"\");\r\n\t\t\t}",
"private void btn_clearitemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_clearitemActionPerformed\n //Code to remove only item detailsdsfsdf\n txt_iniId.setText(\"\");\n cbo_iniName.setSelectedItem(0);\n txt_inQty.setText(\"\");\n }",
"void clearButton_actionPerformed(ActionEvent e) {\n clearPlot(true);\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tchatArea.setText(\"\");\n\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n int n = JOptionPane.showConfirmDialog(null, \"Are you sure to clear the IDS and logs?\"\n , \"Confirmation\", JOptionPane.YES_NO_OPTION);\n if (n == 0) {\n tagIdInsertTextBox.setText(\"\");\n jTextAreaTweets.setText(\"\");\n tweetInsertTextBox.setText(\"\");\n jTextAreaId.setText(\"\");\n tweetLog.setText(\"\");\n tweetList.clear();\n tagIDList.clear();\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\ttextArea.getDocument().remove(0,\n\t\t\t\t\t\t\ttextArea.getDocument().getLength());\n\t\t\t\t\tstandardOut.println(\"Text area cleared\");\n\t\t\t\t} catch (BadLocationException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"private void btn_clearAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_clearAllActionPerformed\n \n //Code to remove all selected items \n txt_inDate.setDate(null);\n txt_iniId.setText(\"\");\n cbo_iniName.setSelectedItem(0);\n txt_inQty.setText(\"\");\n }",
"private void clearBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseReleased\n clearBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent ae){\n\t\treset();\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n int n = JOptionPane.showConfirmDialog(null,\n \"Are you sure to clear Accounts?\",\n \"Confirmation\",\n JOptionPane.YES_NO_OPTION);\n if (n == 0) {\n accountDispName.setText(\"\");\n statusDisplay.setText(\"\");\n accountDispName.setVisible(false);\n statusDisplay.setVisible(false);\n accounts.clear();\n nAccounts = 0;\n }\n }",
"public void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\tx1 = 200; y1 = 200;\n\t\t\tif (e.getActionCommand()==\"\") {\n\t\t\t\tJButton j = (JButton)e.getSource();\n\t\t\t\tgr.setColor(j.getBackground());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tzhiling = e.getActionCommand();\n\t\t\t\tif(\"清除\".equals(zhiling)) {\n\t\t\t\t\t//System.out.println(\"这里是button的清除\");\n\t\t\t\t\tindex = 0;\n\t\t\t\t//\tp.set_len(len);\n\t\t\t\t\tjp.repaint();\n\t\t\t\t\tx4 = 0;\n\t\t\t\t\ty4 = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@FXML\n\tprivate void onClearClicked(){\n\t\ttextArea.clear();\n\t}",
"private void clearBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseEntered\n clearBtn.setBackground(Color.decode(\"#339966\"));\n }",
"private void clearJButtonActionPerformed(ActionEvent event) {\n securityCodeJPasswordField.setText(\"\");\n\n }",
"public void buttonClear(View v) {\n expression = \"\";\n\n TextView expressionText = (TextView) findViewById(R.id.expressionText);\n expressionText.setText(expression);\n\n EditText calculatorInput = (EditText) findViewById(R.id.calculatorInput);\n calculatorInput.setText(\"\");\n }",
"private void getClearButtonSemantics() {\n //TODO implement method\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getResultsTextArea().setText(\"\");\n searchView.getSearchValueTextField().requestFocus();\n }",
"private void clearJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearJMenuItemActionPerformed\n //reset arrayLists\n namesArray = new ArrayList<>();\n tempArray = new ArrayList<>();\n edgeArray = new ArrayList<>();\n graph = null;\n \n loadJList();\n timePassed = 0;\n //reset displayed values\n \n pathJTextArea.setText(\"\");\n costJTextField.setText(\"\");\n timeJTextField.setText(\"\");\n bruteForceJRadioButton.setSelected(true);\n checkEnabled();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\r\n\t\t\t\tdateClear1(DeviceNum1);\r\n\r\n\t\t\t}",
"public void clearBtn(View view){\n formula.editText(\"$$ $$\", 3);\r\n //formula.cursPosition = 3;\r\n refresh();\r\n\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tROOM.setSelectedItem(\"\");\n\t\t\t\ttxtrent.setText(\"\");\n\t\t\t\ttxtSeat.setText(\"\");\n\t\t\t\tgrp.clearSelection();\n\t\t\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnamefield.setText(\"\");\n\t\t\t\tIdfield.setText(\"\");\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\tclear_mousePressed();\n\t\t}",
"private void clearJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearJMenuItemActionPerformed\n // TODO add your handling code here:\n listModel.clear();\n printJMenuItem.setEnabled(false);\n }",
"@Override\n public void handle(ActionEvent t) {\n c1.setText(\"\");\n c2.setText(\"\");\n }",
"private void onClickReset(ActionEvent e) {\n\n }",
"private void jButtonClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearActionPerformed\n // TODO add your handling code here:\n jTextFieldActivityType.setText(\"\");\n jDateChooserStart.setDate(null);\n jDateChooserEnd.setDate(null);\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\treplaceSelection(\"\");\n\t\t}",
"private void toClear()\n {\n tfPaintId.setText(\"\");\n tfName.setText(\"\");\n tfPrice.setText(\"\");\n tfColor.setText(\"\");\n rwCombo.setSelectedIndex(0);\n bCombo.setSelectedIndex(0);\n typeCombo.setSelectedIndex(0);\n tfQuantity.setText(\"\");\n bg.clearSelection();\n \n }",
"public JButton getClearBox() {\n\t\treturn clearBox;\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == resetButton)\n reset();\n }",
"public void ClearAllThings(ActionEvent actionEvent) {\n questionName.clear();\n question.clear();\n subjects.setValue(0);\n className.setValue(0);\n answer.clear();\n points.clear();\n hint.clear();\n easy.setSelected(false);\n medium.setSelected(false);\n hard.setSelected(false);\n }",
"private void fixClearFieldsButtonListener() {\n\t\tclearButton.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tclearFields();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}",
"void clearActions();",
"public void clear() {\n lb.setText(\"\");\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n removeAll();\n switch (in) {\n case 1:\n initial();\n button.setToolTipText(\"To main menu\");\n break;\n case 2:\n settings();\n button.setToolTipText(\"To settings\");\n break;\n default:\n highScores();\n button.setToolTipText(\"To high scores\");\n break;\n }\n revalidate();\n repaint();\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\tinstr.setText(\"Previous content is removed.\");\r\n\t\t\tcanvas.arr = new int[8];\r\n\t\t\tcanvas.annotations.clear();\r\n\t\t\tcanvas.repaint();\r\n\t\t}",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tif(e.getSource() == btnClear)\n\t\t{\n\n\t\t\t// disable the checkout button --- everything needs to be cleared\n\t\t\tbtnCheckOut.setEnabled(false);\n\t\t\t\n\t\t\t// clear the radioButton for the size of the pizza\n\t\t\tsize.clearSelection();\n\t\t\t\n\t // clear the checkBox for the toppings\n\t\t\t// clear the checkBox for mushroom\n\t\t\trbMushroom.setSelected(false);\n\t\t\t// clear the checkBox for green pepper\n\t\t rbGreenPepper.setSelected(false);\n\t\t\t// clear the checkBox for onion\n\t\t\trbOnion.setSelected(false);\n\t\t\t// clear the checkBox for hot pepper\n\t\t\trbHotPepper.setSelected(false);\n\t\t\t// clear the checkBox for pepperoni\n\t\t\trbPepperoni.setSelected(false);\n\t\t\t// clear the checkBox for bacon\n\t\t\trbBacon.setSelected(false);\n\t\t\t// clear the checkBox for tomato\n\t\t\trbTomatoes.setSelected(false);\n\t\t\t// clear the checkBox for extra cheese\n\t\t\trbExtraCheese.setSelected(false);\n\t\t\t\n\t //clear the comboBox for the beverages\n\t\t\t// set the coke comboBox to the default\n\t\t\tcboCoke.setSelectedIndex(0);\n\t\t\t// set the sprite comboBox to the default\n\t\t\tcboSprite.setSelectedIndex(0);\n\t\t\t// set the orange comboBox to the default\n\t\t\tcboOrange.setSelectedIndex(0);\n\t\t\t// set the root beer comboBox to the default\n\t\t\tcboBeer.setSelectedIndex(0);\n\t\t\t\n\t // clear the labels to show the price \n\t\t\t// set the price for the size to zero\n\t\t\tlbSizePrice.setText(\"$0.00\");\n\t\t\t// set the price for the topping to zero\n\t\t\tlbToppingPrice.setText(\"$0.00\");\n\t\t\t// set the price for beverage to zero\n\t\t\tlbBeveragePrice.setText(\"$0.00\");\n\t\t\t// set the subtotal to zero\n\t\t\tlbSubtotalPrice.setText(\"$0,00\");\n\t\t\t// set the tax to zero\n\t\t\tlbHSTPrice.setText(\"$0.00\");\n\t\t\t// set the delivery fee to zero\n\t\t\tlbDeliveryFeePrice.setText(\"$0.00\");\n\t\t\t// set the grand total to zero\n\t\t\tlbGrandTotalPrice.setText(\"$0.00\");\n\t\t\t\n\t // clear the prices to zero\n\t\t\ttoppingCounter2 = 0;\n\t\t\tsizeCounter2 = 0;\n\t\t\tbeverageCounter = 0;\n\t\t\ttoppingCounter =0;\n\t\t\t\n\t // clear the selected toppings to nothing\n\t\t\t// remove the mushroom topping in the checkout\n\t\t\tmushroom =\"\";\n\t\t\t// remove the pepperoni topping in the checkout\n\t\t\tpepperoni = \"\";\n\t\t\t// remove the onion topping in the checkout\n\t\t\tonion = \"\";\n\t\t\t// remove the greenPepers topping in the checkout\n\t\t\tgreenPeppers = \"\";\n\t\t\t// remove the hotPeppers topping in the checkout\n\t\t\thotPeppers = \"\";\n\t\t\t// remove the bacon topping in the checkout\n\t\t\tbacon = \"\";\n\t\t\t// remove the tomato topping in the checkout\n\t\t\ttomato = \"\";\n\t\t\t// remove the cheese topping in the checkout\n\t\t\tcheese = \"\";\n\t\t\t// reset the color of the background for delivery fee to white --- showing that it is not free\n\t\t\tlbDeliveryFeePrice.setBackground(Color.WHITE);\n\t\t\t \t\t}\n\t}",
"public void addClearDataListener(ActionListener actionListener) {\r\n jClearData.addActionListener(actionListener);\r\n }",
"@FXML void clearBT_handler(ActionEvent e) {\n\t\tuserNameTF.clear();\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\tCleanScr();\n\t\t}",
"private void clear()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t\t((JTextField)c).setText(\"\");\n\t\t}\n\t\t\n\t}",
"void btnClearPlanning();",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tupdateHistoryButtonText(\"\"); \n\t}",
"@Override\r\n public void actionPerformed(ActionEvent ae) {\n taReceive.setText(\"\");\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n textField1.setText(\"\");\n textField3.setText(\"\");\n }",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"public void clearPressed() {\n PresentationCtrl.getInstance().clearHistory();\n refreshPressed();\n }",
"public void ClearAdd(){\n \n PID.setText(\"\");\n MN.setText(\"\");\n PN.setText(\"\");\n price.setText(\"\");\n category.setSelectedIndex(0);\n buttonGroup1.clearSelection();\n }",
"public void onClearGridButtonClick()\n {\n // CODE MISSING !\n // Should call ensureEmpty for every location in the grid.\n\n // Create a warning dialog box (JOptionPane).\n JOptionPane.showMessageDialog(null,\n \"The method for clearing the grid \" +\n \"has not been fully implemented yet.\",\n \"Under Development\",\n JOptionPane.WARNING_MESSAGE);\n\n // Display the grid after it has been completely cleared.\n display.showGrid();\n }",
"public void ClearSearch(){\n \n SearchTF.setText(\"\");\n jComboBox1.setSelectedIndex(0);\n }",
"private JButton getClearButton() {\n\t\tif (ClearButton == null) {\n\t\t\tClearButton = new JButton();\n\t\t\tClearButton.setBounds(new Rectangle(240, 230, 80, 25));\n\t\t\tClearButton.setText(\"Clear\");\n\t\t\tClearButton.addActionListener(new ActionListener () {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tNameTextField.setText(\"\");\n\t\t\t\t\tPasswordField.setText(\"\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn ClearButton;\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjtf1.setText(\"\");\n\t\t\t\tjpsf.setText(\"\");\n\t\t\t}",
"public void clear()\n\t\t{\n\t\t\ttxtCustomerName.setText(\"\");\n\t\t\ttxtAddress.setText(\"\");\n\t\t\ttxtContact.setText(\"\");\n\t\t\ttxtProduct.setText(\"\");\n\t\t\ttxtSerialNo.setText(\"\");\n\t\t\ttxtModuleNo.setText(\"\");\n\t\t\ttxtComplaintNo.setText(\"\");\n\t\t\tCategorycomboBox.setSelectedItem(\"Sent\");\n\t\t}",
"public void clear()\n{\n\ttextArea().setText(\"\");\n}",
"void onItemClear();",
"void onItemClear();",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"public void onClickClear(View view) {\n textView.setText(\" \");\n }",
"@FXML private void doClear(ActionEvent event) {\t\n if(model.curInvoice != null) {\n\t\t\tmodel.print();\n\t\t} else {\n\t\t\tmodel.clear();\n\t\t}\n\t}",
"private void jbtn_resetActionPerformed(ActionEvent evt) {\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t}",
"void clear() ;",
"private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tsendmes(e.getActionCommand());\r\n\t\t\t\t\t\tusertext.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@FXML\n\tprivate void fieldSelectedAction(MouseEvent clickEvent) {\t\t\n\t\t\n\t\t((TextField)clickEvent.getSource()).clear();\n\t}",
"public Builder clearAction() {\n \n action_ = getDefaultInstance().getAction();\n onChanged();\n return this;\n }",
"public void actionPerformed(ActionEvent e)\r\n {\r\n out.println(textField.getText());\r\n textField.setText(\"\");\r\n }",
"public void removeClearDataListener(ActionListener actionListener) {\r\n jClearData.removeActionListener(actionListener);\r\n }",
"void onClearAllParametersButtonClick();",
"@Override\n\tpublic void clear() {\n\n\t\tDisplay.findDisplay(uiThread).syncExec(new Runnable() {\n\n\t\t\tpublic void run() {\n\t\t\t\tclearInputs();\n\t\t\t\tsetDefaultValues();\n\t\t\t}\n\t\t});\n\n\t}",
"@FXML\n void clearEntireListClicked(ActionEvent event)\n {\n Item.getToDoList().clear();\n\n // Clear the table view\n listView.getItems().clear();\n\n // Reset the index to 0 and clear\n index = 0;\n clear();\n\n }",
"public void clear() throws ChangeVetoException;",
"@Override\n public void actionPerformed(ActionEvent e) {\n rawMatInput.setText(\"\");\n model.resetRows();\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnReset_actionPerformed(e);\r\n\t}",
"public void actionPerformed(ActionEvent event) {\n sendData(event.getActionCommand());\n enterField.setText(\"\");\n }",
"@Override\n\tpublic void clearForm() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t//if accumulate, clear accumulator stuff\n\t\tif(modeButtonGroup.getSelection() == AccumulatingModeButton.getModel()){\n\t\t\tamountTextField.setText(\"\");//set to blank on GUI\n\t\t\ttotalTextField.setText(\"\"); //blank (better than \"0\", which could be a total value.)\n\t\t\ttotal = 0;\n\t\t\tamountTextField.requestFocus(); // set cursor in.\n\t\t}\n\t\t\n\t\t//if expression clear expression stuff\n\t\tif(modeButtonGroup.getSelection() == ExpressionModeButton.getModel()){\n\t\t\texpTextField.setText(\"\");//set to blank on GUI\n\t\t\tforxTextField.setText(\"\");//blank\n\t\t\tresultTextField.setText(\"\"); //blank (better than \"0\", which could be a total value.)\n\t\t\texpTextField.requestFocus(); // set cursor in.\n\t\t}\n\t\t\t\n\t\t//reset error field\n\t\terrorTextField.setText(\"\");\n\t\terrorTextField.setBackground(Color.white);\n\t\t\t\n\t\treturn;\n\n\t}",
"public void getClearButtonSemantics() {\r\n JTextField bodyTextField = addTweet.getBodyTextField();\r\n bodyTextField.setText(\"\");\r\n bodyTextField.requestFocus();\r\n }"
] |
[
"0.85959405",
"0.8369548",
"0.8355475",
"0.80318326",
"0.7619721",
"0.7439028",
"0.7395974",
"0.7374595",
"0.7365141",
"0.7335502",
"0.7222435",
"0.72036695",
"0.7116961",
"0.7111291",
"0.7092522",
"0.70788854",
"0.7047882",
"0.70453554",
"0.7042965",
"0.703819",
"0.7036622",
"0.7004578",
"0.69422865",
"0.6913148",
"0.68963736",
"0.68930686",
"0.68877465",
"0.6863599",
"0.6853758",
"0.68504673",
"0.68303835",
"0.68164694",
"0.681451",
"0.68016315",
"0.67834747",
"0.67813003",
"0.6765996",
"0.6763878",
"0.6749418",
"0.67279667",
"0.6724243",
"0.67160344",
"0.67132485",
"0.6704306",
"0.67022413",
"0.6683692",
"0.6683362",
"0.66673785",
"0.6637635",
"0.6624705",
"0.6613466",
"0.66115665",
"0.66085696",
"0.66081536",
"0.66072035",
"0.6595935",
"0.65783244",
"0.6549523",
"0.6549463",
"0.6548459",
"0.6536812",
"0.6531542",
"0.65225816",
"0.6520146",
"0.6520053",
"0.6516464",
"0.6514835",
"0.64957184",
"0.64953053",
"0.6490447",
"0.6483424",
"0.6472488",
"0.6470828",
"0.6468741",
"0.6467653",
"0.64599776",
"0.6437025",
"0.6430459",
"0.64304054",
"0.64304054",
"0.64163375",
"0.6410568",
"0.64092445",
"0.6390107",
"0.6388815",
"0.63757414",
"0.6373504",
"0.63553673",
"0.63521713",
"0.63482004",
"0.63423723",
"0.6340336",
"0.633371",
"0.63308257",
"0.6323471",
"0.63200843",
"0.63060004",
"0.6305382",
"0.63048047",
"0.63011485",
"0.6287891"
] |
0.0
|
-1
|
Scrolls to the next solution.
|
public void nextSolution() {
solutionIndex++;
if (solutionIndex == solutions.size()) {
newSolution(solutions.get(solutionIndex-1));
} else {
createObjectDiagram(solutions.get(solutionIndex));
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }",
"void scroll(int scrollTop);",
"@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\tClients.scrollIntoView(items[items.length - 1]); //last item is /WEB-INF\n\t}",
"private void scrollToPosition() {\n String name;\n String description;\n for (Item item : itemList) {\n name = item.getName().toLowerCase();\n description = item.getDescription().toLowerCase();\n if (name.contains(searchQuery) || description.contains(searchQuery)){\n layoutManager.scrollToPositionWithOffset(item.getId(), 0);\n break;\n }\n }\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"public void useScrolling() {\n\t\t((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\n\t\t\n\t\t((JavascriptExecutor)driver).executeScript(\"window.scrollBy(0, 1200)\");\n\t\t// document.getElementsByClassName(\" \");\n\t\t// document.getElementsById(\" \");\n\t\t\n\t}",
"public void goToNextPage() {\n nextPageButton.click();\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void scrollTo(Word word) {\n\t\ttry {\n\t\t\tif (!markedElements.contains(word)) {\n\t\t\t\tdesign(word, true);\n\t\t\t\tmarkedElements.add(word);\n\t\t\t}\n\t\t\teditor.setCaretPosition(word.getStartPosition() + 1);\n\t\t\tif (Model.getViewer() != null)\n\t\t\t\tModel.getViewer().setRoot(\n\t\t\t\t\t\tModel.getIllocutionUnitRoots().getRoot(word));\n\t\t} catch (Exception e) {\n\t\t\t// e.printStackTrace();\n\t\t}\n\t}",
"public void scrollEverything()\n { \n tempPlatforms = (ArrayList)getObjects(Platform.class);\n for (Object o : tempPlatforms)\n {\n Platform p = (Platform)o;\n p.scroll();\n }\n tempBreakingPlatforms = (ArrayList)getObjects(BreakingPlatforms.class);\n for (Object o : tempBreakingPlatforms)\n {\n BreakingPlatforms bp = (BreakingPlatforms)o;\n bp.scroll();\n }\n tempSprings = (ArrayList)getObjects(Spring.class);\n for (Object o : tempSprings)\n {\n Spring s = (Spring)o;\n s.scroll();\n }\n tempJetpack = (ArrayList)getObjects(Jetpack.class);\n for (Object o : tempJetpack)\n {\n Jetpack j = (Jetpack)o;\n j.scroll();\n }\n tempEnemy = (ArrayList)getObjects(Enemy.class);\n for (Object o : tempEnemy)\n {\n Enemy e = (Enemy)o;\n e.scroll();\n }\n player.scroll();\n }",
"public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"public void nextSlide() {\r\n\t\tpresentation.nextSlide();\r\n\t}",
"public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}",
"@FXML\n private void handleFilteredListPanelScrollDown() {\n filteredTaskListPanel.scrollToNext();\n }",
"private void nextQuestion() {\n mCurrentIndex = (mCurrentIndex + 1) % questions.length;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }",
"public abstract void scroll(long ms);",
"public void autoscroll(Point p) {\r\n \t\tBasicGraphUI.autoscroll(graph, p);\r\n \t}",
"public abstract boolean scroll(Direction direction);",
"public void scrollDownThePageToFindTheEnrollNowButton() {\n By element =By.xpath(\"//a[@class='btn btn-default enroll']\");\n\t scrollIntoView(element);\n\t _normalWait(3000);\n }",
"private void sendScroll() {\n\t\tfinal Handler handler = new Handler();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (mTopIndex <= mFinalIndex) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmTopIndex += 0.1;\n\t\t\t\t\t\t\tscrollView.scrollBy(0, (int) mTopIndex);\n\t\t\t\t\t\t\tif (mTopIndex >= mFinalIndex) {\n\t\t\t\t\t\t\t\tmTopIndex = 0;\n\t\t\t\t\t\t\t\tscrollView.fullScroll(ScrollView.FOCUS_UP);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Check if scroll completed or not\n\t\t\t\t\t\t\tif (mFirstScroll && (mPrevY == scrollView.getScrollY())) {\n\t\t\t\t\t\t\t\tmFinalIndex = mTopIndex + 5;\n\t\t\t\t\t\t\t\tmFirstScroll = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmPrevY = scrollView.getScrollY();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}",
"void scrollToFinishActivity();",
"private void nextStep(){\n if(vMaze == null)\n mainMessage.setText(\"You must load a maze first!\");\n else try{\n vMaze.step();\n tileBox.getChildren().clear();\n tileBox.getChildren().add(vMaze.getTiles());\n\n mainMessage.setText(\"You took one step.\");\n if(vMaze.getRouteFinder().isFinished())\n mainMessage.setText(\"You reached the end!\");\n } catch (NoRouteFoundException e){\n mainMessage.setText(e.getMessage());\n }\n }",
"public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}",
"private static void scrollToElement(JEditorPane editorPane, HTMLDocument.Iterator elementIterator) {\n\t\ttry {\n\t\t\tRectangle rectangle = editorPane.modelToView(elementIterator.getStartOffset());\n\t\t\tif (rectangle == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// the view is visible, scroll it to the\n\t\t\t// center of the current visible area.\n\t\t\tRectangle visibleRectangle = editorPane.getVisibleRect();\n\t\t\t// r.y -= (vis.height / 2);\n\t\t\trectangle.height = visibleRectangle.height;\n\t\t\teditorPane.scrollRectToVisible(rectangle);\n\t\t} catch (BadLocationException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t}",
"public void next() {\n Solver<ArrayList<Integer>> mySolver =\n new Solver<ArrayList<Integer>>();\n ArrayList<ArrayList<Integer>> Solution =\n mySolver.SolveBFS(this);\n\n //Reset 'tried' to none\n tried = new HashSet<ArrayList<Integer>>();\n\n //Set up the nextState\n ArrayList<Integer> nextState = new ArrayList<Integer>();\n\n if(Solution.size() == 0) {\n //No Solution\n } else if (Solution.size() == 1) {\n nextState = Solution.get(0);\n curBoard = nextState;\n } else {\n nextState = Solution.get(1);\n curBoard = nextState;\n moveCount++;\n }\n clearStack();\n\n\tsetChanged();\n\tnotifyObservers();\n }",
"public void nextSlide() {\n\t\tif (currentSlideNumber < (showList.size()-1)) {\n\t\t\tsetSlideNumber(currentSlideNumber + 1);\n\t\t}\n\t}",
"public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}",
"public void scrollTo(int index) {\n\n this.getWrappedControl().scrollTo(index);\n }",
"public void scrollTo(String targetId) {\n clientRpc.scrollTo(targetId);\n }",
"private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }",
"public void scrollDownEvent() throws InterruptedException {\n String currentDoc = \"\";\n do {\n currentDoc = driver.getPageSource();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n jse.executeScript(\"window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight));\");\n Thread.sleep(4000);\n } while (!currentDoc.equals(driver.getPageSource()));\n System.out.println(\"We are in the end of the page\");\n }",
"private void findNext() {\n \tthis.find(true);\n }",
"@FXML\n private void handleMainListPanelScrollToLast() {\n mainTaskListPanel.scrollToLast();\n }",
"public void solve() {\n // TODO\n // This function should use next. You should also create and use any\n // other helper fuctions you find helpful here.\n \t// get start position \t\n \tSquare s = sea.getStart();\n \texploreList.add(s);\n \twhile(this.exploreList.size() != 0) {\n \t\tSquare c = step();\n \t\tif(c.hasNemo()) {\n \t\t\tsetPath(c);\n \t\t\tfoundNemo = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }",
"public void run() {\n if (gui.getPauseState()) {\n this.gui.scroll(true);\n }\n }",
"private void scrollTo(final View view) {\n\n new Handler().post(new Runnable() {\n @Override\n public void run() {\n scroll.smoothScrollTo(0, view.getBottom());\n }\n });\n }",
"private void find(boolean forward) {\n \tif (this.currentFindResultPage != null) {\n \t\t/* searching again */\n \t\tint nextResultNum = forward ? this.currentFindResultNumber + 1 : this.currentFindResultNumber - 1;\n \t\tif (nextResultNum >= 0 && nextResultNum < this.pagesView.getFindResults().size()) {\n \t\t\t/* no need to really find - just focus on given result and exit */\n \t\t\tthis.currentFindResultNumber = nextResultNum;\n \t\t\tthis.pagesView.scrollToFindResult(nextResultNum);\n \t\t\tthis.pagesView.invalidate();\n \t\t\treturn;\n \t\t}\n \t}\n\n \t/* finder handles next/prev and initial search by itself */\n \tFinder finder = new Finder(this, forward);\n \tThread finderThread = new Thread(finder);\n \tfinderThread.start();\n }",
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}",
"private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n btNext.setVisibility(View.GONE);\n currentQuestion = getQuestionById(questionProgress);\n ivScene.setVisibility(View.GONE);\n tvQuestion.setVisibility(View.GONE);\n\n if (tvResult != null) {\n flSceneFrame.removeView(tvResult);\n }\n ivScene.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n ivScene.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n resizeSceneArea();\n for (int i = 0; i < 4; i++) {\n positionAnswer(answerButtonList.get(i), currentQuestion.getAnswers().get(i));\n waitAnimations();\n }\n }\n });\n } else {\n questionProgress = 10;\n Intent intent = new Intent(this, ResultActivity_.class);\n startActivity(intent);\n }\n }",
"@Override\n public void next(){\n balls.translate();\n majGui();\n }",
"public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}",
"@Test\n public void ScrollToView() {\n driver.scrollTo(\"Views\");\n // Click on Views.\n driver.findElement(By.name(\"Views\")).click();\n }",
"public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }",
"@Override\n public void run() {\n moveScrollDown();\n }",
"protected void scrollTo(WebElement element) {\n getSeleniumHelper().executeJavascript(\"arguments[0].scrollIntoView(true);\", element);\n if (waitAfterScroll > 0) {\n waitMilliSeconds(waitAfterScroll);\n }\n }",
"public void next() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getNextMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getNextModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }",
"public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }",
"public abstract void goNext();",
"@Test\n\tpublic void scroll_multy_fingure_tap() {\n\t}",
"public void goToSlide() {\t\t\t\t\r\n\t\tString pageNumberStr = JOptionPane.showInputDialog(\"Page number?\");\r\n\t\tint pageNumber = Integer.parseInt(pageNumberStr);\r\n\t\t\r\n\t\tgoToSlide(pageNumber);\r\n\t}",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFinalOffset = 0, heightLastRow = 0;\n for (int j = getRow(0).getIndex(); j < newIndex.intValue(); ++j) {\n heightLastRow = getRowHeight(j);\n posFinalOffset += heightLastRow;\n }\n final double fixedHeight = getFixedRowHeight();\n if (fixedHeight > posFinalOffset) {\n flow.scrollTo(newIndex.intValue());\n } else if (fixedHeight > posFinalOffset - heightLastRow) {\n flow.scrollPixels(posFinalOffset - heightLastRow - fixedHeight);\n }\n }\n }",
"public void scrollToFinishActivity() {\n if (!mEnable){\n mSwipeHelper.getActivity().finish();\n return;\n }\n final int childWidth = mContentView.getWidth();\n int left = 0, top = 0;\n left = childWidth;\n mTrackingEdge = ViewDragHelper.EDGE_LEFT;\n\n mDragHelper.smoothSlideViewTo(mContentView, left, top);\n invalidate();\n }",
"public void scrollTo(int x) {\n\t\tsynchronized(HCSListView.this) {\n\t\t\tmScroller.startScroll(mNextX, 0, x - mNextX, 0);\n\t\t\trequestLayout();\n\t\t}\n\t}",
"@FXML\n private void handleMainListPanelScrollUp() {\n mainTaskListPanel.scrollToPrevious();\n }",
"public void scrollTo(Component target) {\n if (target.getId() == null) return;\n\n boolean foundParent = false;\n Component parent = target.getParent();\n while (parent != null && !foundParent) {\n if (parent == this)\n foundParent = true;\n else\n parent = parent.getParent();\n }\n if (!foundParent) return;\n\n scrollTo(target.getId());\n }",
"public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}",
"public void previousSolution() {\r\n\t\tif (solutionIndex > 0) {\r\n\t\t\tsolutionIndex--;\r\n\t\t\tcreateObjectDiagram(solutions.get(solutionIndex));\r\n\t\t} else {\r\n\t\t\tLOG.info(LogMessages.pagingFirst);\r\n\t\t}\r\n\t}",
"public synchronized void scrollDown()\r\n\t{\r\n\t\treferenceImage.scrollDown();\r\n\t\tdisplayedImage.scrollDown();\r\n\t}",
"public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }",
"public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }",
"private void getNextWorkout(){\n mCurrentWorkout += 1;\n mCurrentData += 1;\n if (mCurrentData > 1) {\n mTxtTitle.setText(\"(\" + mCurrentWorkout + \"/\" + mWorkoutNames.size() + \") \" +\n mWorkoutNames.get(mCurrentData - 1));\n mIsPlay = true;\n mIsBreak = true;\n// int is = Integer.parseInt(mWorkoutIds.get(mCurrentData - 1));\n startTimer(mWorkoutTimes.get(mCurrentData - 1));\n }\n\n mCirclePageIndicator.setCurrentItem(mCurrentData - 1);\n }",
"public void solve() {\n System.out.println(\"Solving...\");\n solving = true;\n Solver s = new Solver(b.getBoard());\n ArrayList<Integer> solution = s.solve();\n\n System.out.println(\"Printing solution...\");\n try{\n Thread.sleep(300);\n }catch (Exception e){}\n\n solution.trimToSize();\n\n solveMoves = solution;\n\n Board bRef = new Board(b.getBoard());\n\n System.out.println(\"Step 0\");\n System.out.println(bRef.toString());\n\n for (int i = 0; i < solution.size(); i++) {\n bRef.move(solution.get(i));\n System.out.println(\"Step \" + (i + 1));\n System.out.println(bRef.toString());\n }\n\n System.out.println(\"Solved by Computer in \" + solution.size()+ \" move(s).\\n\");\n System.out.println(\"Left-click screen to follow steps.\");\n System.out.println(\"Right-click the screen to play again.\");\n\n solveStep = 0; //Reset for user\n }",
"public boolean moveNext(\n )\n {\n // Scanning the current graphics object...\n ContentObject currentObject = getCurrent();\n if(currentObject != null)\n {\n \t\n \tString cmdStr = currentObject.toString();\n \t/*\n \tif(cmdStr.contains(\"f*\") || cmdStr.contains(\"{f }\")) {\n \t\tSystem.out.println(cmdStr);\n \t}\n \t*/\n \tif(!cmdStr.contains(\"{re [36, 270, 540, 720]}, {f }\")) {\n \t\tcurrentObject.scan(state);\n \t}\n }\n\n // Moving to the next object...\n if(index < objects.size())\n {index++; refresh();}\n\n return getCurrent() != null;\n }",
"protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }",
"@Override\n public Document getNextPage(Document doc) throws IOException {\n if (isStopped()) {\n throw new IOException(\"Ripping interrupted\");\n }\n // Find next page\n Elements hrefs = doc.select(\".ptt a\");\n if (hrefs.isEmpty()) {\n LOGGER.info(\"doc: \" + doc.html());\n throw new IOException(\"No navigation links found\");\n }\n // Ensure next page is different from the current page\n String nextURL = hrefs.last().attr(\"href\");\n if (nextURL.equals(this.lastURL)) {\n LOGGER.info(\"lastURL = nextURL : \" + nextURL);\n throw new IOException(\"Reached last page of results\");\n }\n // Sleep before loading next page\n sleep(PAGE_SLEEP_TIME);\n // Load next page\n Document nextPage = getPageWithRetries(new URL(nextURL));\n this.lastURL = nextURL;\n return nextPage;\n }",
"public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }",
"public void advance() {\n if( mMatches.hasNext() ) {\n setCurrent( mMatches.next() );\n }\n }",
"public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}",
"public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }",
"public void scrollDownEvent(int timesToRepeat) throws InterruptedException {\n String currentDoc = \"\";\n for (int i = 0; i < timesToRepeat; i++) {\n currentDoc = driver.getPageSource();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n jse.executeScript(\"window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight));\");\n Thread.sleep(4000);\n }\n }",
"public void setNextQuestion(Question question) {\n curQuestion = question;\n p.setVisibility(View.GONE);\n questionText.setText(question.getText());\n questionText.scrollTo(0, 0);\n\n readableCheck.setEnabled(true);\n readableCheck.setChecked(true);\n skipBtn.setEnabled(true);\n }",
"B scrollToSelectedItem(boolean scrollToSelectedItem);",
"public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}",
"public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }",
"public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}",
"void nextPage() throws IndexOutOfBoundsException;",
"protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}",
"protected void jumpPage() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.txtjump));\n\t\tfinal SeekBar seek = new SeekBar(this);\n\t\tseek.setOnSeekBarChangeListener(this);\n\t\tseek.setMax(100);\n\t\tint p = (int) (BookPageFactory.sPercent * 100);\n\t\tseek.setProgress(p);\n\t\tbuilder.setView(seek);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tint per = seek.getProgress();\n\t\t\t\t\t\t\tif (per >= 0.0 && per <= 100.0) {\n\t\t\t\t\t\t\t\tmPagefactory.jumpPage(per);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tmPagefactory.onDraw(mCurPageCanvas);\n\t\t\t\t\t\t\t\tmPageWidget.setBitmaps(mCurPageBitmap,\n\t\t\t\t\t\t\t\t\t\tmNextPageBitmap);\n\t\t\t\t\t\t\t\tmPageWidget.startAnimation(1000);\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.successjump),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\t// @Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"private void nextSelect() {\n\t\tif (selectionIndex + 1 > selections.size() - 1) {\n\t\t\tselectionIndex = 0;\n\t\t} else {\n\t\t\tselectionIndex++;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}",
"@Test\n\t public void scrollAndClick() throws InterruptedException\n\t {\n\t\t \n\t\t productpage = new ProductPage(driver);\n\t\t productpage.clickOnSomePrompt();\n\t\t int num = productpage.numberOfItemsDisplayed();\n\t\t log.info(\"number of items\" +num);\n\t\t productdetails = productpage.clickOnLastItem();\n\t\t boolean status = productdetails.isProductDEtailsPageDisplayed();\n\t\t\tAssertionHelper.updateTestStatus(status);\n\t\t\tTestBaseRunner.result = TestBaseRunner.passOrFail(status);\n\t\t\tExcelReadWrtite.updateResult(\"testData.xlsx\", \"TestScripts\", \"scrollAndClick\", result);\n\t }",
"private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }",
"public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\nSystem.out.println(scroll(\"lalala\"));\n\t}",
"private void scrollerFinished()\n\t{\n\t\tif (!mFingerDown)\n\t\t{\n\t\t\treadjustScrollToMiddleItem();\n\t\t}\n\t\t\n\t}",
"public void scrollStart(State state);",
"@Override\n public void setNextElement(helpDesk next) {\n this.next = next;\n }",
"@Test(priority = 2)\n\tpublic void scrolling() throws InterruptedException {\n\t\tThread.sleep(800);\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"window.scrollBy(0,500)\");\n\t\tjs.executeScript(\"window.scrollBy(0,-800)\");\n\n\t}",
"public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}",
"public void run() {\n getPage(page + 1, false);\n }",
"void goToNext(boolean isCorrect);",
"public void Next(View view)\n {\n increaseNum();\n }",
"private void scrollToPosition() {\n mPhotosListView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View v,\n int left,\n int top,\n int right,\n int bottom,\n int oldLeft,\n int oldTop,\n int oldRight,\n int oldBottom) {\n mPhotosListView.removeOnLayoutChangeListener(this);\n final RecyclerView.LayoutManager layoutManager = mPhotosListView.getLayoutManager();\n View viewAtPosition = layoutManager.findViewByPosition(MainActivity.currentPosition);\n // Scroll to position if the view for the current position is null (not currently part of\n // layout manager children), or it's not completely visible.\n if (viewAtPosition == null || layoutManager\n .isViewPartiallyVisible(viewAtPosition, false, true)) {\n mPhotosListView.post(() -> layoutManager.scrollToPosition(MainActivity.currentPosition));\n }\n }\n });\n }",
"public IWizardPage getNextPage();",
"@Then(\"scroll the page\")\n\tpublic void scroll_the_page() throws InterruptedException {\n\t\tThread.sleep(5000);\n\t\tJavaScriptUtils.scrollPageDown(context.DRIVER);\n\t\tcontext.SCN.write(\"js scroll is successfully\");\n\n\t}",
"public void next() {\n addTracksToQueue();\n player.skipToNext();\n }"
] |
[
"0.6530144",
"0.6217358",
"0.6131592",
"0.6130723",
"0.6128903",
"0.59818673",
"0.5978444",
"0.5975018",
"0.59478027",
"0.5930883",
"0.5896581",
"0.58129084",
"0.58126783",
"0.58007026",
"0.57980627",
"0.5766952",
"0.575137",
"0.57458884",
"0.5724121",
"0.5723725",
"0.56921124",
"0.5680025",
"0.5654834",
"0.5644802",
"0.56429744",
"0.5639832",
"0.56370795",
"0.5635351",
"0.56289923",
"0.5589198",
"0.55827516",
"0.55749786",
"0.55628175",
"0.55588925",
"0.55444336",
"0.5533402",
"0.5530621",
"0.5524261",
"0.55239195",
"0.55172145",
"0.5514438",
"0.54984546",
"0.549003",
"0.5488545",
"0.5488082",
"0.5466692",
"0.5452888",
"0.54454935",
"0.5438857",
"0.54383206",
"0.5438151",
"0.5437593",
"0.5432053",
"0.5419592",
"0.5410149",
"0.54046696",
"0.5404438",
"0.53891593",
"0.5387808",
"0.5386002",
"0.5382898",
"0.53727925",
"0.53686434",
"0.53619856",
"0.53556234",
"0.53443485",
"0.53411895",
"0.5340252",
"0.53373563",
"0.5333334",
"0.5331659",
"0.53295386",
"0.5326393",
"0.531712",
"0.53104967",
"0.53060156",
"0.53033787",
"0.5298825",
"0.52947026",
"0.52934855",
"0.52857894",
"0.52856517",
"0.5284609",
"0.528291",
"0.5279106",
"0.52770686",
"0.52764994",
"0.5270768",
"0.52689373",
"0.5260203",
"0.5258247",
"0.52529293",
"0.5252744",
"0.52475005",
"0.524711",
"0.52434134",
"0.523968",
"0.5237938",
"0.523317",
"0.5228456"
] |
0.65040284
|
1
|
Scrolls to the previous solution.
|
public void previousSolution() {
if (solutionIndex > 0) {
solutionIndex--;
createObjectDiagram(solutions.get(solutionIndex));
} else {
LOG.info(LogMessages.pagingFirst);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"@FXML\n private void handleMainListPanelScrollUp() {\n mainTaskListPanel.scrollToPrevious();\n }",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"void scroll(int scrollTop);",
"private void previous() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n\n Timeline.Window currentWindow = currentTimeline.getWindow(currentWindowIndex, new Timeline.Window());\n if (currentWindowIndex > 0 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS\n || (currentWindow.isDynamic && !currentWindow.isSeekable))) {\n player.seekTo(currentWindowIndex - 1, C.TIME_UNSET);\n } else {\n player.seekTo(0);\n }\n }",
"public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }",
"@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\tClients.scrollIntoView(items[items.length - 1]); //last item is /WEB-INF\n\t}",
"@FXML\n private void handleFilteredListPanelScrollUp() {\n filteredTaskListPanel.scrollToPrevious();\n }",
"void previousPage() throws IndexOutOfBoundsException;",
"public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }",
"public void previous();",
"public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }",
"private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }",
"public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }",
"public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }",
"@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }",
"public synchronized void scrollDown()\r\n\t{\r\n\t\treferenceImage.scrollDown();\r\n\t\tdisplayedImage.scrollDown();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void scrollTo(Word word) {\n\t\ttry {\n\t\t\tif (!markedElements.contains(word)) {\n\t\t\t\tdesign(word, true);\n\t\t\t\tmarkedElements.add(word);\n\t\t\t}\n\t\t\teditor.setCaretPosition(word.getStartPosition() + 1);\n\t\t\tif (Model.getViewer() != null)\n\t\t\t\tModel.getViewer().setRoot(\n\t\t\t\t\t\tModel.getIllocutionUnitRoots().getRoot(word));\n\t\t} catch (Exception e) {\n\t\t\t// e.printStackTrace();\n\t\t}\n\t}",
"public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}",
"void scrollToFinishActivity();",
"private void findPrev() {\n \tthis.find(false);\n }",
"public void recallScrollPos() {\n if (_primaryPlot!=null) {\n recallScrollPos(_scrollInfo.get(_primaryPlot).makeCopy());\n }\n }",
"public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }",
"public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }",
"public void prevSlide() {\n\t\tif (currentSlideNumber > 0) {\n\t\t\tsetSlideNumber(currentSlideNumber - 1);\n\t }\n\t}",
"public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }",
"@Override\n public int previousIndex()\n {\n return idx-1;\n }",
"private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"protected void jumpPage() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.txtjump));\n\t\tfinal SeekBar seek = new SeekBar(this);\n\t\tseek.setOnSeekBarChangeListener(this);\n\t\tseek.setMax(100);\n\t\tint p = (int) (BookPageFactory.sPercent * 100);\n\t\tseek.setProgress(p);\n\t\tbuilder.setView(seek);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tint per = seek.getProgress();\n\t\t\t\t\t\t\tif (per >= 0.0 && per <= 100.0) {\n\t\t\t\t\t\t\t\tmPagefactory.jumpPage(per);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tmPagefactory.onDraw(mCurPageCanvas);\n\t\t\t\t\t\t\t\tmPageWidget.setBitmaps(mCurPageBitmap,\n\t\t\t\t\t\t\t\t\t\tmNextPageBitmap);\n\t\t\t\t\t\t\t\tmPageWidget.startAnimation(1000);\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.successjump),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\t// @Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"public ScrollToFront(IMusicModel model, IGuiView gui) {\n this.model = model;\n this.gui = gui;\n }",
"private void moveToPreviousCard() {\r\n\t\t// This is simple enough: Move the card set to the previous\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the first card, disable the Previous button and make sure\r\n\t\t// the Next button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FIRST_CARD) {\r\n\t\t\tcardSet.previousCard();\r\n\t btnNext.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FIRST_CARD)\r\n\t\t\t\tbtnPrevious.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }",
"private void refill(){\n\t\tscrollTo(0, 0);\n\t\trefillInternal(-1, 0);\n\t}",
"public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}",
"public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }",
"void moveBack()\n\t{\n\t\tif (length != 0) \n\t\t{\n\t\t\tcursor = back; \n\t\t\tindex = length - 1; //cursor will be at the back\n\t\t\t\n\t\t}\n\t}",
"private void scrollToPosition() {\n String name;\n String description;\n for (Item item : itemList) {\n name = item.getName().toLowerCase();\n description = item.getDescription().toLowerCase();\n if (name.contains(searchQuery) || description.contains(searchQuery)){\n layoutManager.scrollToPositionWithOffset(item.getId(), 0);\n break;\n }\n }\n }",
"public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}",
"public void naviagteBackToPage() {\n\t\tgetDriver().close();\n\t}",
"private void scrollTo(final View view) {\n\n new Handler().post(new Runnable() {\n @Override\n public void run() {\n scroll.smoothScrollTo(0, view.getBottom());\n }\n });\n }",
"public void switchPreviousTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i - 1 >= 0)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(tabItems.length - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void gettingBackToInitial(){\n robot.setDrivetrainPosition(-hittingMineralDistance, \"translation\", 1.0);\n }",
"public abstract void scroll(long ms);",
"@FXML\n private void handleFilteredListPanelScrollDown() {\n filteredTaskListPanel.scrollToNext();\n }",
"public void MovePrevious()\r\n {\r\n\r\n \t try{\r\n \t\t if(!rsTution.previous())rsTution.first();\r\n \t\t Display();\r\n\r\n\r\n \t }catch(SQLException sqle)\r\n \t {System.out.println(\"MovePrevious Error:\"+sqle);}\r\n }",
"public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }",
"private void navigateQuestion(boolean previous) {\n currentQuestionIndex = previous ? currentQuestionIndex - 1 : currentQuestionIndex + 1;\n if (currentQuestionIndex == 10 || currentQuestionIndex < 0) {\n currentQuestionIndex = 0;\n }\n question = questions[currentQuestionIndex];\n textView.setText(question.getStringResourceId());\n\n Log.d(TAG, \"Displaying question \" + String.valueOf(currentQuestionIndex));\n }",
"private void prevButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }",
"public void scrollToFinishActivity() {\n if (!mEnable){\n mSwipeHelper.getActivity().finish();\n return;\n }\n final int childWidth = mContentView.getWidth();\n int left = 0, top = 0;\n left = childWidth;\n mTrackingEdge = ViewDragHelper.EDGE_LEFT;\n\n mDragHelper.smoothSlideViewTo(mContentView, left, top);\n invalidate();\n }",
"private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }",
"public void movePrevious() throws CurrentNotSetException {\r\n\t\ttry {\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CurrentNotSetException();\r\n\t\t}\r\n\r\n\t}",
"public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }",
"public void scrollUp() {\n JavascriptExecutor jse = (JavascriptExecutor)driver;\n jse.executeScript(\"window.scrollBy(0, -500)\", new Object[]{\"\"});\n }",
"protected boolean scroll(int amount) {\n\t// Does nothing\n\treturn false;\n}",
"B scrollToSelectedItem(boolean scrollToSelectedItem);",
"public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }",
"public synchronized void scrollUp()\r\n\t{\r\n\t\treferenceImage.scrollUp();\r\n\t\tdisplayedImage.scrollUp();\r\n\t}",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\n }",
"public void navigate_back() throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().navigate().back();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }",
"public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFinalOffset = 0, heightLastRow = 0;\n for (int j = getRow(0).getIndex(); j < newIndex.intValue(); ++j) {\n heightLastRow = getRowHeight(j);\n posFinalOffset += heightLastRow;\n }\n final double fixedHeight = getFixedRowHeight();\n if (fixedHeight > posFinalOffset) {\n flow.scrollTo(newIndex.intValue());\n } else if (fixedHeight > posFinalOffset - heightLastRow) {\n flow.scrollPixels(posFinalOffset - heightLastRow - fixedHeight);\n }\n }\n }",
"public void previousBtnClicked(View v){\n\t\tresetSelection();\r\n\t\tnextQuestion(-1);\r\n\t\tshowQuesAndAnswers();\r\n\t}",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"public void scrollDownThePageToFindTheEnrollNowButton() {\n By element =By.xpath(\"//a[@class='btn btn-default enroll']\");\n\t scrollIntoView(element);\n\t _normalWait(3000);\n }",
"private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }",
"public void useScrolling() {\n\t\t((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\n\t\t\n\t\t((JavascriptExecutor)driver).executeScript(\"window.scrollBy(0, 1200)\");\n\t\t// document.getElementsByClassName(\" \");\n\t\t// document.getElementsById(\" \");\n\t\t\n\t}",
"public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}",
"private void previousQuestion()\r\n {\r\n Intent question = new Intent(AnswerActivity.this, QuestionActivity.class);\r\n Bundle bundle = new Bundle();\r\n bundle.putIntArray(QuestionActivity.FLASH_CARD_ARRAY, intArray);\r\n bundle.putInt(QuestionActivity.NUMBER_OF_FLASH_CARDS, numberOfFlashCards);\n bundle.putBoolean(PREVIOUS_QUESTION, true); \r\n bundle.putInt(QuestionActivity.CURRENT_INDEX, currentIndex);\r\n question.putExtras(bundle);\r\n startActivity(question);\r\n overridePendingTransition(R.anim.fade, R.anim.hold);\n finish();\r\n }",
"@FXML\n private void handleMainListPanelScrollToLast() {\n mainTaskListPanel.scrollToLast();\n }",
"@Nullable\n WizardPage flipToPrevious();",
"public void inputPrev() {\n --this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"void setScrollTop(int scrollTop);",
"public void computeScroll() {\n if (!this.mDragHelper.continueSettling(true)) return;\n if (!this.mCanSlide) {\n this.mDragHelper.abort();\n return;\n }\n ViewCompat.postInvalidateOnAnimation((View)this);\n }",
"public void focusPreviousComponent(Component paramComponent)\n/* */ {\n/* 1365 */ if (paramComponent != null) {\n/* 1366 */ paramComponent.transferFocusBackward();\n/* */ }\n/* */ }",
"@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}",
"@Override\n\tpublic void computeScroll() {\n\t\tif (mScroller.computeScrollOffset()) {\n\t\t\tint oldX = mScrollLeft;\n\t\t\tint oldY = mScrollTop;\n\t\t\t\n\t\t\tint x = mScroller.getCurrX();\n\t\t\tint y = mScroller.getCurrY();\n\n\t\t\tif (oldX != x) {\n\t\t\t\tmoveX(x-oldX);\n\t\t\t}\n\t\t\tif (oldY != y) {\n\t\t\t\tmoveY(y-oldY);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n moveScrollDown();\n }",
"public abstract boolean scroll(Direction direction);",
"public void goToStart() {\n\t\tsetPosition(0);\n\t}",
"private void scrollToPosition() {\n mPhotosListView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View v,\n int left,\n int top,\n int right,\n int bottom,\n int oldLeft,\n int oldTop,\n int oldRight,\n int oldBottom) {\n mPhotosListView.removeOnLayoutChangeListener(this);\n final RecyclerView.LayoutManager layoutManager = mPhotosListView.getLayoutManager();\n View viewAtPosition = layoutManager.findViewByPosition(MainActivity.currentPosition);\n // Scroll to position if the view for the current position is null (not currently part of\n // layout manager children), or it's not completely visible.\n if (viewAtPosition == null || layoutManager\n .isViewPartiallyVisible(viewAtPosition, false, true)) {\n mPhotosListView.post(() -> layoutManager.scrollToPosition(MainActivity.currentPosition));\n }\n }\n });\n }",
"public void previousQuestion(View view) {\n if (sequence > 1) {\n saveProgress();\n sequence--;\n if (sequence <=1){\n Button button = (Button) findViewById(R.id.question_button_previous);\n button.setEnabled(false);\n }\n updateView();\n }\n }",
"private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}",
"public void prev();",
"private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }",
"private void stopScrolling() {\n mScroller.forceFinished(true);\n if (Build.VERSION.SDK_INT >= 11) {\n mAutoCenterAnimator.cancel();\n }\n }",
"public void Prev();",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"void scrollLeft(int scrollLeft);",
"public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }",
"public void goBackToPreviousScene() {\n\n scenesSeen.pop();\n currentScene = scenesSeen.peek();\n\n this.window.setScene(currentScene.createAndReturnScene());\n }",
"private static void scrollToElement(JEditorPane editorPane, HTMLDocument.Iterator elementIterator) {\n\t\ttry {\n\t\t\tRectangle rectangle = editorPane.modelToView(elementIterator.getStartOffset());\n\t\t\tif (rectangle == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// the view is visible, scroll it to the\n\t\t\t// center of the current visible area.\n\t\t\tRectangle visibleRectangle = editorPane.getVisibleRect();\n\t\t\t// r.y -= (vis.height / 2);\n\t\t\trectangle.height = visibleRectangle.height;\n\t\t\teditorPane.scrollRectToVisible(rectangle);\n\t\t} catch (BadLocationException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t}",
"private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public void scrollUp() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value - 1000) + \");\");\n }",
"public void scrollTo(String targetId) {\n clientRpc.scrollTo(targetId);\n }",
"public void stepForward() {\n\t\tposition = forwardPosition();\n\t}"
] |
[
"0.6479168",
"0.62906563",
"0.6201743",
"0.6157485",
"0.6079445",
"0.6071757",
"0.6058592",
"0.5972112",
"0.59196055",
"0.5871161",
"0.5838886",
"0.5833892",
"0.5817676",
"0.5814408",
"0.5801312",
"0.5791703",
"0.5785814",
"0.57719326",
"0.57641006",
"0.57628363",
"0.5747357",
"0.5715529",
"0.57128537",
"0.56822443",
"0.56458575",
"0.5641349",
"0.56280285",
"0.56254524",
"0.5621472",
"0.5599556",
"0.55949616",
"0.55938303",
"0.5587968",
"0.5583483",
"0.55819494",
"0.556113",
"0.55581075",
"0.5556473",
"0.5539609",
"0.55345136",
"0.55264324",
"0.55232495",
"0.55212986",
"0.5516973",
"0.5511482",
"0.5508973",
"0.5508104",
"0.5507648",
"0.5506898",
"0.55023587",
"0.54992324",
"0.549257",
"0.54922926",
"0.54805505",
"0.5473305",
"0.54722273",
"0.5467314",
"0.54483145",
"0.544784",
"0.5443217",
"0.5442325",
"0.5427515",
"0.5420126",
"0.54174715",
"0.5412828",
"0.5405557",
"0.54035693",
"0.5400978",
"0.53968334",
"0.53907967",
"0.5386993",
"0.53799105",
"0.5378993",
"0.53634953",
"0.53540546",
"0.5343451",
"0.53433937",
"0.533327",
"0.5331317",
"0.5327491",
"0.5314741",
"0.5313965",
"0.5312265",
"0.5302314",
"0.5297411",
"0.52960753",
"0.5287183",
"0.5284429",
"0.5282083",
"0.52717924",
"0.52717924",
"0.5270954",
"0.52695096",
"0.5266415",
"0.52644765",
"0.52635074",
"0.5261617",
"0.52534807",
"0.5244549",
"0.5235691"
] |
0.7073108
|
0
|
ApplicationContext factory = new ClassPathXmlApplicationContext("config/.xml");
|
public static void main(String[] args) {
ApplicationContext factory = new ClassPathXmlApplicationContext(new String[]{
"config/userservice01.xml", "config/userservice02.xml"
});
System.out.println("\n=================================================");
User user01 = (User)factory.getBean("user05");
System.out.println(user01);
System.out.println("\n=================================================");
User user02 = (User)factory.getBean("user06");
System.out.println(user02);
System.out.println("\n=================================================");
User user03 = (User)factory.getBean("user07");
System.out.println(user03);
System.out.println("\n=================================================");
User user04 = (User)factory.getBean("user08");
System.out.println(user04);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}",
"public static void main(String[] args){\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n /*\n Check to see if the file exists\n File file = new File(\"src/main/java/applicationContext.xml\");\n System.out.println(file.exists());\n \n */\n \n //retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\", Coach.class);\n //call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n //close the context\n \n context.close();\n \n /*Note: PUT THE FILE IN THE RESOURCES FOLDER, OR ELSE YOU'LL GET A FILE NOT FOUND ERROR*/\n }",
"public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationContext ac = new ClassPathXmlApplicationContext(s);\r\nCar c=(Car)ac.getBean(\"c\");\r\nc.printCarDetails();\r\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"spring-test.xml\");\n\t\tSystem.out.println(context.getBean(\"test\"));\n\t\tSystem.out.println(context.getBean(MyConfig.class));\n\t\t//context.close();\n\t}",
"private SpringApplicationContext() {}",
"public static void main(String[] args)\n {\n ApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie=context.getBean(\"movie\",Movie.class);\n movie.displayActor();\n\n // intialize XmlBeanFactory with beanx.xml\n BeanFactory beanFactory=new XmlBeanFactory(new ClassPathResource(\"beans.xml\"));\n Movie movie1=(Movie) beanFactory.getBean(\"movie\");\n movie1.displayActor();\n // intialize BeanDefinitionRegistry and BeanDefinitionReader with beanx.xml\n DefaultListableBeanFactory factory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry registry=new GenericApplicationContext(factory);\n BeanDefinitionReader reader = new XmlBeanDefinitionReader(registry);\n reader.loadBeanDefinitions(\"beans.xml\");\n Movie picture1 = (Movie) factory.getBean(\"movie\");\n picture1.displayActor();\n\n\n }",
"public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{\"applicationContext.xml\",\"application.xml\"});\n\n Student student = (Student) context.getBean(\"student\");\n\n\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// XmlBeanFactory beanFactory = new XmlBeanFactory(resource);\n// Student student = (Student) beanFactory.getBean(\"student\");\n//\n// //资源\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// //容器\n// DefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n// //BeanDefinition读取器,通过回调配置给容器\n// XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);\n// //读取配置\n// reader.loadBeanDefinitions(resource);\n\n// Student student = (Student) factory.getBean(\"student\");\n// System.out.println(student);\n }",
"@Test\n public void testBeanFactoryCreateBean() {\n ClassPathResource resource = new ClassPathResource(\"spring-bean.xml\");\n XmlBeanFactory factory = new XmlBeanFactory(resource);\n //\n System.out.println(\"begin get bean.\");\n factory.getBean(\"bean\");\n System.out.println(\"end get bean.\");\n }",
"public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext_work.xml\");\n SqlSessionFactory c = context.getBean(\"C\", SqlSessionFactory.class);\n System.out.println(c);\n\n\n }",
"@Test\n public void testOrders(){\n ClassPathXmlApplicationContext context=\n new ClassPathXmlApplicationContext(\"bean4.xml\");\n Orders orders = context.getBean(\"orders\", Orders.class);\n System.out.println(\"第四步 得到bean实例\");\n System.out.println(orders);\n// orders.initMethod();\n context.close();\n }",
"public static void main(String args[]) {\n\r\n\t\r\n\tApplicationContext ac = new ClassPathXmlApplicationContext(\"com/springcore/annotations/anootationconfig.xml\");\r\n\t \r\n Employee emp = ac.getBean(\"myemployee\", Employee.class);\r\n System.out.println(emp.toString());\r\n\t}",
"public static void main(String[] args) {\n\n\n\n\n\n ClassPathXmlApplicationContext contexto=new ClassPathXmlApplicationContext(\"applicationContext3.xml\");\n \n \n\n Empleados Maria=contexto.getBean(\"secretarioEmpleado2\",Empleados.class);\n\n \n \n \n //System.out.println(\"Tareas del director: \"+Maria.getTareas());\n System.out.println(\"Informes del director: \"+Maria.getInformes());\n //System.out.println(\"El correo es: \"+Maria.getEmail());\n //System.out.println(\"El nombre de la empresa es: \"+Maria.getNombreEmpresa());\n \n\n contexto.close();\n\n\n \n }",
"public static void main(String[] args) {\n\t\t\tResource r = new ClassPathResource(\"resources/spring.xml\");\n\t\t\tBeanFactory factory = new XmlBeanFactory(r);\n\t\t//ApplicationContext factory1 = new ClassPathXmlApplicationContext(\"resources/spring.xml\");\n\t\t\n\t\t\n\t\t\t//Test t1 = (Test)factory1.getBean(\"t\");\n\t\t\t//Test t2 = (Test)factory1.getBean(\"t\");\n\t\t\t//t1.hello();\n\t\t\t//t2.hello();\n\t\t\t//System.out.println(t1==t2);\n\t\t\n\t\tfactory.getBean(\"t\");\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext container = new ClassPathXmlApplicationContext(\"context.xml\");\n\t\tSystem.out.println(\"container created\");\n\n\t\t//Animal dog = container.getBean(\"animal\", Animal.class);\n\t\t//System.out.println(dog);\n\n\t}",
"public static void main(String[] args) {\n \n ApplicationContext context =\n new ClassPathXmlApplicationContext(\"spring-beans.xml\");\n \n \n Dependant dependant = context.getBean(\"dependant\", Dependant.class);\n \n }",
"Factory getFactory()\n {\n return configfile.factory;\n }",
"public static void main( String[] args )\n {\n \tApplicationContext context=new FileSystemXmlApplicationContext(\"beans.xml\");\n \tTraveller traveller=(Traveller)context.getBean(\"traveller\"); //SPRING CONTAINER\n \tSystem.out.println(traveller.getTravelDetails());\n\n }",
"String getApplicationContextPath();",
"private SpringApplicationContextProvider() {\r\n\t}",
"public static void main(String[] args) {\n\t\tResource resource = new ClassPathResource(\"config/p51.xml\");\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\n\t\t\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"config/p51.xml\");\n\t\t//context.getBean()....\n\t\t\n\t\t\n\t\tGreetingService greetingService =(GreetingService)factory.getBean(\"greeting\");\n\t\tSystem.out.println(greetingService.sayHello(\"아무거나 \"));\n\t\tGreetingService greetingService2 =(GreetingService)factory.getBean(\"greeting2\");\n\t\tSystem.out.println(greetingService2.sayHello(\"아무거나 \"));\n\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"classpath:data.xml\");\n\n Employee emp1 = context.getBean(\"employee1\", Employee.class);\n\n System.out.println(\"Employee Details \" + emp1);\n\n }",
"public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\tApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n\tStudentDAO studentDao=context.getBean(\"studentDAO\",StudentDAO.class);\n\tstudentDao.selectAllRows(); \n\t((ClassPathXmlApplicationContext)context).close();\n\n}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext contexto= new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t \r\n\t\tdirectorEmpleado Juan=contexto.getBean(\"miEmpleado\",directorEmpleado.class);\r\n\t\tSystem.out.println(Juan.getTareas());\r\n\t\tSystem.out.println(Juan.getInforme());\r\n\t\tSystem.out.println(Juan.getEmail());\r\n\t\tSystem.out.println(Juan.getNombreEmpresa());\r\n\t\t\r\n\t\t/*secretarioEmpleado Maria=contexto.getBean(\"miSecretarioEmpleado\",secretarioEmpleado.class);\r\n\t\tSystem.out.println(Maria.getTareas());\r\n\t\tSystem.out.println(Maria.getInforme());\r\n\t\tSystem.out.println(\"Email= \"+Maria.getEmail());\r\n\t\tSystem.out.println(\"Nombre Empresa= \"+Maria.getNombreEmpresa());*/\r\n\t\t\r\n\t\tcontexto.close();\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\n//\n// SpeakerService service = context.getBean(\"speakerService\", SpeakerService.class);\n//\n// System.out.println(service);\n//\n// System.out.println(service.findAll().get(0).getFirstName());\n//\n /*\n * In case of Singleton\n * This will not instantiate new object of SpeakerService because it is singleton\n * Same reference will be returned\n * */\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n\n // XML Configuration\n// ApplicationContext context = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n }",
"public static void main(String[] args) {\nApplicationContext context=new ClassPathXmlApplicationContext(\"spring.xml\");\r\n\t\r\n\t\r\n\r\n\t\r\n\t\r\n\tCoach coach2=(Coach)context.getBean(\"myCCoach\");\r\n\r\n\t\r\n\tSystem.out.println(coach2);\r\n\t((ClassPathXmlApplicationContext)context).close();\r\n\t\r\n\t\r\n\tSystem.out.println(coach2.getDailyFortune());\r\n\t\r\n\t}",
"public Context getApplicationContext();",
"public static void main(String args[]){\n ApplicationContext context=new ClassPathXmlApplicationContext(\"bean.xml\");\n Movie movie=context.getBean(\"movie\", Movie.class);\n movie.movieDisplay();\n\n BeanFactory beanfactory=new XmlBeanFactory(new ClassPathResource(\"bean.xml\"));\n //getBean() returns instance\n Movie movie1=beanfactory.getBean(\"movie\", Movie.class);\n movie1.movieDisplay();\n\n DefaultListableBeanFactory defaultListableBeanFactory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry beanDefinitionRegistry=new GenericApplicationContext(defaultListableBeanFactory);\n BeanDefinitionReader beanDefintionReader=new XmlBeanDefinitionReader(beanDefinitionRegistry);\n beanDefintionReader.loadBeanDefinitions(\"bean.xml\");\n Movie movie2=defaultListableBeanFactory.getBean(\"movie\",Movie.class);\n movie2.movieDisplay();\n }",
"@Before\n public void init() throws IOException {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"config/applicationContext.xml\");\n //this.test();\n bookMapper = context.getBean(BookMapper.class);\n }",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}",
"public static void main(String[] args) {\n BeanFactory beanFactory = new ClassPathXmlApplicationContext(\"/com/bridgelabz/Spring/bean.xml\"); \n /* beans are loaded as soon as bean factory instance is created but \n * the beans are created only when getBean() method is called.\n * getBean: Return an instance, which may be shared*/\n GreetingMessage obj = (GreetingMessage) beanFactory.getBean(\"greetingMessage\"); \n String message = obj.getMessage();\n System.out.println(message);\n }",
"public static void main( String[] args )\n {\n ApplicationContext bean = new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie = (Movie) bean.getBean(\"movie1\");\n System.out.println(movie);\n }",
"public static void main(String[] args) {\n\t\n\t\n\tResource r = new ClassPathResource(\"employee.xml\");\n\tBeanFactory bf = new XmlBeanFactory(r);\n\tObject obj = bf.getBean(\"t\");\n\tTest t1=(Test)obj;\n\n}",
"public static void main(String args[]) {\r\n\t\tApplicationContext appContext=new ClassPathXmlApplicationContext(\"beans.xml\");\r\n\t\tEmployeeBean emp1=(EmployeeBean) appContext.getBean(\"Employee\");\r\n\t\tSystem.out.println(emp1.getName());\r\n\t}",
"public static void main(String[] args) {\r\nApplicationContext context=new ClassPathXmlApplicationContext(\"/beans.xml\");\t\t\r\n\tServlet s=(Servlet)context.getBean(\"servletRef\");\r\n\ts.serviceMethod();\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext ctx=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n HelloWord h=(HelloWord) ctx.getBean(\"helloWord\");\n h.sayHello();\n Car car=(Car) ctx.getBean(\"car\");\n System.out.println(car);\n Person person=(Person) ctx.getBean(\"person\");\n System.out.println(person);\n\t}",
"public static void main(String[] args) {\n\tBeanFactory factory;\n\tfactory=new XmlBeanFactory(new ClassPathResource(\"kcp/spring/configuration/applicationContext.xml\"));\n\tClass c1=null;\n\tc1=factory.getBean(\"c1\",Class.class);\n\tSystem.out.println(c1+\" \"+c1.getClass());\n\t Properties c2=factory.getBean(\"c2\",Properties.class);\n\tSystem.out.println(c2+\" \"+c2.getClass());\n }",
"@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }",
"public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tSystem.out.println(\"context loaded\");\n\t\t// Sim sim = (Sim) context.getBean(\"sim\");\n\t\t/**\n\t\t * Avoid above type casting\n\t\t */\n\t\tSim sim = context.getBean(\"sim\", Sim.class);\n\t\tsim.calling();\n\t\tsim.data();\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);\n\nStudent s1 = context.getBean(\"s1\", Student.class);\n\nSystem.out.println(s1);\n\n\n\t}",
"@Test\n public void test_BeanFactoryMethod() {\n Resource res = new ClassPathResource(\"beanfactory-example.xml\");\n BeanFactory factory = new XmlBeanFactory(res);\n User user = (User) factory.getBean(\"user\");\n\n assertTrue(factory.isSingleton(\"user\"));\n assertTrue(factory.getBean(\"user\") instanceof User);\n assertTrue(factory.isTypeMatch(\"user\", User.class));\n assertTrue(factory.getAliases(\"user\").length > 0);\n }",
"public static void main(String[] args) {\n\t\tApplicationContext c = new ClassPathXmlApplicationContext(\"hello.xml\");\r\n\t\tTextEditor t = (TextEditor) c.getBean(\"text\");\r\n\t\tt.test();\r\n\t}",
"public static void main(String[] args) {\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n Person person = context.getBean(\"person\", Person.class);\n System.out.println(person.getName());\n System.out.println(person.getMessage());\n System.out.println(\"Shutting down...\");\n context.close();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tApplicationContext appContext = \n\t \t new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t \t\n\t ElectronicDao dao = (ElectronicDao)appContext.getBean(\"d\");\n\t/*\tResource r=new ClassPathResource(\"applicationContext.xml\"); \n\t BeanFactory factory=new XmlBeanFactory(r); \n\t \n\t ElectronicDao dao=(ElectronicDao)factory.getBean(\"d\"); */\n\t \n\t Electronic e= new Electronic(115,\"vasdasra3sdun\",\"asda3s\"); \n\n\t System.out.println(\"Hello1\");\n\t dao.saveElectronic(e); \n\t System.out.println(\"Hello2\");\n\t}",
"ApplicationContext getAppCtx();",
"public static void main(String[] args) {\n\n System.out.println(\"开始初始化容器\");\n ApplicationContext ac = new ClassPathXmlApplicationContext(\"classpath:dispatcher-servlet.xml\");\n\n System.out.println(\"xml加载完毕\");\n Person person1 = (Person) ac.getBean(\"person1\");\n System.out.println(person1);\n System.out.println(\"关闭容器\");\n ((ClassPathXmlApplicationContext)ac).close();\n\n }",
"private static ConfigDocumentContext createConfigurationContext(String resource) \n throws LifecycleException \n {\n try {\n Object contextBean = null;\n URL configUrl = Thread.currentThread().getContextClassLoader().getResource(resource);\n if( configUrl == null ) {\n // we can't find the config so we just an instance of Object for the ConfigDocumentContext.\n if( log.isDebugEnabled() )\n log.debug(\"Cannot find configuration at resource '\"+resource+\"'.\");\n contextBean = new Object();\n } else {\n // we have a config, create a DOM out of it and use it for the ConfigDocumentContext.\n if( log.isDebugEnabled() ) {\n log.debug(\"Loading xchain config file for url: \"+configUrl.toExternalForm());\n }\n \n // get the document builder.\n DocumentBuilder documentBuilder = XmlFactoryLifecycle.newDocumentBuilder();\n \n InputSource configInputSource = UrlSourceUtil.createSaxInputSource(configUrl);\n Document document = documentBuilder.parse(configInputSource);\n contextBean = document;\n }\n // create the context\n ConfigDocumentContext configDocumentContext = new ConfigDocumentContext(null, contextBean, Scope.chain);\n configDocumentContext.setConfigUrl(configUrl);\n configDocumentContext.setLenient(true);\n return configDocumentContext;\n } catch( Exception e ) {\n throw new LifecycleException(\"Error loading configuration from resource '\"+resource+\"'.\", e);\n }\n }",
"SpringLoader getSpringLoader();",
"public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.xml\" });\r\n\t\t}\r\n\t\t}\r\n\t\treturn (ApplicationContext) applicationContext;\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext context =new ClassPathXmlApplicationContext(\"spring.xml\");\n\t \n\t\tService ser= context.getBean(Service.class);\n\t\tSystem.out.println(ser.getAccountID());\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext(\"contextApplicationXML.xml\");\n\n\t\t//retrieve bean from spring container\n\t\tCoach coach=context.getBean(\"myCoach\", Coach.class);\n\t\tSystem.out.println(coach.getWorkout());\n\t\t\n\t\t//close the context \n\t\tcontext.close();\n\t}",
"public static void main(String[] args) {\n\t\tResource rs = new FileSystemResource(\"src/main/resources/beans.xml\");\n\t\tBeanFactory bF = new XmlBeanFactory(rs);\n\t\tStudent s1 = (Student) bF.getBean(\"student1\");\n\t\tSystem.out.println(s1);\n\t\tStudent s2 = (Student) bF.getBean(\"student2\");\n\t\tSystem.out.println(s2);\n\t}",
"public static void main(String[] args) {\n\t\tAbstractApplicationContext appContext = new FileSystemXmlApplicationContext(\"src/ApplicationMetaData.xml\");\n\t\tEmployee employee = appContext.getBean(\"tcsEmployee\", Employee.class);\n\t\t//2.Print out Employee Bean\n\t\tSystem.out.println(\"**************\");\n\t\tSystem.out.println(\"Employee Id::\"+ employee.getEmployeeId());\n\t\tSystem.out.println(\"Employee Name::\" + employee.getEmployeeName());\n\t\tSystem.out.println(\"**************\");\n\t\tappContext.close();\n\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext factory = new ClassPathXmlApplicationContext(\"com/test01/application.xml\");\n\t\t\n\t\tMyClass myclass = (MyClass)factory.getBean(\"myClass\");\n\t\tmyclass.prn();\n\t\t\n//\t\tScore sc = (Score)factory.getBean(\"score\");\n\t\t\n\t\tBeanTst bean = factory.getBean(\"beanTst\", BeanTst.class );\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"performance.xml\");\r\n\t Performer p=ctx.getBean(\"sonu nigam\", Performer.class); \r\n\t p.Performe();\r\n\t ConfigurableApplicationContext cfgCtx=(ConfigurableApplicationContext) ctx;\r\n\t cfgCtx.close();\r\n\t \r\n\t\r\n\t}",
"public static void main( String[] args )\r\n {\r\n \tApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\r\n \t\r\n \t/* Recupera un bean avente id='helloWorld' nel file di configurazione\r\n \t * beans.xml */\r\n \tHelloWorld obj = (HelloWorld) context.getBean(\"helloWorld\");\r\n \t\r\n \t/* Invoco il metodo che stampa il messaggio su tale oggetto */\r\n \tSystem.out.println(\"Messaggio: \" + obj.getMessage());\r\n \t\r\n \tobj = (HelloWorld) context.getBean(\"moseca\");\r\n \tSystem.out.println(\"Messaggio: \" + obj.getMessage());\r\n }",
"public static void main(String[] args) {\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContextPart2.xml\");\n // get bean from the application context\n Coach theCoach = context.getBean(\"myCoach\", Coach.class);\n // call the method from the beans\n System.out.println(theCoach.getDailyWorkout());\n System.out.println(theCoach.getFortune());\n\n // close the application context\n context.close();\n\n }",
"public static void main(String[] args) {\n\t\tApplicationContext actx = new FileSystemXmlApplicationContext(\"/src/main/java/com/baby/springStudy/echoMsgConfig.xml\");\n\t\tEchoMsg echoMsg = (EchoMsg)actx.getBean(\"EchoMsg\");\n\t\tSystem.out.println(echoMsg.sayHello());\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\t\t \r\n\t\tIMensaje mensaje = context.getBean(\"miBean\", Mensaje.class);\r\n\t\t\r\n\t\tmensaje.printHelloWorld(\"prueba Spring\");\r\n\t\t\r\n\t\t((AnnotationConfigApplicationContext) context).close();\r\n\t}",
"public static void main(String[] args) {\n\t\tAbstractApplicationContext ctx=new ClassPathXmlApplicationContext(\"SpringConfig.xml\");\n\n\tClassificationService classificationService = ctx.getBean(\"classificationService\", ClassificationServiceImpl.class);\n\t\t\n//\t\tClassification classification = new Classification();\n//\t\tclassification.setClassificationName(\"spring\");\n//\t\t\n//\t\tclassificationService.storeClassification(classification);\n\t\t\n//\t\tfor(Classification classification:classificationService.getClassification()) {\n//\t\t\tSystem.out.println(classification.getId()+\" \"+classification.getClassificationName());\n//\t\t}\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext ac = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t//System.out.println(ac.getBean(\"user\"));\r\n\t\t//User user = ac.getBean(User.class);\r\n\t\tString[] beanNames = ac.getBeanNamesForType(User.class);\r\n\t\t//System.out.println(user);\r\n\t\tfor (String string : beanNames) {\r\n\t\t\tSystem.out.println(string);\r\n\t\t\t\r\n\t\t}\r\n\t\tUser user = (User) ac.getBean(\"hkk.spring.javaBeans.User#0\");\r\n\t\tUser user2 = (User) ac.getBean(\"user\");\r\n\t\tUser user3 = (User) ac.getBean(\"user\");\r\n\t\tSystem.out.println(user3==user2);\r\n\t}",
"public static void main(String[] args) {\n ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(\"config.xml\");\n // ctx.start();\n Database d =ctx.getBean(\"mysql\",Database.class);\n System.out.println(\"name --->\" + d.getName() + \" port-->\" + d.getPort());\n d.connect();\n // d.getInteger();\n // d.throwException();\n // d.checkdata(\"richa\");\n // d.getIntdata(200);\n // Dummy dummy = ctx.getBean(\"dummy\", Dummy.class);\n // dummy.display();\n // ctx.stop();\n /* Dummytest dummytest=ctx.getBean(\"dummyTest\",Dummytest.class);\nSystem.out.print(dummytest);\n PersonalisedService personalisedService=ctx.getBean(\"personalisedService\",PersonalisedService.class);\n System.out.println(personalisedService);\n System.out.println(personalisedService.employee.getCity());\n*/\n\n }",
"private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context =new \r\n\t\t\t\tClassPathXmlApplicationContext(\"initMethodConcept.xml\");\r\n\t\tCoach c=context.getBean(\"myApp\",Coach.class);\r\n//\t\tCoach d=context.getBean(\"myApp\",Coach.class);\r\n//\t\tboolean result =(c==d);\r\n//\t\tSystem.out.println(\"Same instance\" +result);\r\n//\t\tSystem.out.println(\"location1\" +c);\r\n//\t\tSystem.out.println(\"location1\" +d);\r\n//\t\t\r\n//\t\tc.print();\r\n\t\tSystem.out.println(\"myFortune is \"+c.getDailyFortune());\r\n//\t\tSystem.out.println(\"emailAddress\"+c.getEmailAddress());\r\n//\t\tSystem.out.println(\"team name is\"+c.getTeam());\r\n\t\tcontext.close();\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t Resource res = new ClassPathResource(\"applicationContext.xml\");\n\t BeanFactory factory = new XmlBeanFactory(res);\n\t \n\t Object o = factory.getBean(\"department\");\n\t Department dep = (Department)o;\n\t \n\t dep.show();\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);\n }",
"public static void main(String args[])\n {\n ClassPathXmlApplicationContext context = new\n ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\n // retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\",Coach.class);\n\n// call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n\n// lest call our new method for fortunes\n System.out.println(theCoach.getDailyFortune());\n\n// close the context\n context.close();\n\n\n }",
"public static void main(String[] args) {\n\t\t\r\n \r\n \r\n Resource res=null;\r\n BeanFactory bs=null;\r\n res=new FileSystemResource(\"src/com/spr/cfg/applicationContext.xml\");\r\n bs=new XmlBeanFactory(res);\r\n \r\n Object obj=bs.getBean(\"wsg\");\r\n WishApp opp=(WishApp)obj;\r\n String result=opp.WishGenrator(\"deependra\");\r\n System.out.println(result);\r\n \r\n\t}",
"@Test\n void configuration_mixedConfiguration() {\n ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfigThree.class);\n\n MessageRenderer messageRenderer = ctx.getBean(\"messageRenderer\", MessageRenderer.class);\n messageRenderer.render();\n }",
"public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }",
"public static void main(String[] args) {\n ApplicationContext cont=new ClassPathXmlApplicationContext(\"Dependentbean.xml\");\n Mapp qump=(Mapp)cont.getBean(\"pp\");\n qump.showAnswers();\n \n }",
"public static void main(String[] args) {\n\t\tApplicationContext context =\n\t\t\t new ClassPathXmlApplicationContext(new String[] {\"services.xml\"});\n\t\t\tHelloBean xmlBean = (HelloBean)context.getBean(\"xmlHelloID\");\n\t\t\tSystem.out.println(xmlBean.getMsg() + \" called \" + xmlBean.getCount() + \" times.\");\n\t\t\t\n\t\t//\tAnnotation example\n\t\t\tApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\t\t HelloBean annotationBean = ctx.getBean(HelloBean.class);\n\t\t\t System.out.println(annotationBean.getMsg() + \" called \" + annotationBean.getCount() + \" times.\");\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"springconfig.xml\");\n\t\t\n\t\t//2.Retrive Bean object from Bean Factory\n\t\tPhysicsTeacher teacherService = applicationContext.getBean(\"teacherService\", PhysicsTeacher.class);\n\t\t\n\t\t//3.1 Call the methods of bean to check dependency injection using setter injection\n\t\tteacherService.getHomeWork();\n\t\tteacherService.getQuotes();\n\t\t\n\t\t//3.2 Call the getters of literal values which are set through config file\n\t\tSystem.out.println(\"Name is: \"+teacherService.getName());\n\t\tSystem.out.println(\"Age is: \"+teacherService.getAge());\n\t\tSystem.out.println(\"City : \"+teacherService.getCity());\n\n\t\t\n\t\t//4 Close the Context\n\t\tapplicationContext.close();\n\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t\r\n\t\tCricketCoach coach = context.getBean(\"myCricketCoach\", CricketCoach.class);\r\n\t\t\r\n\t\tSystem.out.println(coach.getDailyWorkout());\r\n\t\t\r\n\r\n\t\tSystem.out.println(coach.getDailyFortune());\r\n\t\t\r\n\t\tSystem.out.println(coach.getEmail());\r\n\t\t\r\n\t\tSystem.out.println(coach.getName());\r\n\t\t\r\n\t\tcoach.print();\r\n\t\t\r\n\t\tcontext.close();\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tGenericXmlApplicationContext ctx = new GenericXmlApplicationContext(\"Echo.xml\");\r\n\t\t\r\n\t\tEchobean bean = ctx.getBean(\"aaa\", Echobean.class);\r\n\t\t \r\n\t\tOneService one = bean.getOne();\r\n\t\tTwoService two = bean.getTwo(); \r\n\t\t \r\n\t\tone.one();\r\n\t\ttwo.two();\r\n\t}",
"public static void main(String[] args) \n\t{\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\n\t\t//get the bean from spring container\n\t\t\n\t\t/*\n\t\t * For 1st method i.e., if we defined the bean id\n\t\t * then we need to use the defined bean id to create the class in getbean() as shown below.\n\t\t */\n\t\t\n\t\t//Coach theCoach = context.getBean(\"thatSillyCoach\",Coach.class); //Bean id is created by programmer\n\t\t\n\t\t/*\n\t\t * For 2nd method i.e., Default bean id\n\t\t * In this case we need to use the class name with the first letter as small as bean id the bean id is generated y program it self \n\t\t */\n\t\t\n\t\tCoach theCoach = context.getBean(\"tennisCoach\",Coach.class);\n\t\t\n\t\t// call a method on the bean\n\t\tSystem.out.println(theCoach.getDailyWorkout());\n\t\t\n\t\t// call the method to get daily fortune\n\t\tSystem.out.println(theCoach.getDailyFortune());\n\t\t\n\t\t//close the context\n\t\tcontext.close();\n\t}",
"FactoryBean getFactoryBean();",
"private AppConfigContent() {}",
"BeanFactory getBeanFactory();",
"public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);",
"public static void main(String[] args) {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"complex-config.xml\");\n Complex complex = applicationContext.getBean(\"complexBean\",Complex.class);\n System.out.println(complex.getList());\n System.out.println(complex.getSet());\n System.out.println(complex.getMap());\n\n }",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t//AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(TennisCoach.class);\n\t\t//get the bean from spring container\n\t\t//1. Default bean id\n\t\tCoach theCoach=context.getBean(\"tennisCoach\", Coach.class);\n\t\t//2. Explicit bean id\n\t\t//Coach theCoach=context.getBean(\"thatCoach\", Coach.class);\n\t\tSystem.out.println(theCoach.getDailyWorkout());\n\t\t//call method to get a daily fortune\n\t\tSystem.out.println(theCoach.getDailyFortune());\n\t\tcontext.close();\n\t}",
"public static void main(String[] args) {\r\n\tAnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(SwimConfig.class);\r\n\tCoach myCoach=context.getBean(\"swimCoach\",Coach.class);\r\n\tSystem.out.println(myCoach.getDailyFortune());\r\n\tSystem.out.println(myCoach.getDailyWorkOut());\r\n\tcontext.close();\r\n\r\n}",
"public static void main(String[] args) {\n\t\tString configLocation = \"classpath:applicationCTX.xml\";\r\n\t\tAbstractApplicationContext ctx = new GenericXmlApplicationContext(configLocation);\r\n\t\tMyCalculator myCalculator = ctx.getBean(\"myCalculator\",MyCalculator.class);\r\n\t\tMyInfo myInfo = ctx.getBean(\"myInfo\",MyInfo.class);\r\n\t\t/*myCalculator.add();\r\n\t\tmyCalculator.sub();\r\n\t\tmyCalculator.multi();\r\n\t\tmyCalculator.div();\r\n\t\t*/\r\n\t\t//myInfo.bmiCalculation();\r\n\t\tmyInfo.getInfo();\r\n\t\t\r\n\t\t\r\n\t\tStudentInfo studentInfo = ctx.getBean(\"studentInfo\",StudentInfo.class);\r\n\t\tstudentInfo.getStudentInfo();\r\n\t\tStudent student2 = ctx.getBean(\"student2\",Student.class);\r\n\t\tstudentInfo.setStudent(student2);\r\n\t\tstudentInfo.getStudentInfo();\r\n\t\t\r\n\t\tPencil pencil = ctx.getBean(\"pencil\",Pencil.class);\r\n\t\tpencil.use();\r\n\t\t\r\n\t\tctx.close();\r\n\t}",
"public static void main(String[] args) {\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(ANNOTATE_XML);\n\n // ask container for the Bean that is ready to use\n Car car = appContext.getBean(\"dmc12autowire\", Car.class);\n car.go();\n\n System.out.println(car.getClass().getName());\n\n appContext.close();\n }",
"public static void main(String[] args) {\n\t\tApplicationContext factory =\n\t\t\t\tnew ClassPathXmlApplicationContext(\"resources/messageBean1.xml\");\n\t\tSystem.out.println(\"1. 공장 생성..\");\n\t\t//3. 생성되어서 공장이 가지고 있는 빈을 요청 :: getBean()\n\t\tSystem.out.println(\"2. 공장에서 빈을 가져옵니다...\");\n\t\t/*MemberService bean=factory.getBean(\"messageBean\", MemberService.class);*/\n\t\tMemberService bean=factory.getBean(\"message1\", MemberService.class);\n\t\t\n\t\t//4. 빈의 메소드를 수행.. 결과를 확인\n\t\tSystem.out.println(\"3. 빈의 메소드를 호출...\"+bean.msg());\n\t\n\t\n\t}",
"public static void main(String[] args) {\n\t\tAbstractApplicationContext context = new ClassPathXmlApplicationContext(\"spring.xml\");\n\t\tcontext.registerShutdownHook();\n\t\tShape s = context.getBean(\"javaBasedConfig\", Shape.class);\n\t\ts.draw();\n\t\t((ClassPathXmlApplicationContext)context).close();\n\t}",
"public static void main(String[] args) {\n\t\tFileSystemResource res = new FileSystemResource(\"src/com/nt/cfgs/applicationContext.xml\");\r\n\t\t// crrate IOC container \r\n\t\tXmlBeanFactory factory = new XmlBeanFactory(res);\r\n\t\t//get target Spring bean class object from factoryObject\r\n\t\tWishMessageGenerator generator = (WishMessageGenerator) factory.getBean(\"wishMessageGenerator\");\r\n\t\tWishMessageGenerator generator2 = (WishMessageGenerator) factory.getBean(\"wmsg1\");\r\n\t\tWishMessageGenerator generator3 = (WishMessageGenerator) factory.getBean(\"wmsg2\");\r\n\t\tSystem.out.println(generator2.hashCode()+\" \"+generator3.hashCode()+\" \"+generator.hashCode());\r\n\t\tWishMessageGenerator generator4 = (WishMessageGenerator) factory.getBean(\"don1\");\r\n\t\tWishMessageGenerator generator5 = (WishMessageGenerator) factory.getBean(\"don2\");\r\n\t\tWishMessageGenerator generator6 = (WishMessageGenerator) factory.getBean(\"don3\");\r\n\t\tWishMessageGenerator generator7 = (WishMessageGenerator) factory.getBean(\"don4\");\r\n\t\tSystem.out.println(generator4.hashCode()+\" \"+generator5.hashCode()+\" \"+generator6.hashCode()+\" \"+generator7.hashCode());\r\n\t\t//invoke the b.logic\r\n\t\tSystem.out.println(\"result \"+ generator.generateWishMessage(\"Sushant\"));\r\n\t}",
"public UniqueResourcesAndLocations() {\n this.context = new ClassPathXmlApplicationContext(\"spring-dao.xml\");\n this.jtemp = (JdbcTemplate)context.getBean(\"jt\");\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\n\t\t//retrieve the beans\n\t\tCoach theCoach = context.getBean(\"tennisCoach\", Coach.class);\n\t\tCoach coach2 = context.getBean(\"soccerCoach\",SoccerCoach.class);\n\t\tCoach coach3 = context.getBean(\"karateCoach\", KarateCoach.class);\n\t\t\n\t\t//call some methods\n\t\tSystem.out.println(theCoach.getDailyWorkout());\n\t\tSystem.out.println(theCoach.getDailyFortune());\n\t\tSystem.out.println(coach2.getDailyFortune());\n\t\tSystem.out.println(coach3.getDailyFortune());\n\t\t\n\t\t//close the container\n\t\tcontext.close();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t BeanFactory factory = new XmlBeanFactory(new ClassPathResource(\"com/nit/cfgs/applicationContext.xml\"));\r\n\r\n//\tgetting target class object using bean id\r\n\tVechicle vehicle = factory.getBean(\"vechicle\", Vechicle.class);\r\n\t\r\n//\tinvoking method\r\n\tvehicle.journey(\"Delhi\", \"banglore\");\r\n\t\r\n\t\r\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext ac=new ClassPathXmlApplicationContext(\"springcore.xml\");\n\t\t//identify bean by its id\n\t\tGreet gt=(Greet)ac.getBean(\"g1\");\n\t\tSystem.out.println(gt.getMessage());\n\n\n\t}",
"public static void main(String args[])\r\n\t{\n\t\tResource res=new ClassPathResource(\"/com/excel/core_01/iocContainer/_01FirstApp/spring.cfg.xml\");\r\n\r\n\t\t//activation of spring container & reading spring configuration file\r\n\t\tBeanFactory factory=new XmlBeanFactory(res);\r\n\r\n\t\t//getting object of implementation class\r\n\t\t//DemoInter d = (DemoInter)factory.getBean(\"com.excel.core_01.iocContainer._01FirstApp.DemoInterImpl\");\r\n\t\tDemoInterImpl d = (DemoInterImpl)factory.getBean(\"com.excel.core_01.iocContainer._01FirstApp.DemoInterImpl\");\r\n//\t\td.setMessage(\"Hi\");\r\n\t\t/**\r\n\t\tDemoInterImpl d1 = (DemoInterImpl) factory.getBean(\"p1.DemoInterImpl\");\r\n\t\tDemoInterImpl d2=(DemoInterImpl)factory.getBean(\"p1.DemoInterImpl\");\r\n\t\tSystem.out.println(d.hashCode());\r\n\t\tSystem.out.println(d1.hashCode());\r\n\t\tSystem.out.println(d2.hashCode());\r\n\t\t */\r\n\t\tSystem.out.println(d.wish(\"Rahul\"));\r\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context= \r\n\t\t\t\tnew ClassPathXmlApplicationContext(new String[] {\"spring.xml\"});\r\n\t\t\r\n\t\t\r\n\t\tIBanqueService metier= (IBanqueService) context.getBean(\"banqueServiceImpl\");\r\n\t\t\r\n//\tmetier.addClientSf(new Client(\"P8\", \"GZZZLLZG\")); \r\n\t\t\r\n\t\tList<Operation> ops= metier.consulterOperation(\"FR1545457\");\r\n\tCompte cp= metier.consulterCompte(\"FR1545457\");\r\n\t\tfor(Operation op: ops){\r\n\t\t\tSystem.out.println(\"************\");\r\n\t\t\tSystem.out.println(\"operation numero : \"+ op.getNumOperation());\r\n\t\t\tSystem.out.println(\"date operation \"+op.getDateOperation());\r\n\t\t\tSystem.out.println(\" Montant transaction \"+op.getMontant());\r\n\t\t\tSystem.out.println(\"type tranbsaction: \"+op.getClass().getSimpleName());\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t\r\n\t\tSystem.out.println(\"solde restant: \"+cp.getSolde());\r\n\t\t\r\n\t\t//Compte ce= (Compte) metier.consulterCompte(\"TN55566644\");\r\n\t\t//String codeCli= ce.getNumCompte();\r\n\t//\tmetier.verser(200L, \"TN55566644\", 2L);\r\n\t//\tmetier.virement(100, \"TN55566644\", \"FR1545457\", 3L);\r\n\t\t\r\n\t\t\r\n//\t\tmetier.addClient(new Client(\"A1\", \"fjedncjd\"));\r\n//\t\tmetier.addClient(new Client(\"B5\", \"njedvvv\"));\r\n//\t\tmetier.addClient(new Client(\"R5\", \"njeddd\"));\r\n//\t\tmetier.addClient(new Client(\"Y4\", \"njedzzzd\"));\r\n//\t\t\r\n//\t\tmetier.addEmploye(new Employe(\"1E\"), null);\r\n//\t\tmetier.addEmploye(new Employe(\"2E\"), (long) 1);\r\n//\t\tmetier.addEmploye(new Employe(\"3E\"), (long) 1);\r\n//\r\n//\t\tmetier.addGroupe(new Groupe(\"G1\"));\r\n//\t\tmetier.addEmployeToGroupe(2L, 1L);\r\n//\t\tmetier.addEmployeToGroupe(1L, 1L);\r\n//\t\tmetier.addEmployeToGroupe(3L, 1L);\r\n//\t\tCompteCourant cp= (CompteCourant) context.getBean(\"compteCourant\");\r\n//\t\tcp.setDateCreation(new Date());\r\n//\t\tcp.setNumCompte(\"TN13212545\");\r\n//\t\tcp.setSolde(999.222);\r\n//\t\tmetier.addCompte(new CompteCourant(\"TN1562321544\", new Date(), 1000L, 100L), 1L, 2L);\r\n\t\t\r\n//\t\tCompteCourant cc=(CompteCourant) context.getBean(\"compteCourant\");\r\n//\t\tcc.setNumCompte(\"TN55566644\");\r\n//\t\tcc.setDateCreation(new Date());\r\n//\t\tcc.setSolde(300L);\r\n//\t\tcc.setDecouvert(100L);\r\n//\t\tmetier.addCompte(new CompteCourant(\"TN55566644\", new Date(), 300L, 100L), 2L, 3L);\r\n//\t\tmetier.addCompte(new CompteEpargne(\"FR1545457\", new Date(), 2000L, 4.5), 2L, 3L);\r\n\t\t//metier.addCompte(cc, 2L, 3L);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"com/spring/annotations/annotation-config.xml\");\n\t\tStudent stu = context.getBean(\"firstStudent\",Student.class);\n\t\tSystem.out.println(stu);\n\t\tcontext.close();\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tResource resource = new FileSystemResource(\"src/main/resources/beanContainer.xml\");\t\t// 경로 지정해서 설정\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\n\t\t\n\t\tHello obj = (Hello)factory.getBean(\"hello\");\n\t\tobj.printMsg();\n\t\t\n\t\tHello obj2 = (Hello)factory.getBean(\"hello2\");\n\t\tobj2.printMsg();\n\t\t\n\t\tHello obj3 = (Hello)factory.getBean(\"hello\");\n\t\tobj3.printMsg();\n\t\t\n\t\tSystem.out.println(obj);\n\t\tSystem.out.println(obj2);\n\t\tSystem.out.println(obj3);\n\t}",
"public static void main(String[] args) {\r\n\t\t\t\t\r\n\t\tResource resource = new ClassPathResource(\"beans.xml\");\r\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\r\n\t\tEmployee employee = (Employee) factory.getBean(\"emp\");\r\n\t\tSystem.out.println(employee);\r\n\t\t}",
"public static void main(String[] args) {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"spel.xml\");\n Root root = applicationContext.getBean(\"root\", Root.class);\n root.say();\n }",
"public static void main(String[] args) {\n\t\tApplicationContext ac=new ClassPathXmlApplicationContext(\"com/nt/cfgs/applicationContext.xml\");\n\t\t\n\t\t//get Bean\n\t\tVechile vechile = ac.getBean(\"vech\", Vechile.class);\n\t\tvechile.move();\n\t}",
"public static void main(String[] args) {\n\r\n\t\tApplicationContext ctx = new ClassPathXmlApplicationContext(\"empaccconfig.xml\");\r\n\t\t\r\n\t\tEmployee em = (Employee)ctx.getBean(\"emp\");\r\n\t\tem.printValues();\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"beans-cp.xml\");\n \n SpringJdbc springJdbc=ctx.getBean(SpringJdbc.class);\n springJdbc.actionMethod();\n \n //Lectura de Bean \n //OrganizationDao organizationDao = (OrganizationDao) ctx.getBean(\"organizationDao\");\n \n ((ClassPathXmlApplicationContext) ctx).close();\n }"
] |
[
"0.73904794",
"0.6737637",
"0.6621376",
"0.6539924",
"0.65192753",
"0.6466479",
"0.6448297",
"0.6369919",
"0.6356722",
"0.6348369",
"0.6332169",
"0.63096935",
"0.627152",
"0.62624365",
"0.6231576",
"0.62311614",
"0.6220719",
"0.62201214",
"0.617069",
"0.61621004",
"0.615865",
"0.61429167",
"0.6141072",
"0.61220247",
"0.6113034",
"0.6102957",
"0.6095675",
"0.60713744",
"0.60704803",
"0.6063367",
"0.5961125",
"0.5946093",
"0.58920777",
"0.58786774",
"0.5863196",
"0.5848273",
"0.5844417",
"0.5814878",
"0.5797354",
"0.5792212",
"0.5774904",
"0.5761276",
"0.5739348",
"0.57326704",
"0.57307404",
"0.57301855",
"0.5721954",
"0.5712502",
"0.5707262",
"0.56854594",
"0.5682561",
"0.56734276",
"0.56688577",
"0.56656206",
"0.5661331",
"0.56516755",
"0.5643587",
"0.5643013",
"0.5642965",
"0.5638117",
"0.5633882",
"0.5629804",
"0.55841684",
"0.55827725",
"0.55809665",
"0.55801183",
"0.55657655",
"0.5561825",
"0.55598986",
"0.55420405",
"0.55394423",
"0.55134773",
"0.5507651",
"0.55056983",
"0.55020493",
"0.5484224",
"0.5482392",
"0.54730624",
"0.5456738",
"0.54563457",
"0.5450121",
"0.54415435",
"0.54342353",
"0.5429427",
"0.5423437",
"0.54033166",
"0.5401377",
"0.54010445",
"0.53977686",
"0.53923565",
"0.53913546",
"0.538942",
"0.5381094",
"0.53643477",
"0.5360892",
"0.53589463",
"0.534544",
"0.533287",
"0.5330364",
"0.5325143"
] |
0.5836193
|
37
|
Get current node at position (can be enclosing class or method)
|
@Nullable
ICodeNodeRef getNodeAt(int position);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Node<E> getCursor() {\n if (isCurrent()) { return cursor; }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }",
"Node currentNode();",
"public Node getCurrent() {\n return current;\n }",
"public int getCurrentNode() {\n\t\treturn currentNode;\n\t}",
"INodeState getCurrentNode();",
"Element getElement(Position pos);",
"public final int getContextNode(){\n return this.getCurrentNode();\n }",
"public int getPosition() {\n\treturn (_current);\n }",
"public Integer getPosition();",
"public Token current() {\n \tif( current == null ) {\n \t\treturn peek;\n \t}\n return current;\n }",
"public int currentindex() {\n\t\treturn currentElement;\n\t}",
"@Override\n\tpublic Position getPosition() \n\t{\n\t\treturn currentPosition;\n\t}",
"protected BlockStmt currentBlock() {\n return enclosingBlocks.peekFirst();\n }",
"Object getPosition();",
"Node getNode();",
"public int Node() { return this.Node; }",
"@Override\n public E getCurrent() {\n if (isCurrent()) { return cursor.getData(); }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }",
"public int getPosition();",
"public Node top() {\r\n\t\treturn start;\r\n\t}",
"public final native Element node()/*-{\n\t\treturn this.node();\n\t}-*/;",
"private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}",
"Elem getPointedElem();",
"private SourcePosition getTreeStartLocation() {\n return peekToken().location.start;\n }",
"public de.engehausen.crazygolf.model.Element getCurrent() {\r\n\t\treturn current;\r\n\t}",
"@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}",
"public Node peek() {\n \t\t// TODO Complete this method!\n \t\treturn getNode(1);\n \t}",
"public int getCurrentPosition() {\n\t\treturn mCurrentViewIndex - getChildCount();\n\t}",
"public Node getChild();",
"public Node getNode();",
"public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}",
"Position getPosition();",
"Position getPosition();",
"Node<UnderlyingData> getCurrentLineNode();",
"Token current();",
"public E peek(){\n\t\treturn top.element;\n\t}",
"Node getSourceNode();",
"public Item current() {\n return curr;\n }",
"public Position getPosition();",
"public Position getPosition();",
"public Position getPosition();",
"public int getPos();",
"public int getPos();",
"public int getParent();",
"public ContextNode getContextNode();",
"@Nullable\n\tICodeNodeRef getNodeBelow(int position);",
"public Node getNode(int position)throws ListExeption;",
"public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }",
"public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }",
"int getBaseNode();",
"int getPosition();",
"public Position getCurrentPosition(){return this.currentPosition;}",
"public interface Cursor\n{\n\n Cursor next_sibling ();\n\n Cursor first_child ();\n\n // Element element ();\n\n}",
"public Node elementAt() {\n\t\treturn mHead.next;\n\t}",
"public interface Position<E> {\n\t/**\n\t * Returns the element contained in the node\n\t * @return the element contained in the node\n\t */\n\tpublic E element();\n}",
"public Node getParent();",
"public TreeNode getParentNode();",
"public int getCurrentPos() {\n return currentPos;\n }",
"public MorphCell current()\n {\n return this.morphs.get(this.index);\n }",
"public Position<Edge<E>> getPosition() { return pos; }",
"public abstract TreeNode getNode(int i);",
"private int Parent(int position) {\r\n\t\treturn position/2;\r\n\t}",
"int getPosition(Object elementID) throws Exception;",
"public abstract ContextNode getContextNode();",
"public long getNodeIndex();",
"public abstract Position<E> getLeftChild(Position<E> p);",
"public SoNode getNodeAppliedTo() {\n \t \t return pimpl.appliedcode == SoAction.AppliedCode.NODE ? pimpl.applieddata.node : null;\n \t \t }",
"public int PositionGet();",
"public String getForwardNode() {\r\n\t\ttry {\r\n\t\t\treturn path.getNextNode(procNode);\r\n\t\t} catch (Exception e) {return null; /* In case of an error!*/}\t\t\r\n\t}",
"public int getPosition(){\n return -1;\n }",
"@Override\n\t/**\n\t * returns the position of the class\n\t * \n\t * @return position\n\t */\n\tpublic int getPosition() {\n\t\treturn position;\n\t}",
"public Node returnNextChild(){\n try{\n return children.get(counter);\n }catch(Exception ex){\n return null;\n }\n }",
"public int indexOf() { return _parent!=null? _parent.indexOfChild(this) : -1; }",
"public Token peekToken() {\r\n return this.current;\r\n }",
"Object getDocumentNode(Object contextNode);",
"public int position() {\n return pos;\n }",
"public final IRNode getNode() {\r\n return f_node;\r\n }",
"public abstract Position getPosition();",
"Node<T> parent();",
"public String getTextInCurrentElement() throws ParseException {\n int lessThan = html.lastIndexOf(\"<\", position);\n if (lessThan == -1) {\n throw new ParseException(\"Cannot find text in current element\", position);\n }\n position = lessThan;\n String tag = findCurrentTag(html, position);\n return getTextInNextElement(tag);\n }",
"public abstract Node getBoundingNode();",
"public StackNode peekNode() {\n return lastNode;\n }",
"public abstract Position<E> getRightSibling(Position<E> p);",
"public abstract Node getNode();",
"public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}",
"public abstract Position<E> getRightChild(Position<E> p);",
"private int parent(int pos)\n {\t\n return (int)Math.ceil((double)Math.max(0, pos-2)/2);\n }",
"@Override\n public Position getPosition() {\n return position;\n }",
"public abstract Position<E> getLeftSibling(Position<E> p);",
"public Integer getPosition()\n {\n return position;\n }",
"public Object peek() {\n return fStack.peek();\n }",
"public long getPosition();",
"public Player getCurrent(){\n\t\tPlayer p;\n\t\ttry{\n\t\t\tp = this.players.get(this.currElem);\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.out.println(\"There isn't any players.\");\n\t\t\tp = null;\n\t\t}\n\t\t\t\n\t\treturn p; \n\t}",
"public Node getNode() {\n return node;\n }",
"public Node getNode() {\n return node;\n }",
"public Node getCameFrom()\n\t{\n\t\treturn cameFrom;\n\t}",
"public E getElement(int position){\r\n\t\t// Position is larger than the current size.\r\n\t\tif(checkPosition(position)){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getDoubleNodeAt(position).element;\r\n\t}",
"public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }",
"public Position getPosition()\n\t{\n\t\treturn position;\n\t}",
"public final ControlPosition getPosition() {\n return impl.getPosition();\n }",
"private int currentPosition() {\n return robot.leftBack.getCurrentPosition();\n }"
] |
[
"0.70653814",
"0.6967167",
"0.6897334",
"0.6641008",
"0.6479416",
"0.6462541",
"0.6415756",
"0.6402523",
"0.63371426",
"0.63145703",
"0.6283476",
"0.6241237",
"0.62310797",
"0.61807495",
"0.61249447",
"0.6111826",
"0.6101159",
"0.6099352",
"0.6069925",
"0.6069623",
"0.6035018",
"0.6032815",
"0.6023104",
"0.6019226",
"0.6012602",
"0.59873724",
"0.59808385",
"0.597077",
"0.59644526",
"0.5955807",
"0.5941226",
"0.5941226",
"0.59364057",
"0.59244454",
"0.5921932",
"0.5914053",
"0.5907714",
"0.58811104",
"0.58811104",
"0.58811104",
"0.586418",
"0.586418",
"0.5856252",
"0.5846629",
"0.58422804",
"0.5839627",
"0.5833154",
"0.5819952",
"0.5817518",
"0.58158517",
"0.57944083",
"0.57920915",
"0.577857",
"0.5768964",
"0.5736098",
"0.5711392",
"0.57107997",
"0.5706216",
"0.56992716",
"0.568821",
"0.5679289",
"0.56734174",
"0.56652266",
"0.56543815",
"0.563909",
"0.5623615",
"0.56222326",
"0.5620474",
"0.56141394",
"0.56057125",
"0.560094",
"0.5597155",
"0.5590733",
"0.557989",
"0.5577967",
"0.5568196",
"0.55676913",
"0.55605555",
"0.55513394",
"0.5547632",
"0.5545244",
"0.55444854",
"0.5541757",
"0.55369383",
"0.5529943",
"0.55240524",
"0.5521893",
"0.5520892",
"0.55181754",
"0.55176127",
"0.55175275",
"0.55172384",
"0.5514928",
"0.5514928",
"0.5510721",
"0.5510566",
"0.55054945",
"0.5502765",
"0.549742",
"0.54966664"
] |
0.5921824
|
35
|
Any definition of class or method below position
|
@Nullable
ICodeNodeRef getNodeBelow(int position);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void testInClassDeclaringType2() throws Exception {\n String contents = \n \"class Baz {\\n\" +\n \" def method = {\\n\" +\n \" other\\n\" +\n \" }\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Baz\", false, true);\n }",
"@Override\n public void visit(ClassDefinitionNode classDefinitionNode) {\n }",
"public void testInClassDeclaringType1() throws Exception {\n String contents = \n \"class Baz {\\n\" +\n \" def method() {\\n\" +\n \" other\\n\" +\n \" }\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Baz\", false, true);\n }",
"public void masterDeclaration();",
"@Override\n public ClassTree declaration() {\n return null;\n }",
"public void firstClass(){\n }",
"protected int findBeginLine(AClassBody node) {\n LinkedList list = node.getClassBodyDeclaration();\n Iterator iter = list.iterator();\n // Start with a nice default.\n int line = node.getLBrace().getLine();\n while (iter.hasNext()) {\n Object o = iter.next();\n\n if (o instanceof AClassMemberDeclarationClassBodyDeclaration) {\n AClassMemberDeclarationClassBodyDeclaration acmdcbd =\n (AClassMemberDeclarationClassBodyDeclaration) o;\n PClassMemberDeclaration pcmd =\n acmdcbd.getClassMemberDeclaration();\n\n if (pcmd instanceof AMethodDeclarationClassMemberDeclaration) {\n AMethodDeclarationClassMemberDeclaration amdcmd =\n (AMethodDeclarationClassMemberDeclaration) pcmd;\n AMethodDeclaration amd = (AMethodDeclaration)\n amdcmd.getMethodDeclaration();\n PMethodHeader pmh = amd.getMethodHeader();\n\n if (pmh instanceof ATypeMethodHeader) {\n ATypeMethodHeader atmh = (ATypeMethodHeader) pmh;\n PMethodDeclarator pmd = atmh.getMethodDeclarator();\n if (pmd instanceof AIdentifierMethodDeclarator) {\n AIdentifierMethodDeclarator aimd =\n (AIdentifierMethodDeclarator) pmd;\n TIdentifier ti = aimd.getIdentifier();\n line = ti.getLine();\n break;\n }\n\n } else if (pmh instanceof AVoidMethodHeader) {\n AVoidMethodHeader avmh = (AVoidMethodHeader) pmh;\n PMethodDeclarator pmd = avmh.getMethodDeclarator();\n if (pmd instanceof AIdentifierMethodDeclarator) {\n AIdentifierMethodDeclarator aimd =\n (AIdentifierMethodDeclarator) pmd;\n TIdentifier ti = aimd.getIdentifier();\n line = ti.getLine();\n break;\n }\n }\n }\n\n } else if (o instanceof\n AConstructorDeclarationClassBodyDeclaration) {\n AConstructorDeclarationClassBodyDeclaration acdcbd =\n (AConstructorDeclarationClassBodyDeclaration) o;\n AConstructorDeclaration acd = (AConstructorDeclaration)\n acdcbd.getConstructorDeclaration();\n AConstructorDeclarator acdr = (AConstructorDeclarator)\n acd.getConstructorDeclarator();\n ASimpleName asn = (ASimpleName) acdr.getSimpleName();\n TIdentifier ti = asn.getIdentifier();\n line = ti.getLine();\n break;\n\n } else if (o instanceof AStaticInitializerClassBodyDeclaration) {\n AStaticInitializerClassBodyDeclaration asicbd =\n (AStaticInitializerClassBodyDeclaration) o;\n AStaticInitializer asi = (AStaticInitializer)\n asicbd.getStaticInitializer();\n ABlock ab = (ABlock) asi.getBlock();\n TLBrace tlb = ab.getLBrace();\n line = tlb.getLine();\n break;\n\n } else if (o instanceof ABlockClassBodyDeclaration) {\n ABlockClassBodyDeclaration abcbd =\n (ABlockClassBodyDeclaration) o;\n ABlock ab = (ABlock) abcbd.getBlock();\n TLBrace tlb = ab.getLBrace();\n line = tlb.getLine();\n break;\n }\n }\n return line;\n }",
"public void testInScriptDeclaringType() throws Exception {\n String contents = \n \"other\\n\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Search\", false, true);\n }",
"public void testInClosureDeclaringType4() throws Exception {\n String contents = \n \"class Bar {\\n\" +\n \" def method() { }\\n\" +\n \"}\\n\" +\n \"new Bar().method {\\n \" +\n \" this\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"this\");\n int end = start + \"this\".length();\n assertDeclaringType(contents, start, end, \"Search\", false);\n }",
"@Override\n\tpublic String visitClassDeclaration(ClassDeclarationContext ctx){\n\t\ttable.enterScope();\t\t\n\t\tvisit(ctx.getChild(4)); //visit methodList. \n\t\ttable.exitScope();\n\t\treturn null;\n\t}",
"public interface Position {}",
"public abstract void MussBeDefined();",
"private void classDeclaration(Modifier modifier, Scope scope, String basename)\r\n {\r\n Vector queue = new Vector();\r\n HashSet dummy = unresolved;\r\n ClassType x = new ClassType();\r\n unresolved = x.unresolved;\r\n\r\n if (comment != null && comment.length() > 0)\r\n {\r\n x.comment = comment + '\\n';\r\n resetComment();\r\n }\r\n\r\n matchKeyword(Keyword.CLASSSY);\r\n\r\n if (!scopeStack.contains(scope))\r\n scopeStack.add(scope);\r\n\r\n x.name = nextToken;\r\n\r\n //if (basename.compareTo(nextToken.string) != 0 && basename.length() > 0)\r\n // modifier.access &= ~Keyword.PUBLICSY.value;\r\n\r\n modifier.check(modifier.classes | modifier.access & (basename.compareToIgnoreCase(nextToken.string) != 0 && basename.length() > 0?~Keyword.PUBLICSY.value:-1));\r\n\r\n if ((modifier.cur & Keyword.ABSTRACTSY.value) == 0)\r\n modifier.methods &= ~Keyword.ABSTRACTSY.value;\r\n else\r\n modifier.methods |= Keyword.ABSTRACTSY.value;\r\n\r\n x.modify |= modifier.cur;\r\n\r\n matchKeyword(Keyword.IDENTSY);\r\n\r\n declMember(scope, x);\r\n\r\n x.scope = new Scope(scope, Scope.classed, x.name.string);\r\n\r\n if (nextSymbol == Keyword.EXTENDSSY)\r\n {\r\n lookAhead();\r\n Type t = type();\r\n x.extend = new ClassType(t.ident.string.substring(t.ident.string.lastIndexOf('.') + 1));\r\n }\r\n else if (((x.modify & Keyword.STATICSY.value) != 0 || (Scope)scopeStack.get(0) == scope) && x.name.string.compareTo(\"Object\") != 0)\r\n {\r\n x.extend = new ClassType(\"Object\");\r\n unresolved.add(x.extend.name.string);\r\n }\r\n else\r\n x.extend = new ClassType();\r\n\r\n if (nextSymbol == Keyword.IMPLEMENTSSY)\r\n {\r\n lookAhead();\r\n x.implement = typeList();\r\n }\r\n else\r\n x.implement = new ClassType[0];\r\n\r\n if ((modifier.cur & Keyword.ABSTRACTSY.value) != 0 && (modifier.cur & modifier.constructors) == 0)\r\n modifier.cur |= Keyword.PUBLICSY.value ;\r\n\r\n modifier.cur &= modifier.constructors;\r\n\r\n classBody(x, new Modifier(), \"\", queue);\r\n\r\n Iterator iter = x.scope.iterator();\r\n\r\n while(iter.hasNext())\r\n {\r\n Basic b = (Basic)iter.next();\r\n\r\n if (b instanceof MethodType)\r\n if ((b.modify & Keyword.STATICSY.value) != 0)\r\n { // remove this from static method\r\n MethodType m = (MethodType)b;\r\n m.scope.remove(\"§this\");\r\n if (m.parameter.length > 0 && m.parameter[0].name.string.compareTo(\"§this\") == 0)\r\n {\r\n Parameter [] p = new Parameter[m.parameter.length - 1];\r\n\r\n for(int i = 0; i < p.length; i++)\r\n p[i] = m.parameter[i + 1];\r\n\r\n m.parameter = p;\r\n }\r\n }\r\n }\r\n\r\n // add queue to constructors\r\n addToConstructor(x, queue);\r\n unresolved = dummy;\r\n\r\n writeList(x);\r\n }",
"public void method_4270() {}",
"public void searchClassMemberDeclarations(String name, SearchIdConsumer consumer);",
"private static boolean classModifiers_1_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"classModifiers_1_1_0\")) return false;\n boolean r;\n r = consumeToken(b, BASE);\n if (!r) r = consumeToken(b, INTERFACE);\n if (!r) r = consumeToken(b, FINAL);\n return r;\n }",
"public void skystonePos6() {\n }",
"private static boolean methodDeclaration_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"methodDeclaration_1_0\")) return false;\n boolean r;\n r = consumeToken(b, EXTERNAL);\n if (!r) r = consumeToken(b, STATIC);\n if (!r) r = consumeToken(b, CONST);\n return r;\n }",
"public void testInClosureDeclaringType2() throws Exception {\n String contents = \n \"class Baz {\\n\" +\n \" def method() { }\\n\" +\n \"}\\n\" +\n \"class Bar extends Baz {\\n\" +\n \"}\\n\" +\n \"new Bar().method {\\n \" +\n \" other\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Search\", false, true);\n }",
"public void testSpecificBody(){\n $method $m = $method.of().$body(new Object(){ void m(Object $any$) { \n System.out.println($any$); \n }});\n \n class C {\n public void g(){\n System.out.println(1);\n } \n public void t(){\n // A comment is ignored when matching\n System.out.println( \"Some text \"); \n } \n } \n assertNotNull($m.firstIn(C.class));\n assertNotNull($m.selectFirstIn(C.class).is(\"any\", 1));\n assertEquals(2, $m.listIn(C.class).size()); \n }",
"@Override\n public void visit(ClassOrInterfaceDeclaration n, Object arg) {\n \tif(n.getJavaDoc()!=null){\n \t\tclassInfo.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tcomment = comment.replaceAll(\"(?s)\\\\*(.*)\",\"\");\n\t \tclassInfo.add(comment.trim()); \n \t}\n \t}",
"private void memberDecl(Modifier modify, ClassType object, Vector queue)\r\n {\r\n Type dummy = returns;\r\n\r\n if (identAndLPar())\r\n {\r\n if ((modify.cur & modify.constructors) == 0)\r\n modify.cur |= Keyword.PUBLICSY.value ;\r\n\r\n modify.check(modify.constructors | modify.methods);\r\n MethodType x = member = new MethodType(modify.cur | Keyword.CONSTRUCTORSY.value);\r\n\r\n x.comment = comment + '\\n';\r\n resetComment();\r\n\r\n x.type = new Type();\r\n x.type.type = Keyword.NONESY;\r\n x.type.ident = object.name;\r\n x.type.version = object.version;\r\n returns = x.type;\r\n x.name = nextToken;\r\n matchKeyword(Keyword.IDENTSY);\r\n \r\n if (x.name.string.compareTo(object.name.string) != 0)\r\n error(\"missing type of method\");\r\n \r\n constructorDeclaratorRest(x, object);\r\n member = null;\r\n }\r\n else if (nextSymbol == Keyword.VOIDSY)\r\n {\r\n modify.check(modify.methods | modify.access);\r\n MethodType x = member = new MethodType(modify.cur);\r\n\r\n x.comment = comment + '\\n';\r\n resetComment();\r\n\r\n x.type = new Type();\r\n x.type.type = Keyword.VOIDSY;\r\n returns = x.type;\r\n lookAhead();\r\n if (nextSymbol == Keyword.INVERTSY)\r\n { // allow prefix ~ for destructor method\r\n lookAhead();\r\n nextToken.string = '~' + nextToken.string;\r\n }\r\n x.name = nextToken;\r\n matchKeyword(Keyword.IDENTSY);\r\n voidMethodDeclaratorRest(modify, x, object);\r\n member = null;\r\n }\r\n else if (nextSymbol == Keyword.CLASSSY)\r\n {\r\n modify.check(modify.classes | modify.access);\r\n classDeclaration(modify, object.scope, \"\");\r\n }\r\n else if (nextSymbol == Keyword.INTERFACESY)\r\n {\r\n modify.check(modify.interfaces | modify.access);\r\n interfaceDeclaration(modify, object.scope, \"\");\r\n }\r\n else\r\n methodOrFieldDeclaration(modify, object, queue);\r\n\r\n returns = dummy;\r\n }",
"public void doClass(String callerName) throws LexemeException {\n\t\tlogMessage(\"<class>--> class ID [extends ID]{{<member>}}\");\n\t\tfunctionStack.push(\"<class>\");\n\t\tconsumeToken(); // consume class token\n\t\t// check ID token\n\t\tif (ifPeekThenConsume(\"ID_\")) {\n\t\t\t// check for optional EXTENDS_ token\n\t\t\tif (ifPeek(\"EXTENDS_\")) {\n\t\t\t\tconsumeToken();\n\t\t\t\tifPeekThenConsume(\"ID_\");\n\t\t\t}\n\t\t\t// check for left curly\n\t\t\tif (ifPeekThenConsume(\"L_CURLY_\")) {\n\n\t\t\t\twhile (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\") || ifPeekIsType()) {\n\t\t\t\t\t// check for optional PUBLIC_ & STATIC_ tokens\n\t\t\t\t\tif (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\")) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t} else if (ifPeekIsType()) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO check for arraytype!!\n\t\t\t\t// CHECK ClOSING CURLY\n\n\t\t\t\t// TODO uncomment line\n\t\t\t\tifPeekThenConsume(\"R_CURLY_\");\n\t\t\t}\n\n\t\t}\n\t\tlogVerboseMessage(callerName);\n\t\tfunctionStack.pop();\n\t}",
"public ClassInfo declaringClass();",
"public void skystonePos4() {\n }",
"public void skystonePos5() {\n }",
"public void startPosition();",
"public void skystonePos2() {\n }",
"@Override\n\t/**\n\t * returns the position of the class\n\t * \n\t * @return position\n\t */\n\tpublic int getPosition() {\n\t\treturn position;\n\t}",
"public void calling(){ // when the abstract method is implemented in other class 'public' keyword is used..\r\n System.out.println(\"I am calling...\");\r\n }",
"private boolean isConstructor() {\n \tif (line.contains(\"new \")) {\n \t\treturn false;\n \t}\n int bracket = line.indexOf(\"(\");\n if(bracket==-1) {\n return false;\n }\n String declaration = line.substring(0,bracket);\n String[] words = declaration.split(\"\\\\s+\");\n return words[words.length-1].equals(className);\n }",
"public void skystonePos3() {\n }",
"public abstract Annotations mo30682c();",
"StackManipulation virtual(TypeDescription invocationTarget);",
"private static boolean methodDeclaration_4_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"methodDeclaration_4_0\")) return false;\n boolean r;\n r = consumeToken(b, SEMICOLON);\n if (!r) r = functionBodyOrNative(b, l + 1);\n if (!r) r = redirection(b, l + 1);\n return r;\n }",
"public void foo() {\r\n\t}",
"private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }",
"int getDef();",
"public void bark() { //Class Method declaration\r\n\tint body = tail+legs; // add function\r\n\tSystem.out.println(\"Print the Class Method Declaration this will be called by the Syntax dog.bark\");\r\n\tSystem.out.println(\"Print the add function assigned in the method:- \" + body);\r\n\t}",
"@Test\n\tpublic void test_ClassDeclarationLocalToMethodNoParameters_Dec_1_Ref_0() {\n\t\tconfigureParser(\"public class Other { public void method() { class Foo{} } }\", \"Foo\", 1, 0);\n\t}",
"@Override\n\tpublic void inAClassBody(AClassBody node) {\n // Determine the start and end line numbers.\n int begin = findBeginLine(node);\n int end = node.getRBrace().getLine();\n String cname = null;\n Node parentNode = node.parent();\n if (parentNode instanceof AClassDeclaration) {\n // This handles normal class declarations, as well as\n // named inner class declaractions.\n AClassDeclaration parent = (AClassDeclaration) parentNode;\n TIdentifier name = parent.getIdentifier();\n cname = name.getText();\n\n } else if (parentNode instanceof\n ASimpleClassInstanceCreationExpression\n || parentNode instanceof\n AQualifiedClassInstanceCreationExpression\n || parentNode instanceof\n AInnerclassClassInstanceCreationExpression) {\n // This handles an anonymous inner class declaration.\n // Use special value of 'new' for anonymous classes.\n cname = ANONYMOUS_CLASS_NAME;\n }\n int braceLine = node.getLBrace().getLine();\n ClassDefinition cd = new ClassDefinition(cname, braceLine, begin, end);\n classLines.add(cd);\n }",
"public abstract void mo70713b();",
"boolean hasDef();",
"@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tmethod.add(comment.trim()); \n\t \tmethods.add(method);\n \t}\n \t}",
"public abstract Set<MethodUsage> getDeclaredMethods();",
"private ClassInstance checkClassInstanceDefinition(ParseTreeNode instanceNode) {\r\n \r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ParseTreeNode optionalCALDocNode = instanceNode.firstChild();\r\n optionalCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode instanceNameNode = optionalCALDocNode.nextSibling();\r\n //do most of the checking for the part of the instance declaration that occurs between the \"instance\" and \"where\" keywords. \r\n ClassInstance classInstance = resolveInstanceName (instanceNameNode);\r\n \r\n ParseTreeNode instanceMethodListNode = instanceNameNode.nextSibling();\r\n instanceMethodListNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD_LIST);\r\n \r\n TypeClass typeClass = classInstance.getTypeClass();\r\n \r\n Set<String> instanceMethodNamesSet = new HashSet<String>();\r\n \r\n for (final ParseTreeNode instanceMethodNode : instanceMethodListNode) {\r\n \r\n instanceMethodNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD);\r\n \r\n ParseTreeNode optionalInstanceMethodCALDocNode = instanceMethodNode.firstChild();\r\n optionalInstanceMethodCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode instanceMethodNameNode = optionalInstanceMethodCALDocNode.nextSibling();\r\n instanceMethodNameNode.verifyType(CALTreeParserTokenTypes.VAR_ID); \r\n String instanceMethodName = instanceMethodNameNode.getText(); \r\n \r\n if (!instanceMethodNamesSet.add(instanceMethodName)) {\r\n //each instance method can be defined only once\r\n compiler.logMessage(new CompilerMessage(instanceMethodNameNode, new MessageKind.Error.MethodDefinedMoreThanOnce(instanceMethodName, classInstance.getNameWithContext())));\r\n continue; \r\n }\r\n \r\n ClassMethod classMethod = typeClass.getClassMethod(instanceMethodName);\r\n if (classMethod == null) {\r\n //instance method must first be declared by the type class that the instance is an instance of\r\n compiler.logMessage(new CompilerMessage(instanceMethodNameNode, new MessageKind.Error.MethodNotDeclaredByClass(instanceMethodName, typeClass.getName().getQualifiedName())));\r\n continue;\r\n }\r\n \r\n ParseTreeNode resolvingFunctionNameNode = instanceMethodNameNode.nextSibling();\r\n QualifiedName resolvingFunctionName = resolveResolvingFunction(resolvingFunctionNameNode);\r\n classInstance.addInstanceMethod(classMethod, resolvingFunctionName); \r\n }\r\n \r\n //check that the instance has an instance method defined for each class method in the type class that does not have\r\n //a default class method.\r\n if (typeClass.getNClassMethods() != instanceMethodNamesSet.size()) {\r\n \r\n //(String set) the class methods that are required to be implemented (because they have no defaults) but were not in this instance.\r\n Set<String> unimplementedMethodsNamesSet = new LinkedHashSet<String>();\r\n {\r\n for (int i = 0, nClassMethods = typeClass.getNClassMethods(); i < nClassMethods; ++i) {\r\n ClassMethod classMethod = typeClass.getNthClassMethod(i);\r\n if (!classMethod.hasDefaultClassMethod()) {\r\n unimplementedMethodsNamesSet.add(classMethod.getName().getUnqualifiedName());\r\n }\r\n }\r\n \r\n unimplementedMethodsNamesSet.removeAll(instanceMethodNamesSet);\r\n }\r\n \r\n for (final String methodName : unimplementedMethodsNamesSet) {\r\n \r\n // ClassInstanceChecker: the method {methodName} is not defined by the instance {classInstance.getNameWithContext()}.\r\n compiler.logMessage(new CompilerMessage(instanceNode, new MessageKind.Error.MethodNotDefinedByInstance(methodName, classInstance.getNameWithContext())));\r\n }\r\n }\r\n \r\n return classInstance;\r\n }",
"public void method_115() {}",
"MethodStart createMethodStart();",
"Decl getWhole();",
"private void withMethodBody(){\n\t\tSystem.out.print(\"This is without abstract \");\n\t\t}",
"public abstract Member mo23408O();",
"@Override\n\tpublic void absMethod() {\n\t\tSystem.out.println(\"This is extends from AbstactClass.\");\n\t\t\n\t}",
"private void visitAdditionalEntrypoints() {\n\tLinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();\n\tfor(jq_Method m: publicMethods) {\n\t extraClasses.add(m.getDeclaringClass());\n\t}\n\t\n\tfor(jq_Class cl: extraClasses) {\n\t visitClass(cl);\n\t\t\tjq_Method ctor = cl.getInitializer(new jq_NameAndDesc(\"<init>\", \"()V\"));\n\t\t\tif (ctor != null)\n\t\t\t\tvisitMethod(ctor);\n\t}\n\n\tfor(jq_Method m: publicMethods) {\n\t visitMethod(m);\n\t}\n }",
"public boolean isDeclared(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.isDeclared(int):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.isDeclared(int):boolean\");\n }",
"@Override\n\tpublic void find() {\n\t\tSystem.out.println(\"find method\");\n\t}",
"public void mo6944a() {\n }",
"public abstract int positionBonus();",
"private static Set<SootMethod> searchDownForDefineMethods(SootMethod sm,String type){\n\t\tSet<SootMethod> methods = new HashSet<SootMethod>();\n\t\t//1.判断sm中是否含有intent的定义信息,若有,则返回\n\t\tif(containsInitMethod(sm, type)){\n\t\t\tmethods.add(sm);\n\t\t}\n\t\telse{\n\t\t\tList<SootMethod> targets = InterMethodAnalysis.getTargetsMethods(sm);\t\n\t\t\tfor(SootMethod tgt:targets){\n\t\t\t\tif(tgt.equals(sm))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(tgt.getReturnType().toString().contains(type)){\n\t\t\t\t\tif(tgt.isAbstract()){\n\t\t\t\t\t\tfor(SootMethod smMethod:getConcreteMethods(tgt)){\n\t\t\t\t\t\t\tSet<SootMethod> methods2 = searchDownForDefineMethods(smMethod, type);\n\t\t\t\t\t\t\tfor(SootMethod m:methods2){\n\t\t\t\t\t\t\t\tif(!methods.contains(m)){\n\t\t\t\t\t\t\t\t\tmethods.add(m);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSet<SootMethod> methods2 = searchDownForDefineMethods(tgt, type);\n\t\t\t\t\t\tfor(SootMethod m:methods2){\n\t\t\t\t\t\t\tif(!methods.contains(m)){\n\t\t\t\t\t\t\t\tmethods.add(m);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn methods;\n\t}",
"public void testGRECLIPSE731f() throws Exception {\n String contents = \"class X { String xxx\\ndef foo() { }\\ndef meth() { xxx = foo()\\nxxx } }\";\n int start = contents.lastIndexOf(\"xxx\");\n int end = start + \"xxx\".length();\n assertType(contents, start, end, \"java.lang.String\");\n }",
"public ClassElement getDeclaringClass() {\n return patternAnalyser.getClassElement();\n }",
"@Override\n public Node override(Node n) {\n if (n instanceof ClassMember && !(n instanceof ClassDecl)) {\n return n;\n }\n\n return null;\n }",
"public interface ClassBody extends Term\n{\n /**\n * List of the class's members.\n * @return A list of {@link polyglot.ast.ClassMember ClassMember}.\n */\n List<ClassMember> members();\n\n /**\n * Set the class's members.\n * @param members A list of {@link polyglot.ast.ClassMember ClassMember}.\n */\n ClassBody members(List<ClassMember> members);\n\n /**\n * Add a member to the class, returning a new node.\n */\n ClassBody addMember(ClassMember member);\n}",
"public abstract jq_Method getDefiningMethod();",
"@Override\n\tpublic Void visit(ClassDef classDef) {\n\t\tprintIndent(\"class\");\n\t\tindent++;\n\t\tclassDef.self_type.accept(this);\n\t\tclassDef.base_type.accept(this);\n\t\tfor (var v : classDef.body)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"public abstract String getDefinition();",
"@Test\n\tpublic void test_ClassDeclarationLocalToMethodNoParametersPackage_Dec_1_Ref_0() {\n\t\tconfigureParser(\"package bar; public class Other { public void method() { class Foo{} } }\", \"Foo\", 1, 0);\n\t}",
"private void classBodyDeclaration(ClassType object, Modifier modifier, Vector queue)\r\n {\r\n Modifier x = new Modifier(modifier);\r\n x.cur = 0;\r\n\r\n if (nextSymbol == Keyword.SEMICOLONSY)\r\n {\r\n lookAhead();\r\n return;\r\n }\r\n\r\n if (nextSymbol == Keyword.STATICSY)\r\n {\r\n x.add(modifier());\r\n queue = object.statics;\r\n }\r\n\r\n if (nextSymbol == Keyword.LBRACESY)\r\n {\r\n Vector label = new Vector();\r\n //label.add(\"\" + Operation.newLabel());\r\n block(null, null, object.scope, label, Scope.MAIN, null, queue);\r\n }\r\n else\r\n {\r\n for(int y = modifier1(); y != 0; y = modifier())\r\n x.add(y);\r\n\r\n if ((x.cur & Keyword.NATIVESY.value) != 0)\r\n Errors.warning(nextToken.source, nextToken.line, nextToken.col, \"native detected!\", false);\r\n\r\n if ((x.cur & x.constructors) == 0)\r\n x.cur |= modifier.cur & modifier.constructors;\r\n\r\n if ((x.cur & Keyword.STATICSY.value) != 0)\r\n queue = object.statics;\r\n\r\n memberDecl(x, object, queue);\r\n }\r\n }",
"@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }",
"protected void checkMethods(DetailAST aAST)\n {\n final DetailAST objBlock = aAST.findFirstToken(TokenTypes.OBJBLOCK);\n if (objBlock != null) {\n DetailAST child = (DetailAST) objBlock.getFirstChild();\n while (child != null) {\n if (child.getType() == TokenTypes.METHOD_DEF) {\n checkMethod(child, \"create\", \"javax.ejb.CreateException\");\n checkMethod(child, \"find\", \"javax.ejb.FinderException\");\n }\n child = (DetailAST) child.getNextSibling();\n }\n }\n }",
"@Override\n\tpublic void visitXdef(Xsymbol p) {\n\n\t}",
"public void m23075a() {\n }",
"public void method_202() {}",
"public void method(){}",
"public int PositionGet();",
"public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }",
"private static boolean methodDeclaration_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"methodDeclaration_1\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!methodDeclaration_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"methodDeclaration_1\", c)) break;\n }\n return true;\n }",
"static boolean classMemberDefinition(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"classMemberDefinition\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_);\n r = factoryConstructorDeclaration(b, l + 1);\n if (!r) r = namedConstructorDeclaration(b, l + 1);\n if (!r) r = getterOrSetterDeclaration(b, l + 1);\n if (!r) r = methodDeclaration(b, l + 1);\n if (!r) r = varDeclarationListWithSemicolon(b, l + 1);\n if (!r) r = incompleteDeclaration(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::class_member_recover);\n return r;\n }",
"public void testInClosureDeclaringType3() throws Exception {\n String contents = \n \"class Baz {\\n\" +\n \" def method() { }\\n\" +\n \"}\\n\" +\n \"class Bar extends Baz {\\n\" +\n \" def sumthin() {\\n\" +\n \" new Bar().method {\\n \" +\n \" other\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Bar\", false, true);\n }",
"private void constructorDeclaratorRest(MethodType x, ClassType object)\r\n {\r\n Scope scope = object.scope;\r\n\r\n x.parameter = formalParameters();\r\n if (nextSymbol == Keyword.THROWSSY)\r\n {\r\n lookAhead();\r\n x.throwing = qualidentList();\r\n }\r\n else\r\n x.throwing = new String[0];\r\n\r\n Vector label = new Vector();\r\n label.add(Operation.newLabel() + \"\");\r\n x.scope = block(x, null, scope, label, Scope.MAIN, null, x.operation);\r\n\r\n scope.declInsertOverload(x);\r\n }",
"public abstract void mo30696a();",
"public void method_203() {}",
"public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}",
"public interface BottomRoot extends SkeletonObject{\n\n}",
"public void methodA();",
"@Override\r\n\tpublic void visit(StructDefinition structDefinition) {\n\r\n\t}",
"@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}",
"@Override\n\tpublic void find() {\n\n\t}",
"void info() {\n System.out.println(\"E16_OverloadJavaDoc is \" + height + \" feet tall\");\n }",
"public ObjectClassDefinitionImpl() {\n\t\t// empty\n\t}",
"@Test\n\tpublic void test_ClassDeclarationLocalToMethodWithParameters1_Dec_1_Ref_0() {\n\t\tconfigureParser(\"public class Other { public void method(int x) { class Foo{} }\", \"Foo\", 1, 0);\n\t}",
"String getDefiningEnd();",
"MethodEnd createMethodEnd();",
"public void amethod() {\n\t}",
"@Override\n protected String getInitialDoc(PythonParser.FuncdefContext rawMethod) {\n return null;\n }",
"public void smell() {\n\t\t\n\t}",
"static boolean standardClassDeclarationTail(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"standardClassDeclarationTail\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = standardClassDeclarationTail_0(b, l + 1);\n r = r && standardClassDeclarationTail_1(b, l + 1);\n r = r && standardClassDeclarationTail_2(b, l + 1);\n r = r && standardClassDeclarationTail_3(b, l + 1);\n r = r && standardClassDeclarationTail_4(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"public void andThisIsAMethodName(){}",
"protected int matchContainer() {\n if (this.pattern.findReferences)\n return ALL_CONTAINER;\n // declarations are only found in Class\n return CLASS_CONTAINER;\n }",
"@Override\n\tpublic void attendClass() {\n\t\tSystem.out.println(\"Attanding class locally\");\n\t}",
"public void mo21781F() {\n }",
"CodePosition getCodePosition();"
] |
[
"0.60327756",
"0.59564304",
"0.5954132",
"0.59427494",
"0.58347493",
"0.5821702",
"0.58112615",
"0.58015156",
"0.57241124",
"0.5718157",
"0.5717821",
"0.5714535",
"0.5694096",
"0.55753404",
"0.5559617",
"0.5506193",
"0.54943424",
"0.54840004",
"0.5470047",
"0.5467455",
"0.54533577",
"0.544993",
"0.5443958",
"0.54423136",
"0.54046947",
"0.5404248",
"0.5399426",
"0.5387663",
"0.53621686",
"0.53611743",
"0.5360452",
"0.53544056",
"0.5339774",
"0.5334269",
"0.5333046",
"0.53198147",
"0.531302",
"0.53129286",
"0.53124464",
"0.5305914",
"0.5282503",
"0.5278629",
"0.5267038",
"0.5265721",
"0.5260164",
"0.52553976",
"0.52484685",
"0.5247531",
"0.5232357",
"0.52309155",
"0.52253443",
"0.5220108",
"0.5218239",
"0.5216405",
"0.51942015",
"0.5180638",
"0.51704085",
"0.51642317",
"0.51569635",
"0.5154995",
"0.5143231",
"0.5142943",
"0.51418376",
"0.5134637",
"0.51103985",
"0.5110101",
"0.51061505",
"0.5105701",
"0.5102788",
"0.5101897",
"0.50998515",
"0.5092023",
"0.508947",
"0.50857055",
"0.5084089",
"0.50818276",
"0.5081633",
"0.5072936",
"0.5068295",
"0.50671786",
"0.50635666",
"0.5063456",
"0.506102",
"0.5060284",
"0.50595146",
"0.5059269",
"0.50507045",
"0.50499314",
"0.504597",
"0.5044397",
"0.5044305",
"0.5041039",
"0.5037491",
"0.5035898",
"0.5029619",
"0.5026721",
"0.50226855",
"0.50187665",
"0.50164604",
"0.50129026",
"0.5012794"
] |
0.0
|
-1
|
returns the version of the json schema for the partition metadata document.
|
public String getVersion() {
return version;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getSchemaVersion();",
"public int getSchemaVersion() {\n return SCHEMA_VERSION;\n }",
"public Integer getSchemaVersion() {\n return this.schemaVersion;\n }",
"public Integer getSchemaVersion() {\n return this.schemaVersion;\n }",
"BigDecimal getLqncoreSchemaVersion();",
"public int getVersionForSchema() {\n try (ITransaction tx = transactionProvider.getTransaction()) {\n try (Connection c = connectionProvider.getConnection()) {\n GetSchemaVersion cmd = new GetSchemaVersion(this.schemaName);\n return cmd.run(translator, c);\n } catch (SQLException x) {\n throw translator.translate(x);\n }\n }\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getMajorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(MAJORSCHEMAVERSION_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getMajorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(MAJORSCHEMAVERSION_PROP.get());\n }",
"BigDecimal getLqnSchemaVersion();",
"public int getMetaSchemas();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExtensionsSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXTENSIONSSCHEMAVERSION_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getMinorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(MINORSCHEMAVERSION_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExtensionsSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXTENSIONSSCHEMAVERSION_PROP.get());\n }",
"@NotNull\n @JsonProperty(\"version\")\n public Long getVersion();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getMinorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(MINORSCHEMAVERSION_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getPlatformMajorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(PLATFORMMAJORSCHEMAVERSION_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getPlatformMajorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(PLATFORMMAJORSCHEMAVERSION_PROP.get());\n }",
"String apiVersion();",
"public String getSchema()\n {\n return schema;\n }",
"private JsonSchema getDataUseInstance() {\n String schemaString = getDataUseSchemaV3();\n JsonSchemaFactory factory = JsonSchemaFactory.getInstance(VersionFlag.V7);\n return factory.getSchema(schemaString);\n }",
"public String getObject_schema() {\n return object_schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"String getRemoteSchema();",
"public SchemaInfo getSchema () throws Exception;",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getPlatformMinorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(PLATFORMMINORSCHEMAVERSION_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getPlatformMinorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(PLATFORMMINORSCHEMAVERSION_PROP.get());\n }",
"public java.lang.String getSchema() {\r\n return schema;\r\n }",
"public String storageAccountVersion() {\n return this.storageAccountVersion;\n }",
"public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }",
"ImmutableList<SchemaOrgType> getSchemaVersionList();",
"public String getVersion() {\n \treturn metricMetadata.getVersion();\n }",
"public int getConstraintSchemaPart() {\n return schemaPart;\n }",
"@Override\n public Version version() {\n return com.fasterxml.jackson.databind.cfg.PackageVersion.VERSION;\n }",
"public SchemaInfo readServerSchema() {\n String path = \"/schema\";\n Span span = this.tracer.buildSpan(\"Client.Schema\").start();\n try {\n try (CloseableHttpResponse response = clientExecute(\"GET\", path, null, null, \"Error while reading schema\",\n ReturnClientResponse.ERROR_CHECKED_RESPONSE, false)) {\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n try (InputStream src = entity.getContent()) {\n return SchemaInfo.fromInputStream(src);\n }\n }\n throw new PilosaException(\"Server returned empty response\");\n }\n } catch (IOException ex) {\n throw new PilosaException(\"Error while reading response\", ex);\n } finally {\n span.finish();\n }\n }",
"public Schema getSchema() throws IOException {\n byte[] schemaBytes = jniWrapper.nativeGetSchema(nativeInstanceId);\n\n try (MessageChannelReader schemaReader = new MessageChannelReader(\n new ReadChannel(new ByteArrayReadableSeekableByteChannel(schemaBytes)),\n allocator)) {\n MessageResult result = schemaReader.readNext();\n if (result == null) {\n throw new IOException(\"Unexpected end of input. Missing schema.\");\n }\n\n return MessageSerializer.deserializeSchema(result.getMessage());\n }\n }",
"private JsonSchema getSchemaValidator(JsonNode schemaJson) {\n // Default to draft-07, but have handling for the other metaschemas that networknt supports\n final JsonMetaSchema metaschema;\n final JsonNode metaschemaNode = schemaJson.get(\"$schema\");\n if (metaschemaNode == null || metaschemaNode.asText() == null || metaschemaNode.asText().isEmpty()) {\n metaschema = JsonMetaSchema.getV7();\n } else {\n final String metaschemaString = metaschemaNode.asText();\n // We're not using \"http://....\".equals(), because we want to avoid weirdness with https, etc.\n if (metaschemaString.contains(\"json-schema.org/draft-04\")) {\n metaschema = JsonMetaSchema.getV4();\n } else if (metaschemaString.contains(\"json-schema.org/draft-06\")) {\n metaschema = JsonMetaSchema.getV6();\n } else if (metaschemaString.contains(\"json-schema.org/draft/2019-09\")) {\n metaschema = JsonMetaSchema.getV201909();\n } else if (metaschemaString.contains(\"json-schema.org/draft/2020-12\")) {\n metaschema = JsonMetaSchema.getV202012();\n } else {\n metaschema = JsonMetaSchema.getV7();\n }\n }\n\n final ValidationContext context = new ValidationContext(\n jsonSchemaFactory.getUriFactory(),\n null,\n metaschema,\n jsonSchemaFactory,\n null);\n final JsonSchema schema = new JsonSchema(\n context,\n baseUri,\n schemaJson);\n return schema;\n }",
"@Override\n public int getCurrentSchemaVersion(DBRProgressMonitor monitor, Connection connection, String schemaName) throws DBException, SQLException {\n try {\n int version = CommonUtils.toInt(JDBCUtils.executeQuery(connection,\n normalizeTableNames(\"SELECT VERSION FROM {table_prefix}CB_SCHEMA_INFO\")));\n return version == 0 ? 1 : version;\n } catch (SQLException e) {\n try {\n Object legacyVersion = CommonUtils.toInt(JDBCUtils.executeQuery(connection,\n normalizeTableNames(\"SELECT SCHEMA_VERSION FROM {table_prefix}CB_SERVER\")));\n // Table CB_SERVER exist - this is a legacy schema\n return LEGACY_SCHEMA_VERSION;\n } catch (SQLException ex) {\n // Empty schema. Create it from scratch\n return -1;\n }\n }\n }",
"@ApiModelProperty(value = \"(Is this valid?)\")\n public Long getVersion() {\n return version;\n }",
"public MetaSchema getMetaSchema(int iSchema);",
"public String getRpcVersion()\n\t{\n\t\treturn getJSONRPC();\n\t}",
"public Schema getSchema();",
"public Integer getApiVersion()\n {\n return apiVersion;\n }",
"AstroSchema getSchema();",
"public org.apache.avro.Schema getSchema() { return SCHEMA$; }",
"S getSchema();",
"public int getSpecVersion() {\r\n return specVersion;\r\n }",
"public String getSchema()\n {\n String schema = \"\";\n if(this.props != null && !this.props.isEmpty())\n {\n schema = this.props.getProperty(\"db.schema\");\n }\n \n return schema;\n }",
"public String getApiVersion();",
"public String getVersionConstraint() {\n return version;\n }",
"public Long getVersion() {\n return version;\n }",
"public Long getVersion() {\n return version;\n }",
"public Long getVersion() {\n return version;\n }",
"public Long getVersion() {\n return version;\n }",
"@JsonProperty(\"apiVersion\")\n public String getApiVersion() {\n return apiVersion;\n }",
"public Schema getSchema() {\n return schema;\n }",
"public Schema getSchema() {\n return schema;\n }",
"public void setSchemaVersion(int version) {\n this.SCHEMA_VERSION = version;\n }",
"public TypeDescription getSchema() {\n return schema;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public long getVersion() {\n return version;\n }",
"public long getVersion() {\n return version;\n }",
"Version getApiVersion();",
"public Integer getVersion() {\r\n return version;\r\n }",
"public Schema getSchema()\n {\n return schema;\n }",
"public String getCreateVersion() {\n return createVersion;\n }",
"@Override\n public JsonNode getSchema(SerializerProvider provider, Type typeHint)\n {\n return createSchemaNode(\"date\", true);\n }",
"@CheckForNull\n String getVersion();",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public Integer version() {\n return this.version;\n }",
"public String schema() {\n return schemaName;\n }",
"public String schema() {\n return schemaName;\n }",
"@JsonProperty(\"imageVersion\")\n public String getImageVersion() {\n return imageVersion;\n }",
"int getRpcVersion();",
"int getRpcVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"public String templateVersion() {\n return this.innerProperties() == null ? null : this.innerProperties().templateVersion();\n }",
"public Schema getSchema() {\n\t\treturn _schema;\n\t}",
"@ApiModelProperty(value = \"The version is used for optimistic locking and incremented whenever the object is updated.\")\n public Integer getVersion() {\n return version;\n }",
"public Schema readSchema() {\n Schema result = Schema.defaultSchema();\n SchemaInfo schema = readServerSchema();\n for (IndexInfo indexInfo : schema.getIndexes()) {\n Index index =\n result.index(indexInfo.getName(), indexInfo.getIndexOptions(), indexInfo.getShardWidth());\n List<FieldInfo> fields = indexInfo.getFields();\n if (fields != null) {\n for (IFieldInfo fieldInfo : indexInfo.getFields()) {\n // do not read system fields\n if (systemFields.contains(fieldInfo.getName())) {\n continue;\n }\n index.field(fieldInfo.getName(), fieldInfo.getOptions());\n }\n }\n }\n return result;\n }"
] |
[
"0.70937395",
"0.66449976",
"0.646169",
"0.646169",
"0.62367857",
"0.6201064",
"0.61521757",
"0.610642",
"0.60434073",
"0.58631563",
"0.58530474",
"0.5834297",
"0.58190227",
"0.58133894",
"0.57895434",
"0.57705",
"0.57554674",
"0.5642185",
"0.5621411",
"0.5616323",
"0.5604999",
"0.55796784",
"0.5574422",
"0.5574422",
"0.55620474",
"0.5559891",
"0.5512345",
"0.54895145",
"0.5486368",
"0.54846644",
"0.5483222",
"0.5462136",
"0.5456067",
"0.5455962",
"0.54447204",
"0.54414314",
"0.5435567",
"0.5433062",
"0.54282045",
"0.53864413",
"0.5380529",
"0.5327605",
"0.5312629",
"0.5301963",
"0.5286515",
"0.5247633",
"0.52456945",
"0.52307427",
"0.52156365",
"0.5215066",
"0.5206622",
"0.52054614",
"0.52054614",
"0.52054614",
"0.52054614",
"0.52037275",
"0.52005434",
"0.5168163",
"0.5167684",
"0.51628256",
"0.51596403",
"0.51596403",
"0.51596403",
"0.51596403",
"0.51596403",
"0.51596403",
"0.5147651",
"0.5147651",
"0.51404256",
"0.51359755",
"0.5132159",
"0.51274174",
"0.5124321",
"0.5118327",
"0.51057994",
"0.51057994",
"0.51057994",
"0.51057994",
"0.51057994",
"0.5104555",
"0.5104555",
"0.5104555",
"0.5104555",
"0.510069",
"0.50907356",
"0.50907356",
"0.5080994",
"0.50805664",
"0.50805664",
"0.5077107",
"0.5077107",
"0.5077107",
"0.5077107",
"0.5077107",
"0.5077107",
"0.5077107",
"0.5077107",
"0.50736094",
"0.50675994",
"0.5063104",
"0.50517315"
] |
0.0
|
-1
|
returns the list of all partitions loaded from the partition metadata document.
|
public List<Partition> getPartitions() {
return partitions;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"List<CatalogPartitionSpec> listPartitions(ObjectPath tablePath)\n throws TableNotExistException, TableNotPartitionedException, CatalogException;",
"public List<PartitionType> getPartitions() {\n\t\t ArrayList<PartitionType> l = new ArrayList<PartitionType>(); \n\t\t l.addAll(new HashSet<PartitionType>(partitionMap.values()) );\n\t\t if ( l.size() > 1 )\n\t\t \tCollections.sort(l);\n\t\t return l; \n\t}",
"List<CatalogPartitionSpec> listPartitions(\n ObjectPath tablePath, CatalogPartitionSpec partitionSpec)\n throws TableNotExistException, TableNotPartitionedException,\n PartitionSpecInvalidException, CatalogException;",
"public Long getPartitions() {\n return this.Partitions;\n }",
"@SuppressWarnings(\"FieldAccessNotGuarded\")\n @Override\n public int partitions()\n {\n return partitions.length;\n }",
"public List<Object[]> getPartitionKeys();",
"public DataPartition[] getFileParts() throws HpccFileException\n {\n\t if (dataParts == null)\n\t\t createDataParts();\n\n return dataParts;\n }",
"public List<PartitionInfo> getPartitionList(Connection c, String schema, String tableName) throws SQLException {\n final String SQL = \"\"\n + \"SELECT datapartitionname, seqno, lowinclusive, lowvalue, highinclusive, highvalue \"\n + \" FROM \" + catalogSchema + \".DATAPARTITIONS\"\n + \" WHERE tabschema = UCASE(?)\"\n + \" AND tabname = UCASE(?)\"\n + \" ORDER BY seqno\";\n \n List<PartitionInfo> result = new ArrayList<>();\n try (PreparedStatement ps = c.prepareStatement(SQL)) {\n ps.setString(1, schema);\n ps.setString(2, tableName);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n PartitionInfo pi = new PartitionInfo();\n pi.setDataPartitionName(rs.getString(1));\n pi.setSeqno(rs.getInt(2));\n pi.setLowInclusive(\"Y\".equals(rs.getString(3)));\n pi.setLowValue(unwrap(rs.getString(4)));\n pi.setHighInclusive(\"Y\".equals(rs.getString(5)));\n pi.setHighValue(unwrap(rs.getString(6)));\n if (!rs.wasNull()) {\n result.add(pi);\n }\n }\n }\n \n return result;\n }",
"java.util.List<String>\n getPartitionKeyList();",
"public Collection<Set<V>> getVertexPartitions() {\n\t\tif (vertex_sets == null) {\n\t\t\tthis.vertex_sets = new HashSet<Set<V>>();\n\t\t\tthis.vertex_sets.addAll(vertex_partition_map.values());\n\t\t}\n\t\treturn vertex_sets;\n\t}",
"public List<TopicPartition> kafkaTopics() {\n List<TopicPartition> topicPartitionList = new ArrayList<>();\n\n kafkaTopics.forEach((topicName, topicPartitions) -> {\n for (int partitionNumber = 0; partitionNumber < topicPartitions; partitionNumber++)\n topicPartitionList.add(new TopicPartition(topicName, partitionNumber));\n });\n\n return topicPartitionList;\n }",
"public List<PartDto> getAllParts(){\n var result = this.repoParts.findAll();\n ArrayList<PartDto> parts = new ArrayList<>();\n return mapper.mapList(result, false);\n }",
"public com.google.protobuf.ProtocolStringList\n getPartitionKeyList() {\n return partitionKey_;\n }",
"public int getNumPartitions() {\n return numPartitions;\n }",
"public com.google.protobuf.ProtocolStringList\n getPartitionKeyList() {\n return partitionKey_.getUnmodifiableView();\n }",
"public Map getPartitionRestrictions() {\n\t\t\treturn this.partitionRestrictions;\n\t\t}",
"public Map getPartitionRestrictions() {\n\t\t\treturn this.partitionRestrictions;\n\t\t}",
"public void partition() \n\t{\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: partition()\");\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString sParentClass = parentNode.getAttributes().getNamedItem(\"class\") != null ? parentNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t\tlogger.info(\"\\tParent Node Name=\" + parentNode.getNodeName()+\":class=\"+ sParentClass);\n\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\tNode xDivNode = null;\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\n\t\t\t\t\tboolean first = true;\n\t\t\t\t\tboolean keepFirst = this.getKeepFirstElements();\n\t\t\t\t\tboolean hasIntroNode = false;\n\t\t\t \n\t\t\t\t\tfor (int j = 0, pCount = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\n\t\t\t \t\tif (first && keepFirst)\n\t\t\t \t\t{\n\t\t\t \t\t\tif (!hasIntroNode) {\n\t\t\t\t \t\t\t((Element)xIntroDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t \t\t\t\tDomUtils.insertBefore(xIntroDivNode, xNode);\t\t \t\t\t\t\n\t\t\t\t \t\t\tj++;\n\t\t\t\t \t\t\thasIntroNode = true;\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \tboolean isTable = xNode.getNodeName().equalsIgnoreCase(\"table\") ? true : false;\n\t\t\t\t \tString sId = isTable && xNode.getAttributes().getNamedItem(\"id\") != null ? xNode.getAttributes().getNamedItem(\"id\").getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\tNode Name=\" + xNode.getNodeName()+\":class=\"+ sClass);\n\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tif (first)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPartition partition = new Partition();\n\t\t\t\t \t\t\t\tpartition.setType(this.getPartitionType());\n\t\t\t\t \t\t\t\tpartition.setsId(sId);\n\t\t\t\t \t\t\t\tthis.setFirstPartition(partition);\n\t\t\t\t \t\t\t}\n\n\t\t\t\t \t\t\tfirst = false;\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameReplaceCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPattern r = Pattern.compile(this.getTitleNameReplaceRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\n\t\t\t\t\t \t\t\ttitle = m.replaceAll(this.getTitleNameReplaceWithRegexPattern());\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\txDivNode = this.document.createElement(\"div\");\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"class\", getPartitionTypeAsString());\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"title\", title);\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tDomUtils.insertBefore(xDivNode, xNode);\n\t\t\t\t \t\t\tDomUtils.removeElement((Element) xNode, false);\t \n\t\t\t\t \t\t}\n\t\t\t\t \t\telse\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t} else if (isTable && sId != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\t\\tNode Name=\" + xNode.getNodeName()+\":id=\"+ sId);\n\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}",
"public Collection<NetAddress> getPartitionForNode(NetAddress node)\n {\n Integer partitionKey = getKeyForNode(node);\n return partitions.get(partitionKey);\n }",
"java.util.List<com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePart> \n getPartsList();",
"protected boolean hasPartitions()\n\t{\n\t\tboolean hasPartitions = false;\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\t\t \n\t\t\t\t\tfor (int j = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match) hasPartitions = match;\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\t\n\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: hasPartitions()=\"+hasPartitions);\n\t\t\n\t\treturn hasPartitions;\n\t}",
"public Map getPartitionMap(PartitionSet partitions);",
"public IPresentablePart[] getPartList() {\r\n\t\treturn tabs.getPartList();\r\n\t}",
"public FunctionPartitions getFunctionPartitions() {\n checkNotPolymorphicOrUnknown();\n return functionPartitions;\n }",
"public List<IkrInstanceData> fetchDBMS_SYBASE_PARTITION()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybasePartitionMeasurement measurement = (SybasePartitionMeasurement)client.getMeasurement(\"DBMS_SYBASE_PARTITION\");\r\n\t\r\n\t\tfor(SybasePartitionResult info : measurement.getPartitionResult())\r\n\t\t\tres.add(new SybasePartitionIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"public Map<String, PartitionGroupConfig<?>> getPartitionGroups() {\n return partitionGroups;\n }",
"public List<Part> getParts() {\n\t\tif (this.parts == null) {\n\t\t\tthis.parts = Part.forScoreOrDefault(this.ctx, this);\n\t\t}\n\t\treturn this.parts;\n\t}",
"@Override\n public List<Part> findAll() {\n List<Part> resultList = new ArrayList<>();\n repositoryPart.findAll().iterator().forEachRemaining(resultList::add);\n return resultList;\n }",
"public List<Set<String>> getParts() {\n\t\treturn super.getParts();\n\t}",
"@Test\n public void getPartitionIds() {\n final EventHubConsumerAsyncClient consumer = toClose(createBuilder()\n .consumerGroup(DEFAULT_CONSUMER_GROUP_NAME)\n .buildAsyncConsumerClient());\n\n // Act & Assert\n StepVerifier.create(consumer.getPartitionIds())\n .expectNextCount(NUMBER_OF_PARTITIONS)\n .verifyComplete();\n }",
"public int getNumPartitions() {\n\t\treturn (new HashSet<PartitionType>(partitionMap.values())).size(); \n\t}",
"public Collection getListaPartidos(int idEleicao){\n return this.eleicaoDB.getListaPartidos(idEleicao);\n }",
"public List<PartitionId> getWritablePartitionIds();",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part>\n getPartsList();",
"private void fetchPartitioningConfig() {\n SegmentPartitionConfig segmentPartitionConfig = _tableConfig.getIndexingConfig().getSegmentPartitionConfig();\n if (segmentPartitionConfig != null) {\n Map<String, ColumnPartitionConfig> columnPartitionMap = segmentPartitionConfig.getColumnPartitionMap();\n Preconditions.checkArgument(columnPartitionMap.size() <= 1, \"There should be at most 1 partition setting in the table.\");\n if (columnPartitionMap.size() == 1) {\n _partitionColumn = columnPartitionMap.keySet().iterator().next();\n _numberOfPartitions = segmentPartitionConfig.getNumPartitions(_partitionColumn);\n _partitionFunction = segmentPartitionConfig.getFunctionName(_partitionColumn);\n }\n } else {\n _logger.info(\"Segment partition config is null for table: {}\", _tableConfig.getTableName());\n }\n }",
"public HashSet<Part> getPartRepositoryParts() throws RemoteException;",
"public int numPartitions() {\n\t\treturn vertex_sets.size();\n\t}",
"public static ArrayList<String> getAvailableParts() {\n ArrayList<String> allParts = new ArrayList<String>();\n String pattern = \"_db.dat\";\n File dir = new File(getRapidSmithPath() + File.separator + \"devices\");\n if (!dir.exists()) {\n MessageGenerator.briefErrorAndExit(\"ERROR: No part files exist. Please run \" +\n Installer.class.getCanonicalName() + \" to create part files.\");\n }\n for (String partFamily : dir.list()) {\n File partDir = new File(dir.getAbsolutePath() + File.separator + partFamily);\n for (String part : partDir.list()) {\n if (part.endsWith(pattern)) {\n allParts.add(part.replace(pattern, \"\"));\n }\n }\n }\n return allParts;\n }",
"public static ObservableList<Part> getAllParts() {\n return allParts;\n }",
"public ObservableList<Part> getAllParts() {\n return allParts;\n }",
"Collection<PartModel> getPartModels(ExecutionContext context);",
"public int getPartitionNumber() {\n\treturn partitionNumber;\n }",
"java.util.List<? extends com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePartOrBuilder> \n getPartsOrBuilderList();",
"public void setPartitions(Long Partitions) {\n this.Partitions = Partitions;\n }",
"public Map getPartitionMap(int nPid);",
"private List<String> getOrderedFullPartitionValues(\n CatalogPartitionSpec partitionSpec, List<String> partitionKeys, ObjectPath tablePath)\n throws PartitionSpecInvalidException {\n Map<String, String> spec = partitionSpec.getPartitionSpec();\n if (spec.size() != partitionKeys.size()) {\n throw new PartitionSpecInvalidException(\n getName(), partitionKeys, tablePath, partitionSpec);\n }\n\n List<String> values = new ArrayList<>(spec.size());\n for (String key : partitionKeys) {\n if (!spec.containsKey(key)) {\n throw new PartitionSpecInvalidException(\n getName(), partitionKeys, tablePath, partitionSpec);\n } else {\n String value = spec.get(key);\n if (value == null) {\n value = getHiveConf().getVar(HiveConf.ConfVars.DEFAULTPARTITIONNAME);\n }\n values.add(value);\n }\n }\n\n return values;\n }",
"java.util.List<entities.Torrent.ChunkInfo>\n getChunksList();",
"public Collection getListaPartidosEleicaoVotos(){\n return this.eleicaoDB.getListaPartidosEleicaoVotos();\n }",
"@Test\n public void getPartitionProperties() {\n final EventHubConsumerAsyncClient consumer = toClose(createBuilder()\n .consumerGroup(DEFAULT_CONSUMER_GROUP_NAME)\n .buildAsyncConsumerClient());\n\n // Act & Assert\n for (String partitionId : EXPECTED_PARTITION_IDS) {\n StepVerifier.create(consumer.getPartitionProperties(partitionId))\n .assertNext(properties -> {\n Assertions.assertEquals(consumer.getEventHubName(), properties.getEventHubName());\n Assertions.assertEquals(partitionId, properties.getId());\n })\n .verifyComplete();\n }\n }",
"public final AstValidator.partition_clause_return partition_clause() throws RecognitionException {\n AstValidator.partition_clause_return retval = new AstValidator.partition_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree PARTITION318=null;\n AstValidator.func_name_return func_name319 =null;\n\n\n CommonTree PARTITION318_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:18: ( ^( PARTITION func_name ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:20: ^( PARTITION func_name )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n PARTITION318=(CommonTree)match(input,PARTITION,FOLLOW_PARTITION_in_partition_clause2683); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n PARTITION318_tree = (CommonTree)adaptor.dupNode(PARTITION318);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(PARTITION318_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_name_in_partition_clause2685);\n func_name319=func_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_name319.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public int partitions() throws IOException {\n return TFS.getNumberOfFiles(RAW_TABLE.getPath() + Constants.PATH_SEPARATOR +\n MasterInfo.COL + COLUMN_INDEX);\n }",
"public int getPartitionNumber() {\n\t\treturn partitionNumber;\n\t}",
"public ObservableList<Part> getAllParts() { return allParts; }",
"public int numPartitions() {\n return (11);\n }",
"@Override\n public int getPartitionsCount() {\n return 2;\n }",
"String getPartitionName();",
"String getPartitionName();",
"public String partitionKey() {\n return this.partitionKey;\n }",
"public byte[] getDocparts()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_DOCPARTS);\n }",
"public boolean isSetCatalogPartitions() {\n return this.catalogPartitions != null;\n }",
"public Map<V, Set<V>> getVertexToPartitionMap() {\n\t\tif (vertex_partition_map == null) {\n\t\t\tthis.vertex_partition_map = new HashMap<V, Set<V>>();\n\t\t\tfor (Set<V> set : this.vertex_sets) {\n\t\t\t\tfor (V v : set) {\n\t\t\t\t\tthis.vertex_partition_map.put(v, set);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn vertex_partition_map;\n\t}",
"private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }",
"ImmutableList<SchemaOrgType> getHasPartList();",
"public static ValueRange[] designPartitions (SampleableTupleReader tupleReader, int partitioningColumnIndex, int numPartitions) throws IOException {\n return designPartitions(tupleReader, partitioningColumnIndex, numPartitions, DEFAULT_SAMPLE_SIZE);\n }",
"public int getPartitionSize() {\n\t\treturn partitionSize;\n\t}",
"default List<CatalogTableStatistics> bulkGetPartitionStatistics(\n ObjectPath tablePath, List<CatalogPartitionSpec> partitionSpecs)\n throws PartitionNotExistException, CatalogException {\n\n checkNotNull(partitionSpecs, \"partitionSpecs cannot be null\");\n\n List<CatalogTableStatistics> result = new ArrayList<>(partitionSpecs.size());\n for (CatalogPartitionSpec partitionSpec : partitionSpecs) {\n result.add(getPartitionStatistics(tablePath, partitionSpec));\n }\n\n return result;\n }",
"@java.lang.Override\n public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part>\n getPartsList() {\n return parts_;\n }",
"public List<Partner> getPartners() {\n\t\tList<Partner> sharedPartners = new ArrayList<Partner>();\n\t\tfor(FederationConfiguration config : federationConfigurations) {\n\t\t\tsharedPartners.add(config.getPartner());\n\t\t}\n\t\treturn sharedPartners;\n\t}",
"public String partitionKey() {\n return partitionKey;\n }",
"public String getPartIdList() {\n return (String)ensureVariableManager().getVariableValue(\"PartIdList\");\n }",
"@JsonProperty(\"offsets\")\n public List<PartitionOffset> getOffsets() {\n return offsets;\n }",
"java.util.List<java.lang.String>\n getMetadataList();",
"java.util.List<java.lang.String>\n getMetadataList();",
"public interface ContextPartitionSelectorSegmented extends ContextPartitionSelector {\n /**\n * Returns the partition keys.\n *\n * @return key set\n */\n public List<Object[]> getPartitionKeys();\n}",
"default List<CatalogColumnStatistics> bulkGetPartitionColumnStatistics(\n ObjectPath tablePath, List<CatalogPartitionSpec> partitionSpecs)\n throws PartitionNotExistException, CatalogException {\n\n checkNotNull(partitionSpecs, \"partitionSpecs cannot be null\");\n\n List<CatalogColumnStatistics> result = new ArrayList<>(partitionSpecs.size());\n for (CatalogPartitionSpec partitionSpec : partitionSpecs) {\n result.add(getPartitionColumnStatistics(tablePath, partitionSpec));\n }\n\n return result;\n }",
"public interface Partitioner {\n\n Set<String> getPartitions();\n\n String getNextObjectName(String topic, String previousObject);\n\n boolean shouldReconfigure();\n\n}",
"@Test\n public void testRepositoryPartitions() {\n ObjectPartitionStatisticsImpl stat1 = getPartitionStatistics(1);\n ObjectPartitionStatisticsImpl stat10 = getPartitionStatistics(10);\n\n ObjectPartitionStatisticsImpl stat1_2 = getPartitionStatistics(1);\n\n assertTrue(repo.getLocalPartitionsStatistics(K1).isEmpty());\n assertTrue(repo.getLocalPartitionsStatistics(K2).isEmpty());\n\n IgniteStatisticsStore store = repo.statisticsStore();\n store.saveLocalPartitionStatistics(K1, stat1);\n store.saveLocalPartitionStatistics(K1, stat10);\n store.saveLocalPartitionStatistics(K2, stat1_2);\n\n ObjectPartitionStatisticsImpl stat1Readed = repo.getLocalPartitionStatistics(K1, 1);\n assertNotNull(stat1Readed);\n assertEquals(1, stat1Readed.partId());\n\n ObjectPartitionStatisticsImpl stat10Readed = repo.getLocalPartitionStatistics(K1, 10);\n assertNotNull(stat10Readed);\n assertEquals(10, stat10Readed.partId());\n\n assertNull(repo.getLocalPartitionStatistics(K1, 2));\n\n assertEquals(2, repo.getLocalPartitionsStatistics(K1).size());\n assertEquals(1, repo.getLocalPartitionsStatistics(K2).size());\n }",
"public Map<Integer, MatrixPartitionMeta> getPartMetas() {\r\n return partMetas;\r\n }",
"java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();",
"private List<Partition> partitionForSending(WorkerInfo worker) {\n\t\t\tList<Partition> partitions = new ArrayList<Partition>();\n\t\t\tfor (Entry<String, String> r : distribution.entrySet()) {\n\t\t\t\tif (r.getValue().equals(worker.getName())) {\n\t\t\t\t\tfor (Partition part : worker.getPartitions()) {\n\t\t\t\t\t\tif (part.getPartitionName().equals(r.getKey())) {\n\t\t\t\t\t\t\tpartitions.add(part);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn partitions;\n\t\t}",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response returnAllPcParts() throws Exception{\n\n\t\tPreparedStatement query = null;\n\t\tConnection conn = null;\n\t\tString returnString = null;\n\t\tResponse rp = null;\n\n\t\ttry{\n\t\t\tSQLServerDataSource ds = new SQLServerDataSource();\n\t\t\tconn = ds.getConnection();\n\t\t\tquery = conn.prepareStatement(\"SELECT * FROM PC_PARTS\");\n\t\t\t\n\t\t\tResultSet rs = query.executeQuery(); // records set\n\n\t\t\tToJSON converter = new ToJSON(); // bring in instance\n\t\t\tJSONArray json = new JSONArray(); // holds array\n\n\t\t\tjson = converter.toJSONArray(rs); // puts in records\n\t\t\tquery.close();\n\n\t\t\treturnString = json.toString();\n\t\t\t// building a response from our string\n\t\t\trp = Response.ok(returnString).build();\n\n\t\t}catch(SQLException e){\n\t\t\tSystem.out.println(\"msg: \" + e.getMessage());\n\t\t}finally{\n\t\t\tif(conn != null){\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t}\n\t\treturn rp;\n\t}",
"public int getPartitionKeyCount() {\n return partitionKey_.size();\n }",
"public int getPartitionKeyCount() {\n return partitionKey_.size();\n }",
"public Boolean enablePartitioning() {\n return this.enablePartitioning;\n }",
"private List<StorageAccPrefPageTableElement> getTableContent() {\n // loads data from preference file.\n AzureSettings.getSafeInstance(myProject).loadStorage();\n List<StorageAccount> strgList = StorageAccountRegistry.getStrgList();\n List<StorageAccPrefPageTableElement> tableRowElements = new ArrayList<StorageAccPrefPageTableElement>();\n for (StorageAccount storageAcc : strgList) {\n if (storageAcc != null) {\n StorageAccPrefPageTableElement ele = new StorageAccPrefPageTableElement();\n ele.setStorageName(storageAcc.getStrgName());\n ele.setStorageUrl(storageAcc.getStrgUrl());\n tableRowElements.add(ele);\n }\n }\n StorageAccPrefPageTableElements elements = new StorageAccPrefPageTableElements();\n elements.setElements(tableRowElements);\n return elements.getElements();\n }",
"@java.lang.Override\n public int getPartsCount() {\n return parts_.size();\n }",
"public KDPartitionStrategy getPartitionStrategy() {\n return partitionStrategy;\n }",
"public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part>\n getPartsList() {\n if (partsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(parts_);\n } else {\n return partsBuilder_.getMessageList();\n }\n }",
"String[] getParts();",
"int getPartitionId();",
"public void partition();",
"java.util.List<\n ? extends com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.PartOrBuilder>\n getPartsOrBuilderList();",
"public StorageVolume[] getVolumeList(int uid, String packageName, int flags) throws RemoteException;",
"List<IDiskSpace> getDiskSpace(List<String> filesystems) throws P4JavaException;",
"public boolean isSetPartition_infos() {\n return this.partition_infos != null;\n }",
"public List<Partner> getListaPartners() {\n return null;\n }",
"public List<List<String>> partition(String s) {\n List<List<String>> res = new ArrayList<>();\n doSeparate(res,new ArrayList<>(),0,s);\n return res;\n }",
"private static PartitionSpec spec(Properties props, Schema schema) {\n String specString = props.getProperty(InputFormatConfig.PARTITION_SPEC);\n PartitionSpec spec = PartitionSpec.unpartitioned();\n if (specString != null) {\n spec = PartitionSpecParser.fromJson(schema, specString);\n }\n return spec;\n }",
"@Override\r\n\tpublic List<SubstageDocument> getAll() throws Exception {\n\t\treturn null;\r\n\t}",
"public static List<Parte> listarPartes(){\n List <Parte> partes=new ArrayList<>();\n Conexion.conectar();\n String sql = \"call ppartes.partesList (?)\";\n \n try {\n CallableStatement cs = Conexion.getConexion().prepareCall(sql);\n cs.registerOutParameter(1, OracleTypes.CURSOR);\n cs.execute();\n \n ResultSet rs = (ResultSet) cs.getObject(1);\n while (rs.next()){\n Parte p = new Parte();\n p.setFecha(rs.getString(\"fecha\"));\n p.setKmInicial(rs.getBigDecimal(\"kmInicial\"));\n p.setKmFinal(rs.getBigDecimal(\"kmFinal\"));\n p.setGastoPeaje(rs.getBigDecimal(\"gastosPeaje\")); \n p.setGastoDietas(rs.getBigDecimal(\"gastosDietas\"));\n p.setGastoCombustible(rs.getBigDecimal(\"gastosCombustible\"));\n p.setGastoVarios(rs.getBigDecimal(\"otrosGastos\"));\n p.setIncidencias(rs.getString(\"incidencias\"));\n p.setEstado(rs.getString(\"estado\"));\n p.setValidado(rs.getString(\"validado\"));\n p.setHorasExtras(rs.getBigDecimal(\"horasExtras\"));\n p.setIdTrabajador(rs.getBigDecimal(\"TRABAJADORES_ID\"));\n p.setNotasAdministrativas(rs.getString(\"notasAdministrativas\"));\n partes.add(p);\n }\n \n rs.close();\n cs.close();\n Conexion.desconectar();\n return partes;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n return null;\n }"
] |
[
"0.67452556",
"0.6647561",
"0.6609585",
"0.641425",
"0.6372348",
"0.6296353",
"0.6119885",
"0.61119777",
"0.611193",
"0.5902097",
"0.58806324",
"0.571887",
"0.5718315",
"0.5710488",
"0.56683713",
"0.56639415",
"0.56639415",
"0.56373405",
"0.56368667",
"0.5595739",
"0.559366",
"0.55816865",
"0.55721134",
"0.5561205",
"0.556018",
"0.5543721",
"0.5478399",
"0.54667246",
"0.54547435",
"0.5415838",
"0.5357367",
"0.5342863",
"0.5334183",
"0.5332165",
"0.53314954",
"0.5298214",
"0.52871317",
"0.52777827",
"0.52559036",
"0.52553713",
"0.52360606",
"0.52301806",
"0.5184837",
"0.51800525",
"0.51759964",
"0.51751834",
"0.515454",
"0.51452893",
"0.511642",
"0.5113791",
"0.5109976",
"0.5105609",
"0.51045716",
"0.5071226",
"0.5048096",
"0.5033674",
"0.5033674",
"0.4988756",
"0.4981303",
"0.49756676",
"0.49650946",
"0.49621564",
"0.49505368",
"0.49292415",
"0.4911705",
"0.48836103",
"0.4880728",
"0.48711",
"0.48676595",
"0.48585933",
"0.48426893",
"0.48335835",
"0.48335835",
"0.48304716",
"0.4811239",
"0.48071915",
"0.48025438",
"0.4790549",
"0.4780546",
"0.47691622",
"0.4762178",
"0.47583354",
"0.4756674",
"0.47534075",
"0.47506797",
"0.47451508",
"0.4742083",
"0.4740106",
"0.47351637",
"0.4735163",
"0.47264954",
"0.4704336",
"0.47014982",
"0.47012186",
"0.46878445",
"0.46859026",
"0.46851295",
"0.46774217",
"0.4676152",
"0.4672891"
] |
0.7522808
|
0
|
Creates a new instance
|
public void onListItemClick(ListView l, View v, int position, long id) {
// Notify the parent activity of selected item
super.onListItemClick(l, v, position, id);
mListener.OnRecipeSelected();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Instance createInstance();",
"public void create(){}",
"private Instantiation(){}",
"Reproducible newInstance();",
"public Instance() {\n }",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"public void create() {\n\t\t\n\t}",
"public CMObject newInstance();",
"void create(T instance) throws IOException;",
"public T newInstance();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"T create();",
"T create();",
"public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}",
"@Override\n\tpublic void create() {\n\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }",
"public abstract void create();",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"InstanceModel createInstanceOfInstanceModel();",
"private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"public abstract boolean create(T newInstance);",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"For createFor();",
"public Factory() {\n\t\tsuper();\n\t}",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"protected abstract void construct();",
"<T> T newInstance(URI description) throws EnvironmentException;",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"OBJECT createOBJECT();",
"Klassenstufe createKlassenstufe();",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}",
"@Override\r\n public void instantiate() {\r\n }",
"public Open() {\n //creates a new open instance\n }",
"public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"public Produto() {}",
"@SuppressWarnings(\"unchecked\")\n public T newInstance()\n throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n if (constructor_ == null) {\n constructor_ = getRawClass().getConstructor();\n }\n\n return (T)constructor_.newInstance();\n }",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"public ObjectFactory() {\n\t}",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public ObjectFactory() {\r\n\t}",
"public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"DynamicInstance createDynamicInstance();",
"@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}",
"public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"public abstract Instance duplicate();",
"Snapshot create();",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"void create(T t);",
"public ApplicationCreator() {\n }",
"void create( State state );",
"public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}",
"SAProcessInstanceBuilder createNewInstance(SProcessInstance processInstance);",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"public Postoj() {}",
"Foco createFoco();",
"public Product() {}",
"P createP();",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] |
[
"0.8018133",
"0.7496673",
"0.7172955",
"0.71152836",
"0.71128494",
"0.7052747",
"0.6968327",
"0.69200206",
"0.690034",
"0.68795353",
"0.68775845",
"0.6778326",
"0.6778326",
"0.67719525",
"0.67559296",
"0.6719699",
"0.6710143",
"0.6705524",
"0.6681551",
"0.66527045",
"0.66136384",
"0.6602654",
"0.6550175",
"0.6504612",
"0.6403819",
"0.6341633",
"0.6313638",
"0.63122225",
"0.6278264",
"0.62736267",
"0.627018",
"0.6250228",
"0.6216632",
"0.62122685",
"0.6199778",
"0.61993474",
"0.61747575",
"0.61747575",
"0.61747575",
"0.61651427",
"0.616096",
"0.61398906",
"0.61370873",
"0.61172754",
"0.60984707",
"0.6098214",
"0.60921144",
"0.608334",
"0.60785264",
"0.6069021",
"0.6065071",
"0.60569245",
"0.6046293",
"0.60460436",
"0.6044971",
"0.60447496",
"0.6032343",
"0.6020549",
"0.6003603",
"0.60035205",
"0.59973437",
"0.59853363",
"0.5980302",
"0.59782267",
"0.59769017",
"0.594998",
"0.5947678",
"0.59443825",
"0.5935161",
"0.5930332",
"0.59204274",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928",
"0.591928"
] |
0.0
|
-1
|
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
|
public interface OnRecipeSelectionListener {
// TODO: Update argument type and name
public void OnRecipeSelected();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}",
"public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }",
"public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}",
"public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }",
"void onFragmentInteraction(Object ref);",
"public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }",
"public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }",
"public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}",
"public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }",
"public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}",
"public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}",
"public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }",
"public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }",
"public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}",
"public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface PersonalFragmentView extends BaseMvpView {\n\n}",
"public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }",
"void onFragmentInteraction(View v);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }",
"void onFragmentInteractionMain();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }",
"public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}",
"public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }",
"void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }",
"public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }",
"public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }",
"public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }",
"public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}",
"public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}",
"public interface ChangeFragmentListener {\n void changeFragment();\n}",
"public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }",
"public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }",
"void onFragmentInteraction(int position);",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"void OpenFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}",
"public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}",
"public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}",
"public interface PesonageFragmentView extends MvpView {\n\n}",
"public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }",
"public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }",
"interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }",
"public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}"
] |
[
"0.73245984",
"0.72083515",
"0.71344024",
"0.7124397",
"0.7121651",
"0.7015244",
"0.69770265",
"0.69770265",
"0.69770265",
"0.6974299",
"0.6967729",
"0.6966127",
"0.69612694",
"0.69538033",
"0.694325",
"0.69331574",
"0.69292706",
"0.6927241",
"0.6923228",
"0.69110304",
"0.690297",
"0.68973196",
"0.68943197",
"0.68817276",
"0.6881559",
"0.68756723",
"0.6864657",
"0.6861271",
"0.686012",
"0.685779",
"0.6854849",
"0.6843982",
"0.68401647",
"0.68304354",
"0.68180305",
"0.681689",
"0.68096936",
"0.6786359",
"0.6769924",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6769685",
"0.6766966",
"0.6761711",
"0.67558855",
"0.6753921",
"0.66984934",
"0.6680787",
"0.6673983",
"0.6670958",
"0.66700584",
"0.66618216",
"0.6661248",
"0.6655532",
"0.6651844",
"0.66448575",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.6643978",
"0.66384566",
"0.6636147",
"0.66316783",
"0.66252905",
"0.6624636",
"0.66182214",
"0.66100127",
"0.6609113",
"0.6608689",
"0.6605501",
"0.6598087",
"0.6596676",
"0.65879196",
"0.6572657",
"0.6568728",
"0.65603936",
"0.65595835",
"0.6555348",
"0.65497047",
"0.6548923",
"0.6543644",
"0.65386736",
"0.65341485",
"0.65341485",
"0.65341485",
"0.65194017",
"0.6517115",
"0.65170354"
] |
0.0
|
-1
|
TODO: Update argument type and name
|
public void OnRecipeSelected();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }",
"@Override\n\tpublic void traverseArg(UniArg node) {\n\t}",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"Object[] getArguments();",
"Object[] getArguments();",
"String getArguments();",
"@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}",
"@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }",
"ArgList createArgList();",
"public Object[] getArguments() { return args;}",
"@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }",
"@Override\n protected String getName() {return _parms.name;}",
"private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }",
"uicargs createuicargs();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}",
"public getType_args(getType_args other) {\n }",
"Object[] args();",
"protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }",
"@Test\n void getArgString() {\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"int getArgIndex();",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"public login_1_argument() {\n }",
"Optional<String[]> arguments();",
"private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }",
"@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}",
"protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}",
"void setArguments(String arguments);",
"@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}",
"OpFunctionArgAgregate createOpFunctionArgAgregate();",
"protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);",
"void visitArgument(Argument argument);",
"public Thaw_args(Thaw_args other) {\r\n }",
"@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}",
"private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }",
"public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}",
"@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }",
"public abstract ValidationResults validArguments(String[] arguments);",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public String getArgumentString() {\n\t\treturn null;\n\t}",
"@Override\n public String kind() {\n return \"@param\";\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }",
"void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }",
"@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}",
"void onArgumentsChanged();",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"MyArg(int value){\n this.value = value;\n }",
"public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }",
"public Clear_args(Clear_args other) {\r\n }",
"private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }",
"public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}",
"@Override\n public int getArgent() {\n return _argent;\n }",
"private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }",
"private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}",
"PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }",
"public Type getArgumentDirection() {\n return direction;\n }",
"public String argTypes() {\n return \"I\";//NOI18N\n }",
"public static void main(String arg[]) {\n\n }",
"godot.wire.Wire.Value getArgs(int index);",
"@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"private Argument(Builder builder) {\n super(builder);\n }",
"@Override\n public void execute(String[] args) {\n\n }",
"@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}",
"UUID createArgument(ArgumentCreateRequest request);",
"@Override\n public void initialise(String[] arguments) {\n\n }",
"public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }",
"protected abstract void parseArgs() throws IOException;"
] |
[
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.59906125",
"0.59906125",
"0.5984017",
"0.59791875",
"0.5977681",
"0.59532714",
"0.5946838",
"0.59457266",
"0.59452903",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.5909717",
"0.5889277",
"0.588111",
"0.5871162",
"0.5866624",
"0.58613646",
"0.58519953",
"0.58381283",
"0.58083445",
"0.58059824",
"0.5795826",
"0.57816726",
"0.57670826",
"0.57556796",
"0.57471323",
"0.57418406",
"0.5729463",
"0.57291526",
"0.5716928",
"0.5713024",
"0.56974274",
"0.56782854",
"0.56723106",
"0.5664594",
"0.5664104",
"0.5660337",
"0.5652865",
"0.5647883",
"0.5642134",
"0.5635645",
"0.5634968",
"0.562251",
"0.56210977",
"0.56167537",
"0.56138444",
"0.56044126",
"0.56044126",
"0.5602371",
"0.56012225",
"0.55986875",
"0.55893147",
"0.5588273",
"0.5583255",
"0.5582767",
"0.55681497",
"0.55626017",
"0.55577534",
"0.55524325",
"0.5549442",
"0.55378276",
"0.5536797",
"0.5527675",
"0.5511817",
"0.55099154",
"0.550257"
] |
0.0
|
-1
|
End of TextGrid constructor display various lines, rectangles and ovals
|
public void paintComponent(Graphics g) {
super.paintComponent(g); // call superclass's paint method
//this.setBackground(Color.GRAY);
// Iterators & misc. variables
int i;
int j;
char tempchar;
String tempstring = null;
// Length of the lines
int rowlinelength = numcols*boxsize;
int collinelength = numrows*boxsize;
// Draw the row lines
int yloc;
for(i = 0;i<numrows+1;i++){
yloc = i*boxsize;
g.drawLine(0, yloc, rowlinelength, yloc);
}
// Draw the column lines
int xloc;
for(i = 0;i<numcols+1;i++){
xloc = i*boxsize;
g.drawLine(xloc, 0, xloc, collinelength);
}
// Set the font
g.setFont(new Font("SansSerif", Font.PLAIN, 24));
// Draw the text
for(i = 0;i<numrows;i++){
yloc = (boxsize*i) + (int)Math.floor(boxsize/2);
for(j = 0;j<numcols;j++){
xloc = (boxsize*j) + (int)Math.floor(boxsize/2);
tempchar = chargrid[i][j];
tempstring = Character.toString(tempchar);
g.drawString(tempstring, xloc, yloc);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}",
"public Grid() {\n minorLinesPath = new Path2D.Double();\n majorLinesPath = new Path2D.Double();\n\n minorLinePositions = new double[2][];\n majorLinePositions = new double[2][];\n\n minorLinePositionsScreen = new int[2][];\n majorLinePositionsScreen = new int[2][];\n\n listeners = new LinkedList<>();\n\n stroke = new BasicStroke();\n }",
"public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }",
"private void addRenderPieces(Text text) {\n Rectangle rectangle = new Rectangle();\n rectangle.setX(text.getX());\n rectangle.setY(text.getY());\n rectangle.setWidth(text.getLayoutBounds().getWidth());\n rectangle.setHeight(lineHeight);\n rectangle.setFill(Color.VIOLET);\n rectangle.toBack();\n root.getChildren().add(rectangle);\n renderPieces.add(rectangle);\n }",
"public TextlineModel() {\n\t\tobox = new OrientedBox(0,0,0,0,0);\n\t\tocclusions = new ArrayList();\n\t\twordOffsets = new ArrayList();\n\t\tsetText(\"\");\n\t\ttextPointer = null;\n\t}",
"@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }",
"public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }",
"public RegularGrid() {\r\n }",
"public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);",
"private void generateTextArea()\n {\n //Clear the textArea\n textArea.selectAll();\n textArea.replaceSelection(\"\");\n\n MyCircle circle = panel.getCircle();\n\n //Add all of the required information to the textarea\n textArea.append(String.format(\"AREA: %.2f %n\", circle.getArea()));\n textArea.append(\"RADIUS: \"+circle.getRadius()+\"\\n\");\n textArea.append(\"DIAMETER: \"+circle.getDiameter()+\"\\n\");\n textArea.append(String.format(\"CIRCUMFERENCE: %.2f %n\", circle.getCircumference()));\n }",
"public void paintComponent(Graphics g){\n super.paintComponent(g);\n\n //casting the Graphics g to Graphics2D which is the updated version\n Graphics2D g2d = (Graphics2D)g;\n g2d.setFont(new Font(\"Times new Roman,\", Font.PLAIN,20));\n g2d.setColor(Color.white);\n //class rendering hints attribute to specify whether you want objects to be rendered as quickly as possible\n g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n int y = textY;\n\n for(String line : text.split(\"\\n\")){\n int stringLength = (int)g2d.getFontMetrics().getStringBounds(line,g2d).getWidth();\n int x = getWidth()/2 - stringLength/2;\n g2d.drawString(line,x, y +=28);\n }\n }",
"public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }",
"@Override\r\n\tprotected void initView() {\n\t\tsetSingleLine(true);\r\n\t\tsetWillNotDraw(false);\r\n\t}",
"public BasicTextUI() {\n painted = false;\n }",
"public CText() {\r\n\t\ttext = new StringBuilder();\r\n\t\tline_index = new ArrayList<>();\r\n\t\tline_index.add(0);\r\n\t}",
"public void drawGrid(Graphics2D g, int width, int height, double minX,\n double minY, double maxX, double maxY) {\n g.setColor(Color.BLACK);\n Color gridC; //= new Color(Color.white.getRGB() - BackgroundColor.getRGB());\n Color LightGridC;\n double lumin = BackgroundColor.getRed() * 0.2126 + BackgroundColor.getGreen() * 0.7152\n + BackgroundColor.getBlue() * 0.0722;\n if (lumin > 255 / 2d) {\n gridC = Color.black;\n LightGridC = Color.GRAY;\n } else {\n gridC = Color.white;\n LightGridC = Color.lightGray;\n }\n g.setColor(gridC);\n upperX = maxX;\n lowerX = minX;\n\n upperY = maxY;\n lowerY = minY;\n //debug, drawLine bounds\n// g.drawLine(XOffSet, YOffSet, width, YOffSet);\n// g.drawLine(XOffSet, height, width, height); //X\n//\n// g.drawLine(XOffSet, YOffSet, XOffSet, height);\n// g.drawLine(width, YOffSet, width, height); //Y\n // g.drawLine(30, YOffSet, 30, 0);\n //g.drawLine(XOffSet, 30, 0, 30);\n double Xscale = GetXScale(width);\n double Yscale = GetYScale(height);\n int centerX = getCenterX(width);\n int centerY = getCenterY(height);//-lowerY*Yscale);\n\n // drawLine axis\n g.drawLine(XOffSet, centerY, width, centerY); //X axis\n g.drawLine(centerX, YOffSet, centerX, height); //Y axis\n\n\n //draws grid, numbers and increment lines\n int fontSizeX = (width / (increments * 4));\n int fontSizeY = (height / increments);\n if (fontSizeX > 15) {\n fontSizeX = 15;\n }\n if (fontSizeY > 15) {\n fontSizeY = 15;\n }\n //x-axis\n int t = (int) ((width) * 0.01);\n g.setFont(new Font(\"MonoType\", Font.PLAIN, (fontSizeX)));\n FontMetrics font = g.getFontMetrics();\n for (double i = XOffSet; i <= width; i += ((width - XOffSet) / increments)) {\n if (t == 0) {\n t = 1;\n }\n if (showGrid && i != centerX) {\n g.setColor(LightGridC);\n g.drawLine((int) i, YOffSet, (int) i, height);\n g.setColor(gridC);\n }\n if (showScale) {\n g.drawLine((int) i, (centerY + t), (int) i, (centerY - t));\n }\n\n if (showNumbers) {\n double d = Math.round(100 * ((((width - XOffSet) / Xscale) / (upperX - lowerX)\n * (((i - XOffSet) / Xscale))) + lowerX));\n String o = Double.toString(\n d / 100);\n int textWidth = font.stringWidth(o);\n g.drawString(o, (int) i - textWidth / 2, (centerY + t + font.getHeight()));\n }\n }\n //y axis\n t = (int) (height * 0.01);\n g.setFont(new Font(\"MonoType\", Font.PLAIN, (fontSizeY)));\n font = g.getFontMetrics();\n for (double i = YOffSet; i <= height; i += ((height - YOffSet) / increments)) {\n if (t == 0) {\n t = 1;\n }\n if (showGrid && i != centerY) {\n g.setColor(LightGridC);\n g.drawLine(XOffSet, (int) i, width, (int) i);\n g.setColor(gridC);\n }\n if (showScale) {\n g.drawLine(centerX - t, (int) i, centerX + t, (int) i);\n }\n\n if (showNumbers) {\n double d = Math.round(100 * ((((upperY - lowerY) / ((height - YOffSet) / Yscale)\n * (height - (i)) / Yscale) + lowerY)));\n String o = Double.toString(\n d / 100);\n int textWidth = font.stringWidth(o);\n g.drawString(o, centerX - t - textWidth,\n (int) ((i + font.getHeight() / 2)));\n }\n }\n }",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"public Grid() {\n super(); // create a new JPanel\n grid = new ArrayList<>(); // initialize a list containing the blocks\n \n setLayout(null); // format the component\n setFocusable(false);\n setBackground(Block.deadColor);\n addComponentListener(new java.awt.event.ComponentAdapter() { // detects when the window is resized to resize the grid\n @Override\n public void componentResized(java.awt.event.ComponentEvent evt) {\n resizeGrid();\n }\n });\n \n // provide a link to the grid to classes so that all instances have access to it\n PathFinder.setGrid(this);\n EscapeBlock.setGrid(this);\n Character.setGrid(this);\n \n }",
"private void createTextPanel() {\r\n Composite textPanel = new Composite(this, SWT.NONE);\r\n textPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n textPanel.setLayout(new GridLayout(2, true));\r\n\r\n createLabel(textPanel, \"Name\");\r\n _nameText = new Text(textPanel, SWT.BORDER | SWT.RIGHT);\r\n _nameText.setLayoutData(new GridData(SWT.FILL, SWT.HORIZONTAL, true, true));\r\n _nameText.addKeyListener(new TextKeyListener());\r\n\r\n createLabel(textPanel, \"Group\");\r\n _numberGroupText = new Text(textPanel, SWT.BORDER | SWT.RIGHT);\r\n _numberGroupText.setLayoutData(new GridData(SWT.FILL, SWT.HORIZONTAL, true, true));\r\n _numberGroupText.addKeyListener(new TextKeyListener());\r\n\r\n createCheckButtonPanel(textPanel);\r\n }",
"public KLabelMultiline() {\n // TODO codavaj!!\n }",
"public void drawGrid(Graphics g) \n {\n int wide = getWidth();\n int tall = getHeight();\n // go into Graphics2D for all the fine art, more options\n // optional, here I just get variable Stroke sizes\n Graphics2D g2 = (Graphics2D)g;\n g.setColor(Color.GRAY);\n int w = wide / 20;\n int h = tall / 20;\n g2.setColor(Color.BLACK);\n g2.setStroke(new BasicStroke(1));\n // Draw Grid lines\n for (int i = 1; i < 20; i++) {\n // Verticals\n g2.drawLine(i * w, 0, i * w, tall);\n // Horizontals\n g2.drawLine(0, i * h, wide, i * h);\n }\n }",
"private void draw(){\n\t\t\t Point level = new Point(txtBoard_top_left.x, txtBoard_top_left.y);\n\t\t\t level_info = new TextInfo(g, level, txt_width, size*4, LEVEL, this.level);\n\t\t\t level_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 2nd text info\n\t\t\t Point lines = new Point(level.x, level.y+size*2);\n\t\t\t lines_info = new TextInfo(g, lines, txt_width, size*4, LINES, this.lines);\n\t\t\t lines_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 3rd text info\n\t\t\t Point score = new Point(lines.x, lines.y+size*2);\n\t\t\t score_info = new TextInfo(g, score, txt_width, size*4, SCORE, this.score);\n\t\t\t score_info.drawTextInfo();\t\t\n\t\t}",
"@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}",
"public Text()\n {\n super();\n initialize();\n }",
"private void ArrayTexto() {\n int posicCol = 10, posicLin = 10, tamanhoLin = 40, alturaLin = 40;\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col] = new JTextField(\"\");\n array_texto[lin][col].setBounds(posicCol, posicLin, tamanhoLin, alturaLin);\n array_texto[lin][col].setBackground(Color.white);\n getContentPane().add(array_texto[lin][col]);\n if (col == 2 || col == 5 || col == 8) {\n posicCol = posicCol + 45;\n } else {\n posicCol = posicCol + 40;\n }\n }\n posicCol = 10;\n if (lin == 2 || lin == 5 || lin == 8) {\n posicLin = posicLin + 45;\n } else {\n posicLin = posicLin + 40;\n }\n }\n }",
"public void updateLinesAndGrid() {\n\t\tutilities.redrawAllLines(0, false);\n\t\ttableDisplay.setGrid(utilities.getOrderedWayPoints());\n\t}",
"public TextBlock() {\n writer = new StringMaker();\n writer.openForOutput();\n // blockOut = new StringBuilder();\n labels = new ArrayList();\n // writer.close();\n }",
"public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);",
"void drawBuilding() {\r\n\t\tgc.setFill(Color.BEIGE);\r\n\t\tgc.fillRect(0, 0, theBuilding.getXSize(), theBuilding.getYSize()); // clear the canvas\r\n\t\ttheBuilding.showBuilding(this); // draw all items\r\n\r\n\t\tString s = theBuilding.toString();\r\n\t\trtPane.getChildren().clear(); // clear rtpane\r\n\t\tLabel l = new Label(s); // turn string to label\r\n\t\trtPane.getChildren().add(l); // add label\r\n\r\n\t}",
"@Override\n protected void drawGrid(Graphics2D g2, int startPos, int rightEdgePos, int bottomEdgePos, int start,\n int nrows1, int ncols1, int gridOffset) {}",
"public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }",
"@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public KLabelMultiline(java.lang.String text) {\n // TODO codavaj!!\n }",
"private void createRenderables()\n {\n this.gridElements = new ArrayList<GridElement>();\n\n ArrayList<Position> positions = new ArrayList<Position>();\n double step = sector.getDeltaLatDegrees() / this.divisions;\n\n // Generate meridians with labels\n double lon = sector.getMinLongitude().degrees + (this.level == 0 ? 0 : step);\n while (lon < sector.getMaxLongitude().degrees - step / 2)\n {\n Angle longitude = Angle.fromDegrees(lon);\n // Meridian\n positions.clear();\n positions.add(new Position(this.sector.getMinLatitude(), longitude, 0));\n positions.add(new Position(this.sector.getMaxLatitude(), longitude, 0));\n\n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n this.sector.getMinLatitude().degrees, this.sector.getMaxLatitude().degrees, lon, lon);\n String lineType = lon == this.sector.getMinLongitude().degrees ?\n GridElement.TYPE_LINE_WEST : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lon;\n this.gridElements.add(ge);\n\n // Increase longitude\n lon += step;\n }\n\n // Generate parallels\n double lat = this.sector.getMinLatitude().degrees + (this.level == 0 ? 0 : step);\n while (lat < this.sector.getMaxLatitude().degrees - step / 2)\n {\n Angle latitude = Angle.fromDegrees(lat);\n positions.clear();\n positions.add(new Position(latitude, this.sector.getMinLongitude(), 0));\n positions.add(new Position(latitude, this.sector.getMaxLongitude(), 0));\n \n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n lat, lat, this.sector.getMinLongitude().degrees, this.sector.getMaxLongitude().degrees);\n String lineType = lat == this.sector.getMinLatitude().degrees ?\n GridElement.TYPE_LINE_SOUTH : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lat;\n this.gridElements.add(ge);\n\n // Increase latitude\n lat += step;\n }\n }",
"public KLabelMultiline(java.lang.String text, int horizontalAlignment, int verticalAlignment) {\n // TODO codavaj!!\n }",
"public Lines(CharSequence text) {\n Parameters.notNull(\"text\", text);\n this.text = text;\n initLines();\n }",
"@Override // the one in displayable. i don't even use this one\n // draws armor on the objectGrid\n public void draw(ObjectDisplayGrid objectGrid){\n Char armor = new Char(']'); // char representing a Scroll\n objectGrid.addObjectToDisplay(armor, posX, posY); // don't fix what isn't broken\n // should be armor though ??\n }",
"public RubberLinesPanel()\n\t{\n\t\tLineListener listener = new LineListener();\n\t\tpoints = new HashMap<Point, Point>();\n\t\taddMouseListener(listener);\n\t\taddMouseMotionListener(listener);\n\t\tsetBackground(Color.black);\n\t\tsetPreferredSize(new Dimension(400, 200));\n\t}",
"public void renderTagCloud(List<Tag> tags, Text text, Rectangle2D renderArea) {\n List<TextLine> textLines = new ArrayList<TextLine>();\n\n BufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);\n Graphics2D g = image.createGraphics();\n String fontFamily = text.getFontFamily();\n int fontSize = (int) text.getFontSize();\n Font font = new Font(fontFamily, Font.PLAIN, fontSize);\n FontMetrics fm = g.getFontMetrics(font);\n Point2D currentPosition = new Point2D.Double(renderArea.getX(), renderArea.getY());\n TextLine textLine = null;\n double minPadding = fm.getHeight();\n\n try {\n for (int i = 0; i < tags.size(); i++) {\n Tag tag = tags.get(i);\n String value = tag.getValue();\n Rectangle2D rect = fm.getStringBounds(value, g);\n // create new textline if not exists\n if (i == 0) {\n textLine = new TextLine();\n textLines.add(textLine);\n }\n if (currentPosition.getX() + rect.getWidth() + minPadding >= (renderArea.getX() + renderArea.getWidth())) {\n currentPosition.setLocation(renderArea.getX(),\n currentPosition.getY() + fm.getHeight() * 1.2);\n if ((currentPosition.getY() + fm.getHeight()) >= (renderArea.getY() + renderArea.getHeight()))\n break;\n textLine = new TextLine();\n textLines.add(textLine);\n }\n TSpan tspan = new TSpan(currentPosition.getX(),\n currentPosition.getY() + Math.abs(rect.getY()),\n rect.getWidth(),\n rect.getHeight(),\n fontFamily, fontSize, value);\n currentPosition.setLocation(currentPosition.getX() + rect.getWidth() + minPadding,\n currentPosition.getY());\n textLine.getTspans().add(tspan);\n text.getTspans().add(tspan);\n }\n\n for (TextLine line : textLines) {\n if (line.getTspans().size() > 1) {\n TSpan span = line.getTspans().get(line.getTspans().size() - 1);\n double additionalXPadding = ((renderArea.getX() + renderArea.getWidth()) - (span.getX() + span.getWidth())) / (double) (line.getTspans().size());\n for (int i = 0; i < line.getTspans().size(); i++) {\n TSpan tSpan = line.getTspans().get(i);\n if (i != 0) {\n tSpan.setX(tSpan.getX() + ((i + 1) * additionalXPadding));\n }\n }\n }\n }\n // remove single entry text line\n if (textLines.get(textLines.size() - 1).getTspans().size() == 1) {\n text.getTspans().remove(textLines.get(textLines.size() - 1).getTspans().get(0));\n textLines.remove(textLines.size() - 1);\n }\n\n }\n finally {\n g.dispose();\n }\n }",
"public lineas() {\n initComponents();\n \n }",
"private void initializeAnimalRowText() {\r\n\t\trowText = lang.newText(new Offset(30, 16, shiftRowSc, AnimalScript.DIRECTION_NE), \"\", \"rowText\", null);\r\n\t\trowText.hide();\r\n\t\tNode[] vertices = new Node[2];\r\n\t\tvertices[0] = new Offset(15, 0, shiftRowSc, AnimalScript.DIRECTION_NE);\r\n\t\tvertices[1] = new Offset(15, 290, shiftRowSc, AnimalScript.DIRECTION_SE);\r\n\t\tseparatorLine = lang.newPolyline(vertices, \"separatorLine\", null);\r\n\t\tseparatorLine.hide();\r\n\t}",
"public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }",
"@Override\r\n\tpublic void paint(Object g) {\n\t\tGraphics2D graphics = (Graphics2D) g;\r\n\t\t\r\n\t\t\r\n\t\tlargeFontMetrics = graphics.getFontMetrics(largeFont);\r\n\t\tmediumFontMetrics = graphics.getFontMetrics(mediumFont);\r\n\t\tsmallFontMetrics = graphics.getFontMetrics(smallFont);\t\r\n\t\tlargeHeight = largeFontMetrics.getHeight();\r\n\t\tmediumHeight = mediumFontMetrics.getHeight();\r\n\t\tsmallHeight = smallFontMetrics.getHeight();\t\r\n\t\tint firstLineYBase = largeHeight + FIRST_LINE_Y_OFFSET;\r\n\t\tint secondLineYBase = firstLineYBase + mediumHeight;\r\n\t\tint thirdLineYBase = secondLineYBase + smallHeight;\r\n\t\tint fourthLineYBase = thirdLineYBase + smallHeight;\t\t\r\n\t\tgraphics.setColor(ABOUT_BACKGROUND);\r\n\t\tgraphics.fillRect(BORDER_OFFSET,BORDER_OFFSET, drawComponent.getWidth() -BORDER_OFFSET*2, OBJECT_EDITOR_HEIGHT);\r\n\t\tgraphics.setColor(ABOUT_FOREGROUND);\r\n\t\tgraphics.setFont(largeFont);\r\n\t\tgraphics.drawString(OBJECT_EDITOR_NAME, LINE_X_OFFSET, OBJECT_EDITOR_Y + firstLineYBase);\t\r\n\t\tgraphics.setFont(mediumFont);\r\n//\t\tgraphics.drawString(\"(\" + objectEditorVersion + \": \" + objectEditorBuildTime + \")\", 90, 20);\r\n\t\tgraphics.drawString(versionDetails, LINE_X_OFFSET, OBJECT_EDITOR_Y + secondLineYBase );\t\r\n\t\tgraphics.setFont(smallFont);\r\n\t\tgraphics.drawString(AboutManager.getObjectEditorDescription().getCopyRight(), LINE_X_OFFSET, OBJECT_EDITOR_Y + thirdLineYBase);\r\n\t\tgraphics.drawString(AboutManager.getObjectEditorDescription().getPatent(), LINE_X_OFFSET, OBJECT_EDITOR_Y + fourthLineYBase);\r\n\t\tgraphics.setColor(STATUS_BACKGROUND);\r\n\t\tgraphics.fillRect(BORDER_OFFSET, STATUS_Y, drawComponent.getWidth() -BORDER_OFFSET*2, STATUS_HEIGHT);\r\n//\t\tgraphics.setColor(Color.DARK_GRAY);\r\n\t\tgraphics.setColor(STATUS_FOREGROUND);\r\n//\t\tgraphics.drawLine(0, 32, drawComponent.getWidth(), 33);\r\n\t\tgraphics.setFont(largeFont);\r\n//\t\tSystem.out.println(\"Drawstring edited object:\" + editedObject);\r\n//\r\n//\t\tSystem.out.println(\"Drawstring edited object toSTring:\" + editedObject.toString());\r\n//\t\tSystem.out.println(\"Drawstring firstLine Base:\" + firstLineYBase);\r\n\r\n//\t\tif (mainHeader != null)\r\n//\t\tgraphics.drawString( mainHeader.toString(), LINE_X_OFFSET, STATUS_Y + firstLineYBase);\r\n//\t\tSystem.out.println(\" Painting main header to string \");\r\n\r\n\t\tif (mainHeaderToString != null)\r\n\t\t\tgraphics.drawString( mainHeaderToString, LINE_X_OFFSET, STATUS_Y + firstLineYBase); // this will deadlock\r\n//\t\t\tgraphics.drawString( mainHeader.toString(), LINE_X_OFFSET, STATUS_Y + firstLineYBase);\r\n\r\n\r\n//\t\tgraphics.drawString( \"\" + editedObject + \"(\" + editorGenerationMessage + \")\", 5, 80);\r\n\t\tgraphics.setFont(mediumFont);\r\n\t\tgraphics.drawString( majorStepMessage, LINE_X_OFFSET, STATUS_Y + secondLineYBase);\r\n\t\tgraphics.setFont(smallFont);\t\t\r\n\t\tgraphics.drawString(statusMessage, LINE_X_OFFSET, STATUS_Y + thirdLineYBase);\r\n\t\tString timeString = \"(\" + numSeconds +\"s)\";\r\n\t\tgraphics.drawString( timeString, LINE_X_OFFSET, STATUS_Y + fourthLineYBase);\r\n\t\tint timeStringLength = smallFontMetrics.stringWidth(timeString);\r\n\t\tgraphics.setColor(PROGRESS_COLOR);\r\n\t\tgraphics.fillRect(LINE_X_OFFSET + timeStringLength + 3, STATUS_Y + fourthLineYBase -10, numSeconds*5, 12);\r\n\t\tgraphics.setColor(DEFINITION_BACKGROUND);\r\n\t\tgraphics.fillRect(BORDER_OFFSET, DEFINITION_Y, drawComponent.getWidth()-BORDER_OFFSET*2, drawComponent.getHeight()- DEFINITION_Y - BORDER_OFFSET);\t\r\n\t\tgraphics.setFont(largeFont);\r\n\t\tgraphics.setColor(DEFINITION_FOREGROUND);\r\n\t\tif (computerDefinition != null) {\r\n\t\tgraphics.drawString(computerDefinition.getWord(), LINE_X_OFFSET, DEFINITION_Y + firstLineYBase);\r\n\t\tgraphics.setFont(mediumFont);\r\n\t\tgraphics.drawString(computerDefinition.getMeaning(), LINE_X_OFFSET, DEFINITION_Y + secondLineYBase);\r\n\t\tgraphics.setFont(smallFont);\r\n\t\tgraphics.drawString(DEFINITIONS_BEHAVIOR_MESSAGE, LINE_X_OFFSET, DEFINITION_Y + thirdLineYBase);\r\n\t\t} else {\r\n\t\t\tgraphics.drawString(\"Missing definition file:\" + ComputerDefinitionsGenerator.DICTIONARY_FILE, LINE_X_OFFSET, DEFINITION_Y + firstLineYBase);\r\n\r\n\t\t}\r\n\t\t\r\n\t\tif (logoImage != null) {\r\n\t\t\tgraphics.drawImage(logoImage, LOGO_X, LOGO_Y, LOGO_WIDTH, LOGO_HEIGHT, drawComponent);\r\n//\t\t\tgraphics.drawImage(logoImage, LOGO_X, LOGO_Y, drawComponent);\r\n\r\n\t\t}\r\n//\t\tSystem.out.println(\"End Paint start view\");\r\n\r\n\r\n\r\n//\t\tgraphics.drawString(ComputerDefinitions.definitions[0], LINE_X_OFFSET, DEFINITION_Y + firstLineYBase);\r\n\r\n\r\n//\t\tgraphics.drawString(editorGenerationMessage, 10, 40);\r\n//\t\tgraphics.drawString(\"\" + numSeconds +\"s\", 50, 80);\r\n//\t\tgraphics.drawString(lastTraceable, 100, 100);\r\n\t}",
"public TextArea()\n {\n super(AreaId.TEXT, new AsciiByteFormatter());\n }",
"public void generate(GridLayout glr, List<String> inpg){\n\t\ttry{\n\t\t\tif(glr.getRowCount()<1){\n\t\t\t\tfor(int i=0; i<clmn; i++){\n\t\t\t\t\ttv.add(new TextView(this));\n\t\t\t\t\ttv.get(tv.size()-1).setId(id); id++;\n\t\t\t\t\trw.add(GridLayout.spec(0));\n\t\t\t\t\tcl.add(GridLayout.spec(i));\n\t\t\t\t\tglp.add(new GridLayout.LayoutParams(rw.get(i), cl.get(i)));\n\t\t\t\t\tglp.get(glp.size()-1).setGravity(Gravity.FILL);\n\t\t\t\t\ttv.get(tv.size()-1).setLayoutParams(glp.get(glp.size()-1));\n\t\t\t\t\ttv.get(tv.size()-1).setPadding(25,10,25,10);\n\t\t\t\t\tGradientDrawable gd = new GradientDrawable();\n\t\t\t\t\tgd.setColor(Color.WHITE);\n\t\t\t\t\tgd.setCornerRadius(5);\n\t\t\t\t\tgd.setStroke(10, BROWN);\n\t\t\t\t\ttv.get(tv.size()-1).setBackgroundDrawable(gd);\n\t\t\t\t\ttv.get(tv.size()-1).setTextSize(25);\n\t\t\t\t\ttv.get(tv.size()-1).setTextColor(Color.BLACK);\n\t\t\t\t\ttv.get(tv.size()-1).setText(dt.get(i));\n\t\t\t\t\ttv.get(tv.size()-1).setGravity(Gravity.CENTER);\n\t\t\t\t\tglr.addView(tv.get(tv.size()-1), glp.get(glp.size()-1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tint iref = glr.getRowCount()*clmn;\n\t\t\tint rc = glr.getRowCount();\n\t\t\tfor(int i=0; i<inpg.size(); i++){\n\t\t\t\tint r = i/clmn+rc;\n\t\t\t\trw.add(GridLayout.spec(r));\n\t\t\t\tint c = (i)-(r-rc)*clmn;\n\t\t\t\tcl.add(GridLayout.spec(c));\n\t\t\t\tGradientDrawable gd = new GradientDrawable();\n\t\t\t\tgd.setColor(Color.WHITE); // Changes this drawbale to use a single color instead of a gradient\n\t\t\t\tgd.setCornerRadius(5);\n\t\t\t\tgd.setStroke(10, BROWN);\n\t\t\t\tglp.add(new GridLayout.LayoutParams(rw.get(rw.size()-1), cl.get(cl.size()-1)));\n\t\t\t\tglp.get(glp.size()-1).setGravity(Gravity.FILL);\n\n\t\t\t\tswitch(dt.get(c)){\n\n\t\t\t\t\tcase(\"TOTAL\"):\n\t\t\t\t\tcase(\"DUE\"):\n\t\t\t\t\t\ttve.add(new TextView(this));\n\t\t\t\t\t\ttve.get(tve.size()-1).setId(id); id++;\n\t\t\t\t\t\ttve.get(tve.size()-1).setLayoutParams(glp.get(glp.size()-1));\n\t\t\t\t\t\ttve.get(tve.size()-1).setPadding(25,10,25,10);\n\t\t\t\t\t\ttve.get(tve.size()-1).setBackgroundDrawable(gd);\n\t\t\t\t\t\ttve.get(tve.size()-1).setGravity(Gravity.CENTER);\n\t\t\t\t\t\ttve.get(tve.size()-1).setTextSize(20);\n\t\t\t\t\t\ttve.get(tve.size()-1).setTextColor(Color.BLACK);\n\t\t\t\t\t\ttve.get(tve.size()-1).setText(inpg.get(i));\n\t\t\t\t\t\tcv.add(tve.get(tve.size()-1));\n\t\t\t\t\t\tcv.get(cv.size()-1).setTag(i+iref);\n\t\t\t\t\t\tglr.addView(tve.get(tve.size()-1), glp.get(glp.size()-1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tet.add(new EditText(this));\n\t\t\t\t\t\tet.get(et.size()-1).setId(id); id++;\n\t\t\t\t\t\tet.get(et.size()-1).setLayoutParams(glp.get(glp.size()-1));\n\t\t\t\t\t\tet.get(et.size()-1).setPadding(25,10,25,10);\n\t\t\t\t\t\tet.get(et.size()-1).setBackgroundDrawable(gd);\n\t\t\t\t\t\tet.get(et.size()-1).setGravity(Gravity.CENTER);\n\t\t\t\t\t\tet.get(et.size()-1).setTextSize(20);\n\t\t\t\t\t\tet.get(et.size()-1).setHint(dth.get(c));\n\t\t\t\t\t\tet.get(et.size()-1).setText(inpg.get(i));\n\t\t\t\t\t\tet.get(et.size()-1).setOnFocusChangeListener(this);\n\t\t\t\t\t\tet.get(et.size()-1).setTag(i+iref);\n\t\t\t\t\t\tcv.add(et.get(et.size()-1));\n\t\t\t\t\t\tglr.addView(et.get(et.size()-1), glp.get(glp.size()-1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tswitch(dt.get(c)){\n\n\t\t\t\t\t//case(\"DATE\"):\n\t\t\t\t\tcase(\"TIME\"):\n\t\t\t\t\tcase(\"RATE\"):\n\t\t\t\t\tcase(\"TRVL\"):\n\t\t\t\t\tcase(\"PAID\"):\n\t\t\t\t\t\tet.get(et.size()-1).setInputType(number0);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase(\"DUE\"):\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tDouble grn = Double.valueOf(tve.get(tve.size()-1).getText().toString().substring(1, tve.get(tve.size()-1).length()));\n\t\t\t\t\t\t\tif(grn>0){tve.get(tve.size()-1).setTextColor(Color.RED);}\n\t\t\t\t\t\t\tif(grn<=0){tve.get(tve.size()-1).setTextColor(Color.GREEN);}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception e){\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tToast.makeText(getBaseContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"public TextBoxComponent(JButton draw)\n\t{\n\t\tsetLayout(new FlowLayout());\n\t\tsetComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\tqualityNum = sidesNum = 0;\n\t\tlengthNum = widthNum = heightNum = 1;\n\t\tradiusNum = radius2Num = rollNum = pitchNum = yawNum = 0;\n\t\t\n\t\txText = new JLabel(\" X:\");\n\t\tyText = new JLabel(\" Y:\"); \n\t\tzText = new JLabel(\" Z:\"); \n\t\tlengthText = new JLabel(\" Length:\"); \n\t\twidthText = new JLabel(\" Width:\"); \n\t\theightText = new JLabel(\" Height:\"); \n\t\tradiusText = new JLabel(\" Radius:\"); \n\t\tradius2Text = new JLabel(\" Radius 2:\"); \n\t\trollText = new JLabel(\" Roll:\"); \n\t\tpitchText = new JLabel(\" Pitch:\"); \n\t\tyawText = new JLabel(\" Yaw:\"); \n\t\tqualityText = new JLabel(\" Quality:\");\n\t\tsidesText = new JLabel(\" # of Sides:\");\n\t \t\n\t \tx = new JTextField(12); \n\t \ty = new JTextField(12); \n\t \tz = new JTextField(12); \n\t \tlength = new JTextField(5); \n\t \twidth = new JTextField(5); \n\t \theight = new JTextField(5); \n\t \tradius = new JTextField(5); \n\t \tradius2 = new JTextField(5);\n\t \troll = new JTextField(5); \n\t \tpitch = new JTextField(5); \n\t \tyaw = new JTextField(5); \n\t \tquality = new JTextField(5); \n\t \tsides = new JTextField(5);\n\t \t\n\t \t//radius.addActionListener(this);\n\t \t//radius.addMouseListener(this);\n\t \tadd(xText);\n\t\tadd(x);\n\t\tadd(yText);\n\t\tadd(y);\n\t\tadd(zText);\n\t\tadd(z);\n\t\tadd(lengthText);\n\t\tadd(length);\n\t\tadd(widthText);\n\t\tadd(width);\n\t\tadd(heightText);\n\t\tadd(height);\n\t\tadd(radiusText);\n\t\tadd(radius);\n\t\tadd(radius2Text);\n\t\tadd(radius2);\n\t\tadd(qualityText);\n\t\tadd(quality);\n\t\tadd(sidesText);\n \tadd(sides);\n \tadd(yawText);\n\t\tadd(yaw);\n\t\tadd(pitchText);\n\t\tadd(pitch);\n\t\tadd(rollText);\n\t\tadd(roll);\n\t\t\n\t \tsetShape(\"Cube\");\n\t \t\n\t \tadd(draw);\n\t \tsetVisible(true);\n\t \t\n\t \t\n\t \t//setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t}",
"public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}",
"public TextShape (String str, int x, int y, Color col){\n this.str = str;\n this.x = x;\n this.y = y;\n this.col = col;\n }",
"public LeanTextGeometry() {}",
"private void addTextBox(GraphicObject g_obj, int x, int y) {\n Color boxColor = new Color(119, 136, 153, 30);\n\n g_obj.setFillColor(boxColor);\n g_obj.setStroke(Color.GRAY, 1);\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}",
"@Override\n\tpublic void drawShape(Graphics2D g) {\n\t\tsuper.drawShape(g);\n\t\trect.drawAndFillShape(g);\n\t\tuiText.drawShape(g);\n\t}",
"private void drawGrid(Graphics2D graphics, int x, int y,\n int width, int height)\n {\n graphics.setPaint(Color.black);\n\n // the columns\n graphics.setStroke(new BasicStroke(2));\n int agentGUISize = Parameters.getAgentGUISize();\n for (int row = 0; row < width / agentGUISize; row++)\n graphics.drawLine(x + (row * agentGUISize), y, \n x + (row * agentGUISize), y + height - 1);\n\n // the rows\n for (int col = 0; col < height / agentGUISize; col++){\n graphics.drawLine(x, y + (col * agentGUISize),\n x + width - 1, y + (col * agentGUISize));\n }\n \n // the border\n graphics.drawLine(x, y, x, y + height);\n graphics.drawLine(x, y, x + width, y);\n graphics.drawLine(x + width, y, x + width, y + height);\n graphics.drawLine(x, y + height, x + width, y + height);\n graphics.setStroke(new BasicStroke());\n }",
"public GridElement(int rows, int cols)\n\t{\n\t\tm_rows = rows;\n\t\tm_cols = cols;\n\t\tm_textLayout = new TextLayout[rows][cols];\n\t\tm_iterator = new AttributedCharacterIterator[rows][cols];\n\t\tm_rowHeight = new int[rows];\n\t\tm_colWidth = new int[cols];\n\t\t//\texplicit init\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tm_rowHeight[r] = 0;\n\t\t\tfor (int c = 0; c < m_cols; c++)\n\t\t\t{\n\t\t\t\tm_textLayout[r][c] = null;\n\t\t\t\tm_iterator[r][c] = null;\n\t\t\t}\n\t\t}\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t\tm_colWidth[c] = 0;\n\t}",
"@Override\r\n public void build(GraphicsConfiguration gc) {\n\r\n RWTLabel startLabel = new RWTLabel();\r\n startLabel.setString(\"10年後・・・\");\r\n startLabel.setColor(Color.black);\r\n startLabel.setRelativePosition(0.05f, 0.3f);\r\n Font f = new Font(\"\", Font.PLAIN, 20);\r\n startLabel.setFont(f);\r\n addWidget(startLabel);\r\n\r\n RWTLabel scenario1Label = new RWTLabel();\r\n scenario1Label.setString(\"ヤヲ・二・ナッタ「よく来たね~」\");\r\n scenario1Label.setColor(Color.black);\r\n scenario1Label.setRelativePosition(0.05f, 0.5f);\r\n Font a = new Font(\"\", Font.PLAIN, 20);\r\n scenario1Label.setFont(a);\r\n addWidget(scenario1Label);\r\n\r\n RWTLabel scenario2Label = new RWTLabel();\r\n scenario2Label.setString(\"「僕を倒したら最強のマフィアだよ~⤴」\");\r\n scenario2Label.setColor(Color.black);\r\n scenario2Label.setRelativePosition(0.05f, 0.7f);\r\n Font b = new Font(\"\", Font.PLAIN, 20);\r\n scenario2Label.setFont(b);\r\n addWidget(scenario2Label);\r\n\r\n repaint();\r\n }",
"private GridLayout buildGridData() {\n\t\tgridData = new GridLayout();\r\n\t\tgridData.setImmediate(false);\r\n\t\tgridData.setWidth(\"-1px\");\r\n\t\tgridData.setHeight(\"100.0%\");\r\n\t\tgridData.setMargin(false);\r\n\t\tgridData.setSpacing(true);\r\n\t\tgridData.setColumns(2);\r\n\t\tgridData.setRows(2);\r\n\t\t\r\n\t\t// labelA\r\n\t\tlabelA = new Label();\r\n\t\tlabelA.setImmediate(false);\r\n\t\tlabelA.setWidth(\"-1px\");\r\n\t\tlabelA.setHeight(\"-1px\");\r\n\t\tlabelA.setValue(\"<b>Autor:</b>\");\r\n\t\tlabelA.setContentMode(3);\r\n\t\tgridData.addComponent(labelA, 0, 0);\r\n\t\t\r\n\t\t// labelAuthor\r\n\t\tlabelAuthor = new Label();\r\n\t\tlabelAuthor.setImmediate(false);\r\n\t\tlabelAuthor.setWidth(\"-1px\");\r\n\t\tlabelAuthor.setHeight(\"-1px\");\r\n\t\tlabelAuthor.setValue(\"Label\");\r\n\t\tgridData.addComponent(labelAuthor, 1, 0);\r\n\t\t\r\n\t\t// labelB\r\n\t\tlabelB = new Label();\r\n\t\tlabelB.setImmediate(false);\r\n\t\tlabelB.setWidth(\"-1px\");\r\n\t\tlabelB.setHeight(\"-1px\");\r\n\t\tlabelB.setValue(\"<b>Editorial:</b>\");\r\n\t\tlabelB.setContentMode(3);\r\n\t\tgridData.addComponent(labelB, 0, 1);\r\n\t\t\r\n\t\t// labelPublisher\r\n\t\tlabelPublisher = new Label();\r\n\t\tlabelPublisher.setImmediate(false);\r\n\t\tlabelPublisher.setWidth(\"-1px\");\r\n\t\tlabelPublisher.setHeight(\"-1px\");\r\n\t\tlabelPublisher.setValue(\"Label\");\r\n\t\tgridData.addComponent(labelPublisher, 1, 1);\r\n\t\t\r\n\t\treturn gridData;\r\n\t}",
"@Override\r\n\tprotected void draw(PGraphics pg) {\r\n\t\tif(font == null) {\r\n\t\t\tfont = rootContainer.getPApplet().createFont(\"Arial\", ((int)this.height * 0.8F));\r\n\t\t}\r\n\t\tpg.stroke(0);\r\n\t\tpg.strokeWeight(3);\r\n\t\tpg.noFill();\r\n\t\tif(activated == false) {\r\n\t\t}else {\r\n\t\t\tpg.line(x, y, x+height, y+height);\r\n\t\t\tpg.line(x+height, y, x, y+height);\r\n\t\t}\r\n\t\tpg.rect(x, y, height, height);\r\n\t\tpg.textAlign(PApplet.LEFT, PApplet.CENTER);\r\n\t\tpg.textFont(font);\r\n\t\tpg.fill(this.textColor.red, textColor.green, textColor.blue, textColor.alpha);\r\n\t\tpg.text(this.text, x+height+(height/2), y-3, width-height, height);\r\n\t}",
"public Text(double x, double y, String text, TextStyle style)\n {\n super(x, y, text);\n this.style = style;\n initialize();\n }",
"public static void GenerateTextArea(int id)\n\t{\n\t\tareaHeight += 210;\n\t\tHome.createArticle.setPreferredSize(new Dimension(800, areaHeight));\n\t\ti++; \n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = i;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.insets = new Insets(10, 0, 0, 5);\n\t\tgbc.anchor = GridBagConstraints.LINE_END;\n\t\tHome.createArticle.add(textLabels.get(id), gbc);\n\t\t\n\t\tgbc.gridx = 1;\n\t\tgbc.gridwidth = 3;\n\t\tgbc.insets = new Insets(10, 0, 0, 0);\n\t\tgbc.anchor = GridBagConstraints.LINE_START;\n\t\tgbc.weighty = 10;\n\t\tHome.createArticle.add(textAreas.get(id), gbc);\n\t}",
"private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}",
"private void printGridLine(int line) {\n\t\tString textLine = \" \";\r\n\t\tswitch(line) {\r\n\t\t\tcase 1:\t\t\t\t\r\n\t\t\t\ttextLine += \" ╔ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╦ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ╗\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\ttextLine += \" ║ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╬ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ║\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\ttextLine += \" ╚ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╩ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ╝\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t}\r\n\t}",
"private void drawGrid(Canvas canvas, double cell_width, double cell_height) {\n\t\tGraphicsContext gc = canvas.getGraphicsContext2D();\n\t\tgc.clearRect(0, 0, canvas.getWidth(),canvas.getHeight());\n\t\t// vertical lines\n\t\tgc.setStroke(Color.BLACK);\n\t\tfor(int i = 0 ; i < Params.world_width; i++){\n\t\t\tgc.strokeLine(cell_width*i, 0, cell_width*i, canvas.getHeight());\n\t\t}\n\t\tfor(int i = 0 ; i < Params.world_height; i++){\n\t\t\tgc.strokeLine(0, cell_height*i, canvas.getWidth(), cell_height*i);\n\t\t}\n\t}",
"private void drawTxt(Canvas canvas, Rect gridRange){\n\n int length = points.size();\n int gridNumber = 5;\n int step = (gridRange.right - gridRange.left) / gridNumber;\n\n //draw digits\n float max = getMaxX();\n float min = getMinX();\n\n if(length == 1)\n min = 0;\n\n float dis = (max - min) / gridNumber;\n\n tetxPaint.setTextSize(textSize);\n\n\n //draw x digits\n for(int i = 0; i < gridNumber + 1; i++){\n\n String txt = Float.toString(round(min, 1));\n\n Rect bounds = getTxtBounds(tetxPaint, txt);\n canvas.drawText(txt, (gridRange.left + i*step) - (bounds.width()/2), gridRange.bottom + bounds.height(), tetxPaint);\n min += dis;\n }\n\n step = (gridRange.bottom - gridRange.top) / gridNumber;\n\n max = maxVal;\n min = minVal;\n\n if(length == 1)\n min = 0;\n\n dis = (max - min) / gridNumber;\n\n //draw y digits\n for(int i = 0; i < gridNumber + 1; i++){\n\n String txt = Float.toString(round(min, 1));\n\n Rect bounds = getTxtBounds(tetxPaint, txt);\n canvas.drawText(txt, gridRange.left - bounds.width(), gridRange.bottom - step*i, tetxPaint);\n min += dis;\n }\n }",
"private void displayGrid() {\r\n System.out.print(this.grid);\r\n }",
"private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}",
"void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);",
"public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment, GameContainer c,\n\t\t\tStyledText style);",
"private void drawTextValues(boolean clearing) \r\n\t{\n\t\r\n\t\tdouble initalSize = getWidth() > getHeight() ? getHeight() : getWidth();\r\n\t\t\r\n\t\tdouble w = valueCanvas.getWidth();\r\n\t\tdouble h = valueCanvas.getHeight();\r\n\t\t//valueCanvas.setWidth(50);\r\n\t\t//valueCanvas.setHeight(50);\r\n\t\tGraphicsContext gc = valueCanvas.getGraphicsContext2D();\r\n\t\t\r\n\t\tFont font = Font.font(fontBase.getName(), scaleableFontSize.get());\r\n\t\t//Dieses ist dann zu vollziehen, wenn nur der Wert sich geändert hat.\r\n\t\tif(clearing)\r\n\t\t{\r\n\t\t\r\n\t\t\tgc.clearRect(0, 0, w, h);\r\n\t\t}\r\n\t\t\r\n\t\t//TODO raus\r\n\t\tgc.setFill(Color.RED);\r\n\t\tgc.fillRect(0, 0, valueCanvas.getWidth(), valueCanvas.getHeight());\r\n\t\t\t\r\n\t\t//text color\r\n\t\tgc.setFill(Color.web(\"#00000080\"));\r\n\t\t\r\n\t\tif(majorValue != null)\r\n\t\t{\r\n\t\t\t//initial\r\n\t\t\t //Ermittlung nach dem maximal möglichen Zustand\r\n\t\t\t Bounds maxTextAbmasse = this.getMaxTextWidth(font, this.majorValue);\r\n\t\t\t if(maxTextAbmasse.getWidth() < w && maxTextAbmasse.getHeight() < h)\r\n\t\t\t {\r\n\t\t\t\t double tempSize = getGreaterFont(initalSize * 0.12, w, h, majorValue);\r\n\t\t\t\t\tif(tempSize != getFontSize().get())\r\n\t\t\t\t\t\tgetFontSize().set(tempSize);\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t double tempSize = getLesserFont(getFontSize().get(), w, h, majorValue);\r\n\t\t\t\t\tif(tempSize != getFontSize().get())\r\n\t\t\t\t\t\tgetFontSize().set(tempSize);\r\n\t\t\t }\r\n\t\t\t font = Font.font(fontBase.getName(), getFontSize().get());\r\n\t\t}\r\n\t\tgc.setFont(font);\r\n\t\t\r\n\t\tText measuringUnit = new Text();\r\n\t\tif(majorValue == null)\r\n\t\t\tmeasuringUnit.setText(\"\");\r\n\t\telse\r\n\t\t\tmeasuringUnit.setText(\" \"+majorValue.getMeasurementUnit());\r\n\t\tmeasuringUnit.setFont(font);\r\n\t\t\r\n\t\tdouble masseinheitX = w - (measuringUnit.getLayoutBounds().getWidth());// + (gaugeSize * 0.015635));\r\n\t\t\r\n\t\tdouble haelfte = measuringUnit.getLayoutBounds().getHeight() / 2d;\r\n\t\tdouble masseinheitY = h/2d + (haelfte/2d);\r\n\t\tgc.fillText(measuringUnit.getText(), masseinheitX, masseinheitY);\r\n\t\t\t\r\n\t\t\r\n\t\tText valueField = new Text();\r\n\t\t\r\n\t\tif(majorValue == null)\r\n\t\t\tvalueField.setText(\"\");\r\n\t\telse\r\n\t\t\tvalueField.setText(String.format(\"%.1f\", majorValue.getCurrentValue()));\r\n\t\tvalueField.setFont(font);\r\n\t\t\r\n\t\tdouble valueX = masseinheitX - (valueField.getLayoutBounds().getWidth());// + (gaugeSize * 0.015635));\r\n\t\tdouble valueY = masseinheitY;\r\n\t\t\r\n\t\tgc.setFont(font);\r\n\t\tgc.fillText(valueField.getText(), valueX, valueY);\r\n\t\t\r\n\t}",
"public void drawMultiLine(SpriteBatch batch, String text, float x, float y);",
"private void createGraphics() {\n\t\toppStatGrid = new GridPane();\n\t\toppStatGrid.setHgap(5);\n\t\tColumnConstraints columnOpp1 = new ColumnConstraints();\n\t\tcolumnOpp1.setMinWidth(gameScene.getWidth()*0.3);\n\t\t//column1.setPrefWidth(gameScene.getWidth()*0.3);\n\t\tColumnConstraints columnOpp2 = new ColumnConstraints();\n\t\tcolumnOpp2.setMinWidth(gameScene.getWidth()*0.3);\n\t\toppStatGrid.getColumnConstraints().addAll(columnOpp1,columnOpp2);\n\t\tRowConstraints rowOpp = new RowConstraints();\n\t\trowOpp.setMinHeight(gameScene.getHeight()*0.1);\n\t\toppStatGrid.getRowConstraints().add(rowOpp);\n\t\toppStatGrid.getRowConstraints().add(rowOpp);\n\n\t\tlocStatGrid = new GridPane();\n\t\tlocStatGrid.setHgap(5);\n\t\tColumnConstraints columnLoc1 = new ColumnConstraints();\n\t\tcolumnLoc1.setMinWidth(gameScene.getWidth()*0.1);\n\t\t//column1.setPrefWidth(gameScene.getWidth()*0.3);\n\t\tColumnConstraints columnLoc2 = new ColumnConstraints();\n\t\tcolumnLoc2.setMinWidth(gameScene.getWidth()*0.3);\n\t\tlocStatGrid.getColumnConstraints().addAll(columnLoc1,columnLoc2);\n\t\tRowConstraints rowLoc2 = new RowConstraints();\n\t\trowLoc2.setMinHeight(gameScene.getHeight()*0.1);\n\t\tlocStatGrid.getRowConstraints().add(rowLoc2);\n\t\tlocStatGrid.getRowConstraints().add(rowLoc2);\n\n\t\topponentName.setFont(Font.font(defaultFont, FontWeight.BOLD, 16));\n\t\tlocalName.setFont(Font.font(defaultFont, FontWeight.BOLD, 16));\n\t\topponentLevel.setFont(Font.font(defaultFont, 14));\n\t\tlocalLevel.setFont(Font.font(defaultFont, 14));\n\t\topponentHealth.setFont(Font.font(defaultFont, 14));\n\t\tlocalHealth.setFont(Font.font(defaultFont, 14));\n\n\t\topponentName.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localName, HPos.RIGHT);\n\t\topponentLevel.setAlignment(Pos.CENTER_RIGHT);\n\t\tlocalLevel.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localLevel, HPos.RIGHT);\n\t\topponentHealth.setAlignment(Pos.CENTER_RIGHT);\n\t\tlocalHealth.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localHealth, HPos.RIGHT);\n\n\t\topponentHealthBar = new Rectangle();\n\t\tlocalHealthBar = new Rectangle();\n\t\topponentHealthBar.setWidth(gameScene.getWidth()*0.3);\n\t\tlocalHealthBar.setWidth(gameScene.getWidth()*0.3);\n\t\topponentHealthBar.setHeight(gameScene.getHeight()*0.1);\n\t\tlocalHealthBar.setHeight(gameScene.getHeight()*0.1);\n\t\topponentHealthBar.setArcWidth(5);\n\t\topponentHealthBar.setArcHeight(5);\n\t\tlocalHealthBar.setArcWidth(5);\n\t\tlocalHealthBar.setArcHeight(5);\n\t\t/*NumberBinding oppHealthBind = gameScene.property\n\t\topponentHealthBar.prop*/\n\n\t\topponentHealthBar.setEffect(new Lighting());\n\t\tlocalHealthBar.setEffect(new Lighting());\n\n\t\topponentHealthBar.setFill(Color.DARKRED);\n\t\tlocalHealthBar.setFill(Color.DARKRED);\n\n\t\toppStatGrid.add(opponentName, 0, 0);\n\t\toppStatGrid.add(opponentLevel, 1, 0);\n\t\toppStatGrid.add(opponentHealthBar, 0, 1);\n\t\toppStatGrid.add(opponentHealth, 1, 1);\n\n\t\tlocStatGrid.add(localLevel, 0, 0);\n\t\tlocStatGrid.add(localName, 1, 0);\n\t\tlocStatGrid.add(localHealthBar, 1, 1);\n\t\tlocStatGrid.add(localHealth, 0, 1);\n\n\t\tAnchorPane.setTopAnchor(oppStatGrid, 10.0);\n\t\tAnchorPane.setLeftAnchor(oppStatGrid, 10.0);\n\n\t\tAnchorPane.setBottomAnchor(locStatGrid, 10.0);\n\t\tAnchorPane.setRightAnchor(locStatGrid, 10.0);\n\n\t\tthis.getChildren().addAll(oppStatGrid,locStatGrid);\n\t\t\n\t\toppPane = new Pane();\n\t\toppPane.setMinWidth(gameScene.getWidth()*0.5);\n\t\toppPane.setMinHeight(gameScene.getHeight()*0.5);\n\t\t\n\t\tlocPane = new Pane();\n\t\tlocPane.setMinWidth(gameScene.getWidth()*0.5);\n\t\tlocPane.setMinHeight(gameScene.getHeight()*0.5);\n\t\t\n\t\tAnchorPane.setBottomAnchor(locPane, 10.0);\n\t\tAnchorPane.setLeftAnchor(locPane, 10.0);\n\t\t\n\t\tAnchorPane.setTopAnchor(oppPane, 10.0);\n\t\tAnchorPane.setRightAnchor(oppPane, 10.0);\n\t\t\n\t\tthis.getChildren().addAll(locPane,oppPane);\n\t\t\n\n\t}",
"@Override\n protected void createLines() {\n\n Line[] lines = new GraphicalLine[(2 * columns * rows) + columns + rows];\n int lineIndex = 0;\n\n int boxCounter = 0;\n int x = settings.dotStartX() + settings.dotWidth();\n int y = settings.dotStartY() + settings.lineOffset();\n boolean isTop = true;\n boolean isFirstRow = true;\n\n /* horizontal lines */\n /* for every row + 1 */\n for (int i = 0; i < rows + 1; i++) {\n\n /* for every column */\n for (int j = 0; j < columns; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineWidth(), settings.lineHeight());\n line.addBox(boxes[boxCounter]);\n if (isTop) {\n boxes[boxCounter].setTopLine(line);\n } else {\n boxes[boxCounter].setBottomLine(line);\n /* if there is a next row */\n if (i + 1 < rows + 1) {\n line.addBox(boxes[boxCounter + columns]);\n boxes[boxCounter + columns].setTopLine(line);\n }\n }\n boxCounter++;\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n boxCounter = isTop ? boxCounter - columns : boxCounter;\n if (isFirstRow) {\n isTop = false;\n isFirstRow = false;\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.dotWidth();\n }\n\n boxCounter = 0;\n x = settings.dotStartX() + settings.lineOffset();\n y = settings.dotStartY() + settings.dotWidth();\n\n /* vertical lines */\n /* for every row */\n for (int i = 0; i < rows; i++) {\n\n /* for every column + 1 */\n for (int j = 0; j < columns + 1; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineHeight(), settings.lineWidth());\n /* if there is a previous vertical line */\n if (j > 0) {\n boxes[boxCounter - 1].setRightLine(line);\n line.addBox(boxes[boxCounter - 1]);\n }\n /* if there is a next column */\n if (j + 1 < columns + 1) {\n boxes[boxCounter].setLeftLine(line);\n line.addBox(boxes[boxCounter]);\n boxCounter++;\n }\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.lineOffset();\n }\n\n this.lines = lines;\n }",
"public DrawingPane() {\n this.setBorder(new Border(new BorderStroke(Color.BLACK, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n this.setStyle(\"-fx-background-color : white\");\n\n color = new ObjectPropertyBase<Color>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Color\";\n }\n };\n\n thickness = new ObjectPropertyBase<Integer>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Thickness\";\n }\n };\n\n modifiable = new BooleanPropertyBase(true) {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Modifiability\";\n }\n };\n\n lastLine = new ObjectPropertyBase<DrawingInfos>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Last Line\";\n }\n };\n\n this.canvas = new Canvas();\n this.context = canvas.getGraphicsContext2D();\n this.drawingInfos = new DrawingInfos();\n this.lastLine.setValue(new DrawingInfos());\n this.lastLineList = new DrawingInfos();\n\n getChildren().add(canvas);\n initialize();\n }",
"public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }",
"@Override\n protected final void setGraphics() {\n super.setGraphics();\n Graphics g = toDraw.getGraphics();\n g.setColor(Color.BLACK); \n \n for (int i = 0; i < choices.size(); i++) { \n g.drawString(choices.get(i).getValue(), wGap, (i + 1) * hItemBox);\n }\n }",
"public void draw() {\n final int columns = (int) (2 * Math.ceil(Math.max(-minx, maxx)));\n final int rows = (int) (2 * Math.ceil(Math.max(-miny, maxy)));\n\n final int drawColumns;\n final int drawRows;\n drawColumns = drawRows = Math.max(columns, rows);\n\n double leftOffsetPx = BORDER;\n double rightOffsetPx = BORDER;\n double topOffsetPx = BORDER;\n double bottomOffsetPx = BORDER;\n\n final double availableWidth = view.getWidth() - leftOffsetPx - rightOffsetPx;\n final double availableHeight = view.getHeight() - topOffsetPx - bottomOffsetPx;\n\n final double drawWidth;\n final double drawHeight;\n drawWidth = drawHeight = Math.min(availableWidth, availableHeight);\n\n leftOffsetPx = rightOffsetPx = (view.getWidth() - drawWidth) / 2;\n topOffsetPx = bottomOffsetPx = (view.getHeight() - drawHeight) / 2;\n\n // Adjust for aspect ratio\n columnWidth = rowHeight = drawHeight / columns;\n\n centerX = (drawColumns / 2.0) * columnWidth + leftOffsetPx;\n centerY = (drawRows / 2.0) * rowHeight + topOffsetPx;\n\n drawVerticalLine((float) centerX, topOffsetPx, bottomOffsetPx);\n drawHorizontalLine((float) centerY, leftOffsetPx, rightOffsetPx);\n\n int yTick = (int) (-drawRows / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (yTick <= drawRows / 2.0) {\n if (yTick != 0) {\n final String label = yTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", yTick) : null;\n drawYTick(-yTick * rowHeight + centerY, centerX, label);\n }\n yTick += TICK_INTERVAL;\n }\n\n int xTick = (int) (-drawColumns / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (xTick <= drawColumns / 2.0) {\n if (xTick != 0) {\n final String label = xTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", xTick) : null;\n drawXTick(xTick * columnWidth + centerX, centerY, label);\n }\n xTick += TICK_INTERVAL;\n }\n\n double adaptiveTextSize = getAdaptiveTextSize();\n\n final Paint paint = new Paint();\n final float textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, (float)adaptiveTextSize, view.getResources().getDisplayMetrics());\n paint.setTextSize(textSize);\n paint.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));\n for (Entry entry : data.getEntries()) {\n final double x = entry.getX();\n final double y = entry.getY();\n\n final double xDraw = x * columnWidth + centerX;\n final double yDraw = -y * rowHeight + centerY;\n\n CharSequence dispStr = entry.getStringLabel();\n if (dispStr == null) {\n dispStr = String.format(\"%.0f\", entry.getValue());\n }\n\n\n\n\n Rect bounds = getTextRectBounds(dispStr, paint);\n int textHeight = bounds.height();\n int textWidth = bounds.width();\n canvas.drawText(dispStr, 0, dispStr.length(),\n (float) xDraw - textWidth * 0.5f, (float) yDraw + textHeight * 0.5f,\n paint);\n }\n\n }",
"public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"public CrnLineContainer() {\n }",
"@Override\n\tpublic void buildBody() {\n\t\tg.drawRect(60, 50, 10, 50);\n\t}",
"public void drawGrid(Graphics g)\n {\n //g.setColor(Color.GREEN);\n \n \n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n {\n int x = (int)(Math.random()*250);\n int y = (int)(Math.random()*250);\n int z = (int)(Math.random()*250);\n \n Color randomColor = new Color(x,y,z);\n g.setColor(randomColor); \n \n g.drawLine(150,150,1260,150);\n g.drawLine(150,150,150,630);\n g.drawLine(150,630,1260,630);\n g.drawLine(1260,150,1260,630);\n }\n else\n { \n if(lastpowerUp.equals(\"BLUE\") && powerupTimer > 0)\n {\n Color transGray = new Color(55,55,55);\n g.setColor(transGray); \n } \n else if(difficult.equals(\"GHOST\"))\n g.setColor(Color.WHITE);\n else if(color.equals(\"GREEN\"))\n g.setColor(Color.GREEN); //Green outline\n else if(color.equals(\"BLUE\"))\n g.setColor(Color.BLUE); \n else if(color.equals(\"CYAN\"))\n g.setColor(Color.CYAN); \n else if(color.equals(\"WHITE\"))\n g.setColor(Color.WHITE); \n else if(color.equals(\"GRAY\"))\n g.setColor(Color.GRAY);\n else if(color.equals(\"YELLOW\"))\n g.setColor(Color.YELLOW); \n else if(color.equals(\"MAGENTA\"))\n g.setColor(Color.MAGENTA); \n else if(color.equals(\"ORANGE\"))\n g.setColor(Color.ORANGE); \n else if(color.equals(\"PINK\"))\n g.setColor(Color.PINK); \n else if(color.equals(\"RED\"))\n g.setColor(Color.RED); \n \n \n g.drawLine(150,150,1260,150);\n g.drawLine(150,150,150,630);\n g.drawLine(150,630,1260,630);\n g.drawLine(1260,150,1260,630);\n }\n }",
"private void createGUI() {\r\n\r\n cgRect modelSpace = new cgRect(0, 0, 11, 11);\r\n cgRect deviceSpace = new cgRect(0, 0, 600, 600);\r\n\r\n cgTransformation tr = new cgTransformation(modelSpace, deviceSpace, false, false);\r\n\r\n /**\r\n *\r\n */\r\n // The formatter of axis' labels will use default locale and pattern\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n // We will use \"fixed size\" axis renderer for all axes\r\n \r\n // 参数一:标签刻度长度大小 参数二:标签数字长度大小 参数三:数字和刻度之间的距离大小,长度为像素\r\n cgAxisRenderer ar = new cgFixedSizeAxisRenderer(5, 15, 50, nf);\r\n\r\n // ----------------------------------------------------\r\n // First axis - values match the model coordinates,\r\n // model origin is at 0.0\r\n // ----------------------------------------------------\r\n \r\n // 第三个参数为显示的数字数\r\n cgRect bbox1 = new cgRect(0, 0, 11, 1);\r\n TickGenerator tg1 = new NumericTickGenerator(1.0);\r\n cgAxisShape axis1 = new cgAxisShape(cgAxisShape.NORTH, bbox1, tg1, ar);\r\n\r\n cgShapeListLayer layer = new cgShapeListLayer();\r\n\r\n layer.addShape(axis1);\r\n\r\n /**\r\n *\r\n */\r\n // ----------------------------------------------------\r\n // Create grid using regular grid renderer\r\n // ----------------------------------------------------\r\n cgRect bbox = new cgRect(0, 0, 10, 10);\r\n TickGenerator htg = new NumericTickGenerator(1.0);\r\n TickGenerator vtg = new NumericTickGenerator(1.0);\r\n cgGridRenderer gr = new cgRegularGridRenderer();\r\n cgGridShape grid = new cgGridShape(bbox, htg, vtg, gr);\r\n\r\n // ----------------------------------------------------\r\n // Create view\r\n // ----------------------------------------------------\r\n// cgShapeListLayer layer = new cgShapeListLayer();\r\n// layer.addShape( grid );\r\n cgContainerModel model = new cgContainerModel();\r\n model.setBoundingBox(modelSpace);\r\n model.addLayer(layer);\r\n\r\n cgPlotView view = new cgPlotView(model, tr);\r\n\r\n // ----------------------------------------------------\r\n // Create plot\r\n // ----------------------------------------------------\r\n cgPlot plot = new cgPlot(view);\r\n\r\n plot.addScrollbar(cgGenericPlotLayout.SOUTH);\r\n plot.addScrollbar(cgGenericPlotLayout.EAST);\r\n\r\n getContentPane().add(plot);\r\n\r\n // ----------------------------------------------------\r\n // Set up listeners\r\n // ----------------------------------------------------\r\n // Set window listener\r\n addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n System.exit(0);\r\n }\r\n });\r\n }",
"private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }",
"@Test\r\n public void Test003DisplyGrid()\r\n {\r\n\r\n //@formatter:off\r\n String expectedDisplay = \r\n \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|*|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|*|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|*|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|*|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" ;\r\n //@formatter:on\r\n gol.initalizeGrid();\r\n gol.makeLiveCell(1, 1);\r\n gol.makeLiveCell(2, 2);\r\n gol.makeLiveCell(3, 3);\r\n gol.makeLiveCell(4, 4);\r\n String actualDisplay = gol.displyGrid();\r\n\r\n assertEquals(expectedDisplay, actualDisplay);\r\n\r\n }",
"public DisplayBox(int lines, int columns, Font font) {\n this.lines = lines;\n this.columns = columns;\n this.fontSize = font.getSize();\n\n components = new DisplayComponent[lines][columns];\n\n setPreferredSize(new Dimension(columns * fontSize, lines * fontSize));\n setFont(font);\n }",
"private void addTextObject(GraphicObject g_obj, int x, int y) {\n Color stroke = new Color(0, 0, 0, 0);\n\n g_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(stroke, 0);\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}",
"public void Onwin2(){\r\n xPos=0;\r\n yPos=0;\r\n indice = rand.nextInt(11);\r\n if(indice==12){indice2= indice-1;}\r\n else{indice2= indice+1;};\r\n\r\n\r\n texto.setText(\"\");\r\n texto.append(expressions[indice2]);\r\n texto1.setText(\"\");\r\n texto1.append(expressions[indice]);\r\n\r\n matrix=generateMatrix(Alphat,expressions[indice]);\r\n textoG.setText(\"\");\r\n for(int i=0;i<matrix.length;i++){\r\n textoG.append(matrix[i]+\"\\n\");\r\n }\r\n\r\n }",
"public GeometryWKTCellRenderer() {\n this(DEFAULT_MAX_WKT_LENGTH, DEFAULT_MAX_ROW_HEIGHT);\n }",
"public void displayTasks(){\r\n\t\ttextSize(12);\r\n\t\ttextAlign(CENTER, CENTER);\r\n\t\t\r\n\t\t//draws day numbers and the grid lines from 1 to 30\r\n\t\tfor(int i = 0; i < 30; i++){\r\n\t\t\tfill(0,0,100);\r\n\t\t\t\r\n\t\t\t//writes day numbers\r\n\t\t\ttext((i+1), ((9 + i) * col_width), row_height);\r\n\t\t\t\r\n\t\t\t//changes the line color to varying white and grey\r\n\t\t\tif(i % 2 == 0 || i == 29){\r\n\t\t\t\tstroke(0,0,100);\r\n\t\t\t}else{\r\n\t\t\t\tstroke(0,0,70);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//draws 30 lines below corresponding day numbers\r\n\t\t\tline(((9 + i) * col_width), (2 * row_height), ((9 + i) * col_width), (height - (2 * row_height)));\r\n\t\t}\r\n\t\t\r\n\t\ttextAlign(LEFT, CENTER);\r\n\t\t\r\n\t\t//writes the task names and draws the corresponding rectangles\r\n\t\tfor(int i = 0; i < row_count; i++){\r\n\t\t\tfill(0,0,100);\r\n\t\t\t\r\n\t\t\t//writes taks names\r\n\t\t\ttext(tasks.get(i).get_name(), row_height, ((3 + i) * row_height));\r\n\t\t\t\r\n\t\t\tfill((i * (100 / row_count)),100,100);\r\n\t\t\tnoStroke();\r\n\t\t\t\r\n\t\t\t//draws corresponding task rectangles without using map function\r\n\t\t\t//(8 + start) for starting left most x coordinate because day values starts at 1 not 0\r\n\t\t\t//(2.5 + index) for starting top most y coordinate because grid starts at 2.5 * row_height\r\n\t\t\t//rect(((8 + tasks.get(i).get_start()) * col_width), ((float)((2.5 + i) * row_height)), ((tasks.get(i).get_end() - tasks.get(i).get_start()) * col_width), ((float)(0.8 * row_height)), 10);\r\n\t\t\t\r\n\t\t\t//using map function\r\n\t\t\t//calculates the mapped x, y coordinates of each rectangle and their corresponding width and height\r\n\t\t\t//maps the start day value from 1 to 30 onto x coordinates based on col_width\r\n\t\t\tx = map(tasks.get(i).get_start(), 1, 30, (9 * col_width), (38 * col_width));\r\n\t\t\t//maps each data row's index onto y coordinate based on row_height\r\n\t\t\ty = map(i, 0, (row_count - 1), (float)(2.5 * row_height), (float)((1.5 + row_count) * row_height));\r\n\t\t\t//maps the width of the box (length is end day - start day) from 1 to 30 onto (1 to 30) * col_width\r\n\t\t\tw = map((tasks.get(i).get_end() - tasks.get(i).get_start()), 1, 30, col_width, (30 * col_width));\r\n\t\t\t//makes each box's height 80% of row_height to show separation\r\n\t\t\th = map(row_height, 0, 100, 0, 80);\r\n\t\t\t\r\n\t\t\trect(x, y, w, h, 10);\r\n\t\t\r\n\t\t}\r\n\t}",
"@Test\r\n public void Test002DisplyGrid()\r\n {\r\n\r\n //@formatter:off\r\n String expectedDisplay = \r\n \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" \r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\"\r\n + \"|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|\\n\" ;\r\n //@formatter:on\r\n gol.initalizeGrid();\r\n String actualDisplay = gol.displyGrid();\r\n\r\n assertEquals(expectedDisplay, actualDisplay);\r\n\r\n }",
"public void createTextBox(){\n // Check if theGreenFootImage was set, otherwise create a blanco image\n // with the specific heights.\n if(theGreenfootImage != null){\n image = new GreenfootImage(theGreenfootImage);\n }else{\n image = new GreenfootImage(fieldWidth, fieldHeight);\n }\n \n if(hasBackground){\n if(borderWidth == 0 || borderHeight == 0){\n createAreaWithoutBorder();\n } else{\n createAreaWithBorder(borderWidth, borderHeight);\n }\n }\n \n // Create the default dont with given fontsize and color.\n font = image.getFont();\n font = font.deriveFont(fontSize);\n image.setFont(font);\n image.setColor(fontColor);\n \n // Draw the string in the image with the input, on the given coordinates.\n image.drawString(input, drawStringX, drawStringY);\n \n setImage(image); // Place the image\n }",
"@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }",
"public LogLinesTable(int pageSize, DataGrid.Resources resources) {\n super(pageSize, resources);\n this.setHeight(\"100%\");\n Cell<String> lineNumCell = new TextCell();\n lineNumCol = new Column<LogLine, String>(lineNumCell) {\n @Override\n public String getValue(LogLine line) {\n return ((Integer) line.getLineNum()).toString();\n }\n };\n this.addColumn(lineNumCol, \"Line #\");\n\n Cell<String> lineCell = new TextCell();\n lineCol = new Column<LogLine, String>(lineCell) {\n @Override\n public String getValue(LogLine line) {\n return line.getLine();\n }\n };\n this.addColumn(lineCol, \"Line\");\n this.setWidth(\"100%\");\n // The log line number column is 70px wide\n this.setColumnWidth(lineNumCol, 70, Unit.PX);\n // The log line text column is 100% wide (rest of table width)\n this.setColumnWidth(lineCol, 100, Unit.PCT);\n }",
"public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }",
"public void drawGrid() {\r\n\t\tsetLayout(new GridLayout(getSize_w(), getSize_h()));\r\n\t\tfor (int i = 0; i < getSize_h(); i++) {\r\n\t\t\tfor (int j = 0; j < getSize_w(); j++) {\r\n\t\t\t\tcity_squares[i][j] = new Gridpanel(j, i);\r\n\t\t\t\tadd(city_squares[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void createRectangles() {\r\n rectangles.clear();\r\n for (int i = 0; i < gridSize * gridSize; i++) {\r\n Rectangle r = new Rectangle(rectangleSize, rectangleSize, Color.BLUE);\r\n r.setStroke(Color.BLACK);\r\n rectangles.add(r);\r\n }\r\n }",
"@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }",
"public static void BottomRow() {\r\n\t\r\n\tb1.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\r\n\tb2.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\r\n\tb3.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\tGUI1Panel.add(b1);\r\n\tGUI1Panel.add(b2);\r\n\tGUI1Panel.add(b3);\r\n\r\n}",
"private void drawGantt(Gantt g, int id) {\n int x = DEFAULT_NAME_SPACE + 2*DEFAULT_HORIZONTAL_SPACE, y = DEFAULT_HEIGHT_GANTT*id+DEFAULT_VERTICAL_SPACE;\n \n //draw the resource name before each line\n this.drawString(g.resource, DEFAULT_HORIZONTAL_SPACE, y + (DEFAULT_HEIGHT_GANTT/2) + DEFAULT_HEIGHT_GANTT%2, Color.black);\n \n //controls how many segment lines each node will have\n int size = g.segmentLines.size();\n for (int i = 0; i < size; i++) {\n if (i != size -1) {\n float c = 1 - ((float)g.activeContainers.get(i)/(float)16);\n drawRectangle(x+g.segmentLines.get(i)*PxS,\n y,\n (g.segmentLines.get(i+1) - g.segmentLines.get(i))*PxS,\n DEFAULT_HEIGHT_GANTT,\n true,\n new Color(c,c,c));\n drawLine(x+g.segmentLines.get(i)*PxS,\n y,\n x+g.segmentLines.get(i)*PxS,\n y+DEFAULT_HEIGHT_GANTT,\n Color.black);\n } else {\n drawLine(x+g.segmentLines.get(i)*PxS,\n y,\n x+g.segmentLines.get(i)*PxS,\n y+DEFAULT_HEIGHT_GANTT,\n Color.black);\n }\n }\n //cosmetic lines \n drawLine(x+(latest_finish*PxS), y, x+(latest_finish*PxS), y+DEFAULT_HEIGHT_GANTT, Color.black);\n drawLine(x, y, x+(latest_finish*PxS), y, Color.black);\n drawLine(x, y+DEFAULT_HEIGHT_GANTT, x+(latest_finish*PxS), y+DEFAULT_HEIGHT_GANTT, Color.black);\n }",
"protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}",
"private void makeOutro()\r\n\t{\r\n\t TextProperties outroProperties = new TextProperties();\r\n\t outroProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(Font.SANS_SERIF, Font.PLAIN, width >= 80 ? 18 : 13));\r\n\t outroProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.blue);\r\n\t \r\n\t String outro1Text = \"In the result all \"+amountOfStars+\" points are assigned to groups.\";\r\n\t String outro2Text = width > 80 ? \"This is used in astrophysics to find clusters of stars or dark matter out of millions of 2D or 3D points.\" : \"This is used in astrophysics to find clusters\";\r\n\t String outro3Text = \" of stars or dark matter out of millions of 2D or 3D points.\";\r\n\t \r\n\t\toutro1 = lang.newText(getStarPosition(0, height+3), outro1Text, \"outro1\", null, outroProperties);\r\n\t\toutro2 = lang.newText(new Offset(0, 0, \"outro1\", AnimalScript.DIRECTION_SW), outro2Text, \"outro2\", null, outroProperties);\r\n\t\tif(width <= 80) outro3 = lang.newText(new Offset(0, 0, \"outro2\", AnimalScript.DIRECTION_SW), outro3Text, \"outro3\", null, outroProperties);\r\n\t}",
"public GeometryWKTCellRenderer(int maxWKTLength, int maxRowHeight) {\n super(maxWKTLength, maxRowHeight);\n }",
"private void drawTextArea(Graphics g) {\n // declare local variables:\n int buffer;\n int horizontalBars;\n int greatestMinimum;\n int greatestMaximum;\n int dataMinimums[];\n int dataMaximums[];\n int heightDifference;\n double verticalDifference;\n DisplayData displayData[];\n BigDecimal horizontalLevels[];\n // end of local variables declaration\n\n\n // set the drawing colour\n g.setColor(Color.WHITE);\n\n // determine what data is displayed\n displayData = format.getDisplayData();\n\n // check for null pointer\n if(displayData == null || data == null) {\n // exit\n return;\n } // end of if statement\n \n // initialize the minimums and maximums\n dataMinimums = new int[displayData.length];\n dataMaximums = new int[displayData.length];\n\n // get the minimums and maximums\n for(int c = 0; c < displayData.length; c++) {\n //\n switch(displayData[c]) {\n case CLOSE_PRICES:\n dataMinimums[c] = data.getMinimum(data.getClosePrices(bars) );\n dataMaximums[c] = data.getMaximum(data.getClosePrices(bars) );\n break;\n\n case HIGH_PRICES:\n dataMinimums[c] = data.getMinimum(data.getHighPrices(bars) );\n dataMaximums[c] = data.getMaximum(data.getHighPrices(bars) );\n break;\n\n case LOW_PRICES:\n dataMinimums[c] = data.getMinimum(data.getLowPrices(bars) );\n dataMaximums[c] = data.getMinimum(data.getLowPrices(bars) );\n break;\n\n case VOLUMES:\n dataMinimums[c] = data.getMinimum(data.getVolumes(bars) );\n dataMaximums[c] = data.getMinimum(data.getVolumes(bars) );\n break;\n } // end of switch statement\n\n } // end of for loop\n\n // find the greatest minimums and greatest maximum\n greatestMinimum = data.getMinimum(dataMinimums);\n greatestMaximum = data.getMaximum(dataMaximums);\n\n // find the heightDifference\n heightDifference = greatestMaximum - greatestMinimum;\n\n // check for logical error\n if(heightDifference == 0 || heightDifference < 0 ) {\n // exit from method\n return;\n } // end of if statement\n\n // find the horizontal bars\n horizontalBars = (getHeight() - 50 ) / 35 ;\n\n // find the verticalDifference\n verticalDifference = heightDifference / horizontalBars ;\n\n // initialize the horizontal levels array\n horizontalLevels = new BigDecimal[horizontalBars+1];\n\n // resolve the horizontal levels array\n for(int c = 0; c < horizontalLevels.length ; c++) {\n buffer = (int ) greatestMinimum + c* ( (int ) Math.round(verticalDifference) );\n horizontalLevels[c] = new BigDecimal(Integer.toString( buffer ) );\n horizontalLevels[c] = horizontalLevels[c].movePointLeft(digitsAfterDot);\n } // end of for loop\n\n // add the maximum\n horizontalLevels[horizontalLevels.length-1] = new BigDecimal(Integer.toString(greatestMaximum) );\n horizontalLevels[horizontalLevels.length-1] = horizontalLevels[horizontalLevels.length-1].movePointLeft(digitsAfterDot);\n\n // draw the horizontal bars\n for(int c = 0; c < horizontalLevels.length; c++) {\n g.drawLine(getWidth()-textAreaLenght,\n getHeight() - 30 - c* ( 35 + ( Math.round ( (( getHeight() - 50 ) % 35) / horizontalBars ) ) ),\n getWidth()-textAreaLenght+5,\n getHeight() - 30 - c* ( 35 + ( Math.round ( (( getHeight() - 50 ) % 35) / horizontalBars ) ) ) );\n } // end of for loop\n\n // draw the horizontalLevel prices\n for(int c = 0 ; c < horizontalLevels.length; c++) {\n // draw the current horizontal level \n g.drawString(horizontalLevels[c].toString() , getWidth()-textAreaLenght+10,\n getHeight() + 5 - 30 - c* ( 35 + ( Math.round ( (( getHeight() - 50 ) % 35) / horizontalBars ) ) ) );\n } // end of if statement\n\n }"
] |
[
"0.6467472",
"0.6201932",
"0.6110286",
"0.60670364",
"0.59816694",
"0.58260536",
"0.5802359",
"0.57962847",
"0.57904136",
"0.5785017",
"0.5722957",
"0.5720201",
"0.5644638",
"0.564014",
"0.5638641",
"0.5610213",
"0.5573689",
"0.55735654",
"0.5558803",
"0.55250794",
"0.5521017",
"0.5509521",
"0.54974174",
"0.54945964",
"0.5493773",
"0.5479702",
"0.54779625",
"0.5475668",
"0.5475418",
"0.5472063",
"0.5464552",
"0.54645497",
"0.54577035",
"0.5443576",
"0.53973305",
"0.539602",
"0.5391722",
"0.5389423",
"0.538622",
"0.538271",
"0.5371321",
"0.5366865",
"0.5364189",
"0.5355455",
"0.53552145",
"0.5355097",
"0.5349357",
"0.53476214",
"0.53468174",
"0.53461736",
"0.53460085",
"0.53435236",
"0.5342928",
"0.53276116",
"0.53217196",
"0.5315848",
"0.53152025",
"0.53002644",
"0.530025",
"0.52998257",
"0.5299598",
"0.529349",
"0.5291118",
"0.528644",
"0.52848476",
"0.52825093",
"0.52814895",
"0.5278534",
"0.5277246",
"0.52741754",
"0.5270533",
"0.526953",
"0.5262206",
"0.52564454",
"0.52498496",
"0.5247114",
"0.5242981",
"0.5238964",
"0.5238741",
"0.52379334",
"0.523699",
"0.523163",
"0.5231572",
"0.5223861",
"0.5223149",
"0.5217496",
"0.52168924",
"0.52152276",
"0.5213123",
"0.52126944",
"0.5205259",
"0.5194756",
"0.5188883",
"0.5188178",
"0.5185506",
"0.5180548",
"0.51804143",
"0.51789004",
"0.5177169",
"0.51765835"
] |
0.5488405
|
25
|
End of paintComponent class Get window xlength
|
public int getxlength(){
return numcols*boxsize;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int getWidth() {\n\t\treturn windowWidth;\n\t}",
"public int getXLength() {\n return xLength;\n }",
"@Override\n\tpublic int getWidth() {\n\n\t\treturn ((WorldWindowSWTGLCanvas) slave).getCanvas().getSize().x;\n\t}",
"@Override\n public int getWidth() {\n return graphicsEnvironmentImpl.getWidth(canvas);\n }",
"protected double getWindowWidth() {\n\t\treturn m_windowWidth;\n\t}",
"public int getGraphicsWidth(Graphics g);",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"public int getWidth() {\r\n return Display.getWidth();\r\n }",
"double getXLength();",
"long getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public int winSize() { return winSize; }",
"public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}",
"Double getXLength();",
"public final native double getWidth() /*-{\n return this.getWidth();\n }-*/;",
"public int getWidth() {\n\t\treturn canvasWidth;\n\t}",
"public double getWidth() {\n\t\treturn mx-nx;\n\t}",
"public int getWidth(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getWidth();\n } else {\n return 0;\n }\n }",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getxOnScreen(){\n this.xOnScreen = xMaze * moverStepSizeOnScreen;\n return this.xOnScreen;\n }",
"double getWidth();",
"double getWidth();",
"public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}",
"public int getCurrentWidth();",
"Integer getCurrentWidth();",
"public double getWidth();",
"public double getWidth();",
"public float getSizeX(){return sx;}",
"public double getWxInc() { return extents.getWidth() /getMyWidth(); }",
"public int getSizeX() {\r\n\t\treturn sizeX;\r\n\t}",
"public int getNumTicksPerceptionWindow() {\n\t\treturn 0;\n\t}",
"public int getWidth() {\n return mPresentationEngine.getWidth();\n }",
"int getWidth() {return width;}",
"public double getWidth() {\n return location.width();\n }",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public float getWidth();",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"public abstract int getWidth();",
"int getTickWidth();",
"public int grWidth() { return width; }",
"public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }",
"public float getWidth()\n {\n return getUpperRightX() - getLowerLeftX();\n }",
"public int getWidth() {\n return mySize.getWidth();\n }",
"public abstract int getXSize();",
"int getWindowSize();",
"public int getWidth() {\n\t\treturn gfWidth;\n\t}",
"public Dimension getPreferredSize() {\n Dimension size = super.getPreferredSize();\n size.width += extraWindowWidth;\n return size;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public float getWidth()\n {\n return getBounds().width();\n }",
"public abstract int getDisplayWidth();",
"public int getSizeX(){\r\n\t\treturn size[0];\r\n\t}",
"private double getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth(){\n return this.width;\n }",
"public float getWidth() {\n return xRadius;\n }",
"double getOldWidth();",
"int getWidth()\n {\n return width;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public int getWidth(){\n\t\treturn width;\n\t}",
"public int getWidth()\n {\n return this.width;\n }",
"public int getPropertyNWindows() {\r\n\t\tint nWindow = 0;\r\n\t\twhile (hasProperty(windowPropertyName + nWindow + \".\" + windowXPosSubPropertyName) == true)\r\n\t\t\tnWindow++;\r\n\t\treturn nWindow;\r\n\t}",
"public final int getWidth(){\n return width_;\n }",
"public static double getRawDisplayWidth() {\n\t\treturn javafx.stage.Screen.getPrimary().getBounds().getWidth();\n\t}",
"public int getWidth() {\n return this.width;\n }",
"public int getWidth() {\n return this.width;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"public int getWidth()\n {\n return width;\n }",
"public int getWindowsSize() {\n return this.SVBEngine.getWindowsSize();\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth(){\n return width;\n }",
"public int getWidth()\n {\n\treturn width;\n }",
"public int getWidth(){\n \treturn width;\n }",
"int getTickLength();",
"public int getWidth() {\r\n\t\treturn this.width;\r\n\t}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getMyWidth() { RTComponent.RTRenderContext myrc = getRTComponent().rc; if (myrc != null) return myrc.getRCWidth(); else return getRTComponent().getWidth(); }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}"
] |
[
"0.6774989",
"0.67563385",
"0.67236185",
"0.6706733",
"0.6697741",
"0.6660094",
"0.6490295",
"0.64451146",
"0.6399895",
"0.6381153",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6380917",
"0.6370223",
"0.63568753",
"0.6336854",
"0.62928224",
"0.6277245",
"0.62574923",
"0.6247202",
"0.62367034",
"0.62367034",
"0.62367034",
"0.62016565",
"0.61992353",
"0.61992353",
"0.6187362",
"0.61840624",
"0.615945",
"0.61563385",
"0.61563385",
"0.61506784",
"0.6136261",
"0.61311024",
"0.61300206",
"0.6128306",
"0.61158055",
"0.6101839",
"0.60711956",
"0.60649854",
"0.6058101",
"0.6058101",
"0.60468835",
"0.6034859",
"0.6027757",
"0.6017356",
"0.60163015",
"0.6016153",
"0.5996728",
"0.5982594",
"0.5974788",
"0.59627545",
"0.59551346",
"0.59528327",
"0.5951826",
"0.594981",
"0.5939363",
"0.5934126",
"0.59261787",
"0.591843",
"0.5910431",
"0.5908655",
"0.5906679",
"0.58849645",
"0.5884051",
"0.5883426",
"0.5869934",
"0.58696777",
"0.586939",
"0.586939",
"0.58686167",
"0.58565295",
"0.5854878",
"0.58513665",
"0.58513665",
"0.58513665",
"0.5850665",
"0.5850227",
"0.5849439",
"0.58492446",
"0.58482325",
"0.58462167",
"0.58462167",
"0.5841737",
"0.58388704",
"0.5833522"
] |
0.66847485
|
5
|
Set the char grid
|
public void setchargrid(char[][] inchargrid){
this.chargrid = inchargrid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public CharGrid(char[][] grid) {\n\t\tthis.grid = grid;\n\t}",
"public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}",
"@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }",
"private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }",
"private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }",
"GameBoard(){\r\n int i, j;\r\n char first = '0';\r\n grid = new char[yMax][xMax];\r\n\r\n grid[0][0] = ' ';\r\n\r\n //labels rows\r\n for(i = 1; i < yMax; i++){\r\n j = 0;\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n\r\n //labels columns\r\n first = '0';\r\n for(j = 1; j < xMax; j++){\r\n i = 0;\r\n if(j % 2 == 0) {\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n\r\n //separates squares with '|'\r\n for(i = 1; i < yMax; i++){\r\n for(j = 1; j < xMax; j++){\r\n if(j % 2 != 0)\r\n grid[i][j] = '|';\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }",
"private void boardInit() {\n for(int i = 0; i < this.boardHeight; i++)\n this.board[i][0] = ' ';\n for(int i = 0; i < this.boardWidth; i++)\n this.board[0][i] = ' ';\n \n for(int i = 1; i < this.boardHeight; i++) {\n for(int j = 1; j < this.boardWidth; j++) {\n this.board[i][j] = '*';\n }\n }\n }",
"public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }",
"private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }",
"public char[][] initializeBoard(char[][] grid){\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = ' ';\n }\n }\n return grid;\n }",
"void setGridX(int i);",
"public void printGrid(char[][] grid){\r\n\t\tSystem.out.println(grid[0][0] + \"|\" + grid[0][1] + \"|\" + grid[0][2] + \"|\" + grid[0][3] + \"|\" + grid[0][4] + \"|\" + grid[0][5] + \"|\" + grid[0][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[1][0] + \"|\" + grid[1][1] + \"|\" + grid[1][2] + \"|\" + grid[1][3] + \"|\" + grid[1][4] + \"|\" + grid[1][5] + \"|\" + grid[1][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[2][0] + \"|\" + grid[2][1] + \"|\" + grid[2][2] + \"|\" + grid[2][3] + \"|\" + grid[2][4] + \"|\" + grid[2][5] + \"|\" + grid[2][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[3][0] + \"|\" + grid[3][1] + \"|\" + grid[3][2] + \"|\" + grid[3][3] + \"|\" + grid[3][4] + \"|\" + grid[3][5] + \"|\" + grid[3][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[4][0] + \"|\" + grid[4][1] + \"|\" + grid[4][2] + \"|\" + grid[4][3] + \"|\" + grid[4][4] + \"|\" + grid[4][5] + \"|\" + grid[4][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[5][0] + \"|\" + grid[5][1] + \"|\" + grid[5][2] + \"|\" + grid[5][3] + \"|\" + grid[5][4] + \"|\" + grid[5][5] + \"|\" + grid[5][6]);\r\n\t}",
"public abstract void setCells(int x, int y, int [][] pattern);",
"public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}",
"@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }",
"private void setLevelUpChars() {\n /*\n * check this if you need more symbol set's\n * TODO do this right @me\n\t\t */\n String charset = KeyboardHandler.current_charset;\n if (charset.length() == 36) {\n for (int i = 0; i < 6; ++i) {\n characterAreas.get(i).setChars(\n charset.substring(i * 6, (i + 1) * 6));\n }\n }\n\n if (charset.length() == 40) {\n Log.d(\"main\",charset);\n characterAreas.get(0).setChars(charset.substring(0, 6));\n characterAreas.get(1).setChars(charset.substring(6, 14));\n characterAreas.get(2).setChars(charset.substring(14, 20));\n characterAreas.get(3).setChars(charset.substring(20, 26));\n characterAreas.get(4).setChars(charset.substring(26, 34));\n characterAreas.get(5).setChars(charset.substring(34, 40));\n }\n }",
"private static void drawGrid(int[][] grid) {\n BufferStrategy buf = canvas.getBufferStrategy();\n Graphics g = buf.getDrawGraphics();\n\n g.clearRect(0, 0, (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n g.setColor(pallette[grid[i][j]]);\n g.fillRect(WINDOW_MARGINS + (CELL_SIZE * i), WINDOW_MARGINS + (CELL_SIZE * j), CELL_SIZE, CELL_SIZE);\n }\n }\n\n if (!buf.contentsLost()) buf.show();\n g.dispose();\n }",
"public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }",
"public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }",
"public static void initBoard()\r\n\t{\n\t\tfor ( int r=0; r<3; r++ )\r\n\t\t\tfor ( int c=0; c<3; c++ )\r\n\t\t\t\tboard[r][c] = ' ';\r\n\t}",
"private void init() {\r\n\t\tint linePos = this.playBoard.length / 2;\r\n\t\tint columnPos = this.playBoard[0].length / 2;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tplayBoard[i][j] = '-';\r\n\t\t\t}\r\n\t\t}\r\n\t\tplayBoard[linePos - 1][columnPos - 1] = 'W';\r\n\t\tplayBoard[linePos - 1][columnPos] = 'B';\r\n\t\tplayBoard[linePos][columnPos] = 'W';\r\n\t\tplayBoard[linePos][columnPos - 1] = 'B';\r\n\t}",
"private void updateGrid() {\n if (intersection != null) {\n colorizeGrid();\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setText(intersection.getLetterCode(x, y));\n }\n }\n }\n }",
"public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}",
"private void initCharAreas() {\n\n characterAreas = new LinkedList<CharacterArea>();\n float x = 0;\n float y = 0;\n //TODO do this nice @me\n if (KeyboardHandler.character_set.length() > 36) {\n\n float width = mWidth / 10;\n float height = mHeight / 2;\n characterAreas.add(new CharacterArea(x, y, width * 3, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + width * 3, y, width * 4, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + width * 7, y, width * 3, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x, y + height, width * 3, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + width * 3, y + height, width * 4,\n height, KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + width * 7, y + height, width * 3,\n height, KeyboardHandler.char_view_light_color));\n } else {\n float width = mWidth / 3;\n float height = mHeight / 2;\n characterAreas.add(new CharacterArea(x, y, width, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + width, y, width, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + 2 * width, y, width, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x, y + height, width, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + width, y + height, width,\n height, KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + 2 * width, y + height, width,\n height, KeyboardHandler.char_view_light_color));\n }\n\n setLevelUpChars();\n }",
"public void displayBoard(char[][] grid) {\n System.out.println();\n System.out.println(\" 0 1 2 3 4 5 6\");\n System.out.println(\"---------------\");\n for (int row = 0; row < grid.length; row++) {\n System.out.print(\"|\");\n for (int col = 0; col < grid[0].length; col++) {\n System.out.print(grid[row][col]);\n System.out.print(\"|\");\n }\n System.out.println();\n System.out.println(\"---------------\");\n }\n System.out.println(\" 0 1 2 3 4 5 6\");\n System.out.println();\n }",
"public void setGrid(int ingrid[][],int in_row_size,int in_col_size){\n grid=ingrid;\n row_size = in_row_size;\n col_size = in_col_size;\n }",
"private void initialiseBoard() {\r\n\t\thorizontal = new char[width];\r\n\t\tvertical = new int[height];\r\n\t\tfor (int i=0; i<horizontal.length; i++) {\r\n\t\t\thorizontal[i] = (char)(i+65);\r\n\t\t}\r\n\t\tfor (int i=0; i<vertical.length; i++) {\r\n\t\t\tvertical[i] = i+1;\r\n\t\t}\r\n\t}",
"public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }",
"void setGridY(int i);",
"public static void initializeBoard() {\n\t\tspacesLeft = 9;\n\t\tboard = new char[3][3];\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board[i].length; j++) {\n\t\t\t\tboard[i][j] = ' ';\n\t\t\t}\n\t\t}\n\t}",
"public void setLetter() {\n\t\tconfirmButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tfor (int i = 0; i < ROW; i++) {\n\t\t\tfor (int j = 0; j < COLUME; j++) {\n\t\t\t\tif (board[i][j].getText().equals(\"\")) {\n\t\t\t\t\tboard[i][j].setEditable(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void changeGBCGrid(int x, int y) {\n GUI.gbc.gridx = x;\n GUI.gbc.gridy = y;\n }",
"public void presetPattern(){\n // clear all the cells\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n }\n \n // change specific cells to live\n for (int i = 7; i < 12; i++) {\n for (int j = 7; j < 12; j++) {\n game.grid[i][j] = true;\n }\n }\n \n // remove middle cell\n game.grid[9][9] = false;\n \n repaint();\n }",
"public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}",
"private void drawGrid(Canvas canvas, double cell_width, double cell_height) {\n\t\tGraphicsContext gc = canvas.getGraphicsContext2D();\n\t\tgc.clearRect(0, 0, canvas.getWidth(),canvas.getHeight());\n\t\t// vertical lines\n\t\tgc.setStroke(Color.BLACK);\n\t\tfor(int i = 0 ; i < Params.world_width; i++){\n\t\t\tgc.strokeLine(cell_width*i, 0, cell_width*i, canvas.getHeight());\n\t\t}\n\t\tfor(int i = 0 ; i < Params.world_height; i++){\n\t\t\tgc.strokeLine(0, cell_height*i, canvas.getWidth(), cell_height*i);\n\t\t}\n\t}",
"public static void setBoard(char[][] board) {\n\t\tBoard.board = board;\n\t}",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }",
"public void set(char c, int line, int column, Color bgColor, Color fgColor) {\n if (c == '\\n') {\n cc = 0;\n ++cl;\n return;\n }\n\n if (hasComponent(line, column)) {\n DisplayComponent dc = components[line][column];\n if (dc instanceof CharComponent) {\n CharComponent charc = (CharComponent) components[line][column];\n charc.setBackground(bgColor);\n charc.setForeground(fgColor);\n charc.set(c);\n } else {\n components[line][column] = new CharComponent(c, bgColor, fgColor);\n }\n } else {\n components[line][column] = new CharComponent(c, bgColor, fgColor);\n }\n\n repaint(column * fontSize, line * fontSize, fontSize, fontSize);\n }",
"private void setup()\r\n {\r\n \r\n char[][] examplemap = {\r\n { 'e','w','e','e','e','e','e','e','e','e' },\r\n { 'e','w','e','w','w','w','w','e','w','w' },\r\n { 'e','w','e','w','e','w','w','e','w','e' },\r\n { 'e','e','e','w','e','w','e','e','w','e' },\r\n { 'e','w','e','e','e','w','e','e','w','e' },\r\n { 'e','w','w','w','e','w','e','w','w','e' },\r\n { 'e','e','e','e','e','e','e','w','e','e' },\r\n { 'e','w','w','e','w','e','w','w','w','e' },\r\n { 'e','e','w','e','e','w','w','e','e','e' },\r\n { 'e','e','w','e','e','e','e','e','e','w' }};\r\n for (int i=0; i<map.length; i++)\r\n {\r\n for (int n=0; n<map[i].length; n++)\r\n {\r\n if (examplemap[n][i] == 'e')\r\n map[i][n].setBackground(Color.white);\r\n else\r\n map[i][n].setBackground(Color.black);\r\n }\r\n }\r\n \r\n map[0][0].setBackground(Color.red);\r\n this.Playerpos[0]=0;\r\n this.Playerpos[1]=0;\r\n \r\n \r\n map[9][8].setBackground(Color.blue);\r\n this.Goalpos[0]=9;\r\n this.Goalpos[1]=8;\r\n \r\n \r\n \r\n \r\n }",
"public void setSpaceAt(int x, int y, int val){\n grids[x][y].setValue(val);\n }",
"private TilePane createGrid() {\n\t\tTilePane board = new TilePane();\n\t\tboard.setPrefRows(9);\n\t\tboard.setPrefColumns(9);\n\t\tboard.setPadding(new Insets(3,3,3,3));\n\t\tboard.setHgap(3); //Horisontal gap between tiles\n\t\tboard.setVgap(3); //Vertical gap between tiles\n\t\t\n\t\t//Creates and colors tiles\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tLetterTextField text = new LetterTextField();\n\t\t\t\ttext.setPrefColumnCount(1);\n\t\t\t\t\n\t\t\t\tif(!(i/3 == 1 || k/3 == 1) || (i/3 == 1 && k/3 == 1)){\n\t\t\t\t\ttext.setStyle(\"-fx-background-color: #daa520;\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfield[i][k] = text;\n\t\t\t\tboard.getChildren().add(text);\n\t\t\t}\n\t\t}\t\t\n\t\treturn board;\n\t}",
"private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}",
"public void verifyAndAssignColumn(char [][]grid,int play,char player){\n for (int row = grid.length - 1; row >= 0; row--) {\n if (grid[row][play] == ' ') {\n grid[row][play] = player;\n break;\n }\n }\n }",
"public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}",
"private void setGridElement (int row, int column, Player player)\n {\n mGrid[row][column] = new Move(player, row, column);\n }",
"public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}",
"public void updateMapGrid() {\n char[][] map = controller.getPopulatedMap();\n\t if (mapGrid == null) {\n mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE);\n }\n mapGrid.insertCharMap(map);\n }",
"public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }",
"public GridElement(int rows, int cols)\n\t{\n\t\tm_rows = rows;\n\t\tm_cols = cols;\n\t\tm_textLayout = new TextLayout[rows][cols];\n\t\tm_iterator = new AttributedCharacterIterator[rows][cols];\n\t\tm_rowHeight = new int[rows];\n\t\tm_colWidth = new int[cols];\n\t\t//\texplicit init\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tm_rowHeight[r] = 0;\n\t\t\tfor (int c = 0; c < m_cols; c++)\n\t\t\t{\n\t\t\t\tm_textLayout[r][c] = null;\n\t\t\t\tm_iterator[r][c] = null;\n\t\t\t}\n\t\t}\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t\tm_colWidth[c] = 0;\n\t}",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public void initBoard(){\n System.out.print(\" \");\n for(int i = 0; i < boardSize; i++){\n System.out.print(\" \" + i + \" \");\n }\n System.out.println();\n for(int i = 0; i < boardSize; i++){\n System.out.print(\" \" + (char)(i + 'A') + \" \");\n for (int j = 0; j < boardSize; j++){\n board[i][j] = 'O';\n System.out.print(\" \" + board[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n }",
"void draw_char(int x, int y, char[][] _display, char c) {\n _display[x][y] = c;\n }",
"public void drawGrid() {\r\n\t\tsetLayout(new GridLayout(getSize_w(), getSize_h()));\r\n\t\tfor (int i = 0; i < getSize_h(); i++) {\r\n\t\t\tfor (int j = 0; j < getSize_w(); j++) {\r\n\t\t\t\tcity_squares[i][j] = new Gridpanel(j, i);\r\n\t\t\t\tadd(city_squares[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void setGridBagConstraints(int row, int col, int fill\n\t\t\t, double weightx, double weighty, int width, int height) {\n\t\tc.weightx = weightx;\n\t\tc.weighty = weighty;\n\t\tc.fill = fill;\n\t\tc.gridx = col;\n\t\tc.gridy = row;\n\t\tc.gridwidth = width;\n\t\tc.gridheight = height;\n\t\t// Reset the insets each time, we use it a few times so this\n\t\t// will undo any times we do it.\n\t\tc.insets = new Insets(0, 0, 0, 0);\n\t}",
"public char getGrid(int x ,int y){\n\t\treturn Grid[x][y] ;\n\t}",
"private void displayGrid() {\r\n System.out.print(this.grid);\r\n }",
"public void initializeGrid() {\n resetGrid(_lifeGrid);\n\n _lifeGrid[8][(WIDTH / 2) - 1] = 1;\n _lifeGrid[8][(WIDTH / 2) + 1] = 1;\n _lifeGrid[9][(WIDTH / 2) - 1] = 1;\n _lifeGrid[9][(WIDTH / 2) + 1] = 1;\n _lifeGrid[10][(WIDTH / 2) - 1] = 1;\n _lifeGrid[10][(WIDTH / 2)] = 1;\n _lifeGrid[10][(WIDTH / 2) + 1] = 1;\n\n }",
"public void renderBoard(){\n for (int k = 0; k < grid.length; k++)\n for (int m = 0; m < grid[k].length; m++)\n grid[k][m] = 0;\n\n // fill the 2D array using information for non-empty tiles\n for (Cell c : game.getNonEmptyTiles())\n grid[c.getRow()][c.getCol()] = c.getValue();\n }",
"private void initialize() {\r\n\t\tfor (int i = -1; i < myRows; i++)\r\n\t\t\tfor (int j = -1; j < myColumns; j++) {\r\n\t\t\t\tCell.CellToken cellToken = new Cell.CellToken(j, i);\r\n\r\n\t\t\t\tif (i == -1) {\r\n\t\t\t\t\tif (j == -1)\r\n\t\t\t\t\t\tadd(new JLabel(\"\", null, SwingConstants.CENTER));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tadd(new JLabel(cellToken.columnString(), null,\r\n\t\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\t} else if (j == -1)\r\n\t\t\t\t\tadd(new JLabel(Integer.toString(i), null,\r\n\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\telse {\r\n\t\t\t\t\tcellArray[i][j] = new CellsGUI(cellToken);\r\n\r\n\t\t\t\t\tsetCellText(cellArray[i][j]);\r\n\t\t\t\t\tcellArray[i][j].addMouseListener(new MouseCellListener());\r\n\t\t\t\t\tcellArray[i][j].addKeyListener(new KeyCellListener());\r\n\t\t\t\t\tcellArray[i][j].addFocusListener(new FocusCellListener());\r\n\r\n\t\t\t\t\tadd(cellArray[i][j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t}",
"public void createGrid() {\r\n generator.generate();\r\n }",
"public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }",
"public Grid() {\n super(); // create a new JPanel\n grid = new ArrayList<>(); // initialize a list containing the blocks\n \n setLayout(null); // format the component\n setFocusable(false);\n setBackground(Block.deadColor);\n addComponentListener(new java.awt.event.ComponentAdapter() { // detects when the window is resized to resize the grid\n @Override\n public void componentResized(java.awt.event.ComponentEvent evt) {\n resizeGrid();\n }\n });\n \n // provide a link to the grid to classes so that all instances have access to it\n PathFinder.setGrid(this);\n EscapeBlock.setGrid(this);\n Character.setGrid(this);\n \n }",
"public Grid(int rows, int cols, String[] vals)\r\n\t{\r\n\t}",
"public DraggableBehavior setGrid(int x, int y)\n\t{\n\t\tArrayItemOptions<IntegerItemOptions> grids = new ArrayItemOptions<IntegerItemOptions>();\n\t\tgrids.add(new IntegerItemOptions(x));\n\t\tgrids.add(new IntegerItemOptions(y));\n\t\tthis.options.put(\"grid\", grids);\n\t\treturn this;\n\t}",
"public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }",
"public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }",
"protected void setCell(char c) throws IllegalArgumentEvent {\r\n\t\tif(c > 48 && c < 58){ //'0 to 9' in ascii\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = c - 48;\r\n\t\t\tthis.anthill = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tswitch(c) {\r\n\t\tcase '#':\r\n\t\t\tthis.rocky = true;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 0;\r\n\t\t\tbreak;\r\n\t\tcase '.':\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 0;\r\n\t\t\tbreak;\r\n\t\tcase '+':\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 1;\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 2;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalArgumentEvent(\"Illegal argument in Cell setCell\");\r\n\t\t}\r\n\t}",
"private void initSudokuBlock(int pos, Character c, JTextField t){\n\t\tint row=pos/9;\n\t\tint col=pos%9; // use position to calculate the row and column\n\t\tsudokuDisplay[row][col]=c;\n\t\tif(c!='.'){\n\t\t\tt.setEditable(false); // original value , cant be modified\n\t\t\tt.setText(c.toString());\n\t\t}else{\n\t\t\tt.setText(\"\");\n\t\t}\n\t}",
"private void initializeGrid() {\r\n if (this.rowCount > 0 && this.columnCount > 0) {\r\n this.cellViews = new Rectangle[this.rowCount][this.columnCount];\r\n for (int row = 0; row < this.rowCount; row++) {\r\n for (int column = 0; column < this.columnCount; column++) {\r\n Rectangle rectangle = new Rectangle();\r\n rectangle.setX((double)column * CELL_WIDTH);\r\n rectangle.setY((double)row * CELL_WIDTH);\r\n rectangle.setWidth(CELL_WIDTH);\r\n rectangle.setHeight(CELL_WIDTH);\r\n this.cellViews[row][column] = rectangle;\r\n this.getChildren().add(rectangle);\r\n }\r\n }\r\n }\r\n }",
"private void initGrid() {\n m_emptyHexCount = 0;\n m_hexagons.clear();\n for (int i = 0; i < m_rowNum; i++) {\n ArrayList<Hexagon> tmp = new ArrayList<>();\n int maxColNum;\n if (i % 2 == 0)\n maxColNum = m_colNum;\n else\n maxColNum = m_colNum - 1;\n\n for (int j = 0; j < maxColNum; j++) {\n tmp.add(new Hexagon(m_app));\n m_emptyHexCount++;\n }\n m_hexagons.add(tmp);\n }\n }",
"private void setBrush(int a_x, int a_y, char a_data)\n {\n int xStart = a_x - m_brush;\n int xEnd = a_x + m_brush;\n int yStart = a_y - m_brush;\n int yEnd = a_y + m_brush;\n\n for(int i = xStart; i <= xEnd; ++i)\n for(int j = yStart; j <= yEnd; ++j)\n {\n if(i > 0 && j > 0 && i < m_grid.length && j < m_grid[i].length)\n m_grid[i][j] = a_data;\n }\n }",
"public String printGrid() {\n String s = \"KEY: \\n- (sea) = no boat not shot\"\n + \"\\nM (miss) = no boat SHOT \"\n +\" \\nB (boat) = boat not shot\"\n + \"\\nH (hit) = boat SHOT\"\n + \"\\n***********************************************************\\n\";\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n s += decideLetter(grid[i][j]) + \"\\t\";\n }\n s += \"\\n\";\n }\n return s;\n }",
"private void setData (int row, int col, TextLayout layout, AttributedCharacterIterator iter)\n\t{\n\t\tif (layout == null)\n\t\t\treturn;\n\t\tif (p_sizeCalculated)\n\t\t\tthrow new IllegalStateException(\"Size already calculated\");\n\t\tif (row < 0 || row >= m_rows)\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Row Index=\" + row + \" Rows=\" + m_rows);\n\t\tif (col < 0 || col >= m_cols)\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Column Index=\" + col + \" Cols=\" + m_cols);\n\t\t//\n\t\tm_textLayout[row][col] = layout;\n\t\tm_iterator[row][col] = iter;\n\t\t//\tSet Size\n\t\tint height = (int)(layout.getAscent() + layout.getDescent() + layout.getLeading())+1;\n\t\tint width = (int)layout.getAdvance()+1;\n\t\tif (m_rowHeight[row] < height)\n\t\t\tm_rowHeight[row] = height;\n\t\tif (m_colWidth[col] < width)\n\t\t\tm_colWidth[col] = width;\n\t}",
"private void setMediumDifficultyGridUp1(){\n\t\tmediumDifficulty1 = new SudokuGrid();\n\t\tCell[][] _matrix = {{new Cell(6), new Cell(0), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(0), new Cell(7), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(8), new Cell(0), new Cell(5), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(2), new Cell(0), new Cell(5), new Cell(0), new Cell(0), new Cell(6), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(3), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(7), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(7), new Cell(0), new Cell(0), new Cell(3), new Cell(0), new Cell(8), new Cell(0), new Cell(0), new Cell(2)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(9), new Cell(1), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(8), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(3), new Cell(0), new Cell(6)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(6), new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(0), new Cell(7)}};\n\t\tmediumDifficulty1.set_matrix(_matrix);\n\t}",
"public void setChars(char[] data, int row, int column) {\n\t\tcolumns[column].setChars(data, subset[row]);\n\t}",
"private String[][] initBoard() {\n String[][] tmp=new String[this.SIZE][this.SIZE];\n for (String[] ae:\n tmp) {\n Arrays.fill(ae, \" \");\n }\n return tmp;\n }",
"private void fillWithSpaces(String[][] matrix, int x, int y, int maxChars, String charToFill) {\n\t\t\n\t\tif(matrix[x][y].length() < maxChars) {\n\t\t\tmatrix[x][y] = matrix[x][y] + charToFill;\n\t\t\tfillWithSpaces(matrix, x, y, maxChars, charToFill);\n\t\t}\n\t}",
"public GridLocation(){ //of the grid at the moment\n charactersOccupiedTheLocation=new Object[4];\n }",
"public void displayGrid ()\n {\n for (int i = 0; i < getDimX(); i++) {\n System.out.print(\"[ \");\n for (int y = 0; y < getDimY(); y++) {\n System.out.print(m_grid[i][y]);\n System.out.print(\" \");\n }\n System.out.println(\"]\");\n }\n }",
"void draw_board(int x, int y, char[][] _display, char[][] _board) {\n for (int i = 0; i < 65; i++) {\n for (int j = 0; j < 33; j++) {\n if (i%8 == 0 && j%4 == 0) {\n draw_char(x + i + 1, y + j + 1, _display, '+');\n } else if (j%4 == 0) {\n draw_char(x + i + 1, y + j + 1, _display, '-');\n } else if (i%8 == 0) {\n draw_char(x + i + 1, y + j + 1, _display, '|');\n } else {\n draw_char(x + i + 1, y + j + 1, _display, ' ');\n }\n }\n }\n char label_row = '1';\n char label_column = 'A';\n for (int i = 0; i < 8; i++) {\n draw_char(x, \t\t\t\t\t\t\t4 * i + 3 + y, _display, label_row);\n draw_char(x + 66, \t\t\t\t4 * i + 3 + y, _display, label_row);\n draw_char(8 * i + 5 + x, \ty,\t\t\t\t\t\t _display, label_column);\n draw_char(8 * i + 5 + x, \ty + 34,\t\t\t\t _display, label_column);\n label_row ++;\n label_column ++;\n }\n draw_pieces(x, y, _display, _board);\n }",
"private void Mostra() {\n mat = matriz.getMatriz();\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col].setEditable(true);\n array_texto[lin][col].setText(mat[lin][col]);\n array_texto[lin][col].setBackground(Color.white);\n\n for (char letra : array_texto[lin][col].getText().toCharArray()) {\n if ((letra < 1 || letra > 9)) {\n array_texto[lin][col].setEditable(false);\n array_texto[lin][col].setBackground(Color.LIGHT_GRAY);\n }\n }\n }\n }\n }",
"public void setGrid(int x, int y, boolean b){\n\t\tgrid[x][y] = b;\n\t}",
"public void reiniciar(){\r\n for(int i=0; i<3; i++){\r\n for(int a=0; a<3; a++){\r\n gato[i][a] = ' ';\r\n }\r\n }\r\n }",
"public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }",
"private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx, posy);\n boardCells[0][0] = startCell;\n for (int i = 0; i< x-1; i++) {\n HexCell currentCell = new HexCell(i+1, 0, this);\n boardCells[i+1][0] = currentCell;\n //i mod 2 = 0: Bottom\n if (i % 2 == 0) {\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT_RIGHT );\n } else {\n //i mod 2 =1: Top\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.TOP_RIGHT );\n }\n }\n for(int i = 0; i < x; i++){\n for(int j = 0; j < y-1; j++){\n HexCell currentCell = new HexCell(i, j+1, this);\n //System.out.println(Integer.toString(i) + Integer.toString(j));\n boardCells[i][j+1] = currentCell;\n boardCells[i][j].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT);\n }\n }\n }",
"public void resetGrid() {\n grid = new byte[grid.length];\n }",
"public BoardCanvas() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int height1 = screenSize.height * 9 / 14;\n int remainNum = height1 % 9;\n int heightBoard = height1 - remainNum;\n setBounds(0, 0, heightBoard, heightBoard);\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n HashSet<String> availableNames = new HashSet();\n for (String name : env.getAvailableFontFamilyNames()) {\n availableNames.add(name);\n }\n for (String pf : preferredFonts) {\n if (availableNames.contains(pf)) {\n font = new Font(pf, Font.PLAIN, 20);\n break;\n }\n }\n }",
"private void paintGridSquare(final Graphics2D theGraphics, final int theX, final int theY,\n final int theIdx) {\n theGraphics.setPaint(COLOR_MAP.get(myBoardString.charAt(theIdx)));\n theGraphics.fill(new Rectangle2D.Double(theX, theY, BLOCK_SIZE, BLOCK_SIZE));\n\n // paint outline on tetris blocks only\n if (myBoardString.charAt(theIdx) != ' ') {\n theGraphics.setStroke(new BasicStroke(STROKE_WIDTH));\n theGraphics.setPaint(Color.WHITE);\n // make height and width of outline one pixel smaller so the outline\n // sits inside the bounds of the already filled shape\n theGraphics.draw(new Rectangle2D.Double(theX, theY, BLOCK_SIZE, BLOCK_SIZE));\n }\n\n }",
"public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }",
"private void drawGrid() {\r\n\t\t// loops through the 2d array of the grid.\r\n\t\tfor (int i = 0; i < TetrisGame.PANEL_WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < TetrisGame.PANEL_HEIGHT; j++) {\r\n\t\t\t\t// checks to see if the piece isn't empty, and draws the piece at it's position.\r\n\t\t\t\tif (game.grid[i][j] != Piece.PieceShape.E) {\r\n\t\t\t\t\tdrawSquare(i, j, Piece.getColor(game.grid[i][j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Grid(Case[][] c)\n {\n\theight = c.length;\n\twidth = c[c.length].length;\n\tcases = c;\n }",
"public void setAiGrid() {\n\t\taiGrid = new Grid(false);\n\t\tsetShips(aiGrid,aiBattleShipsList,0);//1\n\t}",
"void draw_pieces(int x, int y, char[][] _display, char[][] _board) {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n switch (_board[i][j]) {\n case ' ':\n break;\n case 'p':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" _ \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" (_) \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /_\\\\ \");\n break;\n case 'r':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" [###] \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" |_| \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /___\\\\ \");\n break;\n case 'k':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" /\\\\_ \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" / o = \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" \\\\ \\\\ \");\n break;\n case 'b':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" O \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" ( ) \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" / \\\\ \");\n break;\n case 'q':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" \\\\\\\\|// \");\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" )_( \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /___\\\\ \" );\n break;\n case 'K':\n draw_text(i*8 + 2 + x, j*4 + 2 + y, _display, \" [###] \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 1, _display, \" (___) \" );\n draw_text(i*8 + 2 + x, j*4 + 2 + y + 2, _display, \" /___\\\\ \");\n break;\n default:\n break;\n }\n }\n }\n }",
"@Override\n public void resetGrids() {\n view.clearGrid(false);\n\n // then remove non-given numbers\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n if (!grid.isGiven(row, col)) {\n grid.unsetNumber(row, col);\n }\n }\n }\n\n // finally, display the givens on the view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n }\n }",
"public void displayGrid()\n {\n\t\t\n\tfor (int y=0; y<cases.length; y++)\n\t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tSystem.out.print(\"|\"+cases[y][x].getValue());\n }\n System.out.println(\"|\");\n\t}\n }",
"private void update() {\n // Set for each cell\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n cell.setBackground(BKGD_DARK_GRAY);\n cell.setForeground(Color.WHITE);\n cell.setFont(new Font(\"Halvetica Neue\", Font.PLAIN, 36));\n cell.setBorder(new LineBorder(Color.BLACK, 0));\n cell.setHorizontalAlignment(JTextField.CENTER);\n cell.setCaretColor(new Color(32, 44, 53));\n cell.setDragEnabled(false);\n cell.setTransferHandler(null);\n\n // Add subgrid separators\n CellPosition pos = cell.getPosition();\n if (pos.getColumn() == 2 || pos.getColumn() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 2, new Color(146, 208, 80)));\n } else if (pos.getRow() == 2 || pos.getRow() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 0, new Color(146, 208, 80)));\n }\n if ((pos.getColumn() == 2 && pos.getRow() == 2) || (pos.getColumn() == 5 && pos.getRow() == 5)\n || (pos.getColumn() == 2 && pos.getRow() == 5) || (pos.getColumn() == 5 && pos.getRow() == 2)) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 2, new Color(146, 208, 80)));\n }\n\n // Validate User's Cell Input + Mouse Listeners\n cell.removeKeyListener(cellKeyListener);\n cell.removeMouseListener(cellMouseListener);\n if (cell.isLocked()) {\n cell.setEditable(false);\n cell.setHighlighter(null);\n } else {\n cell.setBackground(BKGD_LIGHT_GRAY);\n cell.addMouseListener(cellMouseListener);\n cell.addKeyListener(cellKeyListener);\n }\n if (cell.isEmpty()) {\n cell.setText(\"\");\n } else {\n cell.setText(String.valueOf(cell.getUserValue()));\n }\n\n // Adds cell to the view's grid\n this.view.getGamePanel().getGrid().add(cell);\n }\n\n }",
"public TwoDimensionalGrid()\r\n {\r\n cellGrid = new Cell[LOWER_BOUND][RIGHT_BOUND];\r\n\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n cellGrid[columns][rows] = new Cell(true);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n System.out.print(\"\\n\");\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"public void initialize(){ \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tfor (int j=0; j<3; j++){\r\n\t\t\t\tboard [i][j] = '-';\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }"
] |
[
"0.7836956",
"0.73548186",
"0.68973166",
"0.66299146",
"0.6560058",
"0.65372574",
"0.63139415",
"0.63135487",
"0.62987167",
"0.6262917",
"0.6243649",
"0.62402016",
"0.61695087",
"0.6132969",
"0.60970294",
"0.60956484",
"0.6093353",
"0.60926574",
"0.6065267",
"0.6044776",
"0.604428",
"0.6028142",
"0.6014383",
"0.59975374",
"0.5978923",
"0.5970975",
"0.5965344",
"0.593586",
"0.5916802",
"0.58977425",
"0.58972365",
"0.5884529",
"0.5883646",
"0.58796376",
"0.5857272",
"0.5850039",
"0.58403593",
"0.58391684",
"0.5836735",
"0.582633",
"0.5822068",
"0.5818718",
"0.5817262",
"0.58041",
"0.57817924",
"0.5755646",
"0.57469684",
"0.5737257",
"0.5722745",
"0.5719007",
"0.5704619",
"0.5703935",
"0.57012343",
"0.5695915",
"0.5693803",
"0.56895643",
"0.56732553",
"0.56724465",
"0.56712836",
"0.5659054",
"0.56586856",
"0.5648952",
"0.56447154",
"0.56384975",
"0.5628662",
"0.5618032",
"0.5610228",
"0.5603361",
"0.56032676",
"0.5601777",
"0.5600632",
"0.55988175",
"0.5580442",
"0.5579721",
"0.55777365",
"0.5576128",
"0.5574821",
"0.5570846",
"0.55695015",
"0.55655843",
"0.55617964",
"0.5560221",
"0.555885",
"0.55554366",
"0.5553077",
"0.5551991",
"0.553453",
"0.55340654",
"0.5525975",
"0.5518542",
"0.5511899",
"0.5509622",
"0.55092585",
"0.55062205",
"0.5503194",
"0.5499522",
"0.5493604",
"0.5493263",
"0.54927784",
"0.5492136"
] |
0.57565373
|
45
|
/ \ Shutdown \
|
public void fireShutdownEvent(DSMPHandler h) {
System.out.println("-----fireShutdownEvent connectionid = " +
h.getHandlerId());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown() {\n\t\t\n\t}",
"public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }",
"public static void shutdown() {\n\t}",
"public void shutdown() {\n }",
"public void shutdown()\n {\n // todo\n }",
"void shutDown();",
"public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }",
"void shutdown() throws Exception;",
"public void shutDown();",
"public abstract void shutdown();",
"public abstract void shutdown();",
"public abstract void shutdown();",
"public abstract void shutdown();",
"public void abnormalShutDown() {\n\t}",
"public void shutdown()\n {\n // nothing to do here\n }",
"protected abstract void shutdown();",
"protected void shutdown() {\n\r\n }",
"public void shutdown() {\n shutdown(false);\n }",
"public void shutdownNow() {\n }",
"public static void systemShutdown() throws IOException {\n\t\t/*Runtime runtime = Runtime.getRuntime();\n\t\tProcess proc = runtime.exec(\"shutdown -l -t 30\");//.exec(\"shutdown -l\");//.exec(\"shutdown -l -t 0\").exec(\"shutdown -r\");\t\t\n\t\tSystem.out.println(\"\"+proc);\n\t\tSystem.exit(0);*/\n\t}",
"@Override\n\tpublic void shutdown() {\n\t\t\n\t}",
"public void shutdown() {\r\n System.exit(0);\r\n }",
"public void shutdown() {\n // no-op\n }",
"public void shutdown() {\n // For now, do nothing\n }",
"@Override\n\tpublic void shutdown()\n\t{\n\t}",
"@Override\n public void shutdown() {\n }",
"public void shutdown() {\n this.isShutdown = true;\n }",
"@Override\n public void shutdown() {\n }",
"@Override\n public void shutdown() {\n }",
"@Override\n public void shutdown() {\n }",
"@Override\n\tpublic void shutdown() {\n\t}",
"@Override\n\tpublic void shutdown() {\n\t}",
"@Override\n\tpublic void shutdown() {\n\n\t}",
"public void cleanShutDown () {\n shutdown = true;\n }",
"public void shutdown()\n {\n shutdown = true;\n cil.shutdown();\n }",
"public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }",
"void prepareForShutdown();",
"public static void shutdown() {\n\t\t// Ignore\n\t}",
"public void shutdown()\n\t{\n\t\t; // do nothing\n\t}",
"public synchronized void shutDown() {\n\t state.shutDown();\n\t}",
"@Override\n public void shutDown() {\n }",
"@Override\n\t\tprotected void shutdown() {\n\n\t\t}",
"public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }",
"@Override\n public void shutdownNow() {\n }",
"public void shutdown()\n {\n this.running = false;\n }",
"@Override\n public void shutdown()\n {\n // nothing to do\n }",
"@Override\n protected void shutDown() {\n }",
"public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }",
"void shutdown() throws IOException;",
"void shutdown() throws IOException;",
"private static native boolean shutdown(long pointer);",
"@Override\n protected void shutdown() {\n super.shutdown();\n // Now perform any other shutdown tasks you need.\n // ...\n }",
"public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }",
"public static void bgfx_shutdown() {\n long __functionAddress = Functions.shutdown;\n invokeV(__functionAddress);\n }",
"public void Shutdown()\n {\n eventLoopGroup.shutdownGracefully();\n }",
"public void shutdown() {\n this.dontStop = false;\n }",
"public synchronized void terminate () {\n shutdown = true;\n }",
"public void shutdownForUpdate();",
"public void shutdown() {\n YbkService.stop(ErrorDialog.this);\r\n System.runFinalizersOnExit(true);\r\n // schedule actual shutdown request on a background thread to give the service a chance to stop on the\r\n // foreground thread\r\n new Thread(new Runnable() {\r\n\r\n public void run() {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n }\r\n System.exit(-1);\r\n }\r\n }).start();\r\n }",
"public void shutDown ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"shutDown\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n shutDown ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"public void runShutdown() {\n readCharacteristic(blecharMap, GattAttributes.SHUTDOWN);\n }",
"@Override\r\n\tprotected void shutdownSpecific() {\n\r\n\t}",
"public static void shutdown ()\n\t{\n\t\tif (m_interpreter != null)\n\t\t{\n\t\t\tm_console.dispose ();\n\t\t\tm_interpreter.cleanup ();\n\t\t}\n\t}",
"private ShutdownThread() {}",
"public void notifyShutdown();",
"void shutdown() {\n\t\t\tshutdown = true;\n\t\t\tsel.wakeup();\n\t\t}",
"AutoShutdownProfile autoShutdownProfile();",
"public void shutdown() {\n\t\tInput.cleanUp();\n\t\tVAO.cleanUp();\n\t\tTexture2D.cleanUp();\n\t\tResourceLoader.cleanUp();\n\t}",
"@Override\r\n\tpublic void shutDown() {\r\n\t\tdown.set(true);\r\n\t\tif (shutDownImmediatelly) {\r\n\t\t\ttry {\r\n\t\t\t\tsuper.shutDown();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tThread thread = new Thread(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSessionForUI.super.shutDown();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthread.setDaemon(true);\r\n\t\t\tthread.start();\r\n\t\t}\r\n\t}",
"@Override\n public String shutdown() {\n instance.shutdown();\n return \"ok\";\n }",
"@Override\n public void shutdown() {\n // Do nothing.\n }",
"private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public void shutdownSilently() {\n shutdownSilently(true);\n }",
"private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}",
"public void shutdown() {\n super.shutdown();\n this.console.interrupt();\n }",
"private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}",
"private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }",
"public void shutdown() {\n fsManager.getOpenFileSystems().forEach(JGitFileSystem::close);\n shutdownSSH();\n forceStopDaemon();\n fsManager.clear();\n }",
"public static void shutdown()\n\t{\n\t\tinstance = null;\n\t}",
"private void shutdown(){\n\t\ttry{\n\t\t\tMainController gainCtr=loader.getController();\n\t\t\tgainCtr.isOnline=false;\n\t\t\tif(!gainCtr.sc.equals(null)) {\n\t\t\t\tgainCtr.sc.close();\n\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t}"
] |
[
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.838656",
"0.82058257",
"0.82058257",
"0.82058257",
"0.82058257",
"0.81938756",
"0.8171717",
"0.8126394",
"0.80074865",
"0.8003623",
"0.795782",
"0.79460835",
"0.7896134",
"0.7895971",
"0.7887766",
"0.7887766",
"0.7887766",
"0.7887766",
"0.78668517",
"0.7840314",
"0.7839417",
"0.7786761",
"0.7681173",
"0.767533",
"0.7629368",
"0.7615532",
"0.76071084",
"0.75701797",
"0.75187814",
"0.75077844",
"0.7493541",
"0.74886304",
"0.7485003",
"0.7485003",
"0.7485003",
"0.746128",
"0.746128",
"0.7460241",
"0.7422266",
"0.739544",
"0.7394205",
"0.73916453",
"0.7344045",
"0.73428136",
"0.73271286",
"0.73223597",
"0.7322257",
"0.73108023",
"0.7300679",
"0.72507757",
"0.7249344",
"0.7184373",
"0.7157187",
"0.7152565",
"0.7152565",
"0.71071035",
"0.7105142",
"0.70978403",
"0.7097612",
"0.7075758",
"0.7051481",
"0.70483667",
"0.70405865",
"0.7014489",
"0.7004327",
"0.6970557",
"0.69700927",
"0.6907199",
"0.6890042",
"0.68835807",
"0.68640715",
"0.6861978",
"0.6855455",
"0.6850166",
"0.6844749",
"0.68289196",
"0.6815433",
"0.68134516",
"0.68000305",
"0.6793215",
"0.679228",
"0.6778699",
"0.6766201",
"0.6765256",
"0.6750403"
] |
0.0
|
-1
|
/ \ Commands \
|
public void fireLoginCommandToken(DSMPHandler h, byte flags,
byte handle, String token) {
if (printdebug && dodebug) {
System.out.println("-----fireLoginCommandToken: " +
"\n\tflags[" +flags+"] hand["+handle+"]");
System.out.println("\ttoken [" + token + "]");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }",
"Commands createCommands();",
"String getCommand();",
"private void registerCommands() {\n }",
"void legalCommand();",
"java.lang.String getCommand();",
"int getCommand();",
"Commands getCommandes();",
"private void getGameCommands(){\n\n }",
"public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}",
"public abstract String getCommand();",
"public interface Command {\n\n\n}",
"int getCmd();",
"private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }",
"public CommandMAN() {\n super();\n }",
"public interface Command {\n\n String getName();\n\n String getUsage();\n\n String getShortDescription();\n\n void execute(String command, PrintStream out);\n}",
"Commands getIf_commands();",
"public void initCmds() {\n cmd.put(\"hist\",(i) -> histRPN(i));\n cmd.put(\"pile\",(i) -> pile(i));\n cmd.put(\"!\",(c) -> store(c));\n cmd.put(\"?\",(c) -> getVal(c));\n\n }",
"@Override\r\n public void execute(Command command) {\n\r\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"public interface Command {\n void execute();\n\n void printCommandInfo();\n}",
"public interface ICommand {\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return long description of the command\r\n\t */\r\n\tString description();\r\n\r\n\t/**\r\n\t * \r\n\t * @return name of the command\r\n\t */\r\n\tString name();\r\n\r\n\t/**\r\n\t * Get called when the comma\r\n\t * @param console callback for output\r\n\t * @param options of the command invocation\r\n\t */\r\n\tvoid exec(ICommandConsole console, List<String> options);\r\n\r\n\t/**\r\n\t * \r\n\t * @return usage of the command\r\n\t */\r\n\tString usage();\r\n}",
"Commands getElse_commands();",
"public interface Command {\n\t public String execute(String[] request);\n}",
"public abstract String commandDocumentation();",
"Operations operations();",
"public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}",
"private void printHelp()//Method was given\n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }",
"public void printCommands(){\n LocalApi.print_commands();\n }",
"public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }",
"private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }",
"private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }",
"Command createCommand();",
"public abstract void doCommand(String command);",
"private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}",
"private void retriveCommand(){\n\t\tdirections.add(\"Turn left.\");\n\t\tdirections.add(\"Walk 20 meters and turn right.\");\n\t\tdirections.add(\"Arrive destination.\");\n\t}",
"public String executeGameCommands(ListOfCommands listOfCommands){return \"\";}",
"private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}",
"public interface Command {\n\t\n\tint execute(int number);\n}",
"public interface Command {\r\n \r\n /**\r\n * Executes this Command.\r\n */\r\n void execute();\r\n \r\n /**\r\n * Undoes this Commands.\r\n */\r\n void undo();\r\n}",
"public interface Command {\n\t\t\n\t/**\n\t * Executes the command.\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @return the value the command evaluates to\n\t * @throws InvalidCommandException\n\t */\n\tabstract public double execute(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Executes the command and replaces it with a constant command if the command is not a turtle command\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @throws InvalidCommandException\n\t */\n\tabstract public void execNonTurtle(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Checks if the command is a turtle command\n\t * @return true iff the command is a turtle command\n\t */\n\tabstract public boolean isTurtleCommand();\n\t\n\t/**\n\t * Checks if the command is a variable command\n\t * @return true iff the command is a variable command\n\t */\n\tabstract public boolean isVariableCommand();\n\t\n\t/**\n\t * Adds a command to this commands list of children/arguments\n\t * @param cmd\n\t */\n\tabstract public void addChild(Command cmd);\n\t\n\t/**\n\t * Replaces this command with another, by making the replacement the parent's child instead of this.\n\t * @param replacement\n\t */\n\tabstract public void selfReplace(Command replacement);\n\t\n\t/**\n\t * Checks if the command needs more arguments\n\t * @return true iff command can hold more arguments\n\t */\n\tabstract public boolean argsNotFull();\n\t\n\t/**\n\t * Gets the maximum arguments the command can hold\n\t * @return maximum arguments\n\t */\n\tabstract public int maxArgs();\n\t\n\t/**\n\t * Gets string representation of the command. Mostly used for debugging.\n\t * @return string representation\n\t */\n\tabstract public String toString();\n\t\n\t/**\n\t * Gets the command's name \n\t * @return the command's name\n\t */\n\tabstract public String getName();\n\t\n\t/**\n\t * Gets the commands children\n\t * @return the list of children\n\t */\n\tabstract public List<Command> getChildren();\n\t\n\t/**\n\t * Gets child index\n\t * @param index\n\t * @return the child at index index\n\t */\n\tabstract public Command getChild(int index);\n\t\n\t/**\n\t * Gets the command's parent\n\t * @return parent\n\t */\n\tabstract public Command getParent();\n\t\n\t/**\n\t * Sets the command's parent to cmd\n\t * @param cmd\n\t */\n\tabstract public void setParent(Command cmd);\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to t\n\t * @param t\n\t */\n\tabstract public void setTurtle(TurtleModel t);\n\t\n\t/**\n\t * Gets the TurtleModel used for execution\n\t * @return the TurtleModel used for execution\n\t */\n\tabstract public TurtleModel getTurtle();\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to value, and calls setTurtleRecursive(value)\n\t * on this turtle's parent\n\t * @param value\n\t */\n\tpublic abstract void setTurtleRecursive(TurtleModel value);\n}",
"private interface Command {\n public void execute();\n }",
"List<String> getCommands();",
"private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}",
"public static void helpCommand(){\n\n System.out.println(\"--------list of controls-------\");\n System.out.println(\"'help' : display the list of control\");\n System.out.println(\"'exit' : for quit the app /n\");\n System.out.println(\"'adduser' : you can add user with this command,<fistname>,<lastname>,<country>,<departement>,<age>\");\n System.out.println(\"'edituser' : you can edit an user with this command, <firstname>,<lastname>\");\n System.out.println(\"'removeuser' : you can remove an user with this command, <firstanme>,<lastname>\");\n System.out.println(\"'listusers' : display all of users\");\n System.out.println(\"'addcar' : add a car to the list, <brand>,<model>,<ref>,<year>\");\n System.out.println(\"'editcar' : use this command for edit a car, <ref>\");\n System.out.println(\"'removecar' : use this command for remove a car\");\n System.out.println(\"'listcars' : display all the cars\");\n System.out.println(\"'rentcar' : command for rent a car\");\n System.out.println(\"'returncar' : command for return a car\");\n System.out.println(\"'listrent' : display the list of rents\");\n System.out.println(\"'saveusers' : use this command for save your users file\");\n System.out.println(\"'restoreusers' : use this command open your save users file\");\n System.out.println(\"'serialusers' : use this command serialize object users\");\n System.out.println(\"'saverents' : use this command save the list of rents in file\");\n System.out.println(\"'loadrents' : use this command load the list from file\");\n System.out.println(\"'savecars' : use this command for save the list of cars in a file\");\n System.out.println(\"'loadcars' : use this command for import the list from file \");\n System.out.println(\"'saveall' : use this command for save all the list in a file\");\n System.out.println(\"'loadall' : use this command for import all the list from file\");\n System.out.println(\"----------------------------------\");\n\n }",
"public String Command() {\n\treturn command;\n }",
"public void handleCommand(String command);",
"public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);",
"public interface Command {\r\n\r\n\tpublic void execute();\r\n\r\n}",
"public void getCommandsUpdate() {\n\t\t\r\n\t}",
"public interface Command {\n\tvoid execute();\n}",
"public void help() {\n System.out.println(\"Type 'commands' to list all \" +\n \"available commands\");\n System.out.println(\"Type 'start' to play game\");\n System.out.println(\"Player to remove the last stone loses!\");\n System.out.println();\n }",
"public String[] readCommand();",
"public Commands(){\n this.power = 0;\n this.direction = 0;\n this.started = false;\n this.runTime = new ElapsedTime();\n this.timeGoal = 0;\n }",
"final public void basicCommand() throws ParseException {\n if (jj_2_75(4)) {\n if (jj_2_55(4)) {\n jj_consume_token(MOVE);\n numero();\n } else if (jj_2_56(4)) {\n jj_consume_token(RIGHT);\n numero();\n } else if (jj_2_57(4)) {\n jj_consume_token(LEFT);\n numero();\n } else if (jj_2_58(4)) {\n jj_consume_token(ROTATE);\n numero();\n } else if (jj_2_59(4)) {\n jj_consume_token(DROP);\n numero();\n } else if (jj_2_60(4)) {\n jj_consume_token(FREE);\n numero();\n } else if (jj_2_61(4)) {\n jj_consume_token(PICK);\n numero();\n } else if (jj_2_62(4)) {\n jj_consume_token(POP);\n numero();\n } else if (jj_2_63(4)) {\n jj_consume_token(BLOCKEDP);\n } else if (jj_2_64(4)) {\n jj_consume_token(NOP);\n } else if (jj_2_65(4)) {\n jj_consume_token(LOOK);\n if (jj_2_49(4)) {\n jj_consume_token(N);\n } else if (jj_2_50(4)) {\n jj_consume_token(E);\n } else if (jj_2_51(4)) {\n jj_consume_token(W);\n } else if (jj_2_52(4)) {\n jj_consume_token(S);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n } else if (jj_2_66(4)) {\n jj_consume_token(CHECK);\n if (jj_2_53(4)) {\n jj_consume_token(C);\n } else if (jj_2_54(4)) {\n jj_consume_token(B);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n numero();\n } else if (jj_2_67(4)) {\n block();\n } else if (jj_2_68(4)) {\n repeat();\n } else if (jj_2_69(4)) {\n conditional();\n } else if (jj_2_70(4)) {\n define();\n } else if (jj_2_71(4)) {\n function();\n } else if (jj_2_72(4)) {\n funcall();\n } else if (jj_2_73(4)) {\n varcall();\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n } else {\n label_13:\n while (true) {\n if (jj_2_74(4)) {\n ;\n } else {\n break label_13;\n }\n jj_consume_token(34);\n }\n }\n }",
"private CommandBrocker() {}",
"public String getUserCommand();",
"public void commandEntered(String cmd)\n {\n String cleaned = StringUtils.cleanWhiteSpace(cmd.trim());\n String args[] = cleaned.split(\" \");\n \tString c = args[0];\n \n Runnable cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n \tif (c.equals(\"name\"))\n cb = new Runnable() { public void run() { cbName(); } };\n else if (c.equals(\"version\")) \n cb = new Runnable() { public void run() { cbVersion(); } };\n else if (c.equals(\"genmove\")) \n cb = new Runnable() { public void run() { cbGenMove(); } };\n else if (c.equals(\"all_legal_moves\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"get_absorb_group\"))\n cb = new Runnable() { public void run() { cbGetAbsorbGroup(); } };\n \n \telse if (c.equals(\"shortest_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \telse if (c.equals(\"shortest_vc_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"compute_dead_cells\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build-incremental\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n \n \n else if (c.equals(\"solver-find-winning\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } }; \n \n else if (c.equals(\"find_sealed\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"strengthen_vcs\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n \n else if (c.equals(\"book-depths\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-sizes\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-scores\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \telse if (c.equals(\"book-priorities\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"db-get\")) \n cb = new Runnable() { public void run() { cbDBGet(); } };\n \n else if (c.equals(\"vc-connected-to\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-between-cells\"))\n cb = new Runnable() { public void run() { cbBetweenCells(); } };\n else if (c.equals(\"vc-get-mustplay\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-intersection\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-union\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"eval_twod\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"eval_resist\")) \n cb = new Runnable() { public void run() { cbEvalResist(); } };\n else if (c.equals(\"eval_resist_delta\")) \n cb = new Runnable() { public void run() { cbEvalResistDelta(); } };\n \telse if (c.equals(\"eval_influence\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"mohex-show-rollout\")) \n cb = new Runnable() { public void run() { cbMohexShowRollout(); } };\n else if (c.equals(\"quit\")) \n cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n sendCommand(cmd, cb);\n }",
"public interface Command {\n\n void execute();\n void undo();\n}",
"public interface Command {\n\n /**\n * Encapsulate the actions and can be called to invoke the actions on the receiver object.\n */\n void execute();\n\n /**\n * Encapsulate the undo actions.\n */\n void unDo();\n}",
"public interface Command\n{\n public void execute();\n public void undo();\n}",
"public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }",
"private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }",
"public String getCommand() { return command; }",
"public interface Command {\r\n \r\n /** set the coordinates of the mouse down event;\r\n * where the image is moved FROM.\r\n * @param fromX x coordinate of mouse \r\n * @param fromY y coordinate of mouse\r\n */\r\n public void setFromCoordinates(int fromX, int fromY);\r\n\r\n /** set the coordinates of the mouse up event;\r\n * where the image is moved TO.\r\n * @param toX x coordinate of mouse \r\n * @param toY y coordinate of mouse\r\n */\r\n public void setToCoordinates(int toX, int toY);\r\n \r\n /** execute encapsulates the method call on the board game. \r\n * NOTE: it is this method's responsibility return false\r\n * in case the given from and to coordinates cannot\r\n * be translated into a meaningful board game invokation\r\n * and in this case return false. Example: moving a\r\n * piece outside the board may translate into calling\r\n * a game's move method with a null parameter which\r\n * will next generate a null pointer exception in the\r\n * game logic.\r\n * @return false if the action, typically a move, is illegal\r\n * in the board game. \r\n * */\r\n public boolean execute();\r\n}",
"public interface MenuCommands \n{\n public void execute( int idx, Creature c ); \n}",
"List<CommandInfo> list();",
"@Override\n public String getCommandName() {\n return \"man\";\n }",
"@Override\n public String commandDocumentation() {\n return (\"Displays the documentation of various commands.\");\n }",
"protected String getCommand() {\n\treturn \"GAME\";\n }",
"public Command(){\n \n comando.put(\"!addGroup\", 1);\n comando.put(\"!addUser\", 2);\n comando.put(\"!delFromGroup\", 3);\n comando.put(\"!removeGroup\", 4);\n comando.put(\"!upload\", 5);\n comando.put(\"!listUsers\",6);\n comando.put(\"!listGroups\",7);\n\n }",
"public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}",
"private InfoCommand()\n\t{\n\t\t\n\t\t\n\t}",
"public void sendCommand(Command cmd);",
"interface Command\n{\n\tpublic void execute();\n}",
"public static ArrayList<String> commandList() {\n\r\n\t\tArrayList<String> commands = new ArrayList<String>();\r\n\r\n\t\tcommands.add(\"/HELP\");\r\n\t\tcommands.add(\"/QUIT\");\r\n\t\tcommands.add(\"/REMOVE\");\r\n\t\tcommands.add(\"/BAN\");\r\n\t\tcommands.add(\"/BANIP\");\r\n\t\tcommands.add(\"/REMOVEIP\");\r\n\t\tcommands.add(\"/CLEAR\");\r\n\t\tcommands.add(\"/SHOW\");\r\n\t\tcommands.add(\"/WARN\");\r\n\r\n\t\treturn commands;\r\n\t}",
"private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }",
"public abstract void setCommand(String cmd);",
"public interface Command{\n public void execute();\n\n}",
"void processCommand (String command, ZMsg msg);",
"public String \n getCommand() \n {\n return pCommand;\n }",
"public void createDefaultCommands() {\n commands.put(\"Top 10 Items in logs serving 404s sorted by count\", \"grep 'HTTP/1.1\\\\\\\" 404' httpd-access.log | cut -d ' ' -f 7 | sort | uniq -c | sort -nr | head\");\n commands.put(\"Top 10 User agents\", \"cat httpd-access.log | cut -d '\\\\\\\"' -f 6 | sort | uniq -c | sort -nr | head\");\n commands.put(\"Most requested URLs\", \"awk -F\\\\\\\" '{print $2}' httpd-access.log | awk '{print $2}' | sort | uniq -c | sort -nr | head\");\n commands.put(\"Top 10 IP Addresses\", \"cat httpd-access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -10\");\n }",
"@Override\n\tpublic void command(List<Commande> commandes) {\n\t\t\n\t}",
"public void updateCommands ( ) {\n\t\texecute ( handle -> handle.updateCommands ( ) );\n\t}",
"public String[] nextCommand() {\r\n String[] result = null;\r\n if (sc.hasNextLine()) {\r\n String temp = sc.next();\r\n if (temp.equals(\"insert\")) {\r\n result = new String[3];\r\n result[0] = \"insert\";\r\n temp = sc.nextLine().trim();\r\n result[1] = temp.split(\"<SEP>\")[0];\r\n result[2] = temp.split(\"<SEP>\")[1];\r\n }\r\n else if (temp.equals(\"remove\")) {\r\n result = new String[3];\r\n result[0] = \"remove\";\r\n result[1] = sc.next();\r\n result[2] = sc.nextLine().trim();\r\n }\r\n else if (temp.equals(\"print\")) {\r\n result = new String[2];\r\n result[0] = \"print\";\r\n result[1] = sc.nextLine().trim();\r\n }\r\n else {\r\n sc.nextLine();\r\n }\r\n return result;\r\n }\r\n return null;\r\n }",
"private static Object command(String userCommandLine[]) {\n\t\tint size = userCommandLine.length;\n\n\t\tswitch(userCommandLine[0].trim().toUpperCase()) {\n\n\t\t/*\n\t\t * INFORMATION\n\t\t *\n\t\t * Add executecommand on each case\n\t\t * but if it dosn't yet implemented\n\t\t * comment the command allow to user\n\t\t * on the variable string[] commands\n\t\t *\n\t\t */\n\t\t\n\t\t/* ************************************\n\t\t * standard commands\n\t\t *************************************/\n\t\tcase \"QUIT\": return ExecuteCommand.exit();\n\t\tcase \"EXIT\": return ExecuteCommand.exit();\n\t\tcase \"HELP\": help( (size > 1) ? userCommandLine[1].trim() : \"\"); break;\n\t\tcase \"VAR\": ExecuteCommand.showVar(); break;\n\t\tcase \"DEL\" : ExecuteCommand.delVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"RENAME\": ExecuteCommand.renameVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"STARTSPARK\": ExecuteCommand.startSpark(); break;\n\t\tcase \"STOPSPARK\": ExecuteCommand.stopSpark(); break;\n\t\t\n\t\t/* ************************************\n\t\t * database\n\t\t *************************************/ \n\t\t\n\t\t/* open database(name: String, filesystem: FileSystem, conf: Config) */\n\t\tcase \"OPEN\" : ExecuteCommand.openDB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* close database */\n\t\tcase \"CLOSE\" : ExecuteCommand.closeDB(); break;\n\t\t/* restart database */\n\t\tcase \"RESTART\" : ExecuteCommand.restartDB(); break;\n\t\t/* show list of TimeSeries */\n\t\tcase \"SHOW\" : ExecuteCommand.showTS(); break;\n\t\t/* drop a timeSeries */\n\t\tcase \"DROP\" : ExecuteCommand.dropTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* exist a timeSeries with name ... */\n\t\tcase \"EXIST\" : ExecuteCommand.existTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get a timeSeries */\n\t\tcase \"GET\" : ExecuteCommand.getTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* create a timeSeries */\n\t\tcase \"CREATE\" : ExecuteCommand.createTS2DB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Time Series\n\t\t *************************************/\n\t\t\n\t\t/* create the timeSerie schema */\n\t\tcase \"CREATE_SCHEMA\" : ExecuteCommand.createSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* show the schema of the timeSerie */\n\t\tcase \"SHOW_SCHEMA\" : ExecuteCommand.showSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get the schema of the timeSerie*/\n\t\tcase \"GET_SCHEMA\" : ExecuteCommand.getSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* insert data at a certain file */\n\t\tcase \"INSERT\" : ExecuteCommand.insertDataFromFile(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* select timeSerie Range from timeStart to timeEnd */\n\t\tcase \"SELECT_RANGE\": break;\n\t\t/* select a column of a timeserie */\n\t\tcase \"SELECT\": ExecuteCommand.selectColumn(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find max value of timeSerie */\n\t\tcase \"MAX_VALUE\" : ExecuteCommand.maxValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find min value of timeSerie */\n\t\tcase \"MIN_VALUE\" : ExecuteCommand.minValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* print first five values */\n\t\tcase \"PRINT\" : ExecuteCommand.printHead(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Transformations\n\t\t *************************************/\n\t\t\n\t\t/* power transformation of timeSerie: square root */\n\t\tcase \"SQRT_TRANSFORM\" : break;\n\t\t/* power transformation of timeSerie: logarithm */\n\t\tcase \"LOG_TRANSFORM\" : break;\n\t\t/* average of timeSerie */\n\t\tcase \"MEAN\" : break;\n\t\t/* shifting timeSerie with coefficient */\n\t\tcase \"SHIFT\" : break;\n\t\t/* scaling timeSerie with coefficient */\n\t\tcase \"SCALE\" : break;\n\t\t/* standard deviation of timeSeries */\n\t\tcase \"STD_DEVIATION\" : break;\n\t\t/* normalize the TimeSerie */\n\t\tcase \"NORMALIZE\" : break;\n\t\t/* search the first time occurs */\n\t\tcase \"SEARCH\" : break;\n\t\t/* moving average */\n\t\tcase \"MOVING_AVERAGE\" : break;\n\t\t/* DFT of timeSerie */\n\t\tcase \"DFT\" : break;\n\t\t/* DTW of 2 timeSerie (similarity between two timeseries) */\n\t\tcase \"DTW\" : break;\n\t\t\n\t\t/* ************************************\n\t\t * Compression \n\t\t *************************************/\n\n\t\t/* compress a timeserie */\n\t\tcase \"COMPRESSION\" : ExecuteCommand.compression(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* decompress a timeserie */\n\t\tcase \"DECOMPRESSION\" : break;\n\n\t\t/* ************************************\n\t\t * indexing \n\t\t *************************************/\n\t\t\n\t\t/* create index for many ts */\n\t\tcase \"CREATE_INDEX\" : ExecuteCommand.createIndex(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* return neighbors of a ts from the create index */\n\t\tcase \"NEIGHBORS\" : break;\n\t\t/* ************************************\n\t\t * clustering \n\t\t *************************************/\n\t\t\n\t\t/* ************************************\n\t\t * Application \n\t\t *************************************/\n\t\tcase \"CREATE_DNA\" : break;\n\t\tcase \"DNA_SIMILARITY\" : ExecuteCommand.dnApplication(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\t\t\n\t\tdefault: System.out.println(\"oups it may have a code error\");\n\t\t}\n\n\t\treturn true;\n\t}",
"public static void main(String[] args) {\n\t\tLight light = new Light(\"Party Hall \");\r\n\t\tSterio sterio = new Sterio(\"Party Hall \");\r\n\t\tTv tv = new Tv(\"Party Hall \");\r\n\t\t\r\n\t\tLightOnCommand lightOnCommand = new LightOnCommand(light);\r\n\t\tSterioOnWithCDCommand sterioOnWithCDCommand = new SterioOnWithCDCommand(sterio);\r\n\t\tTvOnCommand tvOnCommand = new TvOnCommand(tv);\r\n\t\t\r\n\t\tLightOffCommand lightOffCommand = new LightOffCommand(light);\r\n\t\tSterioOffCommand sterioOffCommand = new SterioOffCommand(sterio);\r\n\t\tTvOffCommand tvOffCommand = new TvOffCommand(tv);\r\n\t\t\r\n\t\tCommand[] onCommands = {lightOnCommand, sterioOnWithCDCommand, tvOnCommand};\r\n\t\tCommand[] offCommands = {lightOffCommand, sterioOffCommand, tvOffCommand};\r\n\t\t\r\n\t\tMacroCommand macroOnCommand = new MacroCommand(onCommands);\r\n\t\tMacroCommand macroOffCommand = new MacroCommand(offCommands);\r\n\t\t\r\n\t\tRemoteControl rc = new RemoteControl();\r\n\t\trc.setCommand(0, macroOnCommand, macroOffCommand);\r\n\t\t\r\n\t\trc.onButtonWasPressed(0);\r\n\t\t\r\n\t\trc.offButtonWasPressed(0);\r\n\t\t\r\n\t\tSystem.out.println(\"=======undo========\");\r\n\t\trc.undoButtonWasPressed();\r\n\r\n\t}",
"private static void help() {\n\t\tSystem.out.println(\"\\n----------------------------------\");\n\t\tSystem.out.println(\"---Regatta Calculator Commands----\");\n\t\tSystem.out.println(\"----------------------------------\");\n\t\tSystem.out.println(\"addtype -- Adds a boat type and handicap to file. Format: name:lowHandicap:highHandicap\");\n\t\tSystem.out.println(\"format -- Provides a sample format for how input files should be arranged.\");\n\t\tSystem.out.println(\"help -- Lists every command that can be used to process regattas.\");\n\t\tSystem.out.println(\"podium -- Lists the results of the regatta, assuming one has been processed.\");\n\t\tSystem.out.println(\"regatta [inputfile] -- Accepts an input file as a parameter, this processes the regatta results outlined in the file.\");\n\t\tSystem.out.println(\"types -- lists every available boat type.\");\n\t\tSystem.out.println(\"write [outputfile] -- Takes the results of the regatta and writes them to the file passed as a parameter.\");\n\t\tSystem.out.println(\"----------------------------------\\n\");\n\t}",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"int getActionCommand();",
"public interface Command {\n void execute();\n}",
"public interface Command {\n void execute();\n}",
"public interface Command {\n void execute();\n}",
"public void initDefaultCommand() \n {\n }",
"public void onCmd(String cmd) \n {\n \tString split[] = cmd.split(\" \");\n \tif (split.length <= 1)\n \t{\n \t\tacm(\"No command was typed. Use \\\"help\\\" for a list of commands\");\n \t\treturn;\n \t}\n \telse\n \t{\n \t\tfor (ICommand command : commands)\n \t\t{\n \t\t\tif (command.getCommand().equalsIgnoreCase(split[1]))\n \t\t\t{\n \t\t\t\tcommand.onCmd(split);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\tacm(\"\\\"\" + split[1] + \"\\\" Unknown command. Use \\\"help\\\" for a list of commands\");\n \t}\n }",
"private static void help(String cmd) {\n\t\tswitch(cmd) {\n\t\tcase \"QUIT\" : System.out.println(\"exit the framework\"); break;\n\t\tcase \"EXIT\" : System.out.println(\"exit the framework\"); break;\n\t\tdefault: {\n\t\t\tSystem.out.println(\"List of commands:\\n\");\n\t\t\t\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"standard commands\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"QUIT \t\t\t\t\\t\\t quit the application\");\n\t\t\tSystem.out.println(\"HELP \t\t\t\t\\t\\t show every command that can be use in PAST application\");\n\t\t\tSystem.out.println(\"VAR \t\t\t\t\\t\\t show every variable save in memory that can be use\");\n\t\t\tSystem.out.println(\"DEL name\t\t\t\\t\\t delete the name variable that was save in memory\");\n\t\t\tSystem.out.println(\"RENAME name newName \t\\t\\t\\t rename the name variable that was save in memeory with the new name\");\n\t\t\tSystem.out.println(\"STARTSPARK \t\t\t\\t\\t start spark, by default it start at the launch of the Applicationn\");\t\n\t\t\tSystem.out.println(\"STOPSPARK \t\t\t\\t\\t stop spark\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"database commands\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"OPEN database\t\t\t\\t\\t open the database but if database dosn't exist, it will create it\");\n\t\t\tSystem.out.println(\"CLOSE \t\t\t\t\\t\\t close the database\");\n\t\t\tSystem.out.println(\"RESTART \t\t\t\\t\\t restart the database\");\n\t\t\tSystem.out.println(\"SHOW \t\t\t\t\\t\\t show all Time serie in the database\");\n\t\t\tSystem.out.println(\"DROP timeserie\t\t\t\\t\\t delete the time serie in the database\");\n\t\t\tSystem.out.println(\"EXIST timserie \t\t\t\\t\\t check if the time serie exist in the database\");\n\t\t\tSystem.out.println(\"GET timeserie [: name] \t\\t\\t\\t load the timeserie and save in a variable (random or select name) in memory\");\n\t\t\tSystem.out.println(\"CREATE timeserie FROM file [schema] [: name] \\t create a timeserie by loading from a file with optional schema or save in variable with random or select name\");\n\t\t\tSystem.out.println(\"CREATE timeserie FROM DNA file [: name] \\t crreate a special timeserie for DNA (the dna file dosn't need timestampe) \");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"Time Series commands\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"CREATE_SCHEMA [: name] \t\t\t\\t create a personal schema with deamon tool \");\n\t\t\tSystem.out.println(\"SHOW_SCHEMA timeserie \t\t\t\\t show the schema of a timeserie save in memeory\");\n\t\t\tSystem.out.println(\"GET_SCHEMA FROM timeserie [: name] \t\\t get the schema of a timeserie and save in memeory \");\n\t\t\t/* System.out.println(\"INSERT\"); */ \n\t\t\t/* System.out.println(\"SELECT RANGE\"); */\n\t\t\tSystem.out.println(\"SELECT column FROM timeserie [: name] \\t\\t get the RDD of the column of the timeserie and save in variable name\");\n\t\t\tSystem.out.println(\"MAX_VALUE colum FROM timeserie \t\t\\t find the max value of colum of the timeserie \");\n\t\t\tSystem.out.println(\"MAX_VALUE rdd \t\t\t\t\\t find the max value of the RDD \");\n\t\t\tSystem.out.println(\"MIN_VALUE colum FROM timeserie \t\t\\t find the min value of colum of the timeserie \");\n\t\t\tSystem.out.println(\"MAX_VALUE rdd \t\t\t\t\\t find the min value of the RDD \");\n\t\t\tSystem.out.println(\"PRINT FROM timeserie\t\t\t\\t print the 10 first values of the timeserie\");\n\t\t\tSystem.out.println(\"PRINT FROM rdd\t\t\t\t\\t print the 10 first values of the RDD\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"Transformation commands\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\t/* System.out.println(\"SQRT TRANSFORM\"); */\n\t\t\t/* System.out.println(\"LOG TRANSFORM\"); */\n\t\t\t/* System.out.println(\"MEAN\"); */\n\t\t\t/* System.out.println(\"SHIFT\"); */\n\t\t\t/* System.out.println(\"SCALE\"); */\n\t\t\t/* System.out.println(\"STD DEVIATION\"); */\n\t\t\t/* System.out.println(\"NORMALIZE\"); */\n\t\t\t/* System.out.println(\"SEARCH\"); */\n\t\t\t/* System.out.println(\"MOVING AVERAGE\"); */\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"Compression commands\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\t// System.out.println(\"COMPRESSION timeserie WITH {regression, APCA, demon} \\t compress the timeserie with one parameter\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"indexing\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"CREATE_INDEX \t\t\t\t\\t execute a deamon tool to assist of the creation of the index\");\n\t\t\tSystem.out.println(\"CREATE_INDEX FROM timeserie timeserie ..\\t create index with the select timeserie\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"clustering\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"Forecasting\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"Application\");\n\t\t\tSystem.out.println(\"************************************\");\n\t\t\tSystem.out.println(\"DNA_SIMILARITY BETWEEN dna1 IN dna2\t\\t find the most similar part of dna1 in the dna2\");\n\t\t\tSystem.out.println(\"------------------------------------\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"Example: we want to find the most similar DNA part of one file in a other file. And we have no database.\");\n\t\t\tSystem.out.println(\" 1: OPEN db\");\n\t\t\tSystem.out.println(\" 2: CREATE dna1 FROM DNA dna1.txt : TSchimpDNA\");\n\t\t\tSystem.out.println(\" 3: CREATE dna2 FROM DNA dna2.txt : TSbigDNA\");\n\t\t\tSystem.out.println(\" 4: SELECT data FROM TSchimpDNA : chimpDNA\");\n\t\t\tSystem.out.println(\" 5: SELECT data FROM TSbigDNA : bigDNA\");\n\t\t\tSystem.out.println(\" 6: DNA_SIMILARITY BETWEEN chimpDNA IN bigDNA\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t}\n\t\t\n\t}"
] |
[
"0.73932683",
"0.7254115",
"0.7205506",
"0.71066374",
"0.7015072",
"0.70102674",
"0.69948924",
"0.6915147",
"0.6914878",
"0.68560076",
"0.68450415",
"0.684378",
"0.6836223",
"0.6795245",
"0.67736983",
"0.67075324",
"0.66898936",
"0.668735",
"0.66862124",
"0.6682264",
"0.6665944",
"0.66565704",
"0.66555345",
"0.665444",
"0.66536266",
"0.66384935",
"0.66245055",
"0.6605927",
"0.66007084",
"0.65854853",
"0.6571165",
"0.6565684",
"0.65652215",
"0.654924",
"0.6500974",
"0.65004545",
"0.649689",
"0.64773434",
"0.646181",
"0.6453597",
"0.64475197",
"0.6439852",
"0.6439428",
"0.6430702",
"0.64134735",
"0.6407438",
"0.6395801",
"0.6375955",
"0.6364595",
"0.63618475",
"0.6358301",
"0.6343174",
"0.6340171",
"0.6339689",
"0.6330633",
"0.63293624",
"0.63246286",
"0.6320248",
"0.63200784",
"0.6279301",
"0.6272902",
"0.62681925",
"0.62669164",
"0.62560916",
"0.62505734",
"0.62476045",
"0.6245092",
"0.6231726",
"0.6229873",
"0.62279713",
"0.62272096",
"0.62148297",
"0.621381",
"0.62107337",
"0.62089014",
"0.62081",
"0.6199784",
"0.6197042",
"0.6196086",
"0.61920494",
"0.61873555",
"0.6187354",
"0.6186768",
"0.6174",
"0.61726373",
"0.6170937",
"0.6164515",
"0.616428",
"0.6156088",
"0.61465406",
"0.61451876",
"0.614369",
"0.614194",
"0.6123402",
"0.6115019",
"0.61057365",
"0.61057365",
"0.61057365",
"0.60894465",
"0.60854375",
"0.60825163"
] |
0.0
|
-1
|
/ \ Replies \
|
public void fireLoginReply(DSMPHandler h, byte flags, byte handle,
int loginid, String user, String company,
Vector v) {
if (printdebug && dodebug) {
System.out.println("-----fireLoginReply: " +
"\n\tflags[" +flags+"] hand["+handle+"]");
System.out.println("\tloginid [" + loginid + "]");
System.out.println("\tusername [" + user + "]");
System.out.println("\tcompanyname [" + company + "]");
if (v != null) {
Enumeration e = v.elements();
while(e.hasMoreElements()) {
String s = (String)e.nextElement();
System.out.println("\t " + s);
}
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void insertReply() {\n\r\n\t}",
"public void increseReplyCount() {\n\r\n\t}",
"public void deleteReply() {\n\r\n\t}",
"public void messageResp(int respId) {\n\r\n\t}",
"public void sendReply(String cmd, String reply) {\n if (cmd.equals(\"ACTION_REPLY\")){\n long now = System.currentTimeMillis();\n long processTime = now - startTime;\n out.println(cmd + \"<<\"+processTime+\":\"+ reply);\n }else{\n //out.println(cmd + \"<<null\" + reply);\n out.println(cmd + \"<<\" + reply); //changed per drew's suggestion\n }\n \n }",
"private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }",
"@RequestMapping(\"/reply\")\n\tpublic String reply(HttpServletRequest request, Model model) {\n\t\tdao.reply(request.getParameter(\"bId\"), \n\t\t\t\trequest.getParameter(\"bName\"), \n\t\t\t\trequest.getParameter(\"bTitle\"), \n\t\t\t\trequest.getParameter(\"bContent\"),\n\t\t\t\trequest.getParameter(\"bGroup\"), \n\t\t\t\trequest.getParameter(\"bStep\"), \n\t\t\t\trequest.getParameter(\"bIndent\"));\n\t\treturn \"redirect:list\";\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\n\tpublic void replyOperationCompleted() { ; }",
"void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}",
"void reply(Server server);",
"@Override\r\n\tpublic String repl() {\n\t\treturn null;\r\n\t}",
"private void reply(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tcomplainVo complainVo = new complainVo();\r\n\t\tcomplainVo.setComplainId(id);\r\n\t\tcomplainDao complainDao = new complainDao();\r\n\t\tList ls = complainDao.edit(complainVo);\r\n\t\tHttpSession session = request.getSession();\r\n\t\tsession.setAttribute(\"replyList\", ls);\r\n\t\t\r\n\t\tresponse.sendRedirect(\"Admin/replyComplain.jsp\");\r\n\t}",
"@GET(\"/{interaction-id}/replies\")\n List<GetGlueInteraction> replies(\n @EncodedPath(\"interaction-id\") String interactionId\n );",
"@Override\n\tpublic void msgBreakReply(boolean reply) {\n\t\t\n\t}",
"public List<Comment> getReplies () {\n return replies;\n }",
"public String getReplyString()\n {\n StringBuilder buffer = new StringBuilder(256);\n for (String s : _replyLines)\n {\n buffer.append(s);\n buffer.append(SocketClient.NETASCII_EOL);\n }\n \n return buffer.toString();\n }",
"public synchronized void crit_reply(String filename)\n {\n out.println(\"REPLY\");\n out.println(my_c_id);\n out.println(filename);\n }",
"public void rec() {\n\n\t}",
"String notes();",
"public String getIDKReply();",
"public void talk() {\n\n\t}",
"public static int offset_reply() {\n return (80 / 8);\n }",
"public void printRecipt(){\n\n }",
"public InvokeReply() {\n super(ProtocolOpcode.INVOKE_REPLY);\n }",
"protected ACLMessage prepareResponse(ACLMessage msg) {\n ACLMessage reply = msg.createReply();\n try {\n Object contentRebut = (Object)msg.getContent();\n showMessage(\"RECIEVED \"+msg.getSender().getName() + \", \"+msg.getPerformative());\n if(contentRebut.equals(\"Movement request\")) {\n showMessage(\"Movement request received\");\n reply.setPerformative(ACLMessage.AGREE);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n showMessage(\"Answer sent Movement requet recieved\"); //: \\n\"+reply.toString());\n return reply;\n }",
"private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public String printAsterisk(){\n return \"*\";\n }",
"private void newline() {}",
"void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}",
"@Override\n\tpublic void cry() \n\t{\n\t\tSystem.out.println(\"喵喵喵\");\n\t\t\n\t}",
"entities.Torrent.ReplicateResponse getReplicateResponse();",
"public TaBoardReplyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}",
"@Override\n\tpublic void comment() {\n\t\t\n\t}",
"@Override\n\tpublic boolean repOk() {\n\t\treturn true;\n\t}",
"@AutoEscape\n\tpublic String getRespondText();",
"Message pull();",
"public static void main(String[] args) {\n\t\t\r\n\t\tmyGreetingsResp mg = new myGreetingsResp();\r\n\t\tSystem.out.println(mg.greetResp(\"John\", \"Bye\"));\r\n\t\t\r\n\t\tSystem.out.println(\"updating print text\");\r\n\r\n\t}",
"void responseSequenceNumber() {\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public String redo() {\n/* 173 */ return redo(0, false);\n/* */ }",
"@Override\r\n\tprotected void processRespond() throws SGSException {\n\r\n\t}",
"private String parseAndRespond() {\n\t\tList<String> commands = new ArrayList<String>();\n\t\twhile (input.hasNext()) {\n\t\t\tString inputToken = input.next();\n\t\t\tcommands.add(inputToken);\n\t\t\tcommands.get(commands.size()-1).chars().forEach(p -> System.out.println(p));\n\t\t\t\n\t\t\t/* trap telnet control c */\n\t\t\tString telnetControlC = IntStream.of(65533,65533,65533,65533,6).collect(StringBuilder::new,\n\t\t\t\t\tStringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t\t\tif (inputToken.contains(telnetControlC)) { \n\t\t\t\tSystem.out.println(\"Caught you CTRL+C evil!\");\n\t\t\t\treturn EXIT;\n\t\t\t}\n\t\t\tif (commands.get(commands.size()-1).equals(\".\")) {\n\t\t\t\tcommands.remove(commands.size()-1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif (commands.get(commands.size()-1).equals(EXIT)) return EXIT;\n\t\t\t\n\t\t}\n\t\t\n\t\tString response = \"\";\n\t\t/* I'm not sure if I want to trap an error or let it percolate up yet */\n\t\t\n//\t\ttry {\n\t\t\tresponse = commandInterpreter.interpretCommands(commands);\n//\t\t} catch (IOException e) {\n//\t\t\tlogger.log(Level.WARNING, \"Error interpreting commands\", e);\n//\t\t\tresponse = \"Error occured!\";\n//\t\t}\n\t\toutput.format(\"%s\\n>\",response);\n\t\toutput.flush();\n\t\t\n\n\t\treturn \"\";\n\n\t}",
"public void method() {\r\n\t\tSystem.out.println(\"4. 전체(다른 패키지) 접근 확인 - 상속\");\r\n//\t\tSystem.out.println(prot);\r\n//\t\tSystem.out.println(pub);\r\n\t}",
"void handlePacket(String devReplyStr);",
"@Override\n\tpublic List<ReplyVO> admin_rinsert(ReplyVO reply) {\n\t\treturn null;\n\t}",
"String note();",
"public void setRepersent(char rep)\n {\n this.repersent=rep;\n }",
"public abstract boolean repOk();",
"protected ACLMessage prepareResultNotification(ACLMessage msg, ACLMessage response) {\n ACLMessage reply = msg.createReply();\n reply.setPerformative(ACLMessage.INFORM);\n \n Object content = (Object)msg.getContent();\n \n // Prepare response for a ships movement request\n if(content.equals(\"Movement request\")){\n prepareMovementResultNotitication(reply);\n \n // Prepare response for a start negotiation requests\n }else if(content.equals(\"Negotiation request\")){\n \n }\n \n showMessage(\"Answer sent inform movement\"); //+reply.toString());\n return reply;\n\n }",
"protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);",
"public void ShowAllRep() {\n IntRepList.OpNode current = this.iRepBetter.head;\n while (null != current) {\n this.ShowRep(current.opArray);\n current = current.next;\n }\n }",
"@Override\n\tpublic String echo(String s) throws RemoteException {\n\t\tSystem.out.println(\"Replied to some client saying ’\" + s + \"’\");\n\t\treturn s;\n\t}",
"public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }",
"private String redo() {\n this.undos.push(History.copy(this));\n if (!redos.isEmpty()) {\n History history = redos.pop();\n this.undos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"public void replyMessage(String s) {\n\t\ttextArea.append(\"CTZ Bot : \" + s + \"\\n\");\n\t}",
"public void setReplyType(String rt) {\n/* 318 */ getCOSObject().setName(\"RT\", rt);\n/* */ }",
"@Override\n\tpublic String answer() {\n\t\treturn null;\n\t}",
"public String getReplyContent() {\n return replyContent;\n }",
"void mo1927a(NLPResponseData nLPResponseData);",
"private void prepareReply(ACLMessage msg) {\n\t\treply = msg.createReply();\n\t\treply.setPerformative(ACLMessage.REQUEST);\n\t\treply.setSender(getAID());\n\t}",
"public CarReply() {\n super();\n this.nrCars = 0;\n this.carwashID = \"\";\n }",
"public ResultSet reply2(String uname) throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select REPLY from FEEDBACK where FB_ID='\"+uname+\"'\");\r\n\t\treturn rs;\r\n\t}",
"@Override\n\tpublic void sendResponse() {\n\t\t\n\t}",
"public void printReceipt(){\n\t\t//TO DO\n\t\t\n\t}",
"public void mo21793R() {\n }",
"public void msg1()\r\n\t{\n\t\t\r\n\t}",
"public abstract String commandDocumentation();",
"protected Responder() {}",
"@Override\n\tpublic List<Entrust> reply(Entrust entrust) {\n\t\treturn entrustServiceImpl.reply(entrust);\n\t}",
"@Override\r\n\tpublic String work() {\n\t\treturn \"This is a hammer. \";\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"private void sendReply(String content) {\n\t\treply.setContent(content);\n\t\tsend(reply);\n\t\treply = null;\n\t}",
"@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn String.format(\"#%1$d *%2$s* (%3$s@doc): %4$s\\n%5$s\",\n\t\t\t id, poster_name, poster_uid, title,\n\t\t\t mlong.replaceAll(\"</?(br|BR)( ?/)?>\", \"\").replaceAll(\"</?(p|P) ( ?/)?>\", \"\\n\")\n\t\t\t);\n\t\t}",
"private void viewPendingRequests() {\n\n\t}",
"public static int size_reply() {\n return (8 / 8);\n }",
"public java.lang.CharSequence getRespp() {\n return respp;\n }",
"public String invLine()\n {\n return \" > You are carrying a hot cup of COFFEE ~ Just the thing to wake you up!\";}",
"public void __getReplyNoReport() {\n __getReply(false);\n }",
"public boolean repOk();",
"public String getReplyType() {\n/* 307 */ return getCOSObject().getNameAsString(\"RT\", \"R\");\n/* */ }",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void q() {\n\n\t}",
"public RXR insertRXR(int rep) throws HL7Exception { \r\n return (RXR)super.insertRepetition(\"RXR\", rep);\r\n }",
"public void mo21792Q() {\n }",
"@Override\n public void Op(int CID, byte[] requests, MessageContext msgCtx) {\n }",
"@Override\r\n\tpublic void replySub(CommentVO vo) throws Exception {\n\t\tsession.insert(namespace + \".replySub\", vo);\r\n\t}",
"private void toRent() {\n }",
"private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }",
"protected Answer(){\r\n\t\t\r\n\t}",
"public java.lang.CharSequence getRespp() {\n return respp;\n }",
"private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) || (currProbe.curr_status == models.MessageProbe.STATUS.NEW)) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToPost());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.POSTED;\n currProbe.curr_error = null;\n postCounter++;\n }\n currProbe.update();\n }\n }\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.DELETED) {\n currProbe.delete();\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.EDITED) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToModify());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.WAIT_CONFIRM;\n currProbe.curr_error = null;\n editCounter++;\n }\n currProbe.update();\n }\n }\n }\n }\n }",
"public void sendRRequests() {\n\n }",
"private void ShowRep(Integer[] op) {\n System.out.print(\" \" + this.opCodeStrings[op[0]]);\n for (int i = 1; i < 13; i++) {\n if ((i - 1) % 4 == 0)\n System.out.print(\" | \");\n if (op[i] != null)\n System.out.print(\" \" + op[i]);\n else\n System.out.print(\" - \");\n }\n System.out.println();\n }",
"@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}",
"@Override\r\n\tpublic void modifyReply(CommentVO vo) throws Exception {\n\t\tsession.update(namespace + \".modifyReply\", vo);\r\n\t}",
"@Override\n public void receivedReply(final RequestTargetReply reply) {\n }",
"@Override\n\tpublic void r() {\n\n\t}",
"void responseSent( C conn ) ;"
] |
[
"0.6451822",
"0.5687578",
"0.5638799",
"0.55207616",
"0.5505678",
"0.53770465",
"0.5364805",
"0.532961",
"0.532961",
"0.5285747",
"0.5283957",
"0.5240978",
"0.52308595",
"0.5227306",
"0.52088517",
"0.5196721",
"0.51793355",
"0.51381594",
"0.5095191",
"0.5078901",
"0.5058746",
"0.5048216",
"0.50244635",
"0.50210786",
"0.5007812",
"0.49897796",
"0.4976119",
"0.49536455",
"0.4953232",
"0.4952249",
"0.493544",
"0.49273553",
"0.4919929",
"0.4917604",
"0.49175614",
"0.491661",
"0.49120066",
"0.4903678",
"0.48908043",
"0.48885813",
"0.4886006",
"0.48779905",
"0.48673573",
"0.48598132",
"0.48595333",
"0.48568013",
"0.48461735",
"0.48439875",
"0.48384464",
"0.4836824",
"0.4832828",
"0.4830155",
"0.48214197",
"0.4819544",
"0.4815155",
"0.4808666",
"0.47971886",
"0.4788918",
"0.47871432",
"0.47713396",
"0.47655568",
"0.4753862",
"0.47507358",
"0.47497305",
"0.4749024",
"0.47421035",
"0.47395602",
"0.47372496",
"0.47322935",
"0.47291774",
"0.47248542",
"0.4718438",
"0.47164592",
"0.47160545",
"0.47061265",
"0.47030285",
"0.46993387",
"0.46948346",
"0.4692115",
"0.46862286",
"0.46831197",
"0.46823037",
"0.4679793",
"0.46765494",
"0.46759227",
"0.46714425",
"0.4670666",
"0.466737",
"0.4663607",
"0.46591207",
"0.46582446",
"0.46555036",
"0.46538407",
"0.46513054",
"0.46473345",
"0.46429306",
"0.4642735",
"0.46422186",
"0.46416694",
"0.46370926",
"0.4635459"
] |
0.0
|
-1
|
/ \ Events \
|
public void fireEndMeetingEvent(DSMPHandler h, byte flags, byte handle,
int meetingid) {
if (printdebug && dodebug) {
System.out.println("-----fireEndMeetingEvent: " +
"\n\tflags[" +flags+"] hand["+handle+"]");
System.out.println("\tmeetingid [" + meetingid + "]");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Event () {\n // Nothing to do here.\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"private void createEvents() {\n\t}",
"@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"public void TopDreiEvent();",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"private void eventhandler() {\n\r\n\t}",
"@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"BasicEvents createBasicEvents();",
"@Override\n\tpublic void update(Event e) {\n\t}",
"void event(Event e) throws Exception;",
"@Override\n\t\tprotected void onEvent(DivRepEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"@Override\n\tpublic void eventSelectTracker() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n protected void initializeEventList()\n {\n }",
"void eventChanged();",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n public void eventsChanged() {\n }",
"private void initializeEvents() {\r\n\t}",
"@Override\n\tpublic void loadEvents() {\n\t\t\n\t}",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"Event getEvent();",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"public void runEvent();",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"protected void onBegin() {}",
"@Override\n protected void initEventAndData() {\n }",
"public void onEvent(EventIterator events) {\n\n }",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"void onNewEvent(Event event);",
"@Override\r\n\tpublic void initEvent() {\n\r\n\t}",
"@Override\n\tpublic void e() {\n\n\t}",
"@Override\n public void handle(Event event) {\n }",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"EventManager()\n {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void onEntry()\n\t{\n\t}",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}"
] |
[
"0.7277992",
"0.70756865",
"0.70756865",
"0.70543313",
"0.70384276",
"0.7029674",
"0.6960421",
"0.6942838",
"0.6907837",
"0.6858283",
"0.68328035",
"0.68328035",
"0.68328035",
"0.68328035",
"0.68328035",
"0.68313694",
"0.6824899",
"0.6824899",
"0.67747957",
"0.674534",
"0.6735561",
"0.6729848",
"0.6729848",
"0.6729848",
"0.67149115",
"0.6712728",
"0.6712728",
"0.66932684",
"0.66932684",
"0.6675611",
"0.6618552",
"0.66100234",
"0.6605535",
"0.65920025",
"0.65920025",
"0.6591005",
"0.65790343",
"0.6572463",
"0.6549902",
"0.6542315",
"0.6513369",
"0.65123826",
"0.6511005",
"0.64763284",
"0.6473271",
"0.6442569",
"0.64404047",
"0.6432862",
"0.6421931",
"0.64170694",
"0.63891613",
"0.63679177",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.6355007",
"0.63545114",
"0.63439906",
"0.6334193",
"0.62935185",
"0.62808275",
"0.6277956",
"0.6271939",
"0.6270276",
"0.62532353",
"0.6244526",
"0.6234384",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.621916",
"0.6210261",
"0.6207524",
"0.6191641",
"0.6191641",
"0.61657774",
"0.6162781",
"0.61546856",
"0.61545616",
"0.61522794",
"0.61522794",
"0.61522794",
"0.61522794"
] |
0.0
|
-1
|
/ \ Checking and Dispatching \
|
public void dispatchProtocolI(DSMPBaseProto proto,
DSMPBaseHandler handlerIn,
boolean doDispatch)
throws InvalidProtocolException {
int meetingid, participantid, inviteid, loginid;
String name;
byte opcode = proto.getOpcode();
byte flags = proto.getFlags();
byte handle = proto.getHandle();
proto.resetCursor();
DSMPHandler handler = (DSMPHandler)handlerIn;
if (printdebug && dodebug && redispatch) {
try {
if (pdbg == null) {
pdbg = (DSMPDispatchBase)DSMPSTDispatchBase.class.newInstance();
}
pdbg.setRedispatch(false);
pdbg.setDebug(true);
((DSMPSTDispatchBase)pdbg).setToneItDown(toneitdown);
pdbg.dispatchProtocolI(proto, null, true);
proto.resetCursor();
} catch(Throwable tttt) {
System.out.println("Error dispatching DebugProtocol =>");
tttt.printStackTrace(System.out);
}
proto.resetCursor();
}
if (DSMPGenerator.isReply(opcode)) {
boolean success = (flags & (byte)0x01) != 0;
if (!success) {
short errorcode = proto.getShort();
String errorString = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
switch(opcode) {
case DSMPGenerator.OP_LOGIN_REPLY:
fireLoginReplyError(handler, flags, handle,
errorcode, errorString);
break;
case DSMPGenerator.OP_LOGOUT_REPLY:
fireLogoutReplyError(handler, flags, handle,
errorcode, errorString);
break;
case DSMPGenerator.OP_STARTMEETING_REPLY:
fireStartMeetingReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_LEAVEMEETING_REPLY:
fireLeaveMeetingReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_ENDMEETING_REPLY:
fireEndMeetingReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_CREATEINVITATION_REPLY:
fireCreateInvitationReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_JOINMEETING_REPLY:
fireJoinMeetingReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_DROPINVITEE_REPLY:
fireDropInviteeReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_IMAGERESIZE_REPLY:
fireImageResizeReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_CHATMESSAGE_REPLY:
fireChatMessageReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_MODIFYCONTROL_REPLY:
fireModifyControlReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_GETALLMEETINGS_REPLY:
fireGetAllMeetingsReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_TRANSFERMODERATOR_REPLY:
fireTransferModeratorReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_ASSIGNOWNERSHIP_REPLY:
fireAssignOwnershipReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_STARTSHARE_REPLY:
fireStartShareReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_STOPSHARE_REPLY:
fireStopShareReplyError(handler, flags, handle,
errorcode,
errorString);
break;
case DSMPGenerator.OP_CREATE_GROUP_REPLY: {
fireCreateGroupReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_DELETE_GROUP_REPLY: {
fireDeleteGroupReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_MODIFY_GROUP_ACL_REPLY: {
fireModifyGroupAclReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_MODIFY_GROUP_ATTRIBUTES_REPLY: {
fireModifyGroupAttributeReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_QUERY_GROUPS_REPLY: {
fireQueryGroupsReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_PLACECALL_REPLY: {
firePlaceCallReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_ACCEPTCALL_REPLY: {
fireAcceptCallReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_QUERY_MEETING_OPTIONS_REPLY: {
fireQueryMeetingOptionsReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_SET_MEETING_OPTIONS_REPLY: {
fireSetMeetingOptionsReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
case DSMPGenerator.OP_GET_MEETING_URL_REPLY: {
fireGetMeetingURLReplyError(handler, flags,
handle, errorcode,
errorString);
break;
}
}
}
} else {
switch(opcode) {
case DSMPGenerator.OP_LOGIN_REPLY: {
Vector v = new Vector();
loginid = proto.getInteger();
String user = proto.getString16();
String company = proto.getString16();
int nump = proto.getInteger();
for(int i=0; i < nump; i++) {
v.addElement(proto.getString16());
}
proto.verifyCursorDone();
if (doDispatch) {
fireLoginReply(handler, flags, handle,
loginid, user, company, v);
}
break;
}
case DSMPGenerator.OP_LOGOUT_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireLogoutReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_STARTMEETING_REPLY:
meetingid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireStartMeetingReply(handler, flags, handle,
meetingid,
participantid);
}
break;
case DSMPGenerator.OP_LEAVEMEETING_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireLeaveMeetingReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_ENDMEETING_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireEndMeetingReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_CREATEINVITATION_REPLY:
inviteid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireCreateInvitationReply(handler, flags, handle,
inviteid);
}
break;
case DSMPGenerator.OP_JOINMEETING_REPLY:
meetingid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireJoinMeetingReply(handler, flags, handle,
meetingid,
participantid);
}
break;
case DSMPGenerator.OP_DROPINVITEE_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireDropInviteeReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_IMAGERESIZE_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireImageResizeReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_CHATMESSAGE_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireChatMessageReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_MODIFYCONTROL_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireModifyControlReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_GETALLMEETINGS_REPLY: {
int numm = proto.getUnsignedShort();
Vector v = new Vector();
for(int i=0; i < numm; i++) {
inviteid = proto.getInteger();
loginid = proto.getInteger();
byte inviteType = proto.getByte();
meetingid = proto.getInteger();
String title = proto.getString8();
String owner = proto.getString8();
String classification = proto.getString8();
v.addElement(new DSMPMeeting(inviteid,
loginid,
inviteType,
meetingid,
title,
owner,
classification));
}
proto.verifyCursorDone();
if (doDispatch) {
fireGetAllMeetingsReply(handler, flags, handle, v);
}
break;
}
case DSMPGenerator.OP_TRANSFERMODERATOR_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireTransferModeratorReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_ASSIGNOWNERSHIP_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireAssignOwnershipReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_STARTSHARE_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireStartShareReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_STOPSHARE_REPLY:
proto.verifyCursorDone();
if (doDispatch) {
fireStopShareReply(handler, flags, handle);
}
break;
case DSMPGenerator.OP_CREATE_GROUP_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
fireCreateGroupReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_DELETE_GROUP_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
fireDeleteGroupReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_MODIFY_GROUP_ACL_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
fireModifyGroupAclReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_MODIFY_GROUP_ATTRIBUTES_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
fireModifyGroupAttributeReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_QUERY_GROUPS_REPLY: {
int numgrps = proto.get3ByteInteger();
Vector vec = new Vector();
while(numgrps-- > 0) {
GroupInfo gi = new GroupInfo();
gi.setGroupName(proto.getString16());
gi.setGroupOwner(proto.getString16());
gi.setGroupCompany(proto.getString16());
gi.setGroupCreated(proto.getLong());
gi.setGroupVisibility(proto.getByte());
gi.setGroupListability(proto.getByte());
byte lflags = proto.getByte();
int nummem = proto.get3ByteInteger();
Vector members = gi.getGroupMembers();
while(nummem-- > 0) {
members.addElement(proto.getString16());
}
gi.setGroupMembers(members);
gi.setGroupMembersValid((lflags & (byte)1) != (byte)0);
int numacc = proto.get3ByteInteger();
Vector access = gi.getGroupAccess();
while(numacc-- > 0) {
access.addElement(proto.getString16());
}
gi.setGroupAccess(access);
gi.setGroupAccessValid((lflags & (byte)2) != (byte)0);
vec.addElement(gi);
}
proto.verifyCursorDone();
if (doDispatch) {
boolean memberIncluded = (flags & (byte)1) != (byte)0;
boolean accessIncluded = (flags & (byte)2) != (byte)0;
fireQueryGroupsReply(handler, flags, handle,
memberIncluded, accessIncluded,
vec);
}
break;
}
case DSMPGenerator.OP_PLACECALL_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
firePlaceCallReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_ACCEPTCALL_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
fireAcceptCallReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_QUERY_MEETING_OPTIONS_REPLY: {
meetingid = proto.getInteger();
short numopts = proto.getShort();
Hashtable options = new Hashtable();
for(int i=0; i < numopts; i++) {
String key = proto.getString8();
String val = proto.getString16();
options.put(key, val);
}
proto.verifyCursorDone();
if (doDispatch) {
fireQueryMeetingOptionsReply(handler, flags, handle,
meetingid, options);
}
break;
}
case DSMPGenerator.OP_SET_MEETING_OPTIONS_REPLY: {
proto.verifyCursorDone();
if (doDispatch) {
fireSetMeetingOptionsReply(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_GET_MEETING_URL_REPLY: {
meetingid = proto.getInteger();
String url = proto.getString16();
proto.verifyCursorDone();
if (doDispatch) {
fireGetMeetingURLReply(handler, flags, handle,
meetingid, url);
}
break;
}
}
}
} else if (DSMPGenerator.isError(opcode)) {
meetingid = proto.getInteger();
short errorcode = proto.getShort();
String errorString = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
switch(opcode) {
case DSMPGenerator.OP_FRAMEUPDATE_ERROR:
fireFrameUpdateError(handler, flags, handle, meetingid,
errorcode, errorString);
break;
case DSMPGenerator.OP_KEYUPDATE_ERROR:
fireKeyUpdateError(handler, flags, handle, meetingid,
errorcode, errorString);
break;
case DSMPGenerator.OP_MOUSEUPDATE_ERROR:
fireMouseUpdateError(handler, flags, handle, meetingid,
errorcode, errorString);
break;
case DSMPGenerator.OP_FRAMEEND_ERROR:
fireFrameEndError(handler, flags, handle, meetingid,
errorcode, errorString);
break;
case DSMPGenerator.OP_FROZENMODE_ERROR:
fireFrozenModeError(handler, flags, handle, meetingid,
errorcode, errorString);
break;
}
}
} else if (DSMPGenerator.isEvent(opcode)) {
byte inviteType;
switch(opcode) {
case DSMPGenerator.OP_ENDMEETING_EVENT:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireEndMeetingEvent(handler, flags, handle, meetingid);
}
break;
case DSMPGenerator.OP_NEWINVITATION_EVENT:
meetingid = proto.getInteger();
inviteid = proto.getInteger();
inviteType = proto.getByte();
name = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireNewInvitationEvent(handler, flags, handle, meetingid,
inviteid, inviteType, name);
}
break;
case DSMPGenerator.OP_JOINEDMEETING_EVENT:
meetingid = proto.getInteger();
inviteid = proto.getInteger();
participantid = proto.getInteger();
loginid = proto.getInteger();
inviteType = proto.getByte();
name = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireJoinedMeetingEvent(handler, flags, handle, meetingid,
inviteid, participantid, loginid,
inviteType, name);
}
break;
case DSMPGenerator.OP_DROPPED_EVENT:
meetingid = proto.getInteger();
inviteid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireDroppedEvent(handler, flags, handle, meetingid,
inviteid, participantid,
(flags & (byte)0x01) != 0,
(flags & (byte)0x02) != 0);
}
break;
case DSMPGenerator.OP_IMAGERESIZE_EVENT: {
short x, y, w, h;
meetingid = proto.getInteger();
x = proto.getShort();
y = proto.getShort();
w = proto.getShort();
h = proto.getShort();
proto.verifyCursorDone();
if (doDispatch) {
fireImageResizeEvent(handler, flags, handle, meetingid,
x, y, w, h);
}
break;
}
case DSMPGenerator.OP_FRAMEUPDATE_EVENT: {
short x, y, w, h;
meetingid = proto.getExtraInt();
x = proto.getShort();
y = proto.getShort();
w = proto.getShort();
h = proto.getShort();
CompressInfo ci = proto.getDataAtCursor();
proto.verifyCursorDone();
if (doDispatch) {
boolean compressed = (flags & (byte)0x01) != 0;
if (compressed) {
try {
cpress.setStartDeCompressionSize(20000);
ci = cpress.decompress(ci.buf, ci.ofs, ci.len);
compressed = false;
} catch(DataFormatException de) {
System.out.println("Error decompressing!!");
}
}
// System.out.println("VQ = " + proto.getVirtualQuadrant());
fireFrameUpdateEvent(handler, flags, handle, meetingid,
x, y, w, h, compressed,
ci.buf, ci.ofs, ci.len);
}
break;
}
case DSMPGenerator.OP_MULTIFRAMEUPDATE_EVENT: {
short x, y, w, h;
meetingid = proto.getExtraInt();
CompressInfo ci = proto.getDataAtCursor();
proto.verifyCursorDone();
if (doDispatch) {
boolean compressed = (flags & (byte)0x01) != 0;
if (compressed) {
try {
cpress.setStartDeCompressionSize(164000);
ci = cpress.decompress(ci.buf, ci.ofs, ci.len);
compressed = false;
} catch(DataFormatException de) {
System.out.println("Error decompressing!!");
throw new InvalidProtocolException("Decompress error");
}
}
// 1. Verify that each item IS an OP_FRAME_UPDATE
// 2. Convert the COMMAND to EVENT (opcode change)
// 3. verify that the meetingid's match
// 4. dispatch the event
try {
int ofs = ci.ofs + 4; // Skip that useless numFrames
int endofs = ci.ofs + ci.len;
while(ofs < endofs) {
DSMPProto nproto = new DSMPProto();
ofs = nproto.readAll(ci.buf, ofs, 9999999);
if (nproto.getOpcode() !=
DSMPGenerator.OP_FRAMEUPDATE) {
throw
new InvalidProtocolException("MFUE != opcode");
}
if (nproto.getInteger() != meetingid) {
throw
new InvalidProtocolException("MFUE != meetid");
}
nproto.addMaskToFlags(DSMPGenerator.FLAGS_BIT1);
nproto.setOpcode(DSMPGenerator.OP_FRAMEUPDATE_EVENT);
nproto.resetCursor();
dispatchProtocol(nproto, handler);
}
} catch(ArrayIndexOutOfBoundsException abe) {
throw new InvalidProtocolException("Bad MFE");
}
}
break;
}
case DSMPGenerator.OP_CHATMESSAGE_EVENT: {
meetingid = proto.getInteger();
participantid = proto.getInteger();
int toid = proto.getInteger();
String str = proto.getString16();
proto.verifyCursorDone();
if (doDispatch) {
fireChatMessageEvent(handler, flags, handle, meetingid,
participantid, toid, str,
(flags & (byte)0x01) != 0);
}
break;
}
case DSMPGenerator.OP_CONTROL_EVENT:
meetingid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireControlEvent(handler, flags, handle, meetingid,
participantid);
}
break;
case DSMPGenerator.OP_MOUSEUPDATE_EVENT: {
short x, y;
byte button;
meetingid = proto.getInteger();
button = proto.getByte();
x = proto.getShort();
y = proto.getShort();
participantid = proto.getInteger();
boolean buttonEv = (flags & (byte)0x01) != 0;
boolean pressRelease = (flags & (byte)0x02) != 0;
boolean realMotion = (flags & (byte)0x04) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireMouseUpdateEvent(handler, flags, handle, meetingid,
buttonEv, pressRelease, realMotion,
button, x, y, participantid);
}
break;
}
case DSMPGenerator.OP_KEYUPDATE_EVENT: {
short x, y;
int javakeysym;
meetingid = proto.getInteger();
x = proto.getShort();
y = proto.getShort();
javakeysym = proto.getInteger();
participantid = proto.getInteger();
boolean pressRelease = (flags & (byte)0x01) != 0;
boolean keyCodeOrChar = (flags & (byte)0x02) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireKeyUpdateEvent(handler, flags, handle, meetingid,
pressRelease, keyCodeOrChar,
x, y, javakeysym, participantid);
}
break;
}
case DSMPGenerator.OP_FRAMEEND_EVENT:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireFrameEndEvent(handler, flags, handle, meetingid);
}
break;
case DSMPGenerator.OP_FROZENMODE_EVENT:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
boolean v = (flags & (byte)0x01) != 0; // frozen or not
fireFrozenModeEvent(handler, flags, handle, meetingid, v);
}
break;
case DSMPGenerator.OP_MODERATORCHANGE_EVENT: {
meetingid = proto.getInteger();
int fromid = proto.getInteger();
int toid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireModeratorChangeEvent(handler, flags, handle,
meetingid, fromid, toid);
}
break;
}
case DSMPGenerator.OP_OWNERCHANGE_EVENT: {
meetingid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireOwnershipChangeEvent(handler, flags, handle,
meetingid, participantid,
(((int)flags) & 1) != 0);
}
break;
}
case DSMPGenerator.OP_STARTSHARE_EVENT: {
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireStartShareEvent(handler, flags, handle, meetingid);
}
break;
}
case DSMPGenerator.OP_STOPSHARE_EVENT: {
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireStopShareEvent(handler, flags, handle, meetingid);
}
break;
}
case DSMPGenerator.OP_PLACECALL_EVENT: {
meetingid = proto.getInteger();
int partid = proto.getInteger();
String userid = proto.getString8();
String company = proto.getString8();
String salt = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
firePlaceCallEvent(handler, flags, handle,
meetingid, partid, userid,
company, salt);
}
break;
}
case DSMPGenerator.OP_ACCEPTCALL_EVENT: {
meetingid = proto.getInteger();
int partid = proto.getInteger();
String userid = proto.getString8();
String company = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireAcceptCallEvent(handler, flags, handle,
meetingid, partid, userid,
company);
}
break;
}
case DSMPGenerator.OP_MEETING_OPTION_EVENT: {
meetingid = proto.getInteger();
String key = proto.getString8();
String val = proto.getString16();
proto.verifyCursorDone();
if (doDispatch) {
fireMeetingOptionEvent(handler, flags, handle,
meetingid, key, val);
}
break;
}
}
} else if (DSMPGenerator.isCommand(opcode)) {
switch(opcode) {
case DSMPGenerator.OP_LOGIN: {
String tokenUser = proto.getString16();
String pw = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
if ((flags & (byte)0x01) != 0) {
fireLoginCommandToken(handler, flags, handle, tokenUser);
} else {
fireLoginCommandUserPW(handler, flags, handle,
tokenUser, pw);
}
}
break;
}
case DSMPGenerator.OP_LOGOUT: {
proto.verifyCursorDone();
if (doDispatch) {
fireLogoutCommand(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_STARTMEETING: {
String title = proto.getString8();
String pw = proto.getString8();
String cls = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireStartMeetingCommand(handler, flags, handle,
title, pw, cls);
}
break;
}
case DSMPGenerator.OP_LEAVEMEETING: {
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireLeaveMeetingCommand(handler, flags, handle, meetingid);
}
break;
}
case DSMPGenerator.OP_ENDMEETING: {
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireEndMeetingCommand(handler, flags, handle, meetingid);
}
break;
}
case DSMPGenerator.OP_CREATEINVITATION: {
meetingid = proto.getInteger();
byte inviteType = proto.getByte();
name = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireCreateInvitationCommand(handler, flags, handle,
meetingid, inviteType,
name);
}
break;
}
case DSMPGenerator.OP_JOINMEETING: {
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireJoinMeetingCommand(handler, flags, handle, meetingid);
}
break;
}
case DSMPGenerator.OP_DROPINVITEE: {
meetingid = proto.getInteger();
inviteid = proto.getInteger();
participantid = proto.getInteger();
boolean dropInvite = (flags & (byte)0x01) != 0;
boolean dropParticipant = (flags & (byte)0x02) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireDropInviteeCommand(handler, flags, handle, meetingid,
dropInvite, inviteid,
dropParticipant, participantid);
}
break;
}
case DSMPGenerator.OP_IMAGERESIZE: {
short x, y, w, h;
meetingid = proto.getInteger();
x = proto.getShort();
y = proto.getShort();
w = proto.getShort();
h = proto.getShort();
proto.verifyCursorDone();
if (doDispatch) {
fireImageResizeCommand(handler, flags, handle, meetingid,
x, y, w, h);
}
break;
}
case DSMPGenerator.OP_CHATMESSAGE: {
meetingid = proto.getInteger();
int toid = proto.getInteger();
String msg = proto.getString16();
boolean unicast = (flags & (byte)0x01) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireChatMessageCommand(handler, flags, handle, meetingid,
toid, msg, unicast);
}
break;
}
case DSMPGenerator.OP_MODIFYCONTROL: {
meetingid = proto.getInteger();
participantid = proto.getInteger();
boolean addRemove = (flags & (byte)0x01) != 0;
boolean forceAdd = (flags & (byte)0x02) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireModifyControlCommand(handler, flags, handle, meetingid,
participantid, addRemove, forceAdd);
}
break;
}
case DSMPGenerator.OP_GETALLMEETINGS: {
proto.verifyCursorDone();
if (doDispatch) {
fireGetAllMeetingsCommand(handler, flags, handle);
}
break;
}
case DSMPGenerator.OP_MOUSEUPDATE: {
short x, y;
byte button;
meetingid = proto.getInteger();
button = proto.getByte();
x = proto.getShort();
y = proto.getShort();
boolean buttonEv = (flags & (byte)0x01) != 0;
boolean pressRelease = (flags & (byte)0x02) != 0;
boolean realMotion = (flags & (byte)0x04) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireMouseUpdateCommand(handler, flags, handle, meetingid,
buttonEv, pressRelease, realMotion,
button, x, y);
}
break;
}
case DSMPGenerator.OP_KEYUPDATE: {
short x, y;
int javakeysym;
meetingid = proto.getInteger();
x = proto.getShort();
y = proto.getShort();
javakeysym = proto.getInteger();
boolean pressRelease = (flags & (byte)0x01) != 0;
boolean keyCodeOrChar = (flags & (byte)0x02) != 0;
proto.verifyCursorDone();
if (doDispatch) {
fireKeyUpdateCommand(handler, flags, handle, meetingid,
pressRelease, keyCodeOrChar, x, y,
javakeysym);
}
break;
}
case DSMPGenerator.OP_FRAMEUPDATE: {
short x, y, w, h;
meetingid = proto.getExtraInt();
x = proto.getShort();
y = proto.getShort();
w = proto.getShort();
h = proto.getShort();
CompressInfo ci = proto.getDataAtCursor();
proto.verifyCursorDone();
if (doDispatch) {
fireFrameUpdateCommand(handler, flags, handle,
meetingid, x, y, w, h,
(flags & (byte)0x01) != 0, ci.buf,
ci.ofs, ci.len);
}
break;
}
case DSMPGenerator.OP_MULTIFRAMEUPDATE: {
meetingid = proto.getExtraInt();
int numframes = proto.getInteger();
CompressInfo ci = proto.getDataAtCursor();
proto.verifyCursorDone();
if (doDispatch) {
fireMultiFrameUpdateCommand(handler, flags, handle,
(flags & (byte)0x01) != 0,
meetingid, proto);
}
break;
}
case DSMPGenerator.OP_FRAMEEND:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireFrameEnd(handler, flags, handle, meetingid);
}
break;
case DSMPGenerator.OP_FROZENMODE:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
boolean frozen = (flags & (byte)0x01) != 0;
fireFrozenMode(handler, flags, handle, meetingid, frozen);
}
break;
case DSMPGenerator.OP_PROTOCOLREST:
proto.verifyCursorDone();
if (doDispatch) {
fireProtocolRest(handler, flags, handle);
}
break;
case DSMPGenerator.OP_TRANSFERMODERATOR:
meetingid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireTransferModeratorCommand(handler, flags, handle,
meetingid, participantid);
}
break;
case DSMPGenerator.OP_ASSIGNOWNERSHIP:
meetingid = proto.getInteger();
participantid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
boolean addOrRemove = (flags & (byte)0x01) != 0;
fireAssignOwnershipCommand(handler, flags, handle,
meetingid, participantid,
addOrRemove);
}
break;
case DSMPGenerator.OP_STARTSHARE:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireStartShareCommand(handler, flags, handle, meetingid);
}
break;
case DSMPGenerator.OP_STOPSHARE:
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireStopShareCommand(handler, flags, handle, meetingid);
}
break;
case DSMPGenerator.OP_CREATE_GROUP: {
String group = proto.getString16().toLowerCase();
byte visibility = proto.getByte();
byte listability = proto.getByte();
proto.verifyCursorDone();
if (doDispatch) {
fireCreateGroupCommand(handler, flags, handle,
group, visibility, listability);
}
break;
}
case DSMPGenerator.OP_DELETE_GROUP: {
String group = proto.getString16().toLowerCase();
proto.verifyCursorDone();
if (doDispatch) {
fireDeleteGroupCommand(handler, flags, handle,
group);
}
break;
}
case DSMPGenerator.OP_MODIFY_GROUP_ACL: {
String group = proto.getString16().toLowerCase();
String usern = proto.getString16().toLowerCase();
proto.verifyCursorDone();
if (doDispatch) {
fireModifyGroupAclCommand(handler, flags, handle,
(flags & (byte)1) != (byte)0,
(flags & (byte)2) != (byte)0,
group, usern);
}
break;
}
case DSMPGenerator.OP_MODIFY_GROUP_ATTRIBUTES: {
String group = proto.getString16().toLowerCase();
byte visibility = proto.getByte();
byte listability = proto.getByte();
proto.verifyCursorDone();
if (doDispatch) {
fireModifyGroupAttributeCommand(handler, flags, handle,
group, visibility,
listability);
}
break;
}
case DSMPGenerator.OP_QUERY_GROUPS: {
String group = proto.getString16().toLowerCase();
proto.verifyCursorDone();
if (doDispatch) {
fireQueryGroupsCommand(handler, flags, handle,
(flags & (byte)1) != (byte)0,
(flags & (byte)2) != (byte)0,
(flags & (byte)4) != (byte)0,
group);
}
break;
}
case DSMPGenerator.OP_PLACECALL: {
meetingid = proto.getInteger();
String userid = proto.getString8();
String password = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
firePlaceCallCommand(handler, flags, handle,
(flags & (byte)1) != 0,
meetingid, userid, password);
}
break;
}
case DSMPGenerator.OP_ACCEPTCALL: {
meetingid = proto.getInteger();
int callerid = proto.getInteger();
String salt = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireAcceptCallCommand(handler, flags, handle,
meetingid, callerid, salt);
}
break;
}
case DSMPGenerator.OP_QUERY_MEETING_OPTIONS: {
meetingid = proto.getInteger();
String specificOpt = proto.getString8();
proto.verifyCursorDone();
if (doDispatch) {
fireQueryMeetingOptionsCommand(handler, flags, handle,
flags != 0,
meetingid, specificOpt);
}
break;
}
case DSMPGenerator.OP_SET_MEETING_OPTIONS: {
meetingid = proto.getInteger();
short numOpts = proto.getShort();
Hashtable options = new Hashtable();
for(int i=0; i < numOpts; i++) {
String key = proto.getString8();
String val = proto.getString16();
options.put(key, val);
}
proto.verifyCursorDone();
if (doDispatch) {
fireSetMeetingOptionsCommand(handler, flags, handle,
meetingid, options);
}
break;
}
case DSMPGenerator.OP_GET_MEETING_URL: {
meetingid = proto.getInteger();
proto.verifyCursorDone();
if (doDispatch) {
fireGetMeetingURLCommand(handler, flags, handle,
(flags & (byte)1) != 0,
(flags & (byte)2) != 0,
(flags & (byte)4) != 0,
meetingid);
}
break;
}
}
} else {
throw new InvalidProtocolException(opcode + ": Bad Opcode");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"public abstract String check() throws Exception;",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"public void smell() {\n\t\t\n\t}",
"protected abstract boolean processData(Object data);",
"private void checkRep() {\n\t\tif (CHECK_CONSTANT) {\n\t\tassert (label != null && childNode != null);\n\t\t}\n\t}",
"protected boolean func_70041_e_() { return false; }",
"abstract protected boolean checkMethod();",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"protected abstract void handleOk();",
"protected void additionalProcessing() {\n\t}",
"private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}",
"public void logic(){\r\n\r\n\t}",
"protected boolean processIllegalMove(String moveString, String reason){return false;}",
"void check();",
"void check();",
"void check() throws YangException;",
"public abstract boolean process();",
"protected boolean processGameInfo(GameInfoStruct data){return false;}",
"@Override\n\tprotected void processInput() {\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"protected abstract boolean checkInput();",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }",
"private void getStatus() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private synchronized void handleCallPacket() {\n int index = 0;\n try {\n index = this.getInteger();\n this.checkFunction(\"List\");\n }\n catch (MathLinkException e) {\n this.handleCleanException(e);\n return;\n }\n if (index != 14) {\n this.lastExceptionDuringCallPacketHandling = null;\n }\n try {\n StdLink.setup(this);\n StdLink.lastPktWasAllowUIComputations(false);\n this.clearInterrupt();\n switch (index) {\n case 1: {\n this.callJava();\n return;\n }\n case 2: {\n this.loadClass();\n return;\n }\n case 3: {\n this.throwFromMathematica();\n return;\n }\n case 4: {\n this.releaseInstance();\n return;\n }\n case 5: {\n this.val();\n return;\n }\n case 6: {\n this.callOnLoadClass();\n return;\n }\n case 7: {\n this.callOnUnloadClass();\n return;\n }\n case 8: {\n this.setComplexCls();\n return;\n }\n case 9: {\n this.reflect();\n return;\n }\n case 10: {\n this.showInFront();\n return;\n }\n case 11: {\n this.sameObjectQ();\n return;\n }\n case 12: {\n this.instanceOf();\n return;\n }\n case 13: {\n this.allowRaggedArrays();\n return;\n }\n case 14: {\n this.getException();\n return;\n }\n case 15: {\n this.connectToFEServer();\n return;\n }\n case 16: {\n this.disconnectToFEServer();\n return;\n }\n case 17: {\n this.peekClasses();\n return;\n }\n case 18: {\n this.peekObjects();\n return;\n }\n case 21: {\n this.setUserDir();\n return;\n }\n case 19: {\n this.getClassPath();\n return;\n }\n case 20: {\n this.addToClassPath();\n return;\n }\n case 23: {\n this.uiThreadWaiting();\n return;\n }\n case 22: {\n this.allowUIComputations();\n return;\n }\n case 24: {\n this.yieldTime();\n return;\n }\n case 25: {\n this.getConsole();\n return;\n }\n case 26: {\n this.extraLinks(true);\n return;\n }\n case 27: {\n this.getWindowID();\n return;\n }\n case 28: {\n this.addTitleChangeListener();\n return;\n }\n case 29: {\n this.setVMName();\n return;\n }\n case 30: {\n this.setException();\n break;\n }\n }\n return;\n }\n catch (Exception e) {\n this.lastExceptionDuringCallPacketHandling = e;\n return;\n }\n finally {\n StdLink.remove();\n this.clearError();\n this.newPacket();\n try {\n this.endPacket();\n this.flush();\n }\n catch (MathLinkException ee) {}\n }\n }",
"public void dispatch();",
"void doHandle()\n\t{\n\t\t// should be at least on arg\n\t\tif (!hasMoreTokens())\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"argumentRequired\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t// poor man's fix for supporting 'all' option\n\t\t\tString faultName = nextToken();\n\t\t\tObject[] names = new Object[] { faultName };\n\n\t\t\t// replace the single name with all of them\n\t\t\tif (faultName.equalsIgnoreCase(\"all\")) //$NON-NLS-1$\n\t\t\t\tnames = m_faultTable.names();\n\n\t\t\t// make sure we know about at least one\n\t\t if (!m_faultTable.exists((String)names[0]))\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unrecognizedFault\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (!hasMoreTokens())\n\t\t\t\t\tlistFault((String)names[0]);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString action = null;\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\twhile(hasMoreTokens())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction = nextToken();\n\t\t\t\t\t\t\tfor(int i=0; i<names.length; i++)\n\t\t\t\t\t\t\t\tm_faultTable.action((String)names[i], action);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IllegalArgumentException iae)\n\t\t\t\t\t{\n\t\t\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\t\t\targs.put(\"action\", action); //$NON-NLS-1$\n\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unrecognizedAction\", args)); //$NON-NLS-1$\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void handleIndivisible() {\n\t\n}",
"final void checkForComodification() {\n\t}",
"void checkValid();",
"private void checkUserInput() {\n }",
"public abstract boolean repOk();",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }",
"protected void handleOther(final boolean invalidCmd) {\r\n\t\t// do nothing\r\n\t}",
"public abstract void\n bypassValidation_();",
"private void checkEventClash() {\n\t\tif (isClashing()) {\n\t\t\treturnMsg += MESSAGE_EVENT_CLASH;\n\t\t}\n\t}",
"@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"@Override\n\tpublic void check() throws Exception {\n\t}",
"private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}",
"String processing();",
"private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }",
"private void checkRep() throws RuntimeException {\r\n \t\r\n \t//check edge label\r\n if (this.label == null) {\r\n throw new RuntimeException(\"Edge label is undefined\");\r\n }\r\n \r\n //check parent node\r\n if (this.pnode.getName().toString().length() == 0) {\r\n throw new RuntimeException(\"Parent node name is invalid\");\r\n }\r\n\r\n if (this.pnode.getName() == null) {\r\n throw new RuntimeException(\"Parent node name is undefined\");\r\n }\r\n \r\n //check child node\r\n if (this.cnode.getName().toString().length() == 0) {\r\n throw new RuntimeException(\"Child node name is invalid\");\r\n }\r\n \r\n if (this.cnode.getName() == null) {\r\n throw new RuntimeException(\"Child node name is undefined\");\r\n }\r\n \r\n }",
"void preHandle() throws InvalidationException;",
"public abstract boolean checkAction(String str);",
"public void dispatch(){\n if (size() == 0){\n return;\n }\n int nb = 0, ns = 0;\n for (Exp exp : this){\n if (exp.isStatement()){\n ns++;\n }\n else {\n nb++;\n }\n }\n if (ns == 0 || (ns == 1 && nb == 0)){\n return;\n }\n doDispatch();\n }",
"public void inquiryError() {\n\t\t\n\t}",
"@Override\r\n\tprotected void processIsNotDefinedMsg(InNotDefinedMsg arg0) {\n\t\t\r\n\t}",
"private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}",
"private void checkLogicOperands(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n checkBinaryOperation(in, d, out);\n }",
"private static String checkCode(String code, String returnClass) {\n if (!returnClass.equals(void.class.getName()))\n code = checkReturn(code);\n code = checkSemiColon(code);\n return code;\n }",
"public void method_4270() {}",
"private void checkExecuteConditions(HttpState state, HttpConnection conn)\n throws HttpException {\n\n if (null == state) {\n throw new NullPointerException(\"HttpState parameter\");\n }\n if (null == conn) {\n throw new NullPointerException(\"HttpConnection parameter\");\n }\n if (hasBeenUsed()) {\n throw new HttpException(\"Already used, but not recycled.\");\n }\n if (!validate()) {\n throw new HttpException(\"Not valid\");\n }\n if (inExecute) {\n throw new IllegalStateException(\"Execute invoked recursively, or exited abnormally.\");\n }\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic boolean process() {\r\n\t\t// TODO: check all permissions here\r\n\t\tif (_actionKey.equalsIgnoreCase(READ)) {\r\n\t\t\treturn read();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(CREATE)) {\r\n\t\t\treturn create();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(DELETE)) {\r\n\t\t\treturn delete();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(UPDATE)) {\r\n\t\t\treturn update();\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"abstract int pregnancy();",
"protected void validate_return(java.lang.String[] param){\r\n \r\n }",
"abstract boolean test(SPObject spo, String comp);",
"protected abstract void handle(Object... params);",
"@Override\n\tpublic String process() {\n\t\treturn null;\n\t}",
"private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }",
"public boolean proceedOnErrors() {\n return false;\n }",
"private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}",
"Object findOperatorNeedCheck();",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"private boolean processCommand(Command command)//Method was given\n {\n if(command.isUnknown())\n {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"talk\"))\n talkToCharacter(currentRoom);\n else if (commandWord.equals(\"grab\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Grab what?\");\n }\n else\n {\n grabItem(secondWord);\n }\n }\n else if (commandWord.equals(\"eat\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Eat what?\");\n }\n else\n {\n eatItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inventory\")) \n player.getInventory();\n else if (commandWord.equals(\"drop\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Drop what?\");\n }\n else\n {\n dropItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inspect\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Inspect what?\");\n }\n else\n {\n inspectItem(secondWord);\n }\n }\n else if (commandWord.equals(\"quit\"))\n {\n if(command.hasSecondWord())\n System.out.println(\"Quit what?\");\n else\n return true; // signal that we want to quit\n }\n else if (commandWord.equals(\"look\"))\n {\n System.out.println(currentRoom.longDescription());\n }\n return false;\n }",
"public void gored() {\n\t\t\n\t}",
"static void call_when_no_carry(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_call_req(passed.substring(4));\n\t}",
"private static boolean validLine(String[] splitLine) {\n\t\tif (splitLine.length < 1) {\n\t\t\tSystem.out.println(\"Not enough arguments on the transaction line, continuing to next line\");\n\t\t\treturn false;\n\t\t}\n\t\tString op = splitLine[0];\n\t\tif (!validOperation(op)) {\n\t\t\tSystem.out.println(op + \" is not a valid operation\");\n\t\t\treturn false;\n\t\t}\n\t\tif (op.equalsIgnoreCase(\"insert\")) {\n\t\t\tif (!validInsert(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid insert operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (op.equalsIgnoreCase(\"delete\") || op.equals(\"search\")) {\n\t\t\tif (!validSearchOrDelete(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid \" + op + \" operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (op.equalsIgnoreCase(\"update\")) {\n\t\t\tif (!validUpdate(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid update operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (op.equalsIgnoreCase(\"print\")) {\n\t\t\tif (!validPrint(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid print operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true; // passed all the tests\n\t}",
"public abstract boolean isParseCorrect();",
"public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }",
"public boolean isCommandValid(Character character, String command)\n\n {\n\n \n\n if(command.length() > 4 && isKill(command))\n { \n HandleKill(character, command);\n return true;\n }\n if(isPossess(command))\n {\n HandlePossess(character);\n return true;\n }\n if(isDontPossess(command))\n {\n HandleDontPossess(character);\n return true;\n }\n if(isJump(command))\n\n {\n\n HandleJump();\n\n return true;\n\n }\n\n if(isSit(command))\n\n {\n\n HandleSit();\n\n return true;\n\n }\n\n if(isSing(command))\n\n {\n\n HandleSing();\n\n return true;\n\n }\n\n if(isDance(command))\n\n {\n\n HandleDance();\n\n return true;\n\n }\n\n if(isDirections(command))\n\n {\n\n HandleDirections(character.currentArea);\n\n return true;\n\n }\n\n if(isExit(command))\n\n {\n\n HandleExit();\n\n return true;\n\n }\n \n if(isHeal(command))\n\n {\n\n HandleHeal(character);\n\n return true;\n\n }\n\n if(isStats(command))\n\n {\n\n HandleStats(character);\n\n return true;\n\n }\n\n \n\n switch(character.currentArea.paths)\n\n {\n\n case Constants.North:\n\n if(isNorth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.South:\n\n if(isSouth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.East:\n\n if(isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.West:\n\n if(isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthAndSouth:\n\n if(isNorth(command) || isSouth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthAndEast:\n\n if(isNorth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthAndWest:\n\n if(isNorth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthAndEast:\n\n if(isSouth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthAndWest:\n\n if(isSouth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.EastAndWest:\n\n if(isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthSouthAndEast:\n\n if(isNorth(command) || isSouth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthSouthAndWest:\n\n if(isNorth(command) || isSouth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthEastAndWest:\n\n if(isNorth(command) || isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthEastAndWest:\n\n if(isSouth(command) || isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthSouthEastAndWest:\n\n if(isNorth(command) || isSouth(command) || isWest(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n default:\n\n break;\n\n \n\n }\n\n \n character.canPossess = false;\n return false;\n\n \n\n }",
"private void validateData() {\n }",
"void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }",
"boolean handle(String line);",
"protected abstract boolean invokable(Resource r);",
"private boolean validHelper(String path) {\n//\t System.out.println(\"Now in the validHelper \\nthe xpath now is \"+path);\n\t Pattern p_node_name;\n\t Matcher matcher;\n\t p_node_name = Pattern.compile(\"^\\\\s*([A-Z]|[a-z]|\\\\_)+([A-Z]|[a-z]|[0-9]|\\\\_|\\\\.|\\\\-)*\\\\s*$\");\n\tint slash = path.indexOf(\"/\");\n\tint bracket = path.indexOf(\"[\");\n\tif(slash==-1 && bracket == -1){\n//\t\tSystem.out.println(\"xpath has no slash and brackets\");\n\t\tif(path.toLowerCase().startsWith(\"xml\")) {\n//\t\t\tSystem.out.println(\"starts with xml illegal&&&&&&&&&&&&&&&&&\");\n\t\t\treturn false;\n\t\t}\n\t\tmatcher = p_node_name.matcher(path);\n\t\treturn matcher.find();\n//\t\tSystem.out.println(matcher.find());\n//\t\treturn matcher.find();\n\t}\n\telse if(bracket == -1){\n\t\tString childrenPath = path.substring(slash+1);\n\t\tpath = path.substring(0,slash);\n\t\tif(path.toLowerCase().startsWith(\"xml\")) return false;\n\t\tmatcher = p_node_name.matcher(path);\n\t\tif(matcher.find()){\n\t\t\treturn validHelper(childrenPath);\n\t\t}\n\t\telse return false;\n\t}\n\telse if(slash == -1){\n\t\tString tests = path.substring(bracket);\n\t\tpath = path.substring(0,bracket);\n\t\tif(path.toLowerCase().startsWith(\"xml\")) return false;\n\t\tmatcher = p_node_name.matcher(path);\n\t\tif(matcher.find()){\n\t\t\treturn split(tests);\n\t\t}\n\t}\n\telse{\n//\t\tSystem.out.println(\"the xpath has both slash and bracket\");\n\t\tString next;\n\t\tint j;\n\t\tfor(j = 0; j <path.length(); j++){\n\t\t\t//first meet a '/'\n\t\t\tif(path.charAt(j)=='/'){\n\t\t\t\tnext = path.substring(j+1);\n\t\t\t\tpath = path.substring(0,j);\n\t\t\t\tif(path.toLowerCase().startsWith(\"xml\")) return false;\n\t\t\t\tmatcher = p_node_name.matcher(path);\n\t\t\t\tif(matcher.find()){\n\t\t\t\t\treturn validHelper(next);\n\t\t\t\t}\n\t\t\t\telse return false;\n\t\t\t}\n\t\t\t//first meet a [\n\t\t\telse if(path.charAt(j)=='['){\n\t\t\t\tnext = path.substring(j);\n\t\t\t\tpath = path.substring(0,j);\n\t\t\t\tif(path.toLowerCase().startsWith(\"xml\")) return false;\n\t\t\t\tmatcher = p_node_name.matcher(path);\n\t\t\t\tif(matcher.find()){\n\t\t\t\t\treturn split(next);\n\t\t\t\t}\n\t\t\t\telse return false;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\treturn false;\n}",
"private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }",
"public void processing();",
"@Override\n\tpublic void catchPiece() {\n\t\t\n\t}",
"@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}",
"private void handleSlash() {\n // Single line comment\n if (secondCharIs('/')) {\n // Rune has C-style comments, so goes until end of line\n while ((peek() != '\\n') && !reachedEnd()) {\n advance(); // Keep advancing until newline or EOF, thus ignoring the comment lexeme\n }\n } else if (secondCharIs('*')) {\n // Block comments go until * / is reached\n while (!reachedEnd()) {\n if (peek() == '*' && peekFurther(1) == '/') {\n advance();\n advance();\n return;\n }\n advance();\n }\n } else {\n addToken(SLASH);\n }\n }",
"private void \n\tprocessPieceChecks() \n\t{\n\t\tif ( piece_check_result_list.size() > 0 ){\n\n\t\t\tfinal List pieces;\n\n\t\t\t// process complete piece results\n\n\t\t\ttry{\n\t\t\t\tpiece_check_result_list_mon.enter();\n\n\t\t\t\tpieces = new ArrayList( piece_check_result_list );\n\n\t\t\t\tpiece_check_result_list.clear();\n\n\t\t\t}finally{\n\n\t\t\t\tpiece_check_result_list_mon.exit();\n\t\t\t}\n\n\t\t\tfinal Iterator it = pieces.iterator();\n\n\t\t\twhile (it.hasNext()) {\n\n\t\t\t\tfinal Object[]\tdata = (Object[])it.next();\n\n\t\t\t\tprocessPieceCheckResult((DiskManagerCheckRequest)data[0],((Integer)data[1]).intValue());\n\n\t\t\t}\n\t\t}\n\t}",
"private void checkPaths(){\r\n\t\tif(noBeepersPresent()){\r\n\t\t\tif(leftIsClear()){\r\n\t\t\t\tif(frontIsBlocked()&&rightIsBlocked()&&cornerColorIs(RED)){\r\n\t\t\t\t\tturnLeft(); \r\n\t\t\t\t\tmakeMove();\r\n\t\t\t\t\tpaintCorner(RED);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tturnLeft(); \r\n\t\t\t\t\tcheckColors();\r\n\t\t\t\t}\r\n\t\t\t\tfollowPath();\r\n\t\t\t}\r\n\t\t\tif(frontIsClear()){\r\n\t\t\t\tcheckColors();\r\n\t\t\t\tfollowPath();\r\n\t\t\t}\r\n\t\t\tif(rightIsClear()){\r\n\t\t\t\tif(frontIsBlocked()&&leftIsBlocked()&&cornerColorIs(RED)){\r\n\t\t\t\t\tturnRight();\r\n\t\t\t\t\tmakeMove();\r\n\t\t\t\t\tpaintCorner(RED);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tturnRight();\r\n\t\t\t\t\tcheckColors();\r\n\t\t\t\t}\r\n\t\t\t\tfollowPath();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected abstract void executeActionsIfError();",
"private boolean SpecialWordProcess() {\n boolean processed = false;\n\n // the process of a special word.\n switch(this.mRawText[this.mTextIndex]) {\n case 'd' : // delete\n this.mDeleteF = processed = true;\n break;\n case 'e' : // end to draw text and file to next.\n this.mReadingF = false;\n // the flag that is waiting reading to next text.\n this.mWaitingF = true;\n processed = true;\n break;\n }\n return processed;\n }",
"static void return_not_carry(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_return_requirements();\n\t}",
"@Override\n\t\t\tpublic void handle(Request req, Response res) throws Exception {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String username = req.queryParams(\"user\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t\n\t\t\t\t//--- framework access ---//\n\t\t\t\tif (!Results.hasFrameworkAccess(op, path)) halt(404);\n\t\t\t\t//--- path exists? ---//\n\t\t\t\tif (!Directories.isExist(path)) halt(404);\n\t\t\t\t//--- section and path access ---//\n\t\t\t\tif (!AccessManager.hasAccess(username, path)) halt(401);\n\n\t\t\t}",
"void check () {\r\n OzcError.setLineNumber (body.line_no);\r\n\r\n check_constructor:\r\n\r\n if (method.isNew () && !method.wasCalledSuper ()) {\r\n ClassType c = method.getDefinedClass ();\r\n ClassImplementation ci;\r\n if (c.isClassInterface ()) \r\n\tci = ((ClassInterface) c).getImplementation ();\r\n else \r\n\tci = (ClassImplementation) c;\r\n do {\r\n\tci = ci.getSuperClass ();\r\n\tif (ci == null || School.isSystem (ci)) break check_constructor;\r\n } while (!ci.hasConstructor ());\r\n\r\n OzcError.constructorMustCallSuper (method);\r\n }\r\n\r\n /* need return statement as last statement */\r\n try {\r\n body.check (this);\r\n } catch (Unreachable e) {\r\n Statement st = e.getStatement ();\r\n if (st != null) \r\n\tOzcError.unreachableSt (st);\r\n else if (method.isNew () && need_return)\r\n\tOzcError.unreachableLastSt (body.line_no);\r\n }\r\n }",
"private static boolean validOperation(String op) {\n\t\tfor (String goodOp : validOps) {\n\t\t\tif (goodOp.equalsIgnoreCase(op)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"Operations operations();",
"@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}",
"private boolean isValidInput() {\n\t\treturn true;\n\t}"
] |
[
"0.5797444",
"0.5797444",
"0.55994236",
"0.5564377",
"0.54880315",
"0.5478345",
"0.5424519",
"0.54003054",
"0.5400129",
"0.5380487",
"0.5340331",
"0.53398913",
"0.53289926",
"0.53272694",
"0.5300798",
"0.52995706",
"0.52917",
"0.5271581",
"0.5271581",
"0.526965",
"0.5267007",
"0.52583116",
"0.5250671",
"0.52495277",
"0.52463925",
"0.5245555",
"0.5239183",
"0.5220077",
"0.5212483",
"0.52123404",
"0.5204548",
"0.5177784",
"0.51422995",
"0.5128285",
"0.5108804",
"0.51048285",
"0.509343",
"0.5090677",
"0.5079103",
"0.5076545",
"0.5075255",
"0.5066943",
"0.506007",
"0.50349617",
"0.5028849",
"0.5026496",
"0.50183225",
"0.5017168",
"0.49949682",
"0.49873424",
"0.4986786",
"0.49854386",
"0.49827576",
"0.49818772",
"0.4978317",
"0.49766615",
"0.49762908",
"0.4970589",
"0.49665827",
"0.49637535",
"0.49625352",
"0.49604076",
"0.4959485",
"0.49580228",
"0.4953144",
"0.4952184",
"0.494241",
"0.49358934",
"0.49354273",
"0.49352795",
"0.4915164",
"0.4913264",
"0.49113986",
"0.4909725",
"0.49082687",
"0.4893226",
"0.4892934",
"0.48927963",
"0.4892446",
"0.4890754",
"0.4890556",
"0.48872054",
"0.48786741",
"0.48773637",
"0.48767978",
"0.4870901",
"0.487053",
"0.48672822",
"0.4865947",
"0.4860682",
"0.48596016",
"0.48588488",
"0.4857896",
"0.4857578",
"0.4855199",
"0.48518",
"0.4849006",
"0.48474944",
"0.48464513",
"0.48440754",
"0.48433688"
] |
0.0
|
-1
|
Create a new child token for each item in list.
|
public void execute(final ExecutionContext executionContext)
throws Exception
{
//
// process action handler arguments
//
if (foreach == null)
{
throw new WorkflowException("forEach has not been provided");
}
// Collection<?> forEachColl = buildForEachCollection(executionContext);
if (var == null || var.length() == 0)
{
throw new WorkflowException("forEach variable name has not been provided");
}
//
// create forked paths
//
Node node = executionContext.getNode();
List<ForkedTransition> forkTransitions = new ArrayList<ForkedTransition>();
Collection<?> forEachColl = buildForEachCollection(executionContext);
// Create a new token and execution context for each node transition and item in list
List<Transition> nodeTransitions = node.getLeavingTransitions();
for (Transition noderansition : nodeTransitions)
{
int iVar = 0;
for (Object item: forEachColl)
{
// create child token to represent new path
Token loopToken = buildChildToken(executionContext, noderansition, iVar);
iVar++;
// assign variable within path
final ExecutionContext newExecutionContext = new ExecutionContext(loopToken);
newExecutionContext.getContextInstance().createVariable(var, item, loopToken);
// record path & transition
ForkedTransition forkTransition = new ForkedTransition();
forkTransition.executionContext = newExecutionContext;
forkTransition.transition = noderansition;
forkTransitions.add(forkTransition);
}
}
//
// let each new token leave the node.
//
for (ForkedTransition forkTransition : forkTransitions)
{
node.leave(forkTransition.executionContext, forkTransition.transition);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void createItem(StreamTokenizer st) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\tboolean inComment = false;\n\t\tStringBuffer treebuf = new StringBuffer();\n\t\twhile (true) {\n\t\t\tswitch (st.nextToken()) {\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add token \"+st.sval);\n\t\t\t\ttreebuf.append(st.sval);\n\t\t\t\tbreak;\n\t\t\tcase '\"':\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\t// check for length 0 and triple quote\n\t\t\t\tif (st.sval.length() == 0) {\n\t\t\t\t\tst.ordinaryChar('\"');\n\t\t\t\t\tif (st.nextToken() == '\"') {\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found triple quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tst.pushBack();\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found empty double quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tst.quoteChar('\"');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add quoted token \"+st.sval);\n\t\t\t\t\ttreebuf.append(\"\\\"\"+st.sval+\"\\\"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '@':\n\t\t\tcase '#':\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: pushing symbol back\");\n\t\t\t\tst.pushBack();\n\t\t\tcase StreamTokenizer.TT_EOL:\n\t\t\tcase StreamTokenizer.TT_EOF:\n\n\t\t\t\t// in a newline. Reset any inComment aspect\n\t\t\t\tinComment = false;\n\t\t\t\tif (treebuf.length() > 0) {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to process item \"+treebuf.toString());\n\t\t\t\t\tTreeItem t = new TreeItem(treebuf);\n\t\t\t\t\tchildren = t.children;\n\t\t\t\t\tnumChildren = t.numChildren;\n\t\t\t\t\tnumNodes = t.numNodes;\n\t\t\t\t\ttruncated = t.truncated;\n\t\t\t\t\tlabel = t.label;\n\t\t\t\t\tweight = t.weight;\n\t\t\t\t\tisEmptyString = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"Skipping empty line\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// can't reach here, so no break\n\t\t\tcase COMMENT:\n\t\t\t\t// in a comment. Set inComment flag\n\t\t\t\tinComment = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new DataFormatException(\" Expected word, but read \"+st.ttype+\" which is \"+(char)st.ttype);\n\n\t\t\t}\n\t\t}\n\t}",
"private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }",
"private Individual<T> createChild(List<Individual<T>> tournament) {\n Individual<T> child = mate(tournament.get(0), tournament.get(1));\n child = mutate(child);\n child = child.evaluate();\n return child;\n }",
"private ArrayList<String> makeChildren(Node current) {\n\n ArrayList<String> current_children = new ArrayList<>();\n\n if (current != null && current.getDigit().last_changed != 0) {\n //-1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseFirstDigit();\n current_children.add(child_node);\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseFirstDigit();\n current_children.add(child_node);\n }\n }\n\n if (current != null && current.getDigit().last_changed != 1) {\n //-1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseSecondDigit();\n current_children.add(child_node);\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseSecondDigit();\n current_children.add(child_node);\n }\n }\n\n if (current != null && current.getDigit().last_changed != 2) {\n //-1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n String child_node = current.getDigit().decreaseThirdDigit();\n current_children.add(child_node);\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n String child_node = current.getDigit().increaseThirdDigit();\n current_children.add(child_node);\n }\n }\n return current_children;\n }",
"public void buildTokenIdentifierArrayList() {\n\t\t/**\n\t\t * Maintain the order while adding. Give it in a greedy way. The most specific to most common. Eg: DECIMAL Should \n\t\t * be added first then INTEGER else INTEGER will be matched first and '.' will be matched as a TOKEN and then\n\t\t * the succeeding number will be parsed as an INTEGER\n\t\t */\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.DECIMAL), TokenType.DECIMAL_LITERAL));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.IDENTIFIER), TokenType.IDENTIFIER));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.INTEGER), TokenType.INTEGER_LITERAL));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.STRING), TokenType.STRING_LITERAL));\n\n\t\tfor (String t: new String[] {\"=\", \"\\\\(\",\"\\\\)\", \"\\\\.\",\"\\\\,\"}) {\n\t\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(\"^(\" + t + \")\"), TokenType.TOKEN));\t\n\t\t}\n\t}",
"public static Token tokenize(List<String> file) {\n\t\tToken root = new Token(\"file\", null, null, null);\n\t\tToken block = root;\n\t\t\n\t\tfor (String string : file) {\n\t\t\tif (string.equals(\"}\"))\n\t\t\t\tblock = block.parent;\n\t\t\telse if (string.contains(\"{\")) {\n\t\t\t\tblock = tokenize(string, block);\n\t\t\t} else {\n\t\t\t\ttokenize(string, block);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn root;\n\t}",
"private static void walkTree(Collection<String> children, Collection<String> list, TypeTree tree) {\n\t if (children != null) {\n\t\tlist.addAll(children);\n\t String[] kids = children.toArray(new String[children.size()]);\n\t\tfor (int i = 0; i< kids.length; i++) {\n\t\t walkTree(tree.classSet(kids[i]), list, tree);\n\t\t}\n\t }\n\t}",
"public PersistentChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentToken = null;\n this.childProof = \"I am a child\";\n this.listOfPersistentGrandChildTokens = null;\n }",
"@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }",
"public void createChild (GenericTreeNode<String> daddy)\r\n\t{\r\n\t\t\tList < GenericTreeNode<String> > child= daddy.getChildren();\r\n\t\t\r\n\t\tif (daddy.getData().equalsIgnoreCase(\"next.CommonProfile.Dashboard_SI\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Admin.Admin_Principal\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Client.Client_Principal\"));\t\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Member.Member_Principal\"));\t\r\n\t\t}\r\n\t\telse if (daddy.getData().equalsIgnoreCase(\"next.CommonProfile.Dashboard_SU\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\t//child.add(new GenericTreeNode<String>(\"next.CommonProfile.DashboardPrincipal\"));\t\r\n\t\t}\r\n\t\telse if (daddy.getData().equalsIgnoreCase(\"next.Admin.Admin_Principal\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.CommonProfile.PersonalInfo\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.CommonProfile.Products\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.Admin.Business_Rules\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.view.support.CustomList\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t}\r\n\t\telse if (daddy.getData().equalsIgnoreCase(\"next.view.support.CustomList\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.MapsFunctionality\"));\r\n\t\t\t\r\n\t\t}else if (daddy.getData().equalsIgnoreCase(\"next.SupportFunctionality.MapsFunctionality\")){\r\n\t\t\tchild.add(new GenericTreeNode<String>(\"next.SupportFunctionality.VoiceRecogFunctionality\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tdaddy.setChildren(child);\r\n\t\t for (GenericTreeNode<String> node : daddy.getChildren()) {\r\n\t\t\t createChild (node);\r\n\t }\r\n\t}",
"private Node constructInternal(List<Node> children){\r\n\r\n // Base case: root found\r\n if(children.size() == 1){\r\n return children.get(0);\r\n }\r\n\r\n // Generate parents\r\n boolean odd = children.size() % 2 != 0;\r\n for(int i = 1; i < children.size(); i += 2){\r\n Node left = children.get(i-1);\r\n Node right = children.get(i);\r\n Node parent = new Node(Utility.SHA512(left.hash + right.hash), left, right);\r\n children.add(parent);\r\n }\r\n\r\n // If the number of nodes is odd, \"inherit\" the remaining child node (no hash needed)\r\n if(odd){\r\n children.add(children.get(children.size() - 1));\r\n }\r\n return constructInternal(children);\r\n }",
"@Override\n public Object visitInstructionList(LitmusX86Parser.InstructionListContext ctx) {\n return visitChildren(ctx);\n }",
"abstract void setChildren(List<T> spans);",
"private Tree<Token> convertToTreeOfTokens(Tree<String> tree) {\n Tree<Token> root = new Tree<Token>(makeOneToken(tree.getValue()));\n\n Iterator<Tree<String>> iter = tree.children();\n \n while (iter.hasNext()) {\n Tree<String> child = iter.next();\n root.addChildren(convertToTreeOfTokens(child));\n }\n return root;\n }",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"private void seed(List<T> items){\n for(T item: items) {\n Node<T> newNode = new Node<T>(item);\n this.count++;\n if(this.root == null){\n this.root = newNode;\n } else {\n Node temp = this.root;\n newNode.next = temp;\n this.root = newNode;\n }\n }\n\n }",
"@SuppressWarnings(\"unchecked\")\n private void Splice(List<T> list, List<T> result) {\n int size = list.size();\n\n int i = 0;\n while (i < size - 1)\n if (EvRandomizer.INSTANCE.nextDouble() < splice_probability) {\n T child = list.get(i);\n child.addAlleles(list.get(i + 1).getGenes(), list.get(i + 1)\n .getAlleles());\n\n result.add(child);\n i += 2;\n } else {\n result.add(list.get(i));\n i++;\n }\n if (i < size)\n result.add(list.get(i));\n }",
"public static ExpressionList newInstance(Token token, ExpressionList o, Terminal n0, Expression node) {\n List<Expression> expressions = o.expressions;\n expressions.add(node);\n return new ExpressionList(token, expressions);\n }",
"public PersistentGrandChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentChildToken = null;\n this.childProof = \"I am a child\";\n }",
"public TreeItem(StreamTokenizer st) throws DataFormatException, IOException {\n\t\tcreateItem(st);\n\t}",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }",
"public static void tagBegin(ArrayList<tok> pHolder, ArrayList<tok> xmlList){\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\r\n\t\t\t// <-------------------------------------------------------\r\n\t\t\t// xmlList.add(new tok(pHolder.get(index).getTerm(),\"\"));\r\n\t\t\t\r\n\t\t\ttagnameArray[tagIndex] = pHolder.get(index).getTerm();\r\n\t\t\t\r\n\t\t\t// <-------------------------------------------------------\r\n\t\t\tindex++;\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_COMMA){\r\n\t\t\t\tindex++;\r\n\t\t\t\tattributes(pHolder, xmlList);\r\n\r\n\t\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_GTHAN){\r\n\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// decrement tagnameArray\r\n\t\t\t\t\t\ttagIndex--;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{noError = false;}\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}",
"OrderedListContent createOrderedListContent();",
"void createLabelToken( String name, int id );",
"public ArrayList<String> recursiveTokenize(ArrayList<String> tempList, ArrayList<String> newList, int done) { //cant figure out what's wrong\n\t\tif (done == 1) {\n\t\t\treturn tempList;\n\t\t}\n\t\t//newList = tempList;\n\t\tint pass = 1;\n\t\t\n\t\tfor (int i = 0; i < tempList.size(); i++) {\n\t\t\tString token = tempList.get(i);\n\t\t\t\n\t\t\t//CASE: token has `Class.methods`\n\t\t\tif (token.matches(\".+\\\\..+\") && !token.contains(\".txt\")) {\n\t\t\t\tpass = 0;\n\t\t\t\t\n\t\t\t\t//add the split tokens to the end of the new list\n\t\t\t\tString[] tempSplit = token.split(\"(?<=\\\\.)|(?=\\\\.)\");\n\t\t\t\tfor (String temp : tempSplit) { \n\t\t\t\t\tnewList.add(temp);\n\t\t\t\t} \n\t\t\t} else if (token.matches(\".+;.*\")) { //CASE: \";\"\n\t\t\t\tpass = 0;\n\t\t\t\tString[] tempSplit = token.split(\"(?<=;)|(?=;)\");\n\t\t\t\tfor (String temp : tempSplit) { \n\t\t\t\t\tnewList.add(temp);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (token.matches(\".*\\\\(.+\") || token.matches(\".+\\\\(.*\")) { //CASE: ( or ), and { or } later\n\t\t\t\tpass = 0;\n\t\t\t\tString[] tempSplit = token.split(\"(?<=\\\\()|(?=\\\\()\");\n\t\t\t\tfor (String temp : tempSplit) { \n\t\t\t\t\tnewList.add(temp);\n\t\t\t\t}\n\t\t\t} else if (token.matches(\".*\\\\).+\") || token.matches(\".+\\\\).*\")) { //CASE: ( or ), and { or } later\n\t\t\t\tpass = 0;\n\t\t\t\tString[] tempSplit = token.split(\"(?<=\\\\))|(?=\\\\))\");\n\t\t\t\tfor (String temp : tempSplit) { \n\t\t\t\t\tnewList.add(temp);\n\t\t\t\t}\n\t\t\t} else { //CASE: token doesn't need to be split up further.\n\t\t\t\ttoken.trim();\n\t\t\t\ttoken.replaceAll(\"\\\\s\", \"\");\n\t\t\t\tif (!token.isEmpty()) {\n\t\t\t\t\tnewList.add(token);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if pass is still 1, then it will end recursion and return the final tokenized version.\n\t\tArrayList<String> emptyList = new ArrayList<String>();\n\t\treturn recursiveTokenize(newList, emptyList, pass);\n\t}",
"public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new List(), 2);\n }",
"public void init$Children() {\n children = new ASTNode[2];\n setChild(new List(), 1);\n }",
"private static TreeNode parseTreeNode(Scanner in)\n {\n int numberOfChildren = in.nextInt();\n int numberOfMetadata = in.nextInt();\n TreeNode newNode = new TreeNode(numberOfChildren, numberOfMetadata);\n\n // Recursively resolve children\n for (int i = 0; i < numberOfChildren; i++)\n {\n newNode.mChildren[i] = parseTreeNode(in);\n }\n\n // Now resolve the metadata by consuming tokens\n for (int i = 0; i < numberOfMetadata; i++)\n {\n newNode.mMetadata[i] = in.nextInt();\n }\n\n return newNode;\n }",
"public TreePart(GenericIterator list, Action action) {\n\t\tthis.action = action;\n\t\tthis.list = list;\n\t}",
"public TreeItem(int n, Symbol l, TreeItem[] x) {\n\n\t\ttruncated = false;\n\t\tnumChildren = n;\n\t\tlabel = l;\n\t\tchildren = new TreeItem[n];\n\t\tfor (int i = 0; i < numChildren; i++) {\n\t\t\tchildren[i] = x[i];\n\t\t}\n\t\tdecideNorm = false;\n\t\tisNorm = isNormal();\n\t\tdecideNorm = true;\n\t\tisEmptyString = false;\n\t\tsetNumNodes();\n\t}",
"String createListItem(String list, int accountId);",
"ListItem createListItem();",
"private void createFieldList(List<FieldDelimiterHolder> list) {\n for (FieldDelimiterHolder holder : list) {\n Field field = FieldFactory.create(holder.name, holder.previous, holder.next);\n fields.add(field);\n if (field.saveable()) {\n saveableFields.add(field);\n }\n }\n\n // the saveableFields List is fields List minus the Skip fields\n // sorted so AppendFields are last\n Collections.sort(saveableFields, new FieldComparator());\n }",
"private List<Node> constructBase(List<String> signatures){\r\n boolean odd = signatures.size() % 2 != 0;\r\n List<Node> parents = odd ? new ArrayList<>(signatures.size() / 2 + 1): new ArrayList<>(signatures.size() / 2);\r\n\r\n // Create leaves + construct immediate parents\r\n for(int i = 1; i < signatures.size(); i += 2){\r\n Node left = new Node(signatures.get(i-1));\r\n Node right = new Node(signatures.get(i));\r\n Node parent = new Node(Utility.SHA512(signatures.get(i-1) + signatures.get(i)), left, right);\r\n parents.add(parent);\r\n }\r\n\r\n // If the number of nodes is odd, \"inherit\" the remaining child node\r\n if(odd){\r\n Node n = new Node(signatures.get(signatures.size() - 1));\r\n parents.add(n);\r\n }\r\n\r\n return parents;\r\n }",
"private void structureListElement() {\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(Data.LI_OPENING_REGEX_MATCHER, \"- \");\n\n // replace closing tag </li> with </br> to separate with other list item\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(Data.LI_CLOSING_REGEX_MATCHER, \"<br>\");\n }",
"private ImmutableList<Node> constructChildNodes(@Nullable List<Step> childSteps) {\n if (childSteps != null && !childSteps.isEmpty()) {\n List<Node> children = new ArrayList<>();\n for (Step childStep : childSteps) {\n children.add(new Node(childStep));\n }\n\n ImmutableList.Builder<Node> builder = new ImmutableList.Builder<>();\n builder.addAll(children);\n return builder.build();\n }\n\n return null;\n }",
"public static List<Artist> makeChild1() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }",
"public SimpleScopeListElement(int tree) {\n\t\tthis.tree = tree;\n\t}",
"Node(E value) {\n this.value = value;\n this.childen = new ArrayList<>();\n }",
"private void split(TFNode node) {\r\n // Move item at index 2 up to the parent\r\n TFNode parent = node.getParent();\r\n int childIndex;\r\n\r\n // Make new right node\r\n TFNode newNode = new TFNode();\r\n Item rightItem = node.getItem(3);\r\n newNode.addItem(0, rightItem);\r\n\r\n // If node is root, create new parent (new root)\r\n if (node.getParent() == null) {\r\n parent = new TFNode();\r\n setRoot(parent);\r\n parent.setChild(0, node);\r\n childIndex = 0;\r\n node.setParent(parent);\r\n } else {\r\n childIndex = WCIT(node);\r\n }\r\n\r\n // Move up item at index 2\r\n Item moveUp = node.getItem(2);\r\n parent.insertItem(childIndex, moveUp);\r\n\r\n // Hookup new right node's pointers\r\n newNode.setParent(parent);\r\n parent.setChild(childIndex + 1, newNode);\r\n\r\n // Save new right node's children\r\n TFNode child3 = node.getChild(3);\r\n TFNode child4 = node.getChild(4);\r\n\r\n // Hookup new right node's children pointers\r\n if (child3 != null) {\r\n child3.setParent(newNode);\r\n }\r\n if (child4 != null) {\r\n child4.setParent(newNode);\r\n }\r\n newNode.setChild(0, child3);\r\n newNode.setChild(1, child4);\r\n node.setChild(3, null);\r\n node.setChild(4, null);\r\n\r\n // Remove items from original node\r\n node.deleteItem(3);\r\n node.deleteItem(2);\r\n\r\n // Fix any more overflow\r\n overflow(parent);\r\n }",
"private Command createListCommand(){\n\t\tList<Command> commands = new ArrayList<>();\n\t\twhile(!codeReader.hasNext(END_LIST)) {\n\t\t\ttry {\n\t\t\t\tString s = codeReader.next();\n\t\t\t\tcommands.add(parseCommand(s));\n\t\t\t}\n\t\t\tcatch(NoSuchElementException n) {\n\t\t\t\tthrow new SLogoException(\"Unclosed Bracket.\");\n\t\t\t}\n\t\t}\n\t\tcodeReader.next();\n\t\treturn new ListCommand(commands);\n\t}",
"public void accessWriteChildElements(T obj, List<T> childList);",
"private void insertToken(Element parent, String span, String[] labelParts) {\n\t\tif (labelParts.length > 0) {\n\t\t\tString labelPart = labelParts[0];\n\t\t\tElement child;\n\n\t\t\tif ((child = lastChild( parent )) == null || labelPart.startsWith( \"^\" ) || !labelPart.equals( child.getName() )) {\n\t\t\t\tlabelPart = labelPart.replaceFirst( \"^\\\\^\", \"\" );\n\t\t\t\tchild = new Element( labelPart );\n\t\t\t\tparent.addContent( child );\n\t\t\t}\n\t\t\tList tails = Arrays.asList( labelParts ).subList( 1, labelParts.length );\n\t\t\tString[] labelTail = (String[])tails.toArray( new String[tails.size()] );\n\t\t\tinsertToken( child, span, labelTail );\n\t\t}\n\t\telse {\n\t\t\tparent.addContent( span );\n\t\t}\n\t}",
"private QuoteItem createQuoteItemsFromCommerceItem(\n\t\t\tfinal SiebelCommerceItem sblCommerceItem) {\n\t\tQuoteItem quoteItem = new QuoteItem();\n\t\tString id = (!StringUtils.isBlank(sblCommerceItem.getQuoteItemId()))?sblCommerceItem.getQuoteItemId():sblCommerceItem.getId();\n\t\tquoteItem.setId(id);\n\t\tfor (SiebelCommerceItem childCommerceItem : (List<SiebelCommerceItem>) sblCommerceItem\n\t\t\t\t.getCommerceItems()) {\n\t\t\tQuoteItem childQuote = createQuoteItemsFromCommerceItem(childCommerceItem);\n\t\t\tquoteItem.getQuoteItem().add(childQuote);\n\t\t}\n\t\treturn quoteItem;\n\t}",
"void createRelationshipTypeToken( int id, String name );",
"public static List<Artist> makeChild3() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }",
"public List(String name) {\n super(name);\n children = new ArrayList<>();\n }",
"LI createLI();",
"@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }",
"private void get_Tree(int prevTab, TreeItem<String> root){\n while (it < line.size()){\n int tabs = count_tabs(line.get(it));\n if (tabs > prevTab){ // Si es hijo\n String [] token = line.get(it).split(\" \");\n root.getChildren().add(new TreeItem<>(token[token.length-1])); // El ultimo del split será el token\n it++;\n get_Tree(tabs, root.getChildren().get(root.getChildren().size()-1)); // El ultimo agregado\n }else{\n break;\n }\n }\n }",
"UnorderedListContent createUnorderedListContent();",
"public static void modifier(ArrayList<tok> pHolder, ArrayList<tok> xmlList){\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_DISTINCT){\r\n\t\t\tindex++;\r\n\t\t\tattributes(pHolder, xmlList);\r\n\t\t}\r\n\t\telse if(pHolder.get(index).getType() == Token_Type.TOK_ID\r\n\t\t\t\t|| pHolder.get(index).getType() == Token_Type.TOK_PLUS\r\n\t\t\t\t|| pHolder.get(index).getType() == Token_Type.TOK_LTHAN){\r\n\t\t\tattributes(pHolder, xmlList);\t\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}",
"void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}",
"private LeafNode(Token newToken) {\r\n\t\tthis.token = newToken;\r\n\t}",
"public static List<Artist> makeChild2() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }",
"private void addTagName(TagHolder holder, List<CommonToken> tokens, int tokenIndex) \n\t{\n\t\ttokenIndex++;\n\t\tfor (;tokenIndex<tokens.size(); tokenIndex++)\n\t\t{\n\t\t\tCommonToken tok=tokens.get(tokenIndex);\n\t\t\tif (tok.getType()==MXMLLexer.GENERIC_ID)\n\t\t\t{\n\t\t\t\tholder.setTagName(tok.getText());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (tok.getText()!=null && tok.getText().trim().length()>0)\n\t\t\t{\n\t\t\t\t//kick out if non whitespace hit; ideally, we shouldn't ever hit here\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic INode build(List<INode> input) {\n\t\treturn null;\n\t}",
"public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}",
"private void doLists () {\n char lastListChar = ' ';\n char thisListChar = ' ';\n\n // Determine how deeply lists are nested\n int listDepth = context.lastListChars.length();\n if (listChars.length() > listDepth) {\n listDepth = listChars.length();\n }\n\n // Determine how deeply we are maintaining existing lists with new line\n int listCharsMatchingDepth = 0;\n for (int i = 0; i < listDepth; i++) {\n thisListChar = charAt (listChars.toString(), i);\n lastListChar = charAt (context.lastListChars, i);\n if (thisListChar == lastListChar) {\n listCharsMatchingDepth = i + 1;\n }\n }\n\n // Where list characters don't match, end any lists in progress\n for (int i = listDepth - 1; i >= listCharsMatchingDepth; i--) {\n lastListChar = charAt (context.lastListChars, i);\n if (lastListChar == '*') {\n lineInsert (\"</li>\");\n lineInsert (\"</ul>\");\n }\n else\n if (lastListChar == '#') {\n lineInsert (\"</li>\");\n lineInsert (\"</ol>\");\n }\n else\n if (lastListChar == ';') {\n lineInsert (closeDefinitionTag(lastDefChar));\n lastDefChar = ' ';\n lineInsert (\"</dl>\");\n }\n }\n\n // Where list characters don't match, start any new lists needed\n for (int i = listCharsMatchingDepth; i < listDepth; i++) {\n thisListChar = charAt (listChars.toString(), i);\n StringBuffer listStart = new StringBuffer();\n if (thisListChar == '*') {\n listStart.append (\"ul\");\n }\n else\n if (thisListChar == ';') {\n listStart.append (\"dl\");\n } else {\n listStart.append (\"ol\");\n }\n if (klass.length() > 0) {\n listStart.append (\" class=\\\"\" + klass + \"\\\"\");\n }\n if (thisListChar == '*') {\n lineInsert (\"<\" + listStart.toString() + \">\");\n lineInsert (\"<li>\");\n }\n else\n if (thisListChar == '#') {\n lineInsert (\"<\" + listStart.toString() + \">\");\n lineInsert (\"<li>\");\n }\n else\n if (thisListChar == ';') {\n lineInsert (\"<\" + listStart.toString() + \">\");\n lineInsert (openDefinitionTag(thisListChar));\n }\n }\n\n // If List characters all match, then continue list in process\n if (listCharsMatchingDepth == listDepth && listDepth > 0) {\n if (thisListChar == ';') {\n lineInsert (closeDefinitionTag(lastDefChar));\n lastDefChar = ' ';\n lineInsert (\"<dt>\");\n } else {\n lineInsert (\"</li>\");\n lineInsert (\"<li>\");\n }\n }\n\n // If some lists ended, but some continuing, start new list item\n if (listCharsMatchingDepth > 0\n && listCharsMatchingDepth < listDepth) {\n thisListChar = charAt (listChars.toString(), listCharsMatchingDepth - 1);\n if (thisListChar == '*') {\n lineInsert (\"<li>\");\n }\n else\n if (thisListChar == '#') {\n lineInsert (\"<li>\");\n } else\n if (thisListChar == ';') {\n lineInsert (openDefinitionTag(thisListChar));\n }\n }\n\n // Save latest list characters\n context.lastListChars = listChars.toString();\n }",
"List<H> generateSections(List<T> listItems);",
"private void insertCreator(Item item) {\n head = new Node(item, null, null); // creates node\n head.next = head;\n head.before = head; // sets itself as both next and before in the list\n }",
"protected void sequence_IdentifierList(ISerializationContext context, IdentifierList semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"public AttackTreeNode buildNextChild(AttackTreeNode activeChild) {\n \n AttackTreeNode nextNode = null;\n \n // AttackParameter has no children...\n \n return nextNode;\n }",
"public BinaryTreeSpliterator(Node n,List<Node> list) {\n\t\tthis.root = n;\n\t\tthis.list = list;\n\t}",
"public static List<Artist> makeChild4() {\n Artist q = new Artist(\"\", true);\n\n return Arrays.asList(q);\n }",
"public List<AST> getChildNodes ();",
"abstract Node split();",
"abstract Node split();",
"public TreeNodeImpl(@NonNull List<NodeData> children) {\n mChildren = new ArrayList<>(children.size());\n for (NodeData child : children) {\n TreeNodeImpl childNode = new TreeNodeImpl(child);\n childNode.mParent = this;\n mChildren.add(childNode);\n }\n }",
"protected void scanChildren(char[] input,\n int contentOffset,\n int contentSize,\n int contentLineNr)\n throws XMLParseException {\n int end = contentOffset + contentSize;\n int offset = contentOffset;\n int lineNr[] = new int[1];\n lineNr[0] = contentLineNr;\n\n while (offset < end) {\n try {\n offset = this.skipWhitespace(input, offset, end, lineNr);\n } catch (XMLParseException e) {\n return;\n }\n\n if ((input[offset] != '<')\n || ((input[offset + 1] == '!') && (input[offset + 2] == '['))) {\n return;\n }\n\n XMLElement child = this.createAnotherElement();\n offset = child.parseCharArray(input, offset, end, lineNr);\n this.children.addElement(child);\n }\n }",
"@Nonnull\r\n /* pp */ List<Token> expand(@Nonnull List<Token> arg)\r\n throws IOException,\r\n LexerException {\r\n List<Token> expansion = new ArrayList<Token>();\r\n boolean space = false;\r\n\r\n push_source(new FixedTokenSource(arg), false);\r\n\r\n EXPANSION:\r\n for (;;) {\r\n Token tok = expanded_token();\r\n switch (tok.getType()) {\r\n case EOF:\r\n break EXPANSION;\r\n\r\n case WHITESPACE:\r\n case CCOMMENT:\r\n case CPPCOMMENT:\r\n space = true;\r\n break;\r\n\r\n default:\r\n if (space && !expansion.isEmpty())\r\n expansion.add(Token.space);\r\n expansion.add(tok);\r\n space = false;\r\n break;\r\n }\r\n }\r\n\r\n // Always returns null.\r\n pop_source(false);\r\n\r\n return expansion;\r\n }",
"public ChildNode(ArrayList<String> values, String tagName, boolean isChildnode) {\r\n\t\tsuper();\r\n\t\tthis.values = values;\r\n\t\tthis.tagName = tagName;\r\n\t\tthis.isChildnode = isChildnode;\r\n\t}",
"private void startNonleafNode(ArrayList<String> out, CldrNode node, int level)\n throws IOException {\n String objName = node.getNodeKeyName();\n // Some node should be skipped as indicated by objName being null.\n if (objName == null) {\n return;\n }\n\n // first level need no key, it is the container.\n // if (level == 0) {\n // out.add(\"{\");\n // return;\n // }\n\n Map<String, String> attrAsValueMap = node.getAttrAsValueMap();\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": {\");\n for (String key : attrAsValueMap.keySet()) {\n String value = escapeValue(attrAsValueMap.get(key));\n // attribute is prefixed with \"@\" when being used as key.\n out.add(indent(level + 1) + \"\\\"@\" + key + \"\\\": \\\"\" + value + \"\\\"\");\n }\n }",
"public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new Opt(), 2);\n }",
"void token(TokenNode node);",
"protected void addCurrentTokenToParseTree() {\n\t\tif (guessing>0) {\n\t\t\treturn;\n\t\t}\n\t\tParseTreeRule root = (ParseTreeRule)currentParseTreeRoot.peek();\n\t\tParseTreeToken tokenNode = null;\n\t\tif ( LA(1)==Token.EOF_TYPE ) {\n\t\t\ttokenNode = new ParseTreeToken(new org.netbeans.modules.cnd.antlr.CommonToken(\"EOF\"));\n\t\t}\n\t\telse {\n\t\t\ttokenNode = new ParseTreeToken(LT(1));\n\t\t}\n\t\troot.addChild(tokenNode);\n\t}",
"public ArrayList<Token> listTokensTo(String identifier){\n ArrayList<Token> result = new ArrayList<Token>();\n Token token = getToken();\n int tempCurrentToken = currentToken;\n if(token == null) return result;\n do{\n if(token.identifier.equals(identifier)){\n break;\n }\n result.add(token);\n } while((token = nextToken()) != null);\n currentToken = tempCurrentToken;\n return result;\n\n }",
"@Override\n\tpublic Object visit(ASTNewtag node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.println(\"<\" + node.tagName + \"> {\");\n\t\tnode.childrenAccept(this, indent + 2);\n\t\tSystem.out.println();\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"} </\" + node.tagName + \">\");\n\t\treturn null;\n\t}",
"private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}",
"public final TokenStatement push(final TokenStatement item) {\r\n\t\tthis.ensureCapacity( this.size + 1 ); // Increments modCount!!\r\n\t\tthis.elementData[this.size++] = item;\r\n\t\treturn item;\r\n\t}",
"private Node constructParsedTree(Node[] nodes) {\n int rootIndex = 0;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i].getFather() > 0)\n nodes[nodes[i].getFather() - 1].addChild(nodes[i]);\n else\n rootIndex = i;\n }\n return nodes[rootIndex];\n }",
"private static void buildSummaryNode(Document document, NodeList childList, Node newHead) {\n Element sumNode = document.createElement(\"item\");\n Element sumID = document.createElement(\"id\");\n Element sumParent = document.createElement(\"parent\");\n Element innerItem = document.createElement(\"item\");\n sumParent.appendChild(innerItem);\n sumNode.appendChild(sumID);\n sumNode.appendChild(sumParent);\n for (int i = 0; i < childList.getLength(); i++) {\n Node current = childList.item(i);\n if (current.getNodeName().equals(\"id\"))\n sumID.setTextContent(current.getTextContent());\n else if (current.getNodeName().equals(\"parent\"))\n innerItem.setTextContent(current.getTextContent());\n }\n newHead.appendChild(sumNode);\n }",
"public Element compileExpressionList() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean contFlag = false;\n\n\t\tElement expListParent = document.createElement(\"expressionList\");\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\")\")) {\n\t\t\t// expListParent.setTextContent(\"\\n\");\n\t\t\treturn expListParent;\n\t\t}\n\t\tdo {\n\t\t\texpListParent.appendChild(compileExpression());\n\n\t\t\tjTokenizer.advance();\n\t\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t\tif (token.equals(\",\")) {\n\t\t\t\t// tokenType= jTokenizer.tokenType();\n\t\t\t\t// ele= createXMLnode(tokenType);\n\t\t\t\t// expListParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tcontFlag = true;\n\t\t\t} else {\n\t\t\t\tcontFlag = false;\n\t\t\t}\n\t\t} while (contFlag);\n\t\treturn expListParent;\n\t}",
"private TreeItem(StringBuffer text, int level) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\t// is input the head of a tree?\n\t\tMatcher nodeMatch = nodePat.matcher(text.toString());\n\t\tif (nodeMatch.lookingAt()) {\n\t\t\tif (debug) Debug.debug(debug, level, \"matched \"+text+\" against node pattern\");\n\t\t\tString labStr = nodeMatch.group(2);\n\t\t\tint totalLength = nodeMatch.group(1).length();\n\t\t\tif (debug) Debug.debug(debug, level, \"Consuming [\"+nodeMatch.group(1)+\"]\");\n\t\t\tif (debug) Debug.debug(debug, level, \"label set to \"+labStr);\n\t\t\tlabel = SymbolFactory.getSymbol(labStr);\n\t\t\ttext.delete(0, totalLength);\n\t\t\t// temporary holding place for children\n\t\t\tVector<TreeItem> kids = new Vector<TreeItem>();\n\t\t\t// add children until we reach the end pattern\n\t\t\tMatcher endMatch = endPat.matcher(text.toString());\n\t\t\twhile (!endMatch.lookingAt()) {\n\t\t\t\tTreeItem kid = new TreeItem(text, level+1);\n\t\t\t\tif (debug) Debug.debug(debug, level, \"adding child \"+kid);\n\t\t\t\tkids.add(kid);\n\t\t\t\tendMatch = endPat.matcher(text.toString());\n\t\t\t}\n\t\t\ttotalLength = endMatch.group(1).length();\n\t\t\tif (debug) Debug.debug(debug, level, \"Consuming end group [\"+endMatch.group(1)+\"]\");\n\t\t\ttext.delete(0, totalLength);\n\t\t\tMatcher weightMatch = weightPat.matcher(text.toString());\n\t\t\tif (weightMatch.matches()) {\n\t\t\t\tif (weightMatch.group(2) != null) {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"Reading weight \"+weightMatch.group(1));\n\t\t\t\t\tweight = Double.parseDouble(weightMatch.group(2));\n\t\t\t\t}\n\t\t\t\ttext.delete(0, weightMatch.group(1).length());\n\t\t\t}\n\t\t\tchildren = new TreeItem[kids.size()];\n\t\t\tnumChildren = children.length;\n\t\t\tkids.toArray(children);\n\t\t\treturn;\n\t\t}\n\t\t// is input a leaf?\n\t\tMatcher leafMatch = leafPat.matcher(text.toString());\n\t\tif (leafMatch.lookingAt()) {\n\t\t\tif (debug) Debug.debug(debug, level, \"matched \"+text+\" against label pattern\");\n\t\t\tString labStr = leafMatch.group(2);\n\t\t\tint totalLength = leafMatch.group(1).length();\n\t\t\tif (debug) Debug.debug(debug, level, \"Consuming [\"+leafMatch.group(1)+\"]\");\n\t\t\tlabel = SymbolFactory.getSymbol(labStr);\n\t\t\tif (debug) Debug.debug(debug, level, \"TLT label set to \"+labStr);\n\t\t\ttext.delete(0, totalLength);\n\t\t\treturn;\n\t\t}\n\t\tthrow new DataFormatException(\"Couldn't match any pattern to \"+text);\n\t}",
"public void addChild(TreeItem t) {\n\t\tleaves = null;\n\t\ttreeLeaves = null;\n\t\tdecideNorm = false;\n\t\tItem newKids[] = new Item[numChildren+1];\n\t\tfor (int i = 0; i < numChildren; i++)\n\t\t\tnewKids[i] = children[i];\n\t\tnewKids[numChildren] = t;\n\t\tchildren = newKids;\n\t\tnumChildren++;\n\t\tsetHashCode();\n\t\tsetNumNodes();\n\t}",
"public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}",
"protected ObservableList<TreeItem> createTreeItems(ObservableList other) {\r\n ObservableList items = FXCollections.observableArrayList();\r\n other.stream().forEach(value -> items.add(createItem(value)));\r\n return items;\r\n }",
"public void parseNodeFrequences(PairList nGramList, TreeNode parent, String current){\r\n\r\n\t\tString str = null;\r\n\t\tif(!parent.getSyscall().equals(rootNodeName)){ // update n-gram name\r\n\t\t\tif(current== null){\r\n\t\t\t\tstr = parent.getSyscall();\r\n\t\t\t}else{\r\n\t\t\t\tstr = current.concat(\",\" + parent.getSyscall());\r\n\t\t\t}\r\n\t\t\tnGramList.add(new Pair(parent.getFrequency(), str, parent.getAbnormality(0))); // add n-gram in list\r\n\t\t}\r\n\r\n\t\tIterator<TreeNode> i = parent.children();\r\n\t\twhile(i.hasNext()){\r\n\t\t\tparseNodeFrequences(nGramList, i.next(), str);\r\n\t\t}\t\t\r\n\t}",
"MoneyParseContext createChild() {\r\n return new MoneyParseContext(locale, text, textIndex, textErrorIndex, currency, amount);\r\n }",
"private void insertTokenPosition(Element parent, String span, String[] labelParts, BoxCoordinates positionSpan) {\n //associate position here\n adjustPosition(parent, positionSpan);\n// parent.setAttribute(\"llx\", String.valueOf(positionSpan.getLlx()));\n// parent.setAttribute(\"lly\", String.valueOf(positionSpan.getLly()));\n// parent.setAttribute(\"urx\", String.valueOf(positionSpan.getUrx()));\n// parent.setAttribute(\"ury\", String.valueOf(positionSpan.getUry()));\n //end associate position\n if (labelParts.length > 0) {\n String labelPart = labelParts[0];\n Element child;\n\n if ((child = lastChild( parent )) == null || labelPart.startsWith( \"^\" ) || !labelPart.equals( child.getName() )) {\n labelPart = labelPart.replaceFirst( \"^\\\\^\", \"\" );\n child = new Element( labelPart );\n parent.addContent( child );\n }\n List tails = Arrays.asList( labelParts ).subList( 1, labelParts.length );\n String[] labelTail = (String[])tails.toArray( new String[tails.size()] );\n //associate position here\n\n //end associate position\n insertTokenPosition(child, span, labelTail, positionSpan);\n }\n else {\n parent.addContent( span );\n }\n }",
"private static void value(ArrayList<tok> pHolder, ArrayList<tok> xmlList) {\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\tindex++;\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\tindex++;\r\n\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{noError = false;}\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse if(pHolder.get(index).getType() == Token_Type.TOK_NUM){\r\n\t\t\tindex++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}",
"public abstract void storeToken(String token, int treeDepth) throws IOException;",
"private void splitChild(BTNode x, int i, BTNode y) {\n BTNode z = splitChildY(y);\n // Since this node is going to have a new child,\n // create space of new child\n for (int j = x.mCurrentKeyNum; j >= i+1; j--)\n x.mChildren[j+1] = x.mChildren[j];\n\n //if there was a child their we dont want the change the count (just to replace)\n //if (x.mChildren[i+1] != null)\n //x.mCurrentChildrenNum--;\n\n x.mChildren[i+1] = z;\n x.mCurrentChildrenNum++;\n // A key of y will move to this node. Find location of\n // new key and move all greater keys one space ahead\n for (int j = x.mCurrentKeyNum-1; j >= i; j--)\n x.mKeys[j+1] = x.mKeys[j];\n // Copy the middle key of y to this node\n x.mKeys[i] = y.mKeys[t-1];\n x.mCurrentKeyNum++;\n }",
"private static void buildDetailedNode(Document document, NodeList childList, Node newHead) {\n Element detNode = document.createElement(\"offer\");\n for (int i = 0; i < childList.getLength(); i++) {\n Node current = childList.item(i);\n for (int j = 0; j < TableEntry.ENTRY_SIZE; j++) {\n if (current.getNodeName().equals(TableEntry.tags[j])) {\n Element element = document.createElement(current.getNodeName());\n element.setTextContent(current.getTextContent());\n detNode.appendChild(element);\n }\n }\n }\n newHead.appendChild(detNode);\n }",
"public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }",
"protected abstract List<T> getChildren();",
"private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp.getQualifiedName()) {\n case (\"grapes\"): //grapes tag doesn't do anything in particular except instantiating the file\n break;\n\n case (\"grape\"):\n createGrape(temp);\n break;\n\n case (\"seed\"):\n createSeed(temp);\n break;\n\n default:\n throw new IllegalArgumentException(\"Invalid input in XML \" ); //any other element type is not supported in our XML formatted file\n }\n }\n\n for (int i = 0; i < current.getChildCount(); i++) {\n listChildren(current.getChild(i)); //recursive call traverses the XML document in preorder\n }\n\n }",
"List<Node<T>> children();",
"private void createChildren() {\n\t\t\n\t\tfor(int i=0;i<horizontal;i++) {\n\t\t\t\n\t\t\tAction a = new Action(i);\n\t\t\tif(!gameOver && actionIsValid(a)) {\n\t\t\t\t\n\t\t\t\tPlayer otherPlayer;\n\t\t\t\t\n\t\t\t\tif(player == Player.PLAYER_BLUE) {\n\t\t\t\t\totherPlayer = Player.PLAYER_RED;\n\t\t\t\t}else {\n\t\t\t\t\totherPlayer = Player.PLAYER_BLUE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPosition newPosition;\n\t\t\t\tnewPosition = new Position(a, ++moveCounter, otherPlayer, this);\n\t\t\t\tchildren.add(newPosition);\t\n\t\t\t}\n\t\t}\n\t}",
"private static void createTree(TreeItem<FilePath> rootItem) throws IOException {\n\n try (DirectoryStream<Path> directoryStream = Files\n .newDirectoryStream(rootItem.getValue().getPath())) {\n\n for (Path path : directoryStream) {\n TreeItem<FilePath> newItem = new TreeItem<FilePath>(new FilePath(path));\n newItem.setExpanded(true);\n\n rootItem.getChildren().add(newItem);\n\n if (Files.isDirectory(path)) {\n createTree(newItem);\n }\n }\n } catch (AccessDeniedException ignored) {\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }"
] |
[
"0.56507194",
"0.5486253",
"0.5478906",
"0.5470942",
"0.5355921",
"0.53293526",
"0.53051674",
"0.529086",
"0.5275798",
"0.5231141",
"0.51769894",
"0.51570463",
"0.51479274",
"0.5139377",
"0.50973827",
"0.50756687",
"0.5019773",
"0.4990804",
"0.497604",
"0.4957363",
"0.49536535",
"0.49412265",
"0.4939307",
"0.493296",
"0.4932466",
"0.49211642",
"0.48904976",
"0.4884354",
"0.488413",
"0.48834664",
"0.4880715",
"0.4876476",
"0.48598275",
"0.48455727",
"0.48305488",
"0.48240638",
"0.4820426",
"0.48200515",
"0.4790882",
"0.47876278",
"0.47843266",
"0.47752702",
"0.4772753",
"0.4763119",
"0.4744936",
"0.47371712",
"0.47327545",
"0.47296026",
"0.4725496",
"0.47207147",
"0.47181475",
"0.47116953",
"0.4692622",
"0.46917212",
"0.46889538",
"0.4688105",
"0.46824253",
"0.46808648",
"0.46772933",
"0.46604967",
"0.46299657",
"0.46238747",
"0.46181548",
"0.45976958",
"0.45972496",
"0.45869341",
"0.45854786",
"0.45762932",
"0.45762932",
"0.45760304",
"0.45665407",
"0.45591968",
"0.45527002",
"0.45482346",
"0.45462924",
"0.45359722",
"0.45276138",
"0.45260435",
"0.45215705",
"0.4519574",
"0.451733",
"0.45080054",
"0.45048493",
"0.4501856",
"0.45018113",
"0.4491727",
"0.44895947",
"0.44809303",
"0.44763058",
"0.44742605",
"0.44739494",
"0.44710442",
"0.44675586",
"0.446704",
"0.4457313",
"0.445243",
"0.44523576",
"0.4451488",
"0.44489634",
"0.44479907",
"0.4445838"
] |
0.0
|
-1
|
build "for each" collection
|
private Collection<?> buildForEachCollection(final ExecutionContext executionContext)
{
String text = foreach.getTextTrim();
if (text != null && text.startsWith("#{"))
{
return evaluateForEachExpression(executionContext, text);
}
return (Collection<?>) FieldInstantiator.getValue(List.class, foreach);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Foreach createForeach();",
"public Iterable<M> iterateAll();",
"Collect getColl();",
"protected abstract Collection createCollection();",
"default YCollection<T> forEachFun(Consumer<T> consumer) {\n for (T t : this) consumer.accept(t);\n return this;\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }",
"public Iterator<T> byGenerations() {\r\n ArrayIterator<T> iter = new ArrayIterator<T>();\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n iter.add(tree[i]);\r\n }\r\n\r\n return iter;\r\n }",
"@Override\n\tpublic void forEach(Processor processor) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tprocessor.process(elements[i]);\n\t\t}\n\t}",
"public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }",
"public void iterateEventList();",
"public synchronized void processAll()\r\n {\r\n if (!myItems.isEmpty())\r\n {\r\n myProcessor.accept(New.list(myItems));\r\n myItems.clear();\r\n }\r\n }",
"@SuppressWarnings(\"UnusedDeclaration\")\npublic interface YCollection<T> extends Collection<T> {\n\n YCollection<T> emptyInstance();\n\n YCollection<T> filter(Predicate<? super T> predicate);\n\n default <K> YMap<K, YList<T>> groupBy(Function<T, K> grouper) {\n YMap<K, YList<T>> result = hm();\n for (T t : this) {\n K group = grouper.apply(t);\n YList<T> gg = result.get(group);\n if (gg == null) {\n gg = al();\n result.put(group, gg);\n }\n gg.add(t);\n }\n return result;\n }\n\n default boolean isAny(Predicate<? super T> predicate) {\n for (T t : this) if (predicate.test(t)) return true;\n return false;\n }\n\n default boolean isAll(Predicate<? super T> predicate) {\n for (T t : this) if (!predicate.test(t)) return false;\n return true;\n }\n\n <R> YCollection<R> map(Function<? super T, ? extends R> mapper);\n\n //TODO test\n default <R> YCollection<R> mapWithIndex(BiFunction<Integer, ? super T, ? extends R> mapper) {\n Iterator<T> it = iterator();\n YCollection<R> result = al();\n for (int i = 0; i < size(); i++) {\n result.add(mapper.apply(i, it.next()));\n }\n return result;\n }\n\n //TODO test\n <R> YCollection<R> flatMap(Function<? super T, ? extends Collection<? extends R>> mapper);\n\n /**\n * The same as 'forEach', but returns 'this' so can continue using the instasnce.\n */\n default YCollection<T> forEachFun(Consumer<T> consumer) {\n for (T t : this) consumer.accept(t);\n return this;\n }\n\n //TODO test\n default <T2> YCollection<T> forZip(YCollection<T2> b, BiConsumer<T, T2> f) {\n Iterator<T> i1 = this.iterator();\n Iterator<T2> i2 = b.iterator();\n while(true) {\n if (i1.hasNext() != i2.hasNext()) throw new RuntimeException(\"Expected the same size\");\n if (!i1.hasNext()) break;\n f.accept(i1.next(), i2.next());\n }\n return this;\n }\n\n default YCollection<T> forWithIndex(BiConsumer<Integer, ? super T> consumer) {\n Iterator<T> it = iterator();\n int i = 0;\n while(it.hasNext()) consumer.accept(i++, it.next());\n return this;\n }\n\n default <R> R reduce(R first, BiFunction<R, T, R> folder) {\n R result = first;\n for (T t : this) result = folder.apply(result, t);\n return result;\n }\n\n //TODO test\n default T reduce(BiFunction<T, T, T> folder) {\n if (isEmpty()) return null;\n Iterator<T> i = iterator();\n T result = i.next();\n while (i.hasNext()) result = folder.apply(result, i.next());\n return result;\n }\n\n //TODO test\n default T car() {\n return iterator().next();\n }\n\n //TODO test\n default T cadr() {\n Iterator<T> iterator = iterator();\n iterator.next();\n return iterator.next();\n }\n\n YCollection<T> cdr();\n\n default T first() {\n return car();\n }\n\n default T firstOr(T t) {\n if (isEmpty()) return t;\n return first();\n }\n\n default T firstOrCalc(Supplier<T> supplier) {\n if (isEmpty()) return supplier.get();\n return first();\n }\n\n //TODO test\n default T first(Predicate<? super T> predicate) {\n for (T t : this) if (predicate.test(t)) return t;\n return null;\n }\n\n //TODO firstOr(Predicate<? super T> predicate, T default)\n //TODO lastOr(Predicate<? super T> predicate, T default)\n\n //TODO test\n default T last(Predicate<? super T> predicate) {\n T result = null;\n for (T t : this) if (predicate.test(t)) result = t;\n return result;\n }\n\n default T max() {\n return YCollections.maxFromCollection(this);\n }\n\n default T max(Comparator<? super T> comparator) {\n return YCollections.maxFromCollection(this, comparator);\n }\n\n default <CMP extends Comparable<CMP>> T max(Function<T, CMP> evaluator) {\n if (isEmpty()) throw new RuntimeException(\"can't get max on empty collection\");\n T max = null;\n CMP maxComparable = null;\n for (T t : this) {\n CMP nextComparable = evaluator.apply(t);\n if (nextComparable == null) throw new RuntimeException(\"evaluator shouldn't return null values\");\n if (maxComparable == null || maxComparable.compareTo(nextComparable) < 0) {\n max = t;\n maxComparable = nextComparable;\n }\n }\n return max;\n }\n\n default T maxByFloat(Function_float_T<T> evaluator) {\n if (isEmpty()) throw new RuntimeException(\"can't get max on empty collection\");\n T max = null;\n float maxComparable = 0;\n boolean found = false;\n for (T t : this) {\n float nextComparable = evaluator.apply(t);\n if (!found || nextComparable > maxComparable) {\n max = t;\n maxComparable = nextComparable;\n }\n found = true;\n }\n return max;\n }\n\n default T min() {\n return YCollections.minFromCollection(this);\n }\n\n default T min(Comparator<? super T> comparator) {\n return YCollections.minFromCollection(this, comparator);\n }\n\n default <CMP extends Comparable<CMP>> T min(Function<T, CMP> evaluator) {\n if (isEmpty()) throw new RuntimeException(\"can't get min on empty collection\");\n T min = null;\n CMP minComparable = null;\n for (T t : this) {\n CMP nextComparable = evaluator.apply(t);\n if (nextComparable == null) throw new RuntimeException(\"evaluator shouldn't return null values\");\n if (minComparable == null || minComparable.compareTo(nextComparable) >= 0) {\n min = t;\n minComparable = nextComparable;\n }\n }\n return min;\n }\n\n default T minByFloat(Function_float_T<T> evaluator) {\n if (isEmpty()) throw new RuntimeException(\"can't get min on empty collection\");\n T min = null;\n float minComparable = 0;\n boolean found = false;\n for (T t : this) {\n float nextComparable = evaluator.apply(t);\n if (!found || nextComparable < minComparable) {\n min = t;\n minComparable = nextComparable;\n }\n found = true;\n }\n return min;\n }\n\n default YSet<T> toSet() {\n return toYSet(this);\n }\n\n default YList<T> toList() {\n return toYList(this);\n }\n\n YCollection<T> withAll(Collection<T> c);\n\n YCollection<T> with(T t);\n\n @SuppressWarnings(\"unchecked\")\n YCollection<T> with(T... t);\n\n YCollection<T> withoutAll(Collection<T> c);\n\n YCollection<T> without(T t);\n @SuppressWarnings(\"unchecked\")\n YCollection<T> without(T... t);\n\n //TODO reversed\n //YSet returns not YSet but YList, because sorting algorithm itself creates list //TODO fix this?\n default YList<T> sorted() {\n return YCollections.sortedCollection(this);\n }\n\n default YList<T> sorted(Comparator<? super T> comparator) {\n return YCollections.sortedCollection(this, comparator);\n }\n\n default YList<T> sorted(Function<T, Comparable> evaluator) {\n return YCollections.sortedCollection(this, (v1, v2) -> evaluator.apply(v1).compareTo(evaluator.apply(v2)));\n }\n\n YCollection<T> take(int count);\n\n //TODO test\n default int count(Predicate<? super T> predicate) {\n int result = 0;\n for (T t : this) if (predicate.test(t)) result++;\n return result;\n }\n\n //TODO test\n @SuppressWarnings(\"unchecked\")\n default boolean containsAll(T... tt) {\n for (T t : tt) if (!contains(t)) return false;\n return true;\n }\n\n //TODO test\n @SuppressWarnings(\"unchecked\")\n default boolean containsAny(Collection<? extends T> tt) {\n for (T t : tt) if (contains(t)) return true;\n return false;\n }\n\n //TODO test\n @SuppressWarnings(\"unchecked\")\n default boolean containsAny(T... tt) {\n for (T t : tt) if (contains(t)) return true;\n return false;\n }\n\n //TODO test\n default String toString(String infix) {\n StringBuilder sb = new StringBuilder(\"\");\n boolean was = false;\n for (Object o : this) {\n if (was) sb.append(infix);\n sb.append(o);\n was = true;\n }\n return sb.toString();\n }\n\n //TODO test\n default String toStringSuffix(String suffix) {\n StringBuilder sb = new StringBuilder(\"\");\n for (Object o : this) sb.append(o).append(suffix);\n return sb.toString();\n\n }\n\n //TODO test\n default String toStringInfix(String infix) {\n return toString(infix);\n }\n\n //TODO test\n default String toStringPrefixInfix(String prefix, String infix) {\n boolean first = true;\n StringBuilder sb = new StringBuilder();\n for (Object o : this) {\n if (first) first = false;\n else sb.append(infix);\n sb.append(prefix).append(o == null ? \"null\" : o.toString());\n }\n return sb.toString();\n }\n\n //TODO test\n default String toStringPrefixSuffix(String prefix, String suffix) {\n StringBuilder sb = new StringBuilder();\n for (Object o : this) {\n sb.append(prefix).append(o == null ? \"null\" : o.toString()).append(suffix);\n }\n return sb.toString();\n }\n\n //TODO test\n default <V> YMap<T, V> toMapKeys(Function<T, V> f) {\n YMap<T, V> result = hm();\n for (T k : this) result.put(k, f.apply(k));\n return result;\n }\n\n //TODO test\n default boolean notEmpty() {\n return !isEmpty();\n }\n\n default <V> V ifEmpty(V v, Function<YCollection<T>, V> Else) {\n if (isEmpty()) return v;\n return Else.apply(this);\n }\n\n default YCollection<T> assertSize(int s) {\n if (size() != s) throw new RuntimeException(\"Expected size \" + s + \" but was \" + size());\n return this;\n }\n}",
"public void forEach(Processor processor) {\n\n\t}",
"public LoopingIterator(final Collection<? extends E> collection) {\n this.collection = Objects.requireNonNull(collection, \"collection\");\n reset();\n }",
"public void forEachExample(){\n createPeople()\n .stream()\n .forEach(print);\n }",
"@SuppressWarnings(\"serial\")\r\n\tprivate void fcbuild() {\n\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\tString s = keys.get(i);\r\n\t\t\tfc.add(new ArrayList<String>() {\r\n\t\t\t\t{\r\n\t\t\t\t\tadd(sharedV.get(s).get(0));\r\n\t\t\t\t\tadd(s);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < sharedV.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < sharedV.size(); j++) {\r\n\t\t\t\tif (sharedV.get(keys.get(i)).containsAll(sharedV.get(keys.get(j)))\r\n\t\t\t\t\t\t&& sharedV.get(keys.get(j)).containsAll(sharedV.get(keys.get(i)))) {\r\n\r\n\t\t\t\t\tString s = sharedV.get(keys.get(i)).get(0); // c1\r\n\t\t\t\t\tint ii = i;\r\n\t\t\t\t\tint jj = j;\r\n\t\t\t\t\tfc.add(new ArrayList<String>() {\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tadd(s);\r\n\t\t\t\t\t\t\tadd(keys.get(ii));\r\n\t\t\t\t\t\t\tadd(keys.get(jj));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\toptimizefc();\r\n\r\n\t}",
"public DbIterator iterator() {\n // some code goes here\n if (gbfield == Aggregator.NO_GROUPING) {\n Type[] tp = new Type[1];\n tp[0] = Type.INT_TYPE;\n String[] fn = new String[1];\n fn[0] = aop.toString();\n TupleDesc td = new TupleDesc(tp, fn);\n Tuple t = new Tuple(td);\n t.setField(0, new IntField(gbCount.get(null)));\n ArrayList<Tuple> a = new ArrayList<>();\n a.add(t);\n return new TupleIterator(td, a);\n } else {\n Type[] tp = new Type[2];\n tp[0] = gbfieldtype;\n tp[1] = Type.INT_TYPE;\n String[] fn = new String[2];\n fn[0] = gbname;\n fn[1] = aop.toString();\n TupleDesc td = new TupleDesc(tp, fn);\n ArrayList<Tuple> a = new ArrayList<>();\n for (Field f : gbCount.keySet()) {\n Tuple t = new Tuple(td);\n t.setField(0, f);\n t.setField(1, new IntField(gbCount.get(f)));\n a.add(t);\n }\n return new TupleIterator(td, a);\n }\n }",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"private OneOfEach() {\n initFields();\n }",
"@Override\r\n\tpublic Iterator createIterator() {\n\t\treturn bestSongs.values().iterator();\r\n\t}",
"private Iterator getEntries(){\r\n\t\tSet entries = items.entrySet();\r\n\t\treturn entries.iterator();\r\n\t}",
"public abstract Iterator getCascadableChildrenIterator(EventSource session, CollectionType collectionType, Object collection);",
"private void buildGenerations(BDD initialGeneration){\n\t\tBDD currentGeneration = initialGeneration;\n\t\tint i = 0;\n\t\t\n\t\tthis.generations.add(currentGeneration.copy());\n\t\n\t\twhile(i++ < endGenerations){\n\n\t\t\tBDD nextGeneration = getNextGeneration(currentGeneration);\n\t\t\tthis.generations.add(nextGeneration);\n\t\t\t\n\t\t\tcurrentGeneration.free();\n\t\t\tcurrentGeneration = nextGeneration.copy();\n\t\t}\t\t\n\t}",
"public DbIterator iterator() {\n // some code goes here\n //throw new UnsupportedOperationException(\"please implement me for proj2\");\n List<Tuple> tuparr = new ArrayList<Tuple>();\n Type[] typearr = new Type[]{gbfieldtype, Type.INT_TYPE};\n TupleDesc fortup = new TupleDesc(typearr, new String[]{null, null});\n Object[] keys = groups.keySet().toArray();\n for (int i = 0; i < keys.length; i++) {\n \n int key = (Integer) keys[i];\n \n Tuple tup = new Tuple(fortup);\n if (gbfieldtype == Type.STRING_TYPE) {\n tup.setField(0, hashstr.get(key));\n }\n else {\n tup.setField(0, new IntField(key));\n }\n //tup.setField(0, new IntField(key));\n tup.setField(1, new IntField(groups.get(key)));\n tuparr.add(tup); \n\n }\n List<Tuple> immutable = Collections.unmodifiableList(tuparr);\n TupleIterator tupiter = new TupleIterator(fortup, immutable);\n if (gbfield == NO_GROUPING) {\n List<Tuple> tuparr1 = new ArrayList<Tuple>();\n TupleDesc fortup1 = new TupleDesc(new Type[]{Type.INT_TYPE}, new String[]{null});\n Tuple tup1 = new Tuple(fortup1);\n tup1.setField(0, new IntField(groups.get(-1)));\n tuparr1.add(tup1);\n List<Tuple> immutable1 = Collections.unmodifiableList(tuparr1);\n TupleIterator tupiter1 = new TupleIterator(fortup1, immutable1);\n \n return (DbIterator) tupiter1;\n }\n return (DbIterator) tupiter;\n }",
"@Nonnull\n @Override\n public Iterable<KeyValueObject<KOUT, VOUT>> collect() {\n return output.collect();\n }",
"private static Stream<?> all(Iterator<Object> i) {\n requireNonNull(i);\n final Iterable<Object> it = () -> i;\n return StreamSupport.stream(it.spliterator(), false);\n }",
"public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }",
"public final BB foreach(String cursor, Collection<?> dataset)\n {\n Validate.notBlank(cursor,What.CURSOR_NAME);\n Validate.notNull(dataset,What.DATA);\n ForEachAction foreach = BAL().newForEach();\n foreach.setCursorKey(cursor);\n foreach.setDataset(dataset);\n return autoblock(new BALFinishers.ForEach(foreach));\n }",
"public Builder members(Supplier<? extends Collection> collection) {\n return members(collection.get());\n }",
"@Override\n\tvoid collect() {\n\t\t\n\t}",
"ForLoopRule createForLoopRule();",
"@Override\n public Iterator<Long> iterator() {\n Collection<Long> c = new ArrayList<>();\n synchronized (data) {\n for (int i=0; i<data.length; i++)\n c.add(get(i));\n }\n return c.iterator();\n }",
"public DbIterator iterator() {\n \t\tArrayList<Tuple> tuples = new ArrayList<Tuple>(); //tuples to return\n TupleDesc desc;\n String[] names;\n\t \tType[] types;\n\t \t// these will be the TupleDesc to return\n\t \tif (gbfield == Aggregator.NO_GROUPING){\n\t \t\tnames = new String[] {\"aggregateVal\"};\n\t \t\ttypes = new Type[] {Type.INT_TYPE};\n\t \t} else {\n\t \t\tnames = new String[] {\"groupVal\", \"aggregateVal\"};\n\t \t\ttypes = new Type[] {gbfieldtype, Type.INT_TYPE};\n\t \t}\n\t \tdesc = new TupleDesc(types, names);\n\t \t\n\t \tTuple toAdd;\n\t \t// iterate over the GROUP BY entries and make the tuples\n\t \tIterator<Map.Entry<Field, Integer>> it = gbcount.entrySet().iterator();\n\t \tMap.Entry<Field, Integer> nextfield;\n\t \tint aggregateVal = 0;\n\t \twhile(it.hasNext()) {\n\t \t\tnextfield = it.next();\n\t \t\taggregateVal = nextfield.getValue();\n\t \t\ttoAdd = new Tuple(desc);\n\t \t\tif(gbfield == Aggregator.NO_GROUPING) {\n\t \t\t\ttoAdd.setField(0, new IntField(aggregateVal));\n\t \t\t} else {\n\t \t\t\ttoAdd.setField(0, nextfield.getKey());\n\t \t\t\ttoAdd.setField(1, new IntField(aggregateVal));\n\t \t\t}\n\t \t\ttuples.add(toAdd);\n\t \t}\n\t \treturn new TupleIterator(desc, tuples);\n }",
"private static void buildList() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (connection == null || connection.isClosed()) \r\n\t\t\t\tconnection = DataSourceManager.getConnection();\r\n\t\t\t\r\n\t\t\tstatement = connection.prepareStatement(LOAD_ALL);\r\n\t \tresultset = statement.executeQuery();\r\n\t \t\r\n\t \tgroups = getCollectionFromResultSet(resultset);\r\n\t \tresultset.close();\r\n\t statement.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException | SQLException e) {\r\n\t\t\tlog.fatal(e.toString());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void fillProducts(int totalEntries) {\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n storeOperations.addProduct(i, text.sentence(getRandomNumber(1, 10)), text.paragraph(getRandomNumber(1, 50)), (float) getRandomNumber(1, 3000), getRandomNumber(1, 5000));\n }\n }",
"public abstract void completeIteration();",
"public CollectionPermutationIter(List<E> objectsArray)\r\n/* */ {\r\n/* 96 */ this(objectsArray, new IntegerPermutationIter(objectsArray.size()));\r\n/* */ }",
"private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}",
"private List<BulkLoadElementTO> populateBulkLoadElementTO( int numElements ) {\n List<BulkLoadElementTO> lTOList = new ArrayList<BulkLoadElementTO>();\n\n for ( int i = 0; i < numElements; i++ ) {\n lTOList.add( new BulkLoadElementTO( i, WAREHOUSE_STOCK_LEVEL, QUEUED, \"\", C0, C1, C2 ) );\n }\n\n return lTOList;\n\n }",
"@Override\n public Iterator<Entry<Integer, T>> iterator() {\n List<Entry<Integer, T>> pairs = new ArrayList<Entry<Integer, T>>(count);\n\n for(int i = 0; i < count; i++) {\n pairs.add(new MapEntry<T>(extractKey(buckets[i]), (T)data[i]));\n }\n\n return pairs.iterator();\n }",
"private static void loadResults() {\r\n\t\tint index = 5;\r\n\t\tsiteMap = new HashMap<String, Map<String, List<? extends TransactionData>>>();\r\n\t\ttry(MongoClient connection = new MongoClient(\"localhost\", 27017);){\r\n\t\t\twhile(index >= 5 && index <= 9) {\r\n\t\t\t\tString dbName = \"site\" + index + \"ResultsDB\";\r\n\t\t\t\tMongoDatabase database = connection.getDatabase(dbName);\r\n\t\t\t\tcollectionsMap = new HashMap<String, List<? extends TransactionData>>();\r\n\t\t\t\tfor (String collection : database.listCollectionNames()) {\r\n\t\t\t\t\ttry(MongoCursor<Document> iterator = database.getCollection(collection).find().iterator();) {\r\n\t\t\t\t\t\tloadCollectionData(iterator, collection);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsiteMap.put(\"site\" + index, collectionsMap);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }",
"@Test\n public void forEachTest() {\n Object[] resultActual = new Object[] {this.work1, this.work2, this.work3, this.work4};\n Object[] resultExpected = new Object[4];\n int index = 0;\n for (String work : this.queue) {\n resultExpected[index++] = work;\n }\n assertThat(resultActual, is(resultExpected));\n }",
"private void buildForEachStatement(ForEachStatement tree) {\n Block afterLoop = currentBlock;\n Block statementBlock = createBlock();\n Block loopback = createBranch(tree, statementBlock, afterLoop);\n currentBlock = createBlock(loopback);\n addContinueTarget(loopback);\n breakTargets.addLast(afterLoop);\n build(tree.statement());\n breakTargets.removeLast();\n continueTargets.removeLast();\n statementBlock.addSuccessor(currentBlock);\n currentBlock = loopback;\n build(tree.variable());\n currentBlock = createBlock(currentBlock);\n build(tree.expression());\n currentBlock = createBlock(currentBlock);\n }",
"public Vector<BasicSet> AllClosure(){\r\n\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tboolean success=false;\r\n\t\tint i=0;\r\n\t\t//BasicSet b=new BasicSet();\r\n\t\tfermes.add(FirstClosure());\r\n\t\tBasicSet attributs=new BasicSet();\r\n\t\tattributs.addAll(context.getAttributes());\r\n\t\twhile(success==false){\r\n\t\t\t//System.out.println(\"fermeeees iiii \"+fermes.get(i));\r\n\t\t\tBasicSet clone=(BasicSet) fermes.get(i).clone();\r\n\t\t\tfermes.add(NextClosure(attributs,clone));\r\n\t\t\t//System.out.println(\"fermeeees \"+fermes);\t\r\n\t\t\tif(fermes.lastElement().size()==context.getAttributeCount()){\r\n\t\t\t\tsuccess=true;\r\n\t\t\t\t//System.out.println(\"iiiii \"+i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn fermes;\r\n\t}",
"public Iterator <item_t> iterator () {\n return new itor ();\n }",
"public Iterator<Item> iterator() { return new RandomIterator();}",
"public Iterator<ResultItem> iterateItems() {\r\n\t\treturn items.iterator();\r\n\t}",
"Iterable<CtElement> asIterable();",
"protected static void writeIterator(Output out, Iterator<Object> it) {\n log.trace(\"writeIterator\");\n // Create LinkedList of collection we iterate thru and write it out later\n LinkedList<Object> list = new LinkedList<Object>();\n while (it.hasNext()) {\n list.addLast(it.next());\n }\n // Write out collection\n out.writeArray(list);\n }",
"public Iterable<E> getData(){\n return new Iterable<E>(){\n @Override\n public Iterator<E> iterator() {\n return structure.iterator();\n }\n };\n }",
"Map getAll();",
"public GameCollectionIterator() { \n\t\t\tcurrIndex = -1;\n\t\t}",
"<T> void lookupAll(Class<T> type, Collection<T> out);",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"public PancakeHouseIterator(ArrayList items)\n {\n this.items = items;\n }",
"public void setForeach(Element foreach)\n {\n this.foreach = foreach;\n }",
"public MapData(Iterable<K> iterable, Generator<V> generator) {\n for (K key: iterable) {\n put(key, generator.next());\n }\n }",
"public DbIterator iterator() {\n // some code goes here\n ArrayList<Tuple> tuples = new ArrayList<Tuple>();\n for (Field key : m_aggregateData.keySet()) {\n \tTuple nextTuple = new Tuple(m_td);\n \tint recvValue;\n \t\n \tswitch (m_op) {\n \tcase MIN: case MAX: case SUM:\n \t\trecvValue = m_aggregateData.get(key);\n \t\tbreak;\n \tcase COUNT:\n \t\trecvValue = m_count.get(key);\n \t\tbreak;\n \tcase AVG:\n \t\trecvValue = m_aggregateData.get(key) / m_count.get(key);\n \t\tbreak;\n \tdefault:\n \t\trecvValue = setInitData(); // shouldn't reach here\n \t}\n \t\n \tField recvField = new IntField(recvValue);\n \tif (m_gbfield == NO_GROUPING) {\n \t\tnextTuple.setField(0, recvField);\n \t}\n \telse {\n \t\tnextTuple.setField(0, key);\n \t\tnextTuple.setField(1, recvField);\n \t}\n \ttuples.add(nextTuple);\n }\n return new TupleIterator(m_td, tuples);\n }",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public void createAnimalsCollection() {\n ArrayList<DataSetAnimal> animalsFetched = getDFO().getAnimalData(getFILE_NAME()).getAnimals();\n setAnimals(new ArrayList<>());\n for (DataSetAnimal animal: animalsFetched) {\n String tmpBreed = animal.getBreedOrType().substring(animal.getBreedOrType().lastIndexOf(\" \") + 1);\n switch (tmpBreed) {\n case \"dolphin\":\n getAnimals().add(new AnimalDolphin(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"duck\":\n getAnimals().add(new AnimalDuck(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"cat\":\n getAnimals().add(new AnimalCat(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"chicken\":\n getAnimals().add(new AnimalChicken(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"horse\":\n getAnimals().add(new AnimalHorse(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"shark\":\n getAnimals().add(new AnimalShark(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"parakeet\":\n getAnimals().add(new AnimalParakeet(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n default:\n getAnimals().add(new AnimalDog(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n }\n }\n }",
"@Override\n public Iterator<T> iterator() {\n return items.iterator();\n }",
"private void iterateLandProducers(){\n landPrimaryProducerManager.produceAll();\n\n for(Map.Entry<Sector, SecondaryProducer> v : landSecondaryProducerManager.getManagerMap().entrySet()){\n resourceManager.addProducerResourceVisitor(v.getValue(), v.getKey());\n }\n landSecondaryProducerManager.produceAll();\n }",
"public Iterable<T> iterable() {\n return new ResourceCollectionIterable<>(this);\n }",
"@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn new Iterator<E>() {\n\n\t\t\tprivate final Iterator<Map.Entry<Integer, String>> idsByQueuePosIterator = idsByQueuePosition.entrySet().iterator();\n\n\t\t\tprivate Integer currentPos = null;\n\t\t\tprivate String currentId = null;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn idsByQueuePosIterator.hasNext();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic E next() {\n\t\t\t\tfinal Map.Entry<Integer, String> currEntry = idsByQueuePosIterator.next();\n\t\t\t\tcurrentPos = currEntry.getKey();\n\t\t\t\tcurrentId = currEntry.getValue();\n\t\t\t\treturn beansById.get(currentId);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\t\t\t\tidsByQueuePosition.remove(currentPos);\n\t\t\t\tbeansById.remove(currentId);\n\t\t\t}\n\n\t\t};\n\t}",
"Collection<V> getAllElements();",
"private void createItemsetsOfSize1() {\n itemsets = new ArrayList<>();\n for (int i = 0; i < numItems; i++) {\n String[] cand = {words.get(i)};\n itemsets.add(cand);\n }\n }",
"@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(544,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test0\");\n EntrySetMapIterator<Integer, Object>[] entrySetMapIteratorArray0 = (EntrySetMapIterator<Integer, Object>[]) Array.newInstance(EntrySetMapIterator.class, 7);\n ObjectArrayIterator<EntrySetMapIterator<Integer, Object>> objectArrayIterator0 = new ObjectArrayIterator<EntrySetMapIterator<Integer, Object>>(entrySetMapIteratorArray0, 0, 0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) objectArrayIterator0, true);\n }",
"@Override\n protected boolean hasNextForCollection(Object qc) {\n boolean bRet = super.hasNextForCollection(qc);\n return bRet;\n }",
"private List<CollectionViewModel> createCollectionViewModelList(CollectionItemResults results){\n List<CollectionViewModel> list = new ArrayList<>();\n for(CollectionItemResult result : results.getResults()){\n CollectionViewModel collectionViewModel = new CollectionViewModel.Builder()\n .id(result.getId())\n .title(result.getTitle())\n .imageUrl(ImageLoaderManager.buildImageUrl(result.getThumbnail(),\n ImageLoaderManager.IMAGE_PORTRAIT))\n .build();\n\n list.add(collectionViewModel);\n }\n\n return list;\n }",
"@Override\n\tpublic List<Generator> getAll() {\n\n\t\tList<Generator> result = new ArrayList<>();\n\n\t\ttry (Connection c = context.getConnection(); \n\t\t\tStatement stmt = c.createStatement()) {\n\n\t\t\tResultSet rs = stmt.executeQuery(getAllQuery);\n\n\t\t\twhile (rs.next()) {\n \tGenerator generator = new Generator(\n \t\trs.getInt(1),\n \t\trs.getString(2),\n \t\trs.getString(3),\n \t\trs.getInt(4),\n \t\trs.getInt(5),\n \t\trs.getInt(6)\n \t);\n\t\t\t\tresult.add(generator);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn result;\n\t\t}\n\t\treturn result;\n\n\t}",
"@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }",
"List<T> collect();",
"public RandomFromCollectionGenerator(@Nonnull Collection<T> items) {\n this.items = ImmutableList.copyOf(checkNotNull(items, \"Collection for generation can't be null\"));\n exclusiveIndex = this.items.size();\n }",
"public Collection<T> readAll();",
"public Iterator<I> getReservables(){\n IterI iter = new IterI();\n return iter;\n }",
"public abstract Iterator<E> createIterator();",
"synchronized Collection getCreatedElements() {\n Collection col = new ArrayList(nestedElements.size());\n Iterator it = nestedElements.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry)it.next();\n if (entry.getValue() != null) {\n col.add(entry.getValue());\n }\n }\n return col;\n }",
"public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}",
"void addAll(Collection<Book> books);",
"private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }",
"public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}",
"@Override\n public Iterator<Map.Entry<K, V>> iterator() {\n return new SetIterator();\n }",
"public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }",
"private void setupCollector() {\n outList = new ArrayList<>();\n }",
"public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }",
"public ListIterator<T> getAllByColumnsIterator() {\n\t\tAllByColumnsIterator it = new AllByColumnsIterator();\n\t\treturn it;\n\t}",
"public TW<E> iterator() {\n ImmutableMultiset immutableMultiset = (ImmutableMultiset) this;\n return new N5(immutableMultiset, immutableMultiset.entrySet().iterator());\n }",
"@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }",
"@Nullable\n @SuppressWarnings(\"unchecked\")\n protected Collection createCollection(MappingContext context, Object value) {\n if (value instanceof Iterable<?>) {\n TypeInformation entryType = context.getGenericTypeInfoOrFail(0);\n Collection result = createCollectionMatchingType(context);\n\n int index = 0;\n for (Object entry : (Iterable) value) {\n Object convertedEntry = convertValueForType(context.createChild(\"[\" + index + \"]\", entryType), entry);\n if (convertedEntry == null) {\n context.registerError(\"Cannot convert value at index \" + index);\n } else {\n result.add(convertedEntry);\n }\n }\n return result;\n }\n return null;\n }",
"@Override\n public Iterator<E> iterator() {\n return new SimpleArrayListIterator<E>();\n }",
"public DbIterator iterator() {\n \tTupleDesc td = generateTupleDesc();\n List<Tuple> tuples = new ArrayList<Tuple>();\n if(gbField == NO_GROUPING){\n \tTuple tuple = new Tuple(td);\n \ttuple.setField(0, new IntField(tupleCounts.get(null)));\n \ttuples.add(tuple);\n } else {\n \tfor(Object key : tupleCounts.keySet()){\n \t\tTuple tuple = new Tuple(td);\n \t\ttuple.setField(0, (Field)key);\n \t\ttuple.setField(1, new IntField(tupleCounts.get(key)));\n \t\ttuples.add(tuple);\n \t}\n }\n return new TupleIterator(td, tuples);\n }",
"private static Iterator getAllElementsIterator(EventSource session, CollectionType collectionType, Object collection) {\n\t\treturn collectionType.getElementsIterator(collection, session);\n\t}",
"@Override\n public boolean hasNext() {\n return(it.hasNext());\n }",
"public Iiterator getIterator() { \n\t\treturn new GameCollectionIterator();\n\t}",
"private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}",
"Collection<V> getAllEntries();",
"public Iterator<T> iterator() {\r\n return byGenerations();\r\n }",
"public void forEach(Consumer<GeometricalObject> action);"
] |
[
"0.718921",
"0.57540685",
"0.5708069",
"0.5568053",
"0.5472186",
"0.5471689",
"0.5428076",
"0.5400247",
"0.5374498",
"0.5310962",
"0.5204498",
"0.51639795",
"0.5137918",
"0.51298785",
"0.5126415",
"0.51196796",
"0.51070404",
"0.51055044",
"0.50668776",
"0.50578314",
"0.49980024",
"0.4986778",
"0.49863213",
"0.4985114",
"0.49832237",
"0.4974359",
"0.49708226",
"0.49684447",
"0.4962177",
"0.49547952",
"0.49433148",
"0.49424493",
"0.4936786",
"0.49365637",
"0.4935936",
"0.4934828",
"0.49208596",
"0.49067092",
"0.4904392",
"0.49039975",
"0.49034503",
"0.49008474",
"0.49006248",
"0.48922578",
"0.4892193",
"0.48914292",
"0.48888332",
"0.48860237",
"0.48802918",
"0.48748234",
"0.48675448",
"0.48612866",
"0.48595524",
"0.4855406",
"0.48513344",
"0.4851334",
"0.48358524",
"0.48298487",
"0.48249966",
"0.482475",
"0.48168838",
"0.48132333",
"0.48052835",
"0.4799891",
"0.47994328",
"0.4798965",
"0.47910982",
"0.47844455",
"0.47836995",
"0.47828734",
"0.47739187",
"0.47722468",
"0.47710055",
"0.4767838",
"0.47621417",
"0.47600833",
"0.47592875",
"0.47586682",
"0.4755894",
"0.47551292",
"0.47548664",
"0.47405228",
"0.4731617",
"0.47313553",
"0.4728241",
"0.47277796",
"0.47181016",
"0.47157487",
"0.47153774",
"0.47142488",
"0.47139278",
"0.47130936",
"0.47085625",
"0.47053283",
"0.47047946",
"0.47042772",
"0.4699012",
"0.46987477",
"0.4696437",
"0.4696305"
] |
0.6450231
|
1
|
Create a token name
|
protected String getTokenName(Token parent, String transitionName, int loopIndex)
{
String suffix = "." + loopIndex;
if (transitionName == null || transitionName.isEmpty())
{
// No transition name
int size = (parent.getChildren() != null) ? parent.getChildren().size() + 1 : 1;
return buildTokenName("FOREACHFORK", suffix, size);
}
return findFirstAvailableTokenName(parent, transitionName, suffix);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void createLabelToken( String name, int id );",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"TokenTypes.TokenName getName();",
"private void createFunctName() {\n\t\ttry {\n\t\t\tString value = name();\n\t\t\ttoken = new Token(TokenType.FunctName, value);\n\t\t} catch (LexerException e) {\n\t\t\tcurrentIndex--;// that @ is also included\n\t\t\tthrow new LexerException(\"No valid function name!\");\n\t\t}\n\n\t}",
"void putToken(String name, String value);",
"public String createToken(String identity) throws InternalSkiException {\n byte[] tokenKey = getTokenKey();\n byte[] newKey = SkiKeyGen.generateKey(SkiKeyGen.DEFAULT_KEY_SIZE_BITS);\n\n Token tkn = new Token();\n tkn.setIdentity(identity);\n tkn.setKey(newKey);\n // log.info(\"New token key: \" + tkn.getKey());\n\n String tknValue = th.encodeToken(tkn, tokenKey);\n if (tknValue==null) {\n log.warning(\"Failed to encode token during token creation!\");\n }\n if (log.isLoggable(Level.FINE)) {\n log.fine(\"Created token with value: \" + tknValue);\n }\n return tknValue;\n }",
"public Optional<String> tokenName() {\n return Codegen.stringProp(\"tokenName\").config(config).get();\n }",
"public Name createName() {\n\t\treturn null;\n\t}",
"public Name createTemporaryName() {\n return Name.makeFresh(\"t\");\n }",
"public String genUserToken()\n\t{\n\t\tString token = \"\";\n\t\tfor (int i = 0; i < 16; i++)\n\t\t{\n\t\t\ttoken = token + tokenGenerator.nextInt(10);\n\t\t}\n\t\treturn token;\n\t}",
"public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"String getTokenName(FederationElement fedElem);",
"public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"public String generateToken(String username) {\n\t\tString token = username;\n\t\tLong l = Math.round(Math.random()*9);\n\t\ttoken = token + l.toString();\n\t\treturn token;\n\t}",
"public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }",
"protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}",
"TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public void makeName(String str) {\n this.name = str + iL++;\n }",
"String createToken(User user);",
"public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }",
"public String generateToken(HttpServletRequest request)\r\n\t{\r\n\t\treturn tokensManager.generateToken((HttpServletRequest) request);\r\n\t}",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"public String token() {\n return Codegen.stringProp(\"token\").config(config).require();\n }",
"void createRelationshipTypeToken( int id, String name );",
"String getTokenString();",
"@Override\n public String getName() {\n return Constant.messages.getString(\"pscanrules.noanticsrftokens.name\");\n }",
"String generateUniqueName();",
"public String generateToken(UserDetails userDetails) {\n\t\tMap<String, Object> claims = new HashMap<>();\n\t\treturn createToken(claims, userDetails.getUsername());\n\t}",
"public Token getName()\n {\n if (isVersion())\n {\n return getVersion();\n }\n\n return getModule();\n }",
"void createKeyword(String name);",
"public static String createToken(int userId) {\n String tokenRaw = userId + \"_\" + UUID.randomUUID().toString().replace(\"-\", \"\");\n return encryptedByMD5(tokenRaw);\n }",
"public static String generateTokenNumber(String serviceName, int tokenNumber) {\n if (serviceName != null && !serviceName.isEmpty()) {\n return serviceName.toUpperCase().charAt(0) + String.valueOf(tokenNumber);\n } else\n return String.valueOf(tokenNumber);\n }",
"public String getToken();",
"public static String createToken(UserDetails userDetails) {\n\t\tlong expires = System.currentTimeMillis() + 1000L * 60 * 30;\n\t\t\n\t\t/* Expires in three Year */\n\t\t//long expiresOneYear = System.currentTimeMillis() + 1000L * 60 * 60 * 24 * 365 *3;\n\t\t\n\t\tStringBuilder tokenBuilder = new StringBuilder();\n\t\ttokenBuilder.append(userDetails.getUsername());\n\t\ttokenBuilder.append(\":\");\n\t\t// set expire time\n\t\ttokenBuilder.append(expires);\n\t\t\n\t\ttokenBuilder.append(\":\");\n\t\t\n\t\ttokenBuilder.append(TokenUtils.computeSignature(userDetails, expires));\n\t\t\n\t\treturn tokenBuilder.toString();\n\t}",
"private String newToken(String token) {\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtils.extractEmail(token));\r\n userDetails.setUserType((String) jwtUtils.extractAllClaims(token).get(\"userType\"));\r\n return jwtUtils.generateToken(userDetails);\r\n }",
"private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }",
"AlphabetNameReference createAlphabetNameReference();",
"private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}",
"public static String getToken(String username)\n\t{\n\t\tif(Application.getAccountLibrary().getAccount(username) == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tString token = StringUtils.getRandomStringOfLettersAndNumbers(10)\n\t\t\t\t.toUpperCase();\n\t\tusernames.put(token, username);\n\t\treturn token;\n\t}",
"public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}",
"MnemonicNameReference createMnemonicNameReference();",
"public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }",
"private CompleteTokenDefinition createNewToken(\r\n\t\t\tConcreteSyntax syntax,\r\n\t\t\tAntlrTokenDerivator tokenDerivator, \r\n\t\t\tPlaceholderInQuotes placeholder) {\r\n\t\t// a token definition must be created\r\n\t\tQuotedTokenDefinition newToken = ConcretesyntaxFactory.eINSTANCE.createQuotedTokenDefinition();\r\n\t\t\r\n\t\tString name = tokenDerivator.deriveTokenName(placeholder);\r\n\t\tnewToken.setName(name);\r\n\t\t\r\n\t\tString expression = tokenDerivator.deriveTokenExpression(placeholder);\r\n\t\tnewToken.setSynthesizedRegex(expression);\r\n\t\t\r\n\t\tnewToken.setPrefix(placeholder.getNormalizedPrefix());\r\n\t\tnewToken.setSuffix(placeholder.getNormalizedSuffix());\r\n\t\tnewToken.setEscapeCharacter(placeholder.getNormalizedEscapeCharacter());\r\n\t\t\r\n\t\tsyntax.getSyntheticTokens().add(newToken);\r\n\t\treturn newToken;\r\n\t}",
"private String createFakeName() {\n final int firstLowercaseLetterAscii = 97;\n final int lowercaseLetterRange = 25;\n\n // Maximum length random name = 20\n final int minNameLength = 4;\n int randomNameLength = (random.nextInt(17)) + minNameLength;\n\n // Algorithm to generate the random name\n StringBuilder randomName = new StringBuilder();\n for (int i = 0; i < randomNameLength; i++) {\n char randChar = (char) (random.nextInt(lowercaseLetterRange + 1) + firstLowercaseLetterAscii);\n randomName.append(randChar);\n }\n return randomName.toString();\n }",
"private String getTokenValue(final Specimen objSpecimen, String token)\r\n\t\t\tthrows NameGeneratorException\r\n\t{\r\n//\t\tif(\"SYS_UID\".equals(token))\r\n//\t\t{\r\n//\t\t\tcurrentLabel = currentLabel+1;\r\n//\t\t}\r\n\t\tString mylable = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmylable = TokenFactory.getInstance(token).getTokenValue(objSpecimen);\r\n\r\n\t\t}\r\n\t\tcatch(TokenNotFoundException exp)\r\n\t\t{\r\n\t\t\tmylable = token;\r\n\t\t}\r\n\t\tcatch(ApplicationException excep)\r\n\t\t{\r\n\t\t\tthrow new NameGeneratorException(excep.getMsgValues());\r\n\t\t}\r\n\t\tif (mylable == null)\r\n\t\t{\r\n\t\t\tmylable = \"\";\r\n\t\t}\r\n\t\treturn mylable;\r\n\t}",
"public TokenInfo createToken(TokenCoreInfo coreInfo, String password);",
"public static <T> String generateName(@NonNull final ResourceHandlerRequest<T> request) {\n return IdentifierUtils.generateResourceIdentifier(\n request.getLogicalResourceIdentifier(),\n request.getClientRequestToken(),\n MAX_LENGTH_RESOURCE_NAME\n );\n }",
"public String createNewName() {\n\t\treturn null;\n\t}",
"public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }",
"public String generateTokenForUser(String userName) {\n\t\tSession session = new Session();\n\t\tString token = session.getToken();\n\t\tsessionMap.put(userName, session);\n\t\t\n\t\treturn Base64.getEncoder().encodeToString(token.getBytes());\n\t}",
"private static String generateToken(Accessor accessor) {\n return generateHash(accessor.getConsumerId() + System.nanoTime());\n }",
"public static String generate(String role, String employeeName){\n String token = JWT.create()\n .withClaim(\"role\", role) // adds data to payload\n .withClaim(\"employeeName\", employeeName)\n .sign(algorithm); // this generates signature and finalizes changes\n return token;\n }",
"public String createResetToken() {\n String uuid = UUID.randomUUID().toString();\n setResetToken(uuid);\n return uuid;\n }",
"private Token () { }",
"static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }",
"private String generateToken(User newUser) throws JSONException{\n User temp_user = userRepository.findByUsername(newUser.getUsername());\n String user_id = temp_user.getId().toString();\n\n //creating JSON representing new token format which then can be encoded --> DOUBLE CHECK IF ALSO WORKS WITH STRINGS ONLY\n JSONObject json = new JSONObject();\n json.put(\"user_id\", user_id);\n\n //creating and encoding token\n return Base64.getEncoder().encodeToString(json.toString().getBytes());\n }",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"String generateUserRenewalToken(String username);",
"public Token() {\n token = new Random().nextLong();\n }",
"String getNewName();",
"public Token toToken(String s);",
"private static void checkTokenName(String namedOutput) {\r\n\t\tif (namedOutput == null || namedOutput.length() == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Name cannot be NULL or emtpy\");\r\n\t\t}\r\n\t\tfor (char ch : namedOutput.toCharArray()) {\r\n\t\t\tif ((ch >= 'A') && (ch <= 'Z')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((ch >= 'a') && (ch <= 'z')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((ch >= '0') && (ch <= '9')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Name cannot be have a '\" + ch + \"' char\");\r\n\t\t}\r\n\t}",
"private String makeToken(int start, int end, boolean lowerCaseParam) {\n\n int sl = Math.max(1, (end - start));\n char c = '\\0';\n StringBuilder newToken = new StringBuilder(sl);\n\n for (int i = 0; i < sl; i++) {\n c = (lowerCaseParam)\n ? (Character.toLowerCase(this.inputString.charAt(i + start)))\n : this.inputString.charAt(i + start);\n newToken.append(c);\n }\n //String outputString = newToken.toString()+\"[\"+(start)+\":\"+(start+sl)+\"]\";\n String outputString = newToken.toString();\n return outputString;\n }",
"private void createTokenIndex(){\n\t\tLinkedList<String> tokens = new LinkedList<>(tokenDict.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(tokenDict.values());\n\t\tint k = 8;\n\n\t\tKFront kf = new KFront(true);\n\t\tkf.createKFront(k, tokens);\n\n\t\tTokensIndex tIdx = new TokensIndex(k, this.dir);\n\t\ttIdx.insertData(kf.getTable(), vals, kf.getConcatString());\n\n\t\tsaveToDir(TOKEN_INDEX_FILE, tIdx);\n\t}",
"String getUsernameFromToken(String token);",
"public String getToken(String name){\n\n return credentials.get(name, token);\n }",
"public static String makeUniqueName( String root )\n {\n if ( null == root || root.trim().length() == 0 )\n root = \"rxname\";\n int count;\n synchronized ( getInstance().getClass())\n {\n count = ms_counter++;\n }\n return root + count;\n }",
"public String generateStarterName() {\n\t\treturn starterName.get(roll.nextInt(starterName.size()));\n\t}",
"public StringBuilder createToken() throws IOException {\n /**\n * we need the url where we want to make an API call\n */\n URL url = new URL(\"https://api.scribital.com/v1/access/login\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n /**\n * set the required type, in this case it's a POST request\n */\n connection.setRequestMethod(\"POST\");\n\n /**\n * set the type of content, here we use a JSON type\n */\n connection.setRequestProperty(\"Content-Type\", \"application/json; utf-8\");\n connection.setDoOutput(true);\n\n /**\n * set the Timeout, will disconnect if the connection did not work, avoid infinite waiting\n */\n connection.setConnectTimeout(6000);\n connection.setReadTimeout(6000);\n\n /**\n * create the request body\n * here we need only the username and the api-key to make a POST request and to receive a valid token for the Skribble API\n */\n String jsonInputString = \"{\\\"username\\\": \\\"\" + username +\"\\\", \\\"api-key\\\":\\\"\" + api_key + \"\\\"}\";\n try(OutputStream os = connection.getOutputStream()){\n byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8);\n os.write(input,0, input.length);\n }\n\n /**\n * read the response from the Skriblle API which is a token in this case\n */\n try(BufferedReader br = new BufferedReader(\n new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {\n StringBuilder response = new StringBuilder();\n String responseLine = null;\n while ((responseLine = br.readLine()) != null) {\n response.append(responseLine.trim());\n Token = response;\n }\n }\n return Token;\n }",
"SimpleName getName();",
"private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}",
"public String generateToken(User userDetails) {\n\t\tMap<String, Object> claims = new HashMap<>();\n\t\tclaims.put(\"role\", userDetails.getRole());\n\t\treturn doGenerateToken(claims, userDetails.getUsername());\n\t}",
"void createPropertyKeyToken( String key, int id );",
"public String generateToken() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return jwtUtil.generateJwtToken(authentication);\n }",
"ElementNameCode(int token, String name) {\n super(token);\n this.name = name;\n }",
"String getTokenConversionIdentifier(String prependE);",
"private String issueToken(String username) {\n \n String token =TokenManagement.getTokenHS256(username,tokenSec,tokenduration);\n return token;\n }",
"private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }",
"public Element createXMLnode(String tokenType) {\n\t\tElement temp;\n\t\ttemp = document.createElement(tokenType);\n\t\ttemp.setTextContent(\" \" + jTokenizer.returnTokenVal(tokenType) + \" \");\n\t\treturn temp;\n\t}",
"private String generateToken(Map<String, Object> claims) {\n return Jwts.builder()\n .setClaims(claims)\n .setExpiration(new Date(System.currentTimeMillis() + 700000000))\n .signWith(SignatureAlgorithm.HS512, SECRET)\n .compact();\n }",
"public java.lang.String getToken(){\r\n return localToken;\r\n }",
"private Token getNextVariableName() {\n StringBuilder sb = new StringBuilder();\n\n while (currentIndex < this.data.length) {\n char currChar = this.data[currentIndex];\n\n if (Character.isLetterOrDigit(currChar) || currChar == '_') {\n sb.append(currChar);\n currentIndex++;\n } else {\n break;\n }\n }\n\n return new Token(TokenType.VARIABLE, sb.toString());\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }"
] |
[
"0.7503186",
"0.70444715",
"0.6837197",
"0.6809877",
"0.6654422",
"0.6491998",
"0.6474159",
"0.64544815",
"0.63933444",
"0.63713264",
"0.635753",
"0.6343176",
"0.6338541",
"0.6322881",
"0.6290891",
"0.6290891",
"0.6290891",
"0.6290891",
"0.6290891",
"0.6290891",
"0.628718",
"0.6253011",
"0.62446547",
"0.6223306",
"0.6201147",
"0.6201147",
"0.6201147",
"0.6201147",
"0.6201147",
"0.61770713",
"0.614788",
"0.61314523",
"0.6110101",
"0.60818255",
"0.6080678",
"0.6080678",
"0.6080678",
"0.60377455",
"0.6027461",
"0.6013406",
"0.60054046",
"0.59810686",
"0.5966065",
"0.5962794",
"0.59411323",
"0.5933211",
"0.5930154",
"0.5929297",
"0.592262",
"0.59111524",
"0.5907918",
"0.5884549",
"0.58606935",
"0.583037",
"0.5800798",
"0.5786087",
"0.57790244",
"0.5771674",
"0.5753958",
"0.5750364",
"0.5749994",
"0.5747135",
"0.57470083",
"0.57415664",
"0.5705177",
"0.569656",
"0.5695974",
"0.56894636",
"0.56876636",
"0.5672164",
"0.564861",
"0.56429094",
"0.562497",
"0.5622295",
"0.5618576",
"0.560588",
"0.5604748",
"0.5596056",
"0.55860025",
"0.5575651",
"0.55716413",
"0.55681086",
"0.5562322",
"0.5560851",
"0.5560809",
"0.55599743",
"0.5552044",
"0.5546384",
"0.55459726",
"0.5538897",
"0.5533686",
"0.5532563",
"0.55252963",
"0.55212444",
"0.5520781",
"0.5518865",
"0.55157137",
"0.55017054",
"0.55017054",
"0.55017054"
] |
0.56490827
|
70
|
Sets the list of objects to be iterated over.
|
public void setForeach(Element foreach)
{
this.foreach = foreach;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void set(Object[] objects) {\r\n this.objects = objects;\r\n }",
"private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }",
"public void setTheObjects(List newTheObjects) {\r\n theObjects = newTheObjects;\r\n }",
"public void updateList(List<?> listOfObjects){\n this.radioObjects = listOfObjects;\n }",
"public abstract void setList(List<T> items);",
"public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }",
"@Override\r\n public void setUp() {\r\n list = new DLList<String>();\r\n iter = list.iterator();\r\n }",
"public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }",
"public void setItems(){\n }",
"private void restList() {\n for (Processus tmp : listOfProcess) {\n tmp.resetProcess();\n }\n }",
"private void iniAllObjects(){\n References = new HashSet<>();\n\n TurnBack = findViewById(R.id.onItem_back);\n TurnBack.setOnClickListener(this);\n ShowOptions = findViewById(R.id.onItem_options);\n ShowOptions.setOnClickListener(this);\n\n RefrButton = findViewById(R.id.onItem_refr);\n RefrButton.setOnClickListener(this);\n RootButton = findViewById(R.id.onItem_root);\n RootButton.setOnClickListener(this);\n BackPageButton = findViewById(R.id.onItem_backpage);\n BackPageButton.setOnClickListener(this);\n AddPageButton = findViewById(R.id.onItem_add);\n AddPageButton.setOnClickListener(this);\n\n ItemType = findViewById(R.id.onItem_type);\n ItemWord = findViewById(R.id.onItem_word);\n ItemTran = findViewById(R.id.onItem_tran);\n ItemFon = findViewById(R.id.onItem_fon);\n ItemFlag = findViewById(R.id.onItem_flag);\n\n //iniRecyclerViewFragment();\n setObjectsContent();\n\n DotLayout = findViewById(R.id.onItem_dot);\n\n SlideViewPager = findViewById(R.id.onItem_ViewPager);\n SlideViewPager.addOnPageChangeListener(this);\n sliderAdapter = new SliderAdapter(this, getIntent().getExtras().getString(\"ThisInfo\"));\n SlideViewPager.setAdapter(sliderAdapter);\n\n addDotIndicator(0);\n }",
"protected MyAbstractList(E[] objects) {\n for (int i = 0; i < objects.length; i++)\n add(objects[i]);\n }",
"@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}",
"@Override\n public void reset() {\n iterator = collection.iterator();\n }",
"@Test(expected = IllegalStateException.class)\n public void testSet_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.set(3);\n\n instance.set(2);\n\n }",
"public void updateObjectLists() {\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements())\n ((InspectorInterface)e.nextElement()).updateObjectList();\n}",
"public void setValues(List<Object> values);",
"private void setObjects(){\n \n initialImg = \"\";\n initialImgDir= \"\";\n boolean first = true;\n \n \n for(IDataObject object : objects){\n \n locationFieldX.setText(doubleFormat.format(object.getXf()));\n locationFieldY.setText(doubleFormat.format(object.getYf()));\n locationFieldZ.setText(doubleFormat.format(object.getZf()));\n nameField.setText(object.getName());\n \n String rotX = doubleFormat.format(object.getRotationX());\n String rotY = doubleFormat.format(object.getRotationY());\n String rotZ = doubleFormat.format(object.getRotationZ());\n String scale = doubleFormat.format(object.getScale());\n \n //if more items are selected, check if they are different.\n if(!first && !rotationFieldX.getText().equals(rotX))\n rotationFieldX.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n rotationFieldX.setText(rotX);\n \n if(!first && !rotationFieldY.getText().equals(rotY))\n rotationFieldY.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n rotationFieldY.setText(rotY);\n \n if(!first && !rotationFieldZ.getText().equals(rotZ))\n rotationFieldZ.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n rotationFieldZ.setText(rotZ);\n \n if(!first && !scaleField.getText().equals(scale))\n scaleField.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n scaleField.setText(scale);\n\n if(initialImg != null){\n String imgNameLocal = object.getImgClass().getName();\n \n if(initialImg.equals(\"\"))\n initialImg = imgNameLocal;\n else if(initialImg.equals(imgNameLocal))\n initialImg = null;\n }\n\n if(initialImgDir != null){\n String imgDirLocal = object.getImgClass().getDir();\n \n if(initialImgDir.equals(\"\"))\n initialImgDir = imgDirLocal;\n else if(initialImgDir.equals(imgDirLocal))\n initialImgDir = null;\n }\n if(first)\n first = false;\n }\n \n initialX = locationFieldX.getText();\n initialY = locationFieldY.getText();\n initialZ = locationFieldZ.getText();\n initialRotX = rotationFieldX.getText();\n initialRotY = rotationFieldY.getText();\n initialRotZ = rotationFieldZ.getText();\n initialScale = scaleField.getText();\n initialName = nameField.getText();\n \n //lock specific fields, if there are more than one\n //item selected.\n if(objects.size()>1){\n locationFieldX.setText(\"\");\n locationFieldY.setText(\"\");\n locationFieldZ.setText(\"\");\n nameField.setText(\"\");\n locationFieldX.setEnabled(false);\n locationFieldY.setEnabled(false);\n locationFieldZ.setEnabled(false);\n nameField.setEnabled(false);\n setLabelColorStandard(xLabel, disabledColor);\n setLabelColorStandard(yLabel, disabledColor);\n setLabelColorStandard(zLabel, disabledColor);\n setLabelColorStandard(nameLabel, disabledColor);\n }else{\n locationFieldX.setEnabled(true);\n locationFieldY.setEnabled(true);\n locationFieldZ.setEnabled(true);\n nameField.setEnabled(true);\n setLabelColorStandard(xLabel, Color.red);\n setLabelColorStandard(yLabel, Color.blue);\n setLabelColorStandard(zLabel, Color.green);\n setLabelColorStandard(nameLabel, normalColor);\n }\n }",
"protected static void setAllMonsters(ArrayList<Monster> listMonsters) {\n allMonsters = listMonsters;\n }",
"public void run() {\n\t\t\t\t\t\t\t\t\t\titemList.clear();\r\n\t\t\t\t\t\t\t\t\t\tfor (IBMDataObject item : objects) {\r\n\t\t\t\t\t\t\t\t\t\t\titemList.add((Transaction) item);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsortItems(itemList);\r\n\t\t\t\t\t\t\t\t\t}",
"public void populateList() {\n }",
"@Override\n\tpublic void operation() {\n\t\tfor(Object object:list) {\n\t\t\t((Component)object).operation();\n\t\t}\n\t}",
"public void setObject(final List<T> objects) {\n getObject();\n\n if (objects == null) {\n setValues(new ArrayList<Value>(0));\n } else {\n List<Value> values = new ArrayList<Value>(objects.size());\n try {\n ValueFactory factory = UserSession.get().getJcrSession().getValueFactory();\n for (T object : objects) {\n switch (type) {\n case PropertyType.BOOLEAN:\n values.add(factory.createValue((Boolean) object));\n break;\n case PropertyType.DATE: {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime((Date) object);\n values.add(factory.createValue(calendar));\n break;\n }\n case PropertyType.DOUBLE:\n values.add(factory.createValue((Double) object));\n break;\n case PropertyType.LONG:\n values.add(factory.createValue((Long) object));\n break;\n case PropertyType.UNDEFINED: {\n if (object instanceof Boolean) {\n values.add(factory.createValue((Boolean) object));\n } else if (object instanceof Long) {\n values.add(factory.createValue((Long) object));\n } else if (object instanceof Double) {\n values.add(factory.createValue((Double) object));\n } else if (object instanceof Date) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime((Date) object);\n values.add(factory.createValue(calendar));\n } else if (object instanceof BigDecimal) {\n values.add(factory.createValue((BigDecimal) object));\n } else if (object instanceof String) {\n values.add(factory.createValue((String) object));\n } else {\n throw new RuntimeException(\"Could not determine value type of \" + object);\n }\n break;\n }\n default:\n // skip empty string as it cannot be an id in a list UI\n if (!object.toString().isEmpty()) {\n values.add(factory.createValue(object.toString(),\n (type == PropertyType.UNDEFINED ? PropertyType.STRING : type)));\n }\n }\n }\n } catch (RepositoryException ex) {\n log.error(ex.getMessage(), ex);\n return;\n }\n setValues(values);\n }\n }",
"public void setList(ArrayList<Song> theSongs) {\n songs1 = theSongs;\n songsNumber = songs1.size();\n }",
"public void tick()\n\t{\n\t\tfor(int i = 0; i < peopleList.size(); i++) {\n\t\t\tPerson tempObject = peopleList.get(i);\n\t\t\ttempObject.tick();\n\t\t}\n\t}",
"public void iterateEventList();",
"@Override\r\n protected void setItems(ObservableList otherTreeItems) {\r\n setAllItems(otherTreeItems);\r\n }",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }",
"public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }",
"public void setEntities(ArrayList<Entity> entities) {\n this.entities = entities;\n }",
"static void set() {\n\t\tArrayList<Integer> arr1=new ArrayList<>();\n\t\tfor(int i=0;i<10;i++) arr1.add(i);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t\tSystem.out.println();\n\t\tarr1.set(3, 100);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t}",
"@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.IPolymorphismSite> list) {\n polymorphismSite = list;\n // Add the primary keys to the serialized key list if there are any.\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto object : polymorphismSite) {\n polymorphismSiteKeys.add(object.getPrimaryKey());\n }\n }\n }",
"private void initList() {\n\n }",
"public ObjectMappers() {\n\t\tthis.objectMappers = ImmutableList.of();\n\t}",
"@Test\n public void testSetUsersList() {\n System.out.println(\"setUsersList\");\n Set<User> usersList = new HashSet<>();\n usersList.add(new User(\"test1\", \"[email protected]\"));\n sn10.setUsersList(usersList);\n assertEquals(usersList, sn10.getUsersList());\n }",
"@Override\n\tpublic void flushCars() {\n\t\tinList.flush();\n\t}",
"void setAllData()\n {\n this.filteredLessons = allLessons;\n notifyDataSetChanged();\n }",
"public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}",
"@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }",
"public synchronized void processAll()\r\n {\r\n if (!myItems.isEmpty())\r\n {\r\n myProcessor.accept(New.list(myItems));\r\n myItems.clear();\r\n }\r\n }",
"private void createIterator(List<StarMapComponent> listStarMapComponent) {\r\n this.starMapComponentIterator = new StarMapComponentIterator(listStarMapComponent);\r\n }",
"public void setProperties(Properties setList);",
"public void setEntities(ArrayList<Entity> entities) {\n\t\tthis.entities = entities;\n\t}",
"private void paintAllObjects()\n {\n for (int i = 0; i < allObjects.size(); i++)\n {\n JComponent c = (JComponent) allObjects.get(i);\n\n c.setBackground(backgroundColor);\n c.setForeground(foregroundColor);\n }\n }",
"public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }",
"private void setItems(Set<T> items) {\n Assertion.isNotNull(items, \"items is required\");\n this.items = items;\n }",
"private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}",
"public void moveAllItems() {\n for (BaseObject object : getAllItems()) {\n object.move();\n }\n }",
"public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}",
"public CollectionPermutationIter(List<E> objectsArray)\r\n/* */ {\r\n/* 96 */ this(objectsArray, new IntegerPermutationIter(objectsArray.size()));\r\n/* */ }",
"public void populateListaObjetos() {\n listaObjetos.clear();\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String tipo = null;\n if (selectedTipo.equals(\"submenu\")) {\n tipo = \"menu\";\n } else if (selectedTipo.equals(\"accion\")) {\n tipo = \"submenu\";\n }\n\n Criteria cObjetos = session.createCriteria(Tblobjeto.class);\n cObjetos.add(Restrictions.eq(\"tipoObjeto\", tipo));\n Iterator iteObjetos = cObjetos.list().iterator();\n while (iteObjetos.hasNext()) {\n Tblobjeto o = (Tblobjeto) iteObjetos.next();\n listaObjetos.add(new SelectItem(new Short(o.getIdObjeto()).toString(), o.getNombreObjeto(), \"\"));\n }\n } catch (HibernateException e) {\n //logger.throwing(getClass().getName(), \"populateListaObjetos\", e);\n } finally {\n session.close();\n }\n }",
"@Test\n public void testSetListItems() {\n System.out.println(\"setListItems\");\n List listItems = null;\n DataModel instance = new DataModel();\n instance.setListItems(listItems);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}",
"public void setElementAt(Object obj, int index);",
"@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"void provideObjects(Collection<? extends Object> objects);",
"public void setAtores(Iterator<IPessoa> atores);",
"public void setEmployees(ArrayList<Employee> employees) { \r\n this.employees = employees;\r\n }",
"@Test\n public void testSetCitiesList() {\n System.out.println(\"setCitiesList\");\n Set<City> citiesList = new HashSet<>();\n\n sn10.setCitiesList(citiesList);\n assertEquals(citiesList, sn10.getCitiesList());\n }",
"@Override\n\tpublic void setup() {\n\t\tfor (Communication communication: listCommunication) {\n\t\t\tcommunication.setup();\n\t\t}\n\t}",
"protected void setPrerequisiteObjects(List<Object> inputArgs)\n throws BaseCollectionException {\n // TODO Auto-generated method stub\n }",
"private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}",
"public void updateObjects()\r\n {\r\n //update states\r\n for (Ball ball : balls) {\r\n \tif(ball!=null)\r\n \t{\r\n\t \tif(ball.GetVisible()) ball.MoveDown();\r\n\r\n \t}\r\n \telse ball=null;\r\n }\r\n \r\n }",
"@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }",
"@Override\n public Iterator<Item> iterator(){return new ListIterator();}",
"@Override\n public void load(ObjectIterator<T> objects) {\n }",
"public void fillList()\n {\n for (Category item : itemsList)\n {\n item.setSelected(true);\n }\n notifyDataSetChanged();\n }",
"protected void setContacts(ArrayList<Contact> contacts){\n this.contacts = contacts;\n }",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"public void updateAnimalList(){\r\n // if (animals != null && animals.size() > 0)\r\n // {\r\n // \r\n // }\r\n // else\r\n // {\r\n animals.clear();\r\n \r\n for (fit5042.assign.repository.entity.Animal animal : animalManagedBean.getAllAnimals())//for each animal entry in the Entity Class Animal, get all animals\r\n {\r\n animals.add(animal); //add Animal data to the ArrayList<Animal> animals\r\n }\r\n \r\n setAnimal(animals); //set the global ArrayList attribute with the local ArrayList attribute\r\n // }\r\n }",
"private void refreshParameterValues(List<?> objects){\r\n\t\tDisplay.getDefault().asyncExec(()->{\r\n\t\t\tif(briqueTreeViewer == null) return;\r\n\t\t\tfor (Object obj : objects) {\r\n\t\t\t\tbriqueTreeViewer.refresh(obj);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}",
"protected void runBeforeIteration() {}",
"public void setAllValues() {\n//\t\tNewRestaurantDetailsByStoreId newRestaurantDetailsByStoreId = null;\n\t\t\n\t\tif (Constants.allthemes!=null){\n\t\t int length = Constants.allthemes.size();\n\t\t for(int i=0;i<length;i++){\n\t\t \tThemes currentTheme = Constants.allthemes.get(i);\n\t\t \tAddObjectToList(currentTheme.photo_url,\n\t\t \t\t\tcurrentTheme.title, \n\t\t\t\t\t\t\"~\"+currentTheme.content,\n\t\t\t\t\t\t\"\",\n\t\t\t\t\t\tcurrentTheme.themeIndex);\n\t\t }\n\t\t \n\t\t \n\t\t runOnUiThread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tprepareArrayLits();//CREATE LIST VIEW OF THE NEW RESTAURANTS\n\t\t\t\t}\n\t\t\t});\n\t\t}else{\n\t\t\tToast.makeText(SlyThemesActivity.this, \"無資料,請重開App.\",Toast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"public static void setInstance(GameObjectList gameObjects) {\n _instance = gameObjects;\n }",
"public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }",
"public void setObject(int i, T obj);",
"Foreach createForeach();",
"@Test\n public void testSet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }",
"private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}",
"private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }",
"@Override\n public Iterator<Item> iterator() {\n return new ListIterator();\n }",
"public PancakeHouseIterator(ArrayList items)\n {\n this.items = items;\n }",
"public void prepareForSpeciation() {\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.assignRep();\r\n\t\t}\r\n\r\n\t\t// clear the old species list\r\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.clearMembers();\r\n\t\t}\r\n\t}",
"public void initialize() {\r\n\t\tfor (iPhone iphone : iphoneList) {\r\n\t\t\tadd(iphone);\r\n\t\t}\r\n\t}",
"private void setData() {\n populateInterfaceElements();\n }",
"public ListState(DartObjectImpl[] elements) {\n this.elements = elements;\n }",
"public void setItems(List<T> value) {\n getElement().setItems(SerDes.mirror(value).cast());\n }",
"public void feedAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.feedPet();\n\t\t}\n\t}",
"protected void setSelectedObjects() {\r\n\t\tint index, arrayLength;\r\n\t\tVector oldObjects = (Vector) getSelectedObjects().clone();\r\n\t\tgetSelectedObjects().removeAllElements();\r\n\t\tint[] intArray = table.getSelectedRows();\r\n\t\tarrayLength = intArray.length;\r\n\t\tfor (int i = 0; i < arrayLength; i++) {\r\n\t\t\tindex = intArray[i];\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (dataObjects.size() > 0)\r\n\t\t\t\t\t\tselectedObjects.addElement(dataObjects.elementAt(index));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tselectedObjects.addElement(null);\r\n\t\t\t\t} catch (Throwable t) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Object newSingleSelection = getSelectedRowObject();\r\n\t\tnotifySelectedObjectsChanged(oldObjects, selectedObjects);\r\n\t\tnotifySelectedObjectChanged(oldObjects, selectedObjects);\r\n\t}",
"public List<Client> updateAll(List<Client> objects) {\n\t\treturn null;\r\n\t}",
"@Override\r\n protected void setAllItems(ObservableList treeItems) {\r\n getRootChildren().setAll(treeItems);\r\n }",
"public void assignAll(Collection<Shape> list, Graph graph) {\r\n\t\tfor (Shape shape : list) {\r\n\t\t\tassignMediaType(shape, graph);\r\n\t\t}\r\n\t}",
"public ObjectMappers(ImmutableList<ObjectMapper> objectMappers) {\n\t\tthis.objectMappers = objectMappers;\n\t}",
"protected void setDataProcessingList(ReferenceList<DataProcessing> dataProcessingList) {\n this.dataProcessingList = dataProcessingList;\n \n for(Spectrum spectrum : this)\n spectrum.setDataProcessingList(dataProcessingList);\n }",
"public void setList(List<Integer> list) {\n this.list = list;\n }",
"void setData(List<Person> data);",
"public void initAttributes(ObservableList<Item> items) {\n this.items = items;\n }",
"private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }"
] |
[
"0.65235376",
"0.6416109",
"0.6302367",
"0.619517",
"0.60610104",
"0.6025479",
"0.5994742",
"0.594299",
"0.5924589",
"0.58920807",
"0.5829409",
"0.5790885",
"0.5785277",
"0.5771489",
"0.57358605",
"0.5728675",
"0.5718265",
"0.571788",
"0.5717759",
"0.5706906",
"0.5668814",
"0.5652165",
"0.5642709",
"0.5607643",
"0.5604082",
"0.55865675",
"0.55698425",
"0.5535565",
"0.5534346",
"0.5523918",
"0.55174136",
"0.5511339",
"0.5502818",
"0.54974556",
"0.5488154",
"0.5476945",
"0.54587525",
"0.5440263",
"0.5429549",
"0.5428269",
"0.5424863",
"0.54134995",
"0.54065865",
"0.5406338",
"0.5405686",
"0.5398845",
"0.5393415",
"0.53916985",
"0.5389728",
"0.53795123",
"0.53726864",
"0.53704107",
"0.53679454",
"0.5362287",
"0.5361946",
"0.5358797",
"0.53540957",
"0.5345517",
"0.5340912",
"0.53385115",
"0.53232944",
"0.5313576",
"0.5313276",
"0.53091234",
"0.5307741",
"0.5302804",
"0.53023666",
"0.53003055",
"0.52905786",
"0.52840805",
"0.5277302",
"0.52772325",
"0.52747214",
"0.52713925",
"0.52705896",
"0.5269022",
"0.52668065",
"0.5266019",
"0.52645034",
"0.52608526",
"0.52597445",
"0.5259036",
"0.5255869",
"0.52532506",
"0.5252585",
"0.5244863",
"0.5243376",
"0.52418244",
"0.5241621",
"0.5240516",
"0.52376",
"0.5236714",
"0.52348447",
"0.5220747",
"0.5218867",
"0.5212457",
"0.52033514",
"0.5200099",
"0.5198947",
"0.51984197"
] |
0.53196174
|
61
|
Set the name of the variable to which the eleements of foreach are assigned.
|
public void setVar(String var)
{
this.var = var;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setVariable(Name variable) {\n this.variable = variable;\n }",
"public final void setVarName(String varName){\n\t\tthis.varName = varName;\t\n\t}",
"public final void setName(final GenericName name) {\n this.value = name.toString();\n final NameSpace scope = name.scope();\n if (scope != null && !scope.isGlobal()) {\n codeSpace = scope.name().toString();\n }\n }",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"public void setVarName(String text) {\n\t\tvarName=text;\r\n\t}",
"public void assign (String name, Value value){\n Closure exist = find_var(name);\n exist.getValues().put(name, value);\n }",
"public void setForeach(Element foreach)\n {\n this.foreach = foreach;\n }",
"public String getVariableName() {\n return _vname;\n }",
"public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String n){ name=n; }",
"public void onParaNameChangeByVar(int i) {\n }",
"public void setElementVarName(String elementVarName) {\r\n\t\tthis.elementVarName = elementVarName;\r\n\t}",
"public VariableNode(String name) {\n\t\tthis.name = name;\n\t}",
"public Variable(String name) {\r\n\tthis.name = name;\r\n }",
"public Variable(String name){\n this.name = name;\n }",
"public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }",
"public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }",
"public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }",
"private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }",
"protected void addVarNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VAR_NAME, true,\n\t\t\t\tfalse, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"public static void setName(String n){\n\t\tname = n;\n\t}",
"public final void setName(String name) {_name = name;}",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName(java.lang.String param) {\r\n localNameTracker = true;\r\n\r\n this.localName = param;\r\n\r\n\r\n }",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public Name getVariable() {\n return variable;\n }",
"private void updateLocalVar(Node node, String localVarName) {\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\t\tNodeList localVarNodeList = ((Element) node).getElementsByTagName(LOCAL_VARIABLE_NAME);\n\t\tif (localVarNodeList != null && localVarNodeList.getLength() > 0) {\n\t\t\tElement localVar = (Element) localVarNodeList.item(0);\n\t\t\tlocalVar.setAttribute(VALUE, localVarName);\n\t\t}\n\t}",
"public void assign (String name, StatementParse node, Closure parent){\n Closure exist = find_var(name);\n Value newClosure;\n if (node.getName().equals(\"function\")){\n newClosure = new Closure(parent, node);\n } else {\n newClosure = new Environment(parent, node);\n }\n exist.getValues().put(name, newClosure);\n }",
"@Override\n public Void visitTypeVariable(TypeVariable t, Void aVoid) {\n reflectClass.setName(t.asElement().getSimpleName().toString());\n return super.visitTypeVariable(t, aVoid);\n }",
"public void storeTitle(final String variableName);",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"public void setName(java.lang.String param) {\n localNameTracker = true;\n\n this.localName = param;\n }",
"public void setName(java.lang.String param) {\n localNameTracker = true;\n\n this.localName = param;\n }",
"public void setName(java.lang.String param) {\n localNameTracker = true;\n\n this.localName = param;\n }",
"public void setName(String val) {\n name = val;\n }",
"public void setName(String name) {\n fName= name;\n }",
"public void setElementName(SC elementName) {\n if(elementName instanceof org.hl7.hibernate.ClonableCollection)\n elementName = ((org.hl7.hibernate.ClonableCollection<SC>) elementName).cloneHibernateCollectionIfNecessary();\n _elementName = elementName;\n }",
"public void setVariable(String strVariable)\n {\n this.strVariable = strVariable;\n }",
"public void addViewVariable (String name, Object value)\n {\n _viewVariables.put (name, value);\n }",
"public void setName(String nm){\n\t\tname = nm;\n\t}",
"public void setName(String n) {\r\n name = n;\r\n }",
"Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }",
"public void setName (String n) {\n name = n;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}",
"public void setName(String value) {\n\t\tname = value;\n\t}",
"public void setVariable(Variable variable) {\n this.variable = variable;\n }",
"public void setName(String Name){\r\n name = Name;\r\n }",
"public void setMakeVariable(String name, String value) {\n pkgBuilder.setMakeVariable(name, value);\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public void setName(String val) {\n this.name = val;\n }",
"public VariableNode(String attr)\n {\n this.name = attr;\n }",
"public String getElementVarName() {\r\n\t\treturn elementVarName;\r\n\t}",
"public void addVariable(String varName)\n\t{\n\t\tget(VARSTRATEGY).addVariable(this, varName);\n\t}",
"public void storeValue(final String elementLocator, final String variableName);",
"public String getVariableName() {\n\t\treturn variableName;\n\t}",
"public String getVariableName() {\n\t\treturn variableName;\n\t}",
"public void assign (String name, int value){\n Closure exist = find_var(name);\n exist.getValues().put(name, new IntegerValue(value));\n }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"private void setPivotalElementName(final int index, final String name)\r\n {\r\n this.pivotalElementName[index] = name;\r\n }",
"public void setName(String newname){\n name = newname; \n }",
"private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}",
"public void setName(String value) {\n this.name = value;\n }",
"public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }",
"public void setName (String name){\n \n boyName = name;\n }",
"public void setName(String tmp) {\n this.name = tmp;\n }",
"public Variable getVariable(String name);",
"public void name(String nam) {\r\n\t\tname = nam;\r\n\t}",
"@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }",
"public void setName(String newName) {\r\n\t\tthis.holderName = newName;\r\n\t}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\theldObj.setName(name);\n\t}",
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"private Token getNextVariableName() {\n StringBuilder sb = new StringBuilder();\n\n while (currentIndex < this.data.length) {\n char currChar = this.data[currentIndex];\n\n if (Character.isLetterOrDigit(currChar) || currChar == '_') {\n sb.append(currChar);\n currentIndex++;\n } else {\n break;\n }\n }\n\n return new Token(TokenType.VARIABLE, sb.toString());\n }",
"public void setVariableQName(StructuredQName s) {\n variableQName = s;\n }",
"private void assignment() {\n\n\t\t\t}",
"public void setName(java.lang.String param) {\r\n localNameTracker = param != null;\r\n\r\n this.localName = param;\r\n }",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"Variable getTargetVariable();",
"public void setName(String name){\n this.name = name;\n }",
"public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}",
"public void setName(String name){this.name=name;}",
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setNameArray(int i, com.walgreens.rxit.ch.cda.PN name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.PN target = null;\n target = (com.walgreens.rxit.ch.cda.PN)get_store().find_element_user(NAME$8, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(name);\n }\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void makeName(String str) {\n this.name = str + iL++;\n }",
"@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}",
"public void setName(String newname) {\n name=newname;\n }",
"public void setName(int idx, String name) {\n\t\tnvPairs.set(idx << 1, name);\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"@Override\n\tprotected String getVariableClassName() {\n\t\treturn \"variable\";\n\t}",
"@Override\n public void enterVariableAssignmentStatement(MiniJavaParser.VariableAssignmentStatementContext ctx) {\n Symbol variable = currentScope.lookup(ctx.Identifier().getText());\n if (variable.isField()) {\n mg.loadThis();\n }\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}"
] |
[
"0.624864",
"0.62011325",
"0.6147744",
"0.60982144",
"0.6085197",
"0.60836095",
"0.5977164",
"0.59197867",
"0.59147227",
"0.58966917",
"0.57565945",
"0.5725616",
"0.569031",
"0.5656677",
"0.56203073",
"0.55796766",
"0.55796766",
"0.55796766",
"0.5571091",
"0.555476",
"0.55527645",
"0.5540512",
"0.5534322",
"0.55309236",
"0.5503208",
"0.549864",
"0.5489087",
"0.5488986",
"0.5446705",
"0.54311085",
"0.5428657",
"0.5426637",
"0.54243743",
"0.54243743",
"0.54243743",
"0.5417905",
"0.5415525",
"0.5408477",
"0.5401886",
"0.5398762",
"0.53977627",
"0.53952825",
"0.5394492",
"0.53943676",
"0.5394255",
"0.53914976",
"0.5377456",
"0.5350028",
"0.5343741",
"0.5341874",
"0.532941",
"0.532941",
"0.532941",
"0.5324716",
"0.53159595",
"0.53143513",
"0.5311036",
"0.5309247",
"0.5304568",
"0.5304568",
"0.52995765",
"0.52760285",
"0.52707416",
"0.52670735",
"0.5262221",
"0.52571005",
"0.5247157",
"0.52467406",
"0.5243376",
"0.52392095",
"0.52299607",
"0.5224936",
"0.5220133",
"0.5215414",
"0.5214652",
"0.5202924",
"0.5199984",
"0.5199772",
"0.51977867",
"0.5184799",
"0.51795155",
"0.5174526",
"0.5174526",
"0.5174526",
"0.5172966",
"0.51715463",
"0.5166677",
"0.5163348",
"0.5159327",
"0.5158698",
"0.5156936",
"0.51554847",
"0.51552",
"0.51497394",
"0.514913",
"0.51439834",
"0.5143639",
"0.5141503",
"0.5138608",
"0.5138113"
] |
0.51739985
|
84
|
Use only intermediate transactions
|
Motivo create(Motivo motivo);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Transaction getCurrentTransaction();",
"void readOnlyTransaction();",
"void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }",
"public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }",
"@Override\n public void rollbackTx() {\n \n }",
"Transaction beginTx();",
"private void rollbackTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().rollback();\n }\n }",
"protected abstract Transaction createAndAdd();",
"protected abstract void rollbackIndividualTrx();",
"@Override\n\tpublic boolean isJoinedToTransaction() {\n\t\treturn false;\n\t}",
"protected void maybeToReadonlyTransaction() {\n\t\tTransaction.current().toReadonly();\n\t}",
"Transaction createTransaction();",
"void rollback(Transaction transaction);",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"boolean getTransactional();",
"@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }",
"public void beginTransaction() throws Exception;",
"void rollbackTransaction();",
"public void createTransaction(Transaction trans);",
"void beginTransaction();",
"public void rollbackTx()\n\n{\n\n}",
"public void forceCommitTx()\n{\n}",
"protected void reuseTxn(Txn txn) throws Exception {\r\n }",
"public void beginTransaction() {\n\r\n\t}",
"private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }",
"IDbTransaction beginTransaction();",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"@Test\n public void processTestA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //pass transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),300);\n\n Assert.assertEquals(true,trans.process());\n }",
"@Transactional\n\tpublic Object rollBackAllWithDifferentTx(String action) {\n\t\tObject res;\n\t\ttry {\n\t\t\tres = annotationSubService.throwRunTimeExceptionInNewTx(action);\n\t\t\tuniActionLogDao.insert(res);\n\t\t\treturn res;\n\t\t} catch (Exception e) {\n\t\t\tres = \"F\";\n\t\t\tuniActionLogDao.insert(res);\n\t\t\tthrow e;\n\t\t}\n\t}",
"public DBMaker disableTransactions() {\n this.disableTransactions = true;\n return this;\n }",
"@Test\n public void processTestB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),2000);\n\n Assert.assertEquals(false,trans.process());\n }",
"IDbTransaction beginTransaction(IsolationLevel il);",
"public boolean flushTransactions() {\n return true;\n }",
"@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"@Test\n public void processTransactionManagerCaseD()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc3.get_Account_Number(),30));\n }",
"public GlobalTransaction getCurrentTransaction()\n {\n return getCurrentTransaction(true);\n }",
"@Test\n public void processTransactionManagerCaseC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc3.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public TransactionBuilder readOnly();",
"private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }",
"public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}",
"void confirmTrans(ITransaction trans);",
"Map retrievePreparedTransactions();",
"public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * The client supplied two phase commit identifier.\n\t */\n\n\tvoid commit(String tpcid);\n\n}",
"public void openTheTransaction() {\n openTransaction();\n }",
"@Transactional\n\tpublic Object rollBackAllWithSameTx2(String action) {\n\t\tObject res;\n\t\ttry {\n\t\t\tres = annotationSubService.throwRunTimeExceptionInSameTx(action);\n\t\t} catch (Exception e) {\n\t\t\tres = \"F\";\n\t\t}\n\t\tuniActionLogDao.insert(res);\n\t\treturn res;\n\t}",
"public Transaction startTransaction() {\r\n return getManager().startTransaction();\r\n }",
"public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}",
"@Override\n public void commitTx() {\n \n }",
"protected abstract void commitIndividualTrx();",
"public synchronized void setRollbackOnly() {\n rollbackOnly = true;\n if (transacted == Transacted.Xa) {\n try {\n transactionManager.setRollbackOnly();\n } catch (Exception e) {\n throw new TransactionException(e);\n }\n }\n }",
"TransactionContext preAppendTransaction() throws IOException;",
"public TransactionIsolation isolation();",
"@Test public void testTransactionExclusion3() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n\n try {\n server.start(THREAD1, XID2, XAResource.TMNOFLAGS, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"private static synchronized void writeTransaction( StmTransaction transaction ) {\n\n // Check for conflicts.\n for ( AbstractVersionedItem versionedItem : transaction.versionedItemsRead ) {\n versionedItem.ensureNotWrittenByOtherTransaction();\n }\n\n // Set the revision number to a committed value.\n transaction.targetRevisionNumber.set( lastCommittedRevisionNumber.incrementAndGet() );\n\n }",
"public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}",
"void startTransaction();",
"public GlobalTransaction getCurrentTransaction(Transaction tx)\n {\n return getCurrentTransaction(tx, true);\n }",
"OBasicTransaction getMicroOrRegularTransaction();",
"void sendTransaction(IUserAccount target, ITransaction trans, IUserAccount user);",
"void doTransaction (Redis redis) {\n\t \tswitch (redis.EXEC()) {\n\t \tcase OK:\n\t \tbreak;\n\t \tcase FAIL:\n \t\t\tdiscardTransaction(redis);\n\t\t\tbreak;\n\t \t}\n\t}",
"@Override\n\tpublic void joinTransaction() {\n\t\t\n\t}",
"Transaction createTransaction(Settings settings);",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"public void rollback();",
"public int startTransaction();",
"public boolean isTransactional()\n {\n return _isTransactional;\n }",
"@Test\n public void processTransactionManagerCaseB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(true,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"private void doRollback() throws TransactionInfrastructureException {\n\t\t// DO WE WANT TO ROLL\n\t\t//\t\tif (isTransactionalMethod(m))\n\t\tObject txObject = getTransactionObject();\n\t\tif (txObject == null)\n\t\t\tthrow new TransactionInfrastructureException(\"Cannot rollback transaction: don't have a transaction\");\n\t\trollback(txObject);\n\t}",
"<R> R doTransactionless(Supplier<R> work) {\n try {\n com.googlecode.objectify.ObjectifyService.push(\n com.googlecode.objectify.ObjectifyService.ofy().transactionless());\n return work.get();\n } finally {\n com.googlecode.objectify.ObjectifyService.pop();\n }\n }",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testNoDoubleSpending() {\n\n // Creates 100 coins to Alice\n Transaction createCoinTx = new Transaction();\n createCoinTx.addOutput(100, kpAlice.getPublic());\n createCoinTx.finalize();\n // Output of createCoinTx is put in UTXO pool\n UTXOPool utxoPool = new UTXOPool();\n UTXO utxo = new UTXO(createCoinTx.getHash(), 0);\n utxoPool.addUTXO(utxo, createCoinTx.getOutput(0));\n TxHandler txHandler = new TxHandler(utxoPool);\n\n // Alice transfers 10 coins to Bob, 20 to Cal\n Transaction tx1 = new Transaction();\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Alice wants double spending: transfers 10 coins to Bob, 20 to Cal again\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Sign for tx1: input 0\n byte[] sig1 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig1 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig1);\n\n // Sign for tx1: input 1\n byte[] sig2 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig2 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(1).addSignature(sig2);\n tx1.finalize();\n\n assertFalse(txHandler.isValidTx(tx1));\n }",
"public void updateTransaction(Transaction trans);",
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"@SuppressWarnings(\"unchecked\")\n public void checkTransactionIntegrity(TransactionImpl transaction) {\n Set threads = transaction.getAssociatedThreads();\n String rollbackError = null;\n synchronized (threads) {\n if (threads.size() > 1)\n rollbackError = \"Too many threads \" + threads + \" associated with transaction \"\n + transaction;\n else if (threads.size() != 0) {\n Thread other = (Thread) threads.iterator().next();\n Thread current = Thread.currentThread();\n if (current.equals(other) == false)\n rollbackError = \"Attempt to commit transaction \" + transaction + \" on thread \"\n + current\n + \" with other threads still associated with the transaction \"\n + other;\n }\n }\n if (rollbackError != null) {\n log.error(rollbackError, new IllegalStateException(\"STACKTRACE\"));\n markRollback(transaction);\n }\n }",
"public void authorizeTransaction() {}",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"@Test\n\t@DirtiesContext\n\tpublic void testTransacted() throws Exception {\n\t\tif (reader instanceof JpaPagingItemReader) {\n\t\t\t((JpaPagingItemReader<Foo>)reader).setTransacted(false);\n\t\t\tthis.testNormalProcessing();\n\t\t}//end if\n\t}",
"protected Transaction getTransaction() {\n return sessionFactory.getCurrentSession().getTransaction();\n }",
"@Test\n public void processCompoundTransaction_TestB() throws Exception {\n ct = new CompoundTransaction(\"compound\");\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),10001));\n\n ct.addTransaction(new Transaction(\"atomic2\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),40));\n\n Assert.assertEquals(false,trans_mang.processCompoundTransaction(ct));\n }",
"public void commitTransaction() {\n\r\n\t}",
"boolean requiresRollbackAfterSqlError();",
"protected final Transaction addTransaction(Transaction trans) {\n\t\treturn addTransactionTo(getAccount(), trans);\n\t}",
"@Test public void testTransactionExclusion2() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n\n try {\n server.start(THREAD2, XID1, XAResource.TMNOFLAGS, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30522 Global transaction Teiid-Xid global:1 branch:null format:0 already exists.\", ex.getMessage()); //$NON-NLS-1$\n }\n }",
"void rollbackTransaction(ConnectionContext context) throws IOException;",
"@Test\n public void processCompoundTransaction_TestA() throws Exception\n {\n ct = new CompoundTransaction(\"compound\");\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),10));\n\n ct.addTransaction(new Transaction(\"atomic2\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),40));\n\n Assert.assertEquals(true, trans_mang.processCompoundTransaction(ct));\n }",
"public static void deshacerTransaccion() {\n try {\n con.rollback();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic Transaction getTranWhere(Transaction transaction) throws Exception {\n\t\treturn null;\r\n\t}",
"@Test public void testTransactionExclusion5() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n server.start(THREAD2, XID2, XAResource.TMNOFLAGS, 100,false);\n server.end(THREAD2, XID2, XAResource.TMSUCCESS,false);\n\n try {\n server.start(THREAD1, XID2, XAResource.TMJOIN, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"void commitTransaction();",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"@Override\n public void setRollbackOnly() throws IllegalStateException, SystemException {\n assertActiveTransaction();\n getTransaction().setRollbackOnly();\n }",
"public final void testValidTransaction() {\n assertTrue(testTransaction1.isValidTransaction());\n assertFalse(testTransaction2.isValidTransaction());\n }",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"@Test\n public void processCompoundTransaction_TestD() throws Exception {\n ct = new CompoundTransaction(\"compound1\");\n ct1 = new CompoundTransaction(\"compound2\");\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n acc_db.addAccount(acc3);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),100));\n ct.addTransaction(new Transaction(\"atomic2\", acc_db,acc3.get_Account_Number(),acc2.get_Account_Number(),100));\n\n ct1.addTransaction(new Transaction(\"atomic3\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),200));\n\n ct.addTransaction(ct1);\n\n Assert.assertEquals(true,trans_mang.processCompoundTransaction(ct));\n }",
"@Override\n public void startTx() {\n \n }",
"public boolean isTransactionRunning();",
"@Override\n public void rollback()\n throws TransactionException\n {\n Iterator<Buffer> it=branchBuffers.iterator();\n while (it.hasNext())\n { \n it.next().rollback();\n it.remove();\n }\n state=State.ABORTED;\n \n }"
] |
[
"0.6459568",
"0.64064604",
"0.6257136",
"0.6251248",
"0.6216716",
"0.61883324",
"0.60906357",
"0.6078962",
"0.60405886",
"0.601583",
"0.59354913",
"0.5933812",
"0.5903239",
"0.5891196",
"0.58876294",
"0.58846617",
"0.5876406",
"0.5853591",
"0.58479667",
"0.5841988",
"0.5832449",
"0.58257985",
"0.5774394",
"0.57515806",
"0.57471657",
"0.57357085",
"0.5733502",
"0.57293516",
"0.57207596",
"0.5710117",
"0.570142",
"0.5698261",
"0.5694371",
"0.56899065",
"0.5689119",
"0.5683622",
"0.56813157",
"0.56710315",
"0.56672996",
"0.56581515",
"0.565098",
"0.56482327",
"0.56373125",
"0.5636976",
"0.5634852",
"0.5627664",
"0.5620979",
"0.5620791",
"0.5615971",
"0.5615468",
"0.56084245",
"0.56071645",
"0.5601129",
"0.558449",
"0.557934",
"0.5573895",
"0.5572225",
"0.5567977",
"0.5565282",
"0.5563225",
"0.55631554",
"0.555747",
"0.5547877",
"0.55320334",
"0.55310917",
"0.55303293",
"0.55181634",
"0.5499815",
"0.5496988",
"0.54937375",
"0.5489458",
"0.54870176",
"0.5470074",
"0.5457097",
"0.54512846",
"0.5445584",
"0.54432106",
"0.54429245",
"0.54412246",
"0.5440671",
"0.54382986",
"0.54338306",
"0.543121",
"0.54217905",
"0.54171216",
"0.5412779",
"0.5407503",
"0.54062164",
"0.54039365",
"0.5397381",
"0.5396202",
"0.53912187",
"0.5386586",
"0.5385536",
"0.5383886",
"0.53800344",
"0.5379329",
"0.5379022",
"0.53759897",
"0.5374858",
"0.5373169"
] |
0.0
|
-1
|
Use only intermediate transactions
|
Motivo update(Motivo update);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Transaction getCurrentTransaction();",
"void readOnlyTransaction();",
"void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }",
"public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }",
"@Override\n public void rollbackTx() {\n \n }",
"Transaction beginTx();",
"private void rollbackTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().rollback();\n }\n }",
"protected abstract Transaction createAndAdd();",
"protected abstract void rollbackIndividualTrx();",
"@Override\n\tpublic boolean isJoinedToTransaction() {\n\t\treturn false;\n\t}",
"protected void maybeToReadonlyTransaction() {\n\t\tTransaction.current().toReadonly();\n\t}",
"Transaction createTransaction();",
"void rollback(Transaction transaction);",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"boolean getTransactional();",
"@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }",
"public void beginTransaction() throws Exception;",
"void rollbackTransaction();",
"public void createTransaction(Transaction trans);",
"void beginTransaction();",
"public void rollbackTx()\n\n{\n\n}",
"public void forceCommitTx()\n{\n}",
"protected void reuseTxn(Txn txn) throws Exception {\r\n }",
"public void beginTransaction() {\n\r\n\t}",
"private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }",
"IDbTransaction beginTransaction();",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"@Test\n public void processTestA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //pass transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),300);\n\n Assert.assertEquals(true,trans.process());\n }",
"@Transactional\n\tpublic Object rollBackAllWithDifferentTx(String action) {\n\t\tObject res;\n\t\ttry {\n\t\t\tres = annotationSubService.throwRunTimeExceptionInNewTx(action);\n\t\t\tuniActionLogDao.insert(res);\n\t\t\treturn res;\n\t\t} catch (Exception e) {\n\t\t\tres = \"F\";\n\t\t\tuniActionLogDao.insert(res);\n\t\t\tthrow e;\n\t\t}\n\t}",
"public DBMaker disableTransactions() {\n this.disableTransactions = true;\n return this;\n }",
"@Test\n public void processTestB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),2000);\n\n Assert.assertEquals(false,trans.process());\n }",
"IDbTransaction beginTransaction(IsolationLevel il);",
"public boolean flushTransactions() {\n return true;\n }",
"@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"@Test\n public void processTransactionManagerCaseD()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc3.get_Account_Number(),30));\n }",
"public GlobalTransaction getCurrentTransaction()\n {\n return getCurrentTransaction(true);\n }",
"@Test\n public void processTransactionManagerCaseC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc3.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public TransactionBuilder readOnly();",
"private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }",
"public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}",
"void confirmTrans(ITransaction trans);",
"Map retrievePreparedTransactions();",
"public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * The client supplied two phase commit identifier.\n\t */\n\n\tvoid commit(String tpcid);\n\n}",
"public void openTheTransaction() {\n openTransaction();\n }",
"@Transactional\n\tpublic Object rollBackAllWithSameTx2(String action) {\n\t\tObject res;\n\t\ttry {\n\t\t\tres = annotationSubService.throwRunTimeExceptionInSameTx(action);\n\t\t} catch (Exception e) {\n\t\t\tres = \"F\";\n\t\t}\n\t\tuniActionLogDao.insert(res);\n\t\treturn res;\n\t}",
"public Transaction startTransaction() {\r\n return getManager().startTransaction();\r\n }",
"public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}",
"@Override\n public void commitTx() {\n \n }",
"protected abstract void commitIndividualTrx();",
"public synchronized void setRollbackOnly() {\n rollbackOnly = true;\n if (transacted == Transacted.Xa) {\n try {\n transactionManager.setRollbackOnly();\n } catch (Exception e) {\n throw new TransactionException(e);\n }\n }\n }",
"TransactionContext preAppendTransaction() throws IOException;",
"public TransactionIsolation isolation();",
"@Test public void testTransactionExclusion3() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n\n try {\n server.start(THREAD1, XID2, XAResource.TMNOFLAGS, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"private static synchronized void writeTransaction( StmTransaction transaction ) {\n\n // Check for conflicts.\n for ( AbstractVersionedItem versionedItem : transaction.versionedItemsRead ) {\n versionedItem.ensureNotWrittenByOtherTransaction();\n }\n\n // Set the revision number to a committed value.\n transaction.targetRevisionNumber.set( lastCommittedRevisionNumber.incrementAndGet() );\n\n }",
"public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}",
"void startTransaction();",
"public GlobalTransaction getCurrentTransaction(Transaction tx)\n {\n return getCurrentTransaction(tx, true);\n }",
"OBasicTransaction getMicroOrRegularTransaction();",
"void sendTransaction(IUserAccount target, ITransaction trans, IUserAccount user);",
"void doTransaction (Redis redis) {\n\t \tswitch (redis.EXEC()) {\n\t \tcase OK:\n\t \tbreak;\n\t \tcase FAIL:\n \t\t\tdiscardTransaction(redis);\n\t\t\tbreak;\n\t \t}\n\t}",
"@Override\n\tpublic void joinTransaction() {\n\t\t\n\t}",
"Transaction createTransaction(Settings settings);",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"public void rollback();",
"public int startTransaction();",
"public boolean isTransactional()\n {\n return _isTransactional;\n }",
"@Test\n public void processTransactionManagerCaseB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(true,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"private void doRollback() throws TransactionInfrastructureException {\n\t\t// DO WE WANT TO ROLL\n\t\t//\t\tif (isTransactionalMethod(m))\n\t\tObject txObject = getTransactionObject();\n\t\tif (txObject == null)\n\t\t\tthrow new TransactionInfrastructureException(\"Cannot rollback transaction: don't have a transaction\");\n\t\trollback(txObject);\n\t}",
"<R> R doTransactionless(Supplier<R> work) {\n try {\n com.googlecode.objectify.ObjectifyService.push(\n com.googlecode.objectify.ObjectifyService.ofy().transactionless());\n return work.get();\n } finally {\n com.googlecode.objectify.ObjectifyService.pop();\n }\n }",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testNoDoubleSpending() {\n\n // Creates 100 coins to Alice\n Transaction createCoinTx = new Transaction();\n createCoinTx.addOutput(100, kpAlice.getPublic());\n createCoinTx.finalize();\n // Output of createCoinTx is put in UTXO pool\n UTXOPool utxoPool = new UTXOPool();\n UTXO utxo = new UTXO(createCoinTx.getHash(), 0);\n utxoPool.addUTXO(utxo, createCoinTx.getOutput(0));\n TxHandler txHandler = new TxHandler(utxoPool);\n\n // Alice transfers 10 coins to Bob, 20 to Cal\n Transaction tx1 = new Transaction();\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Alice wants double spending: transfers 10 coins to Bob, 20 to Cal again\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Sign for tx1: input 0\n byte[] sig1 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig1 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig1);\n\n // Sign for tx1: input 1\n byte[] sig2 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig2 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(1).addSignature(sig2);\n tx1.finalize();\n\n assertFalse(txHandler.isValidTx(tx1));\n }",
"public void updateTransaction(Transaction trans);",
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"@SuppressWarnings(\"unchecked\")\n public void checkTransactionIntegrity(TransactionImpl transaction) {\n Set threads = transaction.getAssociatedThreads();\n String rollbackError = null;\n synchronized (threads) {\n if (threads.size() > 1)\n rollbackError = \"Too many threads \" + threads + \" associated with transaction \"\n + transaction;\n else if (threads.size() != 0) {\n Thread other = (Thread) threads.iterator().next();\n Thread current = Thread.currentThread();\n if (current.equals(other) == false)\n rollbackError = \"Attempt to commit transaction \" + transaction + \" on thread \"\n + current\n + \" with other threads still associated with the transaction \"\n + other;\n }\n }\n if (rollbackError != null) {\n log.error(rollbackError, new IllegalStateException(\"STACKTRACE\"));\n markRollback(transaction);\n }\n }",
"public void authorizeTransaction() {}",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"@Test\n\t@DirtiesContext\n\tpublic void testTransacted() throws Exception {\n\t\tif (reader instanceof JpaPagingItemReader) {\n\t\t\t((JpaPagingItemReader<Foo>)reader).setTransacted(false);\n\t\t\tthis.testNormalProcessing();\n\t\t}//end if\n\t}",
"protected Transaction getTransaction() {\n return sessionFactory.getCurrentSession().getTransaction();\n }",
"@Test\n public void processCompoundTransaction_TestB() throws Exception {\n ct = new CompoundTransaction(\"compound\");\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),10001));\n\n ct.addTransaction(new Transaction(\"atomic2\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),40));\n\n Assert.assertEquals(false,trans_mang.processCompoundTransaction(ct));\n }",
"public void commitTransaction() {\n\r\n\t}",
"boolean requiresRollbackAfterSqlError();",
"protected final Transaction addTransaction(Transaction trans) {\n\t\treturn addTransactionTo(getAccount(), trans);\n\t}",
"@Test public void testTransactionExclusion2() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n\n try {\n server.start(THREAD2, XID1, XAResource.TMNOFLAGS, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30522 Global transaction Teiid-Xid global:1 branch:null format:0 already exists.\", ex.getMessage()); //$NON-NLS-1$\n }\n }",
"void rollbackTransaction(ConnectionContext context) throws IOException;",
"@Test\n public void processCompoundTransaction_TestA() throws Exception\n {\n ct = new CompoundTransaction(\"compound\");\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),10));\n\n ct.addTransaction(new Transaction(\"atomic2\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),40));\n\n Assert.assertEquals(true, trans_mang.processCompoundTransaction(ct));\n }",
"public static void deshacerTransaccion() {\n try {\n con.rollback();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic Transaction getTranWhere(Transaction transaction) throws Exception {\n\t\treturn null;\r\n\t}",
"@Test public void testTransactionExclusion5() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n server.start(THREAD2, XID2, XAResource.TMNOFLAGS, 100,false);\n server.end(THREAD2, XID2, XAResource.TMSUCCESS,false);\n\n try {\n server.start(THREAD1, XID2, XAResource.TMJOIN, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"void commitTransaction();",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"@Override\n public void setRollbackOnly() throws IllegalStateException, SystemException {\n assertActiveTransaction();\n getTransaction().setRollbackOnly();\n }",
"public final void testValidTransaction() {\n assertTrue(testTransaction1.isValidTransaction());\n assertFalse(testTransaction2.isValidTransaction());\n }",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"@Test\n public void processCompoundTransaction_TestD() throws Exception {\n ct = new CompoundTransaction(\"compound1\");\n ct1 = new CompoundTransaction(\"compound2\");\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n acc_db.addAccount(acc3);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),100));\n ct.addTransaction(new Transaction(\"atomic2\", acc_db,acc3.get_Account_Number(),acc2.get_Account_Number(),100));\n\n ct1.addTransaction(new Transaction(\"atomic3\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),200));\n\n ct.addTransaction(ct1);\n\n Assert.assertEquals(true,trans_mang.processCompoundTransaction(ct));\n }",
"@Override\n public void startTx() {\n \n }",
"public boolean isTransactionRunning();",
"@Override\n public void rollback()\n throws TransactionException\n {\n Iterator<Buffer> it=branchBuffers.iterator();\n while (it.hasNext())\n { \n it.next().rollback();\n it.remove();\n }\n state=State.ABORTED;\n \n }"
] |
[
"0.6459568",
"0.64064604",
"0.6257136",
"0.6251248",
"0.6216716",
"0.61883324",
"0.60906357",
"0.6078962",
"0.60405886",
"0.601583",
"0.59354913",
"0.5933812",
"0.5903239",
"0.5891196",
"0.58876294",
"0.58846617",
"0.5876406",
"0.5853591",
"0.58479667",
"0.5841988",
"0.5832449",
"0.58257985",
"0.5774394",
"0.57515806",
"0.57471657",
"0.57357085",
"0.5733502",
"0.57293516",
"0.57207596",
"0.5710117",
"0.570142",
"0.5698261",
"0.5694371",
"0.56899065",
"0.5689119",
"0.5683622",
"0.56813157",
"0.56710315",
"0.56672996",
"0.56581515",
"0.565098",
"0.56482327",
"0.56373125",
"0.5636976",
"0.5634852",
"0.5627664",
"0.5620979",
"0.5620791",
"0.5615971",
"0.5615468",
"0.56084245",
"0.56071645",
"0.5601129",
"0.558449",
"0.557934",
"0.5573895",
"0.5572225",
"0.5567977",
"0.5565282",
"0.5563225",
"0.55631554",
"0.555747",
"0.5547877",
"0.55320334",
"0.55310917",
"0.55303293",
"0.55181634",
"0.5499815",
"0.5496988",
"0.54937375",
"0.5489458",
"0.54870176",
"0.5470074",
"0.5457097",
"0.54512846",
"0.5445584",
"0.54432106",
"0.54429245",
"0.54412246",
"0.5440671",
"0.54382986",
"0.54338306",
"0.543121",
"0.54217905",
"0.54171216",
"0.5412779",
"0.5407503",
"0.54062164",
"0.54039365",
"0.5397381",
"0.5396202",
"0.53912187",
"0.5386586",
"0.5385536",
"0.5383886",
"0.53800344",
"0.5379329",
"0.5379022",
"0.53759897",
"0.5374858",
"0.5373169"
] |
0.0
|
-1
|
set the singleton instance
|
@Override
public void start(Stage stage) throws Exception {
instance = this;
mainStage = stage;
HemsProps.init(hemsPropsPath);
//decide if data upload mode or normal production
if (!IS_DATA_UPLOAD_MODE) {
stage.setScene(createScene(loadMainPane()));
stage.setTitle(windowTitle);
stage.show();
} else {
DataCreator();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"synchronized public static void setInstance(SampletypeManager instance)\n {\n singleton = instance;\n }",
"private void initInstance() {\n init$Instance(true);\n }",
"synchronized public static void setInstance(InstitutionManager instance)\n {\n singleton = instance;\n }",
"public static void setInstance(Singleton updated) {\n instance = updated;\n }",
"synchronized public static void setInstance(PreferenceManager instance)\n {\n singleton = instance;\n }",
"protected static void setInstance(Security security)\n {\n __s_Instance = security;\n }",
"public void SetAsSingleton () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"private Singleton(){}",
"private SingletonSigar(){}",
"private OpenSimDB() {\n instance = this;\n }",
"static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}",
"public static void setApplication(ApplicationBase instance)\r\n {\r\n ApplicationBase.instance = instance;\r\n }",
"public static SingleObject getInstance(){\n return instance;\n }",
"public static void setInstance(GameState state) {\n\t\tGameState.instance = state;\n\t}",
"public static void setSingleton(Boolean singleton) {\r\n\t\tCompiler.singleton = singleton;\r\n\t}",
"@Override\n public T getInstance() {\n return instance;\n }",
"private SingletonSample() {}",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"private Singleton(){\n }",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"public void initializeInstance() {\n instanceLife = new Timer();\n }",
"private SingletonClass() {\n x = 10;\n }",
"public static Main getInstance() {\r\n return instance;\r\n }",
"private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public MarketDataManagerImpl()\n {\n instance = this;\n }",
"public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}",
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static Main getInstance() {\n return instance;\n }",
"public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"private SparkeyServiceSingleton(){}",
"public static void main(String[] args) {\n SingletonClass singletonClass = SingletonClass.getInstance();\n System.out.println(\"SingletonClass instance Created.Having value of x : \" + singletonClass.getX());\n// Setting the value of private variable of SingletonClass\n singletonClass.setX(11);\n// Getting the another instance of SingletonClass.This will return the same instance used before.\n SingletonClass singletonClass1 = SingletonClass.getInstance();\n System.out.println(\"SingletonClass instance used Having value of x : \" + singletonClass.getX());\n }",
"private Singleton()\n\t\t{\n\t\t}",
"private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }",
"public static Singleton getInstance() {\n return mSing;\n }",
"private FanState() {\n\t\tinstance = this;\n\t}",
"public static void initInstance() {\r\n\t\tif(instance==null) {\r\n\t\t\tinstance = new MarcHelperManager();\r\n\t\t}\r\n//\t\tlogger.info(MarcHelperManager.class.getName()+\" initialized\");\r\n\t}",
"public static void setInstance(IdServer inInstance) {\n\t\tserver = inInstance;\n\t}",
"synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }",
"private Singleton() { }",
"private Singleton() {\n\t}",
"public App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}",
"public static class_config getinstance(){\n\t\tif (instance==null){\n\t\t\tinstance = new class_config();\n\t\t\t\n singleton.mongo=new Mongo_DB();\n singleton.nom_bd=singleton.mongo.getNom_bd();\n singleton.nom_table=singleton.mongo.getNom_table();\n singleton.client = Mongo_DB.connect();\n if (singleton.client != null) {\n singleton.db = singleton.mongo.getDb();\n singleton.collection = singleton.mongo.getCollection();\n }\n \n\t\t\tsingleton_admin.admin= new ArrayList<admin_class>();\n\t\t\tsingleton_client.client= new ArrayList<client_class>();\n\t\t\tsingleton_reg.reg= new ArrayList<reg_user_class>();\n\t\t\t\n// A_auto_json.auto_openjson_admin();\n// C_auto_json.auto_openjson_client();\n R_auto_json.auto_openjson_reg();\n //funtions_files.auto_open();\n\t\t\tauto_config.auto_openconfig();\n //class_language.getinstance();\n\t\t\tsingleton_config.lang=new class_language();\n \n connectionDB.init_BasicDataSourceFactory();\n \n\t\t}\n\t\treturn instance;\n\t}",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"@VisibleForTesting\n static void resetInstance() {\n sInstance = null;\n }",
"public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"private SingletonObject() {\n\n\t}",
"private SingletonEager(){\n \n }",
"public static ConversionUtils setInstance(ConversionUtils newInstance) {\n ConversionUtils instance = newInstance;\n if (instance == null) {\n instance = new ConversionUtils();\n instance.singleton = true;\n }\n ConversionUtils.timesCreated++;\n instanceStorage = new SoftReference<ConversionUtils>(instance);\n return instance;\n }",
"public Climber(){\n\t\tinst = this;\n\t}",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"public static void setSharedInstance(EnduserApi sharedInstance) {\n EnduserApi.sharedInstance = sharedInstance;\n }",
"private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"public static test5 getinstance(){\r\n\t\t return instance;\r\n\t }",
"public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}",
"private LazySingleton(){}",
"public T getInstance() {\n return instance;\n }",
"private J2_Singleton() {}",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static Light getInstance() {\n\treturn INSTANCE;\n }",
"private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }",
"public static void resetInstance() {\n\t\tinstance = null;\n\t}",
"public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"private ScriptInstanceManager() {\n\t\tsuper();\n\t}",
"protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }",
"public static IndicieSeznam getInstance() {\n\n return ourInstance;\n }",
"public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n singleton = this;\n try {\n /*TODO: Inicializar Server\n * */\n Server.getInstance(this).init();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }",
"public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}",
"public void setUAInstance(UA instance)\n\t{\n\t\tif(ua == null)\n\t\t{\n\t\t\tua = instance;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Error(\"Can't set an object's UA instance more than once\");\n\t\t}\n\t}",
"private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"protected void initSingletons()\n {\n Singleton.initInstance();\n }",
"public static void setInstance(SymTypeExpressionDeSer theInstance) {\n if (null == theInstance) { //in this case, \"reset\" to default type\n instance = new SymTypeExpressionDeSer();\n }\n else {\n instance = theInstance;\n }\n }",
"public static SingletonEager get_instance(){\n }",
"public static MetaDataManager getInstance() {\n return instance;\n }",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"Instance createInstance();",
"public static FacadeMiniBank getInstance(){\r\n\r\n\t\tif(singleton==null){\r\n\t\t\ttry {\r\n\t\t\t\t//premier essai : implementation locale\r\n\t\t\t\tsingleton=(FacadeMiniBank) Class.forName(implFacadePackage + \".\" + localeFacadeClassName).newInstance();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage() + \" not found or not created\");\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif(singleton==null){\r\n\t\t\t//deuxieme essai : business delegate \r\n\t\t singleton=getRemoteInstance();\r\n\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn singleton;\r\n\t}",
"public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static InspectorManager getInstance() {\n if (instance==null) instance = new InspectorManager();\n return instance;\n}",
"public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }",
"public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}",
"private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}",
"public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }",
"public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }",
"public static AccessSub getInstance() {\n\t\treturn instance;\n\t}",
"private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}",
"public static void setInstance(GameObjectList gameObjects) {\n _instance = gameObjects;\n }",
"private static LogUtil getInstance() {\r\n if (instance == null) {\r\n final LogUtil l = new LogUtil();\r\n l.init();\r\n if (isShutdown) {\r\n // should not be possible :\r\n if (l.log.isErrorEnabled()) {\r\n l.log.error(\"LogUtil.getInstance : shutdown detected : \", new Throwable());\r\n }\r\n return l;\r\n }\r\n instance = l;\r\n\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.getInstance : new singleton : \" + instance);\r\n }\r\n }\r\n\r\n return instance;\r\n }",
"public static synchronized TwitchEmotesContainer setInstance(int capacity) {\n\t\tif (singleton == null) {\n\t\t\tsingleton = new TwitchEmotesContainer(capacity);\n\t\t}\n\t\treturn singleton;\n\t}",
"private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }",
"synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }",
"private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }",
"public static void setInstance(ArtMap artmap) {\n\t\tpluginInstance = artmap;\n\t}",
"public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }"
] |
[
"0.7714729",
"0.74094415",
"0.7332483",
"0.7234276",
"0.71962744",
"0.7107162",
"0.6925527",
"0.67188203",
"0.67060095",
"0.66975015",
"0.6632751",
"0.65706414",
"0.65555054",
"0.65516317",
"0.643906",
"0.6421823",
"0.64146376",
"0.6393991",
"0.6386717",
"0.6379647",
"0.6374763",
"0.6374071",
"0.6361667",
"0.63466924",
"0.6346257",
"0.6344192",
"0.63314635",
"0.6328116",
"0.63275045",
"0.6322425",
"0.6321085",
"0.6301843",
"0.62654084",
"0.6258527",
"0.6250215",
"0.623455",
"0.621759",
"0.6211201",
"0.6210926",
"0.6201944",
"0.61924994",
"0.61923045",
"0.61698616",
"0.61550426",
"0.6147009",
"0.6139302",
"0.6130652",
"0.61189276",
"0.61084545",
"0.61058545",
"0.6084106",
"0.60824525",
"0.6075094",
"0.6054476",
"0.60478616",
"0.6046067",
"0.6042416",
"0.6031705",
"0.602033",
"0.6020036",
"0.5997539",
"0.5991626",
"0.59897506",
"0.598265",
"0.59729385",
"0.5968296",
"0.5947661",
"0.59442407",
"0.59408724",
"0.5933208",
"0.5929826",
"0.5928209",
"0.5925632",
"0.58936745",
"0.58814704",
"0.5878278",
"0.58766025",
"0.5875705",
"0.5870308",
"0.5862786",
"0.5862006",
"0.5860915",
"0.5859885",
"0.5848562",
"0.5848499",
"0.5846189",
"0.58436626",
"0.58292454",
"0.5828825",
"0.58249515",
"0.5815291",
"0.58149046",
"0.58118093",
"0.5809965",
"0.58030176",
"0.58021116",
"0.58004624",
"0.57987446",
"0.57984763",
"0.57974094",
"0.57972795"
] |
0.0
|
-1
|
/ DATA CREATION ACTIVITY
|
private void DataCreator() {
// Creation of employees
Employee emp1 = new Employee("Akos", "Toth", true);
Employee emp2 = new Employee("Gabor", "Kovacs", true);
Employee emp3 = new Employee("Adam", "Ciceri", true);
empRep.save(emp1);
empRep.save(emp2);
empRep.save(emp3);
LOGGER.info("TEST DATA: Employees saved!");
// creation of tasks
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
try {
TaskStates task1State = new TaskStates("CLOSED");
ProjectTask task1 = new ProjectTask(
"Modelling of system",
"Engineering Systems Analyst",
"Engineering Systems Analyst Dorking Surrey Salary ****K Our client is located in Dorking, Surrey and are looking for Engineering Systems Analyst our client provides specialist software development Keywords Mathematical Modelling, Risk Analysis, System Modelling, Optimisation, MISER, PIONEEER Engineering Systems Analyst Dorking Surrey Salary ****K",
task1State,
sdf.parse("20-01-2015"),
sdf.parse("25-01-2015"),
0.9);
TaskStates task2State = new TaskStates("OPEN");
ProjectTask task2 = new ProjectTask(
"Material performance design",
"Stress Engineer Glasgow",
"Stress Engineer Glasgow Salary **** to **** We re currently looking for talented engineers to join our growing Glasgow team at a variety of levels. The roles are ideally suited to high calibre engineering graduates with any level of appropriate experience, so that we can give you the opportunity to use your technical skills to provide high quality input to our aerospace projects, spanning both aerostructures and aeroengines. In return, you can expect good career opportunities and the chance for advancement and personal and professional development, support while you gain Chartership and some opportunities to possibly travel or work in other offices, in or outside of the UK. The Requirements You will need to have a good engineering degree that includes structural analysis (such as aeronautical, mechanical, automotive, civil) with some experience in a professional engineering environment relevant to (but not limited to) the aerospace sector. You will need to demonstrate experience in at least one or more of the following areas: Structural/stress analysis Composite stress analysis (any industry) Linear and nonlinear finite element analysis Fatigue and damage tolerance Structural dynamics Thermal analysis Aerostructures experience You will also be expected to demonstrate the following qualities: A strong desire to progress quickly to a position of leadership Professional approach Strong communication skills, written and verbal Commercial awareness Team working, being comfortable working in international teams and self managing PLEASE NOTE SECURITY CLEARANCE IS REQUIRED FOR THIS ROLE Stress Engineer Glasgow Salary **** to ****",
task2State,
sdf.parse("20-06-2015"),
null,
0.0);
TaskStates task3State = new TaskStates("IN_PROGRESS");
ProjectTask task3 = new ProjectTask(
"Implementation embedded system",
"CNC Programmer",
"Working within a small but busy sub contract ISO accredited sub contract machine shop. Must be able to programme straight from drawings programming and operating a Bridgeport VMC or a Haas VMC with Heidenhain controls. Machining 1 off,s to small batch work. Hours of work are Mon Thurs 8am 5.00pm and 3.00pm finish on a Friday",
task3State,
sdf.parse("20-03-2015"),
null,
0.0);
taskStatesRep.save(task1State);
taskStatesRep.save(task2State);
taskStatesRep.save(task3State);
prjTaskRep.save(task1);
prjTaskRep.save(task2);
prjTaskRep.save(task3);
LOGGER.info("TEST DATA: Tasks and task statuses saved!");
// creation of project
Project prj1 = new Project("Building modernization", sdf.parse("01-01-2015"), sdf.parse("01-09-2015"), 0.9, 0.1, true);
TaskSet tskSet1 = prj1.assignTaskToEmployee(emp1, task1);
TaskSet tskSet2 = prj1.assignTaskToEmployee(emp2, task2);
TaskSet tskSet3 = prj1.assignTaskToEmployee(emp3, task3);
taskSetRep.save(tskSet1);
taskSetRep.save(tskSet2);
taskSetRep.save(tskSet3);
LOGGER.info("TEST DATA: Task sets are saved!");
prjRep.save(prj1);
LOGGER.info("TEST DATA: Projects are saved!");
//creation of Performance statistics
PerfStat emp1PerfStat = new PerfStat(prj1, emp1, 10, 5, 0, 100);
PerfStat emp2PerfStat = new PerfStat(prj1, emp2, 5, 15, 6, 170);
PerfStat emp3PerfStat = new PerfStat(prj1, emp3, 0, 6, 3, 20);
perfStatRep.save(emp1PerfStat);
perfStatRep.save(emp2PerfStat);
perfStatRep.save(emp3PerfStat);
LOGGER.info("TEST DATA: Project and employee assignments are saved!");
LOGGER.info("TEST DATA: Upload of TEST employee, task and project data is FINISHED!");
} catch (ParseException e) {
e.printStackTrace();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"CreationData creationData();",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"private void createData() {\n//\n// tour = new Tour();\n// tour.setTitle(\"Death Valley\");\n// tour.setDescription(\"A tour to Death Valley\");\n// tour.setPrice(900);\n// tour.setImage(\"death_valley\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n//\n// tour = new Tour();\n// tour.setTitle(\"San Francisco\");\n// tour.setDescription(\"A tour to San Francisco\");\n// tour.setPrice(1200);\n// tour.setImage(\"san_francisco\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n\n ToursPullParser parser = new ToursPullParser();\n tours = parser.parseXML(this);\n\n for (Tour tour : tours) {\n dataSource.create(tour);\n }\n\n }",
"@Override\n public void Create() {\n initView();\n initData();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\ttxtName = (TextView)getView().findViewById(R.id.txtName);\n\t\ttxtDate =(TextView)getView().findViewById(R.id.txtDateOfCreation);\n\t\ttxtDesc = (TextView)getView().findViewById(R.id.txtDesc);\n\t\t\n\t\tvalidateExtra();\n\t\tif(entity!=null)\n\t\t{\n\t\t\tsetData();\n\t\t}else\n\t\t{\n\t\t\t//error\n\t\t}\n\n\t}",
"protected abstract D createData();",
"private void initData() {\n\t\tIntent intent = getIntent();\r\n\t\t\r\n\t\tstoid = intent.getStringExtra(\"stoid\");\r\n\t\t\r\n\t\tRequestParams params = new RequestParams();\r\n\t\tparams.addBodyParameter(\"stoid\", stoid);\r\n\t\t\r\n\t\tMyApplication.httpUtils.send(HttpMethod.POST, HttpUrl.STORESINFO, params, new RequestCallBack<String>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\r\n\t\t\t\t//Toast.makeText(SnaDetailsActivity.this, \"StoryContentInfo数据加载失败\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\t//storycontentinfo = MyApplication.gson.fromJson(json, StoryContentInfo.class);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString json = arg0.result;\r\n\t\t\t\t\tLog.i(\"json=\", \"dealjson=\"+json);\r\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(arg0.result);\r\n\t\t\t\t\tsto_name = jsonObject.getJSONObject(\"stoinfo\").getString(\"sto_name\");\r\n\t\t\t\t\tsto_addr = jsonObject.getJSONObject(\"stoinfo\").getString(\"sto_addr\");\r\n\t\t\t\t\tproject = jsonObject.getJSONObject(\"stoinfo\").getString(\"sto_content\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tstoyrName.setText(sto_name);\r\n\t\t\t\t\tstory_addr.setText(sto_addr);\r\n\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}",
"private void initData() {\n\n }",
"@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tEventData.create(db);\n\t\t\tTriggerData.create(db);\n\t\t\tHostData.create(db);\n\t\t\tHostGroupData.create(db);\n\t\t\tItemData.create(db);\n\t\t\tApplicationData.create(db);\n\t\t\tCacheData.create(db);\n\t\t\tApplicationItemRelationData.create(db);\n\t\t\tHistoryDetailData.create(db);\n\t\t\tScreenData.create(db);\n\t\t\tScreenItemData.create(db);\n\t\t\tGraphData.create(db);\n\t\t\tGraphItemData.create(db);\n\t\t}",
"private void InitData() {\n\t}",
"DataModel createDataModel();",
"@Override\n public void onCreate (Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_data_sync_step_1);\n\n\n //등장애니..\n overridePendingTransition(R.anim.push_left_in_fast, R.anim.push_left_out_half);\n\n MAC = getIntent().getStringExtra(EXTRA_KEY_MACADDRESS);\n DATA = new BeaconItemDto ();\n DATA.sticker = JobProcessController.getInstance(mActivity, this).getStickerForService(MAC);\n DATA.MAC = MAC;\n DATA.min_temperature_limit = 0;\n DATA.max_temperature_limit = 0;\n\n mLogger = new LoggerData();\n mLoggerNew = new LoggerDataNew();\n\n initBluetoothAdapter ();\n setLayout ();\n initData ();\n }",
"public void addData() {\n boolean isInserted = my_db.insertData(\"LIC\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"LIC inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mutual Fund\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mutual Fund inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mediclaim\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mediclaim inserted\", Toast.LENGTH_SHORT).show();\n\n }\n }",
"private void initData(){\n\n }",
"@Override\n\tprotected void setupData() {\n\t\tisFirst = getIntent().getExtras().getBoolean(\"IS_FIRST\");\n\t\tcid = getIntent().getExtras().getString(FirstCategoryAct.class.getName());\n\t\tString title;\n\t\tif(isFirst){\n\t\t\ttitle = getIntent().getExtras().getString(\"TITLE_BAR\") + getResources().getString(R.string.tv_article_all);\n\t\t}else{\n\t\t\ttitle = getResources().getString(R.string.tv_article_all2);\n\t\t}\n\t\t\n\t\tsetGCenter(true, title);\n\t\tsetGLeft(true, R.drawable.back_selector);\n\n\t\tgetData(NET_ARTICLE, false);\n\t}",
"private void initData() {\n }",
"public mainData() {\n }",
"private void initData() {\n\t}",
"@Override \n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent); \n \n initData();\n }",
"private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializableExtra(\"job\");\n\t\tedt_content.setText(job.getJobContent());\n\t\tedt_course.setText(job.getCourseName());\n\t}",
"public Object create( DataWrapper data) {\n return LoadManager.getItem(data.getString(\"type\"),data.getName());\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"public void initData() {\n }",
"public void initData() {\n }",
"public InitialData(){}",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }",
"public void generateData()\n {\n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"public void InitData() {\n }",
"@Override\n public void onClick(View v) {\n\n DBCreate();\n\n SubmitData2SQLiteDB();\n\n }",
"private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}",
"public void initData(){\n\n String birdname,birdscientificname,birdfamily,birdecosystem;\n Bundle extras = getActivity().getIntent().getExtras();\n if(extras == null) {\n birdname=null;\n birdscientificname=null;\n birdfamily=null;\n birdecosystem=null;\n } else {\n birdname=extras.getString(\"birdname\");\n birdscientificname=extras.getString(\"birdscientificname\");\n birdfamily=extras.getString(\"birdfamily\");\n birdecosystem=extras.getString(\"birdecosystem\");\n }\n\n presenter.initData(birdname,birdscientificname,birdfamily,birdecosystem,imageView1,imageView2,imageView3);\n }",
"private void initdata() {\n\t\tProgressDialogUtil.showProgressDlg(this, \"加载数据\");\n\t\tProdDetailRequest req = new ProdDetailRequest();\n\t\treq.id = prodInfo.id+\"\";\n\t\tRequestParams params = new RequestParams();\n\t\ttry {\n\t\t\tparams.setBodyEntity(new StringEntity(req.toJson()));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew HttpUtils().send(HttpMethod.POST, Api.GETGOODSDETAIL, params, new RequestCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tT.showNetworkError(CommodityInfosActivity.this);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ResponseInfo<String> resp) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tProdDetailResponse bean = new Gson().fromJson(resp.result, ProdDetailResponse.class);\n\t\t\t\tLog.e(\"\", \"\"+resp.result);\n\t\t\t\tif(Api.SUCCEED == bean.result_code && bean.data != null) {\n\t\t\t\t\tupview(bean.data);\n\t\t\t\t\tdatas = bean.data;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tprotected void initData() {\n\t\tisSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false);\n\t\t\n\t\tif (isSearch) {//非来自直播列表\n\t\t\tarticleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID);\n//\t\t\tprogressActivity.showLoading();\n\t\t\t\n\t\t\t// 查询发现详情\n\t\t\tobtainDetailRequest();\n\t\t} else {\n\t\t\tsquareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel);\n\t\t\t\n\t\t\tinitLoadView();\n\t\t}\n\t\t\n\t\t//启动定时器\n//\t\tinitTimerTask();\n\t}",
"private static Callback prepopulateDatabase(){\n return new Callback() {\n @Override\n public void onCreate(@NonNull SupportSQLiteDatabase db) {\n super.onCreate(db);\n\n ContentValues contentValuesTartampion = new ContentValues();\n contentValuesTartampion.put(\"name\",\"Projet Tartampion\");\n contentValuesTartampion.put(\"color\",0xFFEADAD1);\n db.insert(\"Project\", OnConflictStrategy.IGNORE,contentValuesTartampion);\n\n ContentValues contentValuesLucidia = new ContentValues();\n contentValuesLucidia.put(\"name\",\"Projet Lucidia\");\n contentValuesLucidia.put(\"color\",0xFFB4CDBA);\n db.insert(\"Project\", OnConflictStrategy.IGNORE,contentValuesLucidia);\n\n ContentValues contentValuesCircus = new ContentValues();\n contentValuesCircus.put(\"name\",\"Projet Circus\");\n contentValuesCircus.put(\"color\",0xFFA3CED2);\n db.insert(\"Project\", OnConflictStrategy.IGNORE,contentValuesCircus);\n\n }\n };\n }",
"@Override\n public void initData() {\n //mTitle = getIntent().getStringExtra(IntentKey.INTENT_KEY_SHOW_PHOTO_TITLE);\n mPhotoType = getIntent().getIntExtra(IntentKey.INTENT_KEY_TAKE_PHOTO_KIND, 0);\n mTakePhotoLocalPath = getIntent().getStringExtra(IntentKey.INTENT_KEY_TAKE_PHOTO_LOCAL_PATH);\n switch (mPhotoType) {\n\n case Config.TAKE_PHOTO_TYPE_CHEZHU_IDCARD_FRONT:\n mTitle = \"车主身份证正面\";\n break;\n case Config.TAKE_PHOTO_TYPE_CHEZHU_IDCARD_BACK:\n mTitle = \"车主身份证反面\";\n break;\n case Config.TAKE_PHOTO_TYPE_DAILI_IDCARD_FRONT:\n mTitle = \"代理人身份证正面\";\n break;\n case Config.TAKE_PHOTO_TYPE_DAILI_IDCARD_BACK:\n mTitle = \"代理人身份证反面\";\n break;\n case Config.TAKE_PHOTO_TYPE_CARSALER_IDCARD_FRONT:\n mTitle = \"收车人身份证正面\";\n break;\n case Config.TAKE_PHOTO_TYPE_CARSALER_IDCARD_BACK:\n mTitle = \"收车人身份证反面\";\n break;\n case Config.TAKE_PHOTO_TYPE_BUSINESS_LICENCE:\n mTitle = \"企业营业执照\";\n break;\n }\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\r\n\t\t// Log.i(\"DBHelper:\", \"OnCreate() \");\r\n\t\tdb.beginTransaction();\r\n\t\ttry {\r\n\t\t\tdb.execSQL(QUESTION_CREATE);\r\n\t\t\tdb.execSQL(TOPIC_CREATE);\r\n\t\t\tdb.execSQL(CHOICE_CREATE);\r\n\t\t\tdb.execSQL(EXAM_CREATE);\r\n\t\t\tdb.execSQL(QUESTIONEXAM_CREATE);\r\n\t\t\tdb.setTransactionSuccessful();\r\n\t\t} finally {\r\n\t\t\tdb.endTransaction();\r\n\t\t}\r\n\r\n\t\t// import du lieu cho Questions, Topics & Choices\r\n\t\tCommonDAL common = new CommonDAL(db);\r\n\t\tcommon.importDataFromResource();\r\n\t\t// Main.getCommonDAL().importDataFromResource();\r\n\r\n\t\t// String strURL = context.getString(R.string.url_questions);\r\n\t\t// common.importDataFromURL(context, strURL);\r\n\t}",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_job_details);\r\n\t\tinit();\r\n\t\tgetData();\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }",
"private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }",
"public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"public void initData(){\r\n \r\n }",
"public static void createAllergyRecords(final Context context, final HashMap<String, String> data) {\n\n // Set initial state\n loader.setVisibility(View.VISIBLE);\n allergyRecyclerViewList.setVisibility(View.GONE);\n\n // Url\n String url = ServiceUrls.KEY_HEALTHBOOK_ALLERGIES.concat(StringConstants.KEY_CREATE);\n\n // Set data\n final HashMap<String, Object> postData = new HashMap<>();\n postData.put(StringConstants.KEY_PATIENT_ID, SharedPreferenceService.getValue(context, StringConstants.KEY_PATIENT_ID));\n postData.put(StringConstants.KEY_ALLERGY_ID, data.get(StringConstants.KEY_ALLERGY_ID));\n postData.put(StringConstants.KEY_ALLERGY_TYPE, data.get(StringConstants.KEY_ALLERGY_TYPE));\n postData.put(StringConstants.KEY_ALLERGY_KIND_OF_REACTION, data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION));\n postData.put(StringConstants.KEY_START_DATE, DateTimeUtils.convertTimestampToUTC(\n Long.valueOf(data.get(StringConstants.KEY_START_DATE))));\n postData.put(StringConstants.KEY_ALLERGY_COMMENTS, data.get(StringConstants.KEY_ALLERGY_COMMENTS));\n\n // Set Headers\n final HashMap<String, String> headers = new HashMap<>();\n headers.put(StaticConstants.KEY_AUTHORIZATION,\n StaticConstants.KEY_BEARER\n .concat(\" \")\n .concat(SharedPreferenceService.getValue(context, StringConstants.KEY_TOKEN)));\n\n\n if (Validation.isConnected(context)) {\n\n /**\n * API Call\n */\n APICallService.PostAPICall(activity, context, url, postData, headers, new APIInterface() {\n\n @Override\n public void onSuccess(JSONObject response) {\n\n try {\n\n // Create in Local Database\n Allergy mAllergyModel = new Allergy(\n SharedPreferenceService.getValue(context, StringConstants.KEY_PATIENT_ID),\n response.getString(StringConstants.KEY_P_ID),\n data.get(StringConstants.KEY_ALLERGY_ID),\n data.get(StringConstants.KEY_ALLERGY_NAME),\n data.get(StringConstants.KEY_SEARCH_LIST_HYPERLINK),\n data.get(StringConstants.KEY_ALLERGY_TYPE),\n data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION),\n DateTimeUtils.convertTimestampToDate(Long.valueOf(data.get(StringConstants.KEY_START_DATE))),\n data.get(StringConstants.KEY_ALLERGY_COMMENTS));\n\n mAllergyModel.save();\n allergyBindingAdapter.notifyDataSetChanged();\n readAllergyList(getInstance().getContext());\n\n } catch (Exception e) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Log error\n ErrorHandlers.handleError(activity);\n Crashlytics.logException(e);\n }\n }\n\n @Override\n public void onError(VolleyError error) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n }\n });\n } else {\n\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Internet Not Available\n ErrorHandlers.handleInternetConnectionFailure(activity);\n }\n }",
"void initData(){\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n initData();\n // L.e(TAG, \"msg: onCreate\" + city);\n }",
"public DesastreData() { //\r\n\t}",
"@Override\n public void onCreate(SQLiteDatabase database) {\n //database.execSQL(DATABASE_CREATE_FRIDGE_ITEM);\n\n database.execSQL(\"CREATE TABLE IF NOT EXISTS \" + \"brainSensor\" +\n \" ( data1 int,data2 int,data3 int,data4 int);\");\n }",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void create() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }",
"private void createTestData(String lang) {\n CreateCallback<ShoppingList> callback = new CreateCallback<ShoppingList>() {\n @Override\n public void onSuccess(ShoppingList object) {\n //refresh data\n mainFragment.setShownShoppingListsToArchived(false);\n }\n\n @Override\n public void onFailure() {\n //not used here\n }\n };\n (new TestData()).createTestData(getContentResolver(), lang, callback);\n }",
"@Override\n protected Object[] getData() {\n return new Object[] { creator };\n }",
"@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}",
"private void initialData() {\n\n }",
"public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }",
"@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}",
"private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }",
"@Override\r\n\tpublic void onCreate(Data data) {\n\t\tSystem.out.println(\"onCreate window \"+data);\r\n\t\tsetWindowLayout(\"layout_main.xml\");\r\n\t}",
"@Override\r\n\tpublic void initData(Bundle savedInstanceState) {\n\r\n\t}",
"public void createRoleData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tfor (Role.RoleType roleType : Role.RoleType.values())\r\n\t\t{\r\n\t\t\tRole role = createHelper.createRole(0);\r\n\t\t\trole.setRoleType(roleType);\r\n\t\t\troleDao.save(role);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tinitView();\r\n\t\tgetListDataFromLocal();\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"private void initializeData() {\n String[] sportsList = getResources().getStringArray(R.array.track_title);\n String[] sportsInfo = getResources().getStringArray(R.array.track_category);\n\n // Clear the existing data (to avoid duplication).\n mSportsData.clear();\n\n TypedArray trackImageResources =\n getResources().obtainTypedArray(R.array.track_image);\n\n // Create the ArrayList of Sports objects with titles and\n // information about each sport.\n for (int i = 0; i < sportsList.length; i++) {\n for (int j = 0; j < workout.size(); j++) {\n if (workout.get(j).equals(sportsList[i])) {\n mSportsData.add(new Track(sportsList[i], sportsInfo[i], trackImageResources.getResourceId(i, 0)));\n }\n }\n }\n\n // Notify the adapter of the change.\n mAdapter.notifyDataSetChanged();\n\n trackImageResources.recycle();\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase _db) {\n\t\t_db.execSQL(DIARIO_CREATE);\n\t}",
"@Override\n\tpublic void initData(Bundle savedInstanceState) {\n\t\t\n\t}",
"private void initData() {\n getCourse();\n// getMessage();\n\n }",
"protected @Override\r\n abstract void initData();",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.transfer_data);\n\t\t\n\t\tsetupViews();\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"public AppData() {\n super(0,Entry.DataColumn.values().length);\n setColumnIdentifiers(Arrays.stream(Entry.DataColumn.values()).map(Entry.DataColumn::getName).toArray());\n System.out.println(\"a new AppData has been constructed\");\n }",
"DataList createDataList();",
"public void afterInit() {\n dbw.execSQL(\"delete from visitTable\");\n for (VisitData tmp : dbData) {\n String dataStr = tmp.getAddSQLString();\n Log.e(\"test : \", String.valueOf(tmp.getId()) + \",,,,\" + dataStr);\n String insertStr = \"insert into visitTable values ( \" + dataStr + \")\";\n Log.e(\"test : \", \"insert successfully\");\n dbw.execSQL(insertStr);\n }\n\n //change model at here.\n// showVisitOverviewFragment();\n getApprovalInfo();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void create(){}",
"@Override\n //\n public void onCreate(SQLiteDatabase db)\n {\n db.execSQL(DATABASE_CREATE);\n }",
"private void fillData()\r\n\t{\n\t\tif(mManager.getLoader(LOADER_LOG) != null && !mManager.getLoader(LOADER_LOG).isReset())\r\n\t\t{\r\n\t\t\tmManager.restartLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmManager.initLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\t\r\n\t\tif(selectMode != WorkoutMode.Tactical)\r\n\t\t{\r\n\t\t\tif(mManager.getLoader(LOADER_LOG_CARDIO) != null && !mManager.getLoader(LOADER_LOG_CARDIO).isReset())\r\n\t\t\t{\r\n\t\t\t\tmManager.restartLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmManager.initLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tboolean ok = true;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(selectMode == WorkoutMode.Tactical || this.dayMode ==WorkoutMode.Tactical)\r\n\t\t\t{\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_tacktical_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE, DBAdapter.COL_LAPS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_name,R.id.txt_laps});\t\r\n\t\t\t\t\r\n\t\t\t\t//Hide cardio\r\n\t\t\t\thideCardio();\r\n\t\t\t}\r\n\t\t\telse //weigh + cardio, only weight; only cardio; \r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_ex_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_SET_NUM, DBAdapter.COL_REPS,DBAdapter.COL_WEIGHT,DBAdapter.COL_UNITS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_set,R.id.txt_reps,R.id.txt_wt,R.id.txt_units});\r\n\t\t\t\t\r\n\t\t\t\tcardioAdapter = new SimpleCursorAdapter(this, R.layout.log_item_cardio,null,\r\n\t\t\t\t\t\tnew String[]{ DBAdapter.COL_DISTANCE, DBAdapter.COL_UNITS, DBAdapter.COL_EQUIPMENT,DBAdapter.COL_TIME},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_cardio_dist,R.id.txt_cardio_units,R.id.img_cardio,R.id.txt_cardio_time}, \r\n\t\t\t\t\t\tCursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);\r\n\t\t\t\t\r\n\t\t\t\tListView cardioList = (ListView)findViewById(R.id.list_log_cardio);\r\n\t\t\t\tcardioList.setAdapter(cardioAdapter);\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tok = false;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif(ok){\r\n\t\t\tsetListAdapter(logAdapter);\r\n//\t\t\tfinal int cnt =logAdapter.getGroupCount();\r\n//\t\t\tfor(int i=0; i < cnt; i++)\r\n//\t\t\t{\r\n//\t\t\t\tlist.expandGroup(i);\r\n//\t\t\t}\r\n\t\t}\r\n\t\t//getExpandableListView().setGroupIndicator(getResources().getDrawable(R.drawable.group_selector));\r\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"private void initData() {\n\n MyLog.log(\"调用录音上传接口\");\n MosHelper.startCheck(new MosHelper.mosSourceListener() {\n\n @Override\n public void getMosSource(String testTest, ArrayList<String> source) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void getMosIMEIAndId(String IMEI,\n String sourceId) {\n // TODO Auto-generated method stub\n MyLog.log(\"IMEI::\" + IMEI);\n Message message = handler.obtainMessage();\n message.obj = \"IMEI::\" + IMEI + \"\\n\" + \"sourceID:\\n\" + sourceId;\n message.what = 8;\n handler.sendMessage(message);\n\n }\n });\n }",
"public STDataController(Context context, Bundle savedInstanceState) {\n this(context);\n if (savedInstanceState != null) {\n personNames = savedInstanceState.getStringArrayList(\"personNames\");\n personIds = savedInstanceState.getStringArrayList(\"personIds\");\n for (String id : personIds) {\n personPhotos.add(getBitmapFromId(context, id));\n }\n \n ArrayList<String> selectionsStrings = savedInstanceState.getStringArrayList(\"personSelections\");\n for (String selectionsString : selectionsStrings) {\n HashSet<Integer> selections = new HashSet<Integer>();\n if (!selectionsString.equals(\"\")) {\n for (String selection : selectionsString.split(\",\")) {\n selections.add(Integer.valueOf(selection));\n }\n }\n personSelections.add(selections);\n }\n \n menuItemNames = savedInstanceState.getStringArrayList(\"menuItemNames\");\n double[] prices = savedInstanceState.getDoubleArray(\"menuItemPrices\");\n for (double price : prices) {\n menuItemPrices.add(Double.valueOf(price));\n }\n \n tax = savedInstanceState.getDouble(\"tax\");\n tip = savedInstanceState.getDouble(\"tip\");\n } else {\n this.addDefaultPerson();\n }\n }",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }",
"@Override\r\n public void onCreate(Bundle savedState) {\r\n super.onCreate(savedState);\r\n \r\n if (savedState != null) {\r\n dataController.setViewableDataTableRows(\r\n GraphActivityFunctions.restoreViewableDataTableRows(savedState));\r\n }\r\n \r\n SharedPreferences sp = getPreferences(MODE_PRIVATE);\r\n dataController.setViewableDataTableRows(\r\n GraphActivityFunctions.restoreViewableDataTableRows(sp));\r\n \r\n setContentView(R.layout.graph);\r\n\r\n Integer currentYearMaximum = Utility.getNumOfCompoundingPeriods();\r\n setupValueSpinner();\r\n setupTimeSlider(currentYearMaximum);\r\n setupValueSlider(currentYearMaximum);\r\n setupGraphs(currentYearMaximum);\r\n setupCurrentValueFields();\r\n valueToDataTableItemCorrespondence = GraphActivityFunctions.createDataTableItems(GraphActivity.this);\r\n setDataChangedToggle(true);\r\n }",
"private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}",
"public void makeData() {\n\t\tFile file = null;\r\n try {\r\n if (!m.getDataFolder().exists()) { //Check if the directory of the plugin exists...\r\n \tm.getDataFolder().mkdirs(); //If not making one.\r\n }\r\n file = new File(m.getDataFolder(), \"data.yml\"); // Defining file to data.yml NOTE: This file has to be also in your Project, even if it's empty.\r\n if (!file.exists()) { //Check if it exists\r\n \tm.getLogger().info(\"data.yml not found, creating!\"); //Log that it is creating\r\n \tm.saveResource(\"data.yml\", true); //Saving the resource, This is all by Java done no Spigot noeeded. \r\n } else {\r\n \tm.getLogger().info(\"data.yml found, loading!\"); //If it is already there, load it.\r\n \t//TODO: Loading...\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();//If something returned a NPE or something it will print a stacktrace...\r\n }\r\n\t}",
"private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }"
] |
[
"0.7275979",
"0.71715677",
"0.67775214",
"0.6671324",
"0.66433156",
"0.6583348",
"0.65830487",
"0.6540442",
"0.6450596",
"0.639477",
"0.63820726",
"0.63795733",
"0.62090373",
"0.61770415",
"0.6172574",
"0.6154452",
"0.6137361",
"0.61302984",
"0.61114323",
"0.61092705",
"0.6059858",
"0.6058061",
"0.60502064",
"0.60466415",
"0.60248005",
"0.60171634",
"0.60055536",
"0.5992606",
"0.5990959",
"0.5990959",
"0.59886986",
"0.59595007",
"0.59578156",
"0.59366244",
"0.59366244",
"0.59366244",
"0.59366244",
"0.59366244",
"0.59366244",
"0.59077656",
"0.59016585",
"0.59009856",
"0.5896339",
"0.58914685",
"0.58872354",
"0.5885115",
"0.5882648",
"0.58791965",
"0.5878935",
"0.5875041",
"0.5871746",
"0.58710724",
"0.5870846",
"0.5867181",
"0.5864353",
"0.5860402",
"0.585167",
"0.58502614",
"0.5850248",
"0.5839154",
"0.5836562",
"0.5828484",
"0.5824799",
"0.58228105",
"0.5820877",
"0.58175725",
"0.5811762",
"0.58099294",
"0.5806097",
"0.5801394",
"0.58001727",
"0.5794766",
"0.5792753",
"0.5791478",
"0.5790404",
"0.5784656",
"0.5780083",
"0.57784855",
"0.5768572",
"0.57669586",
"0.5765014",
"0.5762046",
"0.5761089",
"0.5761089",
"0.57610375",
"0.5760474",
"0.5758918",
"0.57586634",
"0.5751876",
"0.5751516",
"0.57514566",
"0.57495975",
"0.57495975",
"0.57470644",
"0.57459956",
"0.5745586",
"0.57418066",
"0.57402825",
"0.573505",
"0.57345986"
] |
0.57522845
|
88
|
This constructor creates an instance of the SnackSelectionItem&46;
|
public SnackSelectionItem(int snackIdentifier, String snackName, int snackPrice, int quantity, boolean isActive, boolean isWarningOn){
this.setSnackIdentifier(snackIdentifier);
this.setName(snackName);
this.setPrice(snackPrice);
this.setState(isActive);
this.setItemState(isWarningOn);
init();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@SuppressWarnings(\"unused\")\n public Item() {\n }",
"private Item(){}",
"public Item()\n {\n super();\n }",
"public ItemPro() {\n initComponents();\n comboFill();\n }",
"public Item()\r\n {\r\n // Initialize instance variables\r\n \r\n }",
"public Item(){}",
"public Item() {\n\t}",
"public Item() {\n\t}",
"public Item() {}",
"public Item() {\n }",
"public Item() {\n }",
"public NewItems() {\n super();\n }",
"public Item() {\n\t\tmenu.add(new Item(\"Snickers\", 10, 1.50, \"1\"));\n\t\tmenu.add(new Item(\"Chips\", 10, .50, \"2\"));\n\t\tmenu.add(new Item(\"Coke\", 10, 1.75, \"3\"));\n\n\t}",
"public Items(String image, int y, int x) {\r\n\t\tsuper(image, y, x);\r\n\t}",
"public ItemInfo () {}",
"public ItemCommand() {\n }",
"Item(){\r\n\t\tthis(0, new Weight(5), new DukatAmount(0));\r\n\t}",
"public ToolItem (ToolBar parent, int style) {\r\n\tthis(parent, style, parent.getItemCount ());\r\n}",
"private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }",
"public Item(Integer itemSlot) {\n this.itemSlot = itemSlot;\n }",
"public ActiveSurveyQuestionItem() {\n }",
"public LoreBookSelectionViewHolder(View itemView) {\n super(itemView);\n itemView.setOnClickListener(this);\n bookIcon = itemView.findViewById(R.id.bookIcon);\n bookName = itemView.findViewById(R.id.selectionName);\n }",
"public ItemsAdapter() {\n\n\n }",
"public SellItem() {\n initComponents();\n }",
"public Stack() {\r\n\t\tthis.items = new ArrayList<>();\t\r\n\t}",
"public ItemMenu() {\n super(null, null);\n }",
"public DessertItem() {\n this(\"\");\n }",
"protected Item() {\n }",
"public SnackPanel(CustomerUI customerUI, Integer machineID) {\n itemButtons = new ArrayList<JButton>();\n itemCodeTextFields = new ArrayList<JLabel>();\n itemPriceTextFields = new ArrayList<JLabel>();\n itemPanels= new ArrayList<JPanel>();\n initComponents();\n this.machineID = machineID;\n this.customerUI = customerUI;\n customerUI.getItemController().generateCategoryItemInfo(machineID, \"snack\");\n codeList = customerUI.getItemController().getCategoryCodeForMachine();\n priceList = customerUI.getItemController().getCategoryPriceForMachine();\n pictureList = customerUI.getItemController().getCategoryPicturePathForMachine();\n countList = customerUI.getItemController().getCategoryCountForMachine(); \n setCodeLabel();\n setPriceLabel();\n setPictureButton();\n setCount();\n }",
"protected PickaxeItem(Tier debug1, int debug2, float debug3, Item.Properties debug4) {\n/* 100 */ super(debug2, debug3, debug1, DIGGABLES, debug4);\n/* */ }",
"public Item(int id, String name, int quantity, double price, Supplier supplier){\r\n toolId = id;\r\n toolName = name;\r\n toolQuantity = quantity;\r\n toolPrice = price;\r\n toolSupplier = supplier;\r\n }",
"public Item()\r\n {\r\n gen = new Random();\r\n color = new Color(gen.nextInt());\r\n x = 200;\r\n w = 100;\r\n h = 18;\r\n }",
"public QuestionPoolItemData(){\n }",
"public RecentItem() {\n }",
"public FlyerFeaturedItem() {}",
"public ListItems() {\n itemList = new ArrayList();\n }",
"public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n breweryImage = (ImageView) itemView.findViewById(R.id.brewery_image);\n breweryName = (TextView) itemView.findViewById(R.id.brewery_name);\n }",
"public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }",
"public GIPIQuoteItemMC()\t{\n \t}",
"public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}",
"public SpinnerItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}",
"public PurchaseOrderItem () {\n\t\tsuper();\n\t}",
"public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n }",
"public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}",
"@Override // see item.java\n\tpublic void pickUp() {\n\n\t}",
"public Item()\r\n\t{\r\n\t\tserialNum = 00000;\r\n\t\tweight = 0.0;\r\n\t}",
"public DiscoveryItem(String key) {\n this(key, null, 0, 0, null);\n }",
"public FinalMysteryItem() {\n int randomIndex = new Random().nextInt(7);\n item = new Item(listOfPossibleNames[randomIndex], PRICE_TO_BUY);\n }",
"public POJOCompteItem() {\n compte = new TreeMap<Date, Integer>();\n items = new ArrayList<Item>();\n }",
"public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n int position = getAdapterPosition();\n\n\n nameTextView = (TextView) itemView.findViewById(R.id.contact_name);\n messageButton = (Button) itemView.findViewById(R.id.message_button);\n messageButton.setOnClickListener(new ButtonClick(this));\n itemView.setOnClickListener(this);\n\n }",
"Item(Weight weight){\r\n\t\tthis(0, weight, new DukatAmount(0));\r\n\t}",
"public ShoppingListItem() {}",
"public Inventory() {\n \titems = new ArrayList<Collectable>();\n \tnumTokens = 0;\n }",
"public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n tvTitle = itemView.findViewById(R.id.tvTitle);\n tvBody = itemView.findViewById(R.id.tvDescription);\n tvDueDate = itemView.findViewById(R.id.tvDueDate);\n content = itemView.findViewById(R.id.cardViewToDo);\n details = itemView.findViewById(R.id.rlToDoDetails);\n ivDropDown = itemView.findViewById(R.id.ivDropDown);\n }",
"public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}",
"public MyViewHolder(View itemView) {\n super(itemView);\n\n // get the reference of item view's\n exercise = itemView.findViewById(R.id.exercise);\n }",
"private GoodsItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Item(DukatAmount price){\r\n\t\tthis(0, new Weight(5), price);\r\n\t}",
"public GItem(Item i) {\n this.mGItem = i.getId();\n this.title = i.getTitle();\n\n if (!i.getAddress().equals(\"\")){\n this.address = i.getAddress();\n }\n\n if (i instanceof OfficerItem){\n this.type = 1;\n\n } else if (i instanceof CompanyItem){\n this.type = 0;\n }\n\n }",
"public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n /* designation_txt = (TextView) itemView.findViewById(R.id.designation_txt);\n name_txt = (TextView) itemView.findViewById(R.id.name_txt);\n number_txt = (TextView) itemView.findViewById(R.id.number_txt);*/\n\n }",
"public ItemManager() {\n itemMap = new HashMap<>();\n importantItemList = new ArrayList<>();\n\n }",
"public Adapter() {\n super();\n this.listItemsBT = new ArrayList<>();\n /*Random random = new Random();\n for(int i = 0; i<50;i++){\n listItemsBT.add(new ItemBT(\"El vic xd\" + i, \"10:12:... NUMBER: \"+i, random.nextBoolean()));\n }*/\n }",
"private TaskItem()\n {\n }",
"protected Item(Point pos)\n\t{\n\t\tthis.pos = pos;\n\t}",
"public Item() {\n\t\tthis(rand.nextDouble() * GameManager.NATIVE_WIDTH, -30.0, PowerUp[new Random().nextInt(PowerUp.length)]);\n\t}",
"public AbstractItemFactory(){\n this.setDefault();\n }",
"Items(){\n}",
"public Item_Record() {\n super(Item_.ITEM_);\n }",
"public EnterpriseBeansItem() {\n super();\n }",
"public LaPatilla()\n\t{\n\t\tsuper(TAG_ITEM_ITEMS,\n\t\t\t\tnew int[]{TAG_TITLE},\n\t\t\t\tnew int[]{TAG_LINK},\n\t\t\t\tnew int[]{TAG_DESCRIPTION},\n\t\t\t\tnew int[]{TAG_CONTENT_ENCODED},\n\t\t\t\tnew int[]{TAG_PUBDATE},\n\t\t\t\tnew int[]{TAG_CATEGORY},\n\t\t\t\tnew int[]{},\n\t\t\t\t\"\");\n\t}",
"public ToolItem (ToolBar parent, int style, int index) {\r\n\tsuper (parent, checkStyle (style));\r\n\tthis.parent = parent;\r\n\tparent.createItem (this, index);\r\n}",
"private CatalogItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public ModifyItem() {\n initComponents();\n }",
"public AddItem() {\n initComponents();\n }",
"public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }",
"public Item(\n int itemId ,\n int currentQty ,\n int minQty ,\n int maxQty ,\n BufferedImage icon ,\n String label, \n String desc ,\n String attr)\n {\n this.itemId = itemId ;\n this.currentQty=currentQty;\n this.minQty=minQty;\n this.maxQty=maxQty;\n this.icon=icon;\n this.label=label;\n }",
"public EpicTargetItems(byte kingdomTemplateId) {\n/* 107 */ this.kingdomId = kingdomTemplateId;\n/* 108 */ loadAll();\n/* 109 */ MissionHelper.loadAll();\n/* */ }",
"protected StockItem()\r\n \t{\r\n \t\tlimit = new LimitSystem(this);\r\n \t}",
"public Item(){\n description = \"No description avaible for this item\";\n weight = 0;\n }",
"public TitleIconItem(){}",
"public ItemBuilder(Material material, int amount, byte SubID) {\n\t\titemstack = new ItemStack(material, amount, SubID);\n\t}",
"public CommonHolder_Recycler_beauty_adapter(View itemView) {\n super(itemView);\n\n\n\n }",
"ExerciseAdapter(List<Programme.MyItems> items)\n {\n this.myItems = items;\n }",
"public Item(ResultSet rs, Supplier supp) {\r\n try {\r\n this.toolId = rs.getInt(1);\r\n this.toolName = rs.getString(2);\r\n this.toolQuantity = rs.getInt(3);\r\n this.toolPrice = rs.getDouble(4);\r\n this.toolSupplier = supp;\r\n } catch (SQLException e){\r\n System.out.println(\"Supplier creation error (ResultSet)\");\r\n e.printStackTrace();\r\n }\r\n }",
"public DrawableCard(Context context, AttributeSet attrs) {\n super(context, attrs);\n\n //initially the card is not selected\n this.selected = -1;\n init();\n }",
"public Item(int sn, double w)\r\n\t/*\r\n\t * \t\tsn - serial number\r\n\t * \t\tw - weight\r\n\t */\r\n\t{\r\n\t\tserialNum = sn;\r\n\t\tweight = w;\r\n\t}",
"public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }",
"public SKIN_SPECIALIST() {\n initComponents();\n }",
"public ActionItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}",
"public SpellViewHolder(final View itemView, final List<Integer> selectedList, final AppCompatActivity parent) {\n\n super(itemView, selectedList, parent);\n\n //the field for the view\n name = itemView.findViewById(R.id.spellName);\n description = itemView.findViewById(R.id.spellDescription);\n level = itemView.findViewById(R.id.spellLevel);\n school = itemView.findViewById(R.id.schoolText);\n descriptors = itemView.findViewById(R.id.descriptorsText);\n range = itemView.findViewById(R.id.rangeText);\n area = itemView.findViewById(R.id.areaText);\n duration = itemView.findViewById(R.id.durationText);\n castingTime = itemView.findViewById(R.id.castingText);\n link = itemView.findViewById(R.id.spellLink);\n\n\n\n\n\n\n\n\n //when the user click on the item we mark the item as selected and add him in the selected item list\n itemView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n\n //let's update the selectedList\n if(view.isSelected()){\n view.setSelected(false);\n selectedList.remove((Integer) getAdapterPosition());\n }\n else{\n view.setSelected(true);\n selectedList.add((Integer) getAdapterPosition());\n }\n\n //when a meta magic is selected we allow the modifications\n if(! (selectedList == null) && ! selectedList.isEmpty()){\n parent.findViewById(R.id.buttonDelete).setEnabled(true);\n\n //we allow modification only if there is one item selected\n if(selectedList.size() == 1)\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(true);\n }\n else\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }\n else{\n parent.findViewById(R.id.buttonDelete).setEnabled(false);\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }\n });\n }",
"public Library()\r\n\t{\r\n\t\titems = new ArrayList<Book>();\r\n\t}",
"public ItemRecord() {\n super(Item.ITEM);\n }",
"public TileSelector(){\r\n super();\r\n \r\n }",
"public QBP_Q21() {\n super();\n }",
"AdapterItems(int ID, String product)\n {\n this.ID=ID;\n this.product=product;\n //this. Description=Description;\n }",
"PaperHolder(android.content.Context context, View itemView) {\n super(itemView);\n\n mPapersAuthors = (LinearLayout) itemView.findViewById(R.id.authors);\n mPaperTitle = (TextView) itemView.findViewById(R.id.title);\n mSubscriptionHolder = (GridLayout) itemView.findViewById(R.id.colors);\n\n mSubscriptionHolder.setColumnCount(4);\n mSubscriptionHolder.setRowCount(2);\n itemView.setOnClickListener(this);\n\n itemView.setOnLongClickListener(view -> {\n if (mParentFragment != null) {\n mPaperDialogFragment = new PaperDialogFragment().newInstance(mCardViewToInflate, mParentFragment, mPaper,\n mPapersPosition);\n\n mPaperDialogFragment.setTargetFragment(mParentFragment, 6);\n\n mPaperDialogFragment.show(mParentFragment.getFragmentManager(), \"dialog\");\n return true;\n }\n return true;\n });\n\n mContext = context;\n }",
"public TrackItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}",
"public QuestionDropPanel(Color highlight) {\n\t\tsuper(highlight);\n\t}",
"public ItemMenu(AbstractInMenu source, Item item, int x, int y) {\n super(source.getEntity(), source.getInput());\n this.sourceMenu = source;\n this.item = item;\n this.activated = false; \n this.xPos = x - width;\n this.yPos = y;\n \n setItemMenu();\n setGraphics();\n }",
"public TheHeraldScotland()\n\t{\n\t\tsuper(TAG_ITEM_ITEMS,\n\t\t\t\tnew int[]{TAG_TITLE},\n\t\t\t\tnew int[]{TAG_LINK},\n\t\t\t\tnew int[]{TAG_DESCRIPTION},\n\t\t\t\tnew int[]{},\n\t\t\t\tnew int[]{TAG_PUBDATE},\n\t\t\t\tnew int[]{},\n\t\t\t\tnew int[]{TAG_MEDIA_CONTENT},\n\t\t\t\t\"\");\n\t}"
] |
[
"0.6332544",
"0.62965286",
"0.6264459",
"0.62038296",
"0.6177481",
"0.61721265",
"0.61589664",
"0.61589664",
"0.61174864",
"0.60960376",
"0.60960376",
"0.6071761",
"0.6051939",
"0.6045247",
"0.6007313",
"0.5986333",
"0.59498334",
"0.59422606",
"0.59251165",
"0.58863693",
"0.5870412",
"0.5849383",
"0.582831",
"0.58273023",
"0.5827176",
"0.58172506",
"0.57901734",
"0.57529485",
"0.5741913",
"0.573526",
"0.5702404",
"0.5664794",
"0.56615674",
"0.565288",
"0.56426346",
"0.56375664",
"0.5613601",
"0.5591226",
"0.5587956",
"0.5586148",
"0.5582791",
"0.55728436",
"0.5542227",
"0.5537144",
"0.55350286",
"0.5531907",
"0.5531546",
"0.55298525",
"0.5528627",
"0.5527104",
"0.55268586",
"0.5525336",
"0.5525065",
"0.5517059",
"0.55096513",
"0.5508352",
"0.55062133",
"0.5505993",
"0.55048424",
"0.5504551",
"0.5481673",
"0.54789644",
"0.54766864",
"0.54636085",
"0.54632914",
"0.5448841",
"0.5447787",
"0.5446388",
"0.5444207",
"0.5427243",
"0.5418077",
"0.54024094",
"0.54021233",
"0.53977114",
"0.538587",
"0.53850704",
"0.537463",
"0.5373241",
"0.53723645",
"0.5368344",
"0.53682333",
"0.5363026",
"0.53606665",
"0.53599745",
"0.53532296",
"0.5351163",
"0.5343426",
"0.5343266",
"0.53407764",
"0.5337191",
"0.5329333",
"0.5327603",
"0.53174114",
"0.53151906",
"0.53148675",
"0.531364",
"0.53133994",
"0.53053033",
"0.5304862",
"0.5304259"
] |
0.66373396
|
0
|
This method initialize the GUI.
|
private void init(){
btn.setLabel(name);
lbl.setText(""+price+" C");
lbl.setBackground(Color.lightGray);
lbl.setFocusable(false);
lbl.setPreferredSize(new Dimension(50,24));
setLayout(new GridBagLayout());
add(btn,new GridBagConstraints(0,0,1,1,1.0,0.0,
GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,
new Insets(5,10,0,0),10,4));
add(lbl,new GridBagConstraints(1,0,1,1,0.0,0.0,
GridBagConstraints.CENTER,GridBagConstraints.NONE,
new Insets(5,15,0,0),50,0));
add(wnd,new GridBagConstraints(2,0,1,1,0.0,0.0,
GridBagConstraints.WEST,GridBagConstraints.NONE,
new Insets(5,4,0,0),10,0));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void initializeGUI() {\n\n\t}",
"public GUI() {\n\t\tinitComponents();\n\t}",
"public GUI() {\n initComponents();\n }",
"public GUI() {\n initComponents();\n }",
"private static void initAndShowGUI() {\n }",
"public GUI() {\n initComponents();\n this.setVisible(true);\n }",
"public gui() {\n initComponents();\n }",
"public gui() {\n initComponents();\n }",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"@Override\n public void initGUI() {\n\n }",
"public GUI() {\n initComponents();\n }",
"public GUI() {\n \n \n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }",
"public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"public RagaiGUI() {\n initComponents();\n \n }",
"public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}",
"public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}",
"public AplicationGUI() {\n initComponents();\n }",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"private void initUI() {\n }",
"@Override\n\tpublic void initGui() {\n\t\tfield_154330_a.init();\n\t\tsuper.initGui();\n\t}",
"public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }",
"public mainUI() {\n initComponents();\n }",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"public GUI()\n {\n //Initializes the variables and UI aspects\n UI.initialise();\n UI.addTextField(\"Search Title/Director/Genre\", this::searchEither);\n UI.addButton(\"Add Movie\", this::newMovie);\n UI.addButton(\"Rate Movie\", this::rateMovie);\n UI.addButton(\"Show All Movies\", this::printAll);\n UI.addButton(\"Recommend Movies\", this::recommendMovie);\n UI.setMouseListener(r::manageMouse);\n UI.addButton(\"Quit\", UI::quit);\n \n // Sets the size of the whole window and the divider\n UI.setWindowSize(CANVASWIDTH, CANVASHEIGHT);\n UI.setDivider(0.4);\n this.drawMain();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public Gui() {\n initComponents();\n }",
"private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }",
"public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }",
"public DesktopGUI() {\n initComponents();\n }",
"public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }",
"public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}",
"void initGUI(){\n\t\t// use border layout for our main frame\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// create a new TitlePage and add it to the GUI. This is initially the only instantiated item\n\t\ttitlePage = new TitlePage(this);\n\t\tadd(titlePage);\n\t\t\n\t\tsetBackground( new Color(30, 130, 76) );\t// set a green background\n\t\tsetResizable(false); \t\t\t\t\t\t// User can't change the window's size.\n\t\tsetDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\t// exit when we close\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\t\t\t\t\t// set size of JFrame\n\t\t// set it to visible\n\t\tsetVisible(true);\n\t}",
"public orgGui() {\n initComponents();\n }",
"private GUI()\n {\n makeGUI();\n }",
"public ServerGUI() {\n\t\t\n\t\tinitialize();\n\n\t}",
"private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}",
"public soal2GUI() {\n initComponents();\n }",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"public ExecutantGui() {\n initComponents();\n }",
"private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}",
"private void initialize() {\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tthis.setTitle(\"Extremum Values\");\r\n\t\tthis.setSize(300,180);\r\n\t\tthis.setLocation(300, 100);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.getRootPane().setDefaultButton(getOkButton());\r\n\t\tthis.setVisible(true);\r\n\t}",
"private void initialize(){\n\t\timgurURL = new JTextField(\"\", 20);\n\t\tJLabel label = new JLabel(\"Imgur URL\");\n\t\tdownload = new JButton(\"Download\");\n\t\tsavePath = new JButton(\"Set Download Path\");\n\t\t//Done creating components\n\t\t\n\t\t//Set component attributes\n\t\tsetLayout(new FlowLayout());\n\t\tsetSize(575, 65);\n\t\tsetResizable(false);\n\t\tadd(label);\n\t\tadd(imgurURL);\n\t\tadd(download);\n\t\tadd(savePath);\n\t\t//Done setting component attributes\n\t\t\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\tsetVisible(true);\n\t}",
"private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}",
"public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}",
"public UI() {\n initComponents();\n }",
"void initUI();",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }",
"public TetrisGUI() {\r\n initializeFields();\r\n }",
"public HomePageGUI() {\n initComponents();\n }",
"public adivinaGUI() {\n initComponents();\n }",
"public GUI() {\n }",
"public PhotoViewerGUI() {\r\n initComponents();\r\n }",
"public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tjavax.swing.SwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tcreateGUI();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"createGUI didn't successfully complete: \"\n\t\t\t\t\t+ e.toString());\n\t\t}\n\t}",
"private void initUI() {\n\t\tfileInputPanel.setLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\t\tgridBagConstraints.anchor = GridBagConstraints.NORTH;\n\t\tgridBagConstraints.gridwidth = 2;\n\n\t\tJLabel title = new JLabel(\"Welcome to ANNie\");\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 36));\n\n\t\tfileInputPanel.add(title, gridBagConstraints);\n\n\t\tgridBagConstraints.gridwidth = 1;\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\n\t\tfileInputPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n\n\t\tcreateFileDropdownArea(gridBagConstraints);\n\t\tcreateLabelSelectArea(gridBagConstraints);\n\t\tcreateButtons(gridBagConstraints);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"public void init() {\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initGui()\n {\n setBorder(BorderFactory.createMatteBorder(0, 1, 0, 0, Color.WHITE));\n\n setLayout(new GridBagLayout());\n\n GridBagConstraints gbc = new GridBagConstraints();\n\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n\n this.add(lblHint, gbc);\n }",
"private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }",
"public GUI() {\n app = new Aplikasi();\n initComponents();\n }",
"private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}",
"public void init()\n\t\t{\n\t\t\t//Makes Lists\n\t\t\tmakeLists();\n\n\t\t\t//layout for GUI\n\t\t\tGridLayout layout = new GridLayout(2,4, 5 ,5);\n\t\t\tsetLayout(layout);\n\n\t\t\t//add panels to window\n\t\t\tadd(Panel_1);\n\t\t\tadd(Panel_2);\n\t\t\tadd(Panel_3);\n\t\t\tadd(Panel_4);\n\n\t\t\t//create buttons\n\t\t\tCalculateButton = new JButton(\"Calculate\");\n\t\t ExitButton = new JButton(\"Exit\");\n\n\t\t\t//connect event handlers to buttons\n\t\t CalculateButton.addActionListener(new ButtonListener());\n\t\t ExitButton.addActionListener(new ButtonListener());\n\n\t\t\t//add buttons to window\n\t\t add(CalculateButton);\n\t\t add(ExitButton);\n\n\t\t //make window visible\n\t\t\tsetVisible(true);\n\t\t}",
"private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }",
"public PropsGUI() {\n initComponents();\n }",
"protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }",
"public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }",
"public CaptureGUI() {\n initComponents();\n }",
"private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"private void initialize() {\n\tif (setup == false) {\n\t elementList.add(new GUISlider());\n\t elementList.add(new GUIChart());\n\t elementList.add(new GUIStatsDisplay());\n\t elementList.add(new GUIPID());\n\t elementList.add(new GUITimer());\n\t elementList.add(new GUINumericUpDown());\n\t setup = true;\n\t}\n }",
"public static void initialize() {\n\n GUIResources.addResourcesFromClasspath();\n _initialize();\n\n }",
"public GUI()\n {\n initComponents();\n setSize(xSize, ySize);\n figures = new PFigure[numFigs];\n }",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }",
"public EqGUI() {\n initComponents();\n }",
"private void initUI() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\trenderer = new LWJGLRenderer();\n\t\t\tgui = new GUI(stateWidget, renderer);\n\t\t\tthemeManager = ThemeManager.createThemeManager(StateWidget.class.getResource(\"gameui.xml\"), renderer);\n\t\t\tgui.applyTheme(themeManager);\n\t\t\t\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public UI() \n {\n // initiate attributs\n loadedDictionaryFilename = \"\";\n lexiNodeTrees = new ArrayList<>();\n \n // initiate window component\n initComponents();\n setTitle(\"Dictio\");\n \n // empty lists\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n this.getAllWordsList().setModel( new DefaultListModel() );\n }",
"private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"public ClientGUI() {\n initComponents();\n }",
"public ClientGUI() {\n initComponents();\n }",
"public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }",
"public Prob4GUI() {\n initComponents();\n }",
"@Override\n public void init() // set up GUI\n {\n setLayout(new FlowLayout());\n\n customerView = new CustomerView(); // initialize customerView\n \n add(customerView); // add customerView to the GUI\n }",
"public GUIForm() { \n initComponents();\n }",
"private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }",
"public TourGuideGUI() {\n initComponents();\n }",
"public MainGui() {\n initComponents();\n this.setVisible(true);\n configuracoesSalvas();\n }",
"public Test_GUI() {\n initComponents();\n }",
"private void initGUI() {\n\t\tContainer cp = getContentPane();\n\t\tcp.setLayout(new BorderLayout());\n\t\t\n\t\tJPanel top = new JPanel(new GridLayout(0, 1));\n\t\tcp.add(top, BorderLayout.PAGE_START);\n\t\t\n\t\ttop.add(createMenuBar());\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.add(\"Encryptor\", encryptorPanel);\n\t\ttabs.add(\"Decryptor\", decryptorPanel);\n\t\ttabs.setSelectedComponent(encryptorPanel);\n\t\t\n\t\tcp.add(tabs);\n\t}",
"public studentGUI() {\n\t\ttry {\n\t\t\tinitialize();\n\t\t} catch (AccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public JavierGUI() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t\tthis.setJavier(getJavier());\r\n\t\tbtnHome.doClick();\r\n\t}",
"public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttons.clear();\n GuiButton guibutton = this.addButton(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 24 + 12, I18n.format(\"selectWorld.edit.resetIcon\")));\n this.buttons.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 48 + 12, I18n.format(\"selectWorld.edit.openFolder\")));\n this.buttons.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectWorld.edit.save\")));\n this.buttons.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\")));\n guibutton.enabled = this.mc.getSaveLoader().getFile(this.worldId, \"icon.png\").isFile();\n ISaveFormat isaveformat = this.mc.getSaveLoader();\n WorldInfo worldinfo = isaveformat.getWorldInfo(this.worldId);\n String s = worldinfo == null ? \"\" : worldinfo.getWorldName();\n this.nameEdit = new GuiTextField(2, this.fontRenderer, this.width / 2 - 100, 60, 200, 20);\n this.nameEdit.setFocused(true);\n this.nameEdit.setText(s);\n }",
"public GuiMain02() {\r\n\t\tinitialize();\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"public void initGui() {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGuiWindow window = new GuiWindow(Controller.this);\r\n\t\t\t\t\tlinkedGuiWindow = window;\r\n\t\t\t\t\twindow.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}"
] |
[
"0.87634444",
"0.8471725",
"0.84207356",
"0.84207356",
"0.8297068",
"0.8220177",
"0.81549007",
"0.81549007",
"0.81517667",
"0.8138325",
"0.80246407",
"0.79856735",
"0.79691845",
"0.79651105",
"0.79522073",
"0.7900094",
"0.7895814",
"0.7885273",
"0.78815895",
"0.7879707",
"0.7873852",
"0.7872043",
"0.7869921",
"0.78200626",
"0.7806704",
"0.780658",
"0.78047055",
"0.7798099",
"0.77954674",
"0.7794881",
"0.7789286",
"0.77867895",
"0.7785788",
"0.7778813",
"0.77642095",
"0.77619064",
"0.7751712",
"0.7739535",
"0.7727435",
"0.7718433",
"0.7717291",
"0.7715619",
"0.7705557",
"0.7695704",
"0.76882184",
"0.7683364",
"0.76767445",
"0.7661232",
"0.7658147",
"0.7656477",
"0.7649161",
"0.76442367",
"0.76374596",
"0.7634719",
"0.76346534",
"0.7620414",
"0.761721",
"0.7590773",
"0.75904346",
"0.7588216",
"0.7584065",
"0.757165",
"0.75685626",
"0.75657207",
"0.75619626",
"0.7561089",
"0.7553643",
"0.75495136",
"0.75438225",
"0.75423527",
"0.7528704",
"0.75218374",
"0.75200105",
"0.7511003",
"0.7497441",
"0.74969727",
"0.7495936",
"0.7481321",
"0.7473006",
"0.7472045",
"0.74697965",
"0.746322",
"0.7460799",
"0.7460799",
"0.7450015",
"0.7449682",
"0.7448756",
"0.7446357",
"0.74463356",
"0.74450475",
"0.7442052",
"0.74401844",
"0.7439301",
"0.743523",
"0.74322915",
"0.7427342",
"0.7414315",
"0.7407422",
"0.7404253",
"0.73990846",
"0.7393998"
] |
0.0
|
-1
|
This method attaches a listener to the item.
|
public void addListener(ActionListener listener){
btn.addActionListener(listener);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract void addItemListener(ItemListener listener);",
"default void addListener(Runnable listener) {\n\t\tthis.getItemListeners().add(listener);\n\t}",
"public void addItemListener(ItemListener l) {\r\n\t\tint index = this.itemListeners.indexOf(l);\r\n\t\tif (index==-1) {\r\n\t\t\tthis.itemListeners.add(l);\r\n\t\t} else {\r\n\t\t\tthis.itemListeners.set(index,l);\t\t\t\r\n\t\t}\r\n\t}",
"public interface itemListener{\n void onClickItem(int position);\n }",
"public interface onAddItemListener {\n void onAddItem(String item);\n}",
"public void addItemListener(ItemListener itemListener) {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (!itemListeners.contains(itemListener)) {\r\n\t\t\titemListeners.add(itemListener);\r\n\t\t}\r\n\t}",
"public interface OnItemClickedListener {\n\n\tvoid onItemClicked(Integer itemId);\n}",
"public static void setOnListRecyclerItemClick(PersonalEvents.OnRecyclerViewItemClick listener)\n {\n ListenerRecycler = listener;\n }",
"public interface OnItemSelecetedListener {\n void onItemSelected(String link);\n }",
"@Override\n\tpublic void setUpListener() {\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAdapter.setIndex(position);\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\tif(litener != null){\n\t\t\t\t\tlitener.onItemClick(position, mAdapter.getListItem(position), view);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"void setClickListener( ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setOnItemClickedListener(OnItemClickedListener listener) {\n mOnItemClickedListener = listener;\n if (mRowsFragment != null) {\n mRowsFragment.setOnItemClickedListener(listener);\n }\n }",
"public void setOnItemChildClickListener(OnItemChildClickListener listener) {\n\t\tmChildEvent = listener;\n\t}",
"public void aTypeCBaddItemListener(ItemListener listener)\r\n\t{\r\n\t\tanswerTypeCb.addItemListener(listener);\r\n\t}",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\ttry {\r\n\t\t\tmListener = (AddItemDialogListener) activity;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }",
"public interface theListener {\n public void itemToSend(String s);\n }",
"@Override\n\tpublic void addListener() {\n\t\t\n\t}",
"public void setOnItemLongClickListener(OnItemLongClickListener listener){\n this.listener = listener;\n }",
"public void setOnItemSelectedListener(OnItemSelectedListener listener) {\n mExternalOnItemSelectedListener = listener;\n }",
"public void setOnItemClickedListener(OnMenuClickListener itemClickedListener) {\n this.itemClickedListener = itemClickedListener;\n }",
"private void sendListener(Personne item, int position) {\n for (int i = mListListener.size() - 1; i >= 0; i--) {\n\n //chaque item de la liste aura le listener onClickName de liste de nos listener\n mListListener.get(i).onClickNom(item, position);\n }\n }",
"public interface ItemTapListener {\n void itemTap(View view, String result);\n}",
"public void setItemListeners(List<ItemListener> itemListeners) {\r\n\t\tthis.itemListeners = itemListeners;\r\n\t}",
"public static void setOnListSimpleItemClick(PersonalEvents.OnListViewItemClick listener)\n {\n ListenerSimple = listener;\n }",
"public void addListener(AwaleListener awaleListener) {\r\n\tthis.listeners.add(awaleListener);\r\n }",
"public void addListener(EventListener listener);",
"public interface ItemSelectedListener {\n void itemSelected(Object object);\n}",
"public void setClickListener(OnClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public interface OnItemCLickListener {\n void OnItemCLick(PieMenuView source, int item);\n }",
"public void addListener(UIEventListener uel) {\n this.listeners.add(uel);\n }",
"public void setOnItemClickListener(OnItemClickListener listener){\n empListener=listener;\n }",
"public void addListener(\n IListener listener\n )\n {listeners.add(listener);}",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}",
"private void setListener() {\n\t}",
"public interface CurrentItemListener {\n void onNewCurrentItem(int currentItem, int totalItemsCount);\n}",
"public interface ClickListener {\n void onCLickItem(int position);\n }",
"public interface OnLectureItemClickedListener {\n // TODO: Update argument type and name\n public void onLectureItemClickedListener(int position);\n }",
"@Override\r\n\t\t\t\t\tpublic void addItemEventOccurred(AddItemEvent event) {\n\r\n\t\t\t\t\t}",
"public void setItemClickListener(OnItemCLickListener listener) {\n mItemClickListener = listener;\n }",
"public interface onClickRestaurantItemListener {\n void onClickRestaurantItem(int position);\n }",
"public void setItemActionListener(OnAdapteredBaseCallback itemActionListener) {\n this.callbackReference = new WeakReference<OnAdapteredBaseCallback>(itemActionListener);\n }",
"public void setClickListener(ItemClickListener itemClickListener)\n {\n this.itemClickListener = itemClickListener;\n }",
"public interface OnItemClicklistner {\n\n void onItemClick(View v, int position);\n }",
"public interface RecyclerListener {\n void onItemClick(Object o);\n}",
"void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void attach(ChangeListener c){\n listeners.add(c);\n }",
"@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }",
"public interface OnClickItemViewListener{\n void onClickItemView(int idMovie);\n }",
"abstract public void addListener(Listener listener);",
"public interface NoteItemListener {\n void onItemClick(String name);\n void onItemRemove(String name);\n}",
"void setOnItemTextViewClickViewListener(OnRecyclerViewItemTextViewClickListener itemTextViewClickListener){\n this.mTextViewClickListener=itemTextViewClickListener;\n }",
"public interface ItemClickListener {\n void itemClicked(long feedItemId, View view);\n }",
"@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }",
"public ViewHolder(View itemView, ItemClickListener listener) {\n super(itemView);\n this.listener = listener;\n\n layout = (LinearLayout) itemView.findViewById(R.id.oneAlbum_brief);\n imgAlbumCover = (ImageView) itemView.findViewById(R.id.draw_albumcover);\n tvArtist = (TextView) itemView.findViewById(R.id.tv_artistName);\n tvAlbum = (TextView) itemView.findViewById(R.id.tv_albumName);\n\n layout.setOnClickListener(this);\n // tvArtist.setOnClickListener(this);\n // tvAlbum.setOnClickListener(this);\n }",
"public void setOnItemClickListener(LargeViewAdapter.OnItemClickListener listener) {\n this.mListener = listener;\n }",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }",
"public interface OnRecordsItemClickListeners {\n void onRecordsItemClicked(int position);\n}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"public void setOnItemClickListener(OnItemClickListener listener) {\n this.listener = listener;\n }",
"public void setOnItemClickListener(OnItemClickListener listener) {\n this.listener = listener;\n }",
"public void setOnItemClickListener(OnItemClickListener listener) {\n this.listener = listener;\n }",
"public void setOnItemClickListener(OnItemClickListener listener) {\n this.listener = listener;\n }",
"public void setOnItemClickListener(OnItemClickListener listener) {\n this.listener = listener;\n }",
"public void setClickListener(SelectMyTourAdapter.ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"public void setOnItemClickListener(CustomItemClickListener recyclerViewItemClickListner) {\n this.listener = recyclerViewItemClickListner;\n }",
"public interface ListListener {\n public void OnClick(int itemPosition);\n}",
"public void bind(final Fruit fruit, final MyAdapter.OnItemClickListener listener) {\n this.name.setText(fruit.getName());\n this.description.setText(fruit.getDescription());\n this.quant.setText(Integer.toString(fruit.getQuant()));\n Picasso.with(activity).load(fruit.getBackgroundImg()).fit().into(this.imageViewBackground);\n\n /* Le damos color a la cantidad */\n if (fruit.getQuant() == Fruit.LIMIT_QUANTITY) {\n this.quant.setTypeface(null, Typeface.BOLD);\n this.quant.setTextColor(Color.RED);\n } else {\n this.quant.setTypeface(null, Typeface.NORMAL);\n //this.quant.setTextColor(ContextCompat.getColor(activity, R.color.colorPrimary));\n this.quant.setTextColor(Color.GRAY);\n }\n\n this.imageViewBackground.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listener.onItemClick(fruit, getAdapterPosition());\n }\n });\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\ttry {\n\t\t\tmListener = (OnSettingItemSelect) activity;\n\t\t} catch (ClassCastException e) {\n\t\t\tthrow new ClassCastException(activity.toString()\n\t\t\t\t\t+ \"must implement onSettingItemClick!\");\n\t\t}\n\t}",
"private void listner() {\n\t\tdocketList.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}",
"public interface ItemClickListener {\n\n\n void onItemClick(int pos);\n}",
"public void addListener(ClickListener listener);",
"public OnItemClickedListener getOnItemClickedListener() {\n return mOnItemClickedListener;\n }",
"public ClickListener(){\n System.out.println(\"I've been attached\");\n }",
"public void addListener(Listener listener) {\n m_listeners.add(listener);\n }",
"public void bind(String item) {\n tvIngredient.setText(item);\n tvIngredient.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n // Notify the listener which position was long pressed\n longClickListener.onItemLongClicked(getAdapterPosition());\n return true;\n }\n });\n }",
"public interface AttachmentsListener {\n\n /**\n * Fires when user presses 'add' button.\n */\n void onAddAttachments();\n}",
"public OnItemChooserEventListener<ItemT> getItemChooserListener() {\n return itemChooserListener;\n }",
"void addDataCollectionListener(DataCollectionListener l);",
"@Override\n\t\t\t\tpublic void onAddSuccess() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddSuccess();\n\t\t\t\t\t}\n\t\t\t\t}",
"void setListener(Listener listener);",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void setClickListener(ItemClickListener itemClickListener) {\n this.mClickListener = itemClickListener;\n }",
"public void addListeners()\n {\n super.addListeners();\n BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE);\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n recBooking.addArDetail(null, recBookingLine, false);\n \n recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null));\n recBookingLine.addListener(new BookingLineStatusHandler(null));\n }",
"void invokeOnItemScrollListener() {\n if (mOnScrollListener != null) {\n mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount);\n }\n onScrollChanged(0, 0, 0, 0); // dummy values, View's implementation does not use these.\n }",
"public void setOnItemLongClickListener(OnItemLongClickListener listener) {\n this.mItemLongClickListener = listener;\n }",
"protected void fireItemStateChanged(ItemEvent e){\n Object[] listeners=listenerList.getListenerList();\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for(int i=listeners.length-2;i>=0;i-=2){\n if(listeners[i]==ItemListener.class){\n // Lazily create the event:\n // if (changeEvent == null)\n // changeEvent = new ChangeEvent(this);\n ((ItemListener)listeners[i+1]).itemStateChanged(e);\n }\n }\n }"
] |
[
"0.79275256",
"0.7298576",
"0.7007321",
"0.6663135",
"0.65891683",
"0.65345556",
"0.65196437",
"0.6501425",
"0.6445932",
"0.643928",
"0.6431637",
"0.64197767",
"0.6384243",
"0.63166285",
"0.6303339",
"0.62948054",
"0.62584406",
"0.62555665",
"0.6229665",
"0.62258744",
"0.62245",
"0.62199676",
"0.6185083",
"0.6177739",
"0.61770105",
"0.6176782",
"0.61637753",
"0.6136468",
"0.6120517",
"0.61196816",
"0.61164975",
"0.61125994",
"0.61014223",
"0.6081072",
"0.6077816",
"0.6073712",
"0.60694957",
"0.60685205",
"0.6063654",
"0.605803",
"0.6057434",
"0.6057006",
"0.605461",
"0.6042632",
"0.60279876",
"0.6002641",
"0.59994626",
"0.59994626",
"0.59994626",
"0.59994626",
"0.59976745",
"0.5986823",
"0.5969324",
"0.5951108",
"0.59473705",
"0.59447926",
"0.59388536",
"0.5937336",
"0.5932352",
"0.5931684",
"0.59279853",
"0.59279853",
"0.592787",
"0.59231853",
"0.5918273",
"0.5917349",
"0.5917349",
"0.5917349",
"0.5917349",
"0.5917349",
"0.5914959",
"0.5913146",
"0.59129953",
"0.59129953",
"0.5903611",
"0.5897273",
"0.5895988",
"0.5894755",
"0.5892479",
"0.5892001",
"0.589137",
"0.58907133",
"0.5889375",
"0.5882516",
"0.5877359",
"0.5871802",
"0.5862703",
"0.58543515",
"0.58533436",
"0.5850498",
"0.5842629",
"0.5842629",
"0.5842629",
"0.5842629",
"0.5842629",
"0.5842629",
"0.5842629",
"0.5838709",
"0.5834829",
"0.5832247",
"0.58301234"
] |
0.0
|
-1
|
This method remove the listener from the item.
|
public void removeListener(ActionListener listener){
btn.removeActionListener(listener);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"default void removeListener(Runnable listener) {\n\t\tthis.getItemListeners().remove(listener);\n\t}",
"@Override\n public void removeListener() {\n this.mListener = null;\n }",
"public void removeListener(T listener);",
"public void removeListener(GrillEventListener listener);",
"public void removeTuioListener(TuioListener listener)\n\t{\n\t\tlistenerList.removeElement(listener);\t\n\t}",
"public void removeItemListerners() {\r\n\t\titemListeners.clear();\r\n\t}",
"public void removeListDataListener(ListDataListener l) {}",
"@Override\n public void removeListener(InvalidationListener listener) {\n }",
"@Override\n public void removeListener(DisplayEventListener listener) {\n listenerList.remove(DisplayEventListener.class, listener);\n }",
"void removeListener(BotListener l);",
"void removeListener(ChangeListener<? super T> listener);",
"public synchronized void removeEventListener(InputListener listener) {\n\t\tlisteners.remove(listener);\n\t}",
"public void removeItem() {\n tvItem.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n // Notify the listener which position was long pressed.\n longClickListener.onItemLongClicked(getBindingAdapterPosition());\n return true;\n }\n });\n }",
"public void removeNPTListener(NPTListener l) {}",
"private void removeEventListener(IEventListener<T> listener) {\n\t\t\tevent.removeEventListener(listener);\n\t\t}",
"void removeListDataListener(ListDataListener listener);",
"@Override\r\n\tpublic synchronized void unregisterListener(EventListener<T> listener) {\n\t\tlisteners.removeElement(listener);\r\n\t}",
"public void removeListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;",
"public synchronized void removeListener(IIpcEventListener listener) {\n\t\tlisteners.remove(listener);\n\t}",
"public void removeChangeListener(ChangeListener listener) { _changeListeners.remove(listener); }",
"@Override\n public void removeListener(ResourceListener listener) {\n }",
"public void removeListener(ILabelProviderListener listener) {\n \t\t\r\n \t}",
"void removeListener(RiakFutureListener<V,T> listener);",
"public void removeListDataListener(ListDataListener l) {\n }",
"public void removeOnDataChangedListener(OnDataChangedListener listener) {\n dataChangedListeners.remove(listener);\n }",
"public void removeListener(LineListener listener) {\n\t\tplayer.removeListeners(listener);\n\t}",
"public void removeListener(ILabelProviderListener listener) {\n\t\t\t\r\n\t\t}",
"void removeListener(IEventChannelListener<K, V> listener);",
"public void removeEventListener(EventListener listener){\n try {\n listenerList.remove(EventListener.class, listener);\n } catch (Exception e) {\n System.out.println(\"[analizadorClient.removeEventListener]\" + e.getMessage());\n }\n \n \n }",
"public void removeAnswerListener(AnswerListener anw){\n\t\tlisteners.remove(anw);\n\t}",
"public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}",
"public void removeListener(final T listener) {\n if (listener == null)\n throw new IllegalArgumentException(\"Parameter 'listener' must not be null!\");\n for (Iterator<T> it = _elements.iterator(); it.hasNext(); ) {\n if (it.next().equals(listener)) {\n it.remove();\n break;\n }\n }\n }",
"public void removeListener(ValueChangedListener listener) {\n\t\t_listenerManager.removeListener(listener);\n\t}",
"public void removeListener(ILabelProviderListener listener) {\n\t}",
"@Override\n\tpublic void removeActionListener(ActionListener listener) {\n\t\tlisteners.add(listener);\n\t}",
"public void removeFactListener(GenericFactListener<Fact> listener);",
"public void removeHitListener(HitListener hl) {\nthis.hitListeners.remove(hl);\n}",
"public void removeListener(TransferListener listener) {\n listeners.remove(listener);\n }",
"public void removeHitTestListener(HitTestListener l) {\n hitTestListenerList.remove(HitTestListener.class, l);\n }",
"public void removeListDataListener(ListDataListener l) {\n\t}",
"public void removeChangeListener(ChangeListener<BufferedImage> listener) {\n observer.remove(listener);\n }",
"void removeDataCollectionListener(DataCollectionListener l);",
"@Override\n public void removeListener(ChangeListener<? super String> listener) {\n }",
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"public void removeItem(){\n\t\tthis.item = null;\n\t}",
"@Override\r\n public void unregister(L listener) {\r\n synchronized (listeners) {\r\n listeners.remove(listener);\r\n weak.remove(listener);\r\n }\r\n }",
"void removeHitListener(HitListener hl);",
"void removeHitListener(HitListener hl);",
"void removeHitListener(HitListener hl);",
"void removeHitListener(HitListener hl);",
"void removeListener( AvailabilityListener listener );",
"public void removeListener(Listener l) {\n\t\tmListenerSet.remove(l);\n\t}",
"public void removeListener(@NotNull ValueListener<V> listener) {\n\t\tlistener.listenerDetached();\n\t\tvalueListeners.remove(listener);\n\t}",
"@Override\n\tpublic void unregisterEventListener(IHFModuleEventListener li) {\n\t\tLog.d(\"HFModuleManager\", \"unregisterEventListener\");\n\t\tthis.eventListenerList.remove(li);\n\t}",
"public void removeFlickListener(FlickListener l) {\r\n\t\tif (listeners.contains(l)) {\r\n\t\t\tlisteners.remove(l);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void removeListener(INotifyChangedListener notifyChangedListener) {\r\n\t\tchangeNotifier.removeListener(notifyChangedListener);\r\n\t}",
"public void removeListener(IMXEventListener listener) {\n if (isAlive() && (null != listener)) {\n synchronized (mMxEventDispatcher) {\n mMxEventDispatcher.removeListener(listener);\n }\n }\n }",
"void removeListener(GraphListener listener);",
"public void removeListSelectionListener(ListSelectionListener listener)\r\n {\r\n listSelectionListeners.remove(listener);\r\n }",
"@Override\n\tpublic void removeListDataListener(ListDataListener arg0) {\n\n\t}",
"public synchronized void removeButtonListener(ButtonListener l) {\r\n listeners.removeElement(l);\r\n }",
"public void unregister(ListenerRegistration listener) {\n if (handlerSlots.get(listener.getOrder()).contains(listener)) {\n dirty();\n handlerSlots.get(listener.getOrder()).remove(listener);\n }\n }",
"@Override\n public void removeListener(ILabelProviderListener listener) {\n \n }",
"private void removeListener(final @NonNull Consumer<E> listener) {\n eventListeners.remove(listener);\n\n if (eventListeners.isEmpty()) {\n HandlerList.unregisterAll(this);\n LISTENERS_GROUPS.remove(configuration);\n }\n }",
"@Override\n\tpublic void removeListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.removeListener(notifyChangedListener);\n\t}",
"@Override\n\tpublic void removeListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.removeListener(notifyChangedListener);\n\t}",
"@Override\n\tpublic void removeListener(ILabelProviderListener ilabelproviderlistener) {\n\t\t\n\t}",
"public synchronized void removeEventListener(IEventListener listener){\r\n\t\twhile (isBlocked) {\r\n\t\t\tThread.yield();\r\n\t\t}\r\n\t\tlisteners.remove(listener);\r\n\t}",
"public void removeGameListListener(GameListListener listener){\r\n super.removeGameListListener(listener);\r\n\r\n if (listenerList.getListenerCount(GameListListener.class)==0){\r\n setDGState(Datagram.DG_GAMELIST_BEGIN, false);\r\n setDGState(Datagram.DG_GAMELIST_ITEM, false);\r\n }\r\n }",
"public void removeListener(AlgorithmInterface obj) {\r\n objectList.removeElement(obj);\r\n }",
"public void removeListenerForKey(DataFeedListener listener, String key) {\n Vector<DataFeedListener> listeners = listenersForKey(key);\n if (listeners != null) {\n listeners.removeElement(listener);\n }\n }",
"@Override\r\n\tpublic void removeListener(ILabelProviderListener listener) {\n\t\t\r\n\t}",
"public void removeAnimatorListener(Listener aListener) { removeListener(Listener.class, aListener); }",
"public void removeListener(GazListener listener) {\n this.listeners.remove(GazListener.class, listener);\n }",
"public void removeInvalidationListener(Runnable listener)\n {\n myInvalidationChangeSupport.removeListener(listener);\n }",
"void removeListener(\n ReaderSettingsListenerType l);",
"@Override\r\n\tpublic void removeListDataListener(ListDataListener arg0) {\n\r\n\t}",
"public void removeListener(int index) {\n IApplication listener = this.listeners.get(index);\n if (listener == null) {\n return;\n }\n this.app.removeListener(listener);\n this.listeners.set(index, null); // don't remove because that would shift the indexes\n }",
"public void removeListener(final IHistoryStringBuilderListener listener) {\n m_listeners.removeListener(listener);\n }",
"public void removeInteractionsListener(InteractionsListener l) {\n _listeners.remove(l);\n }",
"public void removeONDEXListener(ONDEXListener l) {\n listeners.remove(l);\n }",
"public void removeListener(ICdtVariableChangeListener listener){\n\t\tfListeners.remove(listener);\n\t}",
"@Override\n\tpublic void removeListener(ILabelProviderListener listener) {\n\n\t}",
"@Override\n\tpublic void removeListener(ILabelProviderListener listener) {\n\n\t}",
"@Override\n\tpublic void removeListener(ILabelProviderListener listener) {\n\n\t}",
"public void removeListener(IMember member, MemberModel.IModelListener listener) {\n\t\tIMemberInfo entry = get(member);\n\t\tentry.removeListener(listener);\n\t}",
"@Override\n\tpublic void removeTrigger() {\n\t\tplayer.removeListener(this.listener, EventNameType.SOUL_FIGHT);\n\t}",
"public void removeCellValueListener(CellValueListener listener) {\n\t\tctx.getListenerList(sheetIndex).remove(listener);\n\t}",
"public void removeListener(final IMemoryViewerSynchronizerListener listener) {\n m_listeners.removeListener(listener);\n }",
"@Override\n\tpublic void removeSelectionListener(SelectionListener l) {\n\t\tif (listeners != null) {\n\t\t\tlisteners.remove(l);\n\t\t}\n\t}",
"@Override\n public void removeListener(ILabelProviderListener listener) {\n\n }",
"public void removeChangeListener(ChangeListener listener) {\n listenerList.remove(ChangeListener.class, listener);\n }",
"@Override\n\tpublic void unregistListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.unregister(listener);\n\t}",
"void removePropertyListener(PropertyListener listener);",
"@Override\r\n\tpublic void removeHandlerListener(IHandlerListener handlerListener) {\n\r\n\t}",
"@Override\n\tpublic boolean removeInstanceListener(\n\t\t\tfinal InstanceTaxonomy.Listener<T, I> listener) {\n\t\treturn true;\n\t}",
"protected void removeListeners() {\n }",
"public void removeUpdateListener(StoreUpdateListener listener);",
"@SuppressWarnings(\"unused\")\r\n public synchronized void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n Iterator<WeakReference<PropertyChangeListener>> i = listeners.iterator();\r\n while (i.hasNext()) {\r\n PropertyChangeListener l = i.next().get();\r\n\r\n if ((l == null) || l.equals(listener))\r\n i.remove();\r\n }\r\n if (this.added && (listeners.size() == 0)) {\r\n removeThisFromNotifier();\r\n this.added = false;\r\n }\r\n }",
"void removeStateListener(MessengerStateListener listener);"
] |
[
"0.81005114",
"0.7712397",
"0.7465511",
"0.715009",
"0.71147174",
"0.7089192",
"0.7072993",
"0.70720184",
"0.70406115",
"0.70395964",
"0.703789",
"0.7035316",
"0.7005031",
"0.69865555",
"0.69568783",
"0.69516057",
"0.69509345",
"0.6940097",
"0.6923665",
"0.68840075",
"0.68731064",
"0.6859782",
"0.68550116",
"0.68265575",
"0.6823362",
"0.68058807",
"0.67989784",
"0.6794138",
"0.6793533",
"0.6791909",
"0.67853326",
"0.67837447",
"0.67808074",
"0.67607284",
"0.6759151",
"0.6756453",
"0.67481774",
"0.6745559",
"0.6737176",
"0.6733885",
"0.67328423",
"0.67272645",
"0.6718995",
"0.67167866",
"0.6716656",
"0.6704384",
"0.670016",
"0.670016",
"0.670016",
"0.670016",
"0.6698344",
"0.6694556",
"0.66930157",
"0.66892415",
"0.6672404",
"0.6670826",
"0.66643906",
"0.66554004",
"0.66437405",
"0.6640902",
"0.6639665",
"0.6611052",
"0.66108435",
"0.66099435",
"0.66012806",
"0.66012806",
"0.65935653",
"0.65927446",
"0.6591912",
"0.6576361",
"0.6569079",
"0.65633076",
"0.65585524",
"0.6548122",
"0.6547513",
"0.6544235",
"0.65356606",
"0.6535326",
"0.65344685",
"0.6526532",
"0.6522331",
"0.65144026",
"0.6513732",
"0.6513732",
"0.6513732",
"0.6512759",
"0.65068007",
"0.6503545",
"0.6502502",
"0.64966667",
"0.64956164",
"0.64896846",
"0.6482661",
"0.64754236",
"0.647244",
"0.64683616",
"0.6467412",
"0.64661014",
"0.6463552",
"0.6455589"
] |
0.6556619
|
73
|
This method sets the snack identifier.
|
public void setSnackIdentifier(int snackIdentifier) {
this.snackIdentifier = snackIdentifier;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Builder setSnId(int value) {\n \n snId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSnId(int value) {\n \n snId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSnId(int value) {\n \n snId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSnId(int value) {\n \n snId_ = value;\n onChanged();\n return this;\n }",
"public int getSnackIdentifier() {\n\t\treturn snackIdentifier;\n\t}",
"public void setsId(Integer sId) {\n this.sId = sId;\n }",
"public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }",
"@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}",
"public void setIdcard(String idcard) {\n\t\tthis.idcard = idcard;\n\t}",
"public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }",
"public Builder setSourceSnId(int value) {\n \n sourceSnId_ = value;\n onChanged();\n return this;\n }",
"public void setIdCardNo(String idCardNo) {\n\t\tthis.idCardNo = idCardNo;\n\t}",
"public void setIdentifier( String pIdentifier )\n {\n identifier = pIdentifier;\n }",
"public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }",
"public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }",
"public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }",
"public void setIdentifier(java.lang.String identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }",
"private void setIdentifier(final String identifier) {\n if (identifier != null) {\n setIdentifiers(Collections.singleton(new DefaultIdentifier(identifier)));\n }\n }",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }",
"@Override\r\n public void setIdentifierMessage( int identifier, IBandIdentifier message )\r\n {\r\n\t\tmIdentifierUpdate = message;\r\n }",
"void setIdNumber(String idNumber);",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public Builder setSID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sID_ = value;\n onChanged();\n return this;\n }",
"public void setIdrequest(String idrequest) {\r\n\t\tthis.idrequest = idrequest;\r\n\t}",
"public void setIdCard(String idCard) {\n this.idCard = idCard == null ? null : idCard.trim();\n }",
"public void setIdCard(String idCard) {\r\n this.idCard = idCard == null ? null : idCard.trim();\r\n }",
"public native void setIdentifier (String identifier);",
"public final void setIdentifier(ASN1Identifier id)\n {\n content.setIdentifier(id);\n return;\n }",
"void setIdentifier(org.hl7.fhir.Identifier identifier);",
"public void setCardNo(int cardNumber);",
"public void setIdcard(String idcard) {\n this.idcard = idcard == null ? null : idcard.trim();\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard == null ? null : idcard.trim();\r\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard == null ? null : idcard.trim();\r\n }",
"public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }",
"public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}",
"public void setShuxingid(Integer shuxingid) {\n this.shuxingid = shuxingid;\n }",
"public void setIdentifier(IdentifierNode identifier);",
"public void setCardID(java.lang.String param) {\r\n localCardIDTracker = param != null;\r\n\r\n this.localCardID = param;\r\n }",
"public Gateway setTid(java.lang.String tid) {\n return genClient.setOther(tid, CacheKey.tid);\n }",
"protected void setId(short id) {\n this.id = id;\n }",
"public void setID(String username){\n this.clientID = username+\": \"+clientID;\n \n }",
"public void setID(int number) {\n this.clientNumber = number;\n }",
"public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }",
"public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }",
"public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }",
"public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }",
"void setSOID(java.lang.String soid);",
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"public void setSID(int id) {\n this.SID = id;\n }",
"public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"private void setId(String id) {\r\n\t\tAssert.hasText(id, \"This state must have a valid identifier\");\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(String anId) {\n _theId = anId;\n }",
"void setPosNr(String posNr);",
"public void setSn(Short sn) {\n\t\tthis.sn = sn;\n\t}",
"public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}",
"@NonNull\n public Builder setIdentifier(@NonNull String identifier) {\n require(!TextUtils.isEmpty(identifier), \"identifer must not be null or empty\");\n mProtoBuilder.id = identifier;\n return this;\n }",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);\n }\n target.set(identifier);\n }\n }",
"private void setMessageId(long value) {\n \n messageId_ = value;\n }",
"@Override\n\tpublic void setSn(Long sn) {\n\t\t\n\t}",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public void setIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2);\n }\n target.set(identifier);\n }\n }",
"@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}",
"public void setCardPk(String value) {\r\n setAttributeInternal(CARDPK, value);\r\n }",
"@Override\n\tpublic void setUniqueId(int id) {}",
"@Override\n public PaMessageHeaderBuilder setIdentifier(final long identifier)\n throws RuleException {\n this.identifier = identifier;\n\n return this;\n }",
"public void setMySpeciesIdentifier(int mySpeciesIdentifier) {\n this.mySpeciesIdentifier = mySpeciesIdentifier;\n }",
"public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }",
"public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }",
"public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }",
"public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }",
"public void setId(short value) {\n this.id = value;\n }",
"void xsetSOID(org.apache.xmlbeans.XmlString soid);",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setStack(int id){\n\t\tStackID = id;\n\t}",
"@Override\n\tpublic void setIdentification(String identification) {\n\n\t}",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"private void setAid(int value) {\n \n aid_ = value;\n }",
"public void setIdentifier(String identifier) {\n this.identifier = identifier == null ? null : identifier.trim();\n }",
"@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setId_number(String id_number) {\n this.id_number = id_number;\n }",
"public void setTid(int tid);",
"@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}",
"public void setSid(Integer sid) {\r\n\t\tthis.sid = sid;\r\n\t}"
] |
[
"0.66500205",
"0.66500205",
"0.66500205",
"0.66500205",
"0.6565841",
"0.63890654",
"0.6342981",
"0.6316481",
"0.62680745",
"0.62086326",
"0.61930954",
"0.61926186",
"0.6123918",
"0.6114204",
"0.6110471",
"0.6110471",
"0.60708004",
"0.59699655",
"0.5969279",
"0.5965913",
"0.59606135",
"0.59539944",
"0.5945111",
"0.59087825",
"0.59087825",
"0.59087825",
"0.59087825",
"0.59087825",
"0.59087825",
"0.59087825",
"0.5901693",
"0.5888414",
"0.58812416",
"0.58508",
"0.58463264",
"0.58324677",
"0.5827934",
"0.5812686",
"0.58051974",
"0.58051974",
"0.5797365",
"0.57949054",
"0.5790505",
"0.5781083",
"0.57387817",
"0.5727665",
"0.5720797",
"0.5720596",
"0.57143646",
"0.5708515",
"0.5697366",
"0.5697366",
"0.5692618",
"0.56898165",
"0.5663057",
"0.5654274",
"0.5636063",
"0.563597",
"0.563597",
"0.563597",
"0.563597",
"0.5625763",
"0.56217927",
"0.56170684",
"0.56056947",
"0.5596062",
"0.5593909",
"0.5593521",
"0.5580856",
"0.5580856",
"0.5580856",
"0.5580856",
"0.55788594",
"0.55712074",
"0.5570163",
"0.556867",
"0.5567511",
"0.5561718",
"0.55605584",
"0.55527663",
"0.55498827",
"0.55436856",
"0.5541739",
"0.5540359",
"0.5540359",
"0.5540359",
"0.5540359",
"0.5537434",
"0.55338365",
"0.55310565",
"0.5519069",
"0.5514724",
"0.5512929",
"0.55012196",
"0.5497593",
"0.54885274",
"0.54815656",
"0.54786503",
"0.54751086",
"0.5473446"
] |
0.7886864
|
0
|
This method returns the snack identifier.
|
public int getSnackIdentifier() {
return snackIdentifier;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"public int getSnId() {\n return snId_;\n }",
"int getSourceSnId();",
"public int getSourceSnId() {\n return sourceSnId_;\n }",
"public int getSourceSnId() {\n return sourceSnId_;\n }",
"int getPrimarySnId();",
"int getPrimarySnId();",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public Long getSnacksInfoId() {\n return snacksInfoId;\n }",
"String getSlingId();",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public int getPrimarySnId() {\n return primarySnId_;\n }",
"public void setSnackIdentifier(int snackIdentifier) {\n\t\tthis.snackIdentifier = snackIdentifier;\n\t}",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n identifier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getIdentifier();",
"int getPacketId();",
"@NonNull String identifier();",
"java.lang.String getMessageId();",
"java.lang.String getMessageInfoID();",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"public int getIdentifier()\n {\n return identifier;\n }",
"public int getIdentifier();",
"int getMessageId();",
"public String getScid() {\n return scid;\n }",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"Object getMessageId();",
"int getIdentifier();",
"public Integer getShuxingid() {\n return shuxingid;\n }",
"public String getNewId() {\n\t\treturn \"sccp-\" + idCounter++;\n\t}",
"public String getIdentifierString();",
"public String getIdentifier()\n {\n return identifier;\n }",
"public String getIdentifier();",
"public String getIdentifier();",
"public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Short getSn() {\n\t\treturn sn;\n\t}",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"int getSendid();",
"public String getIdentifier() {\n\t\treturn identifier;\n\t}",
"@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }",
"long getMessageId();",
"long getMessageId();",
"@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }",
"long getMsgId();",
"String getUniqueId();",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public java.lang.String getSID() {\n java.lang.Object ref = sID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n sID_ = s;\n return s;\n }\n }",
"public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}",
"public String getIdentifier() {\r\n\t\treturn this.identifier;\r\n\t}",
"@Nullable\n public String getIdentifier()\n {\n return identifier;\n }",
"public String getSTBID(){\n\t\tString stbid = \"\";\n\t\t\n\t\tGetSysInfo sysinfo = GetSysInfo.getInstance(\"10086\", \"\");\n\t\t\n\t\tif (sysinfo != null){\n\t\t\tstbid = sysinfo.getSnNum();\n\t\t}\n\t\t\n\t\tif (stbid == null || stbid.equals(\"\")){\n\t\t\tif (mProfile != null){\n\t\t\t stbid = mProfile.getUserID();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (stbid == null){\n\t\t\tstbid = \"\";\n\t\t}\n\t\t\n\t\treturn stbid.toUpperCase();\n\t}",
"String getIdNumber();",
"java.lang.String getSenderId();",
"@SuppressWarnings(\"WeakerAccess\")\n public String getId() {\n return mSid;\n }",
"public String getStandardID() {\n\t\treturn parentDevice.getSSID() + \"_\" + SSID;\n\t}",
"public int getSsn() {\n\t\treturn ssn;\n\t}",
"String getNotificationID();",
"protected abstract String getIdentifier();",
"public int identifier();",
"String getSourceID();",
"public java.lang.String getSsn() {\n java.lang.Object ref = ssn_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n ssn_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] |
[
"0.71545464",
"0.71545464",
"0.71545464",
"0.71545464",
"0.71487117",
"0.71487117",
"0.71487117",
"0.71487117",
"0.7080016",
"0.7080016",
"0.7080016",
"0.7080016",
"0.7025923",
"0.67131263",
"0.66466814",
"0.6629086",
"0.6629086",
"0.65806943",
"0.65806943",
"0.65769017",
"0.6539416",
"0.65025705",
"0.65025705",
"0.6447333",
"0.64039916",
"0.6362523",
"0.63549",
"0.6340155",
"0.63355196",
"0.6300244",
"0.62998545",
"0.6285275",
"0.6244212",
"0.6238994",
"0.6222927",
"0.62105894",
"0.6200386",
"0.6200386",
"0.6200386",
"0.6200386",
"0.6200386",
"0.6200386",
"0.6200386",
"0.61836255",
"0.6179141",
"0.6160642",
"0.61547834",
"0.61532134",
"0.61384326",
"0.61361015",
"0.61361015",
"0.6132033",
"0.6116617",
"0.61163723",
"0.6115348",
"0.6115223",
"0.6115223",
"0.6115223",
"0.6115223",
"0.6115223",
"0.6115223",
"0.6115223",
"0.6108859",
"0.6103157",
"0.6103157",
"0.6103157",
"0.6103157",
"0.6103157",
"0.6103157",
"0.6103157",
"0.6103157",
"0.6085342",
"0.6056194",
"0.60486",
"0.6047957",
"0.6047957",
"0.6045122",
"0.6039266",
"0.60370255",
"0.60318005",
"0.60318005",
"0.60318005",
"0.60318005",
"0.60318005",
"0.60318005",
"0.60318005",
"0.60304743",
"0.6004574",
"0.60004514",
"0.59935963",
"0.5987435",
"0.5983334",
"0.59581536",
"0.5947109",
"0.59449273",
"0.5943566",
"0.5938061",
"0.59357786",
"0.59324944",
"0.59226"
] |
0.8594518
|
0
|
This method sets the name on the Snack Selection Item.
|
public void setName(String name) {
this.name = name;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setSelectedName(String s) {\n\t\tuName = s;\n\t}",
"public ItemBuilder setName(String name) {\r\n\t\tthis.name = name;\r\n\t\treturn this;\r\n\t}",
"@Override\r\n public void setName(String name) {\n }",
"@Override\n public void setName(String name) {\n \n }",
"public void setName(String name) {\n\t\tthis.name = name;\n\t\tthis.setText(name);\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String value) {\n this.name = value;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"public final void setName(String name) {_name = name;}",
"@Override\n\tpublic void setName( final String name )\n\t{\n\t\tsuper.setName( name );\n\t}",
"public void setName(String name) {\n m_Name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\n {\n _name = name;\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"void setName(String name_);",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"@Override\n public void setName(String name) {\n\n }",
"public void setName(String s) {\n this.name = s;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setName(String name) {\n _name = name;\n }",
"public void setName(String name) \n {\n this.name = name;\n }",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(String value) {\n\t\tname = value;\n\t}",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName(String name)\r\n {\r\n m_name = name;\r\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public void setName(String name) {\r\n\t\tthis.title = name;\r\n\t}",
"public void setName(String n) {\n this.name = n;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setItemName(String itemName) {\n this.itemName = itemName;\n }",
"public void setItemName(String itemName) {\n this.itemName = itemName;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName (String n) {\n name = n;\n }",
"void setName(String name) {\r\n this.name = name;\r\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n itemname = parent.getItemAtPosition(position).toString();\n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void renameSelected(String name) {\n if( getAdapter().getSelectionManager().getSelection().size > 0 ) {\n AnimationDef def = getAdapter().getSelectionManager().getSelection().first();\n removeAnimationDef(def);\n def.setName(name);\n addAnimationDef(def);\n }\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String value);",
"public void setName(java.lang.String value);",
"protected void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"protected void setName(String name) {\n this._name = name;\n }",
"public void setName( String name ) {\n this.name = name;\n }"
] |
[
"0.73950404",
"0.6930032",
"0.67484003",
"0.67133343",
"0.67113554",
"0.66703206",
"0.66673",
"0.66673",
"0.66664743",
"0.66664743",
"0.6658198",
"0.6651124",
"0.66494155",
"0.66494155",
"0.6646907",
"0.6631351",
"0.66229945",
"0.6609154",
"0.66069806",
"0.6602913",
"0.65961117",
"0.6593517",
"0.6593517",
"0.6593517",
"0.6593517",
"0.6589838",
"0.6575796",
"0.65638745",
"0.65613973",
"0.65613973",
"0.65613973",
"0.65528446",
"0.6551958",
"0.65505046",
"0.65504456",
"0.6548911",
"0.6544705",
"0.65439004",
"0.65377116",
"0.6520829",
"0.65207326",
"0.65207326",
"0.65207326",
"0.6520347",
"0.65178627",
"0.6517538",
"0.6512363",
"0.6512363",
"0.65121704",
"0.65121704",
"0.6510876",
"0.6510876",
"0.6510876",
"0.6507928",
"0.6502866",
"0.65020967",
"0.6500605",
"0.6499032",
"0.6498311",
"0.6496128",
"0.6493603",
"0.64932805",
"0.649209",
"0.649209",
"0.649209",
"0.649209",
"0.649209",
"0.649209",
"0.649209",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.6489347",
"0.64874035",
"0.6484907",
"0.64828163",
"0.64828163",
"0.64691395",
"0.6468899",
"0.6468899",
"0.6468899",
"0.6468899",
"0.64682674",
"0.6466463",
"0.6452691",
"0.6452554"
] |
0.0
|
-1
|
This method returns the name of the Snack Selection Item.
|
public String getName() {
return name;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}",
"public String getName() {\n return item.getName();\n }",
"public String getItemName() {\r\n return itemName;\r\n }",
"public String getItemName() {\r\n return itemName;\r\n }",
"public String getItemName() {\r\n return itemName;\r\n }",
"public String getName() {\n\t\treturn itemName;\n\t}",
"public String getItemName()\n {\n return itemName;\n }",
"public String getItemName() {\n\t\treturn _itemName;\n\t}",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\r\n\t\treturn itemName;\r\n\t}",
"public String getItemName() {\n\t\treturn ((name != null) ? name : (name = MiscUtils.getName(this)));\n\t}",
"@Nullable String pickItem();",
"public String getName(int position){\n Item current = getItem(position);\n return current.Name();\n }",
"@Override\n\tpublic String getName() {\n\t\treturn ((Extension)_item).getId() + \".\" + ((Extension)_item).getTitle();\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n itemname = parent.getItemAtPosition(position).toString();\n }",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn item.getItemStackDisplayName(stack);\n\t\t//#endif\n\t}",
"public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }",
"public synchronized String getName(){\n \treturn item_name;\n }",
"private String getName() {\n StringBuilder name = new StringBuilder();\n valuesOfSpinners.clear();\n\n for (int i = 0; i < this.flexboxLayout.getFlexItemCount(); i++) {\n Spinner spinner = ((Spinner) this.flexboxLayout.getFlexItemAt(i));\n String str = (spinner.getSelectedItem()).toString();\n name.append(str);\n valuesOfSpinners.add(str);\n }\n\n return name.toString();\n }",
"private String getSelectedString() {\n\t\treturn menuItem[selectedIndex];\r\n\t}",
"protected String getChoiceName() {\n\t\treturn choiceOption.getOptionName();\n\t}",
"public String getName() {\n\t\treturn MenuString;\n\t}",
"@Override\n public String getItemName() {\n\treturn \"Goblin Sword\";\n }",
"String getSelectedStateName();",
"public String getSelectedItem() {\n return (String) itsCombo.getSelectedItem();\n }",
"@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }",
"String getItemName(ItemStack itemStack) {\r\n\t\treturn WordUtils.capitalizeFully(itemStack.getType().name().toLowerCase().replace('_', ' '));\r\n\t}",
"public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }",
"public String obtenirNomItem() {\n\t\treturn this.nomItem;\n\t}",
"public String getItem() {\r\n\t\treturn item;\r\n\t}",
"public String getItem() {\r\n return item;\r\n }",
"public String getSelectedWeaponName() {\n return \"\";\n }",
"public String getKeyBuyItemName() {\r\n return getKeyShootName();\r\n }",
"public String getSelected ()\n {\n ConfigTreeNode node = _tree.getSelectedNode();\n return (node == null)\n ? null\n : node.getName();\n }",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn mDiagnosisItemName[arg0];\n\t}",
"public String getItem(int position) {\n return listName[position];\n }",
"public String selectName()\n {\n JOptionPane nameSelector = new JOptionPane();\n String name = nameSelector.showInputDialog(\"What is this trainer's name?\");\n return name;\n }",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn grid_names.get(arg0);\r\n\t}",
"@Override\n public String getItemSelectionText() {\n String itemString = getFirstNameAndLastName(itemVO);\n if (getUsername(itemVO) != null && !getUsername(itemVO).trim().equals(\"\")) {\n itemString += \" - \" + getUsername(itemVO);\n }\n\n return itemString;\n }",
"public String getSelected()\r\n {\r\n if (selectedIndex == -1)\r\n return null;\r\n \r\n return towerTypes[selectedIndex];\r\n }",
"@Override\n\tpublic String getName() {\n\t\treturn ActionEnum.ADD_ITEM_COLLECTION.getActionName();\n\t}",
"@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}",
"public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}",
"@Override\n public String getName() {\n return this.name();\n }",
"protected String getSelectionTitle() {\n\t\treturn Messages.ModelElementSelectionPageMessage;\n\t}",
"@Override\n\tprotected CharSequence convertSelectionToString(Object selectedItem) {\n//\t\tParseUser temp = (ParseUser) selectedItem;\n//\t\treturn temp.getString(\"name\");\n\t\treturn \"\";\n\t}",
"public String menu_item_name() {\n\t\treturn driver.findElement(menu_item_logout).getText();\n\t}",
"public String getItemText() {\n\t\treturn this.itemText;\n\t}",
"public String getItemDetailName() {\n return itemDetailName;\n }",
"public String getNomeItem() {\r\n\t\treturn this.emprestimoid.getNomeItem();\r\n\t}",
"public String getMctStdItemName() {\n return mctStdItemName;\n }",
"public String getComponentName(ItemStack item) \t{ return tag(item) ? item.stackTagCompound.getString(\"componentName\") : null; }",
"public String getCurrentTitle() {\n\t\tif (getSelectedIndex() == -1) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn getTitleAt(getSelectedIndex());\n\t}",
"@Override\r\n\tpublic String getName() {\n\t\treturn this.name;\r\n\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}",
"String getSlingName();",
"private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }",
"private JMenuItem getItemSair() {\r\n\t\tif (itemSair == null) {\r\n\t\t\titemSair = new JMenuItem(\"Sair\");\r\n\t\t}\r\n\t\treturn itemSair;\r\n\t}",
"public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}",
"public String getItemTitle() {\n\t return this.itemTitle;\n\t}",
"@Override\n public String toString() {\n return NameProvider.getNameOfBlockOrItem(this.id, this.data);\n }",
"@Override\n\tpublic String getName() {\n\t\treturn this.name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn this.name;\n\t}",
"@Override\r\n\tpublic String getName() \r\n\t{\r\n\t\treturn this._name;\r\n\t}",
"public String getAsNameAbbreviated(String itemName);",
"@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}",
"@Override\n public String getName() {\n return name();\n }",
"public String getName() {return this.name.getText();}",
"@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}",
"public static String itemNameForSearch(){\n\n String[] itemNameArr = new String[3];\n itemNameArr[0] = \"nivea\";\n itemNameArr[1] = \"dove\";\n itemNameArr[2] = \"ricci\";\n\n return itemNameArr[CommonMethods.getRandomValue(0,2)];\n }",
"public StringKey getName() {\n return ModelBundle.SHIP_NAME.get(name);\n }",
"@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}",
"public String getName() {\r\n return this.name();\r\n }",
"public Object getSelectedObject() {\n return (String) itsCombo.getSelectedItem();\n }",
"public String getName() {\n\t\treturn this.toString();\n\t}",
"@Override\n public String getName() {\n return this.name;\n }",
"public String getComboName(int pointsInRow) {\r\n\t\tint index = this.getComboIndex(pointsInRow);\r\n\t\treturn index == -1 ? \"\" : this.comboNames[index];\r\n\t}",
"public String selection() {\n return inputter.selection();\n }",
"@Override\n\tpublic String getName() {\n\t\treturn this.name;\n\t\t\n\t}",
"String getMenuName();",
"@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() \n {\n return m_sName;\n }",
"@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}",
"@Override\n public String name() {\n return this._name;\n }",
"public String getTaskTitle() {\n return String.valueOf(comboBox.getSelectedItem());\n }",
"public String getName() {\r\n\t\treturn this.title;\r\n\t}",
"public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}",
"@Override\n\tpublic String getName() {\n\n\t\treturn name;\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn getName();\r\n\t}",
"public void setItemName(String itemName) {\n this.itemName = itemName;\n }",
"public void setItemName(String itemName) {\n this.itemName = itemName;\n }",
"public String getKeySellMenuName() {\r\n return keySellMenuName;\r\n }",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}"
] |
[
"0.7239674",
"0.71795774",
"0.71560526",
"0.71560526",
"0.71560526",
"0.7127389",
"0.7119232",
"0.7112614",
"0.7099903",
"0.7099903",
"0.7099903",
"0.7099903",
"0.7099903",
"0.70801777",
"0.6923132",
"0.6639073",
"0.6638311",
"0.65696913",
"0.6557792",
"0.64674485",
"0.64520836",
"0.64298695",
"0.6426431",
"0.6407556",
"0.64011484",
"0.63940006",
"0.6365843",
"0.6336609",
"0.6304816",
"0.630016",
"0.62719697",
"0.6265332",
"0.62630105",
"0.6218807",
"0.61760104",
"0.6148538",
"0.5999882",
"0.5997293",
"0.5986299",
"0.5968308",
"0.59536153",
"0.5939624",
"0.5910386",
"0.59099776",
"0.5907903",
"0.5879105",
"0.58731866",
"0.5868893",
"0.5866163",
"0.5863749",
"0.58518183",
"0.58482736",
"0.58432335",
"0.5837195",
"0.58336097",
"0.5816753",
"0.5809698",
"0.5805702",
"0.5795988",
"0.5788871",
"0.5782514",
"0.57758915",
"0.5772504",
"0.5772121",
"0.5763575",
"0.5758376",
"0.5758376",
"0.5756905",
"0.57560277",
"0.5750991",
"0.57377934",
"0.57341504",
"0.573391",
"0.5733448",
"0.5727298",
"0.57221776",
"0.57187086",
"0.57185674",
"0.5717767",
"0.5713316",
"0.57107115",
"0.5708656",
"0.5699242",
"0.5698852",
"0.56906193",
"0.5681098",
"0.56773615",
"0.5671159",
"0.5657492",
"0.56482327",
"0.56474435",
"0.56392175",
"0.56372625",
"0.56365395",
"0.56365395",
"0.5635846",
"0.56357694",
"0.56313205",
"0.56313205",
"0.56313205",
"0.56313205"
] |
0.0
|
-1
|
This method sets the price on the Snack Selection Item.
|
public void setPrice(int price) {
this.price = price;
lbl.setText(price+" C");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public void setPrice(int price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(int price) {\n this.price = price;\n }",
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"public void setPrice(int value) {\n this.price = value;\n }",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"public Builder setPrice(int value) {\n bitField0_ |= 0x00000020;\n price_ = value;\n \n return this;\n }",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public void setPrice(int price) {\n\tthis.price = price;\n}",
"protected void setItemPrice(Double itemPrice) {\n this.itemPrice = itemPrice;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price){this.price=price;}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }",
"protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public void setPrice(Double price);",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(double p) {\n\t\tprice = p;\n\t}",
"public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}",
"public void setPrice(Money price) {\n this.price = price;\n }",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }",
"public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(Float price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }",
"public void setShopItemPrice(Double price) {\n\t\tlblPrice.setText(\"Price : \" + price + \" NTD\");\n\t}",
"public void setPrice(final BigDecimal price) {\n this.price = price;\n }",
"@Override\n public void onPriceChange(String price) {\n poll.setPrice(YelpPriceLevel.fromYelpString(price));\n }",
"protected void setFormattedItemPrice(String formattedItemPrice) {\n this.formattedItemPrice = formattedItemPrice;\n }",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"void setPrice(int price) {\n mPriceTextView.setText(StoreUtils.getPriceString(price, mCurrency));\n }",
"public void setPotatoesPrice(double p);",
"public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}",
"@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}",
"public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(String price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(java.lang.String price) {\n this.price = price;\n }",
"private void setInitial_itemPrice()\n {\n\n calcTotalPrice(selectedItemQuantity, itemPrice);\n if(label_totalPrice.getText().equals(\"\"))\n {\n label_totalPrice.setText(\"\" + itemPrice);\n }\n\n }",
"public void setArmorPrice(int armorPrice) {\r\n\t\tsuper.setItemPrice(armorPrice);\r\n\t}",
"public void setOptionPrice(double optionPrice)\n {\n this.optionPrice = optionPrice;\n }",
"public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }",
"public Builder setPrice(double value) {\n bitField0_ |= 0x00000010;\n price_ = value;\n onChanged();\n return this;\n }",
"public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }",
"public void setpPrice(double pPrice) {\n this.pPrice = pPrice;\n }",
"public void setPrice(Long price) {\n this.price = price;\n }",
"@Override\n\tpublic void setAskingPrice(java.lang.String askingPrice) {\n\t\t_buySellProducts.setAskingPrice(askingPrice);\n\t}",
"public void setVehiclePrice(int vehiclePrice) {\n this.itemPrice = vehiclePrice;\n }",
"public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }",
"public void changePrice(Product p, int price){\r\n\t\tp.price = price;\r\n\t}",
"public void updatePrice(){\n\t\tprice = 0;\n\t\tfor (ParseObject selectedItem : selectedItems){\n\t\t\tprice += selectedItem.getInt(\"price\");\n\t\t}\n\n\t\tTextView orderTotal = (TextView) findViewById(R.id.orderTotal);\n\t\torderTotal.setText(\"$\" + price + \".00\");\n\t}",
"public void setPrice (Product product) {\n\t\tpriceLbl.setText(product.getPrice() + \"\");\n\t\tpriceLbl.repaint();\n\t}",
"public void setMprice(int value) {\r\n this.mprice = value;\r\n }",
"public void setPriceEntered (BigDecimal PriceEntered);",
"public void setItemPrice(AmountType itemPrice) {\n\t this.itemPrice = itemPrice;\n\t}",
"public void setItemPrice(float itemPrice)\n\t{\n\t\tthis.itemPrice = itemPrice;\n\t}",
"public void setPrice(double price){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tif(price>0)\r\n\t\t\tthis.price = price;\r\n\t\t\telse\r\n\t\t\t\tthrow new negativeNumberException();\r\n\t\t}catch (negativeNumberException ex){\r\n\t\t\tSystem.out.println(\"The price can not be negative, \"\r\n\t\t\t\t\t+ \"please reenter a positive value\");\r\n\t\t\tSystem.out.println(\"Enter a price:\");\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\tdouble retry = input.nextDouble();\r\n\t\t\tsetPrice(retry);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void setPrice(java.lang.String price) {\n\t\t_lineaGastoCategoria.setPrice(price);\n\t}",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"private void setDiscountedPrice() {\n seekbarNewprice.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvDiscountPerc.setText(progress * 5 + \"%\");\n try {\n double originalPrice = Double.parseDouble(etOriginalPrice.getText().toString());\n double sp = (progress * 5 * originalPrice) / 100;\n\n tvNewPrice.setText(String.format(Locale.US, \"%.2f\", originalPrice - sp));\n } catch (NumberFormatException ne) {\n ne.printStackTrace();\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n }",
"@Test\n public void testSetPrice() {\n System.out.println(\"setPrice\");\n int price = 0;\n Menu instance = MenuFactory.createMenu(MenuType.FOOD, name, 14000);\n instance.setPrice(price);\n assertTrue(instance.getPrice() != 14000);\n assertTrue(instance.getPrice() == price);\n }"
] |
[
"0.7306219",
"0.6991119",
"0.69729406",
"0.6972445",
"0.6972445",
"0.6972445",
"0.69462746",
"0.6941045",
"0.69405574",
"0.69380665",
"0.6933257",
"0.6933257",
"0.6933257",
"0.6933257",
"0.6933257",
"0.6933257",
"0.6933257",
"0.6907863",
"0.68937653",
"0.68838406",
"0.68785596",
"0.68718576",
"0.68621385",
"0.6861979",
"0.6851306",
"0.68368626",
"0.68368626",
"0.6829901",
"0.6829901",
"0.68037945",
"0.67791045",
"0.6762604",
"0.6761188",
"0.67593133",
"0.6750306",
"0.67392427",
"0.6723842",
"0.6723842",
"0.6718715",
"0.6716013",
"0.6688322",
"0.6688322",
"0.6688322",
"0.6688322",
"0.66881335",
"0.66873395",
"0.66873395",
"0.66873395",
"0.6682231",
"0.6682231",
"0.66652966",
"0.66306186",
"0.66306186",
"0.6586557",
"0.6584575",
"0.65748924",
"0.6566769",
"0.6559093",
"0.65456164",
"0.6539938",
"0.6539938",
"0.65392685",
"0.6532548",
"0.6532548",
"0.65295416",
"0.6529462",
"0.6518907",
"0.65146524",
"0.64842534",
"0.6483426",
"0.6460837",
"0.645714",
"0.64522874",
"0.6421272",
"0.64174867",
"0.64002895",
"0.63996667",
"0.6380595",
"0.6350714",
"0.6349044",
"0.6330339",
"0.6288346",
"0.62880576",
"0.62782097",
"0.6270861",
"0.62481904",
"0.6245664",
"0.6212657",
"0.62032795",
"0.61760956",
"0.61729985",
"0.61679566",
"0.6139518",
"0.61353314",
"0.6129861",
"0.6112147",
"0.607823",
"0.60554624",
"0.6039517",
"0.60066795"
] |
0.6695129
|
40
|
This method returns the price on the Snack Selection Item.
|
public int getPrice() {
return price;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}",
"protected Double getItemPrice() {\n return itemPrice;\n }",
"protected float getChoicePrice() {\n\t\treturn choiceOption.getPrice();\n\t}",
"public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}",
"public int getPrice() {\n return price_;\n }",
"protected String getFormattedItemPrice() {\n return formattedItemPrice;\n }",
"public double getPrice() {\n return price_;\n }",
"public double getPrice() {\n return price_;\n }",
"public int getPrice() {\n return price_;\n }",
"public double price() {\n return price;\n }",
"@Override\n\tpublic int getPrice(int itemNumber) {\n\t\treturn inventory.getItemPrice(itemNumber);\n\t}",
"public double getPrice(){\n\t\t\treturn price;\n\t\t}",
"public double getPrice(){\n\t\t\n\t\treturn price;\n\t}",
"public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"public Integer getPrice() {\r\n return price;\r\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"@Override\n\tpublic int getPrice() {\n\t\treturn product.getPrice();\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getItemPrice(){\n\t\t\t String priceStr;\n\t\t\t double price;\n\t\t\t String elemVal = driver.findElement(productPrice).getText();\n\t Reporter.log(\"==========Item Price is \" + elemVal + \"=======\", true);\n\t priceStr = elemVal.substring(1, elemVal.length());\n\t //return double as it is a price\n\t price = Double.parseDouble(priceStr);\n\t return price;\n\t }",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public double getOptionPrice()\n {\n return optionPrice;\n }",
"public double getPrice(){\n\t\treturn this.price;\n\t}",
"public double getPrice(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getDouble(WorkerController.PRICE);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"public java.lang.Integer getPrice()\n {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice()\n\t{\n\t\treturn this.price;\n\t}",
"public double getPrice() {\n\t\treturn this.price;\n\t}",
"public double getPrice(){\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"protected float getPrice() {\n\t\t\treturn price;\n\t\t}",
"public String getPrice() {\n return price;\n }",
"public String getPrice() {\n return price;\n }",
"public double getPrice() {\n\t\t\treturn price;\n\t\t}",
"public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}",
"private String getShippingPrice(Document item) {\n String result;\n result = item.select(\"span[class^=shippingPrice]\").html();\n return result;\n }",
"public Double getPrice() {\r\n\t\treturn price;\r\n\t}",
"public int getPrice() {\r\n\t\treturn price;\r\n\t}",
"public double getPrice() {\n return this.price;\n }",
"@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public AmountType getItemPrice() {\n\t return this.itemPrice;\n\t}",
"public java.lang.String getPrice() {\n return price;\n }",
"@Override\n\tpublic double getItemPrice(String itemCode) {\n\n\t\treturn 100.00;\n\t}",
"@Override\n public double getPrice(){\n \n return currentPrice; \n }",
"public int getPrice() {\n return price;\n }",
"public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }",
"public double getPrice()\n {\n \treturn price;\n }",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}",
"public double getPrice() {\n return price;\n }",
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public Double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn regularCheckOut.getPrice() * subscriberDiscount;\n\t}",
"@Override\n\tpublic java.lang.String getAskingPrice() {\n\t\treturn _buySellProducts.getAskingPrice();\n\t}",
"public double getPrice()\r\n {\r\n return this.price;\r\n }",
"public double calculatePrice() {\r\n\t\treturn menuItem.getPrice() * quantity;\t\r\n\t}",
"public double getPrice()\r\n {\r\n return price;\r\n }",
"public int getPrice ( ) {\n return price;\n }",
"@Override\n\tpublic float getPrice() {\n\t\treturn 70.0f;\n\t}",
"public Double getPrice() {\r\n return price;\r\n }",
"public double getPrice()\n {\n return this.price;\n }",
"public int getPrice() {\r\n return price;\r\n }",
"public long getPrice() {\n return price;\n }",
"protected int getmPrice() {\n\t\treturn mPrice;\n\t}",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }"
] |
[
"0.7409782",
"0.7296207",
"0.7139328",
"0.7104668",
"0.69228363",
"0.6918596",
"0.6914247",
"0.6905929",
"0.6896303",
"0.6871751",
"0.6859887",
"0.6844159",
"0.6836352",
"0.68208826",
"0.68075836",
"0.68069446",
"0.678455",
"0.678455",
"0.6780579",
"0.6778122",
"0.6778122",
"0.6778122",
"0.6767565",
"0.6763773",
"0.6750245",
"0.6749679",
"0.67455834",
"0.67438036",
"0.6735085",
"0.6734626",
"0.6734626",
"0.6734626",
"0.6734626",
"0.67305166",
"0.67225116",
"0.67225116",
"0.67225116",
"0.67225116",
"0.6717741",
"0.6711129",
"0.67111236",
"0.6710557",
"0.6710557",
"0.6709082",
"0.6709082",
"0.6709082",
"0.6709082",
"0.6709082",
"0.6703256",
"0.67005205",
"0.67005205",
"0.6692",
"0.6684678",
"0.66751736",
"0.6670996",
"0.66683984",
"0.666367",
"0.66462076",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645984",
"0.6645028",
"0.66399956",
"0.6638834",
"0.6638497",
"0.66292775",
"0.6625637",
"0.66197455",
"0.66190886",
"0.6616174",
"0.6614084",
"0.66089135",
"0.66025776",
"0.66025776",
"0.6590685",
"0.6590578",
"0.6585513",
"0.65777963",
"0.65767384",
"0.6576473",
"0.657143",
"0.6567663",
"0.6560596",
"0.6558029",
"0.655272",
"0.65504557",
"0.6548104",
"0.6547311",
"0.6547311",
"0.6547311",
"0.6547311",
"0.6547311"
] |
0.6570578
|
89
|
This method sets the quantity on the Snack Selection Item.
|
public void setQuantity(int quantity) {
this.quantity = quantity;
if(this.quantity>0){
this.setItemState(false);
}
else{
this.setItemState(false);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }",
"public void setQuantity(int qty) {\r\n\t\tthis.quantity = qty;\r\n\t}",
"public void setQuantity(int quantity) {\r\n\t\tthis.quantity = quantity;\r\n\t}",
"public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quantity) {\n\t\tthis.quantity = quantity;\n\t}",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\r\n this.quantity = quantity;\r\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quant){\n\t\t// store into the instance variable quantity the value of the parameter quant\n\t\tquantity = quant;\n\t}",
"public void setQty(int qty) {\n this.qty = qty;\n }",
"public void setQuantity(int quantity) {\r\n if (quantity >= 0) {\r\n this.quantity = quantity;\r\n }\r\n else {\r\n System.out.print(\"Sorry no negative quantities -- setting to 1\");\r\n this.quantity = 1;\r\n }\r\n }",
"public void setQuantity(String quantity) {\n this.quantity = quantity;\n }",
"void setQuantity(int quantity) {\n mQuantityTextView.setText(String.valueOf(quantity));\n }",
"public void setThisClassQuantity() {\n quantity = spinnerValue + \" pieces\";\n }",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n this.updateTotalPrice();\n }",
"void populateItemQuantity() {\n for (int i = 0; i < 10; i++) {\n String number = String.valueOf(i + 1);\n comboQuantity.getItems().add(i, number);\n }\n comboQuantity.setEditable(true);\n comboQuantity.getSelectionModel().selectFirst();\n }",
"public void setItemsQuantity(Integer itemsQuantity) {\r\n this.itemsQuantity = itemsQuantity;\r\n }",
"@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }",
"public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}",
"public void setpQuantity(int pQuantity) {\n this.pQuantity = pQuantity;\n }",
"public void setQty( String showInputDialog )\n\t{\n\n\t}",
"public void setQuantity(float value) {\n this.quantity = value;\n }",
"public void setQuantity(java.math.BigDecimal quantity) {\r\n this.quantity = quantity;\r\n }",
"public void setQuantity(Number value) {\n setAttributeInternal(QUANTITY, value);\n }",
"protected void setQuantity(Double quantity) {\n this.quantity = quantity;\n }",
"public void setCurrentQuantity(int currentQuantity) {\n this.currentQuantity = currentQuantity;\n }",
"public void setpQuantity(Integer pQuantity) {\n this.pQuantity = pQuantity;\n }",
"public void setQuantity(java.math.BigDecimal quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Long quantity) {\r\n this.quantity = quantity;\r\n }",
"public Builder setQuantity(long value) {\n \n quantity_ = value;\n onChanged();\n return this;\n }",
"public Builder setQuantity(long value) {\n \n quantity_ = value;\n onChanged();\n return this;\n }",
"public void setQuantity(Long quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Float quantity) {\n this.quantity = quantity;\n }",
"public ItemQuantity(Item item, int quantity) {\n this.item = item;\n this.quantity = quantity;\n }",
"void setValueQuantity(org.hl7.fhir.Quantity valueQuantity);",
"public void setQuantity(org.hl7.fhir.Integer quantity)\n {\n generatedSetterHelperImpl(quantity, QUANTITY$10, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setQty (BigDecimal Qty)\n\t{\n\t\tsetQtyEntered(Qty);\n\t\tsetMovementQty(getQtyEntered());\n\t}",
"public SnackSelectionItem(int snackIdentifier, String snackName, int snackPrice, int quantity, boolean isActive, boolean isWarningOn){\n\t\tthis.setSnackIdentifier(snackIdentifier);\n\t\tthis.setName(snackName);\n\t\tthis.setPrice(snackPrice);\n\t\tthis.setState(isActive);\n\t\tthis.setItemState(isWarningOn);\n\t\tinit();\n\t}",
"public int getItemQty() {\n return itemQty;\n }",
"@NonNull\n public BasketItemBuilder incrementQuantity() {\n this.quantity++;\n return this;\n }",
"public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}",
"public void setITEM(int value) {\r\n this.item = value;\r\n }",
"@Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, -1);\n }",
"public PhoneNumberSearchOptions setQuantity(Integer quantity) {\n this.quantity = quantity;\n return this;\n }",
"public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}",
"void SetItemNumber(int ItemNumber);",
"public void addItemQty(int itemQty) {\n this.itemQty += itemQty;\n }",
"public void setCartQuantity(int cartQuantity) {\n this.cartQuantity = cartQuantity;\n }",
"void setQuantity(int quantity) throws NegativeNumberException {\n if (quantity <= 0) {\n throw new NegativeNumberException(\"Negative number.Try again.\");\n }\n this.quantity = quantity;\n }",
"public String getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n\t\treturn quantity;\n\t}",
"public int getQuantity() {\n\t\treturn quantity;\n\t}",
"public int getQuantity() {\n\t\treturn quantity;\n\t}",
"public int getQuantity() {\n\t\treturn quantity;\n\t}",
"public int getQuantity() {\n\t\treturn quantity;\n\t}",
"public void setSizeQty(Number value) {\n setAttributeInternal(SIZEQTY, value);\n }",
"public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}",
"public void setProductQuantity (Product key, int quant) {\n\t\tm_prodList.remove(key);\n\t\tm_prodList.put(key,new Integer(quant));\n\n\t}",
"public int getQuantity() {\r\n\t\treturn this.quantity;\r\n\t}",
"protected void setQuantityOfShares(int quantity){\n\t\tif(quantity < 0){\n\t\t\tthrow new IllegalArgumentException(\"Quantity can't be less than 0: \" + quantity);\n\t\t}\n\t\tsynchronized(this){\n\t\t\tthis.quantityOfShares = quantity;\n\t\t}\n\t}",
"public int getQuantity(){\n\t\treturn quantity;\n\t}",
"@Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n changeProductQuantityType(product, -1, spinnerPosition);\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public int getQty() {\n return qty;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"void setDisplayQuantity(BigDecimal inDisplayQuantity);",
"public Integer getQuantity() {\n return quantity;\n }",
"public Integer getQuantity() {\n return quantity;\n }",
"public void increaseQuantity() {\n this.quantity++;\n this.updateTotalPrice();\n }",
"public void incQty() {\n b.qty.setText(\"\" + ++qty);\n\n }",
"public void setItemNo(int value) {\n this.itemNo = value;\n }",
"public Integer getQuantity() {\r\n return this.quantity;\r\n }",
"public void setQty(java.math.BigDecimal newQty)\n\t\tthrows java.rmi.RemoteException;",
"public long getQuantity() {\n return quantity_;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"@Override\n public void pickItem(int position) {\n setProductPicked(-1, position);\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return this.quantity;\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public void addQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n quantity++;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }",
"public void setTruckQuantity(int truckQuantity) \n {\n this.truckQuantity = truckQuantity;\n }",
"@Override\n\tpublic void modify(int quantity) {\n\t}",
"@Override\n\tpublic void setNeedQuantity(java.lang.String needQuantity) {\n\t\t_lineaGastoCategoria.setNeedQuantity(needQuantity);\n\t}",
"public void setQtyEntered (BigDecimal QtyEntered);"
] |
[
"0.78348595",
"0.7638768",
"0.7638768",
"0.7638768",
"0.75118744",
"0.75056696",
"0.7474351",
"0.74359244",
"0.7419624",
"0.7419624",
"0.737252",
"0.7314849",
"0.72910833",
"0.7247934",
"0.7247934",
"0.71720576",
"0.7122013",
"0.7110097",
"0.7086003",
"0.70728576",
"0.7035371",
"0.7029302",
"0.70287067",
"0.68568176",
"0.67257506",
"0.66853184",
"0.6680865",
"0.66284317",
"0.6623894",
"0.6613987",
"0.66105384",
"0.6610296",
"0.6609108",
"0.65964097",
"0.65735686",
"0.6564468",
"0.65460145",
"0.65460145",
"0.6535346",
"0.6503768",
"0.6503251",
"0.6481481",
"0.646478",
"0.6445284",
"0.64437646",
"0.6433613",
"0.6394356",
"0.6364863",
"0.6329366",
"0.63074267",
"0.6296623",
"0.6267391",
"0.62277263",
"0.6217451",
"0.62001556",
"0.6194374",
"0.6183823",
"0.6176754",
"0.6176754",
"0.6176754",
"0.6176754",
"0.6176754",
"0.61643463",
"0.6148319",
"0.611857",
"0.6117883",
"0.61038786",
"0.6103668",
"0.60959476",
"0.6074978",
"0.6074577",
"0.6071812",
"0.6068317",
"0.6068317",
"0.6067211",
"0.6062168",
"0.6062168",
"0.60486454",
"0.60478073",
"0.6043413",
"0.60327756",
"0.6030759",
"0.6010297",
"0.6010297",
"0.6005283",
"0.5999343",
"0.59981984",
"0.59921455",
"0.59921455",
"0.59921455",
"0.59921455",
"0.59921455",
"0.59921455",
"0.59820217",
"0.5973938",
"0.5941438",
"0.59388626",
"0.59311545",
"0.59293973",
"0.5909635"
] |
0.7058545
|
20
|
This method returns the quantity of the Snack Selection Item.
|
public int getQuantity() {
return quantity;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getItemQty() {\n return itemQty;\n }",
"@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }",
"public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}",
"public int getQuantity() {\r\n\t\treturn this.quantity;\r\n\t}",
"public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}",
"public int getQuantity(){\n\t\treturn quantity;\n\t}",
"int getQuantity();",
"private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }",
"public Integer getQuantity() {\r\n return this.quantity;\r\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public int getQty() {\n return qty;\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"public int getQuantity()\n {\n \treturn quantity;\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public Integer getQuantity() {\n return quantity;\n }",
"public Integer getQuantity() {\n return quantity;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"public int getQuantity() {\n return this.quantity;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public int getQuantity() {\n return quantity;\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"public Integer getQuantity();",
"public int getQuantity();",
"public String getQuantity() {\n return quantity;\n }",
"public int getQuantity()\n {\n return quantity;\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"long getQuantity();",
"long getQuantity();",
"public String getSelectQuantity() {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tInteger quantityUnit = promotionProgramMgr.getSelectQuantity(groupKMId, levelKMId);\n\t\t\tresult.put(ERROR, false);\n\t\t\tresult.put(\"quantityUnit\", quantityUnit);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getMaxOrderNumber\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getTotalQuantity() {\n\t\treturn totalQuantity;\n\t}",
"String getQuantity() {\n return Integer.toString(quantity);\n }",
"public int getQty() {\n return (isReturn ? qty * -1 : qty);\n }",
"public int getQuantity()\r\n {\r\n return _quantity;\r\n }",
"public int quantity(final T item) {\n if (items.containsKey(item)) {\n return items.get(item);\n } else {\n return 0;\n }\n }",
"public Long getQuantity() {\r\n return quantity;\r\n }",
"public int quantityDropped(Random par1Random)\n {\n return dropItemQty;\n }",
"int getSellQuantity();",
"public Long getQuantity() {\n return quantity;\n }",
"Quantity getQuantity();",
"@Override\n // This is not right, please do not use.\n public int getQuantity() {\n String a = null;\n a.isEmpty();\n\n return super.getQuantity();\n }",
"public java.math.BigDecimal getQuantity() {\n return quantity;\n }",
"int getBuyQuantity();",
"public Integer getpQuantity() {\n return pQuantity;\n }",
"public double getQuantity() {\n return quantity;\n }",
"public java.math.BigDecimal getQuantity() {\r\n return quantity;\r\n }",
"public int getpQuantity() {\n return pQuantity;\n }",
"public org.hl7.fhir.Integer getQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Integer target = null;\n target = (org.hl7.fhir.Integer)get_store().find_element_user(QUANTITY$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public int getQuantity(String code) {\n if(itemExists(code)) {\n return cart.get(code);\n }\n return 0;\n }",
"@Override\n\tpublic java.lang.String getNeedQuantity() {\n\t\treturn _lineaGastoCategoria.getNeedQuantity();\n\t}",
"public float getQuantity() {\n return quantity;\n }",
"public int getSelectedCount() {\n return mSelectedItems.size();\n }",
"public Number getQuantity() {\n return (Number) getAttributeInternal(QUANTITY);\n }",
"@Override\n public int getCount() {\n return jArrayQty.length();\n }",
"public int getSelectedCount() {\n return mSelectedItemsIds.size();\n }",
"@Schema(description = \"Number of units consumed\")\n public Long getQuantity() {\n return quantity;\n }",
"public Integer getItemNo() {\n\t\treturn itemNo;\n\t}",
"public int getSizeInventory()\n {\n return this.slotsCount;\n }",
"public Number getSizeQty() {\n return (Number)getAttributeInternal(SIZEQTY);\n }",
"public int quantityDropped(Random random) {\n return 0;\n }",
"public void setThisClassQuantity() {\n quantity = spinnerValue + \" pieces\";\n }",
"public int getAgentsQty();",
"MeasureType getQuantity();",
"public int getCartQuantity() {\n return cartQuantity;\n }",
"BigDecimal getQuantity();",
"public int quantityDropped(Random random)\r\n {\r\n return 0;\r\n }",
"private int getFromSellableInventoryService() {\n Map<String, String> pathVars = Maps.newHashMap();\n pathVars.put(\"location\", LOCATION);\n pathVars.put(\"sku\", SKU);\n try {\n InventoryDto inventory = restTemplate.getForObject(\n \"http://localhost:9093/inventory/locations/{location}/skus/{sku}\", InventoryDto.class, pathVars);\n\n return inventory.getCount();\n } catch (RestClientException e) {\n return 0;\n }\n }",
"public int size() {\n return nItems;\n }",
"public int size()\r\n {\r\n return nItems;\r\n }",
"protected Double getQuantity() {\n return quantity;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public int getQuantity() { \n return myOrderQuantity;\n }",
"public int getQuantidade() {\r\n\t\treturn quantidade;\r\n\t}",
"public BigDecimal getScrappedQty() {\n\t\tBigDecimal bd = (BigDecimal) get_Value(\"ScrappedQty\");\n\t\tif (bd == null)\n\t\t\treturn Env.ZERO;\n\t\treturn bd;\n\t}",
"private int getSelectedCount() {\r\n\t int count = 0;\r\n\t for (int i = 0; i < _selectedList.size(); ++i) {\r\n\t count += _selectedList.get(i) ? 1 : 0;\r\n\t }\r\n\t return count;\r\n\t}",
"@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }",
"public int getNumTotal() {\n return nucleiSelected.size();\n }",
"@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}",
"public int getQuantity(Product p){\n int count = 0;\n for (Product i : cartContents)\n {\n if (i.getProductID().equals(p.getProductID()))\n {\n count++;\n }\n }\n return count;\n }",
"@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}",
"public String getProductQuantity() throws InterruptedException\n\t{\n\t\tThread.sleep(2000);\n\t\twaitForVisibility(quantityInputFieldShoppingCart);\n\t\treturn quantityInputFieldShoppingCart.getAttribute(\"value\");\n\t}",
"public int getItemNo() {\r\n\t\treturn itemNo;\r\n\t}",
"public int getInventorySize(){\n return inventory.size();\n }",
"public int getQuantite() {\r\n return quantite;\r\n }",
"public Float getQuantity() {\n return quantity;\n }",
"private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}",
"public int getInventorySize() {\r\n\t\treturn items.size();\r\n\t}",
"public java.math.BigDecimal getQty() throws java.rmi.RemoteException;"
] |
[
"0.7399217",
"0.7268103",
"0.7244627",
"0.7203325",
"0.7192104",
"0.70161945",
"0.7011098",
"0.699631",
"0.69901353",
"0.6989609",
"0.6984571",
"0.69751316",
"0.69610745",
"0.6954697",
"0.69446236",
"0.69446236",
"0.6943789",
"0.6943789",
"0.6932092",
"0.6930241",
"0.6930241",
"0.6900502",
"0.6900502",
"0.6900502",
"0.6900502",
"0.6900502",
"0.6900502",
"0.68890655",
"0.6876395",
"0.6859491",
"0.6839091",
"0.6734773",
"0.6708926",
"0.6701343",
"0.6701343",
"0.6669921",
"0.66580987",
"0.6633053",
"0.6616943",
"0.6604872",
"0.65987223",
"0.6536263",
"0.65342563",
"0.650892",
"0.65061533",
"0.6473803",
"0.64404494",
"0.6427492",
"0.64092046",
"0.6407943",
"0.6402387",
"0.63953346",
"0.6383886",
"0.6314042",
"0.6298569",
"0.6288581",
"0.62842506",
"0.62672263",
"0.6213685",
"0.61667585",
"0.61229014",
"0.61005276",
"0.60925585",
"0.6056927",
"0.60311925",
"0.60261095",
"0.60167253",
"0.6016065",
"0.6009475",
"0.6006252",
"0.5991803",
"0.59825546",
"0.5976301",
"0.5975716",
"0.59755015",
"0.5961298",
"0.59600693",
"0.59600693",
"0.59600693",
"0.5940444",
"0.59311587",
"0.5920728",
"0.5920146",
"0.5919234",
"0.5919122",
"0.5911675",
"0.5910262",
"0.58917314",
"0.58877736",
"0.5882849",
"0.5881819",
"0.58789784",
"0.58753645",
"0.5855432",
"0.58448845",
"0.5836065"
] |
0.7184889
|
9
|
This method activates or deactivates the snack selection item button&46; This method also display "OUT OF STOCK" messages where appropriate.
|
public void setItemState(boolean isOn){
this.isWarningOn=isOn;
btn.setEnabled(!isOn);
btn.setBackground(this.getBackground());
wnd.setState(isOn);
if (isOn)
wnd.setLabel(WarningText);
else
wnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold)
? LowStockText : NormalText);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void onYesButtonClicked() {\n changeAfterClientPick();\n }",
"public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}",
"@FXML\n\tprivate void handleSelectSoldTo() {\n\t\tboolean okClicked = showAddresses(\"SOLD TO\");\n\t\tsaveCurrentAcknowledgment();\n\t\tsetAcknowledgment(acknowledgment);\n\t}",
"@Override\n\tpublic boolean activate() {\n\t\tfinal Component CANCEL_BUTTON = CONSTS.CANCEL_BUTTON;\n\t\treturn ctx.backpack.select().id(CONSTS.fletching.getId()).count() >= 1\n\t\t\t\t&& !CANCEL_BUTTON.valid() \n\t\t\t\t&& !CANCEL_BUTTON.visible();\n\t}",
"@Override\n\tpublic void invokeHandsel(final BackPackItem item) {\n\t\tif (((item.Attribute[3] >> 1) & 1) == 0) {\n\t\t\tdialog = new HandselDialog(BackPackActivity.this, item.backpackName);\n\t\t\tdialog.setListener(new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// 发送赠送\n\t\t\t\t\tlong handselId = 0;\n\t\t\t\t\tshort handselNum = 1;\n\t\t\t\t\tboolean enable = true;\n\t\t\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselId = Long.parseLong(HandselDialog.handselId);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_id_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselNum = Short.parseShort(HandselDialog.handselNum);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_count_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (guid == handselId) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_myself_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t} else if (item.newHoldCount >= handselNum && enable\n\t\t\t\t\t\t\t&& (handselNum != 0)) {\n\t\t\t\t\t\trequestHandsel(handselId, item.id, handselNum,\n\t\t\t\t\t\t\t\titem.backpackName);\n\t\t\t\t\t} else if (enable) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_not_enaghe_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tdialog.show();\n\t\t} else {\n\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\tresource.getString(R.string.package_binded_error),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"@Override\n public void clickPositive() {\n meetingManager.undoConfirm(chosenTrade, chosenTrader);\n Toast.makeText(this, \"Successfully undo confirm\", Toast.LENGTH_SHORT).show();\n viewList();\n\n }",
"@Override\n public void onItemPicked(int index, String item) {\n buttonselect3.setText(item);\n buttonselect3.setTextColor(Color.YELLOW);\n ((TextView)findViewById(R.id.confitstate3)).setText(\"待配置\");\n }",
"private void ShowCardActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowCardActionPerformed\n alert.setText(\"\");\n int selectedRow = Table.getSelectedRow();\n if (selectedRow == -1)\n RowItem.setText(\"Please select an item first\");\n else {\n jTextField1.setText(\"Enter search query\");\n alert.setText(\"\");\n RowItem.setText(\"\");\n displayMgr.CU.cardDetails(id, name, price, discount);\n displayMgr.showCard();\n }\n }",
"@Override\n\t\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\tif(item.toString() == \"Cancel Paired\")\n\t\t\t{\n\t\t\t\tpaired_cancel(mBtDevChosen);\n\t\t\t}\n\t\t\telse if(item.toString()== \"Pair and Connect\")\n\t\t\t{\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}\n\t\t\treturn super.onContextItemSelected(item);\n\t\t}",
"private void cs5() {\n\t\t\tif(ctx.widgets.widget(519).component(1).text().contains(\"You get some\")){\n\t\t\t\tctx.widgets.widget(519).component(2).click();\n\t\t\t}\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tbbspo.setVisibility(View.GONE);\r\n\t\t\t\t\tCommunitylistActivity.startAction(getActivity());\r\n\t\t\t\t}",
"@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }",
"@Test\r\n\tpublic void testButtonPressedDeliverPop() {\r\n\t\tCoin coin = new Coin(200);\r\n\t\ttry {\r\n\t\t\tvend.getCoinSlot().addCoin(coin);\r\n\t\t\tvend.getSelectionButton(0).press();\r\n\t\t\tDeliverable[] items= vend.getDeliveryChute().removeItems();\r\n\t\t\tassertTrue((items.length==1) && (items[0].toString().equals(\"Coke\")));\t\t\t\t\r\n\t\t} catch (DisabledException e) {\r\n\t\t\tassertTrue(false);\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}",
"public SnackSelectionItem(int snackIdentifier, String snackName, int snackPrice, int quantity, boolean isActive, boolean isWarningOn){\n\t\tthis.setSnackIdentifier(snackIdentifier);\n\t\tthis.setName(snackName);\n\t\tthis.setPrice(snackPrice);\n\t\tthis.setState(isActive);\n\t\tthis.setItemState(isWarningOn);\n\t\tinit();\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n actionType = String.valueOf(actionTypeSpiner\n .getSelectedItem());\n if (actionType == \"Upload\"\n || actionType.equals(\"Upload\")) {\n viewLay.setVisibility(View.GONE);\n action = true;\n fileNameTxt.setVisibility(View.GONE);\n doOpen();\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n action = false;\n fileNameTxt.setVisibility(View.GONE);\n submitTxt.setEnabled(true);\n }\n }",
"@OnClick(R.id.converter_sale_or_purchase_cv)\n public void chooseAction() {\n mDialog = new DialogList(mContext,\n mActionDialogTitle, mListForActionDialog, null,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n if (position == 0) {\n mAction = ConstantsManager.CONVERTER_ACTION_PURCHASE;\n } else {\n mAction = ConstantsManager.CONVERTER_ACTION_SALE;\n }\n mPreferenceManager.setConverterAction(mAction);\n mDialog.getDialog().dismiss();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t\t\tsetVisible(false);\r\n\t\t\tnew Transactions(pin).setVisible(true);\r\n\t\t\r\n\r\n\t}",
"public void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tBuyerUIItem thisUIItem = (BuyerUIItem)order.getParent();\n\t\t\t\t\t\tint amountDesired = (int)spinner.getValue();\n\t\t\t\t\t\tif(_item.getQuantity() >= amountDesired && _item.inStock()) {\n\t\t\t\t\t\t\titemHelper.orderItem(thisUIItem, _item, amountDesired);\n\t\t\t\t\t\t\tquantity.setText(String.valueOf(_item.getQuantity()));\n\t\t\t\t\t\t\tnumModel.setValue(1);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else if(_item.inStock()) {\n\t\t\t\t\t\t\titemHelper.underStock(_item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemHelper.stockOut(_item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"private void checkSold(JComponent parent) {\n if (itemSelected.isSold()) {\n auctionItemList.removeItem(itemSelected);\n userItemList.removeItem(itemSelected);\n playSound();\n JOptionPane.showMessageDialog(parent, \"Congratulations on your purchase!\");\n updateJList();\n scrollPane.setViewportView(list);\n updateLabels();\n } else {\n JOptionPane.showMessageDialog(parent, \"Bid placed on \" + itemSelected.getItemName() + \"!\");\n currentBidLabel.setText(\"Current bid: $\" + itemSelected.getCurrentBid());\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (!Util.db.isItemPoolSwitchON(item_pool_id, checked_in_eventId)) {\n\t\t\t\t\t\topenScanSettingsAlert(SessionListActivity.this,item_pool_id, SessionListActivity.class.getName());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcursor.moveToPosition((int) v.getTag());\n\t\t\t\t\t\tif (!NullChecker(cursor.getString(cursor.getColumnIndex(DBFeilds.SESSION_ATTENDEE_COMPANY))).equalsIgnoreCase(DBFeilds.STATUS_OFFLINE)\n\t\t\t\t\t\t\t\t&& !NullChecker(cursor.getString(cursor.getColumnIndex(DBFeilds.SESSION_ATTENDEE_COMPANY))).equalsIgnoreCase(DBFeilds.STATUS_INVALID)) {\n\t\t\t\t\t\t\tattendee_id = cursor.getString(cursor.getColumnIndex(DBFeilds.SESSION_ATTENDEE_TICKET_ID));\n\t\t\t\t\t\t\tString orderstatus=Util.db.getOrderStatuswithAttendeeID(attendee_id,checked_in_eventId);\n\t\t\t\t\t\t\tboolean ischeckin = Util.db.SessionCheckInStatus(attendee_id,Util.db.getSwitchedONGroupId(checked_in_eventId));\n\t\t\t\t\t\t\tif(ischeckin && Util.checkin_only_pref.getBoolean(sfdcddetails.user_id+checked_in_eventId, false)){\n\t\t\t\t\t\t\t\tshowMessageAlert(getString(R.string.checkin_only_msg),false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//commented for non ticketed session\n\t\t\t\t\t\t\t/*else if(!externalSettings.quick_checkin&&!orderstatus.equalsIgnoreCase(\"Fully Paid\")){\n\t\t\t\t\t\t\t\tfinal String att_id=attendee_id;\n\t\t\t\t\t\t\t\tUtil.setCustomAlertDialog(SessionListActivity.this);\n\t\t\t\t\t\t\t\tUtil.txt_okey.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t\tUtil.alert_dialog.dismiss();\n\t\t\t\t\t\t\t\t\t\trequest_type = WebServiceUrls.SA_TICKETS_SCAN_URL;\n\t\t\t\t\t\t\t\t\t\tdoRequest();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tUtil.txt_dismiss.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t\tUtil.alert_dialog.dismiss();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tUtil.openCustomDialog(\"Alert\", \"This Order Status is \"+orderstatus+\"! \\n Do you still want to Continue?\");\n\n\t\t\t\t\t\t\t}*/else{\n\t\t\t\t\t\t\t\trequest_type = WebServiceUrls.SA_TICKETS_SCAN_URL;\n\t\t\t\t\t\t\t\tdoRequest();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }",
"public void raise()\n {\n dock_item.select();\n }",
"private void setClaimButton()\t{\n\t\t\n\t\tif(Integer.parseInt(scanCount) >= Integer.parseInt(maxScans))\t{\n\n\t\t\t/*\tImage*/Button ib = (/*Image*/Button) findViewById(R.id.ibClaim);\n\t\t\tib.setVisibility(View.VISIBLE);\n\t\t\t/*\tib.setPadding(0, 0, 0, 0);*/\n\t\t\tib.setLayoutParams(new LinearLayout.LayoutParams((int) (width*0.8),(int) (height*0.15)));\n\n\t\t\tib.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\t\tif(getSharedPrefs(\"userDetails\", \"allInfo\", \"\").equals(\"true\"))\t{\n\t\t\t\t\t\t\n\t\t\t\t\tAlertDialog.Builder adb = new AlertDialog.Builder(DisplayActivity.this);\n\t\t\t\t\tadb.setMessage(\"Once you click 'YES', you will have 5 minutes to claim your item from the cashier.\\nAre you by the cashier?\");\n\t\t\t\t\t\n\t\t\t\t\tadb.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\t\t\tString uuid = getSharedPrefs(\"userDetails\", \"uuid\", \"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString url = \"http://www.loyal3.co.za/redeem?uuid=\"+uuid+\"&shop=\"+shopName;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnew ValidateCounts().execute(url.trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\t\n\n\t\t\t\t\t//Neg Button does nothing.\n\t\t\t\t\tadb.setNegativeButton(\"NO\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tadb.show();\t\n\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getBaseContext(), \"Please update your information in your Profile Page in order to claim your free item\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\t\n\t}",
"@Override\r\n\t\t\tpublic void setOnItemClick(AdapterView<?> arg0, View view,\r\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\txbet.setText(jfscSpTypeList.get(position).getName());\r\n\t\t\t\txb_popup.dimissPopupwindow();\r\n\t\t\t}",
"public WPSignUpSignInPopUp clickActivateCashBackInSCP() {// SCP stands for Stores Category Page\r\n\t\ttry {\r\n\t\t\treportStep(\"Locating Activate Cashback in SLP\", \"PASS\");\r\n\t\t\tLog.info(\"Locating Activate Cashback in SLP \");\r\n\t\t\tUtils.explicitWaitForVisibility(lnkActivateCashback.get(0));\r\n\t\t\tUtils.click(lnkActivateCashback.get(0));\r\n\t\t\treportStep(\"Clicked successfully Activate Cashback in SLP\", \"PASS\");\r\n\t\t\tLog.info(\"Clicked Successfully Activate Cashback in SLP\");\r\n\t\t}catch(Exception e) {\r\n\t\t\tLog.fatal(\"Unable to Click Activate Cashback in SLP\");\r\n\t\t\treportStep(\"Unable to Click Activate Cashback in SLP\", \"FAIL\");\r\n\t\t}\r\n\t\treturn new WPSignUpSignInPopUp(driver, logger);\r\n\t}",
"public void performButton(int i){\n\t\tif(ClientWindow.retButtons()[i].getIcon()!=null){\n\t\t\tresetSelected();\n\t\t\tClientWindow.retButtons()[i].setBackground(Color.BLACK);\n\t\t\tClientWindow.currentlySelected=ClientWindow.rPackage.getInventory().get(i);\n\t\t}\n\t\telse{\n\t\t\tresetSelected();\n\t\t\tClientWindow.currentlySelected=null;\n\t\t}\n\t}",
"@Override\n public void onClick(int position) {\n if (callListRvAdapter.getSelectedItemCount() > 0) {\n enableActionMode(position);\n }else {\n rlBottomsheet.setVisibility(View.VISIBLE);\n updateBottomSheet(position);\n selectedAudioPosition = position;\n startPlayer();\n }\n }",
"@Override\n public void onClick(View view) {\n\n if (material_type.getSelectedItem().equals(\"--Select Material Type--\")) {\n Toast.makeText(Activity_Sell.this, \"Select Material Type to continue\", Toast.LENGTH_SHORT).show();\n } else {\n\n// LoadMaterialTypeSpinner();\n alertDialog.dismiss();\n getMaterial();\n /* getMaterialClasses();\n getMaterialDetails();\n getMaterialUnits();*/\n\n }\n }",
"@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n long arg3) {\n bqListWindow.dismiss();\r\n DeptWardMapInfo departmentandward = bqlist.get(arg2);\r\n et_bqks.setText(bqlist.get(arg2).getBqmc() + \" | \"\r\n + bqlist.get(arg2).getKsmc());\r\n SharedPreferenceTools.saveInt(Login.this,\"BqSel\",arg2);\r\n GlobalCache.getCache().setBqSel(arg2);\r\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String selectedItem = Arrays.asList(vault_options).get(i);\n\n // Display the selected item's text on snack bar\n if (selectedItem.equalsIgnoreCase(\"Decrypt File\")) {\n\n String filename = (String) adapterView.getItemAtPosition(j);\n decryptFile(filename);\n filename = null;\n\n } else if (selectedItem.equalsIgnoreCase(\"Upload File\")) {\n String filename = (String) adapterView.getItemAtPosition(j);\n if (isOnline()) {\n uploadFile(filename);\n filename = null;\n } else {\n Toast.makeText(getApplicationContext(), \"No Internet, Please try with an active Internet\", Toast.LENGTH_LONG).show();\n\n }\n\n } else if (selectedItem.equalsIgnoreCase(\"Delete File\")) {\n\n String filename = (String) adapterView.getItemAtPosition(j);\n DeleteFile(filename);\n filename = null;\n\n\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n DiscardAmmoOrPowerUpToPayTargeting discardAmmoOrPowerUpToPayTargeting = new DiscardAmmoOrPowerUpToPayTargeting(\"\", event.getNicknameInvolved());\n switch (e.getActionCommand()){\n case \"BlueAmmo\":\n discardAmmoOrPowerUpToPayTargeting.setBlueAmmo(true);\n dialog.setVisible(false);\n mainFrame.getRemoteView().notify(discardAmmoOrPowerUpToPayTargeting);\n break;\n\n case \"RedAmmo\":\n discardAmmoOrPowerUpToPayTargeting.setRedAmmo(true);\n dialog.setVisible(false);\n mainFrame.getRemoteView().notify(discardAmmoOrPowerUpToPayTargeting);\n break;\n\n case \"YellowAmmo\":\n discardAmmoOrPowerUpToPayTargeting.setYellowAmmo(true);\n dialog.setVisible(false);\n mainFrame.getRemoteView().notify(discardAmmoOrPowerUpToPayTargeting);\n break;\n\n default:\n\n String[] nameAndColor = e.getActionCommand().split(\",\");\n for(ServerEvent.AliasCard card : mainFrame.getRemoteView().getMyPlayerBoardView().getPowerUpCardsDeck()){\n if(card.getName().equals(nameAndColor[0])&& card.getColor().toString().equalsIgnoreCase(nameAndColor[1])) {\n discardAmmoOrPowerUpToPayTargeting.setPowerUpCard(card);\n dialog.setVisible(false);\n mainFrame.getRemoteView().notify(discardAmmoOrPowerUpToPayTargeting);\n break;\n }\n }\n }\n\n }",
"public void manageCashDrawerBtn() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"managePrtBtn\")));\n\t\ttemp.click();\n\t\tpause(1000);\n\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void setPositiveButton() {\n\t\t\t\t\t\t\t\t\tif (SystemConfig.loginResponse.getDutyFlag().equals(\"on\")) {\r\n\t\t\t\t\t\t\t\t\t\tsendForService(\"1\", str);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(ConstantValue.PROGRESS_CLOSE);\r\n\t\t\t\t\t\t\t\t\t\tMessage message = Message.obtain();\r\n\t\t\t\t\t\t\t\t\t\tmessage.obj = \"下班状态不可以改派任务!\";\r\n\t\t\t\t\t\t\t\t\t\tmessage.what = ConstantValue.ERROE;\r\n\t\t\t\t\t\t\t\t\t\thandler.sendMessage(message);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// for update by haoyun\r\n\t\t\t\t\t\t\t\t\t// 20130401 end\r\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mHoldTypeSelection) {\n setActionSpinner(false, position);\n }\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }",
"@FXML\n\tprivate void handleSelectShipTo() {\n\t\tboolean okClicked = showAddresses(\"SHIP TO\");\n\t\tsaveCurrentAcknowledgment();\n\t\tsetAcknowledgment(acknowledgment);\n\t}",
"public void toggleStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.TOGGLE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tprefs.edit().putInt(\"CHOOSE\",(int)choose.getSelectedItemId()).commit();\n\n\t\t\t\t\tif(choose.getSelectedItemId()==0)\n\t\t \t\t\tcontacts.setVisibility(View.GONE);\n\t\t\t\t\telse \n\t\t \t\t\tcontacts.setVisibility(View.VISIBLE);\n\t\t\t\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (mPop.isShowing()) {\n\t\t\t\t\tmPop.dismiss();\n\t\t\t\t} else {\n\t\t\t\t\tmPop.showAsDropDown(numberSeat, 0, -50);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View view) {\n selectedOfferId = (((JSONObject) radioButtonOffer.getTag()).optInt(\"offerID\"));\n\n // Remove Edit Booking Offer Id\n if (dataJsonObject.opt(AppConstant.JSON_PARAM_EDIT_BOOKING_OFFER_ID) != null) {\n dataJsonObject.remove(AppConstant.JSON_PARAM_EDIT_BOOKING_OFFER_ID);\n }\n\n // Deselect all options\n deselectAllOffers(viewHolder.getRadioGroupOfferList());\n\n // Set Offer Selected\n radioButtonOffer.setChecked(true);\n\n // Save Selected Offer\n saveSelectedOffer(radioButtonOffer);\n\n // Set true since Offer is selected\n setOfferSelected(true);\n\n // Enable Book Now Button\n if (isAdditionalOfferAvailable()) {\n // Since Adapter is in process of loading the layout, this call will throw\n // java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling\n // Hence, keep it inside try-catch block\n try {\n notifyItemChanged(getAdditionalOfferItemPosition());\n } catch (Exception e) {\n // Do Nothing...\n }\n } else {\n viewHolder.getButtonOfferBookNow().setEnabled(true);\n }\n }",
"public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}",
"@Override\n public void pickItem(int position) {\n setProductPicked(-1, position);\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/bpSelected.png\")).getImage();\n\t\t\t\tbtnBypass.setIcon(new ImageIcon(img));\n\t\t\t\tuiInterceptor.addItem(1);\n\t\t\t\tbtnDoublebp.setEnabled(false);\n\t\t\t\tbtnTriplebp.setEnabled(false);\n\t\t\t\tbtnQuadbp.setEnabled(false);\n\t\t\t}",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(SupplierHomePageActivity.this,SupplierItemDisplayActivity.class);\n\t\t\t\tintent.putExtra(\"supplierId\",Id);\n\t\t\t\tintent.putExtra(\"status\", \"unavailable\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void actionPerformed( ActionEvent evt )\n\t{\n\t\tif( ignoreActions )\n\t\t\treturn ;\n\n\t\tObject w = evt.getSource() ;\n\t\tSpObs spObs = ( SpObs )_spItem ;\n\n\t\tif( w instanceof JComboBox )\n\t\t\tspObs.setPriority( ( Integer )_w.jComboBox1.getSelectedItem() ) ;\n\t\telse if( ( w instanceof AbstractButton ) && !(( AbstractButton )w).isSelected() )\n\t\t\treturn ;\n\n\t\tif( w == _w.unSuspendCB )\n\t\t{\n\t\t\tString message = \"This is an Irreversible Operation\" + \"\\n\" + \"Are you sure you want to proceed?\" ;\n\t\t\tint option = JOptionPane.showConfirmDialog( _w , message , \"Irreversible Operation\" , JOptionPane.YES_NO_OPTION , JOptionPane.WARNING_MESSAGE ) ;\n\t\t\tif( option == JOptionPane.NO_OPTION )\n\t\t\t\treturn ;\n\n\t\t\tspObs.unSuspend() ;\n\t\t\t_w.unSuspendCB.setVisible( false ) ;\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 5;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}",
"@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openPopUpForSpareParts(position);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint b = (int) combo.getSelectedItem();\r\n\t\t\t\t//JOptionPane.showMessageDialog(content, \"N'est Pas Complet\", \"A maintenance\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tnew Verification(b);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void onClick(View view, int position) {\n\n onStickerSelectedListener.onStickerSelected(mAdapter.getSelectedPath(position));\n dismiss();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/tbpSelected.png\")).getImage();\n\t\t\t\tbtnTriplebp.setIcon(new ImageIcon(img));\n\t\t\t\tuiInterceptor.addItem(3);\n\t\t\t\tbtnDoublebp.setEnabled(false);\n\t\t\t\tbtnBypass.setEnabled(false);\n\t\t\t\tbtnQuadbp.setEnabled(false);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n for (ObjectStock s : product.getStocks()) {\n s.setControlled(true);\n stockDataSource.updateStock(s);\n }\n adapter.notifyDataSetChanged();\n squareTotalStock.setBackgroundColor(\n Methods.giveColor(squareTotalStock,\n Methods.getInventoryState(product)));\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/qbpSelected.png\")).getImage();\n\t\t\t\tbtnQuadbp.setIcon(new ImageIcon(img));\n\t\t\t\tuiInterceptor.addItem(4);\n\t\t\t\tbtnDoublebp.setEnabled(false);\n\t\t\t\tbtnTriplebp.setEnabled(false);\n\t\t\t\tbtnBypass.setEnabled(false);\n\t\t\t}",
"public void showStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\tMenu.currentCard = 4;\r\n\t\t\tCardLayout cl = (CardLayout)(Menu.cardPanel.getLayout());\r\n\t\t\tSystem.out.println( ((JButton)evt.getSource()).getText() );\r\n\t\t\t\r\n\t\t\tcl.show(Menu.cardPanel, \"MATCH_SLIPS_SCREEN\");\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(SupplierHomePageActivity.this,SupplierItemDisplayActivity.class);\n\t\t\t\tintent.putExtra(\"supplierId\",Id);\n\t\t\t\tintent.putExtra(\"status\", \"available\");\n\t\t\t\tstartActivity(intent);\n\n\n\t\t\t}",
"protected void ACTION_B_SELECT(ActionEvent arg0) {\n\t\tchoseInterface();\r\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tloadmsg();\n\t\t\t\t\tsm.toggle();\n\t\t\t\t\t\n\t\t\t\t}",
"public void itemOkay() \r\n\t{\n\t\t\r\n\t}",
"@FXML\n\tprivate void handleEditProducts() {\n\t\tboolean okClicked = showProducts();\n\t\tsaveCurrentAcknowledgment();\n\t\tsetAcknowledgment(acknowledgment);\n\t}",
"@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tSharedPreferences.Editor edit = mPreferences.edit();\n \t\t\t\t\tint i;\n \t\t\t\t\tfor (i = 0; i < mMainPage.getTopicBtns().size(); i++) {\n \t\t\t\t\t\tif (mMainPage.getTopicBtns().get(i).isSelected()) break;\n \t\t\t\t\t}\n \t\t\t\t\tedit.putInt(CONFIG_TOPICCHOICE, i);\n \t\t\t\t\tedit.commit();\n \t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n \t\t\t\t}",
"private void ShowProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowProductActionPerformed\n alert.setText(\"\");\n if (displayMgr.mainMgr.orderMgr.getCart().isEmpty())\n RowItem.setText(\"Add items to the cart first\");\n else {\n displayMgr.POU.addRowToTable();\n displayMgr.showProductScreen();\n }\n }",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, \"您沒有選擇任何藍牙裝置。\", Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tsbsno=arg0.getItemAtPosition(arg2).toString();\n\t\t\t\t\t\t\n\t\t\t\t\t\t((TextView) arg0.getChildAt(0)).setTextColor(Color.BLUE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"\"+sbsno, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tnew BusStopFetchApi().execute();\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\tpublic void processConfirmItemButtonClick(ProcessConfirmItemObjectEvent e) {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String con = e.getActionCommand();\n // The first 4 commands are for switching to different categories\n if (con.equals(\"FANTASY\")) {\n \tview.updateBookList(\"Fantasy\");\n //cl.show(this.view.cards, \"FANTASY\");\n } else if (con.equals(\"SCIFI\")) {\n \tview.updateBookList(\"Science Fiction\");\n //cl.show(this.view.cards, \"SCIFI\");\n } else if (con.equals(\"HORROR\")) {\n \tview.updateBookList(\"Horror\");\n //cl.show(this.view.cards, \"HORROR\");\n } else if (con.equals(\"THRILLER\")) {\n \tview.updateBookList(\"Thriller\");\n //cl.show(this.view.cards, \"THRILLER\");\n \n // The BUY command will also contain the name and price of a book, which need to be passed on\n } else if (con.contains(\"SHOWALL\")) {\n this.view.showProducts();\n } else if (con.contains(\"BUYALL\")) {\n this.view.buy();\n } else {\n JOptionPane.showMessageDialog(this.view, \"Unknown Command\", \"Error\", ERROR_MESSAGE);\n }\n // Of course, this must be done as well.\n //this.view.repaint();\n\n }",
"@Override\n public void onClick(View v) {\n if (mGlobalSwitch != null)\n mGlobalSwitch.setChecked(true);\n else {\n getSharedPreferences(getString(R.string.pref_global), Context.MODE_PRIVATE).edit().putBoolean(getString(R.string.key_enabled), true).commit();\n SendEnabledState(SettingsActivity.this, true);\n }\n mSnackBarAddService.dismiss();\n mSnackBarAddService = null;\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\n public void onClick(View v) {\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }",
"@Override\n public void onClick(View v) {\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }",
"public void R2Pressed() {\n\t\tif (edit) {\n\t\t\tcurrentDeck.setActive(false);\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_SWITCH_DECK);\n\t\t\tswitchDeck();\n\t\t}\n\t}",
"public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}",
"public static String displayMessage() {\n return \"Press B to open shop menu.\";\n }",
"void leftClickPressedOnDelivery();",
"@Override\n public void onClick(View view) {\n clearItemData();\n set_view_for(1);\n Intent intent;\n SharedPreferences sharedPreferences =\n PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n String setting_barcode = sharedPreferences.getString(\"setting_barcode\", \"1\");\n session.setScanfor(\"1\"); //for item\n\n if (setting_barcode.equals(\"1\")) {\n intent = new Intent(getBaseContext(), ScanActivity.class);\n } else if (setting_barcode.equals(\"2\")) {\n intent = new Intent(getBaseContext(), ScanMainActivity.class);\n } else {\n intent = new Intent(getBaseContext(), ZxingScan.class);\n }\n\n startActivity(intent);\n\n\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"@Override\n public void onClick(View view) {\n clearItemData();\n set_view_for(1);\n Intent intent;\n SharedPreferences sharedPreferences =\n PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n String setting_barcode = sharedPreferences.getString(\"setting_barcode\", \"1\");\n session.setScanfor(\"3\"); //for item\n\n if (setting_barcode.equals(\"1\")) {\n intent = new Intent(getBaseContext(), ScanActivity.class);\n } else if (setting_barcode.equals(\"2\")) {\n intent = new Intent(getBaseContext(), ScanMainActivity.class);\n } else {\n intent = new Intent(getBaseContext(), ZxingScan.class);\n }\n\n startActivity(intent);\n\n\n }",
"@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}",
"void issuedClick(String item);",
"@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tLog.d(\"VoMPCall\", \"Picking up\");\n \t\t\t\tServalBatPhoneApplication.context.servaldMonitor\n \t\t\t\t\t\t.sendMessage(\"pickup \"\n \t\t\t\t\t\t+ Integer.toHexString(local_id));\n \t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.subscription_menu_logout:\n showLogoutConfirmationDialog();\n return true;\n case R.id.subscription_menu_settings:\n Intent settingsIntent = new Intent(this, SettingsActivity.class);\n settingsIntent.putExtra(\"activity\", \"SubscriptionsActivity\");\n startActivity(settingsIntent);\n return true;\n case R.id.subscription_menu_subscribe:\n if (!AppData.activatingSubscription.contains(mSID)) {\n if (mSID != -1) {\n activateSubscription();\n AppData.selectedSubscription.clear();\n mSID = -1;\n mMenu.getItem(2).setVisible(false);\n mMenu.getItem(6).setVisible(true);\n unsubscribedItemSelected = false;\n subscribedItemSelected = false;\n subscriptionDataAdapter.notifyDataSetChanged();\n }\n }\n return true;\n case R.id.subscription_menu_unsubscribe:\n if (!AppData.deactivatingSubscription.contains(mSID)) {\n if (mSID != -1) {\n deactivateSubscription();\n AppData.selectedSubscription.clear();\n\n mSID = -1;\n mMenu.getItem(3).setVisible(false);\n mMenu.getItem(6).setVisible(true);\n unsubscribedItemSelected = false;\n subscribedItemSelected = false;\n subscriptionDataAdapter.notifyDataSetChanged();\n }\n }\n return true;\n\n case R.id.subscription_menu_about_program:\n MainActivity.showAboutTheProgram(this);\n return true;\n\n case R.id.subscription_menu_refresh:\n needToRefresh = true;\n if (AppData.selectedSubscription != null)\n AppData.selectedSubscription.clear();\n recreate();\n for (int x : AppData.activatingSubscription) {\n Log.i(LOG_TAG, \"activation value of \" + x);\n if (AppData.mSubscriptionsMap.get(x) == null) {\n Log.i(LOG_TAG, \"activation broken..... \" + x);\n break;\n }\n mSID = x;\n activateSubscription();\n mSID = -1;\n }\n for (int x : AppData.deactivatingSubscription) {\n Log.i(LOG_TAG, \"activation value of \" + x);\n if (AppData.mSubscriptionsMap.get(x) == null) {\n Log.i(LOG_TAG, \"activation broken..... \" + x);\n break;\n }\n mSID = x;\n deactivateSubscription();\n mSID = -1;\n }\n\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new BuzzInMessage(teamIndex));\n }",
"@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}",
"@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }",
"protected void onSelectionPerformed(boolean success) {\n }",
"public void crossPressed() {\n\t\tif (edit) {\n\t\t\tselectCard();\n\t\t} else {\n\t\t\tString command = activeNode.getCurrentChild().getName();\n\t\t\tif (command.equals(\"Edit\")) {\n\t\t\t\tSoundPlayer.playSound(SoundMap.MENU_ACCEPT);\n\t\t\t\tstartEditing(CHARACTER_DECK);\n\t\t\t} else if (command.equals(\"Back\")) {\n\t\t\t\tif (currentDeck != null) { \n\t\t\t\t\tcurrentDeck.setActive(false);\n\t\t\t\t\tcurrentDeck = null;\n\t\t\t\t}\n\t\t\t\tSoundPlayer.playSound(SoundMap.MENU_BACK);\n\t\t\t\tcirclePressed();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }",
"@Override\n public void onItemClick(int position, View view) {\n\n boolean purchased = PreferenceManager.getDefaultSharedPreferences(mActivity).getBoolean(AppConstants.PRODUCT_ID_BOUGHT, false);\n boolean subscribed = PreferenceManager.getDefaultSharedPreferences(mActivity).getBoolean(AppConstants.PRODUCT_ID_SUBSCRIBE, false);\n\n if (position > 3 && !purchased && !subscribed) {\n // Toast.makeText(mActivity, R.string.alert_for_purchase , Toast.LENGTH_SHORT).show();\n Snackbar.make(view, R.string.alert_for_purchase, Snackbar.LENGTH_LONG)\n .setAction(\"Ок\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n ActivityUtilities.getInstance().invokeNewActivity(mActivity, SettingsActivity.class, true);\n }\n }).setDuration(4000).show();\n return;\n }\n\n CategoryModel model = mCategoryList.get(position);\n ActivityUtilities.getInstance().invokeCommonQuizActivity(mActivity, QuizPromptActivity.class, model.getCategoryId(), true);\n }",
"protected void ACTION_B_LIST(ActionEvent arg0) {\n\t\tListNetworkInerface();\r\n\t\tselect.setEnabled(true);\r\n\t\tback.setEnabled(true);\r\n\t\thelp.setEnabled(true);\r\n\t\tload.setEnabled(true);\r\n\t\ttextField.requestFocus();\r\n\t}",
"@Test\r\n\tpublic void testButtonPressedPopRackEmpty() {\r\n\t\tCoin coin = new Coin(200);\r\n\t\ttry {\r\n\t\t\tvend.getCoinSlot().addCoin(coin);\r\n\t\t\tvend.getSelectionButton(0).press();\r\n\t\t\tvend.getDeliveryChute().removeItems();\r\n\t\t\tvend.getCoinSlot().addCoin(coin);\r\n\t\t\tvend.getSelectionButton(0).press();\r\n\t\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\t\t\r\n\t\t} catch (DisabledException e) {\r\n\t\t\tassertTrue(false);\r\n\t\t}\r\n\t}",
"public void confirmLightning() {\n selectedLightning = true;\n }"
] |
[
"0.6340197",
"0.6068685",
"0.59948266",
"0.5958157",
"0.58649737",
"0.5776657",
"0.5757134",
"0.57088",
"0.56317145",
"0.55960566",
"0.559178",
"0.557454",
"0.5572949",
"0.55681294",
"0.55552965",
"0.55274975",
"0.5526602",
"0.5525573",
"0.55188924",
"0.5508962",
"0.5507468",
"0.5491438",
"0.5489215",
"0.5467521",
"0.54607713",
"0.54562855",
"0.5451835",
"0.5449861",
"0.54497963",
"0.54476225",
"0.5441058",
"0.5439712",
"0.5437279",
"0.54307586",
"0.5427883",
"0.5407077",
"0.54051244",
"0.54039955",
"0.53958106",
"0.5383458",
"0.53814095",
"0.53813267",
"0.53805643",
"0.53776187",
"0.53775066",
"0.53767866",
"0.537576",
"0.5361098",
"0.5359566",
"0.5355691",
"0.5352253",
"0.5351435",
"0.534704",
"0.53418356",
"0.53405446",
"0.53392786",
"0.5338403",
"0.5337661",
"0.53363794",
"0.5335259",
"0.533461",
"0.53269315",
"0.53245693",
"0.5315326",
"0.5308082",
"0.53047824",
"0.53023165",
"0.5302131",
"0.5294586",
"0.5293282",
"0.5291374",
"0.52896535",
"0.528602",
"0.528602",
"0.52853656",
"0.52851325",
"0.5282947",
"0.5282854",
"0.52698576",
"0.5266177",
"0.5261748",
"0.52611625",
"0.52573335",
"0.52560335",
"0.5250666",
"0.5240104",
"0.52374154",
"0.52350307",
"0.52324086",
"0.5228978",
"0.5228758",
"0.52280647",
"0.5226203",
"0.5220815",
"0.5216286",
"0.5215076",
"0.5212251",
"0.5202865",
"0.52026755",
"0.51903164"
] |
0.5868514
|
4
|
This method returns the item state of the SnackSelectionItem&46; This method determine whether the warning message is On or Off.
|
public boolean getItemState(){
return this.isWarningOn;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=isOn;\n\t\tbtn.setEnabled(!isOn);\n\t\tbtn.setBackground(this.getBackground());\n\t\twnd.setState(isOn);\n\t\tif (isOn)\n\t\t\twnd.setLabel(WarningText);\n\t\telse \n\t\t\twnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold) \n\t\t\t\t\t? LowStockText : NormalText);\n\t}",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"boolean getCheckState();",
"public boolean isSetStateMsg() {\n return this.stateMsg != null;\n }",
"public boolean isOn(){\n return state;\n }",
"int getWarningMode();",
"int getMqttEnabledStateValue();",
"public String getSmsState() {\n return \"\";\n }",
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n } else {\n // normal deselected\n return State.NOT_SELECTED;\n }\n }",
"public T getSelectedWarningValue() {\n return normalizedToValue(normalizedWarningValue);\n }",
"public java.lang.String getNotOkForPickupReasonDescription() {\r\n return notOkForPickupReasonDescription;\r\n }",
"public boolean isWarning() {\n\t\t\treturn false;\n\t\t}",
"public Integer getMessageStatus() {\n return messageStatus;\n }",
"java.lang.String getStateReason();",
"public String getOnHoldFlag()\n {\n return (String)getAttributeInternal(ONHOLDFLAG);\n }",
"public String getStateReason() {\n return this.stateReason;\n }",
"public boolean isUnselected() {\n return UNSELECTED.equals(message);\n }",
"com.google.cloud.iot.v1.MqttState getMqttEnabledState();",
"public boolean isSelected() {\n return SELECTED.equals(message);\n }",
"@Override\n public com.gensym.util.Symbol getItemStatus() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_STATUS_);\n return (com.gensym.util.Symbol)retnValue;\n }",
"public boolean getState( ) { return state; }",
"protected BattleUseItemState useItemState(){\n return new BattleUseItemState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }",
"public String getSupStockStatus() {\n return supStockStatus;\n }",
"public BidGroupItemStatusCodeType getBidGroupItemStatus() {\n\t return this.bidGroupItemStatus;\n\t}",
"public Boolean getState() {\n return state;\n }",
"public boolean getPowerState() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getBoolean(TOGGLE_KEY, true);\n\t}",
"public String getInspectionResultState() {\n return inspectionResultState;\n }",
"public boolean getOnSell() {\n\t\treturn this.onSell;\n\t}",
"boolean hasBonusItemDrop();",
"public char getState() {\n\t\treturn this.conMenu.getMenuState();\n\t}",
"public Object getWarningContext() {\n\t\treturn warningContext;\n\t}",
"public synchronized boolean getGenericWarningFlag() {\n return fWarningAll;\n }",
"public Integer getIsUseful() {\n return isUseful;\n }",
"private String getStatusDefaultMessage() {\r\n\r\n\t\tfinal Collection<GalleryMT20Item> allSelectedPhoto = _galleryMT20.getSelection();\r\n\t\tfinal int allPhotoSize = allSelectedPhoto.size();\r\n\r\n\t\treturn allPhotoSize == 0 //\r\n\t\t\t\t// hide status message when nothing is selected\r\n\t\t\t\t? UI.EMPTY_STRING\r\n\t\t\t\t: NLS.bind(Messages.Pic_Dir_StatusLabel_SelectedImages, allPhotoSize);\r\n\t}",
"public static boolean checkSensorState()\n\t{\n\t\tboolean state = false;\n\t\ttry\n\t\t{\t\n\t\t\t\tfor (SensorData sData : sCollect.getList())\n\t\t\t\t{\n\t\t\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sData.getState().equals(Constants.SENSOR_STATE_STOCK))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}catch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t\treturn state;\n\t}",
"public int getSmileyStatus() {\n return smileyStatus;\n }",
"public synchronized Boolean getWarningFlag(String category) {\n return (Boolean)fWarningTable.get(category);\n }",
"public void warning() {\n\t\tLog.i(TAG, \"SafeSpeed.warning()\");\n\t\tLog.i(TAG, \"Screen on: \" + pm.isScreenOn() + \" isOpen: \" + !settings.getBoolean(\"isOpen\", false));\n\t\n\t\tif(pm.isScreenOn() && !settings.getBoolean(\"isOpen\", false)) {\n\t\t\teditor.putBoolean(\"isOpen\", true);\n\t\t editor.commit();\n\t\t \n\t\t alert.show(); \n\t\t}\n\t}",
"public java.lang.Boolean getOkForPickup() {\r\n return okForPickup;\r\n }",
"public int getSoundState() {\n return preferences.getInt(\"sound_state\",0);\n }",
"public boolean getState() {\n\t\treturn state;\n\t}",
"public String getRestrictState() {\n return this.RestrictState;\n }",
"public boolean isWarningIfEmpty() {\n\t\treturn warningIfEmpty;\n\t}",
"public int batteryWarning()\n\t{\n\t\tMessageBox dialog = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);\n\t\tdialog.setText(\"Battery status\");\n\t\tdialog.setMessage(\"Sensor battery is below minimum. Do you want proceed configuration?\");\n\t\tint returnCode = dialog.open();\n\t\tSystem.out.println(returnCode);\n\t\treturn returnCode;\n\t}",
"public static ImageIcon exportState() {\n if(isExPress)\n return exPre;\n if(isExHover)\n return exHov;\n return exDef; \n }",
"public boolean getIsMessage()\n {\n return isMessage;\n }",
"public final String getWarningString() {\n return warningString;\n }",
"public boolean isWarnBackup ()\r\n\t{\r\n\t\treturn m_warnBackup;\r\n\t}",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"public abstract boolean hasWarning();",
"public String getToolcheckstatus() {\r\n return toolcheckstatus;\r\n }",
"public boolean isOverState() {\n return overState;\n }",
"public Integer getVoucherState() {\n\t\treturn voucherState;\n\t}",
"@Override\n\t\tpublic boolean OnStatusChange(String msgId, int state) {\n\t\t\treturn false;\n\t\t}",
"protected boolean isOn() {\r\n\t\treturn this.isOn;\r\n\t}",
"public SnackSelectionItem(int snackIdentifier, String snackName, int snackPrice, int quantity, boolean isActive, boolean isWarningOn){\n\t\tthis.setSnackIdentifier(snackIdentifier);\n\t\tthis.setName(snackName);\n\t\tthis.setPrice(snackPrice);\n\t\tthis.setState(isActive);\n\t\tthis.setItemState(isWarningOn);\n\t\tinit();\n\t}",
"public boolean getAtmStatus();",
"public Boolean getIsselected() {\n return isselected;\n }",
"public Boolean getIsselected() {\n return isselected;\n }",
"@DISPID(94)\r\n\t// = 0x5e. The runtime will prefer the VTID if present\r\n\t@VTID(92)\r\n\tjava.lang.String stateDescription();",
"public boolean getBooleanValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a boolean.\");\n }",
"public boolean hasBonusItemDrop() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public SelectItem[] getStatusItems() {\n\t\tif (statusItems.length == 0) {\n\t\t\tstatusItems = new SelectItem[3];\n\t\t\tstatusItems[0] = new SelectItem(null, \"--\");\n\t\t\tstatusItems[1] = new SelectItem(new Boolean(true), \"SI\");\n\t\t\tstatusItems[2] = new SelectItem(new Boolean(false), \"NO\");\n\t\t}\n\t\treturn statusItems;\n\t}",
"public boolean hasBonusItemDrop() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }",
"public boolean isStateAvailable(int paraState) {\n\t\treturn true;\n\t}",
"public boolean getPingOnIdle()\n {\n return _isPing;\n }",
"boolean isItemDisabled( final Object item );",
"public av m18471e() {\n return this.status;\n }",
"public String getCheckStatus() {\r\n return checkStatus;\r\n }",
"public String getState( )\r\n {\r\n if (isEating)\r\n return \"Eating\"; // Exit method w/ current state\r\n\r\n if (isSleeping)\r\n return \"Sleeping\";\r\n\r\n return \"Error in State\";\r\n }",
"@Override\n\tpublic boolean getState() {\n\t\treturn true;\n\t}",
"public Integer getIsAvailable() {\r\n\t\treturn isAvailable;\r\n\t}",
"@Override\n public void onItemPicked(int index, String item) {\n buttonselect3.setText(item);\n buttonselect3.setTextColor(Color.YELLOW);\n ((TextView)findViewById(R.id.confitstate3)).setText(\"待配置\");\n }",
"public boolean getCanPickupItems ( ) {\n\t\treturn extract ( handle -> handle.getCanPickupItems ( ) );\n\t}",
"public String getCurrentStatusMessage()\n {\n return currentStatusMessage;\n }",
"Observable<Boolean> deliveryStatusTextViewIsGone();",
"public IMAP.IMAPState getState()\n {\n return __state;\n }",
"public String getAtmState();",
"public boolean getIsEnabledState() {\r\n\t\tif (McsElement.getElementByPartAttributeValueAndParentElement(driver,\r\n\t\t\t\t\"div\", \"@class\", PURCHASING_PRODUCT_WINDOW_CLASS, \"input\", \"@name\",\r\n\t\t\t\t\"isEnabled\", true, false).getAttribute(\"checked\") == null) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public Integer getRiskWarning() {\n return riskWarning;\n }",
"public String state() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"protected boolean statusIs(String state)\n { return call_state.equals(state); \n }",
"public String getMonitoringState() {\n StringBuilder sb = new StringBuilder();\n sb.append(queueManager.getMonitoringInfo());\n return sb.toString();\n }",
"public boolean isDownState() {\n return downState;\n }",
"public boolean hasStateInfo() {\n return ((bitField0_ & 0x00000100) != 0);\n }",
"public boolean getState() {\n\t\treturn isActive;\n\t}",
"public String getCurrentStatusMessage()\n {\n OperationSetPresence presenceOpSet\n = protocolProvider.getOperationSet(OperationSetPresence.class);\n\n return presenceOpSet.getCurrentStatusMessage();\n }",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"public java.lang.String getStateCode() {\n\t\treturn _tempNoTiceShipMessage.getStateCode();\n\t}",
"public boolean isOn() {\n\t\treturn false;\n\t}",
"public String getReceiveNotice() {\n return receiveNotice;\n }",
"@DISPID(43)\r\n\t// = 0x2b. The runtime will prefer the VTID if present\r\n\t@VTID(41)\r\n\tboolean alerted();",
"public java.math.BigInteger getNotOkForPickupReasonCode() {\r\n return notOkForPickupReasonCode;\r\n }",
"public boolean isOverDue() {\n\t\treturn state == loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\r\n\t}",
"public String getState() {\n return this.State;\n }",
"@Override\n\tpublic long getStatus() {\n\t\treturn _buySellProducts.getStatus();\n\t}",
"public Integer getSmsStatus() {\r\n return smsStatus;\r\n }"
] |
[
"0.6083111",
"0.56926125",
"0.5668805",
"0.5563304",
"0.5552993",
"0.553963",
"0.5536314",
"0.5518519",
"0.54399556",
"0.5405548",
"0.5398593",
"0.53967357",
"0.5385413",
"0.5384854",
"0.5357204",
"0.53278536",
"0.52756315",
"0.5257527",
"0.5218558",
"0.5203985",
"0.5198782",
"0.5196485",
"0.5163053",
"0.51584756",
"0.51552224",
"0.514905",
"0.51293164",
"0.5116583",
"0.51143456",
"0.5104993",
"0.50964695",
"0.509584",
"0.5092434",
"0.50905275",
"0.5089267",
"0.5086231",
"0.5084326",
"0.5081234",
"0.5077766",
"0.5075532",
"0.50697476",
"0.505006",
"0.50481606",
"0.5045021",
"0.5036313",
"0.503202",
"0.50197774",
"0.5011348",
"0.5009952",
"0.5009952",
"0.5009921",
"0.50045776",
"0.49994385",
"0.49994233",
"0.4997792",
"0.49966046",
"0.49954596",
"0.49948886",
"0.49892497",
"0.49892497",
"0.49883872",
"0.4983841",
"0.49763322",
"0.49762923",
"0.4974292",
"0.4967216",
"0.4964921",
"0.4963191",
"0.49553117",
"0.4955297",
"0.49535283",
"0.4952135",
"0.49507827",
"0.49468818",
"0.4945088",
"0.49430096",
"0.49347165",
"0.4934616",
"0.49320388",
"0.49277475",
"0.49241215",
"0.49196866",
"0.49187955",
"0.49187955",
"0.49136505",
"0.49119496",
"0.4910687",
"0.49090028",
"0.49066442",
"0.49063292",
"0.4904104",
"0.4903389",
"0.4900194",
"0.4899551",
"0.48962587",
"0.48899016",
"0.48877648",
"0.4887602",
"0.48870572",
"0.48705482"
] |
0.78166986
|
0
|
This method sets the state of the SnackSelectionItem&46;
|
public void setState(boolean active) {
this.isActive=active;
btn.setEnabled(active);
btn.setBackground(this.getBackground());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }",
"@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }",
"void setStateHolder(@NonNull T selectionStateHolder);",
"public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=isOn;\n\t\tbtn.setEnabled(!isOn);\n\t\tbtn.setBackground(this.getBackground());\n\t\twnd.setState(isOn);\n\t\tif (isOn)\n\t\t\twnd.setLabel(WarningText);\n\t\telse \n\t\t\twnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold) \n\t\t\t\t\t? LowStockText : NormalText);\n\t}",
"public SnackSelectionItem(int snackIdentifier, String snackName, int snackPrice, int quantity, boolean isActive, boolean isWarningOn){\n\t\tthis.setSnackIdentifier(snackIdentifier);\n\t\tthis.setName(snackName);\n\t\tthis.setPrice(snackPrice);\n\t\tthis.setState(isActive);\n\t\tthis.setItemState(isWarningOn);\n\t\tinit();\n\t}",
"@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }",
"void stateSelected(State state);",
"public void setSelected(boolean s)\n {\n selected = s; \n }",
"public void setSelectedItem(Gnome selectedItem) {\n this.selectedItem = selectedItem;\n }",
"@Override\n public void setChanged() {\n set(getItem());\n }",
"public void onItemStateChanged(String id, boolean selected);",
"public void setSelection (int index) {\r\n\tcheckWidget();\r\n\tsetSelection (index, false);\r\n}",
"@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tint box_index = deck_ComboBox.getSelectedIndex();\n\t\t\t\t\tNode n = rm.applySelectionCases(rule_deck_node, box_index);\n\t\t\t\t\trule_deck_node.replace(n);\n\t\t\t\t}\n\t\t\t}",
"public void setSelectedItem(ItemT item) {\n selectedItem = item;\n onSelectedItemChanged();\n }",
"@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}",
"@Override\n\t\tpublic void setSelected(int p_178011_1_, int p_178011_2_, int p_178011_3_) {\n\n\t\t}",
"@Override\n\t\tpublic void setSelected(int p_178011_1_, int p_178011_2_, int p_178011_3_) {\n\n\t\t}",
"@Override\n public void pickItem(int position) {\n setProductPicked(-1, position);\n }",
"public void setSelection( final int index ) {\n checkWidget();\n if( index >= 0 && index <= itemHolder.size() - 1 ) {\n if( selectedIndex != index ) {\n int oldSelectionIndex = selectedIndex;\n selectedIndex = index;\n internalSelectedIndex = index;\n getItem( selectedIndex ).showing = false;\n Control control = getItem( selectedIndex ).getControl();\n // Adjust bounds of selected control and make it visible (if any)\n if( control != null && !control.isDisposed() ) {\n control.setBounds( getClientArea() );\n control.setVisible( true );\n }\n // Hide control of previous selection (if any)\n if( oldSelectionIndex >= 0 && oldSelectionIndex < getItemCount() ) {\n Control oldControl = getItem( oldSelectionIndex ).getControl();\n if( oldControl != null && !oldControl.isDisposed() ) {\n oldControl.setVisible( false );\n }\n }\n }\n showItem( getSelection() );\n }\n }",
"@Override\n public void update() {\n if (changedState) {\n selectedPosY = selection * hItemBox + yPos + hItemBox;\n selectedPosX = xPos; \n changedState = false;\n }\n }",
"public void setSelected(boolean selected);",
"public void setFirstSelected(Piece s)\n {\n firstSelected = s;\n }",
"@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t\t/* If it is a selection event, and not a de-selection event (both are typically fired\n\t\t * when the combo box is changed) */\n\t\tif (arg0.getStateChange() == ItemEvent.SELECTED) {\n\n\t\t\t/* Set the selected STCA (program-wide for simplicity) */\n\t\t\tGlobalAttributes.automata=((JComboBox)(arg0.getSource())).getSelectedIndex();\n\t\t\tMainFrame.automata.setSelectedIndex(GlobalAttributes.automata);\n\t\t\tMainFrame.cellSpace.repaint();\n\t\t}\n\t}",
"public void setSelection(int index) {\n checkWidget();\n int count = OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n if (!(0 <= index && index < count))\n return;\n setSelection(index, false);\n }",
"@Override\n\tpublic void setSelectedNavigationItem(int position) {\n\t\t\n\t}",
"public void setSelection(T t) {\n\t\tspinner.setSelection(adapter.getPosition(t));\n\t}",
"void setState(int state);",
"@FXML\n\tpublic void setSelectedItem(MouseEvent event) {\n\t\ttry {\n\t\t\tString s=inventoryList.getSelectionModel().getSelectedItem();\t// Get selected item\n\t\t\tItem i=Item.getItem(ItemList, s);\n\t\t\titemselect.setText(s);\t// Set selected item information\n\t\t\tif(i.getStat().equals(\"HP\"))\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Health\");\n\t\t\telse if(i.getStat().equals(\"DMG\"))\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Damage\");\n\t\t\telse\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Evasion\");\n\t\t} catch(Exception e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t}",
"public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }",
"public void itemSelected(boolean selected);",
"public void setSelected(boolean selected) \n {\n this.selected = selected;\n }",
"public void setState(int state);",
"public void setState(int state);",
"public void updateItemState(DATA data, boolean selected ) {\r\n\t\tString key = this.dataKeyExtractor.generateSingleStringKey(data);\r\n\t\tif ( modeSelectAll){\r\n\t\t\tif ( selected)\r\n\t\t\t\tunselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tunselectedDataIds.add(key);\r\n\t\t}else{\r\n\t\t\tif ( selected)\r\n\t\t\t\tselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tselectedDataIds.add(key);\r\n\t\t}\r\n\t}",
"public void setSelectedItem(BrowseItem selectedItem)\r\n\t{\r\n\t\tthis.selectedItem = selectedItem;\r\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }",
"@Override\n\tpublic void setState(State state) \n\t\t{ current = new PuzzleState(state.getString(state.getState()),\n\t\t\t\t\t\t\t\t\tstate.getString(state.getGoalState())); \n\t\t}",
"@Override\n public void onItemPicked(int index, String item) {\n buttonselect3.setText(item);\n buttonselect3.setTextColor(Color.YELLOW);\n ((TextView)findViewById(R.id.confitstate3)).setText(\"待配置\");\n }",
"private void setState( int state )\n {\n m_state.setState( state );\n }",
"@Override\n public void setCurrentItem(int item) {\n super.setCurrentItem(item, false);\n }",
"public void itemStateChanged (ItemEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).activate();\n }",
"@Override\n\tpublic void setState(STATE state) {\n\n\t}",
"static void setNotSelected(){isSelected=false;}",
"public void setState(int state) {\n m_state = state;\n }",
"public void setSelected(boolean selected) {\n\t\tiAmSelected = selected;\n\t}",
"protected void setState(IMAP.IMAPState state)\n {\n __state = state;\n }",
"public void setSelection( final CTabItem item ) {\n checkWidget();\n if( item == null ) {\n SWT.error( SWT.ERROR_NULL_ARGUMENT );\n }\n int index = itemHolder.indexOf( item );\n setSelection( index );\n }",
"public void SetState(int s) {\n this.state=LS[s];\n }",
"@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\tPrefs.getInstance(getApplication()).setPrioritySelection(position);\n\t}",
"@Override\n\t public void onItemSelected(AdapterView<?> arg0, View arg1,int position, long id) {\n\t \tGlobal gs = (Global) getApplication();\n\t \t\tgs.mQblockSettings.selected_chemist=position;\n\t \t\tgs.SaveSettings();\n\t }",
"@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tint state = e.getStateChange();\n\t\t\t\tif(state == ItemEvent.SELECTED){\n\t\t\t\t\tsetGoodsId();\n\t\t\t\t}else{\n\t\t\t\t\tgoods_id=null;\n\t\t\t\t}\n\t\t\t}",
"public void setItemPosition(int position) {\n if (position != -1 && items.size() > 0) {\n clearSelections();\n items.get(position).setSelected(true);\n onCancel(null);\n }\n }",
"private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }",
"private void setSelectedItem(int selectedItem, boolean scrollIntoView) {\n mSelectedItem = selectedItem;\n if (mSelectedItemChangeListener != null) {\n mSelectedItemChangeListener.OnSelectedItemChange(this, selectedItem);\n }\n if (scrollIntoView) {\n centerOnItem(selectedItem);\n }\n invalidate();\n requestLayout();\n }",
"public void updateSelection() {\n\t\t\n\t}",
"public void setPickVisible(boolean state) {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }",
"@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tint box_index = namedaction_ComboBox.getSelectedIndex();\n\t\t\t\t\tNode n = rm.applySelectionCases(rule_namedaction_node, box_index);\n\t\t\t\t\trule_namedaction_node.replace(n);\n\t\t\t\t}\n\t\t\t}",
"public void setSelection(Pair selection);",
"public void setSelection (boolean selected) {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_FLAGS, selected ? OS.Pt_SET : 0, OS.Pt_SET);\r\n}",
"protected void onSelectionPerformed(boolean success) {\n }",
"private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }",
"void setState(Object state);",
"@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t}",
"public void setState(State newState) {this.state = newState;}",
"@Override // see item.java\n\tpublic void pickUp() {\n\n\t}",
"public void setSelectedItem(Object anItem)\n/* */ {\n/* 49 */ this.c = ((Category)anItem);\n/* */ }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setIsselected(Boolean isselected) {\n this.isselected = isselected;\n }",
"public void setIsselected(Boolean isselected) {\n this.isselected = isselected;\n }",
"public void setSelected(boolean selected) {\n this.selected = selected;\n }",
"public static void SetState (int state) {\n\t\t source = state;\n\t\t}",
"public void setState(State state) { model.setState(state); }",
"public void setSelected(boolean selected) {\n/* 891 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t}",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\r\n\t}",
"@Override\n\tprotected void OnRelease() {\n\t\tsetSelected(false);\n\t}",
"public void setState(Integer state) {\n\t\tthis.state = state;\n\t}",
"public void setSelected(boolean selected)\n\t{\n\t\tthis.selected = selected;\n\t}",
"private void setFeatureSelectState(Feature feature, boolean selectedState) {\n feature.properties().addProperty(PROPERTY_SELECTED, selectedState);\n refreshSource();\n }",
"public void setState(java.lang.CharSequence value) {\n this.state = value;\n }",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\r\n\t}",
"public void setSelected(boolean selected) {\n\t\t// Set the Selection on the CoolBar\n\t _coolBar.setSelected(selected);\n\t}",
"public void setSelected(boolean selected) {\t\t\t\t\n\t\tthis.selected = selected;\t\t\t\t\t\t\n\t}",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"public void setState(int state) {\n \t\tthis.state = state;\n \t}",
"public void setSelected(boolean selected) {\r\n\t\tthis.selected = selected;\r\n\t}",
"public void setSelectionModeStateListAnimator(int resId) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n StateListAnimator animator =\n AnimatorInflater.loadStateListAnimator(itemView.getContext(), resId);\n\n setSelectionModeStateListAnimator(animator);\n }\n }",
"public void setSelected(boolean select) {\r\n isSelected = select;\r\n }",
"public void setSelection( String strSelection )\n {\n List<String> suggestionNames = getPopupSuggestions();\n for( int currentIndex = 0; currentIndex < suggestionNames.size(); currentIndex++ )\n {\n if( suggestionNames.get( currentIndex ).equals( strSelection ) )\n {\n //select the matching suggestion's index\n _list.setSelectedIndex( currentIndex );\n break;\n }\n }\n }",
"public void setState(int state) {\n\t\t\tmState = state;\n\t\t}",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"private void setListSelection(int selectedIndex)\n {\n if (selectedIndex == -1)\n {\n list.clearSelection();\n }\n else\n {\n list.setSelectedIndex(selectedIndex);\n list.ensureIndexIsVisible(selectedIndex);\n }\n }"
] |
[
"0.6508593",
"0.6379688",
"0.6343388",
"0.62933046",
"0.6280629",
"0.6229713",
"0.61264586",
"0.61195546",
"0.6098279",
"0.6078482",
"0.60715556",
"0.60614127",
"0.600704",
"0.5984329",
"0.5923942",
"0.59105766",
"0.59105766",
"0.5878196",
"0.58757037",
"0.58680135",
"0.5836104",
"0.5836081",
"0.58254576",
"0.58252656",
"0.5794654",
"0.57880837",
"0.57648563",
"0.5763604",
"0.5743137",
"0.57337",
"0.5730877",
"0.5730423",
"0.5730423",
"0.57299334",
"0.572738",
"0.57007825",
"0.56951684",
"0.56937516",
"0.56859976",
"0.5685816",
"0.56611603",
"0.56606185",
"0.56538254",
"0.56510115",
"0.5638574",
"0.5635817",
"0.56329715",
"0.56301117",
"0.5620387",
"0.56197083",
"0.56161433",
"0.5615382",
"0.5612773",
"0.5612235",
"0.560958",
"0.5604867",
"0.560352",
"0.5597443",
"0.5580866",
"0.55649227",
"0.556269",
"0.556208",
"0.55589205",
"0.5557736",
"0.5550322",
"0.5550322",
"0.55447",
"0.5534412",
"0.5531056",
"0.5527194",
"0.5527194",
"0.5503551",
"0.5503551",
"0.54958564",
"0.5494148",
"0.5492646",
"0.5491871",
"0.5491378",
"0.54910177",
"0.5486352",
"0.5486073",
"0.547733",
"0.54772353",
"0.5473642",
"0.5471698",
"0.5469804",
"0.54619",
"0.54610085",
"0.5457888",
"0.54536784",
"0.5453186",
"0.5450993",
"0.54491365",
"0.5448332",
"0.5447228",
"0.5447228",
"0.5447228",
"0.5447228",
"0.5447228",
"0.5447228",
"0.54468834"
] |
0.0
|
-1
|
This method returns the state of the SnackSelectionItem&46;
|
public boolean getState() {
return isActive;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n } else {\n // normal deselected\n return State.NOT_SELECTED;\n }\n }",
"@Override\n public int getState() {\n return myState;\n }",
"public int getState() {\n return m_state;\n }",
"public int getState() {return state;}",
"public int getState() {return state;}",
"public Integer getState() {\r\n return state;\r\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public int getState(){\n return state;\n }",
"public int getState(){\n\t\treturn state;\n\t}",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"public boolean getState( ) { return state; }",
"public int getState() {\n \t\treturn state;\n \t}",
"public int getState() {\n\t\treturn state;\n\t}",
"public FrameEditorSelectionState getSelectionState()\n {\n return selection;\n }",
"public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}",
"public int getState() {\n return state;\n }",
"public int getState()\n {\n return m_state.getState();\n }",
"public S getState() {\r\n\t\treturn state;\r\n\t}",
"public int getState() {\n return mState;\n }",
"public T getState() {\r\n\t\treturn state;\r\n\t}",
"public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"@Override\n public String getState()\n {\n return state;\n }",
"public int getState() {\n return _state;\n }",
"public int getState() {\n return state.getValue();\n }",
"public int getState() {\r\n\t\treturn dState;\r\n\t}",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}",
"public int getState() {\n return this.mState;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public ItemT getSelectedItem() {\n return selectedItem;\n }",
"public int getState();",
"public int getState();",
"public int getState();",
"public int getState();",
"public char getState() {\n\t\treturn this.conMenu.getMenuState();\n\t}",
"public String state() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"private State getState()\n {\n return state;\n }",
"public STATE getState() {\n\t\n\t\treturn state;\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"public java.lang.CharSequence getState() {\n return state;\n }",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"@java.lang.Override public int getStateValue() {\n return state_;\n }",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public java.lang.CharSequence getState() {\n return state;\n }",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"@java.lang.Override public int getStateValue() {\n return state_;\n }",
"public int getSelectedItem() {\n return mSelectedItem;\n }",
"public Integer getaState() {\n return aState;\n }",
"@Override\n\tpublic int getState() {\n\t\treturn 0;\n\t}",
"public String getState() { return state; }",
"@Override\n public BookStatus getState() {\n return state;\n }",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState()\n {\n \treturn state;\n }",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"protected S state() {\n return state;\n }",
"public State getState()\r\n\t{\r\n\t\treturn this.state;\r\n\t}",
"public boolean getItemState(){\n\t\treturn this.isWarningOn;\n\t}",
"public synchronized int getState() {\n return mState;\n }",
"public synchronized int getState() {\n return mState;\n }",
"public String getState() {\n\t\treturn state;\n\t}",
"protected BattleUseItemState useItemState(){\n return new BattleUseItemState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }",
"public int getExpandState(){\n return mCurrState;\n }",
"Object getState();",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }"
] |
[
"0.655347",
"0.64593077",
"0.6455369",
"0.6380498",
"0.6380498",
"0.6316333",
"0.6316333",
"0.6299922",
"0.6291071",
"0.62696725",
"0.62696725",
"0.62696725",
"0.62696725",
"0.62696725",
"0.62696725",
"0.6254531",
"0.6254531",
"0.62487894",
"0.6236308",
"0.62236756",
"0.62102216",
"0.6206671",
"0.6200829",
"0.6193104",
"0.6192033",
"0.6183376",
"0.6174647",
"0.6168294",
"0.61417276",
"0.61417276",
"0.61417276",
"0.61417276",
"0.61417276",
"0.6137676",
"0.61344206",
"0.612937",
"0.61234695",
"0.61226517",
"0.61226517",
"0.61226517",
"0.61226517",
"0.6114563",
"0.6114563",
"0.6114563",
"0.61143064",
"0.611146",
"0.60795236",
"0.60795236",
"0.60795236",
"0.60795236",
"0.60787356",
"0.60614705",
"0.6060718",
"0.6060718",
"0.6060718",
"0.6060718",
"0.6055313",
"0.60533166",
"0.60533166",
"0.6041916",
"0.60381424",
"0.6037031",
"0.6037031",
"0.603424",
"0.603424",
"0.603424",
"0.60340375",
"0.6032347",
"0.6031717",
"0.60158217",
"0.5999946",
"0.5999946",
"0.5999946",
"0.5999833",
"0.5997731",
"0.5997731",
"0.5997731",
"0.5997731",
"0.5997731",
"0.5997731",
"0.5995386",
"0.59858185",
"0.59824926",
"0.5979764",
"0.59789306",
"0.5968159",
"0.5963966",
"0.5963426",
"0.59546876",
"0.59529954",
"0.5945555",
"0.5934806",
"0.59319097",
"0.59319097",
"0.59284514",
"0.59254754",
"0.5923342",
"0.59229857",
"0.5919263",
"0.5919263",
"0.5919263"
] |
0.0
|
-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.