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
Gets the attribute value for CreationDate, using the alias name CreationDate.
public Date getCreationDate() { return (Date)getAttributeInternal(CREATIONDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Date getDateCreated() {\n\t\treturn parseDate(getProperty(DATE_CREATED_PROPERTY));\n\t}", "public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "Date getCreationDate();", "public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public Date getCreationDate();", "public Date getCreationDate() {\r\n return this.creationDate;\r\n }", "Date getCreatedDate();", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "Date getCreateDate();", "Date getCreateDate();", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public Date getCreationDate() {\r\n\t\treturn creationDate;\r\n\t}", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreationDate() {\n\t\treturn this.creationDate;\n\t\t\n\t}", "public Date getNotiCreated() {\r\n return (Date) getAttributeInternal(NOTICREATED);\r\n }", "public Date getCreationdate() {\n return creationdate;\n }", "public Date getCreationDate() {\n return creationDate;\n }", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreationDate()\n {\n return creationDate;\n }", "public Date getCreationDate() {\n\t\treturn creationDate;\n\t}", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Date getCreation() {\n return creation;\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public String getCreateDate() {\n return createDate;\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public java.util.Date getCreationDate() {\n return this.creationDate;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "@JsonProperty(\"created_date\")\n\tpublic Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public String getCreateDate() {\n return createDate;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }", "public Date getCreationDate() {\r\n\t\treturn oCreationDate;\r\n\t}", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "public Date getExtendedCreationDate()\r\n {\r\n return (m_extendedCreationDate);\r\n }", "public Date getCreatedDate();", "public ZonedDateTime getDateCreation() {\n\t\treturn this.dateCreation;\n\t}", "@ApiModelProperty(value = \"An integer containing the creation date and time, in number of seconds\")\n public String getCreationDate() {\n return creationDate;\n }", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Date getDateCreated(){return DATE_CREATED;}", "public String getCreateDate() {\n return createDate;\n }", "public String getCreateDate() {\n return createDate;\n }", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public java.util.Calendar getCreationDate() {\n return creationDate;\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getCreateDate() { return this.createDate; }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getCreatorDate() {\n return creatorDate;\n }", "public Date getdCreateDate() {\r\n return dCreateDate;\r\n }", "public Date getdCreateDate() {\r\n return dCreateDate;\r\n }", "Date getDateCreated();", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public Date getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "@Basic( optional = true )\n\t@Column( name = \"date_created\" )\n\tpublic Date getDateCreated() {\n\t\treturn this.dateCreated;\n\t\t\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "@Basic( optional = true )\r\n\t@Column( name = \"create_date\" )\r\n\tpublic Date getCreateDate() {\r\n\t\treturn this.createDate;\r\n\t\t\r\n\t}", "public Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public String getDatecreated() {\n return datecreated;\n }", "@Raw @Basic @Immutable\r\n public Date getCreationTime() {\r\n return creationTime;\r\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public Date getCreateddate() {\n return createddate;\n }" ]
[ "0.7098145", "0.7054243", "0.7041457", "0.7041457", "0.7041457", "0.6808293", "0.67974854", "0.6781036", "0.6773606", "0.6722781", "0.6722781", "0.6567299", "0.64812404", "0.6344069", "0.6306525", "0.6305644", "0.6304545", "0.6302342", "0.6299437", "0.62543106", "0.62543106", "0.62462765", "0.62365127", "0.6233849", "0.6232471", "0.6232081", "0.6218676", "0.62164634", "0.61977047", "0.61920893", "0.6187339", "0.6170035", "0.6168985", "0.61654145", "0.616259", "0.61585647", "0.61523855", "0.6149594", "0.61445063", "0.6142797", "0.61425424", "0.6138968", "0.61342365", "0.61342365", "0.61342365", "0.6131157", "0.6115363", "0.6111309", "0.61078805", "0.61059874", "0.6103999", "0.609942", "0.6097808", "0.60938424", "0.6090889", "0.6090384", "0.6089805", "0.60811937", "0.60806215", "0.6070716", "0.60674953", "0.6061641", "0.6061641", "0.60553455", "0.6054159", "0.60508066", "0.60502267", "0.60502267", "0.6043676", "0.6043676", "0.6043676", "0.60366786", "0.6027643", "0.6027643", "0.6027643", "0.6027643", "0.60211587", "0.60172427", "0.60172427", "0.60156626", "0.60132027", "0.60101765", "0.600802", "0.600802", "0.600724", "0.6000208", "0.5981775", "0.5975269", "0.5970868", "0.5970868", "0.5970868", "0.59701926", "0.5967961", "0.5965492", "0.59654295" ]
0.6953878
9
Sets value as the attribute value for CreationDate.
public void setCreationDate(Date value) { setAttributeInternal(CREATIONDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreationDate(Date creationDate);", "public Builder setCreationDate(long value) {\n \n creationDate_ = value;\n onChanged();\n return this;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "void setCreateDate(final Date creationDate);", "public void setNotiCreated(Date value) {\r\n setAttributeInternal(NOTICREATED, value);\r\n }", "public void setCreatedAt(final Date value)\n\t{\n\t\tsetCreatedAt( getSession().getSessionContext(), value );\n\t}", "public void setCreationDate(Date creationDate) {\n }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public Builder setCreateDate(String value) {\n validate(fields()[2], value);\n this.createDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }", "public void setCreationDate(Date creationDate)\r\n {\r\n m_creationDate = creationDate;\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "void setCreatedDate(Date createdDate);", "public Builder setCreationDate(long value) {\n\n creationDate_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "void setCreateDate(Date date);", "public void setCreatedDate(Date createdDate);", "public void setCreationDate(Date creationDate) {\n \n this.creationDate = creationDate;\n\n }", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setDateCreated(Date dateCreated);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public void setCreationDate(String creationDate) {\r\n\t\tthis.creationDate = new SimpleStringProperty(creationDate);\r\n\t}", "public void setCreationDate(\n @Nullable\n final LocalDateTime creationDate) {\n rememberChangedField(\"CreationDate\", this.creationDate);\n this.creationDate = creationDate;\n }", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public void setCreationDate(final Date creationDate) {\n\t\tthis.creationDate = creationDate;\n\t}", "public void setCreationdate(Date creationdate) {\n this.creationdate = creationdate;\n }", "public IBusinessObject setCreationDate(Timestamp creationDate)\n throws ORIOException;", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreationDate(Long creationDate)\r\n\t{\r\n\t\tthis.creationDate = creationDate;\r\n\t}", "public void setCreationDate(java.util.Date creationDate) {\n this.creationDate = creationDate;\n }", "void setDateCreated(final Date dateCreated);", "public void setCreatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, CREATEDAT,value);\n\t}", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }", "public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public Builder setCreateDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createDate_ = value;\n onChanged();\n return this;\n }", "public void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public void setCreationDate(java.util.Calendar creationDate) {\n this.creationDate = creationDate;\n }", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public void setCreatedAtDD(Long value) {\n setCreatedAt(new Date(value));\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreationTime( Date creationTime )\n\t{\n\t\tthis.creationTime\t= creationTime;\n\t}", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "public Builder setCreationTime(long value) {\n bitField0_ |= 0x00000001;\n creationTime_ = value;\n onChanged();\n return this;\n }", "public void setCreatedDate(Date createdDate) {\n this.createdDate = createdDate;\n }", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "@ApiModelProperty(value = \"An integer containing the creation date and time, in number of seconds\")\n public String getCreationDate() {\n return creationDate;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }" ]
[ "0.8591486", "0.82014096", "0.7878", "0.7878", "0.78678834", "0.7781187", "0.76366484", "0.7626439", "0.7626439", "0.7610338", "0.75605094", "0.7528408", "0.7513406", "0.7501521", "0.7474159", "0.7461501", "0.74586976", "0.74347323", "0.74347323", "0.74347323", "0.74216217", "0.7385188", "0.73056513", "0.7299755", "0.72951555", "0.7239294", "0.7223866", "0.7218897", "0.7218897", "0.7218897", "0.7170206", "0.7168411", "0.7158933", "0.7109473", "0.70952284", "0.70776", "0.70654404", "0.7027056", "0.7017258", "0.7009104", "0.6982076", "0.6936553", "0.6931849", "0.6902555", "0.6898509", "0.6896388", "0.6896388", "0.6896388", "0.6889847", "0.68799764", "0.6862415", "0.6857508", "0.68473345", "0.68473345", "0.6808522", "0.6808522", "0.6808522", "0.6808522", "0.6808522", "0.6808522", "0.68031776", "0.6789514", "0.675409", "0.6749126", "0.6749126", "0.6735218", "0.6725248", "0.6725248", "0.67251694", "0.67251694", "0.6657593", "0.6657593", "0.6653172", "0.6644893", "0.6643015", "0.6636783", "0.66340214", "0.66129106", "0.6604816", "0.6604816", "0.6604816", "0.6604816", "0.65982664", "0.6597305", "0.6597305", "0.6597305", "0.6597305", "0.6586888", "0.6575272", "0.6575272", "0.6573924", "0.6567948", "0.65522516" ]
0.8472737
7
Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy.
public Number getLastUpdatedBy() { return (Number)getAttributeInternal(LASTUPDATEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;", "public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}", "public String getLastupdateby() {\n return lastupdateby;\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that most recently updated the policy\")\n public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public void setLastUpdateBy(String lastUpdateBy) {\r\n\t\tthis.lastUpdateBy = lastUpdateBy;\r\n\t}", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "@Valid\n @JsonProperty(\"lastModifiedBy\")\n public LastModifiedBy getLastModifiedBy();", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public String getLastUpdateAuthor() {\n return (String)content.get(LAST_UPDATE_AUTHOR);\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }" ]
[ "0.8289529", "0.8289529", "0.81180954", "0.80850255", "0.80850255", "0.80765617", "0.7806724", "0.77484137", "0.77484137", "0.76816195", "0.75212276", "0.73277336", "0.73277336", "0.73002106", "0.7297616", "0.720341", "0.7198966", "0.71823305", "0.71823305", "0.71823305", "0.71823305", "0.71696997", "0.71696997", "0.7154813", "0.71253717", "0.71124214", "0.70686483", "0.704297", "0.70392966", "0.6985348", "0.69673294", "0.69501984", "0.6923757", "0.6903931", "0.688558", "0.6885472", "0.6879807", "0.6879807", "0.6879807", "0.6879807", "0.6879807", "0.6879807", "0.6879807", "0.6879807", "0.6879807", "0.685413", "0.6848555", "0.6848555", "0.66768974", "0.6654964", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.66433537", "0.6637288", "0.66140753", "0.66136926", "0.6601367", "0.6468721", "0.6448412", "0.6448412", "0.6409917", "0.6407554", "0.6405714", "0.63801706", "0.63751113", "0.63577485", "0.63238746", "0.6323677", "0.62881804", "0.62799853", "0.6267885", "0.62390924", "0.6234194", "0.62130773", "0.6195303", "0.6167082", "0.6155519", "0.6155519", "0.6155519", "0.6149309", "0.6149309", "0.61477035", "0.61477035", "0.61477035" ]
0.8163357
7
Sets value as the attribute value for LastUpdatedBy.
public void setLastUpdatedBy(Number value) { setAttributeInternal(LASTUPDATEDBY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "void setUpdateby(final U lastModifiedBy);", "public void setModifiedBy(String value) {\r\n setAttributeInternal(MODIFIEDBY, value);\r\n }", "public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }", "public void setUpdatedBy(String updatedBy) {\r\n this.updatedBy = updatedBy == null ? null : updatedBy.trim();\r\n }", "public void setLastUpdateBy(String lastUpdateBy) {\r\n\t\tthis.lastUpdateBy = lastUpdateBy;\r\n\t}", "public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}", "public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\r\n this.lastModifiedBy = lastModifiedBy;\r\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public void setUpdatedBy(String updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\n this.lastModifiedBy = lastModifiedBy;\n }", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public void setLastChangedBy(java.lang.String lastChangedBy) {\n\t\tthis.lastChangedBy = lastChangedBy;\n\t}", "public void setLASTMODIFIEDBY(java.lang.CharSequence value) {\n this.LAST_MODIFIED_BY = value;\n }", "public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(UserItem userItem) {\n this.updatedBy = userItem;\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }", "public void setLastupdateby(String lastupdateby) {\n this.lastupdateby = lastupdateby == null ? null : lastupdateby.trim();\n }", "public void setLastModifiedBy(final LastModifiedBy lastModifiedBy);", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setModifiedBy(Date modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "@Override\n\tpublic void setModifiedBy(java.lang.String ModifiedBy) {\n\t\t_locMstLocation.setModifiedBy(ModifiedBy);\n\t}", "public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }", "public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public void setLastUpdateUser(String lastUpdateUser) {\n this.lastUpdateUser = lastUpdateUser;\n }", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }" ]
[ "0.87341577", "0.87341577", "0.8461907", "0.8369513", "0.80218184", "0.80218184", "0.80218184", "0.77651036", "0.77651036", "0.7380995", "0.72740215", "0.7257864", "0.7239503", "0.7210757", "0.72014415", "0.7199002", "0.7143597", "0.71388453", "0.7132342", "0.71270806", "0.71270806", "0.71270806", "0.71270806", "0.71161073", "0.7104328", "0.7103319", "0.7103319", "0.7103319", "0.70853734", "0.707124", "0.705", "0.70386237", "0.70253396", "0.7007572", "0.700128", "0.6981208", "0.69789994", "0.6965857", "0.69539464", "0.69539464", "0.69131017", "0.69131017", "0.69131017", "0.69131017", "0.6865929", "0.6865929", "0.6819811", "0.6819811", "0.6819811", "0.6819811", "0.6819811", "0.6819811", "0.6819811", "0.6817651", "0.6813255", "0.67862916", "0.6752208", "0.6746903", "0.6738288", "0.6738288", "0.6734454", "0.6734454", "0.67192966", "0.6683406", "0.6679362", "0.66686094", "0.66501546", "0.66229784", "0.66182774", "0.66182774", "0.66182774", "0.66018075", "0.6599588", "0.65937537", "0.65884674", "0.65859777", "0.65859777", "0.652152", "0.65038836", "0.64874893", "0.6479657", "0.6472735", "0.6472735", "0.6472735", "0.6472735", "0.64618593", "0.6454881", "0.6454881", "0.6454881", "0.6454881", "0.6454881", "0.6454881" ]
0.83636934
12
Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate.
public Date getLastUpdateDate() { return (Date)getAttributeInternal(LASTUPDATEDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public long getLastUpdateDate() {\n return (Long)content.get(LAST_UPDATE_DATE);\n }", "public Date getLastUpdateDt() {\n\t\treturn this.lastUpdateDt;\n\t}", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}", "Date getForLastUpdate();", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public java.lang.String getDate_last_update() {\n return date_last_update;\n }", "public Date getLastUpdateDate() {\r\n return lastUpdateDate;\r\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public Date getLastUpdateDate() {\n return lastUpdateDate;\n }", "public Date getLastUpdate() {\r\n return lastUpdate;\r\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Number getLastUpdateLogin()\n {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "public Number getLastUpdateLogin() {\n return (Number) getAttributeInternal(LASTUPDATELOGIN);\n }", "public String getLastUpdatedDateItem() {\n return lastUpdatedDateItem;\n }", "public java.util.Date getLastUpdatedDateTime() {\n return this.lastUpdatedDateTime;\n }", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "public java.util.Calendar getLastUpdateDate() {\n return lastUpdateDate;\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public LocalDateTime getLastUpdateDate() {\n return this.lastUpdateDate;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public final Date getLastModifiedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"lastModifiedAt\" ) );\n\t}", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public long getLastUpdate() {\n return this.lastUpdate;\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public java.util.Date getLastUpdatedTimestamp() {\n return this.lastUpdatedTimestamp;\n }", "public String getMapLastUpdateDt() {\n\t\treturn this.mapLastUpdateDt;\n\t}", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdate() {\n return lastUpdate;\n }", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public String getLastUpdated() {\n return lastUpdated;\n }", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "public void setLastUpdateDate(String lastUpdateDate) {\r\n\t\tthis.lastUpdateDate = lastUpdateDate;\r\n\t}", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "public Date getLastModifiedDate() {\n\t\treturn this.lastModifiedDate;\n\t\t\n\t}", "public Date getLastModifiedDate() {\n return lastModifiedDate != null ? new Date(lastModifiedDate.getTime()) : null;\n }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastStatusChangeDate();", "public String getLastUpdateString() {\r\n return getLastUpdateString(lastUpdatedTime);\r\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public Date getLastRankDate() {\r\n return (Date) getAttributeInternal(LASTRANKDATE);\r\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public java.util.Date getUpdateDate() {\n if (updateDate == null) {\n return null;\n }\n return (java.util.Date)updateDate.clone();\n }", "@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getLastUpdated() {\n return lastUpdated;\n }", "public Date getFlastupdatetime() {\n return flastupdatetime;\n }", "public Integer getLastUpdate() {\n return lastUpdate;\n }", "public void setLastUpdateDate(Date lastUpdateDate) {\r\n this.lastUpdateDate = lastUpdateDate;\r\n }", "public Date getLastModifiedDate() {\n\n\t\tDate lastTransactionDate = null;\n\t\tfor ( ErpTransactionModel transaction : sale.getTransactions() ) {\n\t\t\tif (lastTransactionDate == null || lastTransactionDate.before(transaction.getTransactionDate())) {\n\t\t\t\tlastTransactionDate = transaction.getTransactionDate();\n\t\t\t}\n\t\t}\n\t\treturn lastTransactionDate;\n\t}", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "Date getUpdatedDate();", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Instant getLastUpdateTimestamp() {\n return lastUpdateTimestamp;\n }", "public void setLastUpdateDate(Date lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }" ]
[ "0.7708077", "0.76208985", "0.7546261", "0.7546261", "0.7458882", "0.7252211", "0.71389014", "0.7036422", "0.7018081", "0.7013991", "0.699907", "0.699907", "0.699907", "0.699907", "0.699907", "0.699907", "0.699907", "0.6972357", "0.6960353", "0.69556934", "0.6953703", "0.6953703", "0.69336724", "0.6927392", "0.6926235", "0.69145006", "0.69145006", "0.68243706", "0.6778913", "0.6778913", "0.6778913", "0.6701698", "0.66625476", "0.66625476", "0.66625476", "0.6657393", "0.6640748", "0.66013986", "0.6601194", "0.65791416", "0.6565958", "0.6560001", "0.6555186", "0.6554478", "0.6485235", "0.6472875", "0.64705855", "0.64556664", "0.6437406", "0.6428833", "0.6415207", "0.63881934", "0.637716", "0.63456315", "0.6344438", "0.6344438", "0.6292374", "0.6292041", "0.62771475", "0.62771475", "0.625438", "0.6209704", "0.6198498", "0.6194587", "0.6194587", "0.6194587", "0.6194587", "0.6194587", "0.6194587", "0.6194587", "0.6194587", "0.6187414", "0.6171257", "0.612856", "0.6123635", "0.6121539", "0.6120545", "0.61160594", "0.60912824", "0.6079291", "0.6077339", "0.6065366", "0.60635537", "0.60622257", "0.6060217", "0.6058858", "0.6055987", "0.6041242", "0.6040006", "0.6038729", "0.6025164", "0.6024105", "0.60113484", "0.60069185" ]
0.7621662
6
Sets value as the attribute value for LastUpdateDate.
public void setLastUpdateDate(Date value) { setAttributeInternal(LASTUPDATEDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }", "public void setLastUpdateDate(long lastUpdateDate) {\n content.put(LAST_UPDATE_DATE, lastUpdateDate);\n }", "public void setLastUpdateDate(Date lastUpdateDate) {\r\n this.lastUpdateDate = lastUpdateDate;\r\n }", "public void setLastUpdateDate(Date lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }", "public void setUpdatedDate(Date value) {\n setAttributeInternal(UPDATEDDATE, value);\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "private void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setLastUpdateDate(String lastUpdateDate) {\r\n\t\tthis.lastUpdateDate = lastUpdateDate;\r\n\t}", "public void setLastUpdatedAt(Timestamp value) {\n setAttributeInternal(LASTUPDATEDAT, value);\n }", "public void setUpdatedAt(final Date value)\n\t{\n\t\tsetUpdatedAt( getSession().getSessionContext(), value );\n\t}", "public void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "void setLastUpdatedTime();", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public void setLastUpdated(final Date date) {\n this.lastUpdated = date;\n }", "void setUpdatedDate(Date updatedDate);", "public void setLastStatusChangeDate(java.util.Date value);", "public void setLastUpdateDate(LocalDateTime lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }", "public void setLastUpdateDate(java.util.Calendar lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setLastUpdateDt(Date lastUpdateDt) {\n\t\tthis.lastUpdateDt = lastUpdateDt;\n\t}", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public void setLastUpdateLogin(Number value)\n {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "void setDateUpdated(final Date dateUpdated);", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public void setLastUpdateTime(Date lastUpdateTime) {\r\n this.lastUpdateTime = lastUpdateTime;\r\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setUpdatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, UPDATEDAT,value);\n\t}", "public void setLastUpdated(long lastUpdated) {\n\t\tassert lastUpdated > this.lastUpdated; \n\t\tthis.lastUpdated = lastUpdated;\n\t}", "public void setUpdateDatetime(Date updateDatetime);", "void setLastLogin(Date lastLogin);", "public void setUpdateDate(java.util.Date newVal) {\n if ((newVal != null && this.updateDate != null && (newVal.compareTo(this.updateDate) == 0)) || \n (newVal == null && this.updateDate == null && updateDate_is_initialized)) {\n return; \n } \n try {\n this.updateDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n updateDate_is_modified = true; \n updateDate_is_initialized = true; \n }", "void setLastAccessDate();", "public void setLastUpdatedAt(java.util.Date lastUpdatedAt) {\n this.lastUpdatedAt = lastUpdatedAt;\n }", "public void setLastUpdate(long lastUpdate) {\n this.lastUpdate = lastUpdate;\n }", "public void setLastUpdateTime(Date lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }", "public void setLastUpdateTime(Date lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdatedOn(Date updatedOn);", "public void setUpdateDate(Date updateDate) {\r\n this.updateDate = updateDate;\r\n }", "public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }", "public void setLastUpdate(String lastUpdate) {\n this.lastUpdate = lastUpdate;\n }", "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setDate_last_update(java.lang.String date_last_update) {\n this.date_last_update = date_last_update;\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setFlastupdatetime(Date flastupdatetime) {\n this.flastupdatetime = flastupdatetime;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public Date getLastUpdateDate() {\r\n return lastUpdateDate;\r\n }", "public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }", "public void setUpdated(Date updated) {\r\n\t\tthis.updated = updated;\r\n\t}", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setLastSaved(Date lastSaved)\r\n {\r\n m_lastSaved = lastSaved;\r\n }", "public void setLastUpdated(String lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public void setUpdatedDate(Date date) {\n\t\tthis.updatedDate=date;\r\n\t}" ]
[ "0.8651681", "0.82767385", "0.75954485", "0.75854045", "0.7572334", "0.75317854", "0.7446498", "0.7439726", "0.7439726", "0.7439726", "0.7304719", "0.7261638", "0.72418976", "0.72418976", "0.7232949", "0.7194033", "0.71911657", "0.71681994", "0.7128748", "0.71220624", "0.7050812", "0.70070463", "0.70060945", "0.7004702", "0.69717866", "0.69616216", "0.69616216", "0.69616216", "0.6957067", "0.69415313", "0.6931997", "0.6931997", "0.6931997", "0.6931997", "0.6931997", "0.6931997", "0.6931997", "0.69196016", "0.69196016", "0.6890244", "0.68470734", "0.6843626", "0.6757981", "0.67479867", "0.67479867", "0.67479867", "0.67479867", "0.67155063", "0.67109793", "0.670058", "0.6695255", "0.6678218", "0.6678052", "0.66704375", "0.6667536", "0.6661358", "0.6661358", "0.6655665", "0.6655665", "0.66160697", "0.66070175", "0.65936035", "0.65876126", "0.6581462", "0.6574163", "0.6574163", "0.6547663", "0.6540881", "0.6540881", "0.653516", "0.6532375", "0.6508825", "0.6508825", "0.6508825", "0.6508825", "0.6508825", "0.6508825", "0.6508825", "0.6508825", "0.6508825", "0.6495656", "0.64946634", "0.64946634", "0.6491972", "0.6489562", "0.6489562", "0.64482516", "0.64482516", "0.64470565", "0.6443446", "0.64270765", "0.6424967", "0.6422891" ]
0.85064274
7
Gets the attribute value for Lot, using the alias name Lot.
public String getLot() { return (String)getAttributeInternal(LOT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }", "public Number getLargo()\n {\n return (Number)getAttributeInternal(LARGO);\n }", "java.lang.String getAttribute();", "Attribute getAttribute();", "String getAttribute();", "public Long getLongAttribute();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "private long getLongAttribute(Element element, String tagName, String attributeName)\n {\n try\n {\n return Long.parseLong(getAttribute(element,tagName,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0L;\n }\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public Object getAttribute(String name);", "private long getLongAttribute(Element element, String attributeName)\n {\n try\n {\n return Long.parseLong(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0L;\n }\n }", "public String getLid ()\n {\n return this.lid;\n }", "public String getAttribute(String name);", "public TLAttribute getAttribute(String attributeName);", "Object getAttribute(int attribute);", "public String getLnt() {\n return lnt;\n }", "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "public String getLid()\n {\n return lid;\n }", "public double getL() {\n return l;\n }", "public String getLid() {\n return lid;\n }", "public Long getLong(String attr) {\n return (Long) super.get(attr);\n }", "public String getLot()\n {\n return lot;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getLotName() {\n\t\treturn mLotName;\n\t}", "String getLo();", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }", "public Number getProdLId() {\n return (Number)getAttributeInternal(PRODLID);\n }", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public long getLA() {\n return la;\n }", "public Object getProperty(String attName);", "public String getAttribute(String name) {\n if (_lastTag == null)\n return null;\n return _lastTag.getAttribute(name);\n }", "public String getLOAI()\n {\n return this.LOAI;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "public static Object getAttribute(String name) {\n\t\treturn GPortalExecutionContext.getRequest().getSessionContext().getAttribute(name);\n\t}", "public HbAttributeInternal getAttribute(String name);", "public long getAiVariable(String aiVariable) {\n return _aiVariables.get(aiVariable);\n }", "public String getLtype() {\n return (String) get(2);\n }", "public String getModelXMLAttribute(String attrib_name, String tagname) {\n\t\tassert attrib_name != null;\n\t\tassert tagname != null;\n\n\t\tElement e = getModelXMLElement(tagname);\n\t\treturn (e != null) ? getNodeAttributeValue(e, attrib_name) : null;\n\t}", "public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "Aliasing getVariable();", "public final String aoy() {\n return this.label;\n }", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String getAttribute() {\n return attribute;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public Number getValuePotongan() {\n return (Number)getAttributeInternal(VALUEPOTONGAN);\n }", "public long get() {\n\t\t\treturn get(1);\n\t\t}", "public Longitude get_long()\n {\n\treturn this._long;\n }", "public int getLattine() {\n\t\treturn nLattine;\n\t}", "public final long getLong(final String tagToGet) {\n try {\n return Long.parseLong(getStr(tagToGet));\n } catch (final Exception t) {\n return 0;\n }\n }", "public String getLrry() {\n return lrry;\n }", "public String getlName() {\n return lName;\n }", "public String getLName() {\n return LName;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getBusinessUnitGl() {\n return (String) getAttributeInternal(BUSINESSUNITGL);\n }", "public double get (String name) {\n return this.lookup(name);\n }", "private String loadAttributeName() {\n return parseMapField().getKey();\n }", "public String getTipePotongan() {\n return (String)getAttributeInternal(TIPEPOTONGAN);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public int getAttribute() {\n return Attribute;\n }", "public String getAttribute(final String attributeLocator);", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public long getValue();", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "public String getAlias() {\n return alias;\n }", "public static LanguageAssign getOggettoLingua() {\n\t\treturn objlingua;\n\t}", "com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAlias() {\n return this.key.substring(this.key.lastIndexOf(\".\") + 1);\n }", "public double get(CANTalon talon) {\n\t\treturn talon.get();\n\t}", "public java.lang.String getOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getAlias() {\n return alias;\n }", "public String getAlias() {\n return alias;\n }", "public String getAlias() {\r\n return getAlias(this.getClass());\r\n }", "@Override\n public int glGetAttribLocation(final int program, final String name) {\n return GL20.glGetAttribLocation(program, name + \"\\0\");\n }", "public String getAlias() {\n return alias;\n }", "public java.lang.String get__OID() throws com.intersys.objects.CacheException {\n com.intersys.cache.Dataholder dh = mInternal.getProperty(\"%%OID\",false);\n return dh.getString();\n }", "public String getName(long l) throws SQLException {\n\t\tString[] columns = new String[] { KEY_ROWID, KEY_NAME, KEY_HOTNESS };\n\t\tCursor c = ourDatabase.query(DATABASE_TABLE, columns, KEY_ROWID + \"=\"\n\t\t\t\t+ l, null, null, null, null);\n\t\tif (c != null) {\n\t\t\tc.moveToFirst();\n\t\t\tString name = c.getString(1);\n\t\t\treturn name;\n\t\t}\n\t\treturn null;\n\t}", "public Object getAttribute(Object key);", "String attributeToGetter(String name);", "public static long getAttributeLong(Element elem, String key, long dft)\n {\n return StringTools.parseLong(XMLTools.getAttribute(elem,key,null,false), dft);\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public Number getOridestId() {\n return (Number)getAttributeInternal(ORIDESTID);\n }", "public static String getProperty(String alias, String def)\r\n\t{\r\n\t\talias = processalias(alias);\r\n\r\n\t\tif(dynoption != null && dynoption.containsKey(alias))\r\n\t\t{\t\r\n\t\t\tString val = dynoption.get(alias);\r\n\t\t\t\r\n\t\t\tif(val == null && def != null)\r\n\t\t\t\treturn def;\r\n\t\t\telse\r\n\t\t\t\treturn val;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(cmd != null && cmd.hasOption(alias))\r\n\t\t{\r\n\t\t\treturn cmd.getOptionValue(alias);\r\n\t\t}\r\n\t\telse if(config != null)\r\n\t\t{\r\n\t\t\treturn config.getString(alias, def);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn def;\r\n\t\t}\r\n\t}", "String getLongName();", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }" ]
[ "0.63258797", "0.61129826", "0.6065549", "0.5809115", "0.5645454", "0.56317353", "0.560614", "0.556017", "0.5483397", "0.5483397", "0.5483397", "0.5468736", "0.5441459", "0.5436502", "0.54148763", "0.54111624", "0.540392", "0.53830355", "0.5381408", "0.53537124", "0.535138", "0.53428507", "0.5331988", "0.5319043", "0.5303598", "0.5299565", "0.5263671", "0.52539235", "0.52399474", "0.522722", "0.52244294", "0.5201617", "0.5195699", "0.5193614", "0.5187288", "0.51629806", "0.51592624", "0.5149172", "0.51461405", "0.51433873", "0.51214147", "0.50943583", "0.50871545", "0.50722414", "0.50696856", "0.5052373", "0.50226945", "0.5022384", "0.50194436", "0.50173223", "0.5014028", "0.50052214", "0.49935448", "0.49929336", "0.49828675", "0.49604282", "0.49595734", "0.49458936", "0.49408725", "0.49369615", "0.49366298", "0.49291316", "0.49264318", "0.49198532", "0.49110103", "0.49095058", "0.4906046", "0.49059805", "0.48938408", "0.48906893", "0.48865086", "0.48821568", "0.48806152", "0.48806152", "0.48737323", "0.48668894", "0.4860942", "0.48545697", "0.4852855", "0.48502722", "0.48345998", "0.48345998", "0.48342022", "0.48337796", "0.4829564", "0.48281217", "0.48281217", "0.48207104", "0.48115215", "0.4810205", "0.4798718", "0.47986808", "0.47926033", "0.4783125", "0.47807848", "0.47788942", "0.47781608", "0.4774049", "0.47720906", "0.47650433" ]
0.6886144
0
Sets value as the attribute value for Lot.
public void setLot(String value) { setAttributeInternal(LOT, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLargo(Number value)\n {\n setAttributeInternal(LARGO, value);\n }", "public void setValue(long value) {\n\t this.value = value;\n\t }", "public void setL(double value) {\n this.l = value;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setLA(long value) {\n this.la = value;\n }", "public void setValue(Object value) { this.value = value; }", "@Override\n public final void setValue(Long value) {\n setValue(value, true);\n }", "public void setLtype(String value) {\n set(2, value);\n }", "public void setData(long value) {\n this.data = value;\n }", "public void setValue(Value value) {\n this.value = value;\n }", "public void set(long value) {\n\t\t\tset(1, value);\n\t\t}", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void set(double val);", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setData(T val) {\r\n\t\tthis.val = val;\r\n\t}", "void set(long newValue);", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "ISlot set(IStrongSlot target, LuaValue value);", "public Builder setL(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n l_ = value;\n onChanged();\n return this;\n }", "void setValue(T value) throws YangException;", "@Override\n\tpublic void setValue(String path, long value) {\n\t\tsetValue(path, new Long(value));\n\t}", "public void setValue(Object value) {\n this.value = value;\n }", "public void setValue(final Object value) { _value = value; }", "public void setValue(Object o){\n \tthis.value = o;\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setValue(T value) {\n this.value = value;\n }", "public void setValue(A value) {this.value = value; }", "public void setAttrib(String name, String value);", "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}", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public abstract void setLOD(int lod);", "public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }", "private void setValue(double value) {\n this.value = value;\n }", "public void setValue(double val) {\n this.val = val;\n }", "@Override\n\tpublic void setLord(Lord l) {\n\t\t\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setValue(Object val);", "public void set(final long timeValue) {\n stamp = timeValue;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setLB(LivingBeing lb){\n\t\tthis.lb=lb; \n\t}", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "public Element set(Element value) {\n if (value instanceof SymmetricLongZrElement)\n this.value = ((SymmetricLongZrElement) value).value;\n else\n this.value = value.toBigInteger().longValue();\n// return this;\n return mod();\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "public abstract void setValue(ELContext context, Object value);", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "public void setValue(Object value);", "public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(double val) {\r\n\t\tthis.worth = val;\r\n\t}", "public void setValue(double newvalue){\n value = newvalue;\n }", "public Builder setValue(long value) {\n \n value_ = value;\n onChanged();\n return this;\n }", "private void setLit(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setLit(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public void setValue(MyDouble val) {\n this.val = val.getValue();\n }", "protected abstract void setContextAttribute(String name, Object value);", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setValue(double value) {\n\t\tthis.value = value;\n\t}", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setX(int x) { loc.x = x; }", "public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);\r\n }\r\n target.setStringValue(oid);\r\n }\r\n }", "public void setAttribute(String name, Object value);", "public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }", "public void setV(long value) {\n this.v = value;\n }", "public void setTallaId(Number value) {\n setAttributeInternal(TALLAID, value);\n }", "public void setLargo(double largo) {\r\n\t\tthis.largo = largo;\r\n\t}", "public void setCurrentAlloment(int value) {\n this.currentAlloment = value;\n }", "public void setValue(int val)\r\n {\r\n value = val;\r\n }", "public void setValue (String Value);", "public void setValue(S s) { value = s; }", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\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 void setProdLId(Number value) {\n setAttributeInternal(PRODLID, value);\n }", "void setValue(Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setValue(T value);", "void setValue(T value);", "void setValue(double value);", "public void setValuePotongan(Number value) {\n setAttributeInternal(VALUEPOTONGAN, value);\n }", "public void setLongValue(long value) {\n setValueIndex(getPool().findLongEntry(value, true));\n }", "public void setValue(final V value) {\n this.value = value;\n }", "private void setX(long value) {\n bitField0_ |= 0x00000001;\n x_ = value;\n }", "public void setValue(Number value) {\n this.value = value;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}" ]
[ "0.66301435", "0.648954", "0.64420843", "0.643831", "0.6096842", "0.6027347", "0.6017092", "0.5994129", "0.59358925", "0.59237194", "0.590727", "0.58970934", "0.5875809", "0.58680004", "0.58673006", "0.58477396", "0.58405316", "0.58387953", "0.58340275", "0.5830869", "0.58079565", "0.58042926", "0.5789435", "0.5775887", "0.57751584", "0.576195", "0.57613903", "0.5756861", "0.57513463", "0.5736115", "0.5731463", "0.57281476", "0.57264423", "0.57264423", "0.5725453", "0.5719616", "0.57069683", "0.5703366", "0.5696216", "0.56894785", "0.5674474", "0.5668547", "0.56540287", "0.5653848", "0.5653848", "0.5653848", "0.56401056", "0.5639589", "0.5626232", "0.56211686", "0.56195325", "0.5618983", "0.5607857", "0.5604111", "0.5604013", "0.55961657", "0.5593746", "0.5593675", "0.55899113", "0.5577341", "0.557525", "0.5572555", "0.5569051", "0.55542123", "0.5552975", "0.55511606", "0.55498195", "0.55395716", "0.55106777", "0.5510264", "0.55025536", "0.55017227", "0.5473771", "0.5472951", "0.54600805", "0.54463744", "0.5441931", "0.543974", "0.54389197", "0.5432194", "0.54321015", "0.5429846", "0.5429846", "0.5429846", "0.5429846", "0.542434", "0.5423974", "0.5422046", "0.5416882", "0.54164314", "0.54164314", "0.54121006", "0.54121006", "0.54085267", "0.53992885", "0.53969955", "0.5396902", "0.5393751", "0.53933626", "0.5390937" ]
0.6817597
0
Gets the attribute value for Wash, using the alias name Wash.
public String getWash() { return (String)getAttributeInternal(WASH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWashType() {\n return (String) getAttributeInternal(WASHTYPE);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "String getAttribute();", "java.lang.String getAttribute();", "public String getAttribute(String name);", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getWashingPlant() {\n return (String) getAttributeInternal(WASHINGPLANT);\n }", "public Object getAttribute(String name);", "Object getAttribute(int attribute);", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "Attribute getAttribute();", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public Object getProperty(String attName);", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public HbAttributeInternal getAttribute(String name);", "Object getAttribute(String key);", "Object getAttribute(String key);", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public Attribute fetchAttribute(String key, String value);", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public double get (String name) {\n return this.lookup(name);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getWashNew() {\n return (String) getAttributeInternal(WASHNEW);\n }", "String attributeToGetter(String name);", "public String getAttributeValue(final String name) {\n return getAttributeValue(name, \"\");\n }", "public String getValue(String name){\n if(!kchain.containsKey(name))return akargs.get(name);\n else return kchain.get(name).toString();\n }", "public String getAttributeValue(WebDriver screenName, String ObjectxPath, String attributeName, String Element_Name)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tWebElement inputText = screenName.findElement(By.xpath(ObjectxPath));\n\t\t\tExtent_Reporting.Log_Pass(Element_Name + \" exist\", Element_Name + \" has \" + inputText.getText());\n\t\t\treturn inputText.getAttribute(attributeName);\n\t\t} catch (Throwable t) {\n\t\t\tExtent_Reporting.Log_Fail(Element_Name + \" does not Exist\", Element_Name + \" does not Exist\", screenName);\n\t\t\tt.printStackTrace();\n\t\t\tthrow new Exception(\"Element Not Present\");\n\t\t}\n\t}", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttributeValue(By locator, String attributeName) {\n \t\t\t\n \t\t\tWebElement element = driver.findElement(locator);\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public void setWash(String value) {\n setAttributeInternal(WASH, value);\n }", "private String getAttribute(Element element, String attributeName)\n {\n String value = \"\";\n\n Attr attribute = element.getAttributeNode(attributeName);\n if (attribute != null)\n {\n value = attribute.getValue();\n }\n\n return value;\n }", "String lookupMashFromName(String name);", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public java.lang.String getWpa(int index) {\n return wpa_.get(index);\n }", "public java.lang.String getWpa(int index) {\n return wpa_.get(index);\n }", "public double getAttribute(ExtendedStatistic statistic) {\n try {\n return cacheStatisticManager.getAttribute(statistic);\n } catch (ExtendedStatisticNotFoundException e) {\n log.unableToGetStatistic(statistic, e);\n }\n return 0;\n }", "java.lang.String getWpa(int index);", "public Object getAttribute(Object key);", "int get(String w);", "public String getHover() { return (String)get(\"Hover\"); }", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "public static Object getAttribute(String name) {\n\t\treturn GPortalExecutionContext.getRequest().getSessionContext().getAttribute(name);\n\t}", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getAttributeValue(WebElement element, String attributeName) {\n \t\t\t\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "public String getValue(String uri, String localName) {\n/* 208 */ Node a = this.m_attrs.getNamedItemNS(uri, localName);\n/* 209 */ return (a == null) ? null : a.getNodeValue();\n/* */ }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "public int getShield() {\n return base.getShield();\n }", "Pair<String, String> getAdditionalAttribute();", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAnalyticsValue(String analyticsProperty) { \n\t\t \t\n\t String analyticsObject= \"_hddata\";\n\t Object propertyValue;\n\t String jsProperty = analyticsObject + \".\"\n\t + analyticsProperty + \";\";\n\t\n\t JavascriptExecutor js = (JavascriptExecutor) driver;\n\t propertyValue = js.executeScript(\"return \" + jsProperty);\n\t\n\t // System.out.println(\"Property returned is : \" + propertyValue);\n\t if (propertyValue != null)\n\t return propertyValue.toString().trim();\n\t else\n\t return \"null\";\n\t}", "public String getAttribute() {\n return attribute;\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "String getAttributeName(Object attr);", "public Short getShortAttribute();", "@NonNull\n String getNecessaryAttribute();", "public String getAttribute(final String attributeLocator);", "io.dstore.values.StringValue getCampaignName();", "public String getKeyBuyItemName() {\r\n return getKeyShootName();\r\n }", "String getAttributeStringValue(Object attr);", "public org.apache.xmlbeans.XmlAnySimpleType getStationName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "private String getXmlAttribute(XmlResourceParser xml, String name) {\n\t\tint resId = xml.getAttributeResourceValue(null, name, 0);\n\t\tif (resId == 0) {\n\t\t\treturn xml.getAttributeValue(null, name);\n\t\t} else {\n\t\t\treturn getString(resId);\n\t\t}\n\t}", "public static String getAttribute(WebElement element, String name) {\n\t\treturn element.getAttribute(name);\n\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getRollupValue() {\r\n return getAttributeAsString(\"rollupValue\");\r\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "String getControllingAttributeName();", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public java.lang.String getSW() {\r\n return localSW;\r\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public static String getAttributeValue(NodeInfo element, String uri, String localName) {\n int fingerprint = element.getNamePool().allocate(\"\", uri, localName);\n return element.getAttributeValue(fingerprint);\n }", "public String getAttribute(String attribute){\n return getWebElement().getAttribute(attribute);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public static String getAttribute(Element elem, String key, String dft)\n {\n return XMLTools.getAttribute(elem, key, dft, false);\n }", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "String get(String kind, String name, String property);", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public static String getUserAttribute(String username, String attribute) {\n String attributeValue = null;\n\n try {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n User user = directoryManager.getUserByUsername(username);\n\n if (user != null) {\n //convert first character to upper case\n char firstChar = attribute.charAt(0);\n firstChar = Character.toUpperCase(firstChar);\n attribute = firstChar + attribute.substring(1, attribute.length());\n\n Method method = User.class.getDeclaredMethod(\"get\" + attribute, new Class[]{});\n String returnResult = (String) method.invoke(user, new Object[]{});\n if (returnResult == null || attribute.equals(\"Password\")) {\n returnResult = \"\";\n }\n\n attributeValue = returnResult;\n }\n } catch (Exception e) {\n LogUtil.error(WorkflowUtil.class.getName(), e, \"Error retrieving user attribute \" + attribute);\n }\n return attributeValue;\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 getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();", "public String getValue_click_My_Rewards_Link(){\r\n\t\treturn click_My_Rewards_Link.getAttribute(\"value\");\r\n\t}", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getValue_click_Fuel_Rewards_Link(){\r\n\t\treturn click_Fuel_Rewards_Link.getAttribute(\"value\");\r\n\t}", "public String getAttributeValue(By elementDefinition, String attributeName) {\n String attributeValue = null;\n try {\n info(\"Retrieving attribute value for attribute \" + attributeName + \" for the element :: \" +\n elementDefinition);\n waitForVisibility(elementDefinition);\n attributeValue = findElement(elementDefinition).getAttribute(attributeName);\n return attributeValue;\n } catch (Exception e) {\n error(\"Exception occurred while retrieving value of \" + attributeName + \" for the element with \" +\n \"definition \" + elementDefinition);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(Throwables.getStackTraceAsString(e));\n }\n }", "public static String getAttributeValue(String attr_string, String attr_name)\n {\n StringTokenizer st = new StringTokenizer(attr_string, \"^\");\n\n attr_name += \"=\";\n while (st.hasMoreTokens())\n {\n String str = st.nextToken();\n if (str.startsWith(attr_name))\n {\n return str.substring(attr_name.length());\n }\n }\n return \"\";\n }", "@Override\n public String getSecuredElementName() {\n return Preference.PROPERTY_PROPERTY + \"-\" + Preference.PROPERTY_ATTRIBUTE;\n }" ]
[ "0.6099466", "0.5629772", "0.56166005", "0.5608205", "0.56018746", "0.55955106", "0.55418414", "0.55418414", "0.55418414", "0.5529642", "0.5494563", "0.5416765", "0.5380591", "0.5377184", "0.5364675", "0.53482693", "0.52398354", "0.5239218", "0.5215748", "0.52047604", "0.52040255", "0.52040255", "0.51977473", "0.5197121", "0.5156896", "0.5152168", "0.50884545", "0.50831634", "0.5034897", "0.50336003", "0.503315", "0.50226504", "0.50199395", "0.501849", "0.4979647", "0.49771824", "0.49631134", "0.4956947", "0.4956775", "0.49339235", "0.4933311", "0.49252746", "0.4914042", "0.4911844", "0.49070445", "0.48973653", "0.4883004", "0.4881385", "0.48633388", "0.4861875", "0.48616996", "0.4849677", "0.48488712", "0.4844965", "0.48436478", "0.48417243", "0.48395658", "0.48377106", "0.48322585", "0.48311782", "0.48228723", "0.48194194", "0.48161054", "0.48124793", "0.4808432", "0.48077282", "0.4787105", "0.47846308", "0.4782872", "0.4781311", "0.4776647", "0.4766728", "0.47661093", "0.47588244", "0.47551075", "0.47489002", "0.47464192", "0.4740911", "0.4740484", "0.4738055", "0.47338212", "0.47325674", "0.47294018", "0.47258928", "0.47258595", "0.47251987", "0.4721733", "0.47147647", "0.4703618", "0.4703618", "0.47014418", "0.46996757", "0.46970767", "0.46935892", "0.46889046", "0.46881744", "0.4684623", "0.46804273", "0.4679609", "0.46773696" ]
0.7062142
0
Sets value as the attribute value for Wash.
public void setWash(String value) { setAttributeInternal(WASH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWashType(String value) {\n setAttributeInternal(WASHTYPE, value);\n }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setValue(double val) {\r\n\t\tthis.worth = val;\r\n\t}", "public void setWashingPlant(String value) {\n setAttributeInternal(WASHINGPLANT, value);\n }", "public Builder setW(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n w_ = value;\n onChanged();\n return this;\n }", "public void setWashNew(String value) {\n setAttributeInternal(WASHNEW, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void apply() { writable.setValue(value); }", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setValue(String value)\n {\n this.value = value;\n }", "public void setAttributeValue(final String name, final String value) {\n final Attribute attribute = manifestElement.getAttribute(name);\n if (attribute == null) {\n manifestElement.addAttribute(new Attribute(name, value));\n } else {\n attribute.setAttributeValue(value);\n }\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue (String Value);", "void setValue(String value);", "void setValue(String value);", "public void setAttribute(String name, Object value);", "public void setValue(String value) {\n set (value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setWeight(String newValue);", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "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 setValue(java.lang.String value)\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(VALUE$12);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$12);\n }\n target.setStringValue(value);\n }\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "public void setValue(Object value) { this.value = value; }", "public void xsetValue(org.apache.xmlbeans.XmlString value)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUE$12);\n }\n target.set(value);\n }\n }", "public Builder setW(float value) {\n \n w_ = value;\n onChanged();\n return this;\n }", "public void setValue(String value)\n {\n _value = setNonEmptyValueAttribute(value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "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 synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public static ItemStack setAttribute(ItemStack item, double value, Attribute attribute) {\n return setAttribute(item, value, EquipmentSlot.HAND, attribute);\n }", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "void setValue(final String value);", "public void setValue(Object value) {\n this.value = value;\n }", "void setProperty(String attribute, String value);", "void setElementValue(SetElementValue cmd);", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public synchronized void setAttributeValue(@Nonnull final String value) {\n checkSetterPreconditions();\n attributeValue = Constraint.isNotNull(value, \"attributeValue must not be null\");\n }", "public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public String setValue(String eleValue) {\r\n setRate(eleValue);\r\n return null;\r\n }", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void setWaist(double waist) {\n this.waist = waist;\n }", "public void setValue(Value value) {\n this.value = value;\n }", "public void setValue(Object value);", "public Builder setHat(int value) {\n bitField0_ |= 0x00000020;\n hat_ = value;\n onChanged();\n return this;\n }", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "void setValue(java.lang.String value);", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setValue(final String value)\n {\n this.value = value;\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\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}", "public void setAttribute(Object key, Object value);", "public void setValue(final boolean updateClient, final String value) {\n super.setAttributeValue(updateClient, value);\n }", "void setInt(int attributeValue);", "public void setAttribute(String key, String value) {\n attributes.put(key, value);\n }", "void setString(String attributeValue);", "public static void attribute(String name, Word value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void SetWealth(int w)\n{\n\twealth=w;\n}", "public Element set(Element value) {\n if (value instanceof SymmetricLongZrElement)\n this.value = ((SymmetricLongZrElement) value).value;\n else\n this.value = value.toBigInteger().longValue();\n// return this;\n return mod();\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }" ]
[ "0.66548026", "0.665342", "0.62500256", "0.60420376", "0.5978866", "0.5966147", "0.5956934", "0.5924637", "0.59098077", "0.5905607", "0.5898818", "0.5898818", "0.5898818", "0.5898818", "0.58584684", "0.5854877", "0.58483195", "0.5819109", "0.5814481", "0.58137214", "0.57841533", "0.57772523", "0.5776846", "0.5776846", "0.5776846", "0.5776846", "0.5776846", "0.576817", "0.57678133", "0.57678133", "0.5755171", "0.57531005", "0.57472026", "0.57472026", "0.57472026", "0.57472026", "0.5727181", "0.5727181", "0.5727181", "0.5727181", "0.5727181", "0.5715891", "0.5715131", "0.5710455", "0.5700147", "0.56924033", "0.5686432", "0.5681951", "0.56694275", "0.5663478", "0.5657879", "0.5656033", "0.5656033", "0.56439406", "0.5638977", "0.56384885", "0.56350946", "0.5633319", "0.5627946", "0.5623247", "0.56172836", "0.56172836", "0.56172836", "0.56172836", "0.56098306", "0.56067234", "0.55828416", "0.55778176", "0.557167", "0.55702364", "0.5569907", "0.5556758", "0.55377346", "0.5537592", "0.55276304", "0.55255824", "0.5525565", "0.5524134", "0.55211306", "0.55179906", "0.5515253", "0.5510909", "0.5505569", "0.5505128", "0.5503182", "0.5493093", "0.5492281", "0.5492281", "0.5492281", "0.54910046", "0.54897624", "0.54896927", "0.5482506", "0.54822385", "0.54814565", "0.5480074", "0.5479837", "0.54761636", "0.54745626", "0.54745626" ]
0.7905921
0
Gets the attribute value for ArticleNo, using the alias name ArticleNo.
public String getArticleNo() { return (String)getAttributeInternal(ARTICLENO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNtnNo() {\n return (String)getAttributeInternal(NTNNO);\n }", "public Number getMemArtId() {\n return (Number) getAttributeInternal(MEMARTID);\n }", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public DBSequence getArtId() {\n return (DBSequence)getAttributeInternal(ARTID);\n }", "public Number getNumber(String attr) {\n return (Number) super.get(attr);\n }", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }", "public String getArticle() {\t\t\n\t\tif(this.article == null)\n\t\t\tthis.setArticle();\n\t\treturn this.article;\n\t}", "public String getEmployeeNumber() {\n return (String)getAttributeInternal(EMPLOYEENUMBER);\n }", "public String getprop_no() {\n return (String)getNamedWhereClauseParam(\"prop_no\");\n }", "Object getAttribute(int attribute);", "public long getArticleId() {\n\t\treturn this.articleId;\r\n\t}", "public int getAno(){\n return ano;\n }", "public String getOcNo() {\n return (String)getAttributeInternal(OCNO);\n }", "public int getAno() {\n\t\t\treturn ano;\n\t\t}", "public String getNo() {\n return no;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public static com.matisse.reflect.MtAttribute getNum_empAttribute(com.matisse.MtDatabase db) {\n return (com.matisse.reflect.MtAttribute)db.getCachedObject(num_empCID);\n }", "public Object getProperty(String attName);", "public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }", "java.lang.String getAttribute();", "public int getAttribute() {\n return Attribute;\n }", "public String getObjidValue(final String xml) throws Exception {\r\n\r\n Matcher m = PATTERN_OBJID_ATTRIBUTE.matcher(xml);\r\n if (m.find()) {\r\n return m.group(1);\r\n }\r\n else {\r\n fail(\"Missing objid in provided xml data\");\r\n return null;\r\n }\r\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getNumber() {\n return (String) get(\"number\");\n }", "public IdentifierDt getAccessionNoElement() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}", "public String getDocumentNo() \n{\nreturn (String)get_Value(\"DocumentNo\");\n}", "@Override\n\tpublic Employee getEmpOnId(int empNo) throws EmpException {\n\t\treturn dao.getEmpOnId(empNo);\n\t}", "public void setArticleNo(String value) {\n setAttributeInternal(ARTICLENO, value);\n }", "public void setArticleNo(String value) {\n setAttributeInternal(ARTICLENO, value);\n }", "private int entityValue(String name)\n\t{\n\t\treturn map.value(name);\n\t}", "public int getNo() {\n return no;\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttributeValue(By elementDefinition, String attributeName) {\n String attributeValue = null;\n try {\n info(\"Retrieving attribute value for attribute \" + attributeName + \" for the element :: \" +\n elementDefinition);\n waitForVisibility(elementDefinition);\n attributeValue = findElement(elementDefinition).getAttribute(attributeName);\n return attributeValue;\n } catch (Exception e) {\n error(\"Exception occurred while retrieving value of \" + attributeName + \" for the element with \" +\n \"definition \" + elementDefinition);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(Throwables.getStackTraceAsString(e));\n }\n }", "public int getArticleID() {\n return articleID;\n }", "public Long getLong(String attr) {\n return (Long) super.get(attr);\n }", "@Override\n @XmlElement(name = \"amendmentNumber\")\n public synchronized InternationalString getAmendmentNumber() {\n return amendmentNumber;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "public java.lang.String get__OID() throws com.intersys.objects.CacheException {\n com.intersys.cache.Dataholder dh = mInternal.getProperty(\"%%OID\",false);\n return dh.getString();\n }", "public IdentifierDt getAccessionNo() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "public Long getLongAttribute();", "int getNo() {\n\t\treturn no;\n\t}", "Attribute getAttribute();", "private long getLongAttribute(Element element, String attributeName)\n {\n try\n {\n return Long.parseLong(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0L;\n }\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "String getAttribute();", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public String getObrefno() {\n return (String)getAttributeInternal(OBREFNO);\n }", "public Number getOridestId() {\n return (Number)getAttributeInternal(ORIDESTID);\n }", "public String getIdNo() {\n return idNo;\n }", "public String getIdNo() {\n return idNo;\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute(String name);", "public java.lang.Object getEntityNumber() {\n return entityNumber;\n }", "public Object getAttribute(String name);", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getNpCod() {\n return (String)getAttributeInternal(NPCOD);\n }", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }", "public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "private String getAttribute(Element element, String attributeName)\n {\n String value = \"\";\n\n Attr attribute = element.getAttributeNode(attributeName);\n if (attribute != null)\n {\n value = attribute.getValue();\n }\n\n return value;\n }", "public long getaNum() {\n return aNum;\n }", "public Integer getSale_num() {\n return sale_num;\n }", "public static String getAttributeValue(Node node, String attributeName) {\r\n NamedNodeMap attributeList = node.getAttributes();\r\n if (attributeList != null) {\r\n Node attrNode = attributeList.getNamedItem(attributeName);\r\n if (attrNode != null) {\r\n String attributeValue = attrNode.getNodeValue();\r\n return attributeValue;\r\n }\r\n }\r\n return null;\r\n }", "public Integer getItemNo() {\n\t\treturn itemNo;\n\t}", "public java.math.BigDecimal getANumber() {\r\n return aNumber;\r\n }", "private int intvalue(JsonNode n, String name) {\n\t\treturn n.findValue(name).getIntValue();\n\t}", "@Override\n\tpublic Account displayAccountDetails(int accountNo) {\n\t\treturn genericRepository.fetchById(Account.class, accountNo);\n\t}", "public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getAttributeValue(By locator, String attributeName) {\n \t\t\t\n \t\t\tWebElement element = driver.findElement(locator);\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "public String getAccountNo() {\n return accountNo;\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public int getAnnoScolasticoId() {\r\n return this.annoScolasticoId;\r\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getMiNo() {\r\n return miNo;\r\n }", "@Override\n\tpublic Object getProperty(int arg0) {\n\t\tObject res = null;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tres = this.EntityKey;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tres = this.Id;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tres = this.Description;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tres = this.StartDate;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tres = this.EndDate;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t}", "public int getAccountNo() {\n\t\treturn this.accountNo;\r\n\t}", "public int getNumber() {\n return field.getNumber();\n }", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "public String getAcctNo(){\n\t\treturn acctNo;\n\t}", "private long getLongAttribute(Element element, String tagName, String attributeName)\n {\n try\n {\n return Long.parseLong(getAttribute(element,tagName,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0L;\n }\n }", "public Attribute fetchAttributeById(int attribId);", "public String getIntAttribute12() {\n return (String) getAttributeInternal(INTATTRIBUTE12);\n }", "public Integer getIntegerAttribute();" ]
[ "0.5554319", "0.55525863", "0.5504949", "0.5351589", "0.5346033", "0.5264693", "0.5207971", "0.52053905", "0.5200556", "0.5172531", "0.51171565", "0.5110147", "0.50878984", "0.50842553", "0.5049008", "0.50441325", "0.5041034", "0.5041005", "0.5016216", "0.500338", "0.4989407", "0.49843577", "0.4962747", "0.49527064", "0.49449778", "0.4938433", "0.49288929", "0.4915864", "0.4897592", "0.4891133", "0.4891133", "0.48856172", "0.4880426", "0.4878625", "0.48701668", "0.48560488", "0.48525423", "0.48396736", "0.48393005", "0.48346627", "0.482445", "0.48209035", "0.48073176", "0.48053968", "0.4790427", "0.47762573", "0.47685865", "0.4757687", "0.47394", "0.47352856", "0.47322884", "0.4719614", "0.4714072", "0.4713816", "0.4712251", "0.47088724", "0.46964628", "0.4694071", "0.4694071", "0.46836868", "0.4673979", "0.4666246", "0.4663215", "0.46629316", "0.46576732", "0.4654185", "0.4654185", "0.4654185", "0.46536514", "0.4653241", "0.46530873", "0.4650098", "0.46457887", "0.46451122", "0.46447894", "0.46443343", "0.46431482", "0.46398136", "0.4638865", "0.46372843", "0.4637118", "0.463332", "0.46279225", "0.46255448", "0.4624164", "0.46147665", "0.46011436", "0.45905364", "0.45845273", "0.4579224", "0.45752776", "0.45749882", "0.45686072", "0.4564808", "0.45621967", "0.45618847", "0.45606384", "0.45605946", "0.4558166" ]
0.6938746
1
Sets value as the attribute value for ArticleNo.
public void setArticleNo(String value) { setAttributeInternal(ARTICLENO, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItemNo(int value) {\n this.itemNo = value;\n }", "public void setNtnNo(String value) {\n setAttributeInternal(NTNNO, value);\n }", "public void setMemArtId(Number value) {\n setAttributeInternal(MEMARTID, value);\n }", "public void setNo(String no) {\n this.no = no;\n }", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public String getArticleNo() {\n return (String)getAttributeInternal(ARTICLENO);\n }", "public String getArticleNo() {\n return (String)getAttributeInternal(ARTICLENO);\n }", "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "public void setOcNo(String value) {\n setAttributeInternal(OCNO, value);\n }", "public void setPartNo(String partNo){\n\t\t // store into the instance variable partNo (i.e. this.partNo) the value of the parameter partNo\n\t\tthis.partNo = partNo;\n\t}", "public void setOridestId(Number value) {\n setAttributeInternal(ORIDESTID, value);\n }", "public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }", "public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }", "public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public void setInumber(final String value)\n\t{\n\t\tsetInumber( getSession().getSessionContext(), value );\n\t}", "public void setTrackNumber( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TRACKNUMBER, value);\r\n\t}", "public void setNumber(int number)\n {\n Number = number;\n }", "public void setNum(int num) {\r\n this.num = num;\r\n }", "public void setItemNo(Integer itemNo) {\n\t\tif (itemNo == 0) {\n\t\t\tthis.itemNo = null;\n\t\t} else {\n\t\t\tthis.itemNo = itemNo;\n\t\t}\n\t}", "public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }", "public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }", "public ImagingStudy setAccessionNo( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {\n\t\tmyAccessionNo = new IdentifierDt(theUse, theSystem, theValue, theLabel); \n\t\treturn this; \n\t}", "public void setNumber(String newValue);", "public ImagingStudy setAccessionNo(IdentifierDt theValue) {\n\t\tmyAccessionNo = theValue;\n\t\treturn this;\n\t}", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "public SeriesInstance setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "@Override\n\tpublic void setEmpno(Integer empno) {\n\t\tsuper.setEmpno(empno);\n\t}", "public void setStreetNo(int value) {\n this.streetNo = value;\n }", "public void setIdNo(String idNo) {\n this.idNo = idNo == null ? null : idNo.trim();\n }", "public void setIdNo(String idNo) {\n this.idNo = idNo == null ? null : idNo.trim();\n }", "void setInt(int attributeValue);", "public void setAdultNum(int value) {\n this.adultNum = value;\n }", "public void setNumero(int numero) { this.numero = numero; }", "public void setInumber(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, INUMBER,value);\n\t}", "public Series setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "public void setEmployeeNumber(String value) {\n setAttributeInternal(EMPLOYEENUMBER, value);\n }", "public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}", "public void setDetailId(Number value) {\n setAttributeInternal(DETAILID, value);\n }", "public synchronized void setAmendmentNumber(final InternationalString newValue) {\n checkWritePermission();\n amendmentNumber = newValue;\n }", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setNumber(int number)\n {\n this.number = number;\n }", "public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }", "public void setNum(int num) {\n\t\tthis.num = num;\n\t}", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setAccountNo(String AccountNo) {\n super.setAccountNo(MPaymentValidate.checkNumeric(AccountNo));\n }", "public void setCardNo(int cardNumber);", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}", "public ImagingStudy setAccessionNo( String theSystem, String theValue) {\n\t\tmyAccessionNo = new IdentifierDt(theSystem, theValue); \n\t\treturn this; \n\t}", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setNumber(int number) {\n this.number = number;\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setNumber(String name, int value) {\n itemNumbers.put(name, value);\n }", "public Builder setPostNum(int value) {\n \n postNum_ = value;\n onChanged();\n return this;\n }", "public void setPageNo(long pageNo) {\r\n\t\tif (pageNo < 1) {\r\n\t\t\tthis.pageNo = 1;\r\n\t\t} else {\r\n\t\t\tthis.pageNo = pageNo;\r\n\t\t}\r\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void set(int value){\n val = value;\n }", "public synchronized void setTbApWtEntryNumber(Integer value){\n\t\t// Fill up with necessary processing\n\n\t\ttbApWtEntryNumber = value;\n\t}", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public void setNid(int nid) {\r\n\t\tthis.nid = nid;\r\n\t}", "public void setValue(int value)\n {\n this.value = value;\n }", "public Builder setN(int value) {\n \n n_ = value;\n onChanged();\n return this;\n }", "public void setCopyrightId(Number value) {\n setAttributeInternal(COPYRIGHTID, value);\n }", "public void setSale_num(Integer sale_num) {\n this.sale_num = sale_num;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "@Override\n public void setAtomicNumber(int atomicNumber) {\n }", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "public void setMobileNo(String value) {\n setAttributeInternal(MOBILENO, value);\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setOrderNo (Long orderNo) {\r\n\t\tthis.orderNo = orderNo;\r\n\t}", "public void setSequenceNo(long n) {\n\tsequenceNo = n;\n }", "public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public void setPRDNO(int value) {\n this.prdno = value;\n }", "public static void setTrackNumber( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TRACKNUMBER, value);\r\n\t}", "public void setOnion(double countNo) {\n onion = countNo;\r\n }", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setTallaId(Number value) {\n setAttributeInternal(TALLAID, value);\n }", "public Builder setNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n number_ = value;\n onChanged();\n return this;\n }", "public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}", "public void setValue(int value);", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "private void setDocumentNo() {\n //\tCash Transfer\n if (\"X\".equals(getTenderType())) {\n return;\n }\n //\tCurrent Document No\n String documentNo = getDocumentNo();\n //\tExisting reversal\n if (documentNo != null\n && documentNo.indexOf(REVERSE_INDICATOR) >= 0) {\n return;\n }\n\n //\tIf external number exists - enforce it\n if (getR_PnRef() != null && getR_PnRef().length() > 0) {\n if (!getR_PnRef().equals(documentNo)) {\n setDocumentNo(getR_PnRef());\n }\n return;\n }\n\n documentNo = \"\";\n\n /* Begin e-Evolution\n //\tCredit Card\n if (TENDERTYPE_CreditCard.equals(getTenderType()))\n {\n documentNo = getCreditCardType()\n + \" \" + Obscure.obscure(getCreditCardNumber())\n + \" \" + getCreditCardExpMM()\n + \"/\" + getCreditCardExpYY();\n }\n //\tOwn Check No\n else\n // End e-Evolution */\n\n if (TENDERTYPE_Check.equals(getTenderType())\n && !isReceipt()\n && getCheckNo() != null && getCheckNo().length() > 0) {\n documentNo = getCheckNo();\n }\n //\tCustomer Check: Routing: Account #Check\n //begin e-evolution vpj-cd 11 MAy 2006\n\t\t/*else if (TENDERTYPE_Check.equals(getTenderType())\n && isReceipt())\n {\n if (getRoutingNo() != null)\n documentNo = getRoutingNo() + \": \";\n if (getAccountNo() != null)\n documentNo += getAccountNo();\n if (getCheckNo() != null)\n {\n if (documentNo.length() > 0)\n documentNo += \" \";\n documentNo += \"#\" + getCheckNo();\n }\n }\n // End e-Evolution */\n //\tSet Document No\n documentNo = documentNo.trim();\n if (documentNo.length() > 0) {\n setDocumentNo(documentNo);\n }\n }", "public void setPersonId(Number value) {\n setAttributeInternal(PERSONID, value);\n }", "void SetItemNumber(int ItemNumber);", "public void setValue(int value) {\n m_value = value;\n }", "public void setValue(int val)\r\n {\r\n value = val;\r\n }" ]
[ "0.624053", "0.6214974", "0.60142434", "0.5931461", "0.59298617", "0.5859879", "0.5859879", "0.585573", "0.58240324", "0.57321894", "0.5720645", "0.5698077", "0.5691218", "0.5679609", "0.56492025", "0.56492025", "0.56492025", "0.564789", "0.5635133", "0.56341755", "0.56201845", "0.5564685", "0.5558158", "0.5558158", "0.555286", "0.55485326", "0.55472547", "0.5544468", "0.5536366", "0.55332834", "0.55250907", "0.55237645", "0.55237645", "0.5507084", "0.5479771", "0.5462494", "0.5452989", "0.54527205", "0.5448747", "0.54290295", "0.5419165", "0.5408447", "0.5402638", "0.5396642", "0.538472", "0.5377947", "0.5370476", "0.53649896", "0.5358198", "0.5357155", "0.53500503", "0.53240585", "0.5323515", "0.5317798", "0.5307513", "0.53020513", "0.5301412", "0.52943045", "0.52895147", "0.5284489", "0.5284489", "0.5280498", "0.5278986", "0.5275921", "0.52632725", "0.52593863", "0.52582383", "0.5257395", "0.52519196", "0.5250016", "0.5250016", "0.5250016", "0.52446765", "0.52378863", "0.52378863", "0.5236649", "0.5236435", "0.5236435", "0.5219872", "0.52192295", "0.5217883", "0.5211005", "0.52101815", "0.52026635", "0.51973647", "0.51973647", "0.51973647", "0.51973647", "0.51973647", "0.5193878", "0.5192039", "0.51879823", "0.51836985", "0.51833254", "0.5179595", "0.51768625", "0.5173201", "0.5172939", "0.51721054" ]
0.7962187
1
Gets the attribute value for SystemId, using the alias name SystemId.
public Number getSystemId() { return (Number)getAttributeInternal(SYSTEMID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }", "public String getSystemId() { return this.systemId; }", "public String getSystemId() {\n\t\treturn mSystemId;\n\t}", "public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}", "@JsonProperty(\"system_id\")\n public int getSystemId() {\n return systemId;\n }", "public String getSystemId();", "public String getSystemId() {\n return agentConfig.getSystemId();\n }", "public String getSysId() {\n return sysId;\n }", "public String getSysId() {\n return sysId;\n }", "public Integer getSysId() {\n return sysId;\n }", "public void setSystemId(String systemId);", "public gov.ucore.ucore._2_0.StringType getSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().find_element_user(SYSTEMIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static Serializable getSystemId() {\n Serializable ret = null;\n if (getSystemStatic() != null) {\n ret = getSystemStatic().getDistributionManager().getId();\n }\n return ret;\n }", "public void setSystemId( String systemId ) { this.systemId = systemId; }", "public java.lang.String getUserExternalSystemId() {\r\n return userExternalSystemId;\r\n }", "public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }", "public String getSystem() {\r\n return this.system;\r\n }", "@ApiModelProperty(required = true, value = \"The id of the system where this file lives.\")\n public String getSystem() {\n return system;\n }", "public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "public int getSysID() {\n return sysID_;\n }", "public int getSysID() {\n return sysID_;\n }", "public String getSystemId() {\n return this.source.getURI();\n }", "public String getSystemId()\n {\n if (entityStack.empty())\n {\n return null;\n }\n else\n {\n return (String) entityStack.peek();\n }\n }", "public String getSystemName() {\n return systemName;\n }", "public String getSystemName() {\n\t\treturn systemName;\n\t}", "public Object systemNumber() {\n return this.systemNumber;\n }", "public AS400 getSystem() {\r\n return system;\r\n }", "public java.lang.String getSystemCode() {\n return systemCode;\n }", "public String getForeignSystemId() {\n return foreignSystemId;\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAccountManagerSystemIdentifier() {\n return accountManagerSystemIdentifier;\n }", "java.lang.String getMachineId();", "public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}", "public java.lang.String getSystemName() {\r\n return systemName;\r\n }", "public void setSystemId(int val) {\n systemId = val;\n }", "public java.lang.String getSystemCode () {\r\n\t\treturn systemCode;\r\n\t}", "public static String getSystemName()\n {\n return sSysName;\n }", "int getSysID();", "public java.lang.String getSystemloguserid () {\n\t\treturn systemloguserid;\n\t}", "public String getSysNo() {\n return sysNo;\n }", "@ApiModelProperty(value = \"The process name, job ID, etc...\")\n public String getSystemName() {\n return systemName;\n }", "public String getSysPropertyName() {\n return sysProperty;\n }", "public int getIncrementedId(SystemValue systemValue) {\n\t\tint value=0;\r\n\t\t\r\n\t\ttry{\r\n\t\tList<SystemValue> list=sqlMapClient.queryForList(\"systemValue.getSystemValue\", systemValue);\r\n\t\t\tfor(SystemValue sysValue:list){\r\n\t\t\t\t\r\n\t\t\t\tvalue=Integer.parseInt(sysValue.getValue());\r\n//\t\t\t\tSystem.out.println(\"incremented\"+value);\r\n\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(\"Exception in getting system value:\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn value;\r\n\t}", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public long getInformationSystem() {\n return informationSystem;\n }", "public String getLegacyId() {\n return (String)getAttributeInternal(LEGACYID);\n }", "public String getSystemType() {\n \t\treturn fSystemType;\n \t}", "public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }", "public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public static String getIAMUserId(){\n \t\t// There are a few places where we can find this\n \t\tString id = System.getProperty(\"AWS_ACCESS_KEY_ID\");\n \t\tif(id != null) return id;\n \t\tid = System.getProperty(STACK_IAM_ID);\n \t\tif (id == null) return null;\n \t\tid = id.trim();\n \t\tif (\"\".equals(id)) return null;\n \t\treturn id;\n \t}", "public abstract String getMachineID();", "public String getVirtualSystemIdentifier() {\n return virtualSystemIdentifier;\n }", "public String getSystemdatum() {\n\t\treturn systemdatum;\n\t}", "@ApiModelProperty(required = true, value = \"System number for this event\")\n @NotNull\n\n\n public Integer getId() {\n return id;\n }", "public String getSystemName();", "public String getExternalSystem() {\n return externalSystem;\n }", "@Array({21}) \n\t@Field(21) \n\tpublic Pointer<Byte > OrderSysID() {\n\t\treturn this.io.getPointerField(this, 21);\n\t}", "String getValueId();", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public Long getSystemmenu() {\n return systemmenu;\n }", "@Override\r\n\tpublic String getSystemConfig(String key) {\n\t\treturn sysConfigService.getValueBykey(key);\r\n\t}", "@JsonProperty(\"EventSourceSystem\")\r\n\tpublic String getEventSourceSystem() {\r\n\t\treturn eventSourceSystem;\r\n\t}", "@SuppressWarnings(\"static-access\")\n\tpublic static String getSystemSetupValue(String propertyName) {\n SetupManager setupManager = (SetupManager) appContext.getBean(\"setupManager\");\n return setupManager.getSettingValue(propertyName);\n }", "private SystemDef getSystemDef(String systemDefName) {\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (SystemDef sd : group.getSystemDefCollection()) {\n if (sd.getName().equals(systemDefName)) {\n return sd;\n }\n }\n }\n return null;\n }", "public void setSystemId(String systemId) {\n agentConfig.setSystemId(systemId);\n }", "public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\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 machineId_ = s;\n }\n return s;\n }\n }", "public int getSolarSystemID() {\n return solarSystemID;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getResponsedByUserUuid() throws SystemException;", "public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n machineId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getSystemProperties() {\n return systemProperties;\n }", "@Override\n @XmlElement(name = \"referenceSystemIdentifier\")\n public final ReferenceIdentifier getName() {\n ReferenceIdentifier name = super.getName();\n if (isLegacyMetadata) {\n name = RS_Identifier.wrap(name);\n }\n return name;\n }", "public String getUserUuid() throws SystemException;", "public String getUserUuid() throws SystemException;", "public String getUserUuid() throws SystemException;", "public String getUserUuid() throws SystemException;", "int getSymbolicId();", "public gov.ucore.ucore._2_0.StringType addNewSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().add_element_user(SYSTEMIDENTIFIER$0);\n return target;\n }\n }", "public String getSysType() {\n return sysType;\n }", "public void setSysId(String sysId) {\n this.sysId = sysId;\n }", "public void setSysId(String sysId) {\n this.sysId = sysId;\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getMaternalID();", "public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }", "public String getIsSystem() {\n return isSystem;\n }", "String getSecId();", "public int getSystemTime() {\n\t\treturn this.systemTime;\n\t}", "java.lang.String getAttribute();", "public String getAccountValue(String elementId) {\n String sqlQuery = \"\", elementValue = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.VALUE as value FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n elementValue = rs.getString(\"value\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return elementValue;\n }", "public byte getSystem() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readByte(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readByte(__io__address + 4);\n\t\t}\n\t}", "String intermediateSystemName();", "public void setSystem(String value) {\r\n this.system = value;\r\n }", "java.lang.String getSystem();" ]
[ "0.7414396", "0.71762425", "0.7068693", "0.68092287", "0.66737944", "0.6653817", "0.6641492", "0.6303105", "0.6303105", "0.6216477", "0.6131101", "0.6124578", "0.60912126", "0.6073329", "0.5984519", "0.5981811", "0.5960789", "0.5952064", "0.5949595", "0.5922366", "0.58853924", "0.58798534", "0.5855479", "0.5794783", "0.57869214", "0.57627445", "0.5723951", "0.5700552", "0.5694433", "0.56838346", "0.56465393", "0.5613029", "0.55782294", "0.55688125", "0.55679834", "0.5561034", "0.55263644", "0.5511317", "0.54871815", "0.5404287", "0.5388228", "0.5366296", "0.5300493", "0.5276994", "0.523438", "0.52308273", "0.5191182", "0.5179976", "0.5166934", "0.5166934", "0.511908", "0.511908", "0.511908", "0.511908", "0.5093333", "0.5075285", "0.5070454", "0.5060602", "0.5047492", "0.50062025", "0.50011224", "0.49965295", "0.49943838", "0.4979582", "0.4979582", "0.49711388", "0.49655774", "0.4953621", "0.49519137", "0.49476027", "0.4946861", "0.49346617", "0.4933027", "0.49211887", "0.49198678", "0.49163017", "0.49074775", "0.48950043", "0.48808134", "0.48770365", "0.48770365", "0.48770365", "0.48770365", "0.4867129", "0.48662195", "0.48648816", "0.4863686", "0.4863686", "0.48477277", "0.4836937", "0.48250028", "0.4796469", "0.47866905", "0.47769046", "0.47760823", "0.4770544", "0.47693774", "0.47574607", "0.47571877", "0.4756838" ]
0.7383236
1
Sets value as the attribute value for SystemId.
public void setSystemId(Number value) { setAttributeInternal(SYSTEMID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSystemId(String systemId);", "public void setSystemId(int val) {\n systemId = val;\n }", "public void setSystemId( String systemId ) { this.systemId = systemId; }", "public void setSystemId(String systemId) {\n agentConfig.setSystemId(systemId);\n }", "public void setSystemIdentifier(gov.ucore.ucore._2_0.StringType systemIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().find_element_user(SYSTEMIDENTIFIER$0, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.StringType)get_store().add_element_user(SYSTEMIDENTIFIER$0);\n }\n target.set(systemIdentifier);\n }\n }", "public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }", "public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}", "public final void setSystemID(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String systemid)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.SystemID.toString(), systemid);\r\n\t}", "public final void setSystemID(java.lang.String systemid)\r\n\t{\r\n\t\tsetSystemID(getContext(), systemid);\r\n\t}", "public void setSystem(String value) {\r\n this.system = value;\r\n }", "public String getSystemId() { return this.systemId; }", "public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }", "public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }", "public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}", "public String getSystemId() {\n\t\treturn mSystemId;\n\t}", "public ImagingStudy setAccessionNo( String theSystem, String theValue) {\n\t\tmyAccessionNo = new IdentifierDt(theSystem, theValue); \n\t\treturn this; \n\t}", "void setSystem(java.lang.String system);", "public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }", "@JsonProperty(\"system_id\")\n public int getSystemId() {\n return systemId;\n }", "public void setSysId(String sysId) {\n this.sysId = sysId;\n }", "public void setSysId(String sysId) {\n this.sysId = sysId;\n }", "public String getSysId() {\n return sysId;\n }", "public String getSysId() {\n return sysId;\n }", "public void setTypeId(int systemTypeId)\n {\n mSystemTypeId = systemTypeId;\n }", "public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}", "public String getSystemId() {\n return agentConfig.getSystemId();\n }", "public String getSystemId();", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }", "public void setLegacyId(String value) {\n setAttributeInternal(LEGACYID, value);\n }", "public Integer getSysId() {\n return sysId;\n }", "public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}", "@Test\n public void testSetNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "public void setSystem(byte system) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 4, system);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 4, system);\n\t\t}\n\t}", "public int getSysID() {\n return sysID_;\n }", "public void setMachineID(int value) {\n this.machineID = value;\n }", "public void setUid(final String value)\r\n\t{\r\n\t\tsetUid( getSession().getSessionContext(), value );\r\n\t}", "public void setId(final String value)\n\t{\n\t\tsetId( getSession().getSessionContext(), value );\n\t}", "public Builder clearSysID() {\n bitField0_ = (bitField0_ & ~0x00002000);\n sysID_ = 0;\n onChanged();\n return this;\n }", "public int getSysID() {\n return sysID_;\n }", "T setSystemProperty(String key, String value);", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }", "public gov.ucore.ucore._2_0.StringType addNewSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().add_element_user(SYSTEMIDENTIFIER$0);\n return target;\n }\n }", "@ApiModelProperty(required = true, value = \"The id of the system where this file lives.\")\n public String getSystem() {\n return system;\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "protected abstract void setContextAttribute(String name, Object value);", "public ImagingStudy addIdentifier( String theSystem, String theValue) {\n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\tmyIdentifier.add(new IdentifierDt(theSystem, theValue));\n\t\treturn this; \n\t}", "public void setSystemCode (java.lang.String systemCode) {\r\n\t\tthis.systemCode = systemCode;\r\n\t}", "public void setSystemName(String systemName) {\n this.systemName = systemName;\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setSystemName(java.lang.String systemName) {\r\n this.systemName = systemName;\r\n }", "public void setSystemCode(java.lang.String systemCode) {\n this.systemCode = systemCode;\n }", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public void setSolarSystemID(int value) {\n this.solarSystemID = value;\n }", "public static void setSystemAttributes() throws InvalidDBTransferException {\n \texecuteInitialization(CHECK_ATTRIBUTES, INIT_ATTRIBUTES);\n }", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setSystemPath(String systemPath) {\r\n\t\tthis.systemPath = systemPath;\r\n\t}", "public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }", "public static final String setSystemProperty(String key, String value) {\n\t\tif (!saveInSystem) {\n\t\t\tlog.warn(\"Attempting to set System Property \" + key + \" to \"\n\t\t\t\t\t+ value\n\t\t\t\t\t+ \" but the file System Properties have not yet been read.\");\n\t\t}\n\t\treturn System.setProperty(key, value);\n\t}", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public java.lang.String getUserExternalSystemId() {\r\n return userExternalSystemId;\r\n }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setInformationSystem(long informationSystem) {\n this.informationSystem = informationSystem;\n }", "void xsetSystem(org.apache.xmlbeans.XmlString system);", "public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }", "public void setXbtId(ULong value) {\n set(2, value);\n }", "public void setCodeSystem(CodeSystem codeSystem) {\r\n\t\tthis.codeSystem = codeSystem;\r\n\t}", "public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }", "private void setRoomId(long value) {\n \n roomId_ = value;\n }", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public Builder setMachineId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setHostIdentityValue(String hostIdentityValue)\n throws JNCException {\n setHostIdentityValue(new YangString(hostIdentityValue));\n }", "@ApiModelProperty(required = true, value = \"System number for this event\")\n @NotNull\n\n\n public Integer getId() {\n return id;\n }", "public void setId(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, ID,value);\n\t}", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setHostIdentityValue(YangString hostIdentityValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"host-identity\",\n hostIdentityValue,\n childrenNames());\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "public void setUid(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, UID,value);\r\n\t}", "public String getForeignSystemId() {\n return foreignSystemId;\n }", "public void setUserExternalSystemId(java.lang.String userExternalSystemId) {\r\n this.userExternalSystemId = userExternalSystemId;\r\n }", "private void setId(int value) {\n \n id_ = value;\n }" ]
[ "0.7735083", "0.77094436", "0.7140167", "0.70246834", "0.6987184", "0.6953404", "0.6914733", "0.6872771", "0.6785966", "0.6627083", "0.6569894", "0.6496234", "0.6475726", "0.64419556", "0.64338416", "0.62513316", "0.624307", "0.6208788", "0.61782926", "0.6160082", "0.6160082", "0.60055673", "0.60055673", "0.59633714", "0.59624296", "0.5946845", "0.59172314", "0.5865721", "0.5865721", "0.5854616", "0.58379745", "0.5829793", "0.57595015", "0.5757657", "0.5733406", "0.5732343", "0.5720827", "0.5700765", "0.5699097", "0.5698543", "0.56953233", "0.5680232", "0.5667988", "0.5655233", "0.56471384", "0.5589164", "0.5582887", "0.5576932", "0.5562244", "0.55526036", "0.5551809", "0.55482006", "0.55319625", "0.5528179", "0.5522054", "0.5516232", "0.5506532", "0.55049187", "0.5493102", "0.5491328", "0.54733664", "0.5470734", "0.54671067", "0.5464366", "0.5457656", "0.5457656", "0.5457656", "0.5457324", "0.5454113", "0.5447991", "0.5447991", "0.5423797", "0.54106504", "0.54095745", "0.5409373", "0.5390727", "0.53857565", "0.536891", "0.5356001", "0.5322438", "0.5318117", "0.5318117", "0.5312007", "0.5311244", "0.5310262", "0.52806425", "0.5273332", "0.52705634", "0.52705634", "0.52705634", "0.52705634", "0.52705634", "0.52705634", "0.52705634", "0.52527946", "0.52514476", "0.524763", "0.5246676", "0.52446926" ]
0.8158002
1
getAttrInvokeAccessor: generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this); } return super.getAttrInvokeAccessor(index, attrDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case CODE:\n return getCode();\n case COUNTRYCODE:\n return getCountryCode();\n case COUNTRYDESCRIPTION:\n return getCountryDescription();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case DESCRIPTION:\n return getDescription();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case LOADDATE:\n return getLoadDate();\n case ORIDESTID:\n return getOridestId();\n case ROWID:\n return getRowID();\n case STATECODE:\n return getStateCode();\n case STATEDESCRIPTION:\n return getStateDescription();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case TALLANBR:\n return getTallaNbr();\n case INVENTORYCOD:\n return getInventoryCod();\n case NPCOD:\n return getNpCod();\n case TALLAID:\n return getTallaId();\n case DOTAID:\n return getDotaId();\n case DESCRIPTION:\n return getDescription();\n case INVENTORYITEMID:\n return getInventoryItemId();\n case ORGANIZATIONID:\n return getOrganizationId();\n case OPERAND:\n return getOperand();\n case ARITHMETICOPERATOR:\n return getArithmeticOperator();\n case PRODUCTATTRVALUE:\n return getProductAttrValue();\n case LISTHEADERID:\n return getListHeaderId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case QCIDSEQ:\n return getQcIdseq();\n case VERSION:\n return getVersion();\n case QTLNAME:\n return getQtlName();\n case CONTEIDSEQ:\n return getConteIdseq();\n case ASLNAME:\n return getAslName();\n case PREFERREDNAME:\n return getPreferredName();\n case PREFERREDDEFINITION:\n return getPreferredDefinition();\n case DEIDSEQ:\n return getDeIdseq();\n case LONGNAME:\n return getLongName();\n case PMODIDSEQ:\n return getPModIdseq();\n case QRIDSEQ:\n return getQrIdseq();\n case PQCIDSEQ:\n return getPQcIdseq();\n case CQCIDSEQ:\n return getCQcIdseq();\n case DISPLAYORDER:\n return getDisplayOrder();\n case RLNAME:\n return getRlName();\n case FORMVALIDVALUES:\n return getFormValidValues();\n case QUESTIONFORMVVRECS:\n return getQuestionFormVVRecs();\n case MODULE:\n return getModule();\n case CONTEXT:\n return getContext();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n return getSupplierId();\n case NAME:\n return getName();\n case ONHOLDFLAG:\n return getOnHoldFlag();\n case STARTDATE:\n return getStartDate();\n case ENDDATE:\n return getEndDate();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE11:\n return getAttribute11();\n case ATTRIBUTE12:\n return getAttribute12();\n case ATTRIBUTE13:\n return getAttribute13();\n case ATTRIBUTE14:\n return getAttribute14();\n case ATTRIBUTE15:\n return getAttribute15();\n case SUPPLIERSITEEO:\n return getSupplierSiteEO();\n case PURCHASEORDERHEADEREO:\n return getPurchaseOrderHeaderEO();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case PERSONID:\n return getPersonId();\n case EMPLOYEENUMBER:\n return getEmployeeNumber();\n case EMAILADDRESS:\n return getEmailAddress();\n case FULLNAME:\n return getFullName();\n case LASTNAME:\n return getLastName();\n case FIRSTNAME:\n return getFirstName();\n case WORKTELEPHONE:\n return getWorkTelephone();\n case EMPLOYEEPERSONID:\n return getEmployeePersonId();\n case CODECOMBINATIONID:\n return getCodeCombinationId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n return getIdexped();\n case IDBULTO:\n return getIdbulto();\n case IDBULTOORI:\n return getIdbultoOri();\n case LARGO:\n return getLargo();\n case ANCHO:\n return getAncho();\n case ALTO:\n return getAlto();\n case CREATEDBY:\n return getCreatedby();\n case CREATEDON:\n return getCreatedon();\n case IDTIPOBULTO:\n return getIdtipobulto();\n case MODIFIEDBY:\n return getModifiedby();\n case MODIFIEDON:\n return getModifiedon();\n case PESOCONT:\n return getPesocont();\n case SGAEXPEDLBULTO:\n return getSgaexpedlbulto();\n case SGAEXPEDLBULTO1:\n return getSgaexpedlbulto1();\n case SGAEXPED:\n return getSgaexped();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case FOLIOFLETE:\n return getFolioFlete();\n case TRANSPORT:\n return getTransport();\n case FOLIOSINTRAMO:\n return getFoliosintramo();\n case TRAMO:\n return getTramo();\n case FEE:\n return getFee();\n case IVAFLAG:\n return getIvaFlag();\n case RETENTIONFLAG:\n return getRetentionFlag();\n case IVAMFLAG:\n return getIvaMFlag();\n case RETENTIONMFLAG:\n return getRetentionMFlag();\n case CURRENCY:\n return getCurrency();\n case PROVIDER:\n return getProvider();\n case INVOICESTATUS:\n return getInvoiceStatus();\n case CHECKBOX:\n return getCheckBox();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case CODE:\n setCode((String)value);\n return;\n case COUNTRYCODE:\n setCountryCode((String)value);\n return;\n case COUNTRYDESCRIPTION:\n setCountryDescription((String)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case DESCRIPTION:\n setDescription((String)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case LOADDATE:\n setLoadDate((Date)value);\n return;\n case ORIDESTID:\n setOridestId((Number)value);\n return;\n case STATECODE:\n setStateCode((String)value);\n return;\n case STATEDESCRIPTION:\n setStateDescription((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case SRCID:\r\n return getSrcId();\r\n case SRCLASTNAME:\r\n return getSrcLastName();\r\n case SRCFIRSTNAME:\r\n return getSrcFirstName();\r\n case SRCCOURTESYTITLE:\r\n return getSrcCourtesyTitle();\r\n case SRCJOBTITLE:\r\n return getSrcJobTitle();\r\n case SRCJOBDESCRIPTION:\r\n return getSrcJobDescription();\r\n case SRCCOMPANY:\r\n return getSrcCompany();\r\n case SRCADDRESS1:\r\n return getSrcAddress1();\r\n case SRCADDRESS2:\r\n return getSrcAddress2();\r\n case SRCADDRESS3:\r\n return getSrcAddress3();\r\n case SRCCITY:\r\n return getSrcCity();\r\n case SRCSTATE:\r\n return getSrcState();\r\n case SRCZIP:\r\n return getSrcZip();\r\n case SRCCTRYID:\r\n return getSrcCtryId();\r\n case SRCTMZID:\r\n return getSrcTmzId();\r\n case SRCEMAIL:\r\n return getSrcEmail();\r\n case SRCPHONE:\r\n return getSrcPhone();\r\n case SRCPHONEEXT:\r\n return getSrcPhoneExt();\r\n case SRCCELLPHONE:\r\n return getSrcCellPhone();\r\n case SRCFAX:\r\n return getSrcFax();\r\n case SRCSTATUS:\r\n return getSrcStatus();\r\n case SRCEXCLUSIVESOURCEYN:\r\n return getSrcExclusiveSourceYn();\r\n case SRCDONTCONTACTYN:\r\n return getSrcDontContactYn();\r\n case SRCCOMPANYTYPE:\r\n return getSrcCompanyType();\r\n case SRCAREAOFEXPERTISE:\r\n return getSrcAreaOfExpertise();\r\n case SRCINDUSTRYSECTOR:\r\n return getSrcIndustrySector();\r\n case SRCINDUSTRYVIEW:\r\n return getSrcIndustryView();\r\n case SRCVENDORS:\r\n return getSrcVendors();\r\n case SRCCOMPANYSIZE:\r\n return getSrcCompanySize();\r\n case SRCDISTRIBUTIONPREFERENCE:\r\n return getSrcDistributionPreference();\r\n case SRCDISTRIBUTIONNOTES:\r\n return getSrcDistributionNotes();\r\n case SRCSPECIALREQUESTS:\r\n return getSrcSpecialRequests();\r\n case SRCREPORTERSNOTES:\r\n return getSrcReportersNotes();\r\n case SRCQUALITYRATING:\r\n return getSrcQualityRating();\r\n case SRCMODIFIEDDATE:\r\n return getSrcModifiedDate();\r\n case SRCMODIFIEDBY:\r\n return getSrcModifiedBy();\r\n case SRCSUFFIXTITLE:\r\n return getSrcSuffixTitle();\r\n case SRCINFORMEDOFWEBSITE:\r\n return getSrcInformedOfWebsite();\r\n case SRCOFFEREDREPORT:\r\n return getSrcOfferedReport();\r\n case BaWaWEBREPORTSOURCESRVIEW:\r\n return getOtlReportSourcesRView();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "String attributeToGetter(String name);", "Attribute getAttribute();", "public String getElementAttribute(int row, int attr);", "public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }", "public abstract int getBootstrapMethodAttrIndex();", "public String getAttribute(final String attributeLocator);", "protected abstract MethodDescription accessorMethod();", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String[] getElementAnnotation(int index, String attr);", "public Object getProperty(String attName);", "Object getAttribute(int attribute);", "java.lang.String getAttribute();", "String getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public TLAttribute getAttribute(String attributeName);", "public Object getAttribute(String name);", "@Override\n\tpublic Nearby_attractionVO read_attraction(int bno, int rno) throws Exception {\n\t\treturn dao.read_attraction(bno,rno);\n\t}", "public String getElementAttribute(int row, int attr, int chromosome);", "public abstract IAccessor getAccessor(IContext context);", "public Object getAttribute(Object key);", "Object getAttribute( String attrName ) throws FileSystemException;", "public Object get(String aName) { return _attrMap.get(aName); }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttr() {\n return attr;\n }", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public java.lang.Object getCachedAttributeValue(Symbol attrName, java.lang.Object defaultValue);", "@Override\n public byte[][] invoke(Object sender, int index, Object parameters)\n {\n if (index == 1)\n {\n setValue(null);\n }\n else\n {\n throw new IllegalArgumentException(\"Invoke failed. Invalid attribute index.\");\n }\n return null;\n }", "public native final String attr(final String name)\n\t/*-{\n\t\treturn this.attr(name);\n\t}-*/;", "public String getAttribute(String name);", "@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }", "public org.python.Object __getattribute__(java.lang.String name);", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute(final String elementLocator, final String attributeName);", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "Attributes getAttributes();", "public HbAttributeInternal getAttribute(String name);", "@Override\n\tpublic Object getAttrVal(String attrName) {\n\t\treturn null;\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}" ]
[ "0.723702", "0.718321", "0.70857316", "0.70857316", "0.70857316", "0.70857316", "0.70702", "0.70702", "0.702586", "0.7025006", "0.7020218", "0.70144564", "0.70079035", "0.69236135", "0.6567853", "0.64829445", "0.6413709", "0.63747954", "0.6362678", "0.6362204", "0.6362204", "0.6359211", "0.6343148", "0.63422734", "0.63407874", "0.63407874", "0.63407874", "0.63407874", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.62416804", "0.6131552", "0.5927194", "0.59203357", "0.559029", "0.5522276", "0.5495368", "0.54881567", "0.5482167", "0.5459301", "0.5458827", "0.5439436", "0.54188025", "0.5411281", "0.5382608", "0.5376998", "0.53597766", "0.53597766", "0.53597766", "0.53452504", "0.53448254", "0.5292662", "0.5287966", "0.5285153", "0.5282186", "0.52626264", "0.5255156", "0.5247857", "0.5247857", "0.5242066", "0.524112", "0.5238678", "0.52271324", "0.5224818", "0.52139264", "0.5154305", "0.5133398", "0.51180154", "0.51123434", "0.51043886", "0.5095859", "0.50812244", "0.5075527", "0.50564134", "0.504841" ]
0.7098436
13
setAttrInvokeAccessor: generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value); return; } super.setAttrInvokeAccessor(index, value, attrDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case CODE:\n setCode((String)value);\n return;\n case COUNTRYCODE:\n setCountryCode((String)value);\n return;\n case COUNTRYDESCRIPTION:\n setCountryDescription((String)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case DESCRIPTION:\n setDescription((String)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case LOADDATE:\n setLoadDate((Date)value);\n return;\n case ORIDESTID:\n setOridestId((Number)value);\n return;\n case STATECODE:\n setStateCode((String)value);\n return;\n case STATEDESCRIPTION:\n setStateDescription((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n return getIdexped();\n case IDBULTO:\n return getIdbulto();\n case IDBULTOORI:\n return getIdbultoOri();\n case LARGO:\n return getLargo();\n case ANCHO:\n return getAncho();\n case ALTO:\n return getAlto();\n case CREATEDBY:\n return getCreatedby();\n case CREATEDON:\n return getCreatedon();\n case IDTIPOBULTO:\n return getIdtipobulto();\n case MODIFIEDBY:\n return getModifiedby();\n case MODIFIEDON:\n return getModifiedon();\n case PESOCONT:\n return getPesocont();\n case SGAEXPEDLBULTO:\n return getSgaexpedlbulto();\n case SGAEXPEDLBULTO1:\n return getSgaexpedlbulto1();\n case SGAEXPED:\n return getSgaexped();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case CODE:\n return getCode();\n case COUNTRYCODE:\n return getCountryCode();\n case COUNTRYDESCRIPTION:\n return getCountryDescription();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case DESCRIPTION:\n return getDescription();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case LOADDATE:\n return getLoadDate();\n case ORIDESTID:\n return getOridestId();\n case ROWID:\n return getRowID();\n case STATECODE:\n return getStateCode();\n case STATEDESCRIPTION:\n return getStateDescription();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case FOLIOFLETE:\n return getFolioFlete();\n case TRANSPORT:\n return getTransport();\n case FOLIOSINTRAMO:\n return getFoliosintramo();\n case TRAMO:\n return getTramo();\n case FEE:\n return getFee();\n case IVAFLAG:\n return getIvaFlag();\n case RETENTIONFLAG:\n return getRetentionFlag();\n case IVAMFLAG:\n return getIvaMFlag();\n case RETENTIONMFLAG:\n return getRetentionMFlag();\n case CURRENCY:\n return getCurrency();\n case PROVIDER:\n return getProvider();\n case INVOICESTATUS:\n return getInvoiceStatus();\n case CHECKBOX:\n return getCheckBox();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n return getSupplierId();\n case NAME:\n return getName();\n case ONHOLDFLAG:\n return getOnHoldFlag();\n case STARTDATE:\n return getStartDate();\n case ENDDATE:\n return getEndDate();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE11:\n return getAttribute11();\n case ATTRIBUTE12:\n return getAttribute12();\n case ATTRIBUTE13:\n return getAttribute13();\n case ATTRIBUTE14:\n return getAttribute14();\n case ATTRIBUTE15:\n return getAttribute15();\n case SUPPLIERSITEEO:\n return getSupplierSiteEO();\n case PURCHASEORDERHEADEREO:\n return getPurchaseOrderHeaderEO();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case PERSONID:\n return getPersonId();\n case EMPLOYEENUMBER:\n return getEmployeeNumber();\n case EMAILADDRESS:\n return getEmailAddress();\n case FULLNAME:\n return getFullName();\n case LASTNAME:\n return getLastName();\n case FIRSTNAME:\n return getFirstName();\n case WORKTELEPHONE:\n return getWorkTelephone();\n case EMPLOYEEPERSONID:\n return getEmployeePersonId();\n case CODECOMBINATIONID:\n return getCodeCombinationId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case QCIDSEQ:\n return getQcIdseq();\n case VERSION:\n return getVersion();\n case QTLNAME:\n return getQtlName();\n case CONTEIDSEQ:\n return getConteIdseq();\n case ASLNAME:\n return getAslName();\n case PREFERREDNAME:\n return getPreferredName();\n case PREFERREDDEFINITION:\n return getPreferredDefinition();\n case DEIDSEQ:\n return getDeIdseq();\n case LONGNAME:\n return getLongName();\n case PMODIDSEQ:\n return getPModIdseq();\n case QRIDSEQ:\n return getQrIdseq();\n case PQCIDSEQ:\n return getPQcIdseq();\n case CQCIDSEQ:\n return getCQcIdseq();\n case DISPLAYORDER:\n return getDisplayOrder();\n case RLNAME:\n return getRlName();\n case FORMVALIDVALUES:\n return getFormValidValues();\n case QUESTIONFORMVVRECS:\n return getQuestionFormVVRecs();\n case MODULE:\n return getModule();\n case CONTEXT:\n return getContext();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case TALLANBR:\n return getTallaNbr();\n case INVENTORYCOD:\n return getInventoryCod();\n case NPCOD:\n return getNpCod();\n case TALLAID:\n return getTallaId();\n case DOTAID:\n return getDotaId();\n case DESCRIPTION:\n return getDescription();\n case INVENTORYITEMID:\n return getInventoryItemId();\n case ORGANIZATIONID:\n return getOrganizationId();\n case OPERAND:\n return getOperand();\n case ARITHMETICOPERATOR:\n return getArithmeticOperator();\n case PRODUCTATTRVALUE:\n return getProductAttrValue();\n case LISTHEADERID:\n return getListHeaderId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case SRCID:\r\n return getSrcId();\r\n case SRCLASTNAME:\r\n return getSrcLastName();\r\n case SRCFIRSTNAME:\r\n return getSrcFirstName();\r\n case SRCCOURTESYTITLE:\r\n return getSrcCourtesyTitle();\r\n case SRCJOBTITLE:\r\n return getSrcJobTitle();\r\n case SRCJOBDESCRIPTION:\r\n return getSrcJobDescription();\r\n case SRCCOMPANY:\r\n return getSrcCompany();\r\n case SRCADDRESS1:\r\n return getSrcAddress1();\r\n case SRCADDRESS2:\r\n return getSrcAddress2();\r\n case SRCADDRESS3:\r\n return getSrcAddress3();\r\n case SRCCITY:\r\n return getSrcCity();\r\n case SRCSTATE:\r\n return getSrcState();\r\n case SRCZIP:\r\n return getSrcZip();\r\n case SRCCTRYID:\r\n return getSrcCtryId();\r\n case SRCTMZID:\r\n return getSrcTmzId();\r\n case SRCEMAIL:\r\n return getSrcEmail();\r\n case SRCPHONE:\r\n return getSrcPhone();\r\n case SRCPHONEEXT:\r\n return getSrcPhoneExt();\r\n case SRCCELLPHONE:\r\n return getSrcCellPhone();\r\n case SRCFAX:\r\n return getSrcFax();\r\n case SRCSTATUS:\r\n return getSrcStatus();\r\n case SRCEXCLUSIVESOURCEYN:\r\n return getSrcExclusiveSourceYn();\r\n case SRCDONTCONTACTYN:\r\n return getSrcDontContactYn();\r\n case SRCCOMPANYTYPE:\r\n return getSrcCompanyType();\r\n case SRCAREAOFEXPERTISE:\r\n return getSrcAreaOfExpertise();\r\n case SRCINDUSTRYSECTOR:\r\n return getSrcIndustrySector();\r\n case SRCINDUSTRYVIEW:\r\n return getSrcIndustryView();\r\n case SRCVENDORS:\r\n return getSrcVendors();\r\n case SRCCOMPANYSIZE:\r\n return getSrcCompanySize();\r\n case SRCDISTRIBUTIONPREFERENCE:\r\n return getSrcDistributionPreference();\r\n case SRCDISTRIBUTIONNOTES:\r\n return getSrcDistributionNotes();\r\n case SRCSPECIALREQUESTS:\r\n return getSrcSpecialRequests();\r\n case SRCREPORTERSNOTES:\r\n return getSrcReportersNotes();\r\n case SRCQUALITYRATING:\r\n return getSrcQualityRating();\r\n case SRCMODIFIEDDATE:\r\n return getSrcModifiedDate();\r\n case SRCMODIFIEDBY:\r\n return getSrcModifiedBy();\r\n case SRCSUFFIXTITLE:\r\n return getSrcSuffixTitle();\r\n case SRCINFORMEDOFWEBSITE:\r\n return getSrcInformedOfWebsite();\r\n case SRCOFFEREDREPORT:\r\n return getSrcOfferedReport();\r\n case BaWaWEBREPORTSOURCESRVIEW:\r\n return getOtlReportSourcesRView();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "protected abstract MethodDescription accessorMethod();", "String attributeToSetter(String name);", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public abstract IAccessor getAccessor(IContext context);", "String attributeToGetter(String name);", "@Override\n public byte[][] invoke(Object sender, int index, Object parameters)\n {\n if (index == 1)\n {\n setValue(null);\n }\n else\n {\n throw new IllegalArgumentException(\"Invoke failed. Invalid attribute index.\");\n }\n return null;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "protected abstract Actor getAccessor();", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "private void addAttribute(XmlAttribute xa, Method method, Object[] args) {\n/* 147 */ assert xa != null;\n/* */ \n/* 149 */ checkStartTag();\n/* */ \n/* 151 */ String localName = xa.value();\n/* 152 */ if (xa.value().length() == 0) {\n/* 153 */ localName = method.getName();\n/* */ }\n/* 155 */ _attribute(xa.ns(), localName, args);\n/* */ }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "void setProperty(String attribute, String value);", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tmethodInvocation.invoke();\n\t\treturn method.invoke(bean, args);\n\t}", "public void changeAttrName() {\r\n }", "private void invokeAnnotatedMethod(String optionName, final T targetInstance, final String value) throws ReflectiveOperationException {\n final Method method = annotatedMethods.get(optionName);\r\n if (getAnnotation(method).flag()) {\r\n //Flag, so treat as 'true'\r\n method.invoke(targetInstance, true);\r\n } else {\r\n /*\r\n * Convert the given option value (a string) to the\r\n * required basic type (as determined by the methods\r\n * argument type)\r\n */\r\n final Class<?> parameterType = method.getParameterTypes()[0];\r\n final Object valueObject;\r\n if (this.propertyEditors.containsKey(parameterType)) {\r\n valueObject = this.propertyEditors.get(parameterType).getObject(value);\r\n } else {\r\n valueObject = Utils.stringToType(parameterType, value);\r\n }\r\n //Invoke the method on the Object instance using the converted value\r\n method.invoke(targetInstance, valueObject);\r\n }\r\n }", "void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);", "public final d invoke() {\n return a.a(this.receiver$0, this.$additionalAnnotations);\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }", "public abstract int getBootstrapMethodAttrIndex();", "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}", "private void setBeanReflect(DeployBeanDescriptor<?> desc) {\n // Set the BeanReflectGetter and BeanReflectSetter that typically\n // use generated code. NB: Due to Bug 166 so now doing this for\n // abstract classes as well.\n BeanPropertiesReader reflectProps = new BeanPropertiesReader(desc.getBeanType());\n desc.setProperties(reflectProps.getProperties());\n for (DeployBeanProperty prop : desc.propertiesAll()) {\n String propName = prop.getName();\n Integer pos = reflectProps.getPropertyIndex(propName);\n if (pos == null) {\n if (isPersistentField(prop)) {\n throw new IllegalStateException(\n \"If you are running in an IDE with enhancement plugin try a Build -> Rebuild Project to recompile and enhance all entity beans. \" +\n \"Error - property \" + propName + \" not found in \" + reflectProps + \" for type \" + desc.getBeanType());\n }\n } else {\n final int propertyIndex = pos;\n prop.setPropertyIndex(propertyIndex);\n prop.setGetter(beanPropertyAccess.getGetter(propertyIndex));\n prop.setSetter(beanPropertyAccess.getSetter(propertyIndex));\n if (prop.isAggregation()) {\n prop.setAggregationPrefix(DetermineAggPath.manyPath(prop.getRawAggregation(), desc));\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n private <T> T valueAttributeFromObject(final Object ob, final String methodName) {\n try {\n return (T) ob.getClass().getMethod(methodName).invoke(ob);\n } catch (final Exception e) {\n FeatureEditorPlugin.instance().log(IStatus.ERROR,\n \"Could not invoke method \" + methodName + \" on object \" + ob);\n return null;\n }\n }", "public final ae invoke() {\n return this.this$0.boA().aY(this.this$0.getName(), this.this$0.RX());\n }", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public native final <T> Selection attr(final String name, String value)\n\t/*-{\n\t\treturn this.attr(name, value);\n\t}-*/;", "void generateSetter(MethodSpec.Builder method, SetterParam param);", "@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.class, EstimationTransactionData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "@Override\n\tpublic void outAMethodCallExpr(AMethodCallExpr node){\n\t\tString methodName = node.getId().getText();\n\t\tType targetType = nodeTypes.get(node.getTarget());\n\t\tboxIt(targetType); \n\t\tClassAttributes targetClass = topLevelSymbolTable.get(targetType.getTypeName());\n\t\tMethodAttributes methodAttributes = targetClass.getMethod(methodName);\n\t\tif (!(node.getTarget() instanceof ASuperExpr)){\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()) , Constants.INVOKEVIRTUAL));\n\t\t}\n\t\telse {\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()), Constants.INVOKESPECIAL)); \n\t\t}\n\t\tunboxIt(methodAttributes.getReturnType()); \n\t}", "public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;", "private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n switch (methodToInvoke) {\n case NEW_MUTABLE_INSTANCE:\n return new DocumentMask();\n case IS_INITIALIZED:\n return DEFAULT_INSTANCE;\n case MAKE_IMMUTABLE:\n this.fieldPaths_.makeImmutable();\n return null;\n case NEW_BUILDER:\n return new Builder();\n case VISIT:\n this.fieldPaths_ = ((GeneratedMessageLite.Visitor) obj).visitList(this.fieldPaths_, ((DocumentMask) obj2).fieldPaths_);\n GeneratedMessageLite.MergeFromVisitor mergeFromVisitor = GeneratedMessageLite.MergeFromVisitor.INSTANCE;\n return this;\n case MERGE_FROM_STREAM:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n boolean z = false;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n String readStringRequireUtf8 = codedInputStream.readStringRequireUtf8();\n if (!this.fieldPaths_.isModifiable()) {\n this.fieldPaths_ = GeneratedMessageLite.mutableCopy(this.fieldPaths_);\n }\n this.fieldPaths_.add(readStringRequireUtf8);\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case GET_DEFAULT_INSTANCE:\n break;\n case GET_PARSER:\n if (PARSER == null) {\n synchronized (DocumentMask.class) {\n if (PARSER == null) {\n PARSER = new GeneratedMessageLite.DefaultInstanceBasedParser(DEFAULT_INSTANCE);\n }\n }\n }\n return PARSER;\n default:\n throw new UnsupportedOperationException();\n }\n return DEFAULT_INSTANCE;\n }", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}" ]
[ "0.7711966", "0.763835", "0.7624488", "0.7622952", "0.75823784", "0.7534446", "0.7522457", "0.75204605", "0.75204605", "0.7520005", "0.74730784", "0.74730784", "0.74730784", "0.74730784", "0.7324199", "0.6898091", "0.6873392", "0.6825343", "0.68186456", "0.68186456", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6790498", "0.6790498", "0.6790498", "0.6790498", "0.6762033", "0.6758134", "0.67450684", "0.6742692", "0.6638562", "0.5947354", "0.54887295", "0.54313165", "0.5426898", "0.5277073", "0.5270484", "0.52279174", "0.51635927", "0.5141223", "0.51273334", "0.51012295", "0.5076963", "0.507399", "0.502108", "0.49868187", "0.4974914", "0.49643454", "0.49309835", "0.49220434", "0.48790437", "0.48562992", "0.48553044", "0.4834955", "0.48190534", "0.48152646", "0.48061427", "0.47833195", "0.47419906", "0.47405952", "0.47397232", "0.4738975", "0.4737335", "0.4731811", "0.47152573", "0.46980536", "0.4648918", "0.46485272", "0.46449244", "0.46422318", "0.46392238", "0.46314105", "0.46261498", "0.4605881", "0.45964468" ]
0.74888957
21
Sets value as the associated entity MnjMfgFabricInsTestHImpl.
public void setMnjMfgFabricInsTestH(MnjMfgFabricInsTestHImpl value) { setAttributeInternal(MNJMFGFABRICINSTESTH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEntity(String parName, Object parVal) throws HibException;", "public void testSetInsDyn() {\n }", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setBasedOnValue(entity.LocationNamedInsured value);", "@Test\n public void testSetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }", "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public void setEntity(org.openejb.config.ejb11.Entity entity) {\n this._entity = entity;\n }", "@Test\n public void testSetEmf() {\n System.out.println(\"setEmf\");\n EntityManagerFactory emf = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.setEmf(emf);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public void setUWCompany(entity.UWCompany value);", "@Test\r\n\tpublic void testSet() {\r\n\t\tAssert.assertNull(list.set(100, null));\r\n\t\tAssert.assertTrue(list.get(5).equals(\r\n\t\t\t\tlist.set(5, new Munitions(4, 3, \"cuprum\"))));\r\n\t\tAssert.assertTrue(list.get(5).equals(new Munitions(4, 3, \"cuprum\")));\r\n\t}", "public void setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }", "public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "public void elSetValue(Object bean, Object value, boolean populate, boolean reference);", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "public void setEntry(Flow.DataflowObject value) {\n entry.copy(value);\n }", "@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }", "public abstract void set(M newValue);", "public void setValue(Object value) {\n\t\tEntityManager em = Config.getEntityManager();\n\n\t\t// check for unnecessary update\n\t\tif (value == null && this.value == null) return;\n\t\tif (value != null && this.value != null) {\n\t\t\t// check if values are the same\n\t\t\tif (value.equals(this.value)) return;\n\t\t}\n\t\tthis.value = value;\n\t\tEntityTransaction t = em.getTransaction();\n\t\tboolean localTransaction = false;\n\t\ttry {\n\t\t\tif (!t.isActive()) {\n\t\t\t\tlocalTransaction = true;\n\t\t\t\tt.begin();\n\t\t\t}\n\n\t\t\t// update existing row\n\t\t\tif (row != null) {\n\t\t\t\tString updateSql = update1 + fieldName + update2 + fieldName\n\t\t\t\t\t\t+ valueExtension + update3;\n\t\t\t\tQuery updateQuery = em.createNativeQuery(updateSql);\n\t\t\t\tupdateQuery.setParameter(1, value);\n\t\t\t\tupdateQuery.setParameter(2, entityId);\n\t\t\t\tint result = updateQuery.executeUpdate();\n\t\t\t\tif (result != 1) {\n\t\t\t\t\t// no update?\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// create new row\n\t\t\t// check for existing FieldDataConfig\n\t\t\tFieldConfigInstance configInstance = FieldConfigInstance\n\t\t\t\t\t.findByNameBundle(fieldName, bundle);\n\t\t\tif (configInstance == null) {\n\t\t\t\t// must create new config instance\n\t\t\t\tFieldConfig config = FieldConfig.findByName(fieldName);\n\t\t\t\tif (config == null) {\n\t\t\t\t\t// TODO create new config\n\t\t\t\t\tconfig = new FieldConfig(fieldName, type);\n\t\t\t\t\t// can't do it\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconfigInstance = new FieldConfigInstance(config, bundle);\n\t\t\t\tem.persist(configInstance);\n\t\t\t\tem.flush();\n\t\t\t}\n\t\t\t// insert row\n\t\t\tString insertSql = insert1 + fieldName + insert2 + fieldName\n\t\t\t\t\t+ valueExtension + insert3;\n\t\t\tQuery insertQuery = em.createNativeQuery(insertSql);\n\t\t\tinsertQuery.setParameter(1, Config.BUNDLE_PREFIX + bundle);// bundle\n\t\t\tinsertQuery.setParameter(2, entityId);// entity_id\n\t\t\tinsertQuery.setParameter(3, 0);// delta\n\t\t\tinsertQuery.setParameter(4, value);// value\n\t\t\tint result = insertQuery.executeUpdate();\n\t\t\tif (result != 1) {\n\t\t\t\t// no insert?\n\t\t\t}\n\n\t\t\tif (localTransaction) t.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (localTransaction) t.rollback();\n\t\t}\n\t}", "@Test\r\n public void testSetMarks() {\r\n System.out.println(\"setMarks\");\r\n HashMap<String, Integer> marks = null;\r\n Student instance = new Student();\r\n instance.setMarks(marks);\r\n \r\n }", "@Test\n public void testSetLocalExtendedCircuitId() throws Exception {\n isisNeighbor.setLocalExtendedCircuitId(1);\n result = isisNeighbor.localExtendedCircuitId();\n assertThat(result, is(1));\n }", "@Test\n\tpublic void testSetBehandelCode(){\n\t\tint expResult = 002;\n\t\tinstance.setBehandelCode(002);\n\t\tassertTrue(expResult == instance.getBehandelCode());\n\t}", "public void setDefinedInModule(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).setDefinedInModule(value);\n }", "@Test\n public void testSetCnh() {\n System.out.println(\"setCnh\");\n String cnh = \"\";\n Motorista instance = new Motorista();\n instance.setCnh(cnh);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetLugarInteres() {\n LugaresInteresEntity lugar = new LugaresInteresEntity();\n lugar.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setLugarInteres(lugar);\n Assert.assertTrue(hospedajeL.getLugarInteres().getId().equals(lugar.getId()));\n }", "public void setInsBizNo(String insBizNo) {\n\t\tthis.insBizNo = insBizNo;\n\t}", "@Test\r\n public void testSetUserOccupation()\r\n {\r\n System.out.println(\"setUserOccupation\");\r\n String userOccupation = \"Nurse\";\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setUserOccupation(userOccupation);\r\n assertEquals(userOccupation, instance.getUserOccupation());\r\n }", "public void seteSix(Integer eSix) {\n this.eSix = eSix;\n }", "@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }", "@Test\n public void testSetEbXmlEventListener() {\n System.out.println(\"setEbXmlEventListener\");\n instance.setEbXmlEventListener(ebXmlEventListener);\n }", "public void setValue(E value)\n {\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setH_set1(java.math.BigDecimal newH_set1)\n\t\tthrows java.rmi.RemoteException;", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 0;\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setMemberId(memberId);\r\n }", "@Override\r\n\tpublic void setClient(Client cc) {\n\t\tthis.e2eValidationClient = (E2EValidationClient) cc;\r\n\t}", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void test_setSupervisorId() {\n Long value = 1L;\n instance.setSupervisorId(value);\n\n assertSame(\"'setSupervisorId' should be correct.\",\n value, TestsHelper.getField(instance, \"supervisorId\"));\n }", "public void setShSetSpec(String val) {\n\n\t\tshSetSpec = val;\n\n\t}", "void setCaller(com.arexis.mugen.MugenCaller caller) throws java.rmi.RemoteException;", "@Test\r\n public void testSetValor() {\r\n \r\n }", "@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}", "void entityValueChange(String name, String value);", "public void set(CoreEntity coreEntity, CoreMorphComponent coreMorphComponent) {\r\n CoreJni.setInCoreMorphComponentManager1(this.agpCptrMorphComponentMgr, this, CoreEntity.getCptr(coreEntity), coreEntity, CoreMorphComponent.getCptr(coreMorphComponent), coreMorphComponent);\r\n }", "private void setImpl() {\n Object obj = getConfigManager().getObject(\"SERVER_IMPL\");\n if (null == obj) {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"setImpl()\"\n , \"Could not instantiate SERVER_IMPL.\", \"Make sure loyalty.cfg contains SERVER_IMPL\"\n , LoggingServices.MAJOR);\n }\n LoyaltyServices.setCurrent((LoyaltyServices)obj);\n }", "public static void setPartOfSet( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, PARTOFSET, value);\r\n\t}", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "@Override\n\tpublic void setTest() {\n\t}", "public void setGroupValue(String testCaseID)\r\n\t{\r\n\t\tgroupTestID=testCaseID;\r\n\t\tgroupTestScenario=getTestScenario(testCaseID);\t\r\n\t\tLog.info(\"======== \"+groupTestID+\" : \"+groupTestScenario+\" ========\");\r\n\t}", "@Override\n\tpublic void setKeyValueInfo(KeyValueInfo kv) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"setKeyValueInfo\");\n\t\tif (!this.isCloudChannelLive()) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n\t\t\t\t\t\"User is not online\");\n\t\t}\n\t\tJSONObject joReq = new JSONObject();\n\t\tJSONObject pl = new JSONObject();\n\t\ttry {\n\t\t\tjoReq.put(\"PL\", pl);\n\t\t\tjoReq.put(\"CID\", 30511);\n\t\t\tjoReq.put(\"SID\", getsid());\n\t\t\tpl.put(\"key\", kv.key);\n\t\t\tpl.put(\"value\", kv.value);\n\n\t\t\tString req = joReq.toString();\n\n\t\t\tString rsp = HttpProxy.reqByHttpPost(req);\n\t\t\tJSONObject jo = new JSONObject(rsp);\n\n\t\t\tif (jo.isNull(\"RC\")) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_KEYVALUE,\n\t\t\t\t\t\t\"can not set keyvalue\");\n\t\t\t}\n\t\t\tif (jo.getInt(\"RC\") != 1) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_KEYVALUE,\n\t\t\t\t\t\t\"can not set keyValue\");\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_KEYVALUE,\n\t\t\t\t\t\"can not set keyValue\");\n\t\t}\n\t}", "protected void f_set(Long eID, int flowValue) {\n\t\tincreaseAccess(); // Zugriff auf den Graphen\n\t\tgraph.setValE(eID, flowAttr, flowValue);\n\t}", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public Builder setH(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n h_ = value;\n onChanged();\n return this;\n }", "public void setInsUserid(String insUserid) {\n this.insUserid = insUserid;\n }", "protected abstract void setEntryValue(T nativeEntry, String propertyName, Object value);", "public void testSetAccount_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}", "public void setExhibition(Exhibition exhibition) {\n\n selectedExhibition = exhibition;\n }", "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "@Test\r\n public void testSetEndereco() {\r\n System.out.println(\"setEndereco\");\r\n String endereco = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setEndereco(endereco);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }", "@Test\r\n public void testTambahSupplierBenar() throws RemoteException, NotBoundException{\n f = new Form_Data_Supplier_Tambah();\r\n Supplier sup = new Supplier();\r\n sup.setNama_Supplier(\"Merry\");\r\n sup.setAlamat_Supplier(\"Jalan lalala\");\r\n sup.setJenis_pajak_Supplier(\"jenispajak\");\r\n sup.setKode_Pajak_Supplier(\"018298128\");\r\n sup.setKota_Supplier(\"surabaya\");\r\n sup.setNPWP_Supplier(\"17987\");\r\n sup.setTelepon_Supplier(\"08129127676\");\r\n f.setNama(sup.getNama_Supplier()); \r\n f.setAlamat(sup.getAlamat_Supplier());\r\n f.setJenisPajak(sup.getJenis_pajak_Supplier());\r\n f.setKodePajak(sup.getKode_Pajak_Supplier());\r\n f.setNPWP(sup.getNPWP_Supplier());\r\n f.setKota(sup.getKota_Supplier());\r\n f.setTelp(sup.getTelepon_Supplier());\r\n boolean output = f.TambahSupplier();\r\n boolean target = true;\r\n assertEquals(target, output);\r\n Supplier s = ss.getLastSupplier();\r\n assertEquals(s.getNama_Supplier(), sup.getNama_Supplier());\r\n assertEquals(s.getAlamat_Supplier(), sup.getAlamat_Supplier());\r\n assertEquals(s.getJenis_pajak_Supplier(), sup.getJenis_pajak_Supplier());\r\n assertEquals(s.getKode_Pajak_Supplier(), sup.getKode_Pajak_Supplier());\r\n assertEquals(s.getKota_Supplier(), sup.getKota_Supplier());\r\n assertEquals(s.getNPWP_Supplier(), sup.getNPWP_Supplier());\r\n assertEquals(s.getTelepon_Supplier(), sup.getTelepon_Supplier());\r\n }", "@Test\n public void testSetGetEinheit() {\n \n String einheit = \"einheit\";\n messtyp.setEinheit(einheit);\n assertEquals(messtyp.getEinheit(), \"einheit\");\n }", "public void setEntity(String name, Class<? extends AbstractEntity> entclass) {\n entityClass = entclass;\n //label.setText(name);\n }", "public void testSetAccount_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}", "void setMasterMode(double h, OrekitFixedStepHandler handler);", "public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }", "public void setValue(Object value) {\n\t\tthis.present = isRequired() || value != null;\t\t\n\t\teditorBinder.setBackingObject(value);\n\t\teditorBinder.initEditors();\n\t}", "public MnjMfgFabinsInvlEOImpl() {\n }", "@Test\n @Ignore\n public void testSetValue_Object() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetKlient() {\r\n System.out.println(\"setKlient\");\r\n Klient klient = null;\r\n Faktura instance = new Faktura();\r\n instance.setKlient(klient);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Override\n public T setValue(T newValue) {\n return entry.getValue().setValue(newValue);\n }", "@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }", "void setPassedHabit(Habit passedHabit);", "public void setEntity(Entity entity) {\n\t\tthis.entity = entity;\n\t\tString s = entity.getClass().toString();\n\t\t// trim \"Class \" from the above String\n\t\tentityType = s.substring(s.lastIndexOf(\" \") + 1);\n\t}", "@Test\n public void testSetValue ()\n {\n System.out.println (\"setValue\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setValue (name);\n }", "public void setValue(Object value);", "@Test \n\tpublic void testSetBusinessinformation() {\n\t\tBusinessInformation businessInformation = new BusinessInformation();\n\t\tbusinessInformation.setName(INFO_NAME);\n\t\tAdminAccount user = adminAccountService.setBusinessInformation(INFO_NAME, USERNAME1);\n\t\tassertNotNull(user);\n\t\tassertEquals(user.getUsername(), USERNAME1);\n\t}", "@Override\n @Before\n public void setUp() throws Exception {\n super.setUp();\n\n entityManager = getEntityManager();\n\n logger = Logger.getLogger(getClass());\n\n instance = new UserServiceImpl();\n TestsHelper.setField(instance, \"logger\", logger);\n TestsHelper.setField(instance, \"entityManager\", entityManager);\n TestsHelper.setField(instance, \"supervisorRoleName\", supervisorRoleName);\n TestsHelper.setField(instance, \"adminRoleName\", adminRoleName);\n }", "public void setMemberId(Integer value) {\n set(2, value);\n }", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setInsnodeid(Integer insnodeid) {\n this.insnodeid = insnodeid;\n }", "public void testBeforeSet() throws Exception {\r\n GroovyClassLoader gcl = new GroovyClassLoader();\r\n final Class<?> testClass = gcl.parseClass(\"class Test { def prop = 'hello' }\");\r\n GroovyObject go = (GroovyObject)testClass.newInstance();\r\n\r\n ProxyMetaClass pmc = ProxyMetaClass.getInstance(testClass);\r\n go.setMetaClass(pmc);\r\n\r\n pmc.setInterceptor( new PropertyAccessInterceptor(){\r\n\r\n public Object beforeGet(Object object, String property, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public void beforeSet(Object object, String property, Object newValue, InvocationCallback callback) {\r\n assertEquals(\"prop\", property);\r\n BeanWrapper bean = new BeanWrapperImpl(object);\r\n bean.setPropertyValue(\"prop\",\"success\");\r\n callback.markInvoked();\r\n }\r\n\r\n public Object beforeInvoke(Object object, String methodName, Object[] arguments, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public Object afterInvoke(Object object, String methodName, Object[] arguments, Object result) {\r\n return null;\r\n }\r\n });\r\n\r\n go.setProperty(\"prop\", \"newValue\");\r\n Object result = go.getProperty(\"prop\");\r\n assertNotNull(result);\r\n assertEquals(\"success\",result);\r\n }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "@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 }", "@Test\r\n public void testSetUid() {\r\n System.out.println(\"setUid\");\r\n String uid = \"\";\r\n OpeningTicketPurpose instance = new OpeningTicketPurpose();\r\n instance.setUid(uid);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 8;\r\n FoodBean instance = new FoodBean();\r\n instance.setMemberId(memberId);\r\n assertEquals(memberId, instance.getMemberId());\r\n }", "public Value.Builder setHariKe(int value) {\n validate(fields()[1], value);\n this.hari_ke = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "protected void setHMetisInFile(final String str) {\n\t\tthis.hMetisInFile = str;\n\t}", "public void setTestValue(Integer testValue) {\n this.testValue = testValue;\n }", "@Override\n\tpublic void setMeetinExperienceFlagFromPH(int appointmentId, int meetingExpFromPH) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_HASMEETINGEXPERIENCE_FROM_PH, (ps)->{\n\t\t\t\tps.setInt(1, meetingExpFromPH);\n\t\t\t\tps.setInt(2, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void override(Object object) {\n String string2 = \"GservicesValue\";\n String string3 = \"GservicesValue.override(): test should probably call initForTests() first\";\n Log.w((String)string2, (String)string3);\n this.zzh = object;\n object = zzc;\n synchronized (object) {\n GservicesValue.zza();\n return;\n }\n }", "public void setFabric(String fabric) {\n this.fabric = fabric;\n }", "protected void setFixture(Inconsistency fixture) {\n\t\tthis.fixture = fixture;\n\t}", "public void setInsBizType(String insBizType) {\n\t\tthis.insBizType = insBizType;\n\t}", "@Override\r\n \tpublic void setVisible(boolean visible) {\r\n \t\tsessionBeanPkgNameditor\r\n \t\t\t\t.setValue(\"org.domain.\" //$NON-NLS-1$\r\n \t\t\t\t\t\t+ model\r\n \t\t\t\t\t\t\t\t.getProperty(IFacetDataModelProperties.FACET_PROJECT_NAME)\r\n \t\t\t\t\t\t+ \".session\"); //$NON-NLS-1$\r\n \t\tentityBeanPkgNameditor\r\n \t\t\t\t.setValue(\"org.domain.\" //$NON-NLS-1$\r\n \t\t\t\t\t\t+ model\r\n \t\t\t\t\t\t\t\t.getProperty(IFacetDataModelProperties.FACET_PROJECT_NAME)\r\n \t\t\t\t\t\t+ \".entity\"); //$NON-NLS-1$\r\n \t\ttestsPkgNameditor\r\n \t\t\t\t.setValue(\"org.domain.\" //$NON-NLS-1$\r\n \t\t\t\t\t\t+ model\r\n \t\t\t\t\t\t\t\t.getProperty(IFacetDataModelProperties.FACET_PROJECT_NAME)\r\n \t\t\t\t\t\t+ \".test\"); //$NON-NLS-1$\r\n \t\tif (visible) {\r\n \t\t\tITaggedFieldEditor runtimesField = (ITaggedFieldEditor)((CompositeEditor)jBossSeamHomeEditor).getEditors().get(1);\r\n \t\t\tObject oldValue = runtimesField.getValue();\r\n \t\t\tObject newValue = \"\";\r\n \t\t\tList<String> runtimes = getRuntimeNames(model.getProperty(IFacetDataModelProperties.FACET_VERSION_STR).toString());\r\n \t\t\tif(oldValue==null || !runtimes.contains(oldValue)) {\r\n \t\t\t\tObject defaultRnt = getSeamRuntimeDefaultValue();\r\n \t\t\t\tif(defaultRnt!=null && runtimes.contains(defaultRnt)) {\r\n \t\t\t\t\tnewValue = defaultRnt;\r\n \t\t\t\t} else if(runtimes.size()>0) {\r\n \t\t\t\t\tnewValue = runtimes.get(0);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tnewValue = oldValue;\r\n \t\t\t}\r\n \t\t\truntimesField.setValue(newValue);\r\n \t\t\truntimesField.setTags(runtimes.toArray(new String[0]));\r\n \t\t\tvalidate();\r\n \t\t}\r\n \t\tsuper.setVisible(visible);\r\n \t}", "public JbootVoModel set(String key, Object value) {\n super.put(key, value);\n return this;\n }" ]
[ "0.51981354", "0.5190537", "0.5129996", "0.5096633", "0.50112253", "0.50001484", "0.4972297", "0.49629843", "0.49035832", "0.48742726", "0.48541126", "0.48364285", "0.4769209", "0.47587347", "0.4756381", "0.47425812", "0.47322863", "0.472581", "0.4722939", "0.47070405", "0.46937156", "0.4680193", "0.46633565", "0.464374", "0.46407813", "0.46337235", "0.46289384", "0.46062893", "0.46016556", "0.4600896", "0.45776072", "0.45754185", "0.45720693", "0.4564797", "0.45511422", "0.45500147", "0.4522942", "0.45192862", "0.45161954", "0.45157623", "0.45084184", "0.45030618", "0.4500676", "0.44984975", "0.44898114", "0.4471609", "0.44667763", "0.44629672", "0.44614974", "0.4453172", "0.44530496", "0.44419128", "0.44401568", "0.44375035", "0.44342", "0.4432753", "0.44302392", "0.4425934", "0.44254342", "0.4423499", "0.44216403", "0.44200358", "0.44193253", "0.44161987", "0.4414069", "0.44116443", "0.4410668", "0.44077292", "0.4404946", "0.44041297", "0.44033626", "0.44016197", "0.43894202", "0.43873453", "0.43828306", "0.43806386", "0.43792093", "0.43739527", "0.4373346", "0.43647382", "0.43634102", "0.4362644", "0.43592933", "0.4353009", "0.43510297", "0.43500128", "0.43488663", "0.4348572", "0.43475062", "0.4345006", "0.4341762", "0.4338444", "0.43382475", "0.43377343", "0.4337312", "0.43368807", "0.4335726", "0.4335373", "0.43338385" ]
0.8136896
1
/ Atributos propios de Video
public Video(String nombre) { super(nombre); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVideo() {\n return video;\n }", "public void setVideo(String video) {\n this.video = video;\n }", "public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }", "public int getVid() {\r\n return vid;\r\n }", "@Override\n public String getDescription() {\n return \"Just Videos\";\n }", "@Override\n\tpublic void videoStart() {\n\t\t\n\t}", "MovieVideo getMovieVideoByVideoid(String videoid);", "public java.lang.String getVid() {\r\n return localVid;\r\n }", "String getVideoId() {\r\n return videoId;\r\n }", "@Override\n public void onVideoStarted() {\n }", "public String mo1736b() {\n return \"video\";\n }", "public void playVideo() {\n }", "public boolean videoEnabled();", "public boolean isVideo()\n {return false;\n }", "private void videoVisible() {\n }", "@Override\n\tvoid postarVideo() {\n\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}", "public void recordVideo() {\n\n }", "boolean hasVideo();", "public void setVideo(File video){\n\t\tthis.video = video;\n\t}", "public void onVideoStarted () {}", "String getVideoId() {\n return videoId;\n }", "com.google.ads.googleads.v6.resources.Video getVideo();", "protected VideoData() {}", "@Override\n\tpublic void videoComplete() {\n\t\t\n\t}", "public Video( ) { \n\t\tsuper( );\n\t}", "@Override\n\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t}", "private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }", "VideoStatus getStatus();", "public static String getVideoSource(){\r\n\r\n return pref.getString(\"VideoMode\", \"MP4\");\r\n }", "public void verVideo(View v) {\n ViewVideo.setVideoURI(Uri.parse(getExternalFilesDir(null) + \"/\" + txtNombreArchivo.getText().toString()));\n /*Ejecutamos el video*/\n ViewVideo.start();\n }", "public VideoDefinition getPreviewVideoDefinition();", "public int getVideoJittcomp();", "@Override\n\t\t\tpublic void onLoadVideo(String result) {\n\t\t\t}", "public interface Video extends Serializable{\n String title();\n String id();\n String thumbnail();\n String description();\n}", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "@Override\n public String toString()\n {\n return \"Video: \" + videoTitle + \"\\nCreated By: \" + videoCreator;\n }", "public String getVideoDevice();", "public void setVid(int value) {\r\n this.vid = value;\r\n }", "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "public String getCourseVideo() {\n return courseVideo;\n }", "public List<Video> getVideo() {\n\t\treturn null;\n\t}", "Builder addVideo(String value);", "public Integer getVid() {\n return vid;\n }", "public String getVideourl() {\n return videourl;\n }", "public double getVideoLength(){\n\t\treturn videoLength;\n\t}", "Builder addVideo(VideoObject value);", "public void setPreviewVideoDefinition(VideoDefinition vdef);", "public String getVideoUrl() {\n return videoUrl;\n }", "public long getVideoPosition() {\n return videoPosition;\n }", "public boolean videoSupported();", "public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }", "public int getVideoPort();", "public int getVideoDscp();", "public Map<String, Properties> getVideoData() {\n return videoData;\n }", "public VideoDefinition getCurrentPreviewVideoDefinition();", "public By videoCover(){\r\n\t\t return By.xpath(\"//div[@class='player']\");\r\n\t}", "@Override\n public void onVideoEnd() {\n super.onVideoEnd();\n }", "public void grabarVideo(View v) {\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n /*Creamos un archivo que contendra el video, mandanto el path (null es para indicar que no\n va en un directorio interno, solo en la raiz) ---- nombre del video*/\n /*RECORDAR QUE ESTE ARCHIVO QUEDA EN LA CARPETA ANDROID, EN LA CARPETA CON EL NOMBRE DEL\n * PAQUETE DEL PROYECTO, ESA ES LA RAIZ*/\n File video = new File(getExternalFilesDir(null), txtNombreArchivo.getText().toString());\n /*Mandamos el permiso para almacenar, y la ruta del video donde quedara*/\n intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(video));\n /*Ejecutamos la actividad*/\n startActivity(intent);\n }", "public Video() {\n\t}", "public String getVideoDisplayFilter();", "public void playVideo() {\n \t\t try {\n \t\t\t videoView.setOnPreparedListener(new OnPreparedListener() {\n \n \t\t\t\t @Override\n \t\t\t\t public void onPrepared(MediaPlayer mp) {\n \t\t\t\t\t mp.setLooping(true); \n \t\t\t\t }\n \t\t\t });\n \t\t\t videoView.setVideoPath(SAVE_PATH);\n \t\t\t videoView.start();\n \t\t } catch (Exception e) {\n \t\t\t Log.e(\"Video\", \"error: \" + e.getMessage(), e);\n \t\t }\n \t }", "private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }", "public void copyAttributes(VideoDetails obj)\n {\n if(obj != null)\n {\n super.copyAttributes(obj);\n setDescription(obj.getDescription());\n setChannelId(obj.getChannelId());\n setChannelTitle(obj.getChannelTitle());\n }\n }", "public java.lang.String getVideoName() {\n return videoName;\n }", "default void onVideoStarted() {\n }", "public void saveVideo() {\n if (this.mVideoFileDescriptor == null) {\n long duration = SystemClock.uptimeMillis() - this.mRecordingStartTime;\n try {\n MediaMetadataRetriever mmr = new MediaMetadataRetriever();\n mmr.setDataSource(this.mCurrentVideoFilename);\n String durationStr = mmr.extractMetadata(9);\n mmr.release();\n duration = (long) Integer.parseInt(durationStr);\n } catch (Exception e) {\n Log.e(TAG, \"MediaMetadataRetriever error, use estimated duration\", e);\n }\n if (duration <= 0) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Video duration <= 0 : \");\n stringBuilder.append(duration);\n Log.w(tag, stringBuilder.toString());\n }\n if (this.mCurrentVideoValues == null) {\n generateVideoFilename(this.mProfile.fileFormat);\n }\n if (this.mCurrentVideoValues != null) {\n this.mCurrentVideoValues.put(\"_size\", Long.valueOf(new File(this.mCurrentVideoFilename).length()));\n this.mCurrentVideoValues.put(InfoTable.DURATION, Long.valueOf(duration));\n if (needAddToMediaSaver()) {\n getServices().getMediaSaver().addVideo(this.mCurrentVideoFilename, this.mCurrentVideoValues, getVideoSavedListener(), this.mContentResolver);\n }\n logVideoCapture(duration);\n } else {\n return;\n }\n }\n this.mCurrentVideoValues = null;\n }", "public VideoDefinition getPreferredVideoDefinition();", "public interface VideoContract {\n interface P extends VideoControl{\n void onCreate(Context context);\n void setBuilder(VideoBuilder builder);\n void onPause();\n void onResume();\n void onDestroy();\n void playOrPause();\n void onViewDownTouch();\n void stopHideControlRunnable();\n void startHideControlRunnable();\n }\n interface V extends VideoControl{\n void showNotFoundVideo();\n //是否显示播放的按钮,则是在暂停的时候显示\n void setIsShowPlayIcon(boolean isShow);\n void setTimeTotal(int seconds);\n void setBufferingUpdatePosition(int seconds);\n void setTimeCurrent(int seconds);\n void playCompleteCleanFlags();\n void setTitle(String title);\n void showControlView();\n void hideControlView();\n }\n interface VideoControl {\n void seekToSecond(int seconds);\n void pauseVideo();\n void resumeVideo();\n void stopVideo();\n void playVideo(String url);\n }\n}", "@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }", "public Video( int arg1 ) { \n\t\tsuper( );\n\t}", "public boolean videoPreviewEnabled();", "@SuppressLint(\"NewApi\") @Override\n\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\tplayer = mp;\n\t\t\tpb.setVisibility(View.GONE);\n\t\t\t//img_volumvideo.setVisibility(View.VISIBLE);\n\t\t\t mp.setVideoScalingMode(MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING);\n\t\t\t\tStringBuffer sbf = new StringBuffer();\n\t\t\t\tsbf.append(Constant.AppVideoApi);\n\t\t\t\tsbf.append(\"offer_id=\"\n\t\t\t\t\t\t+AppofferUtil.getIntsance().getList().get(0).getOffer_id());\n\t\t\t\tsbf.append(\"&dev_id=\" + AppofferUtil.getIntsance().getList().get(0).getDev_id());\n\t\t\t\tsbf.append(\"&app_id=\" + AppofferUtil.getIntsance().getList().get(0).getApp_id());\n\t\t\t\tsbf.append(\"&is_integral=\" + AppofferUtil.getIntsance().getList().get(0).getIs_integral());\n\t\t\t\tsbf.append(\"&ad_type=\" + AppofferUtil.getIntsance().getList().get(0).getApp_type());\n\t\t\t\tsbf.append(\"&android_id=\" + Constant.getAndroidID(AlertVideoActivity.this));\n\t\t\t\tTapfunsCommandExecute.getInstance().executeGet(AlertVideoActivity.this, sbf.toString(),\n\t\t\t\t\t\tnew RequestCallBack() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void getRequestResult(String command) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tTapfunsLogUtil.logI(command);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t mp.setOnInfoListener(new MediaPlayer.OnInfoListener() {\n\t\t\t\t\t @Override\n\t\t\t\t\t public boolean onInfo(MediaPlayer mp, int what, int extra) {\n\n\t\t\t\t\t if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) {\n\t\t\t\t\t // video started\n\t\t\t\t\t videoView.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t return false;\n\t\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t mp.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t // video started\n\t\t\t\t\t videoView.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\t}\n\t\t\t\t}); \n\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \tsetContentView(R.layout.video_info);\n \t\n \tBundle extras = getIntent().getExtras();\n \tfinal Integer pos = extras.getInt(\"video_pos\", 0);\n \t\n \t\n \tswitch (pos) {\n \t\tcase 0: \n \t\t\ttitle = \"Title\";//(String) getResources().getText(R.string.v1_title);\n \t\t\tdescription = \"Description\";// (String) getResources().getText(R.string.v1_description);\n \t\t\turl = \"URL\";//(String) getResources().getText(R.string.v1_url);\n \t\t\thash = \"\";//(String) getResources().getText(R.string.v1_hash);\n \t\t\ttracker = \"\";//(String) getResources().getText(R.string.v1_tracker);\n \t\t\tdestination = \"\";// (String) getResources().getText(R.string.v1_destination);\n\n \t}\n \t\n \tTextView t = (TextView) findViewById(R.id.title);\n \tt.setText(title);\n \tt = (TextView) findViewById(R.id.description);\n \tt.setText(description);\n\n \tButton b_play = (Button) findViewById(R.id.b_play);\n \t \n \tb_play.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \tIntent intent = new Intent(getBaseContext(), VideoPlayerActivity.class);\n \t \tintent.putExtra(\"hash\", hash);\n \t \tintent.putExtra(\"tracker\", tracker);\n \t \tintent.putExtra(\"destination\", destination);\n \t \tstartActivity(intent);\n \t }\n \t});\n \t\n \tButton b_web_info = (Button) findViewById(R.id.b_web_info);\n \t \t \n \tb_web_info.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \t//Start video\n \t \tIntent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n \t \tstartActivity(intent);\n \t }\n \t});\n }", "public void setVideoPort(int port);", "public interface LiveVideoAllCallBack extends VideoAllCallBack{\n //暂时保留standardVideo方法\n //点击了空白区域开始播放\n void onClickStartThumb(String url, Object... objects);\n\n //点击了播放中的空白区域\n void onClickBlank(String url, Object... objects);\n\n //点击了全屏播放中的空白区域\n void onClickBlankFullscreen(String url, Object... objects);\n}", "protected abstract VideoSampleDescriptionEntry getVideoSampleDescriptionEntry();", "public ContentCard video(String video) {\n this.video = video;\n return this;\n }", "List<Video> getAll();", "private void initVideoPath() {\n File file = new File(Environment.getExternalStorageDirectory(),\n \"/Pictures/QQ/pandavideo_cut.mp4\");\n String videoPath = file.getAbsolutePath();\n\n// Toast.makeText(this,\"文件是否存在\"+file.exists(),Toast.LENGTH_LONG).show();\n Toast.makeText(this,\"文件路径\"+videoPath,Toast.LENGTH_LONG).show();\n mVideoView.setVideoPath(videoPath);\n mVideoView.start();\n\n }", "@Override\n public void onVideoSizeChanged(MediaPlayer player, int width, int height) {\n \n }", "public int getVideos() {\n return videos;\n }", "public void setVideoDevice(String id);", "private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }", "public Videojuegos() {\n initComponents();\n }", "public abstract void videoMessage(Message m);", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t\tex = getIntent().getExtras();\n\t\t \n\n\t HashMap<String, String> mp = new HashMap<String, String>();\n\t\t mp.put(\"tag\", \"realVid\");\n\t\t if(ex.getString(\"cat\").equals(new String(\"ppv\")))\n\t\t {\n\t\t\t String vidttl =\"\";\n String vidtitle = ex.getString(\"title\");\n\t\t \t int pos = vidtitle.indexOf(\"Pay Per View\");\n\t\t\t\tif(pos!= -1)\n\t\t\t\t\tvidttl = vidtitle.substring(0,pos-1);\n\t\t\t\tmp.put(\"title\",vidttl);\n\t\t }\n\t\t else\n\t\t\t mp.put(\"title\", ex.getString(\"title\"));\n\t\t GetRealVidData gvd = new GetRealVidData(mp,this);\n\t\t gvd.execute(serverUrl);\n\t\t youTubeView1 = (YouTubePlayerView)findViewById(R.id.youtube_view1);\n\t\t \n\t\t \n\t\t/*\n\t\t if(ex!=null)\n\t\t \tvid = ex.getString(\"url\");\n\t\t//TextView tv = (TextView)findViewById(R.id.textView1);\n\t\t//VideoView videoView = (VideoView)findViewById(R.id.videoV);\n\t\tint pos = vid.indexOf(\"?rel\");\n\t\tif(pos!= -1)\n\t\t\tvidid = vid.substring(0, pos);\n\t\telse \n\t\t\tvidid = vid;\n\t\t\n\t\tVIDEO = vidid;\n YouTubePlayerView youTubeView = (YouTubePlayerView)findViewById(R.id.youtube_view);\n */\n // youTubeView.initialize(DEVELOPER_KEY, this);\n\n }", "public java.lang.String getVideoGuid() {\n return videoGuid;\n }", "public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.pro);\n Button info=(Button)findViewById(R.id.info);\n Button back=(Button) findViewById(R.id.back);\n Button power=(Button) findViewById(R.id.power);\n Button home=(Button) findViewById(R.id.home);\n Button next=(Button) findViewById(R.id.next);\n // pro=(VideoView)findViewById(R.id.videoView1);\n \n MediaController mc = new MediaController(this);\n \n VideoView vv = (VideoView)this.findViewById(R.id.video);\n vv.setMediaController(mc);\n String fileName = \"android.resource://\" + getPackageName() + \"/\" + R.raw.backhand_male;\n vv.getDuration();\n vv.setVideoURI(Uri.parse(fileName));\n \n vv.start();\n vv.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n \n public void onCompletion(MediaPlayer mp) {\n // not playVideo\n // playVideo();\n\n \tIntent intent = new Intent(Probackhandmale.this, Probackhandmale.class);\n \t startActivity(intent);\n \t finish();\n }\n });\n \n power.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \t power(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n \n back.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \t back(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n next.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n \t \n \t Context context = getApplicationContext();\n \tCharSequence text = \"Please press back then proceed to record a video.\";\n \tint duration = Toast.LENGTH_SHORT;\n \tToast toast = Toast.makeText(context, text, duration);\n \ttoast.show();\n \t \t \t \n\t \t }\n\t });\n info.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \tinfo(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n home.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n \t home(); \n \t \n \t \t \t \n \t }\n });\n \n \t }", "public Video toVideo(VideoParam videoParam) {\r\n Video video = new Video();\r\n if (null == videoParam) return video;\r\n video.setId(videoParam.getId());\r\n video.setTitle(videoParam.getTitle());\r\n video.setShortTitle(videoParam.getShortTitle());\r\n video.setDesc(videoParam.getDesc());\r\n video.setShareDesc(videoParam.getShareDesc());\r\n video.setChannel(videoParam.getChannel());\r\n video.setSubChannel(videoParam.getSubChannel());\r\n video.setCid(videoParam.getCid());\r\n if (null != videoParam.getVideoType()) {\r\n VideoContentType videoContentType = VideoContentType.findByValue(videoParam.getVideoType());\r\n video.setVideoType(null == videoContentType ? VideoContentType.OTHER : videoContentType);\r\n }\r\n video.setDrmFlag(videoParam.getDrmFlag());\r\n video.setIsOverView(videoParam.getIsOverView());\r\n video.setPublishSetting(videoParam.getPublishSetting());\r\n video.setShieldAreaType(videoParam.getShieldAreaType());\r\n video.setShieldCountries(this.getCountrySubdivisionCodeSet(videoParam.getShieldCountries()));\r\n video.setRecommend2Homepage(videoParam.getRecommend2Homepage());\r\n video.setAid(null == videoParam.getAid() ? 0L : videoParam.getAid());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setDeleted(videoParam.getDeleted());\r\n video.setPlayPlatforms(this.getPlatformSet(videoParam.getPlayPlatforms()));\r\n video.setVrsPlayPlatforms(this.getPlatformSet(videoParam.getVrsPlayPlatforms()));\r\n if (!StringUtils.isEmpty(videoParam.getImages())) {\r\n Type type = new TypeReference<Map<String, ImageUrlExt>>() {\r\n }.getType();\r\n Map<String, ImageUrlExt> coverImage = JSONObject.parseObject(videoParam.getImages(), type);\r\n video.setImages(coverImage);\r\n }\r\n video.setIsClone(videoParam.getClone());\r\n video.setDuration(videoParam.getDuration());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setPeriod(videoParam.getPeriod());\r\n if (null != videoParam.getContentRating()) {\r\n ContentRating contentRating = ContentRating.findByValue(videoParam.getContentRating());\r\n video.setContentRating(null == contentRating ? ContentRating.ALL : contentRating);\r\n }\r\n video.setIsPay(videoParam.getIsPay());\r\n video.setPayPlatforms(this.getPlatformSet(videoParam.getPayPlatforms()));\r\n video.setPublishTime(videoParam.getPublishTime());\r\n// video.setMarkCountry(this.getCountrySubdivisionCodeSet(videoParam.getMarkCountry()));\r\n video.setReasonOfExReview(videoParam.getReasonOfExReview());\r\n video.setStarLevel(videoParam.getStarLevel());\r\n video.setSource(videoParam.getSource());\r\n video.setVideoAuthor(videoParam.getVideoAuthor());\r\n video.setStatements(Arrays.asList(new String[]{videoParam.getStatement(), videoParam.getStatement2()}));\r\n video.setCommentFlag(videoParam.isCommentFlag());\r\n video.setDownloadPlatforms(this.getPlatformSet(videoParam.getDownloadPlatforms()));\r\n video.setRecordId(videoParam.getPlaybackId());\r\n video.setHighlightId(videoParam.getHighlightId());\r\n video.setSelfProducedProgramId(videoParam.getSelfProducedProgramId());\r\n video.setCloneAids(new ArrayList<>(this.getLongSet(videoParam.getCloneAids())));\r\n video.setMatchIds(Sets.newHashSet(LeStringUtils.commaString2LongList(videoParam.getMatchIds())));\r\n video.setRelatedContents(LeStringUtils.commaString2LongList(videoParam.getRelatedContents()));\r\n video.setAllImages(LeStringUtils.commaString2StringList(videoParam.getAllImages()));\r\n return video;\r\n }", "public Video( int arg1, int arg2 ) { \n\t\tsuper( );\n\t}", "@Override\n\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width,\n\t\t\t\t\tint height) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width,\n\t\t\t\t\tint height) {\n\t\t\t\t\n\t\t\t}", "private void onPlayVideoClick() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(Uri.parse(\"file://\" + mediaPath), \"video/mp4\");\n startActivity(intent);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tx.view().inject(this);\n\t\tcontext= this;\n\t\tlayoutInflater = LayoutInflater.from(this);\n\t\tIntent intent = getIntent();\n\t\tString title = intent.getStringExtra(\"title\");\n\t\tString url = intent.getStringExtra(\"url\");\n\t\t vid = intent.getStringExtra(\"vid\");\n\t\tif(intent.hasExtra(\"pic\"))\n\t\tpic = intent.getStringExtra(\"pic\");\n\t\t//is_vip = intent.getStringExtra(\"v_is_vip\");\n\t\timageLoader = ImageLoader.getInstance();\n\t\toptions = UsedUtil.getDisplayImageOptions();\n\t\thandler.sendMessage(handler.obtainMessage(10));\n\t\timageWidth = (DeviceInfo.screenWidth - DeviceInfo.dip2px(31))/2;\n\t\timageHeight = (int)(imageWidth*0.618);\n\t\tif(title != null)\n\t\t\ttv_title.setText(title);\n\t\turl = getURL(url);\n\t\tcf = this.getResources().getConfiguration();\n\t\tUri uri = Uri.parse(url);\n\t\tvideo.setVideoURI(uri);\n\t\tvideo.setOnPreparedListener(this);\n\t\tmMediaController = new MediaController(this);\n\n\t\tvideo.setMediaController(mMediaController);\n\t\tvideo.setFocusableInTouchMode(false);\n\t\tvideo.setFocusable(false);\n\t\tvideo.setEnabled(false);\n\t\t//videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/\" + R.raw.shouyekaichang));\n\t\t//videoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_LOW);//高画质\n\n\n\t\tvideo.setPlayPauseListener(new CustomVideoView.PlayPauseListener() {\n\n\t\t\tpublic void onPlay() {\n\t\t\t\tLogUtil.e(\"video is playing\");\n\t\t\t\tiv_paly.setVisibility(View.GONE);\n\t\t\t\tiv_pic.setVisibility(View.GONE);\n\t\t\t\tvideoPause();\n\t\t\t}\n\n\t\t\tpublic void onPause() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//LogUtil.e(\"video is paused\");\n\t\t\t\tiv_paly.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t});\n\t\tvideo.start();\n\t\tvideo.pause();\n\t\t//video.requestFocus();\n\n\n\t\tIMSI = UsedUtil.getIMSI(this);\n\t\tLogUtil.e(\"vid==\" + vid+\",imsi=\"+IMSI);\n\t\tRequestParams params = new RequestParams(HttpUtil.Details_URL);\n\t\tparams.addBodyParameter(\"vid\",vid);\n\t\tparams.addBodyParameter(\"u_imsi\",IMSI);\n\n\t\thttpPost(params, 101);\n\n\t\tadapter = new ArrayAdapter<HolderInfo>(layoutInflater.getContext(),\n\t\t\t\tR.layout.item_gridview_home) {\n\n\t\t\tpublic android.view.View getView(int position,\n\t\t\t\t\t\t\t\t\t\t\t android.view.View convertView, android.view.ViewGroup parent) {\n\t\t\t\tViewHolder holder = null;\n\t\t\t\tif (convertView == null) {\n\t\t\t\t\tconvertView = layoutInflater.inflate(R.layout.item_gridview_home, null);\n\t\t\t\t\tholder = new ViewHolder();\n\t\t\t\t\tx.view().inject(holder, convertView);\n\t\t\t\t\tconvertView.setTag(holder);\n\t\t\t\t} else {\n\t\t\t\t\tholder = (ViewHolder) convertView.getTag();\n\t\t\t\t}\n\t\t\t\tHolderInfo itm = getItem(position);\n\t\t\t\tholder.initview(itm);\n\n\t\t\t\treturn convertView;\n\t\t\t}\n\t\t};\n\t}", "private VideoMode getVideoMode( ){\n\t\t \n\n\t\t\n\t\tif (!this.device.isFile() )\n//\t\t\treturn stream.getSensorInfo().getSupportedVideoModes().get(0);\n//\t\telse\n\t\t\treturn stream.getSensorInfo().getSupportedVideoModes().get(5);\n\t\treturn null;\n\t}", "@Override\n public void onListItemClick(Video clickedVideo) {\n }", "public boolean videoDisplayEnabled();", "public boolean addVideo(Video newVideo)throws NullPointerException;" ]
[ "0.7002911", "0.6695153", "0.66124016", "0.66061735", "0.66016275", "0.6569103", "0.6554679", "0.65487874", "0.65439796", "0.6537337", "0.6521452", "0.6510323", "0.6504754", "0.65039384", "0.65034056", "0.6480687", "0.6470173", "0.6457214", "0.6423794", "0.6415498", "0.6405285", "0.63754123", "0.6360265", "0.6357654", "0.6340333", "0.63103527", "0.6304491", "0.6299976", "0.6287813", "0.62810063", "0.6267843", "0.62615824", "0.6261198", "0.62514144", "0.6248816", "0.6235404", "0.6205566", "0.62048477", "0.61958873", "0.61833245", "0.6179117", "0.6175264", "0.61747587", "0.6151864", "0.6150672", "0.61452204", "0.61354953", "0.61328065", "0.6130899", "0.61304927", "0.60793877", "0.6076957", "0.60760975", "0.607262", "0.6066399", "0.60642093", "0.6058766", "0.60469943", "0.6031941", "0.60033447", "0.59988135", "0.5994406", "0.5989942", "0.5987191", "0.5985717", "0.5970814", "0.5970288", "0.5962393", "0.59618837", "0.59361917", "0.5929472", "0.5913615", "0.59039223", "0.58904386", "0.5885934", "0.5871547", "0.5868942", "0.5862221", "0.5856555", "0.5855937", "0.5844521", "0.58256006", "0.5825288", "0.582224", "0.58210653", "0.5820548", "0.581985", "0.58166486", "0.58026737", "0.5798197", "0.5789809", "0.57840484", "0.5781252", "0.5781252", "0.5778766", "0.5775246", "0.5767103", "0.5761045", "0.5757124", "0.57564396" ]
0.6694214
2
This next 2 methods are to get the elements of the csv where all the information for products and categories are
static public List<Category> categoryReader() throws IOException { BufferedReader csvReader = new BufferedReader(new FileReader(CATEGORIES_REFERENCE_FILE)); String row; List<Category> dataList = new ArrayList<>(); row = csvReader.readLine(); while ((row = csvReader.readLine()) != null){ Category data = new Category(); String[] datas = row.split(SEPARATOR_COMA); data.setCategory_id(Integer.parseInt(datas[0])); data.setName(datas[1]); dataList.add(data); } return dataList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public List<Product> productReader() throws IOException {\n BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE));\n String row;\n List<Product> dataList = new ArrayList<>();\n\n row = csvReader.readLine();\n while ((row = csvReader.readLine()) != null){\n\n Product data = new Product();\n //I separate the row data by a separator, a coma in this case and add all the data in the class\n String[] datas = row.split(SEPARATOR_COLON);\n\n data.setProduct_id(Integer.parseInt(datas[0]));\n data.setName(datas[1]);\n data.setDescription(datas[2]);\n data.setCategory_id(Integer.parseInt(datas[3]));\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/dd/yyyy\");\n\n //Since some dates had just one number for the month, I had to use this to add a 0\n //to make all the dates the same length after getting rid of the 0:01 that was not necessary\n String[] creationDate = datas[4].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setCreation_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[5].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setUpdate_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[6].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setLast_purchased_date(LocalDate.parse(creationDate[0], formatter));\n\n dataList.add(data);\n\n }\n return dataList;\n\n }", "public void readToCsv() {\r\n\r\n String seperator = \";\";\r\n\r\n try (BufferedReader reader = new BufferedReader(\r\n new FileReader(\"Products.csv\"))){\r\n\r\n String line = null;\r\n for(int i=1; (line = reader.readLine()) != null; i++) {\r\n String[] fields = line.split(seperator, -1);\r\n\r\n // For nutrients objects to read\r\n if(fields.length ==5){\r\n Nutrient object= new Nutrient();\r\n object.name = fields[0];\r\n object.price = Double.parseDouble(fields[1]);\r\n object.tag=fields[2];\r\n object.content = fields[3];\r\n object.numOfProduct = Integer.parseInt(fields[4]);\r\n //object.addFeatures(object.name,object.price,object.size,object.gender,object.tag,object.content,object.numOfProduct);\r\n NutrientList.add(object);\r\n allProducts.add(object);\r\n }\r\n // For Cosmetics objects to read\r\n if (fields.length==6){\r\n Cosmetics object2=new Cosmetics();\r\n object2.name = fields[0];\r\n object2.price = Double.parseDouble(fields[1]);\r\n object2.gender = fields[2];\r\n object2.tag=fields[3];\r\n object2.content = fields[4];\r\n object2.numOfProduct = Integer.parseInt(fields[5]);\r\n //object2.addFeatures(object2.name,object2.price,object2.size,object2.gender,object2.tag,object2.content,object2.numOfProduct);\r\n CosmeticsList.add(object2);\r\n allProducts.add(object2);\r\n }\r\n // For clothes objects to read\r\n if(fields.length ==7){\r\n\r\n Clothes object3=new Clothes();\r\n object3.name = fields[0];\r\n object3.price = Double.parseDouble(fields[1]);\r\n object3.size= fields[2];\r\n object3.tag=fields[4];\r\n object3.content = fields[5];\r\n object3.numOfProduct = Integer.parseInt(fields[6]);\r\n object3.addFeatures(object3.name,object3.price,object3.size,\"E\",object3.tag,object3.content,object3.numOfProduct);\r\n ClothesList.add(object3);\r\n allProducts.add(object3);\r\n }\r\n\r\n }}\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void writeToCsv()\r\n {\r\n //listeye urunler eklendiginde cagrılacak (Products.csv)\r\n PrintWriter pWrite = null;\r\n try {\r\n pWrite = new PrintWriter(new File(\"Products.csv\"));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n StringBuilder sBuilder = new StringBuilder();\r\n for (Product theProduct : allProducts ) {\r\n if (theProduct.getSize() == null && theProduct.getGender()!= null){\r\n sBuilder.append(theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else if(theProduct.getGender() == null && theProduct.getSize() == null){\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getTag() + \";\"+\r\n theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else {\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\" + theProduct.getSize() + \";\"\r\n + (theProduct).getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n\r\n }\r\n pWrite.write(sBuilder.toString());\r\n pWrite.flush();\r\n pWrite.close();\r\n }", "public TreeSet<Product> readCSV() throws IOException, NumberFormatException {\n\r\n TreeSet<Product> products = new TreeSet<>();\r\n\r\n try (BufferedReader reader = new BufferedReader(new FileReader(\"src/Collection/file.csv_2.txt\"));) {\r\n while ((line = reader.readLine()) != null) {\r\n String[] row = line.split(\",\");\r\n\r\n Location location = new Location(\r\n Double.parseDouble(row[14]),\r\n Integer.parseInt(row[15]),\r\n Float.parseFloat(row[16]),\r\n row[17]);\r\n Address address = new Address(\r\n row[12],\r\n row[13],\r\n location\r\n );\r\n Organization organization = new Organization(\r\n Integer.parseInt(row[8]),\r\n row[9],\r\n row[10],\r\n OrganizationType.valueOf(row[11]),\r\n address\r\n );\r\n Coordinates coordinates = new Coordinates(\r\n Float.parseFloat(row[3]),\r\n Double.parseDouble(row[4])\r\n );\r\n try {\r\n\r\n\r\n Product product = new Product (\r\n Integer.parseInt(row[0]),\r\n row[1],\r\n LocalDate.parse(row[2].replace(\"/\", \"-\")),\r\n coordinates,\r\n Integer.parseInt(row[5]),\r\n row[6],\r\n UnitOfMeasure.valueOf(row[7]),\r\n organization\r\n );\r\n products.add(product);}\r\n catch (NumberFormatException e){\r\n System.out.println(\"wrong format\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n products.forEach(System.out::println);\r\n return products;\r\n }", "public void readInCategories() {\n // read CSV file for Categories\n allCategories = new ArrayList<Category>();\n InputStream inputStream = getResources().openRawResource(R.raw.categories);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] categoryInfo = (String[]) scoreList.get(i);\n\n // inputs to Category constructor:\n // String name, int smallPhotoID, int bannerPhotoID\n\n // get all image IDs according to the names\n int smallPhotoID = context.getResources().getIdentifier(categoryInfo[1], \"drawable\", context.getPackageName());\n int bannerPhotoID = context.getResources().getIdentifier(categoryInfo[2], \"drawable\", context.getPackageName());\n allCategories.add(new Category(categoryInfo[0],smallPhotoID, bannerPhotoID));\n\n //System.out.println(\"categoryInfo: \" + categoryInfo[0] + \" \" + categoryInfo[1] + \" \" + categoryInfo[2]);\n }\n }", "public static StockSetData getStockSetDataFromCSV(String filePath) {\r\n int TOP_HEADER_ROW_INDEX = 4;\r\n // Create our BuyOptionObject\r\n StockSetData stockSetData = new StockSetData();\r\n // Get all the data as records\r\n List<List<String>> records = getCSV2(filePath);\r\n // Label the columns\r\n List<String> topHeader = records.get(TOP_HEADER_ROW_INDEX);\r\n List<String> nameHeader = records.get(TOP_HEADER_ROW_INDEX + 1);\r\n\r\n // loop horizontally through the elements in the top header\r\n for (int i = 0; i < topHeader.size(); i++) {\r\n // decide the type of column\r\n\r\n if (topHeader.get(i).equals(\"l\")) {\r\n ArrayList<String> loaderArray = new ArrayList<>();\r\n for (int j = TOP_HEADER_ROW_INDEX + 2; j < records.size(); j++) {\r\n loaderArray.add(records.get(j).get(i));\r\n }\r\n ColumnAndName columnAndName = new ColumnAndName(loaderArray ,nameHeader.get(i));\r\n stockSetData.getLabelValues().add(columnAndName);\r\n }\r\n if (topHeader.get(i).equals(\"s\")) {\r\n ArrayList<String> loaderArray = new ArrayList<>();\r\n for (int j = TOP_HEADER_ROW_INDEX + 2; j < records.size(); j++) {\r\n loaderArray.add(records.get(j).get(i));\r\n }\r\n ColumnAndName columnAndName = new ColumnAndName(loaderArray ,nameHeader.get(i));\r\n stockSetData.getSortingValues().add(columnAndName);\r\n }\r\n if (topHeader.get(i).equals(\"f\")) {\r\n ArrayList<String> loaderArray = new ArrayList<>();\r\n for (int j = TOP_HEADER_ROW_INDEX + 2; j < records.size(); j++) {\r\n loaderArray.add(records.get(j).get(i));\r\n }\r\n ColumnAndName columnAndName = new ColumnAndName(loaderArray ,nameHeader.get(i));\r\n stockSetData.getFitnessValues().add(columnAndName);\r\n }\r\n\r\n\r\n }\r\n\r\n return stockSetData;\r\n }", "public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}", "CSV createCSV();", "public ArrayList<Product> getProductList(){\n \n ArrayList<Product> productList = new ArrayList<Product>();\n try { \n //connecting java with database\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1/doki_electronics\", \"root\", \"\");\n \n //filter category\n if(flag==1){\n if(txtFilter.getText().equals(\"1\") || txtFilter.getText().equals(\"2\") || txtFilter.getText().equals(\"3\")){\n setQueryTblProduct(\"SELECT * FROM Products WHERE CategoryID = ?\");\n }\n }\n \n ps = con.prepareStatement(getQueryTblProduct());\n //filter category\n if(txtFilter.getText().equals(\"1\")){\n ps.setInt(1, 1);\n } else if(txtFilter.getText().equals(\"2\")){\n ps.setInt(1, 2);\n } else if(txtFilter.getText().equals(\"3\")){\n ps.setInt(1, 3);\n }\n rs = ps.executeQuery();\n Product product;\n \n while(rs.next()){\n product = new Product(rs.getInt(\"ProductID\"),rs.getString(\"ProductName\"),rs.getString(\"Description\"),rs.getInt(\"UnitPrice\"),rs.getInt(\"Stock\"),rs.getBytes(\"Picture\"),rs.getInt(\"CategoryID\"));\n productList.add(product); \n }\n }\n catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (ClassNotFoundException ex) {\n System.out.println(ex.getMessage());\n }\n return productList;\n }", "private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}", "private static void getAttributes(productCategory product) {\n PreparedStatement stmt = null;\n ResultSet myRst = null;\n\n try {\n //we can use DESCRIBE query if we hard code the tale name.\n //swap the parameterized statement for a normal statement\n //object since we will not take dynamic input\n\n //String pstmt = \"DESCRIBE ?;\";\n\n String pstmt = \"SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ?\";\n\n stmt = DBConnectionManager.con.prepareStatement(pstmt);\n stmt.setString(1, product.categoryName.getValue());\n myRst = stmt.executeQuery();\n\n while (myRst.next()) {\n product.attributes.add(myRst.getString(4));\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n if (myRst != null) myRst.close();\n } catch (Exception ignored) {\n }\n try {\n if (stmt != null) stmt.close();\n } catch (Exception ignored) {\n }\n }\n\n }", "public Set<ProductData> getAllProductData() {\n\t\tSet<ProductData> data = new HashSet<>();\n\n\t\t//Read ERP.txt file\n\t\ttry (Scanner reader = new Scanner(SupplierIntegrator.class.getResourceAsStream(\"ERP.txt\"))) {\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\t//Read each line. Skip it, if it begins with the comment symbol '#'\n\t\t\t\tString line = reader.nextLine();\n\t\t\t\tif (line.startsWith(\"#\")) continue;\n\n\t\t\t\t//Read the information from the line using a new scanner with ':' as its delimiter\n\t\t\t\tScanner lineReader = new Scanner(line);\n\t\t\t\tlineReader.useDelimiter(\":\");\n\t\t\t\tint id = lineReader.nextInt();\n\t\t\t\tString name = lineReader.next();\n\t\t\t\tdouble price = lineReader.nextDouble();\n\n\t\t\t\t//Add product data\n\t\t\t\tdata.add(new ProductData(id, name, price));\n\t\t\t}\n\t\t}\n\n\t\treturn data;\n\t}", "public void listContent(String filter){\r\n \r\n try {\r\n // Clear Data\r\n int lastRow = tblContentList.getRowCount() - 1;\r\n while (lastRow > -1) {\r\n modelContentList.removeRow(lastRow);\r\n lastRow--;\r\n }\r\n \r\n // Add Userinfo\r\n int curRow = 0;\r\n String idx;\r\n for (Product product : Product.listProduct(filter, \"category, name\")) {\r\n \r\n try{\r\n modelContentList.addRow(new Object[0]);\r\n idx = IDPF_PRODUCT + IDFMT_PRODUCT.format(product.getId());\r\n modelContentList.setValueAt(idx, curRow, 0);\r\n\r\n modelContentList.setValueAt(product.getCode(), curRow, 1);\r\n modelContentList.setValueAt(product.getName(), curRow, 2);\r\n\r\n Category category = new Category(product.getCategory()); \r\n modelContentList.setValueAt(category.getName(), curRow, 3); \r\n\r\n modelContentList.setValueAt(DFMT_PRICE.format(product.getCost()), curRow, 4);\r\n modelContentList.setValueAt(DFMT_PRICE.format(product.getPrice()), curRow, 5);\r\n\r\n modelContentList.setValueAt(product.getDescription(), curRow, 6);\r\n modelContentList.setValueAt(product.getId(), curRow, 7);\r\n modelContentList.setValueAt(product.getStatus(), curRow, 8);\r\n\r\n curRow++;\r\n }catch(Exception e){\r\n \r\n }\r\n \r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n }", "public void createFullFeed() {\n\n\t\tList<ProductDetailsDocument> productDataFromMongo = getProductListFromDb();\n\t\ttry {\n\t\t\tcreateCsvForProduct(productDataFromMongo);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void addProducts(ArrayList<String> rawData){\n\t\tfor(int i = 0; i < rawData.size(); i++) {\n\t\t\t// split row at every space and store in array temp\n\t\t\tString[] temp = rawData.get(i).split(\"\\\\s+\");\n\t\t\t\n\t\t\tString name = \"\";\n\t\t int quantity = 0;\n \t\tfloat price = 0;\n \t\tboolean imported = false;\n \n // quantity is always the first\n \t\tquantity = Integer.parseInt(temp[0]);\n \t\tprice = Float.parseFloat(temp[temp.length-1]);\n \t\t\n \t\t// don't need to check fist item (quantity) and last item (price)\n \t\tfor (int j=1; j<temp.length-2; j++){\n \t\t if (temp[j].equals(\"imported\")){\n \t\t imported = true;\n \t\t if (j == 1){ // leave imported at the begining \n \t\t name = name + temp[j] + \" \";\n \t\t } \n else{ // move it to the begining \n \t\t name = \"imported \"+name;\n \t\t }\n \t\t }\n \t\t else{\n \t\t name = name + temp[j] + \" \";\n \t\t }\n \t\t \n \t\t}\n \t\t// removes the last character in the name (the extra space)\n \t\tname = name.substring(0, name.length()-1);\n \t\t\n \t\tboolean notExempt = !productCategory.getExemptCategory(name);\n \t\t\n \t\tSystem.out.println(\"Product: \"+name+\" and its notExempt status is \"+notExempt+\", imported: \"+imported);\n \t\tfloat totalTax = tax.calcTax(quantity, price, notExempt, imported);\n \t\tcart.addProduct(name, quantity, price, imported, totalTax);\n\t\t}\n\t}", "private List<Product> extractProducts() {\r\n\t\t//load products from hidden fields\r\n\t\tif (this.getListProduct() != null){\r\n\t\t\tfor(String p : this.getListProduct()){\r\n\t\t\t\tProduct product = new Product();\r\n\t\t\t\tproduct.setId(Long.valueOf(p));\r\n\t\t\t\tthis.products.add(product);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.products;\r\n\t}", "public void LoadFromCSV(){\n InputStream inputStream = getResources().openRawResource(R.raw.movielist);\n CSVinput csVinput = new CSVinput(inputStream);\n final List<String[]> movList = csVinput.read();\n\n for(String[] data : movList) {\n itemArrAdapt.add(data);\n }\n }", "private static String constructValues(productCategory product,ArrayList<String> attributes,String partNumber)\n {\n //Since we will already have INSERT INTO *Category* we can start with the '('\n\n /* STMT: INSERT INTO *Category* */\n StringBuilder val = new StringBuilder(\" (\");\n\n /* STMT: INSERT INTO *Category* ( */\n\n val.append(product.categoryName.getValue());\n if(attributes.size() > 0)\n {\n val.append(\"_Part_Number,\");\n }\n else\n {\n val.append(\"_Part_Number\");\n }\n\n //the attributes array holds the names of\n //each column in the specified category table\n //here we add them all to the string in the\n //proper format\n for(int i=0; i<attributes.size(); i++)\n {\n attributes.set(i,attributes.get(i).replace(\" \",\"_\"));\n val.append(attributes.get(i));\n //If we are at the last attribute we\n //don't need to add the extra comma\n if(i != attributes.size()-1)\n {\n val.append(\",\");\n }\n\n }\n\n /* STMT: INSERT INTO *Category* (*All columns in table* */\n\n //Close the columns and start values\n val.append(\") VALUES ('\");\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES (' */\n\n //Since attributes does not contain the part\n //number we have to add that separately\n val.append(partNumber);\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber* */\n\n //It is possible that a product category can\n //have no attributes except the part number.\n //if this is the case make sure we don't add\n //the extra comma in the statement\n if(!attributes.isEmpty())\n {\n val.append(\"',\");\n }\n else\n {\n val.append(\"'\");\n }\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber*', */\n\n\n //Now we can get the actual values for each column\n //by pulling the values from the productCategory\n //'product' object's 'attributes' array\n for(int i=0; i<product.attributes.size(); i++)\n {\n val.append(\"'\");\n val.append(product.attributes.get(i));\n //If we are at the last value make sure\n //we don't add the extra comma\n if(i != product.attributes.size()-1)\n {\n val.append(\"',\");\n }\n else\n {\n val.append(\"'\");\n }\n }\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber*,'*All Values*' */\n\n //finally we close the statement\n val.append(\");\");\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber*,'*All Values*'); */\n\n return val.toString();\n }", "public static void getProduto(){\r\n try {\r\n PreparedStatement stmn = connection.prepareStatement(\"select id_produto, codigo, produto.descricao pd,preco, grupo.descricao gd from produto inner join grupo on grupo.id_grupo = produto.idgrupo order by codigo\");\r\n ResultSet result = stmn.executeQuery();\r\n\r\n System.out.println(\"id|codigo|descricao|preco|grupo\");\r\n while (result.next()){\r\n long id_produto = result.getLong(\"id_produto\");\r\n String codigo = result.getString(\"codigo\");\r\n String pd = result.getString(\"pd\");\r\n String preco = result.getString(\"preco\");\r\n String gd = result.getString(\"gd\");\r\n\r\n\r\n\r\n System.out.println(id_produto+\"\\t\"+codigo+\"\\t\"+pd+\"\\t\"+preco+\"\\t\"+gd);\r\n }\r\n\r\n }catch (Exception throwables){\r\n throwables.printStackTrace();\r\n }\r\n\r\n }", "private String IMO_read_file() throws Exception {\n\t\t CSVReader reader = new CSVReader(new FileReader(System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\resources\\\\FileUploadData\\\\test_IMO.csv\"));\n\t\t \n\t\t // this will load content into list\n\t\t List<String[]> li=reader.readAll();\n\t\t System.out.println(\"Total rows which we have is \"+li.size());\n\t\t \n\t\t // create Iterator reference\n\t\t Iterator<String[]>i1= li.iterator();\n\t\t \n\t\t // Iterate all values \n\t\t while(i1.hasNext()){\n\t\t \n\t\t String[] str=i1.next();\n\t\t \n\t\t \n\t\t for(int i=0;i<str.length;i++)\n\t\t{\n\t\t \n\t\t System.out.print(\" IMO \"+str[i]);\n\t\t \n\t\t}\n\t\t System.out.println(\" \");\n\t\t imo_from_spreadsheet = str[0]; \n\t\t\t System.out.println(\"IMO \" + imo_from_spreadsheet); \n\t\t \n\t\t}\n\t\n\t\treturn imo_from_spreadsheet;\n\t\t \n\t }", "private Set<Product> payloadToProductSet(LinkedHashMap body) { //throws Exception {\n //System.out.println(\"body: \" + body.toString());\n ArrayList arrayListProducts = (ArrayList) body.get(\"product\");\n //System.out.println(\"arrayList: \" + arrayListProducts);\n Set<Product> productSet = new HashSet<>();\n// try {\n arrayListProducts.forEach(\n productIndex -> {\n ((HashMap) productIndex).values().forEach(\n productValue -> {\n Product product = new Product();\n TreeMap<Tab, TreeMap<Category, TreeMap<Item, TreeSet<Tag>>>> tabMap = new TreeMap();\n //System.out.println(\"productValue: \" + productValue);\n ((HashMap) productValue).forEach(\n (substanceKey, substanceValue) -> {\n //System.out.println(\"substanceKey: \" + substanceKey);\n //System.out.println(\"substanceValue: \" + substanceValue);\n ((HashMap) substanceValue).values().forEach(\n tabArrayWrapped -> {\n //System.out.println(\"tabArrayWrapped: \" + tabArrayWrapped);\n ((ArrayList) tabArrayWrapped).forEach(\n tabArrayUnwrapped -> {\n //System.out.println(\"tabArrayUnwrapped: \" + tabArrayUnwrapped);\n ((HashMap) tabArrayUnwrapped).forEach(\n (tabKey, tabValue) -> {\n TreeMap<Category, TreeMap<Item, TreeSet<Tag>>> categoryMap = new TreeMap<>();\n //System.out.println(\"tabValue: \" + tabValue);\n ((HashMap) tabValue).values().forEach(\n categoryWrapped -> {\n //System.out.println(\"categoryWrapped: \" + categoryWrapped);\n ((ArrayList) categoryWrapped).forEach(\n categoryUnwrapped -> {\n //System.out.println(\"categoryUnwrapped: \" + categoryUnwrapped);\n ((HashMap) categoryUnwrapped).forEach(\n (categoryKey, categoryValue) -> {\n TreeMap<Item, TreeSet<Tag>> itemMap = new TreeMap();\n //System.out.println(\"categoryValue: \" + categoryValue);\n ((HashMap) categoryValue).values().forEach(\n itemWrapped -> {\n //System.out.println(\"itemWrapped: \" + itemWrapped);\n ((ArrayList) itemWrapped).forEach(\n itemUnwrapped -> {\n\n Item item = new Item();\n //System.out.println(\"itemUnwrapped: \" + itemUnwrapped);\n ((HashMap) itemUnwrapped).forEach(\n (itemKey, itemValue) -> {\n //System.out.println(\"itemKey: \" + itemKey + \" itemValue: \" + itemValue);\n if (itemKey.equals(\"Title\")) {\n item.setName(itemValue.toString());\n }\n if (itemKey.equals(\"Description\")) {\n item.setDescription(itemValue.toString());\n }\n if (itemKey.equals(\"Tag\")) {\n TreeSet<Tag> tagSet = new TreeSet();\n ((ArrayList) itemValue).forEach(tagName -> tagSet.add(new Tag(tagName.toString())));\n itemMap.put(item, tagSet);\n categoryMap.put(new Category(categoryKey.toString()), itemMap);\n tabMap.put(new Tab(tabKey.toString()), categoryMap);\n product.getProduct().put(new Substance(substanceKey.toString()), tabMap);\n productSet.add(product);\n }\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n// }\n// catch (Exception ex){\n// System.out.println(\"Ex: \" + ex.getMessage());\n// }\n\n return productSet;\n }", "public void ach_doc_type_csv_test () {\n\t\t\n\t}", "public String returnAll(String delim)\n {\n String CSV = this.repID + delim +this.plantRegistry + delim +this.domesticOrImported + delim +this.serialNumber + delim +this.beverageType + delim\n +this.brandName + delim +this.fancifulName + delim + this.vintage + delim +this.grapeVarietals\n + this.pHValue + delim + this.wineAppellation + delim + this.alcoholContent+ delim + this.phoneNumber+ delim +\n this.email + \"\\n\";\n return CSV;\n }", "public String getCSVData()\n {\n return (Integer.toString(this.getID()) + \",\" +\n this.getName());\n }", "public void loadListFromCsv() {\n List<Publication> list = new ArrayList<>();\n String line;\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(\"saves/data.csv\"))){\n while ((line = bufferedReader.readLine()) != null){\n String[] attributes = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n String[] formattedAttributes = formatAttributes(attributes);\n Publication book = createPublicationFromAttributes(formattedAttributes);\n list.add(book);\n }\n } catch (IOException e){\n System.out.println(\"IOException occurred: \" + e.getMessage());\n }\n\n this.library = list;\n }", "public static ArrayList<ArrayList<WIFIWeight>> readCombinationCsvFile(String filePath) {\n BufferedReader br = null;\n String line; //line of the file\n ArrayList<WIFIWeight> userInput_SingleLine = null;//ArrayList with all lines.\n ArrayList<ArrayList<WIFIWeight>> allLinesOfTheCombinationCsvFile = new ArrayList<>(); // every inner ArrayList holds the line in WIFIWeight format and every MAC is converted to WIFIWeight, and the Outer Arraylist holds every line\n\n try {\n\n br = new BufferedReader(new FileReader(filePath));\n br.readLine();//Throw title line\n while ((line = br.readLine()) != null) {\n // use comma as separator\n String[] arrayLine = line.split(\",\");//Split each line to parts of properties\n userInput_SingleLine = new ArrayList<>();\n\n int numberOfMACsInLine = Integer.valueOf(arrayLine[theColumnOfNumWIFI]);\n\n for(int i = 0; i < numberOfMACsInLine; i++)\n {\n //Production of information.\n String mac = arrayLine[NumberOfGlobalPropertiesColumn + 1 + i * NumberOfPointPropertiesColumn];//add 1 for get the mac that located after SSID\n double lat = 0;\n double lon = 0;\n double alt = 0;\n int rssi = Integer.valueOf(arrayLine[NumberOfGlobalPropertiesColumn + 3 + i * NumberOfPointPropertiesColumn]);//add 3 for get the mac that located after RSSI\n double weight = 0;\n\n WIFIWeight ww = new WIFIWeight(mac,lat,lon,alt,rssi,weight);\n userInput_SingleLine.add(ww);\n }\n\n allLinesOfTheCombinationCsvFile.add(userInput_SingleLine);\n\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"This file is not exist.\");\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n return allLinesOfTheCombinationCsvFile;\n\n }", "public String[][] getSearchResults(List products, ProductCategoryDAO productCategoryDAO){\n \n String[][] searchProductResult = new String[products.size()][10];\n \n UserDAO userDAO = new MySQLUserDAOImpl();\n SharingProductDAO sharingProductDAO = new MySQLSharingProductDAOImpl();\n List userSharedProduct = null;\n \n for(int i=0; i<products.size(); i++){\n\n searchProductResult[i][0] = Integer.toString(((Product)(products.get(i))).getPID());\n searchProductResult[i][1] = ((Product)(products.get(i))).getName();\n searchProductResult[i][2] = ((Product)(products.get(i))).getNote();\n searchProductResult[i][3] = ((Product)(products.get(i))).getLogo();\n searchProductResult[i][4] = ((Product)(products.get(i))).getPhoto();\n searchProductResult[i][5] = (productCategoryDAO.getProductCategory(((Product)(products.get(i))).getPCID())).getName();\n searchProductResult[i][6] = ((Product)(products.get(i))).getEmail();\n searchProductResult[i][7] = userDAO.getUser(((Product)(products.get(i))).getEmail()).getName();\n searchProductResult[i][8] = userDAO.getUser(((Product)(products.get(i))).getEmail()).getSurname();\n\n if (!userDAO.getUser(((Product)(products.get(i))).getEmail()).getAdmin()) {\n userSharedProduct = sharingProductDAO.getAllEmailsbyPID(Integer.parseInt(searchProductResult[i][0]));\n if (userSharedProduct.isEmpty() || userSharedProduct.size()>1){\n searchProductResult[i][9] = String.valueOf(userSharedProduct.size()) + \" utenti\";\n } else {\n searchProductResult[i][9] = String.valueOf(userSharedProduct.size()) + \" utente\";\n }\n } else {\n searchProductResult[i][9] = \"Tutti gli utenti\";\n }\n\n }\n \n if (products.size() > 0){\n return searchProductResult;\n } else {\n return null;\n }\n \n \n }", "public void test() {\n String dirname = getVariableAsString(\"_PROJECT_DIR\"); \n\n String web_site = getVariableAsString(\"web_site\"); \n \n getContext().setVariable(\"dirname\", dirname);\n getContext().setVariable(\"check_detail\", web_site);\n \n String filename = dirname + \"\\\\result\\\\hreflist.csv\"; \n if(web_site.equals(\"doda\")){\n filename = dirname + \"\\\\result\\\\doda.csv\";\n getContext().setVariable(\"result2\", filename);\n }else if(web_site.equals(\"rikunabi\")){\n filename = dirname + \"\\\\result\\\\rikunabi.csv\";\n }\n String outputname = dirname + \"\\\\result\\\\hreflist.txt\"; \n\n try {\n getContext().setVariable(\"aaa\", \"aaa\");\n BufferedReader br = new BufferedReader(new FileReader(new File(filename)));\n getContext().setVariable(\"aaa\", \"bbb\");\n // PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(outputname)));\n PrintWriter pw = new PrintWriter(new FileWriter(new File(outputname)));\n getContext().setVariable(\"aaa\", \"ccc\");\n \n String line = \"\";\n boolean first = true;\n // int i=0;//test\n while ((line = br.readLine()) != null) {\n // i=i+1;//test\n // if(i==5)break;//test\n String array[] = line.split(\",\"); \n if (first) {\n first = false; \n } else {\n pw.println(array[0]); \n }\n }\n br.close();\n pw.close();\n\n } catch (FileNotFoundException e) {\n getContext().setVariable(\"result\", \"99\");\n } catch (IOException e) {\n getContext().setVariable(\"result\", \"999\");\n}\n }", "public void readTableData2() {\n\t\tint colCount = driver.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr[1]/th\"))\n\t\t\t\t.size();\n\t\tSystem.out.println(\"colCount\" + colCount);\n\t\t// Find row size\n\t\tint rowCount = driver\n\t\t\t\t.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td/parent::*\")).size();\n\t\tSystem.out.println(\"rowCount\" + rowCount);\n\t\t// Find xpath for 1st row and 1st column. Break into multiple parts such\n\t\t// that row and column no can be iterated.\n\t\tString firstPart = \"(//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td[2]/parent::tr)[\";\n\t\tString secondPart = \"]\";\n\t\t// Loop through rows one by one. Start from 1st row till row count.\n\t\tfor (int i = 1; i <= rowCount; i++) {\n\t\t\t\tString finalPart = firstPart + i + secondPart;\n\t\t\t\tSystem.out.println(finalPart);\n\t\t\t\tString text = driver.findElement(By.xpath(finalPart)).getText();\n\t\t\t\tSystem.out.print(text + \" | \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static ArrayList<Product> selectProducts() {\n \n ArrayList<Product> products = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n PreparedStatement ps2 = null;\n ResultSet rs = null;\n ResultSet rs2 = null;\n int count = 0;\n\n String query = \"SELECT * FROM product ORDER BY catalogCategory, productName ASC \";\n \n String query2 = \"SELECT * FROM product\"; \n \n try {\n ps = connection.prepareStatement(query);\n ps2 = connection.prepareStatement(query2);\n rs = ps.executeQuery();\n rs2 = ps2.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n Product p = null;\n System.out.println(\"DBSetup@line448 \" + colCount);\n \n while( rs2.next() ) {\n ++count;\n } \n ///////For test purposes // System.out.println(\"DBSetup @ line 363 \" + count); \n for (int i = 0; i < count; i++) {\n if (rs.next()) {\n p = new Product();\n p.setProductCode(rs.getString(\"productCode\"));\n p.setProductName(rs.getString(\"productName\"));\n p.setCatalogCategory(rs.getString(\"catalogCategory\"));\n p.setDescription(rs.getString(\"description\"));\n p.setPrice(Float.parseFloat(rs.getString(\"price\")));\n p.setImageURL(rs.getString(\"imageURL\"));\n System.out.println(\"DBSetup @ line 461 \" + p.getProductCode());\n products.add(p);\n }\n }\n return products;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "@Override\n\tpublic void exportToCSV() {\n\n\t}", "public List<String> convertCsvToJava() {\n List<String> bookList = new ArrayList<String>();\n try {\n String csvFileToRead = STRING1;\n BufferedReader br = null;\n String line = \"\";\n String splitBy = \",\";\n \n try {\n\n br = new BufferedReader(new FileReader(csvFileToRead));\n while ((line = br.readLine()) != null) {\n\n // split on comma(',')\n String[] books = line.split(splitBy);\n String stringBook = \"\";\n for(int i=0;i<12;i++){\n if (i<11){\n stringBook=stringBook.concat(books[i]+\",\"); \n }else{\n stringBook=stringBook.concat(books[i]);\n }\n }\n bookList.add(stringBook);\n }\n } catch (FileNotFoundException e) {\n LOGGER.info(e);\n\n } catch (IOException e) {\n LOGGER.info(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n LOGGER.info(e);\n }\n }\n }\n } catch (Exception e) {\n LOGGER.info(e);\n }\n return bookList;\n\n }", "@Override\r\n\tpublic List<ProductCategory> findProductcategory() {\n\t\treturn iImportSalesRecordDao.findProductcategory();\r\n\t}", "private static void consultaCategoria() throws Exception {\r\n boolean erro;\r\n int idCategoria;\r\n String nomeCategoria;\r\n ArrayList<Produto> lista;\r\n System.out.println(\"\\t** Listar produtos de uma categoria **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID da categoria a ser consultada: \");\r\n idCategoria = read.nextInt();\r\n if (idCategoria <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n lista = listProdutosPorCategoria(idCategoria);\r\n if (lista != null && !lista.isEmpty()) {\r\n nomeCategoria = getNomeCategoria(idCategoria - 1);\r\n System.out.println(\"Produtos pertencentes a '\" + nomeCategoria + \"'\");\r\n for (Produto p : lista) {\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n + \"\\nCategoria: \" + nomeCategoria\r\n );\r\n }\r\n } else {\r\n System.out.println(\"Não ha produtos nessa categoria, ou ela não existe!\");\r\n }\r\n }", "public String getCSVString() {\n return getId() + \",\" + noOfRounds + \",\" + caliber + \",\" + manufacturer + \",\" + price;\n }", "public ArrayList<String> getCategoryProducts(int category, int sortMethod) {\n ArrayList<String> filtered_results = new ArrayList<>();\n\n try {\n DBConnect connectionTester = new DBConnect();\n connectionTester.testConnection();\n String sql;\n\n String alphSql = \" order by product_name asc\";\n String stockSql = \" and in_stock = 0\";\n String stockAscSql = \" order by in_stock asc\";\n String baseSql = \"select idproduct, product_name, in_stock from product where category_idcategory = ?\";\n switch (sortMethod) {\n case 1:\n sql = baseSql + alphSql;\n break;\n case 2:\n sql = baseSql + stockSql;\n break;\n case 3:\n sql = baseSql + stockAscSql;\n break;\n default:\n sql = \"\";\n break;\n }\n PreparedStatement prpStmt = connectionTester.connection.prepareStatement(sql);\n prpStmt.setInt(1, category);\n ResultSet result = prpStmt.executeQuery();\n\n while (result.next()) {\n int product_id = result.getInt(\"idproduct\");\n String productname = result.getString(\"product_name\");\n int instock = result.getInt(\"in_stock\");\n\n String sqlresult = product_id + \". \" + productname + \" - in stock: \" + instock;\n filtered_results.add(sqlresult);\n }\n\n } catch (SQLException err) {\n System.out.println(err.getMessage());\n }\n\n return filtered_results;\n }", "@Override\n\t@Transactional\n\tpublic List<String> leerColumnasCsvDelServidor(String ubicacion) {\n\t\tList<String> lines = Collections.emptyList();\n\t\tList<String> listadoColumnas = new ArrayList<String>(); // Agregar nombres de la columna\n\t\t//SpssDataFileReader reader = null;\n\t\t/*try (BufferedReader br = new BufferedReader(new FileReader(ubicacion))){\n\n\t\t\t\n\t\t\tString campos = br.readLine();\t\n\t\t\tlistadoColumnas=Arrays.asList(campos.split(\",\"));\n\t\n\t\t}*/\n\t\t try (BufferedReader reader = new BufferedReader(new FileReader(ubicacion))){\n\t\t List<String[]> list = new ArrayList<>();\n\t\t String line = \"\";\n\n\t\t String campos = reader.readLine();\t\n\t\t\t\tlistadoColumnas=Arrays.asList(campos.split(\",\"));\n\t\t }\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t\treturn listadoColumnas;\n\t}", "public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products) { \n System.out.println((product.getName()).concat(\"\\t\\t\").concat(product.getDescription()).concat(\"\\t\\t\")\n .concat(String.valueOf(product.getId()))\n .concat(\"\\t\\t\").concat(product.getSKU()).concat(\"\\t\").concat(String.valueOf(product.getPrice()))\n .concat(\"\\t\").concat(String.valueOf(product.getMaxPrice())).concat(\"\\t\")\n .concat(String.valueOf(product.getStatus()))\n .concat(\"\\t\").concat(product.getCreated()).concat(\"\\t\\t\").concat(product.getModified())\n .concat(\"\\t\\t\").concat(String.valueOf(product.getUser().getUserId())));\n }\n } catch (ProductException ex) {\n System.out.println(ex);\n }\n }", "public Object[] getExtraInfo(Collection c) {\n\t\tVector<PkgOrderTrackWebPrOrderTrackDetailBean> bv = (Vector<PkgOrderTrackWebPrOrderTrackDetailBean>) c; \n\t\tHashSet<String> qualityIdLabelSet = new HashSet();\n\t\tHashSet<String> catPartAttrHeaderSet = new HashSet();\n\t\n\t\tfor (PkgOrderTrackWebPrOrderTrackDetailBean pbean:bv) {\n\t\t\tif( !StringUtils.isEmpty(pbean.getQualityIdLabel()) )\n\t\t\t\tqualityIdLabelSet.add(pbean.getQualityIdLabel());\n\t\t\tif( !StringUtils.isEmpty(pbean.getCatPartAttributeHeader()) )\n\t\t\t\tcatPartAttrHeaderSet.add(pbean.getCatPartAttributeHeader());\n\t\t}\n\t\t// if Hide, then no show column\n\t\t// if empty then appened ( header ) to value and header is empty\n\t\t// else if all the same, used as header.\n\t\tString qualityIdLabelColumnHeader = \"--Hide--\"; \n\t\tString catPartAttrColumnHeader = \"--Hide--\"; \n\t\tif( qualityIdLabelSet.size() == 1 ) {\n\t\t\tfor(String s:qualityIdLabelSet) \n\t\t\t\tqualityIdLabelColumnHeader = s;\n\t\t}\n\t\tif( qualityIdLabelSet.size() > 1 ) {\n\t\t\tqualityIdLabelColumnHeader = \"\"; \n\t\t\tfor (PkgOrderTrackWebPrOrderTrackDetailBean pbean:bv) {\n\t\t\t\tif( StringUtils.isNotEmpty(pbean.getQualityIdLabel() ) && StringUtils.isNotEmpty(pbean.getQualityId() )) \n\t\t\t\t\t\tpbean.setQualityId(pbean.getQualityId() +\" (\"+pbean.getQualityIdLabel()+\")\");\n\t\t\t}\n\t\t}\n\t\tif( catPartAttrHeaderSet.size() == 1 )\n\t\t\tfor(String s:catPartAttrHeaderSet) \n\t\t\t\tcatPartAttrColumnHeader = s;\n\t\tif( catPartAttrHeaderSet.size() > 1 ) {\n\t\t\tcatPartAttrColumnHeader = \"\"; \n\t\t\tfor (PkgOrderTrackWebPrOrderTrackDetailBean pbean:bv) {\n\t\t\t\tif( StringUtils.isNotEmpty(pbean.getCatPartAttributeHeader() ) && StringUtils.isNotEmpty(pbean.getCatPartAttribute() )) \n\t\t\t\t\t\tpbean.setCatPartAttribute(pbean.getCatPartAttribute()+\" (\"+pbean.getCatPartAttributeHeader()+\")\");\n\t\t\t}\n\t\t}\n\t\tObject[] objs = {qualityIdLabelColumnHeader,catPartAttrColumnHeader};\n\t\treturn objs;\n\t}", "@Override\n\tpublic void configuration(String csv) {\n\n\t}", "public List<Product> getProducts() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n List<Product> products = new ArrayList<>(); //creating an array\n String sql=\"select * from products order by product_id\"; //writing sql statement\n try {\n connection = db.getConnection();\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) { //receive data from database\n products.add(new Product( resultSet.getInt(1), resultSet.getString(2), resultSet.getInt(3),\n resultSet.getString(4),resultSet.getString(5),resultSet.getString(6),\n resultSet.getString(7), resultSet.getString(8))); //creating object of product and\n // inserting it into an array\n }\n return products; //return this array\n } catch (SQLException | ClassNotFoundException throwable) {\n throwable.printStackTrace();\n } finally {\n try {\n assert resultSet != null;\n resultSet.close();\n statement.close();\n connection.close();\n } catch (SQLException throwable) {\n throwable.printStackTrace();\n }\n }\n return null;\n }", "@Test(dataProvider = \"getRandomData\")\r\n\r\n\tpublic void testCSVData(String Sku, String Product, String DiaAmountSIGH, String DiaAmountVVSEF,\r\n\r\n\t\t\tString totalGemAmount, String MetalType, String height, String width, String MetalWeight, String Catagory,\r\n\r\n\t\t\tString TypeOfProduct, String diaColor, String diaClarity, String DiamondShape, String NoOfDiamonds,\r\n\r\n\t\t\tString TotalDiamondWeight, String Collection, String GemstoneType, String GemstoneShape,\r\n\r\n\t\t\tString NoOfGemstones, String TotalGemWeight) throws InterruptedException {\r\n\r\n\t\tinitilizeEtry();\r\n\r\n\t\tSystem.out.println(Sku);\r\n\t\tdriver = threadDriver.get();\r\n\r\n\t\tdriver.findElement(By.xpath(\"//div[@id='ajax_register_close']\")).click();// popup\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// close\r\n\r\n\t\tdriver.findElement(By.xpath(\"//div[@class='search_outer']//img\")).click();// for\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// search\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// option\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// click\r\n\r\n\t\tThread.sleep(3000);\r\n\r\n\t\tWebElement elem = driver.findElement(By.xpath(\"//*[@id='ild_search_box']//form//div//input[@id='search']\"));// click\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// image\r\n\r\n\t\telem.sendKeys(Sku);\r\n\r\n\t\telem.sendKeys(\"\\n\");\r\n\r\n\t\tdriver.findElement(By.xpath(\"//a[@class='product-image']\")).click();\r\n\r\n\t\t// verify if the buynow button enable or not\r\n\r\n\t\tWebElement e = driver.findElement(By.xpath(\"//input[@class='add-cart2']\"));\r\n\r\n\t\tAssert.assertTrue(e.isEnabled());// return true when the buynow button\r\n\t\t\t\t\t\t\t\t\t\t\t// enable\r\n\r\n\t\tif (driver.findElements(By.xpath(\"//a[@class='product-image']\")).size() != 0) {\r\n\r\n\t\t\tSystem.out.println(\"Buynow button enable\");\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"Buynow button disable\");\r\n\r\n\t\t}\r\n\t\tThread.sleep(4000);\r\n\t\tdriver.findElement(By.xpath(\"//div/a[@id='viewbreakup']\")).click();\r\n\r\n\t\tThread.sleep(2000);\r\n\r\n\t\tProduct productItms = null;\r\n\r\n\t\tproductItms = new Product(driver);\r\n\r\n\t\t// for diamond quality radio button selection - SI-GH\r\n\r\n\t\tif (diaClarity.contains(\"SI\") && diaColor.contains(\"GH\")) {\r\n\r\n\t\t\tdriver.findElement(\r\n\t\t\t\t\tBy.xpath(\"//div[@class='input-box']/label[@class='label-radio-configurable'][\" + 1 + \"]/input\"))\r\n\t\t\t\t\t.click();\r\n\r\n\t\t\t// breakup selection view click\r\n\r\n\t\t\t// verification of sku of the product for SI-GH\r\n\r\n\t\t\tString actualsku = productItms.getsku();\r\n\r\n\t\t\tif (!(actualsku.trim().toUpperCase().contains(Sku.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"Sku\", finalResult.get(\"Sku\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Verification of Diamond price SIGH\r\n\r\n\t\t\tString actualDiamondPriceSIGH = utility.converPrice(productItms.getDiamondPriceSIGH());\r\n\r\n\t\t\tif (!(actualDiamondPriceSIGH.trim().toUpperCase().equals(DiaAmountSIGH.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"DiaAmountSIGH\", finalResult.get(\"DiaAmountSIGH\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * \r\n\t\t\t * common mapping function for both SIGH & VVSEF\r\n\t\t\t * \r\n\t\t\t */\r\n\r\n\t\t\tverifyProductDetailAttribute(Sku, totalGemAmount, MetalType, height, width, MetalWeight, Catagory, TypeOfProduct,\r\n\r\n\t\t\t\t\tDiamondShape, NoOfDiamonds, Collection, GemstoneType, GemstoneShape, NoOfGemstones, TotalGemWeight,\r\n\r\n\t\t\t\t\tTotalDiamondWeight, productItms);\r\n\r\n\t\t}\r\n\r\n\t\t// VVSEF - Radio button click\r\n\r\n\t\tdriver.findElement(\r\n\t\t\t\tBy.xpath(\"//div[@class='input-box']/label[@class='label-radio-configurable'][\" + 2 + \"]/input\"))\r\n\t\t\t\t.click();\r\n\r\n\t\tThread.sleep(5000);\r\n\r\n\t\tproductItms = new Product(driver);\r\n\r\n\t\t// verification of sku of the product for VVSEF\r\n\r\n\t\tString actualsku = productItms.getsku();\r\n\r\n\t\tif (!(actualsku.trim().toUpperCase().contains(Sku.trim().toUpperCase()))) {\r\n\r\n\t\t\tfinalResult.put(\"Sku\", finalResult.get(\"Sku\") & false);\r\n\r\n\t\t}\r\n\r\n\t\t// Verification of Diamond price VVSEF\r\n\r\n\t\tString x = productItms.getDiamondPriceVVSEF();\r\n\r\n\t\tString actualDiamondPriceSIGH = utility.converPrice(x);\r\n\r\n\t\tif (!(actualDiamondPriceSIGH.trim().toUpperCase().equals(DiaAmountVVSEF.trim().toUpperCase()))) {\r\n\r\n\t\t\tfinalResult.put(\"DiaAmountVVSEF\", finalResult.get(\"DiaAmountVVSEF\") & false);\r\n\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * \r\n\t\t * common mapping function for both SIGH & VVSEF\r\n\t\t * \r\n\t\t */\r\n\r\n\t\tverifyProductDetailAttribute(Sku, totalGemAmount, MetalType, height, width, MetalWeight, Catagory, TypeOfProduct,\r\n\r\n\t\t\t\tDiamondShape, NoOfDiamonds, Collection, GemstoneType, GemstoneShape, NoOfGemstones, TotalGemWeight,\r\n\r\n\t\t\t\tTotalDiamondWeight, productItms);\r\n\r\n\t\t// Add to cart\r\n\r\n\t\tWebElement button1 = driver.findElement(By.xpath(\"//input[@class='add-cart2']\"));\r\n\r\n\t\tbutton1.click();\r\n\r\n\t\t// verify the cart message in cart page\r\n\r\n\t\tif (driver.getPageSource().contains(\"was added to your shopping cart.\")) {\r\n\r\n\t\t\tSystem.out.println(\"cart page message is coming for the added product\");\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"cart page message is not coming\");\r\n\r\n\t\t\tdriver.close();\r\n\r\n\t\t}\r\n\r\n\t\t// for edit\r\n\r\n\t\tdriver.findElement(By.xpath(\"//a[@title='Edit item parameters']\")).click();\r\n\r\n\t\tdriver.findElement(By.xpath(\"//button[@title='Update Cart']\")).click();\r\n\r\n\t\t// for increase and decrease quantity\r\n\r\n\t\tdriver.findElement(By.xpath(\"//button[@title='Increase Quantity']\")).click();\r\n\r\n\t\tdriver.findElement(By.xpath(\"//button[@title='Decrease Quantity']\")).click();\r\n\r\n\t\tdriver.findElement(By.xpath(\"//span[contains(text(),'Proceed to Checkout')]\")).click();\r\n if((Sku.contains(\"RG\")||Sku.contains(\"BR\")))\r\n {\r\n MetalWeight=\"N/A\";\r\n \r\n }\r\n\r\n\r\n\t\tcreateHtML(Sku, Product, DiaAmountSIGH, DiaAmountVVSEF, totalGemAmount, MetalType, height, width,\r\n\r\n\t\t\t\tMetalWeight, Catagory, TypeOfProduct, diaColor, diaClarity, DiamondShape, NoOfDiamonds, Collection,\r\n\r\n\t\t\t\tGemstoneType, GemstoneShape, NoOfGemstones, TotalGemWeight, TotalDiamondWeight);\r\n\r\n\t}", "public void readInOrganizations() {\n // read CSV file for Organizations\n allOrganizations = new ArrayList<Organization>();\n InputStream inputStream = getResources().openRawResource(R.raw.organizations);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] organizationInfo = (String[]) scoreList.get(i);\n\n // inputs to Organization constructor:\n // String name, int logoPhotoID, int photo1ID, int photo2ID, int photo3ID\n\n // group together description\n String description = getDescription(5, organizationInfo);\n\n // get all image IDs according to the names\n int logoPhotoID = context.getResources().getIdentifier(organizationInfo[1], \"drawable\", context.getPackageName());\n int photo1ID = context.getResources().getIdentifier(organizationInfo[2], \"drawable\", context.getPackageName());\n int photo2ID = context.getResources().getIdentifier(organizationInfo[3], \"drawable\", context.getPackageName());\n int photo3ID = context.getResources().getIdentifier(organizationInfo[4], \"drawable\", context.getPackageName());\n allOrganizations.add(new Organization(organizationInfo[0], logoPhotoID, photo1ID, photo2ID, photo3ID, description));\n\n //System.out.println(\"organizationInfo: \" + organizationInfo[0] + \" \" + organizationInfo[1] + \" \" + organizationInfo[2] + \" \" + organizationInfo[3] + \" \" + organizationInfo[4]);\n }\n }", "private void getAllProducts() {\n }", "void readProducts(String filename) throws FileNotFoundException {\n\t\t//reads the file, computes the number of rows in the file\n\t\tScanner input=new Scanner(new File(filename));\n\t\tint numOfRow=0;\n\t\twhile(input.hasNextLine()) {\n\t\t\tnumOfRow++;\n\t\t\tinput.nextLine();\n\t\t}\n\t\t//load the products array one by one, using constructor\n\t\tproducts=new Product[numOfRow-1];\n\t\tScanner input2=new Scanner(new File(filename));\n\t\tinput2.nextLine();\n\t\tint i=0;\n\t\twhile(input2.hasNextLine()) {\n\t\t\tString row=input2.nextLine();\n\t\t\tString[] split1=row.split(((char)34+\",\"+(char)34));\n\t\t\tproducts[i++]=new Product(split1[0].substring(1, split1[0].length())\n\t\t\t\t\t, split1[1], split1[4], split1[7].substring(0, split1[7].length()-1));\n\t\t}\n\t\t//close the input\n\t\tinput.close();\n\t\tinput2.close();\n\t}", "public void createArrayList() throws IOException,ParseException\r\n\t {\n\t \t\r\n\t try(ICsvBeanReader beanReader = new CsvBeanReader(new FileReader(CSV_FILENAME), \r\n\t \t\tCsvPreference.STANDARD_PREFERENCE))\r\n\t {\r\n\t // the header elements are used to map the values to the bean\r\n\t final String[] headers = beanReader.getHeader(true);\r\n\t final CellProcessor[] processors = getProcessors();\r\n\t Complete customer;\r\n\t String gender,fullname;\r\n\t while ((customer = beanReader.read(Complete.class, headers, processors)) != null)\r\n\t {\r\n\t fullname = customer.getFirstname() + \" \" + customer.getLastname();\r\n\t if(customer.getGender().equals(\"f\"))\r\n\t \t gender = \"female\";\r\n\t \telse\r\n\t gender = \"male\";\r\n\t Date dob=new SimpleDateFormat(\"MM/dd/yyyy\").parse(customer.getDob()); \r\n\t String pattern = \"dd/MM/yyyy\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n \tString date = simpleDateFormat.format(dob);\r\n\t String age = calcAge(date);\r\n\t if(customer.getCategory().equals(\"student\"))\r\n\t {\r\n\t \tString grade = calcGrade(customer.getSec_percent());\r\n\t \tstudentList.add(new Student(customer.getId(),fullname,gender,date,age,customer.getAadhar_number(),customer.getCity(),\r\n\t \tcustomer.getContact_number(),Integer.parseInt(customer.getRoll_no()),customer.getClass_no(),Integer.parseInt(customer.getTotal_marks())\r\n\t \t,grade,Integer.parseInt(customer.getSec_percent()),customer.getHs_stream()));\r\n\t \t\t\r\n\t } \r\n\t else //for teacher\r\n\t {\r\n\t \tDate doj=new SimpleDateFormat(\"MM/dd/yyyy\").parse(customer.getDoj()); \r\n\t \tString pattern1 = \"dd/MM/yyyy\";\r\n\t SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat(pattern);\r\n \tString join_date = simpleDateFormat.format(doj);\r\n\t \tString str_sub_teachers = customer.getSubject_teaches();\r\n\t \tString service_period = calService(join_date);\r\n\t \tList<String> sub_teachers = new ArrayList<String>(Arrays.asList(str_sub_teachers.split(\"-\")));\r\n\t \t\t\t\r\n\t \t\tteacherList.add(new Teacher(customer.getId(),fullname,gender,date,age,customer.getAadhar_number(),customer.getCity(),\r\n \t\t\t\tcustomer.getContact_number(),customer.getEmp_no(),customer.getClass_teacher_of(),join_date,service_period\r\n \t\t\t\t,customer.getPrevious_school(),customer.getPost(),Integer.parseInt(customer.getSalary()),sub_teachers));\r\n }\r\n\t \r\n\t } //while\r\n\t }\r\n\t System.out.println(\"ArrayList Sucessfully Created\");\t\r\n\t \t\r\n\t }", "public void readEntityCSV(String line) {\n List<String> items = Arrays.asList(line.split(\",\"));\n this.setId(Long.valueOf(items.get(0)));\n this.noOfRounds = Integer.parseInt(items.get(1));\n this.caliber = Float.parseFloat(items.get(2));\n this.manufacturer = items.get(3);\n this.price = Float.parseFloat(items.get(4));\n }", "List<Product> getProductByCategory(String category) throws DataBaseException;", "private void arrangeData() {\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"), literalSdf = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss zzz yyyy\", Locale.ENGLISH);\r\n\t\t\tList<Csv> list = HibernateUtil.readAllCsv();\r\n\t\t\tfor (Csv csv : list) {\r\n\t\t\t\t// Se non esiste il progetto lo creo\r\n\t\t\t\tProject pForName = HibernateUtil.readProjectForName(csv.getProgettoPolarion());\r\n\t\t\t\tif (pForName == null) {\r\n\t\t\t\t\tpForName = new Project();\r\n\t\t\t\t\tpForName.setNome(csv.getProgettoPolarion());\r\n\t\t\t\t\tHibernateUtil.save(pForName);\r\n\t\t\t\t}\r\n\t\t\t\tRelease releaseDiProgetto = null;\r\n\t\t\t\tif (csv.getColonnaB() != null && csv.getColonnaB().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaB\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * idReleaseDiProgetto; titleReleaseDiProgetto;\r\n\t\t\t\t\t * priorityReleaseDiProgetto; severityReleaseDiProgetto;\r\n\t\t\t\t\t * progettoPolarion; versione; link; release;\r\n\t\t\t\t\t * dataCreazioneReleaseDiProgetto;\r\n\t\t\t\t\t * dataUltimoAggiornamentoReleaseDP\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString[] bElements = csv.getColonnaB().split(Pattern.quote(\";\"));\r\n\t\t\t\t\treleaseDiProgetto = HibernateUtil.readRelease(bElements[0].trim());\r\n\t\t\t\t\tboolean toUpdate = false, toSave = false;\r\n\r\n\t\t\t\t\tif (releaseDiProgetto == null) {\r\n\t\t\t\t\t\treleaseDiProgetto = new Release();\r\n\t\t\t\t\t\treleaseDiProgetto.setIdPolarion(bElements[0].trim());\r\n\t\t\t\t\t\ttoSave = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (releaseDiProgetto.getTitolo() == null\r\n\t\t\t\t\t\t\t|| !releaseDiProgetto.getTitolo().equals(bElements[1].trim())) {\r\n\t\t\t\t\t\treleaseDiProgetto.setTitolo(bElements[1].trim());\r\n\t\t\t\t\t\tif (!toSave)\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[2] != null && bElements[2].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getPriority() != null\r\n\t\t\t\t\t\t\t\t&& releaseDiProgetto.getPriority().getValore() != Float.parseFloat(bElements[2].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\tif (toSave || toUpdate)\r\n\t\t\t\t\t\t\treleaseDiProgetto\r\n\t\t\t\t\t\t\t\t\t.setPriority(HibernateUtil.readPriority(Float.parseFloat(bElements[2].trim())));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[3] != null && bElements[3].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getSeverity() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getSeverity().getNome().equals(bElements[3].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\tif (toSave || toUpdate)\r\n\t\t\t\t\t\t\treleaseDiProgetto.setSeverity(HibernateUtil.readSeverity(bElements[3].trim()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\treleaseDiProgetto.setProject(pForName);\r\n\t\t\t\t\tif (bElements[5] != null && bElements[5].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getVersione() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getVersione().equals(bElements[5].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setVersione(bElements[5].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[6] != null && bElements[6].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getLink() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getLink().equals(bElements[6].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setLink(bElements[6].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[7] != null && bElements[7].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getType() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getType().equals(bElements[6].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setType(bElements[7].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[8] != null && bElements[8].trim().length() > 0) {\r\n\t\t\t\t\t\tDate dataCreazione = sdf.parse(bElements[8].trim());\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getDataCreazione() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getDataCreazione().equals(dataCreazione))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setDataCreazione(dataCreazione);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[9] != null && bElements[9].trim().length() > 0) {\r\n\t\t\t\t\t\tDate dataUltimoAggiornamento = sdf.parse(bElements[9].trim());\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getDataUpdate() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getDataUpdate().equals(dataUltimoAggiornamento))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setDataUpdate(dataUltimoAggiornamento);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (toSave)\r\n\t\t\t\t\t\tHibernateUtil.save(releaseDiProgetto);\r\n\t\t\t\t\telse if (toUpdate)\r\n\t\t\t\t\t\tHibernateUtil.update(Release.class, releaseDiProgetto);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaC() != null && csv.getColonnaC().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaC\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoRelease\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString regex = Pattern.quote(\"(\") + \"(.*?)\" + Pattern.quote(\")\");\r\n\t\t\t\t\tPattern pattern = Pattern.compile(regex);\r\n\t\t\t\t\tMatcher matcher = pattern.matcher(csv.getColonnaC());\r\n\t\t\t\t\twhile (matcher.find()) {\r\n\t\t\t\t\t\tString[] history = matcher.group(1).split(Pattern.quote(\"^\"));\r\n\r\n\t\t\t\t\t\tStatus status = null;\r\n\t\t\t\t\t\tif (history.length > 0)\r\n\t\t\t\t\t\t\tstatus = HibernateUtil.readStatus(history[0].trim());\r\n\t\t\t\t\t\tDate dataUpdate = null;\r\n\t\t\t\t\t\tif (history.length > 1)\r\n\t\t\t\t\t\t\tdataUpdate = sdf.parse(history[1]);\r\n\t\t\t\t\t\tUser user = null;\r\n\t\t\t\t\t\tif (history.length > 2)\r\n\t\t\t\t\t\t\tuser = HibernateUtil.readUser(history[2].trim());\r\n\r\n\t\t\t\t\t\tReleaseHistory rHistory = HibernateUtil.readReleaseHistory(releaseDiProgetto, status,\r\n\t\t\t\t\t\t\t\tdataUpdate, user);\r\n\t\t\t\t\t\tif (rHistory == null) {\r\n\t\t\t\t\t\t\trHistory = new ReleaseHistory();\r\n\t\t\t\t\t\t\trHistory.setRelease(releaseDiProgetto);\r\n\t\t\t\t\t\t\trHistory.setStatus(status);\r\n\t\t\t\t\t\t\trHistory.setDataUpdate(dataUpdate);\r\n\t\t\t\t\t\t\trHistory.setUser(user);\r\n\t\t\t\t\t\t\tHibernateUtil.save(rHistory);\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\tif (csv.getColonnaD() != null && csv.getColonnaD().length() > 0) {\r\n\t\t\t\t\t// TODO D\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaD\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoSviluppo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaE() != null && csv.getColonnaE().length() > 0) {\r\n\t\t\t\t\t// TODO E\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaE\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoMev\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaF() != null && csv.getColonnaF().length() > 0) {\r\n\t\t\t\t\t// TODO F\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaF\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoDocumento\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaG() != null && csv.getColonnaG().length() > 0) {\r\n\t\t\t\t\t// TODO G\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaG\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoRds\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaH() != null && csv.getColonnaH().length() > 0) {\r\n\t\t\t\t\t// TODO H\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaH\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoDefect\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaI() != null && csv.getColonnaI().length() > 0) {\r\n\t\t\t\t\t// TODO I\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaI\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoAnomalia\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tReleaseIt releaseIT = null;\r\n\t\t\t\tif (csv.getColonnaJ() != null && csv.getColonnaJ().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaJ\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoReleaseIt\r\n\t\t\t\t\t */\r\n\t\t\t\t\tboolean hasLinkedItem = false;\r\n\t\t\t\t\tif (csv.getColonnaJ().startsWith(\"<\") && csv.getColonnaJ().endsWith(\">\")) {\r\n\t\t\t\t\t\tcsv.setColonnaJ(csv.getColonnaJ().substring(1, csv.getColonnaJ().length() - 1));\r\n\t\t\t\t\t\thasLinkedItem = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString[] elements = csv.getColonnaJ().split(Pattern.quote(\"|\"));\r\n\t\t\t\t\tif (hasLinkedItem) {\r\n\t\t\t\t\t\tLinkedItemId lIId = new LinkedItemId();\r\n\t\t\t\t\t\tlIId.setIdPolarionPadre(releaseDiProgetto.getIdPolarion());\r\n\t\t\t\t\t\tlIId.setIdPolarionFiglio(elements[1]);\r\n\t\t\t\t\t\tLinkedItem li = HibernateUtil.readLinkedItem(lIId);\r\n\t\t\t\t\t\tif (li == null) {\r\n\t\t\t\t\t\t\tli = new LinkedItem();\r\n\t\t\t\t\t\t\tli.setId(lIId);\r\n\t\t\t\t\t\t\tHibernateUtil.save(li);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treleaseIT = HibernateUtil.readReleaseIT(elements[1].trim());\r\n\t\t\t\t\tboolean toSave = false;\r\n\t\t\t\t\tif (releaseIT == null || !releaseIT.getTitolo().equals(elements[2].trim())) {\r\n\t\t\t\t\t\tif (releaseIT == null) {\r\n\t\t\t\t\t\t\treleaseIT = new ReleaseIt();\r\n\t\t\t\t\t\t\treleaseIT.setIdPolarion(elements[1].trim());\r\n\t\t\t\t\t\t\ttoSave = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treleaseIT.setTitolo(elements[2].trim());\r\n\t\t\t\t\t\tif (elements[3] != null && elements[3].trim().length() > 0){\r\n\t\t\t\t\t\t\tDate d = null;\r\n\t\t\t\t\t\t\ttry{ \r\n\t\t\t\t\t\t\t\td = sdf.parse(elements[3].trim());\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\td = literalSdf.parse(elements[3].trim());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treleaseIT.setDataInizio(d);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (elements[4] != null && elements[4].trim().length() > 0){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\treleaseIT.setDataFine(sdf.parse(elements[4].trim()));\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\treleaseIT.setDataFine(literalSdf.parse(elements[4].trim()));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (toSave)\r\n\t\t\t\t\t\t\tHibernateUtil.save(releaseIT);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tHibernateUtil.update(ReleaseIt.class, releaseIT);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (elements.length > 5 && elements[5] != null && elements[5].trim().length() > 0) {\r\n\t\t\t\t\t\tString regex = Pattern.quote(\"(\") + \"(.*?)\" + Pattern.quote(\")\");\r\n\t\t\t\t\t\tPattern pattern = Pattern.compile(regex);\r\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(elements[5].trim());\r\n\t\t\t\t\t\tboolean isFirstRow = true;\r\n\t\t\t\t\t\t// formato sdf per Thu Feb 18 00:00:00 CET 2016\r\n\t\t\t\t\t\twhile (matcher.find()) {\r\n\t\t\t\t\t\t\tString[] history = matcher.group(1).split(Pattern.quote(\"^\"));\r\n\t\t\t\t\t\t\tStatus status = HibernateUtil.readStatus(history[0].trim());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDate dataUpdate = null;\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdataUpdate = sdf.parse(history[1]);\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\tdataUpdate = literalSdf.parse(history[1]);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (isFirstRow && releaseIT.getDataCreazione() == null) {\r\n\t\t\t\t\t\t\t\treleaseIT.setDataCreazione(dataUpdate);\r\n\t\t\t\t\t\t\t\tHibernateUtil.update(ReleaseIt.class, releaseIT);\r\n\t\t\t\t\t\t\t\tisFirstRow = false;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tReleaseitHistory rItHistory = null;\r\n\t\t\t\t\t\t\tif (history.length > 2) {\r\n\t\t\t\t\t\t\t\tUser user = HibernateUtil.readUser(history[2].trim());\r\n\t\t\t\t\t\t\t\trItHistory = HibernateUtil.readReleaseItHistory(releaseIT, status, dataUpdate,\r\n\t\t\t\t\t\t\t\t\t\tuser);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (rItHistory == null) {\r\n\t\t\t\t\t\t\t\trItHistory = new ReleaseitHistory();\r\n\t\t\t\t\t\t\t\trItHistory.setReleaseIt(releaseIT);\r\n\t\t\t\t\t\t\t\trItHistory.setStatus(status);\r\n\t\t\t\t\t\t\t\trItHistory.setDataUpdate(dataUpdate);\r\n\t\t\t\t\t\t\t\tHibernateUtil.save(rItHistory);\r\n\t\t\t\t\t\t\t}\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\tif (csv.getColonnaK() != null && csv.getColonnaK().length() > 0) {\r\n\t\t\t\t\t// TODO K\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaK\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * taskInfo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaL() != null && csv.getColonnaL().length() > 0) {\r\n\t\t\t\t\t// TODO L\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaL\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * workRecordInfo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaM() != null && csv.getColonnaM().length() > 0) {\r\n\t\t\t\t\t// TODO M\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaM\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * infoTestcase\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaN() != null && csv.getColonnaN().length() > 0) {\r\n\t\t\t\t\t// TODO N\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaN\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * infoChecklist\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t}", "List<Product> getProductsByCategory(String category);", "public static void main(String[] args) {\n\t\tString fileName =\"5 Mins_Bid_2003.05.04_2017.07.31.csv\";\r\n\t\t\t\t\t\t\r\n\t\tString pathEURUSD = \"C:\\\\fxdata\\\\EURUSD_UTC_\"+fileName;\r\n\t\tString pathGBPUSD = \"C:\\\\fxdata\\\\GBPUSD_UTC_\"+fileName;\r\n\t\tString pathAUDUSD = \"C:\\\\fxdata\\\\AUDUSD_UTC_\"+fileName;\r\n\t\tString pathUSDJPY = \"C:\\\\fxdata\\\\USDJPY_UTC_\"+fileName;\r\n\t\tString pathUSDCAD = \"C:\\\\fxdata\\\\USDCAD_UTC_\"+fileName;\r\n\t\tString pathNZDUSD = \"C:\\\\fxdata\\\\NZDUSD_UTC_\"+fileName;\r\n\t\tString pathEURJPY = \"C:\\\\fxdata\\\\EURJPY_UTC_\"+fileName;\r\n\t\tString pathEURGBP = \"C:\\\\fxdata\\\\EURGBP_UTC_\"+fileName;\r\n\t\tString pathEURAUD = \"C:\\\\fxdata\\\\EURAUD_UTC_\"+fileName;\r\n\t\tString pathCADJPY = \"C:\\\\fxdata\\\\CADJPY_UTC_\"+fileName;\r\n\t\tString pathAUDJPY = \"C:\\\\fxdata\\\\AUDJPY_UTC_\"+fileName;\r\n\t\tString pathNZDJPY = \"C:\\\\fxdata\\\\NZDJPY_UTC_\"+fileName;\r\n\t\tString pathGBPJPY = \"C:\\\\fxdata\\\\GBPJPY_UTC_\"+fileName;\r\n\t\tString pathGBPCAD = \"C:\\\\fxdata\\\\GBPCAD_UTC_\"+fileName;\r\n\t\tString pathGBPAUD = \"C:\\\\fxdata\\\\GBPAUD_UTC_\"+fileName;\r\n\t\t\r\n\t\tArrayList<String> paths = new ArrayList<String>();\r\n\t\tpaths.add(pathEURUSD);\r\n\t\tpaths.add(pathGBPUSD);\r\n\t\tpaths.add(pathAUDUSD);\r\n\t\tpaths.add(pathUSDJPY);\r\n\t\tpaths.add(pathEURJPY);\r\n\t\tpaths.add(pathEURAUD);\r\n\t\tpaths.add(pathGBPJPY);\r\n\t\tpaths.add(pathGBPAUD);\r\n\t\t\r\n\t\tint limit = paths.size()-1;\r\n\t\tint initial = 0;\r\n\t\tlimit = 0;\r\n\t\tArrayList<QuoteShort> dataI \t\t= null;\r\n\t\tArrayList<QuoteShort> dataS \t\t= null;\r\n\t\tfor (int i=initial;i<=limit;i++){\r\n\t\t\tString path = paths.get(i);\t\r\n\t\t\tString pairName = paths.get(i).split(\"\\\\\\\\\")[2].substring(0, 6);\r\n\t\t\tif (path.contains(\"UTC\")){\r\n\t\t\t\tdataI \t\t= DAO.retrieveDataShort5m(path, DataProvider.DUKASCOPY_FOREX3);\r\n\t\t\t}else{\r\n\t\t\t\tdataI \t\t= DAO.retrieveDataShort5m(path, DataProvider.DUKASCOPY_FOREX4);\r\n\t\t\t}\r\n\t\t\tTestLines.calculateCalendarAdjustedSinside(dataI);\r\n\t\t\t//TradingUtils.cleanWeekendDataSinside(dataI); \t\r\n\t\t\tdataS = TradingUtils.cleanWeekendDataS(dataI); \t\t\t\r\n\t\t\tArrayList<QuoteShort> data = null;\r\n\t\t\tdata = dataS;\r\n\t\t\t//System.out.println(\"total data: \"+data.size());\r\n\t\t\tArrayList<Integer> maxMins = TradingUtils.calculateMaxMinByBarShortAbsoluteInt(data);\r\n\t\t\t\r\n\t\t\tint begin = 4000000;\r\n\t\t\tint end = 5000000;\r\n\t\t\tint tp = 10;\r\n\t\t\tint sl = 20;\r\n\t\t\tdouble comm = 1.4;\r\n\t\t\t\r\n\t\t\tfor (int h1=0;h1<=0;h1+=1){\r\n\t\t\t\tint h2 = h1+9;\r\n\t\t\t\tfor (int thr=0;thr<=1000;thr+=100){\r\n\t\t\t\t\tfor (int diff=20;diff<=20;diff+=10){\r\n\t\t\t\t\t\tfor (tp=10;tp<=10;tp++){\r\n\t\t\t\t\t\t\tfor (sl=40000;sl<=40000;sl+=50){\r\n\t\t\t\t\t\t\t\tTestRetraces.testRetracev4(data, maxMins, begin, end, h1, h2, thr, tp,sl,diff);\r\n\t\t\t\t\t\t\t}\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}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*for (begin=1;begin<=1;begin+=100000){\r\n\t\t\t\tend = begin + 7000000;\r\n\t\t\t\tfor (int nBars=1000;nBars<=1000;nBars+=12){\r\n\t\t\t\t\tfor (int h1=16;h1<=16;h1+=1){\r\n\t\t\t\t\t\tint h2 = h1+7;\r\n\t\t\t\t\t//for (int nBars=120;nBars<=120;nBars++){\r\n\t\t\t\t\t\t//TestRetraces.testMaxRetracing(data, begin, end, h1, h2);\r\n\t\t\t\t\t\tfor (int thr=2000;thr<=2000;thr+=100){\r\n\t\t\t\t\t\t\t//TestRetraces.testMaxRetracingBars(data,maxMins, begin, end, h1, h2,thr,nBars);\r\n\t\t\t\t\t\t\tfor (int minPips=10;minPips<=10;minPips++){\r\n\t\t\t\t\t\t\t\tfor (int tries=10;tries<=10;tries++){\r\n\t\t\t\t\t\t\t\t\tfor (tp=10;tp<=10;tp++){\r\n\t\t\t\t\t\t\t\t\t\t//TestRetraces.testRetraceFailsInARow(data, maxMins, begin, end, h1, h2, thr, nBars, minPips, tp, tries);\r\n\t\t\t\t\t\t\t\t\t\tfor (sl=100;sl<=100;sl+=50){\r\n\t\t\t\t\t\t\t\t\t\t\tfor (int minDayLost=1;minDayLost<=10;minDayLost++){\r\n\t\t\t\t\t\t\t\t\t\t\t\tTestRetraces.testRetracev2(data, maxMins, begin, end, h1, h2, thr, nBars, minPips, tp,sl, minDayLost);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\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}\r\n\t\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}", "private ArrayList<String> getFileData(InputStream is) {\n ArrayList<String> restaurantData = new ArrayList<>();\n\n // Initialize the reader for the csv file\n BufferedReader reader = new BufferedReader(new InputStreamReader(is,\n Charset.forName(\"UTF-8\")));\n\n // Read each line into the ArrayList\n try {\n // Read the file\n String row;\n while ((row = reader.readLine()) != null) {\n restaurantData.add(row);\n }\n } catch (IOException ex) {\n Log.i(TAG, \"Error reading line\", ex);\n } finally {\n try {\n // Close the file\n reader.close();\n } catch (IOException ex) {\n Log.i(TAG, \"Error closing file\", ex);\n }\n }\n\n // Return data\n return restaurantData;\n }", "private void importCatalogue() {\n\n mAuthors = importModelsFromDataSource(Author.class, getHeaderClass(Author.class));\n mBooks = importModelsFromDataSource(Book.class, getHeaderClass(Book.class));\n mMagazines = importModelsFromDataSource(Magazine.class, getHeaderClass(Magazine.class));\n }", "public ArrayList<textCategory> getTextCategory(){\n\t ArrayList<textCategory> TDList = new ArrayList<textCategory>();\n\t try{\n\t\t //STEP 2: Register JDBC driver\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t //STEP 3: Open a connection\n\t\t ////System.out.println(\"Connecting to database...\");\n\t\t conn = DriverManager.getConnection(DB_URL,USER,PASS);\n\n\t\t //STEP 4: Execute a query\n\t\t ////System.out.println(\"Creating statement...\");\n\t\t stmt = conn.createStatement();\n\t\t \n\t\t //Dapetin jarak setiap narik data\n\t\t String statement = \"SELECT * FROM `text_categories`\";\n\t\t \n\t\t ////System.out.println(statement);\n\t\t ResultSet rs = stmt.executeQuery(statement);\n\t\t \n\t\t while(rs.next()){\n\t\t \n\t \t\t\t//////System.out.println(\"test III\");\n\t\t //Retrieve by column name\n\t\t \t textCategory tC = new textCategory();\n\t\t \t tC.setId(rs.getInt(\"id\"));\n\t\t \t tC.setName(rs.getString(\"name\"));\n\t\t TDList.add(tC);\n\t\t \n\t\t //Display values\n\t\t ////System.out.println(\", text category : \" + rs.getNString(\"name\"));\n\t\t \n\t\t }\n\t\t //STEP 6: Clean-up environment\n\t\t rs.close();\n\t\t stmt.close();\n\t\t conn.close();\n\t\t }catch(SQLException se){\n\t\t //Handle errors for JDBC\n\t\t se.printStackTrace();\n\t\t }catch(Exception e){\n\t\t //Handle errors for Class.forName\n\t\t e.printStackTrace();\n\t\t }finally{\n\t\t //finally block used to close resources\n\t\t try{\n\t\t if(stmt!=null)\n\t\t stmt.close();\n\t\t }catch(SQLException se2){\n\t\t }// nothing we can do\n\t\t try{\n\t\t if(conn!=null)\n\t\t conn.close();\n\t\t }catch(SQLException se){\n\t\t se.printStackTrace();\n\t\t }//end finally try\n\t\t }//end try\n\t \t ////System.out.println(\"Goodbye!\");\t \n\t \n\t return TDList;\n }", "public void Read_Csv() {\n\t\t\n\t\tFile file = new File(\"Faucets.csv\");\n\t\tif(file.exists() == false) {\n\t\t\ttry {\n\t\t\t\t if (file.createNewFile()) {\n\t\t\t\t System.out.println(\"File created: \" + file.getName());\n\t\t\t\t } else {\n\t\t\t\t System.out.println(\"File already exists... Error\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\tFileWriter myWriter = new FileWriter(\"Faucets.csv\");\n\t\t\t\tmyWriter.write(\"Freebitco.in,3600,228,\");\n\t\t\t\tmyWriter.close();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Reading the file\n\t\tString line = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"Faucets.csv\");\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint commacounter = 0;\n\t\t\tint commaposition[] = new int[3];\n\t\t\twhile((line = bufferedReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\twhile(x < line.length()) {\n\t\t\t\t\t\n\t\t\t\t\tif(line.charAt(x) == ',') {\n\t\t\t\t\t\tcommaposition[commacounter] = x;\n\t\t\t\t\t\tcommacounter +=1;\n\t\t\t\t\t}\n\t\t\t\t\tif(commacounter == 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFaucets.site[amount_counter] = line.substring(0, commaposition[0]);\n\t\t\t\t\t\tFaucets.time[amount_counter] = Integer.parseInt(line.substring(commaposition[0]+1, commaposition[1]));\n\t\t\t\t\t\tFaucets.amount[amount_counter] = Integer.parseInt(line.substring(commaposition[1]+1, commaposition[2]));\n\t\t\t\t\t\tamount_counter += 1;\n\t\t\t\t\t\tcommacounter=0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tx+=1;\n\t\t\t\t}\n\t\t\t\tx=0;\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\n\t\t\t\n\t}", "@Override\r\n\tpublic ArrayList<VendorConfig> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\r\n\t\tlogger.info(\"extractData()....COUNT of RS:\"+rs.getFetchSize());\r\n\t\tif(rs.next()) {\r\n\t\t\tVendorConfig storeCfg = new VendorConfig();\r\n\t\t\t//String[] categories = rs.getString(i++).split(\",\");\r\n\t\t\t//logger.info(\"categories::\"+categories);\r\n\t\t\tstoreCfg.setVendorId(rs.getString(\"vendor_id\"));\r\n\t\t\tstoreCfg.setCategories(rs.getString(\"categories\"));\r\n\t\t\tstoreCfg.setDeliveryFlag(rs.getByte(\"delivery_flag\"));\r\n\t\t\tstoreCfg.setDeliveryStartTime(rs.getTime(\"delivery_start_time\"));\r\n\t\t\tstoreCfg.setDeliveryEndTime(rs.getTime(\"delivery_end_time\"));\r\n\t\t\tstoreCfg.setStoreStartTime(rs.getTime(\"store_hours_start\"));\r\n\t\t\tstoreCfg.setStoreEndTime(rs.getTime(\"store_hours_end\"));\r\n\t\t\tstoreCfg.setStoreOpenDays(rs.getString(\"store_days\"));\r\n\t\t\tstoreCfg.setShopName(rs.getString(\"shop_name\"));\r\n\t\t\tstoreCfg.setCategoryDescription(rs.getString(\"shop_cat_desc\"));\r\n\t\t\tstoreCfg.setStatus(rs.getString(\"shop_status\"));\r\n\t\t\tstoreCfg.setDeliveryLocationId(rs.getString(\"delivery_loc_id\"));\r\n\t\t\tstoreCfg.setPhone(rs.getString(\"phone\"));\r\n\t\t\tstoreCfg.setEmail(rs.getString(\"email\"));\r\n\t\t\tstoreCfg.setAddress(rs.getString(\"address\"));\r\n\t\t\tstoreCfg.setShopLogoLink(rs.getString(\"shop_logo_link\"));\r\n\t\t\tstoreCfg.setAboutUs(rs.getString(\"about_us\"));\r\n\t\t\tstoreCfg.setFeaturesOne(rs.getString(\"features_one\"));\r\n\t\t\tstoreCfg.setFeaturesTwo(rs.getString(\"features_two\"));\r\n\t\t\tstoreCfg.setFeaturesThree(rs.getString(\"features_three\"));\r\n\t\t\tstoreCfg.setFeaturesFour(rs.getString(\"features_four\"));\r\n\t\t\tstoreCfg.setFeaturesFive(rs.getString(\"features_five\"));\r\n\t\t\tstoreCfg.setFeaturesSix(rs.getString(\"features_six\"));\r\n\t\t\tstoreCfg.setAboutShopLogoLink(rs.getString(\"about_shop_logo_link\"));\r\n\t\t\tstoreCfg.setCountry_code(rs.getString(\"country_code\"));\r\n\t\t\t//delivery_flag, delivery_start_time, delivery_end_time, delivery_loc_id, store_hours_start, store_hours_end, store_days\r\n\t\t\tvendorConfigs.add(storeCfg);\r\n\t\t}\r\n\t\t\r\n\t\treturn vendorConfigs;\r\n\t}", "public void readTableData() {\n\t\tint colCount = driver.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr[1]/th\"))\n\t\t\t\t.size();\n\t\tSystem.out.println(\"colCount\" + colCount);\n\t\t// Find row size\n\t\tint rowCount = driver\n\t\t\t\t.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td/parent::*\")).size();\n\t\tSystem.out.println(\"rowCount\" + rowCount);\n\t\t// Find xpath for 1st row and 1st column. Break into multiple parts such\n\t\t// that row and column no can be iterated.\n\t\tString firstPart = \"(//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td[2]/parent::tr)[\";\n\t\tString secondPart = \"1\";\n\t\tString thirdPart = \"]\";\n\t\tboolean flag = false;\n\t\t// Loop through rows one by one. Start from 1st row till row count.\n\t\tfor (int i = 1; i <= rowCount; i++) {\n\t\t\t// For every row, loop through columns one by one. Start from 1st\n\t\t\t// column till column count.\n\t\t\tfor (int j = 1; j <= colCount; j++) {\n\t\t\t\tString finalPart = firstPart + i + secondPart + j + thirdPart;\n\t\t\t\tSystem.out.println(finalPart);\n\t\t\t\tString text = driver.findElement(By.xpath(finalPart)).getText();\n\t\t\t\tSystem.out.print(text + \" | \");\n\t\t\t\t//If we need to stop after a particular text is matched use if condition\n\t\t\t\tif(text.contains(\"abc\")){\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t\tflag = true;//Set flag as true(Logic from Naveen automation labs)\n\t\t\t\t\tbreak;//This will stop iterating the columns.(https://www.youtube.com/watch?v=Rjs9qLRP9tM&list=PLFGoYjJG_fqo4oVsa6l_V-_7-tzBnlulT&index=18)\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif(flag){\n\t\t\t\tbreak;//This will break outer loop only if flag is true. i.e. we have retrieved the text that we need. If not it will continue with next iteration.\n\t\t\t}\n\t\t}\n\t}", "public void exportToCSV();", "List<ProductCategory> getAll();", "public List<Product> scrapeProducts() {\n\n // Create empty list for the products that are going to be fetched\n List<Product> foundProducts = new ArrayList<>();\n\n // Open the url\n getDriver().get(getWebStore().getURL());\n\n // Locate the overview of all products\n System.out.println(getWebStore().getURL());\n WebElement productsOverview = getDriver().findElement(By.cssSelector(getWebStore().getProductsOverviewSelector()));\n\n // Get all products per class\n List<WebElement> products = productsOverview.findElements(By.className(getWebStore().getProductSelector().substring(1)));\n\n // Create a new webScraper\n WebScraper productPage = new WebScraper();\n productPage.setDriver(new HtmlUnitDriver());\n\n // Loop thru all found products and scrape information that is needed\n for (WebElement product : products) {\n Product newProduct = new Product();\n\n try {\n // Set up the information that is already visible\n newProduct.setBrand(new Brand(webStore.getBrand()));\n\n // Find the redirect link\n newProduct.setRedirectURL(\n product.findElement(By.cssSelector(webStore.getProductURLSelector())).getAttribute(\"href\")\n );\n\n foundProducts.add(newProduct);\n } catch (Exception e) {\n // Show error message when something goes wrong\n System.out.printf(\"Something went wrong while fetching the products of the brand: %s\\n\", getWebStore().getBrand());\n e.printStackTrace();\n }\n }\n\n // Add additional data to the products by visiting their individual page\n for (Product foundProduct : foundProducts) {\n try {\n scrapeAdditionalDataOfProduct(foundProduct);\n } catch (Exception e) {\n System.out.printf(\"Something went wrong while fetching the products of the brand: %s\\n\", getWebStore().getBrand());\n }\n }\n\n for (int i = 0; i < foundProducts.size(); i++) {\n if (foundProducts.get(i).getName() == null) {\n foundProducts.remove(foundProducts.get(i));\n }\n }\n\n return foundProducts;\n }", "public void createCsvString(StringBuilder builder, Category e) {\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getName() != null ? e.getName().replace(\",\", \"\") : \"\")\r\n\t\t\t\t+ \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "public StringBuilder out()\n {\n\t\tStringBuilder out = new StringBuilder(); //the data to be outputed\n\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//turns an entry into a single line\n\t\t\tout.append(\"2,\"); \t\t//sets the line's id\n\t\t\tout.append(foodStuff.getName()+\",\");\t\t//sets the line's name\n\n\t\t\tif(foodStuff.getTxtFile() != null) //if the food has a file object\n\t\t\t{\n\t\t\t\t//convert the file into a path string\n\t\t\t\tout.append(foodStuff.getTxtFile().getPath()+\",\");\n\t\t\t\t//NOTE because these path names exist outside of the app\n\t\t\t\t// this will prevent them from being mobile\n\t\t\t}\n\t\t\telse //if the food has a file path\n\t\t\t\tout.append(foodStuff.getFile()+\",\"); \t//sets the line's file path\n\t\t\tout.append(foodStuff.getIngredients()+\",\"); //sets the line's ingrds.\n\t\t\tout.append(foodStuff.getImage()+\",\"); \t\t//sets the line's image path\n\t\t\tout.append(\"\\n\"); //add a newline before the next line\n\t\t}\n\t\treturn out; //return the built CSV chunk\n }", "Product getPProducts();", "@GetMapping(\"/{categoryId}/products\")\r\n @ResponseBody\r\n public DataTables<Product> getProductListByCategory(@PathVariable(\"categoryId\") Long categoryId,DataTables dt){\n return null;\r\n }", "public List<String> getTierOneAnswersCategories(Integer productId) {\n\tList<String> list = getHibernateTemplate().find(\"select cat.name from Category cat , Response resp, Request req where resp.requestId = req.id and req.productId=? and req.tier=1 and cat.categoryCode= resp.answer)\", productId); \n\treturn list;\n\n }", "private static void readAllBeansAtOnce(CsvToBean csvToBean) {\n List<CSVStock> csvStocks = csvToBean.parse();\n\n for(CSVStock csvStock: csvStocks) {\n System.out.println(\"Date : \" + csvStock.getDate().toString());\n System.out.println(\"Open : \" + csvStock.getOpen());\n System.out.println(\"High : \" + csvStock.getHigh());\n System.out.println(\"Low : \" + csvStock.getLow());\n System.out.println(\"Low : \" + csvStock.getClose());\n System.out.println(\"Low : \" + csvStock.getVolume());\n System.out.println(\"==========================\");\n }\n }", "@Override\r\n\tpublic void fillByRows(List<Category> categorys,int row) {\n\t\t\tfill(categorys);\r\n\t\tfor(Category category : categorys) {\r\n\t\t\tList<Product> products = category.getProducts();\t\r\n\t\t\tint i = 0;\r\n\t\t\tList<List<Product>> list = new ArrayList<>();\r\n\t\t\tList<Product> p = new ArrayList<>();\r\n\t\t\tif(!category.getProducts().isEmpty()) {\r\n\t\t\tfor(Product product : products) {\r\n\t\t\t\tp.add(product);i++;\r\n\t\t\t\tif(i%8==0) {\r\n\t\t\t\t\tlist.add(p);\r\n\t\t\t\t\tp = new ArrayList<>();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(!p.isEmpty()) {\r\n\t\t\t\tlist.add(p);\r\n\t\t\t}\r\n\t\t\tcategory.setProductsByRows(list);\r\n\t\t}\r\n\t}\r\n\t}", "ProductCatelogueResponse getProductCatelogues();", "public List<Product> getProducts(ProductRequest request) throws IOException {\n if (request.isSingle()){\n List<Product> products = new ArrayList<>();\n products.add(parseResult(executeRequest(request),Product.class));\n return products;\n } else {\n return parseResults(executeRequest(request), Product.class);\n }\n }", "public void saveAsCsv() {\n\n try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(\"saves/data.csv\"))){\n for(Publication book : library){\n StringBuilder stringBuilder = new StringBuilder();\n\n stringBuilder.append(\"\\\"\").append(book.getClass().getSimpleName()).append(\"\\\"\"); // type\n stringBuilder.append(\",\"); // delimiter\n stringBuilder.append(\"\\\"\").append(book.getTitle()).append(\"\\\"\"); // title\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getAuthor().toString()).append(\"\\\"\"); // author\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getPages()).append(\"\\\"\"); // pages\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getIsbn()).append(\"\\\"\"); // isbn\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getReleaseYear()).append(\"\\\"\"); // year\n stringBuilder.append(\"\\n\");\n\n bufferedWriter.write(stringBuilder.toString()); // creates a line of one publication information and puts it to file\n }\n } catch (IOException e){\n System.out.println(\"IOException occurred: \" + e.getMessage());\n }\n }", "@Override\n DBO consume(String csv) throws TransformerException;", "public void exportCsv() throws IOException\n {\n File csvOutputFile = new File(\"datas.csv\");\n try (PrintWriter writer = new PrintWriter(csvOutputFile)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Temps\");\n sb.append(\",\");\n for (String title : this.getModelLabels())\n {\n sb.append(title);\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n for (int i = 0; i < this.getEtatPopulation().size(); i++)\n {\n sb.append(i);\n sb.append(\",\");\n for (double value : this.getEtatPopulation().get(i))\n {\n sb.append(value);\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n }\n writer.write(sb.toString());\n System.out.println(\"Datas Successfully Exported !\");\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n }\n\n }", "@Override\r\n\tpublic ArrayList<String> importCsv(File file) {\r\n\t\t\tFileReader monFichier = null;\r\n\t\t\tBufferedReader tampon = null;\r\n\t\t\tArrayList<String> aLImport = new ArrayList<String>();\r\n\t\t\tString[] tabString ;\r\n\t\t\tint sizeLine;\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\t// file path\r\n\t\t\t\tmonFichier = new FileReader(file.getAbsolutePath());\r\n\t\t\t\ttampon = new BufferedReader(monFichier);\r\n\r\n\t\t\t\t// read the first line of the file .csv\r\n\t\t\t\tString ligneTemp = tampon.readLine();\r\n\t\t\t\ttabString = ligneTemp.split(\";\");\r\n\t\t\t\tthis.setNbColumnsRead(tabString.length);\r\n\t\t\t\t\r\n\t\t\t\t//Start of the actual content (first line only acting as a header)\r\n\t\t\t\tligneTemp = tampon.readLine();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t// faire la gestion des erreurs \r\n\t\t\t\t\t\t/*JOptionPane.showMessageDialog(this, \"Le fichier .csv n'est pas valide\", \"Erreur !\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);*/\r\n\t\t\t\t\r\n\t\t\t\t// read all the lines one by one and split them to keep the\r\n\t\t\t\t// structure's name\r\n\t\t\t\twhile (ligneTemp != null) {\t\t\t\t\t\r\n\t\t\t\t\ttabString = ligneTemp.split(\";\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tsizeLine = tabString.length;\r\n\t\t\t\t\t//This for start at 1 in order to skip the first cell, assuming it is always \"Start\" and is therefore not required in the ArrayList\r\n\t\t\t\t\tfor (int i = 1; i < sizeLine; i+=2) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!tabString[i].contains(\"End\")){\r\n\t\t\t\t\t\t\taLImport.add(tabString[i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tligneTemp = tampon.readLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException exception) {\r\n\t\t\t\texception.printStackTrace();\r\n\t\t\t\treturn null;\r\n\t\t\t} finally {\r\n\t\t\t\ttry {\r\n\t\t\t\tif (tampon != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttampon.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (monFichier != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmonFichier.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException exception1) {\r\n\t\t\t\t\texception1.printStackTrace();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn aLImport;\t\r\n\t}", "@ProcessElement\r\n\t\tpublic void processElement(ProcessContext c) throws Exception {\n\t\t\t\r\n\t\t\tString line = c.element();\r\n\t\t\tCSVParser csvParser = new CSVParser();\r\n\t\t\tString[] words = csvParser.parseLine(line);\r\n\t\t\t\r\n\t\t\tTableRow row = new TableRow();\t\t\t\r\n\t\t\tlogger.info(\"column size======>\" + columnList.size());\r\n\t\t\tfor (int i = 0; i < columnList.size(); i++) {\r\n\t\t\t\tlogger.info(\"column name ===>value\" + columnList.get(i) + words[i]);\r\n\t\t\t\t/*if (words[i].startsWith(\"\\\"\") && words[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\tcolumnValue = words[i].replace(\"\\\"\",\"\");\r\n\t\t\t\t}*/\r\n\t\t\t\trow.set(columnList.get(i), /*columnValue*/ words[i]);\r\n\t\t\t}\r\n\r\n\t\t\tc.output(row);\r\n\t\t}", "public ProductInfo getProductInfo(Element element) {\n ProductInfo productInfo=new ProductInfo();\n Element tmp;\n\n productInfo.setProductId(\n element.attr(\"data-pid\")\n );\n\n tmp=element.select(\"span.score*\").first();\n if(tmp!=null)\n productInfo.setProductScore(\n Double.parseDouble(\n element.select(\"span.score*\").first().text().replace(\",\",\".\")\n )\n );\n else\n productInfo.setProductScore(0);\n\n String urlI=element.select(\"img[data-src]\").first().attr(\"data-src\");\n productInfo.setProductImageUrl(\n urlI\n );\n\n try {\n urlI = urlI.split(\"/\")[5];\n }\n catch (Exception e){\n urlI=null;\n }\n\n if(urlI!=null)\n productInfo.setProductUrl(\n url + \"/\" +urlI\n );\n\n else\n\n productInfo.setProductUrl(\n element.select(\"a[href]\").first().attr(\"href\")\n );\n\n\n productInfo.setProductName(\n element.select(\"div.list-prod-name\").first().text()\n );\n\n productInfo.setProductBottom(\n Double.parseDouble(\n element.select(\"span.price-int\").first().text()+\n element.select(\"span.price-fraction\").first().text().replace(\",\",\".\")\n )\n );\n\n try{\n productInfo.setProductCategory(\n element.select(\".subcat-type-icon\").first().select(\"img\").first().attr(\"alt\")\n );\n }\n catch (Exception e){\n e.printStackTrace();\n productInfo.setProductCategory(\"Brak\");\n }\n\n\n productInfo.setStocks(\n element.select(\".listing-shops-number\").first().text()\n );\n\n return productInfo;\n }", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}", "public void getResult() {\n\t\tString csvFile = \"Files\\\\TempFile\\\\TweetConf.csv\";\t\t//Temporary intermediate file\n\t\tBufferedReader br = null;\n\t\tFileWriter writer = null;\n\t\tString line = \"\";\n\t\tString tweetNum =\"\";\n\t\tString tweet = \"\";\n\t\tString confidence = \"\";\n\t\tArrayList<ArrayList<String>> finalResult = new ArrayList<>();\n\t\tArrayList<String> innerList1 = new ArrayList<String>();\n\t\tArrayList<String> innerList2 = new ArrayList<String>();\n\t\tArrayList<String> innerList3 = new ArrayList<String>();\n\t\t\n\t\ttry{\n\t\t\twriter = new FileWriter(\"TweetResult.csv\");\t\t\t//Final Result csv(Stired on the workspace folder).\n\t\t\tbr = new BufferedReader(new FileReader(csvFile));\n\t\t\tCSVParser csvParser = new CSVParser();\n\t\t\tboolean firstRowFlag = true;\n\t\t\tint i =0;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] lineArray = csvParser.parseLine(line);\n\t\t\t\ttweetNum = lineArray[0];\n\t\t\t\ttweet = lineArray[1];\n\t\t\t\tconfidence = lineArray[7];\n\t\t\t\tif(firstRowFlag==false){\n\t\t\t\t\tif(finalResult.get(0).contains(tweetNum)){\n\t\t\t\t\t\tif(Double.parseDouble(finalResult.get(2).get(i))<Double.parseDouble(confidence)){\n\t\t\t\t\t\t\tfinalResult.get(2).set(i, confidence);\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\ti++;\n\t\t\t\t\t\tfinalResult.get(0).add(tweetNum);\n\t\t\t\t\t\tfinalResult.get(1).add(tweet);\n\t\t\t\t\t\tfinalResult.get(2).add(confidence);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(firstRowFlag==true){\n\t\t\t\t\tfirstRowFlag=false;\n\t\t\t\t\tinnerList1.add(tweetNum);\n\t\t\t\t\tinnerList2.add(tweet);\n\t\t\t\t\tinnerList3.add(confidence);\n\t\t\t\t\tfinalResult.add(innerList1);\n\t\t\t\t\tfinalResult.add(innerList2);\n\t\t\t\t\tfinalResult.add(innerList3);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tint innerListSize = finalResult.get(0).size();\n\t\t\tfor(int j=0; j<innerListSize; j++){\n\t\t\t\twriter.append(finalResult.get(0).get(j));\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(finalResult.get(1).get(j));\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(finalResult.get(2).get(j));\n\t\t\t\twriter.append(',');\n\t\t\t\tif(Double.parseDouble(finalResult.get(2).get(j))<0.6){\n\t\t\t\t\twriter.append(\"Non food poisoning tweet\");\n\t\t\t\t}\n\t\t\t\telse if(Double.parseDouble(finalResult.get(2).get(j))>=0.6 && Double.parseDouble(finalResult.get(2).get(j))<=1){\n\t\t\t\t\twriter.append(\"Food poisoning tweet\");\n\t\t\t\t}\n\t\t\t\telse if(Double.parseDouble(finalResult.get(2).get(j))==100){\n\t\t\t\t\twriter.append(\"Non food poisoning tweet\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twriter.append(\"Non food poisoning tweet\");\n\t\t\t\t}\n\t\t\t\twriter.append('\\n');\n\t\t\t}\n\t\t\t\n\t\t\twriter.close();\n\t\t}catch (FileNotFoundException e) {\n\n\t\t\tFile myFile = new File(csvFile);\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Attempting to read from file in: \"\n\t\t\t\t\t\t+ myFile.getCanonicalPath());\n\t\t\t} catch (IOException e1) {\n\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public String getAllDataForAttributes() throws Exception {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tif (lstObjectType != null && lstObjectType.size() > 0 && lstId != null && lstId.size() > 0 && lstObjectType.size() == lstId.size()) { //lstId = listObjectId\n\t\t\t\tList<PromotionCustAttrVO> lst = new ArrayList<PromotionCustAttrVO>();\n\t\t\t\tPromotionCustAttrVO vo;\n\t\t\t\tInteger objectType;\n\t\t\t\tLong objectId;\n\t\t\t\tCustomerAttribute attribute;\n\t\t\t\tAttributeColumnType attColType;\n\t\t\t\tList<AttributeDetailVO> lstAttDetail;\n\t\t\t\tfor (int i = 0; i < lstObjectType.size(); i++) {\n\t\t\t\t\tobjectType = lstObjectType.get(i);\n\t\t\t\t\tobjectId = lstId.get(i);\n\t\t\t\t\tif (objectType != null) {\n\t\t\t\t\t\tvo = new PromotionCustAttrVO();\n\t\t\t\t\t\tvo.setObjectType(objectType);\n\t\t\t\t\t\tvo.setObjectId(objectId);\n\t\t\t\t\t\tif (objectType.equals(AUTO_ATTRIBUTE)) {\n\t\t\t\t\t\t\tattribute = customerAttributeMgr.getCustomerAttributeById(objectId);\n\t\t\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\t\t\tattColType = attribute.getValueType();\n\t\t\t\t\t\t\t\tvo.setValueType(attColType);// setValueType\n\t\t\t\t\t\t\t\tvo.setName(attribute.getName());\n\t\t\t\t\t\t\t\t// chi set du lieu cho kieu dropdownlist:\n\t\t\t\t\t\t\t\tif (attColType == AttributeColumnType.CHOICE || attColType == AttributeColumnType.MULTI_CHOICE) {\n\t\t\t\t\t\t\t\t\tlstAttDetail = promotionProgramMgr.getListPromotionCustAttVOCanBeSet(attribute.getId());\n\t\t\t\t\t\t\t\t\tvo.setListData(lstAttDetail);// setListData\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (objectType.equals(CUSTOMER_TYPE)) {\n\t\t\t\t\t\t\tList<ChannelTypeVO> listChannelTypeVO = promotionProgramMgr.getListChannelTypeVO();\n\t\t\t\t\t\t\tvo.setListData(listChannelTypeVO);//setListData\n\t\t\t\t\t\t} else if (objectType.equals(SALE_LEVEL)) {\n\t\t\t\t\t\t\tList<ProductInfoVO> listProductInfoVO = promotionProgramMgr.getListProductInfoVO();\n\t\t\t\t\t\t\tif (listProductInfoVO != null && listProductInfoVO.size() > 0) {\n\t\t\t\t\t\t\t\tfor (ProductInfoVO productInfoVO : listProductInfoVO) {\n\t\t\t\t\t\t\t\t\tList<SaleCatLevelVO> listSaleCatLevelVO = promotionProgramMgr.getListSaleCatLevelVOByIdPro(productInfoVO.getIdProductInfoVO());\n\t\t\t\t\t\t\t\t\tproductInfoVO.setListSaleCatLevelVO(listSaleCatLevelVO);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvo.setListProductInfoVO(listProductInfoVO);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlst.add(vo);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresult.put(\"list\", lst);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getAllDataForAttributes\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t}\n\t\treturn JSON;\n\t}", "static public void readCSVData(String csvFile, String imagePath)\n\t{\t\n String line = \"\";\n String cvsSplitBy = \"\\t\";\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(csvFile), \"UTF8\"))) {\n\n while ((line = br.readLine()) != null) {\n String[] dataMovie = line.split(cvsSplitBy);\n //System.out.println(\"Nom: \" + dataMovie[0] + \"\\nDate de sortie: \" + dataMovie[1] + \"\\nRealisateur: \" + dataMovie[2] + \"\\nDescription: \" + dataMovie[3] + \"\\nLien de la BA: \" + dataMovie[4] + \"\\nLiens sceances: \" + dataMovie[5] + \"\\nNom fichier image: \" + dataMovie[6] + \"\\n\");\n\t\t\t\tmoviesDataTab.add(dataMovie[0] + \"\\t\" + dataMovie[1] + \"\\t\" + dataMovie[2] + \"\\t\" + dataMovie[3] + \"\\t\" + dataMovie[4] + \"\\t\" + dataMovie[5]);\n\t\t\t\timageTab.add(imagePath +\"/images/\" +dataMovie[6]);\n\t\t\t}\n } catch (IOException e) {\n e.printStackTrace();\n }\t\n\t}", "public static String searchExportProductList(HttpServletRequest request, HttpServletResponse response) {\n Delegator delegator = (Delegator) request.getAttribute(\"delegator\");\n String errMsg = null;\n List<Map<String, Object>> productExportList = new LinkedList<>();\n\n try {\n boolean beganTransaction = TransactionUtil.begin(DEFAULT_TX_TIMEOUT);\n try (EntityListIterator eli = getProductSearchResults(request)) {\n if (eli == null) {\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.no_results_found_probably_error_constraints\",\n UtilHttp.getLocale(request));\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n\n GenericValue searchResultView = null;\n while ((searchResultView = eli.next()) != null) {\n Map<String, Object> productMap = new HashMap<>();\n String productId = searchResultView.getString(\"mainProductId\");\n productMap.put(\"productId\", productId);\n\n productMap.put(\"productFeatureCustom\", EntityQuery.use(delegator).from(\"ProductFeatureAndAppl\").where(\"productId\", productId,\n \"productFeatureTypeId\", \"HAZMAT\").filterByDate().queryFirst());\n\n List<GenericValue> productCategories = EntityQuery.use(delegator).from(\"ProductCategoryAndMember\").where(\"productId\",\n productId).filterByDate().queryList();\n productMap.put(\"productCategories\", productCategories);\n List<GenericValue> productFeatures =\n EntityQuery.use(delegator).from(\"ProductFeatureAndAppl\").where(\"productId\", productId).filterByDate().queryList();\n productMap.put(\"productFeatures\", productFeatures);\n productExportList.add(productMap);\n }\n } catch (GenericEntityException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errSearchResult\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.error_getting_search_results\", messageMap,\n UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n TransactionUtil.rollback(beganTransaction, errMsg, e);\n return \"error\";\n } finally {\n TransactionUtil.commit(beganTransaction);\n }\n } catch (GenericTransactionException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errSearchResult\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.error_getting_search_results\", messageMap, UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n\n request.setAttribute(\"productExportList\", productExportList);\n return \"success\";\n }", "@Override\n public List<ProductCategory> getAllAvailableProductCategoriesForMetaData() {\n final List<Category> avaliableCategories = productCategoryDao.fetchAllAvailableCategoriesForProduct();\n final List<ProductCategory> availableProductCategories = new ArrayList<ProductCategory>();\n for (final Category availableCategory : avaliableCategories) {\n final ProductCategory category = new ProductCategory();\n category.setCategoryId(availableCategory.getCategoryId());\n category.setCategoryName(availableCategory.getCategoryName());\n category.setCategoryPartNumber(availableCategory.getCategoryPartNumber());\n availableProductCategories.add(category);\n }\n return availableProductCategories;\n }", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "public PizzaIngredientsRawCsvLine(String category, String subCategory, String productName,\n String productDescription, String price, String deliveryFee,\n String isSpicy, String isVegetarian, String isAvailable,\n String ingredientPortion, String ingredientName,\n String standardPizzasauce) {\n this.category = category;\n this.subCategory = subCategory;\n this.productName = productName;\n this.productDescription = productDescription;\n this.price = price;\n this.deliveryFee = deliveryFee;\n this.isSpicy = isSpicy;\n this.isVegetarian = isVegetarian;\n this.isAvailable = isAvailable;\n this.ingredientPortion = ingredientPortion;\n this.ingredientName = ingredientName;\n this.standardPizzasauce = standardPizzasauce;\n }", "public static void PrintToCsv() throws Exception {\n\t\tBufferedWriter bw1 = new BufferedWriter(new FileWriter(\"./data/output1.csv\"));\n\t\tBufferedWriter bw2 = new BufferedWriter(new FileWriter(\"./data/output2.csv\"));\n\t\tBufferedWriter bw3 = new BufferedWriter(new FileWriter(\"./data/output3.csv\"));\n\t\tBufferedWriter bw4 = new BufferedWriter(new FileWriter(\"./data/output4.csv\"));\n\t\t\n\t\t//print the name of attributes in Table\n\t\tPrint_attribute(bw1,bw2,bw3,bw4);\n\t\tIterator<String> iter = BugDBConnection.Domain.keySet().iterator();\n\t\ttry{\n\t\t\twhile(iter.hasNext()){\n\t\t\t\tString key = iter.next();\n\t\t\t\tdomain = key.split(\"-\")[0];\n\t\t\t\tproject = key.split(\"-\")[1];\n\n\t\t\t\tFieldSet fieldset = BugDBConnection.Domain.get(key);\n\t\t\t\tPrintQ1(bw1,fieldset.field);\n\t\t\t\tPrintQ2(bw2, fieldset.refield);\n\t\t\t\tPrintQ3(bw3, fieldset.f1, fieldset.f2, fieldset.f3, fieldset.f4);\n\t\t\t\tPrintQ4(bw4, fieldset.avg, fieldset.min, fieldset.max);\n\t\t\t\t\n\t\t\t}\n\t\t\tbw1.close();\n\t\t\tbw2.close();\n\t\t\tbw3.close();\n\t\t\tbw4.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readFile(){\r\n\t\tFileInputStream inputStream = null;\r\n\t\tScanner scan = null;\r\n\t\tString path = \"C:/Users/spandya/workspace/LatestPrice.csv\";\r\n\t\ttry {\r\n\t\t\tinputStream = new FileInputStream(path);\r\n\t\t\tscan = new Scanner(inputStream, \"UTF-8\");\r\n\t\t\twhile(scan.hasNext()){\r\n\t\t\t\tString line = scan.nextLine();\r\n\t\t\t\tString firstWord = line.split(\",\")[0];\r\n\t\t\t\tString latestPrice = line.substring(line.lastIndexOf(\",\")+1);\r\n\t\t\t\tSystem.out.println(firstWord+\":\"+latestPrice);\r\n\t\t\t}\r\n\t\t\tif(scan.ioException() != null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthrow scan.ioException();\r\n\t\t\t\t} catch (IOException 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}\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tif(inputStream != null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinputStream.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(scan != null){\r\n\t\t\t\tscan.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void readTableData1() {\n\t\t// Find row size\n\t\tList<WebElement> rowCount = driver.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td/parent::*\"));\n\t\tfor(WebElement data:rowCount){\n\t\t\tSystem.out.println(data.getText());\n\t\t}\n\t}", "@Override\r\n\tpublic List<DemoProduct> getProducts(String color, Integer howMany) throws Exception {\n\t\tHttpCall.HttpRequest request = new HttpCall.HttpRequest();\r\n\t\trequest.path = QUERY_PRODUCTS_URL;\r\n\t\tMap<String, String> params = new HashMap<>();\r\n\t\tparams.put(\"color\",color);\r\n\t\tparams.put(\"howMany\",howMany.toString());\r\n\t\trequest.params = params;\r\n\t\t\r\n\t\tException error = null;\r\n\t\tString json = null;\r\n\t\tList<DemoProduct> prods = new ArrayList<>();\r\n\t\t\r\n\t\ttry{\r\n\t\t json = get (request);\r\n\t\t prods = gson.fromJson(json, new TypeToken<List<DemoProductImpl>>(){}.getType());\r\n\t\t}catch(Exception e){\r\n\t\t\tif(e instanceof com.google.gson.JsonSyntaxException) {\r\n\t\t\t\terror = (new Gson()).fromJson(json, Exception.class);\r\n\t\t\t} else {\r\n\t\t\t\terror =e;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(prods == null){\r\n\t\t\tif(error == null) error = (new Gson()).fromJson(json, Exception.class);\r\n\t\t\t if(error!=null) throw new Exception(error.getLocalizedMessage());\r\n\t\t}\r\n\r\n\t\treturn prods;\r\n\t}", "private void get_products_search()\r\n\r\n {\n MakeWebRequest.MakeWebRequest(\"get\", AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n AppConfig.SALES_RETURN_PRODUCT_LIST + \"[\" + Chemist_ID + \",\"+client_id +\"]\", this, true);\r\n\r\n// MakeWebRequest.MakeWebRequest(\"out_array\", AppConfig.SALES_RETURN_PRODUCT_LIST, AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n// null, this, false, j_arr.toString());\r\n //JSONArray jsonArray=new JSONArray();\r\n }", "public ArrayList<ComProduct> get_all_comproduct() throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\" service operation started !\");\n\n\t\ttry{\n\t\t\tArrayList<ComProduct> ComProduct_list;\n\n\t\t\tComProduct_list = ComProduct_Default_Activity_dao.get_all_comproduct();\n\n \t\t\tlog.info(\" Object returned from service method !\");\n\t\t\treturn ComProduct_list;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\" service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}", "public static List<List<String>> getCSV2(String filepath) { //this method words the best\r\n List<List<String>> records = new ArrayList<>();\r\n try (BufferedReader br = new BufferedReader(new FileReader(filepath))) {\r\n String line;\r\n int lineCounter = 1; // this is to stop it from reading lines after the data is done\r\n while ((line = br.readLine()) != null) {\r\n String[] values = line.split(\",\");\r\n if (values.length < 2 && lineCounter > 14) { // <----- the 14th line is chosen arbitrarily.\r\n System.out.println(\"end of file\");\r\n break;\r\n } else {\r\n records.add(Arrays.asList(values));\r\n lineCounter++;\r\n }\r\n }\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return records;\r\n }", "@SuppressWarnings(\"resource\")\r\n\tpublic static ArrayList<UserInfo> getUserDataFromCsvFile()\r\n\t{\r\n\t\t\r\n\t\tArrayList<UserInfo> unfList=null;\r\n\t\ttry{\r\n\t\t\tFile myObj= new File(\"E:\\\\Selenium Setup\\\\datadriven.csv\");\r\n\t\t\tunfList = new ArrayList<UserInfo>();\r\n\t\t\tScanner myReader= new Scanner(myObj);\r\n\t\t\tint count=0;\r\n\t\t\twhile (myReader.hasNextLine()) \r\n\t\t\t{\r\n\t\t\t\tString data= myReader.nextLine();\r\n\t\t\t\tif (count !=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tString[] info =data.split(\"\\\\,\");\r\n\t\t\t\t\tunfList.add(new UserInfo(info[0],info[1]));\r\n\t\t\t\t\t//unfList.add(new UserInfo(info[0], info[1]));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t++count;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t}\r\n\t\t\treturn unfList;\r\n\t}", "public void csv() throws IOException {\n\t\t\n\t\tSystem.out.println(); //spacing\\\n\t\tFileWriter f;\n\t\t\n\t\tif (bundle.getString(\"csvName\").endsWith(\".csv\")) {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\"));\n\t\t}\n\t\t\n\t\telse {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\") + \".csv\");\n\t\t}\n\t\t\n\t\tPrintWriter p = new PrintWriter(f);\n\t\tObject[][] input = {revisionsToo, flowOfTime};\n\t\tCSVWork(input, p, f);\n\t\t\n\t\tObject[][] nextInput = {revisions, ratings};\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = irrelevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = relevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[0] = intervals;\n\t\tnextInput[1] = commits;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tspecialCSV(existsHere, p);\n\t\t\n\t\tp.flush();\n\t\tp.close();\n\t\tf.close();\n\t}", "public List<String[]> readCSV() {\n\t\tCSVReader reader;\n\t\tList<String[]> myEntries = new ArrayList<String[]>();\n\t\ttry {\n\t\t\treader = new CSVReader(new FileReader(getCSVFolder() + File.separator + getFileName() + \".csv\"));\n\t\t\tmyEntries = reader.readAll();\n\t\t\treader.close();\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn myEntries;\n\t}", "protected void readCSVToMap(String filename) throws Exception{ // IMPORTANT FUNCTION\n db = new HashMap<String, List<String>>();\n keys = new ArrayList<String>();\n InputStream is = getAssets().open(\"ABBREV_2.txt\");\n //File f = new File(path.toURI());\n //File f = new File(path.getFile());\n BufferedReader in = new BufferedReader(new InputStreamReader(is));//new BufferedReader(new FileReader(\"ABBREV_2.txt\"));\n String line = \"\";\n while ((line = in.readLine()) != null) {\n String parts[] = line.split(\"\\t\");\n List<String> nutrition = new ArrayList();\n for (int i = 1; i < parts.length; i++){\n nutrition.add(parts[i]);\n }\n db.put(parts[0], nutrition);\n keys.add(parts[0]);\n }\n in.close();\n\n }", "@Override\n\tprotected String objectToCSVRecord(Object object) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tstr.append(((Item) object).getItemno());\n\t\tstr.append(\",\");\n\t\tstr.append(((Item) object).getItemName());\n\t\tstr.append(\",\");\n\t\tstr.append(((Item) object).getUnitPrice());\n\t\tstr.append(\",\");\n \tString one=str.toString();\n \treturn one;\n\t\t\n\t\t \n\t}", "public List<ProductTilePojo> getCategoryProductsList() {\n\t\tLOGGER.info(\"GetCategoryProductList -> Start\");\n\t\tcategoryProductsList = new ArrayList<>();\n\t\tList<ProductTilePojo> allProducts;\n\t\tString currentPath = homePagePath + PropertyReaderUtils.getProductPath();\n\t\tTagManager tagManager = resource.getResourceResolver().adaptTo(TagManager.class);\n\t\tif (galleryCategory != null && tagManager != null) {\n\t\t\tTag galleryTag = tagManager.resolve(galleryCategory[0]);\n\t\t\tString galleryTagId = galleryTag.getTagID();\n\t\t\tallProducts = productGalleryAndLandingService.getTilesByDate(currentPath, true);\n\t\t\tif (allProducts != null) {\n\t\t\t\tcategoryProductsList = productGalleryAndLandingService.filterProductsByTag(allProducts, galleryTagId);\n\t\t\t}\n\t\t\tif (categoryProductsList.size() > 12) {\n\t\t\t\treturn categoryProductsList.subList(0, 12);\n\t\t\t}\n\n\t\t}\n\t\tLOGGER.info(\"GetCategoryProductList -> End\");\n\t\treturn categoryProductsList;\n\n\t}", "public static Product[] process(String html){\r\n\t\tProduct[] items = new Product[100];\r\n\t\tint i = 0;\r\n\t\t//trim\r\n\t\tint temp = html.indexOf(\"/<![CDATA[var ServerDataProducts=\");\r\n\t\thtml = html.substring(temp,html.length());\r\n\t\t//find products\r\n\t\ttemp = html.indexOf(\"\\\"Description\\\":\\\"\");\r\n\t\twhile(temp>0){\r\n\t\t\thtml = html.substring(temp+15,html.length());\r\n\t\t\titems[i] = new Product();\r\n\t\t\ttemp = html.indexOf(\"\\\"\");\r\n\t\t\titems[i].name = html.substring(0, temp);//System.out.println(items[i].name);\r\n\t\t\thtml = html.substring(temp,html.length());\r\n\t\t\ttemp = html.indexOf(\"\\\"Precio\\\":\\\"\");\r\n\t\t\thtml = html.substring(temp+10,html.length());\r\n\t\t\ttemp = html.indexOf(\"\\\"\");\r\n\t\t\titems[i].price = html.substring(0,temp);//System.out.println(items[i].price);\r\n\t\t\thtml = html.substring(temp,html.length());\r\n\t\t\titems[i].store = \"Walmart\";\r\n\t\t\t//find product url\r\n\t\t\ttemp = html.indexOf(\"\\\"upc\\\":\\\"\");\r\n\t\t\thtml = html.substring(temp+7,html.length());\r\n\t\t\titems[i].productlink = \"http://www.walmart.com.mx/Detalle-del-articulo/\"+html.substring(0,html.indexOf(\"\\\"\"))+\"/a\";\r\n\t\t\t//find next item\r\n\t\t\ti++;\r\n\t\t\ttemp = html.indexOf(\"\\\"Description\\\":\\\"\");\r\n\t\t}\r\n\t\tProduct[] result = new Product[i];\r\n\t\tfor(int j=0; j<i; j++){\r\n\t\t\tresult[j] = items[j];\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic List<Product> findAll() {\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\tResultSet rs=null;\n\t\t\n\t\tList<Product> list=new ArrayList<Product>();\n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"select id,category_id,name,Subtitle,main_image,sub_images,detail,price,stock,status,create_time,update_time from product\");\n\t\t\t\n\t\t\trs=pst.executeQuery();\n\t\t while(rs.next()) {\n\t\t \t Product product =new Product(rs.getInt(\"id\"),rs.getInt(\"category_id\"),rs.getString(\"name\"),rs.getString(\"Subtitle\"),rs.getString(\"main_image\"),rs.getString(\"sub_images\"),rs.getString(\"detail\"),rs.getBigDecimal(\"price\"),rs.getInt(\"stock\"),rs.getInt(\"status\"),rs.getDate(\"create_time\"),rs.getDate(\"update_time\"));\n\t\t \t list.add(product);\n\t\t \t \n\t\t } \n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tDBUtils.Close(conn, pst, rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "public static ObservableList<productCategory> getProductCategoryList()\n {\n ObservableList<productCategory> productCategoryList = FXCollections.observableArrayList();\n\n PreparedStatement stmt = null;\n ResultSet myRst = null;\n\n try\n {\n String pstmt = \"SELECT * FROM Product_Categories;\";\n\n stmt = DBConnectionManager.con.prepareStatement(pstmt);\n myRst = stmt.executeQuery();\n\n while(myRst.next())\n {\n productCategoryList.add(extractProductCategoryFromResultSet(myRst));\n }\n\n return productCategoryList;\n\n } catch (SQLException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try { if (myRst != null) myRst.close(); } catch (Exception ignored) {}\n try { if (stmt != null) stmt.close(); } catch (Exception ignored) {}\n }\n\n return null;\n }", "private void getEachElementOfTheLine() {\n int nbOfComa = 0;\n String idItemCraft = \"\";\n ArrayList<String> idItemNeeded = new ArrayList<>();\n ArrayList<String> quantityItemNeeded = new ArrayList<>();\n boolean isFinished = false;\n for (int c = 0; c < line.length() && !isFinished; c++) {\n switch (nbOfComa) {\n\n case 2:\n quantityItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == '.') {\n isFinished = true;\n } else if (line.charAt(c + 1) == ';') {\n nbOfComa = 1;\n c++;\n }\n break;\n\n case 1:\n idItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == ',') {\n nbOfComa++;\n c++;\n }\n break;\n\n case 0:\n idItemCraft = idItemCraft + line.charAt(c);\n if (line.charAt(c + 1) == ';') {\n nbOfComa++;\n c++;\n }\n break;\n\n default:\n break;\n }\n }\n this.idItemCraft = idItemCraft;\n this.idItemNeeded = idItemNeeded;\n this.quantityItemNeeded = quantityItemNeeded;\n }" ]
[ "0.68680525", "0.67952645", "0.65577614", "0.63531715", "0.6266335", "0.60694855", "0.5935931", "0.578173", "0.5697843", "0.56826884", "0.564952", "0.5635748", "0.56127036", "0.55911714", "0.55863726", "0.55670196", "0.55336326", "0.552171", "0.5500087", "0.54917675", "0.54829204", "0.5467577", "0.5457844", "0.5449043", "0.5448966", "0.54424536", "0.5418969", "0.54090244", "0.54055476", "0.5403222", "0.53950244", "0.53787005", "0.537624", "0.53745246", "0.5370094", "0.53552055", "0.53486645", "0.5315294", "0.5310011", "0.53094816", "0.5296224", "0.5287403", "0.52607316", "0.5252484", "0.5251663", "0.5238878", "0.5230719", "0.5222319", "0.5217158", "0.5210548", "0.520601", "0.52053475", "0.51956385", "0.5186007", "0.51842254", "0.51835597", "0.5166801", "0.5166195", "0.51636004", "0.51616526", "0.516053", "0.5159843", "0.51509786", "0.5147698", "0.51410985", "0.51407826", "0.5138013", "0.51373345", "0.5133985", "0.513379", "0.5130353", "0.5130223", "0.512762", "0.51230145", "0.5118514", "0.5116448", "0.5112548", "0.51067847", "0.51046944", "0.5096372", "0.5092086", "0.508847", "0.5087774", "0.5085803", "0.50776404", "0.5070487", "0.5067668", "0.50643057", "0.50632113", "0.5048405", "0.5047801", "0.5046741", "0.5044455", "0.5042521", "0.5038655", "0.502832", "0.5018488", "0.5018157", "0.50152624", "0.5014085" ]
0.5532058
17
File reader and a list to add all the data of the file
static public List<Product> productReader() throws IOException { BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE)); String row; List<Product> dataList = new ArrayList<>(); row = csvReader.readLine(); while ((row = csvReader.readLine()) != null){ Product data = new Product(); //I separate the row data by a separator, a coma in this case and add all the data in the class String[] datas = row.split(SEPARATOR_COLON); data.setProduct_id(Integer.parseInt(datas[0])); data.setName(datas[1]); data.setDescription(datas[2]); data.setCategory_id(Integer.parseInt(datas[3])); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yyyy"); //Since some dates had just one number for the month, I had to use this to add a 0 //to make all the dates the same length after getting rid of the 0:01 that was not necessary String[] creationDate = datas[4].split(" "); if(creationDate[0].length() == 9){ creationDate[0] = "0"+ creationDate[0]; } data.setCreation_date(LocalDate.parse(creationDate[0], formatter)); creationDate = datas[5].split(" "); if(creationDate[0].length() == 9){ creationDate[0] = "0"+ creationDate[0]; } data.setUpdate_date(LocalDate.parse(creationDate[0], formatter)); creationDate = datas[6].split(" "); if(creationDate[0].length() == 9){ creationDate[0] = "0"+ creationDate[0]; } data.setLast_purchased_date(LocalDate.parse(creationDate[0], formatter)); dataList.add(data); } return dataList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "private void getDataLists(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile file = new File(path);\n\t\t\tfile.createNewFile();\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\tString str = null;\n\t\t\twhile((str = fileReader.readLine()) != null)\n\t\t\t{\n\t\t\t\tthis.dataList.push(str);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed : data list read\");\n\t\t}\n\t}", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "static List<String> fileReader(String fileName){\n \n \n //Read a file and store the content in a string array.\n File f = new File(fileName);\n BufferedReader reader = null;\n String tempString = null;\n List<String> fileContent = new ArrayList<String>();\n //String[] fileContent = null;\n //int i = 0;\n \n try {\n reader = new BufferedReader(new FileReader(f));\n while ((tempString = reader.readLine()) != null){\n //while ((fileContent[i] = reader.readLine()) != null){\n fileContent.add(tempString);\n //i++;\n }\n reader.close();\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n finally{\n if (reader != null){\n try{\n reader.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }\n }\n \n return fileContent;\n \n }", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public void readUserFile (){\n try {\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n Scanner s = new Scanner(line); //use of a scanner to parse the line and assign its tokens to different variables\n//each line corresponds to the values of a User object\n while(s.hasNext()){\n String usrname = s.next();\n String pass = s.next();\n User u = new User(usrname,pass);\n userlist.add(u);//added to the list\n }\n \n }\n reader.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }", "private ArrayList loadfile(String file_path) throws Exception{\n\t\tFileInputStream fis = null;\n\t\tBufferedReader br = null;\n\t\tArrayList filedata = new ArrayList();\n\t\ttry {\n\t\t\tFile file = new File(file_path);\n\t\t\tfis = new FileInputStream(file);\n\t\t\tbr = new BufferedReader(new InputStreamReader(fis, charset));\n\t\t\tint i = 0;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line_data = br.readLine();\n\t\t\t\tif (line_data == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnode_line_data nd = new node_line_data(line_data, i++);\n\t\t\t\tfiledata.add(nd);\n\t\t\t}\n\t\t\treturn filedata;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\t\t\t\tif (fis != null)\n\t\t\t\t\tfis.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t}\n\t\t}\n\t}", "public List<String> readFileIntoList(String filepath) throws IOException;", "public void readPatientListFromFile()\r\n\t{\n\t\tnextPatientLocation = 0;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Makes file reader objects and passes filename\r\n\t\t\tFileReader fr = new FileReader(patientMasterfile);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\t//reads first line and makes a blank patient \r\n\t\t\tString aReadLine = br.readLine();\r\n\t\t\tPatient tempRead = new Patient();\r\n\t\t\t//loops through all lines in the file\r\n\t\t\twhile(aReadLine != null)\r\n\t\t\t{\r\n\t\t\t\t//resets patient to null\r\n\t\t\t\ttempRead = new Patient();\r\n\t\t\t\t//Splits the read in data and assigns that data to the appropriate attribute \r\n\t\t\t\tString[] splitPatientData = aReadLine.split(\"~~\");\r\n\r\n\t\t\t\ttempRead.patientID = splitPatientData[0];\r\n\t\t\t\ttempRead.forename = splitPatientData[1];\r\n\t\t\t\ttempRead.surname = splitPatientData[2];\r\n\t\t\t\ttempRead.username = splitPatientData[3];\r\n\t\t\t\ttempRead.password = splitPatientData[4];\r\n\t\t\t\ttempRead.houseNumber = splitPatientData[5];\r\n\t\t\t\ttempRead.postcode = splitPatientData[6];\r\n\t\t\t\ttempRead.telephoneNumber = splitPatientData[7];\r\n\t\t\t\ttempRead.dob = splitPatientData[8];\r\n\t\t\t\ttempRead.mode = splitPatientData[9];\r\n\t\t\t\t//adds patient to list and gets the next line\r\n\t\t\t\taddPatientToList(tempRead);\r\n\t\t\t\taReadLine = br.readLine();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t//catches any exceptions trown by reading \r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error reading file, \");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "List readFile(String pathToFile);", "public List<Event> fillArrayList()\r\n {\r\n List<Event> list1=new ArrayList<>();\r\n FileReader fr=null;\r\n \r\n try{\r\n \r\n fr=new FileReader(\"./event.txt\");\r\n BufferedReader bf=new BufferedReader(fr);\r\n String s;\r\n \r\n while((s=bf.readLine())!=null)\r\n {\r\n Event event=new Event();\r\n String s1[]=new String[7];\r\n for(int i=0;i<s1.length;i++)\r\n {\r\n s1=s.split(\",\");\r\n \r\n event.setId(Integer.parseInt(s1[0]));\r\n \r\n event.setName(s1[1]);\r\n \r\n event.setOrganizer(s1[2]);\r\n \r\n Date date=Date.valueOf(s1[3]);\r\n \r\n event.setDate(date);\r\n \r\n event.setFees(Double.parseDouble(s1[4]));\r\n \r\n } \r\n list1.add(event);\r\n }\r\n \r\n bf.close();\r\n \r\n }catch(Exception e){e.printStackTrace();}\r\n return list1;\r\n\r\n }", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "ArrayList<WordListItem> addDataFromFile(){\n BufferedReader br;\n InputStream inputStream = context.getResources().openRawResource(R.raw.animal_list);\n br = new BufferedReader(\n new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"))\n );\n String currentLine;\n ArrayList<WordListItem> wordListItems = new ArrayList<WordListItem>();\n try {\n while ((currentLine = br.readLine()) != null) {\n String[] tokens = currentLine.split(\";\");\n\n String word = tokens[0];\n String pronunciation = tokens[1];\n String description = tokens[2];\n\n WordListItem wordItem = new WordListItem(word, pronunciation, description);\n wordItem.setImgResNbr(setImgResFromWord(wordItem.getWord().toLowerCase()));\n wordListItems.add(wordItem);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n return wordListItems;\n }", "public void setReaderToArray(){\n try{\n String client, number = null;\n\n File reader = new File(\"clientFile/clientInfo.txt\");\n\n Scanner scn = new Scanner(reader);\n scn.useDelimiter(\",\");\n\n while(scn.hasNext()){\n number = scn.next();\n client = scn.next();\n\n clientList.add(client + \" - \" + number);\n }\n scn.close();\n }catch (FileNotFoundException exception){\n System.out.println(\"An error occurred.\");\n }\n }", "public void readFile() {\n try\n {\n tasksList.clear();\n\n FileInputStream file = new FileInputStream(\"./tasksList.txt\");\n ObjectInputStream in = new ObjectInputStream(file);\n\n boolean cont = true;\n while(cont){\n Task readTask = null;\n try {\n readTask = (Task)in.readObject();\n } catch (Exception e) {\n }\n if(readTask != null)\n tasksList.add(readTask);\n else\n cont = false;\n }\n\n if(tasksList.isEmpty()) System.out.println(\"There are no todos.\");\n in.close();\n file.close();\n }\n\n catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }", "private void ReadInputFile(String filePath){\n String line;\n\n try{\n BufferedReader br = new BufferedReader(new FileReader(filePath));\n while((line = br.readLine()) != null){\n //add a return at each index\n inputFile.add(line + \"\\r\");\n }\n\n\n }catch(IOException ex){\n System.out.print(ex);\n }\n\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\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}", "private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public static void read(String fname){\r\n\t\t\t\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t // FileReader reads text files in the default encoding.\r\n\t FileReader fileReader = new FileReader(fname);\r\n\t \r\n\t // Always wrap FileReader in BufferedReader.\r\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\t header=bufferedReader.readLine();\r\n\t \r\n\t data = new ArrayList<alldata>();\r\n\r\n\t while((line = bufferedReader.readLine()) != null) {\r\n\t \t\r\n\t //parse line and divide data by comma\r\n\t \r\n\t \t\r\n\t \tString[] lineStr = line.split(\",\");\r\n\t \t\r\n\t //create object row into which data from each line is stored and then added to array list\t\r\n\t \t\r\n\t if(lineStr.length >0) {\r\n\t \talldata row = new alldata();\r\n\t \trow.Name = lineStr[0]+ \",\" + lineStr[1];\r\n\t \trow.Num = lineStr[2];\r\n\t \trow.State = lineStr[3];\r\n\t \trow.Zip = lineStr[4];\r\n\t \trow.Age = Integer.parseInt(lineStr[6]);\r\n\t \trow.Sex = lineStr[7];\r\n\t \t\r\n\t \tdata.add(row);\r\n\t }\r\n\t \r\n\t \r\n\t } \r\n\t bufferedReader.close(); // Always close files. \r\n\t }catch(FileNotFoundException ex) {\r\n\t System.out.println(\"Unable to open file '\" + fname + \"'\"); \r\n\t }catch(IOException ex) {\r\n\t System.out.println(\"Error reading file '\" + fname + \"'\"); \r\n\t }\r\n\t\t\tSystem.out.println(\"Finish reading data from file \"+ fname);\r\n\t\t}", "public List<Products> readFile(BufferedReader reader, List<Products> productList) throws IOException {\n\t\tif (null == reader) {\n\t\t\treader = new BufferedReader(new FileReader(FileHandelling.RECORDS_FILE));\n\t\t} else {\n\t\t\tString line;\n\t\t\tProducts products = new Products();\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] temp = line.split(\",\");\n\t\t\t\tproducts = new Products();\n\t\t\t\tproducts.setId(Integer.parseInt(temp[0]));\n\t\t\t\tproducts.setName(temp[1]);\n\t\t\t\tproducts.setBrand(temp[2]);\n\t\t\t\tproducts.setPrice(Float.parseFloat(temp[3]));\n\t\t\t\tproductList.add(products);\n\t\t\t}\n\n\t\t}\n\t\treturn productList;\n\t}", "public void populateListFromFile() \n\t{\n\t\tBufferedReader bufferedReader = null;\n\t\tallQuestions = new ArrayList<ArrayList<String>>();\n\t\tquestionAndAnswers = new ArrayList<String>();\n\n\t\ttry {\n\t\t bufferedReader = new BufferedReader(new FileReader(\"questions.txt\"));\n\t\t String line = \"\";\n\t\t \n\t\t while ((line = bufferedReader.readLine()) != null) \n\t\t {\t\t\t \t\n\t\t \tif(line.length() > 0)\n\t\t \t\tquestionAndAnswers.add(line);\n\t\t \telse if (line.length() == 0)\n\t\t \t{\n\t\t \t\tallQuestions.add(questionAndAnswers);\n\t\t \t\tquestionAndAnswers = new ArrayList<String>();\n\t\t \t}\n\t\t } \n\t\t} catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t}", "public ArrayList<String> readFromFile(){\n ArrayList<String> results = new ArrayList<>();\n //Wrap code in a try/ catch to help with exception handling.\n try{\n //Create a object of Scanner class\n Scanner s = new Scanner(new FileReader(path));\n //While loop for iterating thru the file.\n // Reads the data and adds it to the ArrayList.\n while(s.hasNext()) {\n String c1 = s.next();\n String c2 = s.next();\n String w = s.next();\n results.add(c1);\n results.add(c2);\n results.add(w);\n }return results;\n\n }//File not found exception block.\n catch(FileNotFoundException e){\n System.out.println(e);\n }\n return results;//default return.\n }", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public static ArrayList<Item> readFromFile() {\n\t\t\n\t\tPath writeFile = Paths.get(\"list.txt\");\n\t\tFile file = writeFile.toFile();\n\t\tArrayList<Item> itemList = new ArrayList<Item>();\n\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\t// this is a buffer and the benefit of using this is to is to store a block of\n\t\t\t// memory that\n\t\t\t// we can read data from later -- more efficient than Scanner\n\n\t\t\tBufferedReader reader = new BufferedReader(fr);\n\t\t\t// this is attempting to read the first line from the text document\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\n\t\t\t\tString[] stringArray= line.split(\",\");\n\t\t\t\tItem item = new Item(Integer.parseInt(stringArray[0]), stringArray[1], stringArray[2],stringArray[3],Integer.parseInt(stringArray[4]),Double.parseDouble(stringArray[5]) );\n\t\t\t\titemList.add(item);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"There were no items!\");\n\t\t}\n\t\treturn itemList;\n\t}", "public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "protected List<List<String>> readFile() throws FileNotFoundException {\n\n List<List<String>> list = new ArrayList<>();\n\n File dire = new File(dir);\n File file = new File(dire, filename);\n\n try (Scanner in = new Scanner(file)) {\n\n while (in.hasNextLine()) {\n \n String line = in.nextLine();\n \n String temp[] = line.split(delimiter);\n \n list.add(Arrays.asList(temp));\n }\n in.close();\n } catch (IOException e) {\n System.out.println(\"Error reading file!\");\n }\n return list;\n }", "public static void readFromFile(ArrayList<String> sArrayList, Context context){\n\n int i=0;\n try{\n InputStream inputStream = context.openFileInput(TxtName);\n\n if(inputStream!=null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receivedString = \"\";\n\n while((receivedString = bufferedReader.readLine())!=null){\n sArrayList.set(i,receivedString);\n Log.d(\"fileContent\", \"readFromFile: \"+sArrayList.get(i)+\"\\n\");\n i++;\n }\n inputStream.close();\n }\n\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n }", "List<T> read();", "private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "private static ArrayList<String> read(String fileName, boolean next) {\n\t\t\n\n\t\tFile input = new File(fileName);\n\t\tArrayList<String> information = new ArrayList<String>();\n\t\t\n\t\t\n\t\t//uses a simple try catch to read the file\n\t\ttry {\n\t\t\t\n\t\t\tScanner fileReader = new Scanner(input);\n\t\t\t\n\t\t\tif(next) //if reading by word, the ArrayList will contain info by word\n\t\t\t\twhile(fileReader.hasNext()) \n\t\t\t\t\tinformation.add(fileReader.next());\n\t\t\t\t\n\t\t\telse //otherwise the ArrayList will contain info by lines\n\t\t\t\twhile(fileReader.hasNextLine())\n\t\t\t\t\tinformation.add(fileReader.nextLine());\n\t\t\t\n\t\t\tfileReader.close();\n\t\t} catch(FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn information;\n\t}", "@SuppressWarnings(\"unchecked\")\n public ArrBag( String infileName ) throws Exception\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n BufferedReader infile = new BufferedReader( new FileReader( infileName ) );\n while ( infile.ready() )\n this.add( (T) infile.readLine() );\n infile.close();\n }", "private List<String> readFile() throws FileNotFoundException {\t\n\t\tList<String> itemsLines = new ArrayList<>();\n\t\tFile inputFile = new File(filePath);\t\n\t\ttry (Scanner newScanner = new Scanner(inputFile)) {\n\t\t\twhile(newScanner.hasNextLine()) {\n\t\t\t\titemsLines.add(newScanner.nextLine());\n\t\t\t}\t\n\t\t}\n\t\treturn itemsLines;\n\t}", "public void readDataFromFile(){\n try {\n weatherNow.clear();\n // Open File\n Scanner scan = new Scanner(context.openFileInput(fileSaveLoc));\n\n // Find all To Do items\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n\n // if line is not empty it is data, add item.\n if (!line.isEmpty()) {\n // first is the item name and then the item status.\n String[] readList = line.split(\",\");\n String city = readList[0];\n String countryCode = readList[1];\n double temp = Double.parseDouble(readList[2]);\n String id = readList[3];\n String description = readList[4];\n\n weatherNow.add(new WeatherNow(city,countryCode, temp, id, description));\n }\n }\n\n // done\n scan.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readFile() {\n ArrayList<Movement> onetime = new ArrayList<Movement>(); \n Movement newone = new Movement(); \n String readLine; \n\n File folder = new File(filefolder); \n File[] listOfFiles = folder.listFiles(); \n for (File file : listOfFiles) {\n if (file.isFile()&& file.getName().contains(\"200903\")) {\n try {\n onetime = new ArrayList<Movement>(); \n newone = new Movement(); \n BufferedReader br = new BufferedReader(new FileReader(filefolder+\"\\\\\"+file.getName())); \n readLine = br.readLine (); \n String[] previouline = readLine.split(\",\"); \n int previousint = Integer.parseInt(previouline[7]); \n while ( readLine != null) {\n String[] currentline = readLine.split(\",\"); \n if (Integer.parseInt(currentline[7]) == previousint)\n {\n newone.addRecord(currentline[0], currentline[1], currentline[2], currentline[4], currentline[5], currentline[6]); \n newone.ID = Integer.parseInt(currentline[7]); \n newone.filedate = file.getName();\n } else\n { \n onetime.add(newone); \n newone = new Movement(); \n newone.addRecord(currentline[0], currentline[1], currentline[2], currentline[4], currentline[5], currentline[6]);\n }\n previousint = Integer.parseInt(currentline[7]); \n readLine = br.readLine ();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n rawdata.add(onetime);\n } \n }\n println(rawdata.size());\n}", "public List<String> readFileContents(String filePath) throws APIException;", "List<T> readList();", "public ArrayList<Item> loadItems(String filename) {\n ArrayList<Item> itemsList = new ArrayList<>();\n try {\n File file = new File(filename);\n BufferedReader reader= new BufferedReader(new InputStreamReader(new FileInputStream(file), \"UTF-8\"));\n String line= reader.readLine();\n while (line != null){\n String[] splitedLine = line.split(\"=\");\n String name = splitedLine[0];\n int weight = Integer.parseInt(splitedLine[1]) / 1000; // on convertit en tonnes\n itemsList.add(new Item(name,weight));\n line = reader.readLine();\n }\n reader.close(); //pour arreter la memoire tampon\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n return itemsList;\n }", "public List<String> readFile() {\n \n try {\n ensureFileExists();\n return Files.readAllLines(filePath);\n } catch (FileNotFoundException ex) {\n return new ArrayList<>();\n } catch (IOException ex) {\n ex.printStackTrace();\n return new ArrayList<>();\n }\n }", "static List<String> fileToList(){\n List<String> contacts = null;\n try {\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n contacts = Files.readAllLines(contactsListPath);\n } catch (IOException ioe){\n ioe.printStackTrace();\n }\n return contacts;\n }", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "public ArrayList<String> read_file() {\n prog = new ArrayList<>();\n //Read file\n try {\n\n File myObj = new File(\"in3.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n if (data.charAt(0) != '.') {\n// System.out.println(data);\n prog.add(data);\n } else {\n continue;\n// data = data.substring(1);\n// System.out.println(\"{{ \" + data + \" }}\");\n }\n\n }\n myReader.close();\n\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n return prog;\n }", "private List<String> init(Path path) throws Exception {\n List<String> lines = Files.readAllLines(path);\n if (lines.size() != 0) {\n int numberOfFields = Integer.parseInt(lines.get(0));\n fillFieldsList(lines, numberOfFields);\n fillPlayersList(lines, numberOfFields);\n } else {\n throw new FileEmptyException();\n }\n return lines;\n }", "public void readFromFile() {\n\n\t}", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "private String[] readFile(BufferedReader reader) throws IOException {\r\n // Read each line in the file, add it to the ArrayList lines\r\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n reader.close();\r\n // Convert the list to an array of type String and return\r\n String[] ret = new String[1];\r\n return (lines.toArray(ret));\r\n }", "public static void readFile(String myFile, List <Integer> myList) throws FileNotFoundException{\n \t \n Scanner fileScanner = new Scanner(new File(myFile)); // Reads in from filePath.\n \n while (fileScanner.hasNextInt()){ // Loops while there is still a next integer in the list.\n \t myList.add(fileScanner.nextInt()); // Adds all integers to RandomIntegers arraylist.\n }\n \n System.out.println(\"\\nFile read in successfully.\"); \n }", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void fileReader(String filename) \r\n\t\t{\r\n\r\n\t\ttry (Scanner s = new Scanner(new FileReader(filename))) { \r\n\t\t while (s.hasNext()) { \r\n\t\t \tString name = s.nextLine(); // read name untill space\r\n\t\t \tString str[] = name.split(\",\");\r\n\t\t \tString nam = str[0]; \r\n\t\t \tint number = Integer.parseInt(str[1]); // read number untill space\r\n\t\t this.addContact(nam, number);\r\n\t\t\r\n\t\t }\t\t \r\n\t\t \r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t}", "public static void loadArrayList() throws IOException\n\t{\n\t\tString usersXPFile = \"UsersXP.txt\";\n\t\t\n\t\tFile file = new File(usersXPFile);\n\t\t\n\t\tScanner fileReader;\n\t\t\n\t\tif(file.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(file);\n\t\t\twhile(fileReader.hasNext())\n\t\t\t\tuserDetail1.add(userData.addNewuser(fileReader.nextLine().trim()));\n\t\t\tfileReader.close();\n\t\t}\n\t\telse overwriteFile(usersXPFile, \"\");\n\t\t\n\t\t\n\t}", "public void uploadDataFromFile()\n {\n String jobSeekerFile = (\"JobSeeker.txt\");\n String jobRecruiterFile = (\"JobRecruiter.txt\");\n String jobFile = (\"Job.txt\");\n String notificationFile = (\"Notification.txt\");\n \n String jobSeekerLines = readFile(jobSeekerFile);\n String jobRecruiterLines = readFile(jobRecruiterFile);\n String jobLines = readFile(jobFile);\n String notificationLines = readFile(notificationFile);\n \n storeJobSeekersToJobSeekerList(jobSeekerLines);\n storeJobRecruitersToJobRecruiterList(jobRecruiterLines);\n storeJobsToJobList(jobLines);\n storeNotificationsToNotificationList(notificationLines);\n \n }", "public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }", "public static List<Contract> readFromFile(String filename) {\n List<Contract> contracts = new ArrayList<>();\n\n InputStreamReader inputStreamReader = null;\n try {\n inputStreamReader = new InputStreamReader(new FileInputStream(new File(filename)),\"cp1251\");\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String [] lines = null;\n String line = null;\n try{\n while ((line = bufferedReader.readLine()) != null) {\n\n lines= line.split(\",\");\n\n\n LocalDate conc = LocalDate.parse(lines[1], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate start = LocalDate.parse(lines[2], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate end = LocalDate.parse(lines[3], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n\n Client client=new Client(ClientType.valueOf(lines[4]),lines[5],lines[6]);\n\n ArrayList<InsuredPerson>insuredPeople=new ArrayList<>();\n for(int i=7; i<lines.length; i+=4 ){\n LocalDate d=LocalDate.parse(lines[i+2],DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n InsuredPerson person = new InsuredPerson(Integer.valueOf(lines[i]),lines[i+1],d,Double.valueOf(lines[i+3]));\n insuredPeople.add(person);\n\n\n }\n Contract contract=new Contract(Integer.valueOf(lines[0]),conc,start,end,client,insuredPeople);\n contracts.add(contract);\n }\n bufferedReader.close();}\n catch (IOException e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return contracts;\n\n }", "private void readSavedFile() {\n\n String[] files = new String[0];\n \n // On récupère la liste des fichiers\n File file = new File(folderName);\n\n // check if the specified pathname is directory first\n if(file.isDirectory()){\n //list all files on directory\n files = file.list();\n }\n\n if (files != null) {\n for(String currentFile : files) {\n Vehicule voiture;\n try {\n FileInputStream fileIn = new FileInputStream(folderName + \"/\" + currentFile);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n voiture = (Vehicule) in.readObject();\n addVoitureToList(voiture);\n in.close();\n fileIn.close();\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"#Erreur : Impossible de récupérer l'objet \" + currentFile);\n c.printStackTrace();\n return;\n }\n }\n }\n }", "public static ArrayList<Player> readPlayersFromFile() \r\n {\r\n //Inisialize Arraylist \r\n ArrayList<Player> players = new ArrayList<Player>();\r\n //Inisialize FileInputStream\r\n FileInputStream fileIn = null;\r\n\r\n try \r\n {\r\n //Establish connection to file \r\n fileIn = new FileInputStream(\"players.txt\");\r\n while (true) \r\n {\r\n //Create an ObjectOutputStream \r\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\r\n //Read a Player object from the file and add it to the ArrayList\r\n players.add((Player)objectIn.readObject());\r\n }//end while\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e);\r\n }\r\n finally \r\n {\r\n usernamesTaken.clear();\r\n\r\n for(int i = 0; i < players.size(); i++)\r\n {\r\n usernamesTaken.add(players.get(i).getUsername());\r\n }//end for\r\n\r\n //Try to close the file and return the ArrayList\r\n try\r\n {\r\n //Check if the end of the file is reached\r\n if (fileIn != null)\r\n { \r\n //Close the file \r\n fileIn.close();\r\n //Return the ArrayList of players\r\n return players;\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e)\r\n }//end try \r\n\r\n //Return null if there is an excetion \r\n return null;\r\n }//end try \r\n }", "public List<Cuenta> leerArchivoToList(InputStream archivo);", "private ArrayList<String> saveText(){\n FileReader loadDetails = null;\n String record;\n record = null;\n\n //Create an ArrayList to store the lines from text file\n ArrayList<String> lineKeeper = new ArrayList<String>();\n\n try{\n loadDetails=new FileReader(\"employees.txt\");\n BufferedReader bin=new BufferedReader (loadDetails);\n record=new String();\n while (((record=bin.readLine()) != null)){//Read the file and store it into the ArrayList line by line*\n lineKeeper.add(record);\n }//end while\n bin.close();\n bin=null;\n }//end try\n catch (IOException ioe) {}//end catc\n\n return lineKeeper;\n\n }", "static List<String> readDataFile(String filePath) throws Exception {\n\t\t// System.out.println(filePath);\n\t\tList<String> sortList = new ArrayList<String>();\n\n\t\tFileReader file = new FileReader(new File(filePath));\n\n\t\tBufferedReader bufRead = new BufferedReader(file);\n\n\t\tfor (long line = 0; line < linesPerFile; line++) {\n\n\t\t\tsortList.add((bufRead.readLine().toString()));\n\t\t}\n\n\t\tbufRead.close();\n\t\treturn sortList;\n\t}", "public static ArrayList readData(){\n ArrayList alr = new ArrayList();\n try{\n ArrayList stringArray = (ArrayList)read(filename);\n for (int i = 0; i < stringArray.size(); i++){\n String st = (String)stringArray.get(i);\n StringTokenizer star = new StringTokenizer(st, SEPARATOR);\n int movieID = Integer.parseInt(star.nextToken().trim());\n String email = star.nextToken().trim();\n String comment = star.nextToken().trim();\n Review review = new Review(movieID, email, comment);\n alr.add(review);\n }\n }\n catch (IOException e){\n System.out.println(\"Exception > \" + e.getMessage());\n }\n return alr;\n }", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public void storeValue() {\n\t\tScanner s;\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubIRR.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubIRR.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR3.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR3.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\ObjR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tObjR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\ObjR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tObjR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PrepR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPrepR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private Runnable loadItems() {\n File file = new File(getFilesDir(), \"data.txt\");\n\n try {\n // Clears and adds appropriate items\n this._items.clear();\n this._items.addAll(FileUtils.readLines(file, Charset.defaultCharset()));\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error reading items\", e);\n }\n\n // Return a callback function for saving items\n return () -> {\n try {\n FileUtils.writeLines(file, this._items);\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error writing items\", e);\n }\n };\n }", "public static ArrayList<Medicine> readMedicine()\n {\n ArrayList<Medicine> newMedicine = new ArrayList<>();\n \n \n try\n {\n FileReader fread = new FileReader(\"Medicine.txt\");\n BufferedReader bread = new BufferedReader(fread);\n \n String Med = \"1\";\n\n while ((Med = bread.readLine()) != null) {\n \n Medicine user = new Medicine(Med);\n newMedicine.add(user); \n }\n bread.close();\n fread.close(); \n } \n catch(Exception error)\n {\n System.out.println(\"Error\" + error);\n }\n \n return (newMedicine);\n }", "private static ArrayList<ArrayList<Integer>> populateListOfInputs() {\n\t\t\n\t\tArrayList<ArrayList<Integer>> listOflist = new ArrayList<ArrayList<Integer>>();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filePath);\n\t\t\tBufferedReader br = new BufferedReader(fr);\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Remove all spaces, '[' and ']'\n\t\t\t\tString numbers = line.replace(\" \", \"\");\n\t\t\t\tnumbers = numbers.replace(\"[\", \"\");\n\t\t\t\tnumbers = numbers.replace(\"]\", \"\");\n\t\t\t\t\n\t\t\t\tif(line.equals(\"\")) {\n\t\t\t\t\t//if empty line leave it and continue the loop\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\tString[] individualnums = numbers.split(\",\");\n\t\t\t\tfor (int i = 0; i < individualnums.length; i++) {\t\t\t\t\t\n\t\t\t\t\tlist.add(Integer.parseInt(individualnums[i]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlistOflist.add(list);\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOflist;\n\t}", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "public void readFile()\n {\n try {\n fileName = JOptionPane.showInputDialog(null,\n \"Please enter the file you'd like to access.\"\n + \"\\nHint: You want to access 'catalog.txt'!\");\n \n File aFile = new File(fileName);\n Scanner myFile = new Scanner(aFile);\n \n String artist, albumName; \n while(myFile.hasNext())\n { //first we scan the document\n String line = myFile.nextLine(); //for the next line. then we\n Scanner myLine = new Scanner(line); //scan that line for our info.\n \n artist = myLine.next();\n albumName = myLine.next();\n ArrayList<Track> tracks = new ArrayList<>();\n \n while(myLine.hasNext()) //to make sure we get all the tracks\n { //that are on the line.\n Track song = new Track(myLine.next());\n tracks.add(song);\n }\n myLine.close();\n Collections.sort(tracks); //sort the list of tracks as soon as we\n //get all of them included in the album.\n Album anAlbum = new Album(artist, albumName, tracks);\n catalog.add(anAlbum);\n }\n myFile.close();\n }\n catch (NullPointerException e) {\n System.err.println(\"You failed to enter a file name!\");\n System.exit(1);\n }\n catch (FileNotFoundException e) {\n System.err.println(\"Sorry, no file under the name '\" + fileName + \"' exists!\");\n System.exit(2);\n }\n }", "@Override\n public List<Object> readFile(File file) {\n Scanner scanner = createScanner(file);\n if (Objects.isNull(scanner)) {\n return Collections.emptyList();\n }\n List<Object> readingDTOList = new ArrayList<>();\n scanner.nextLine();\n List<List<String>> allLines = new ArrayList<>();\n while (scanner.hasNext()) {\n List<String> line = parseLine((scanner.nextLine()));\n if (!line.isEmpty()) {\n allLines.add(line);\n }\n }\n if (!allLines.isEmpty()) {\n for (List<String> line : allLines) {\n String sensorId = line.get(0);\n String dateTime = line.get(1);\n String value = line.get(2);\n String unit = line.get(3);\n LocalDateTime readingDateTime;\n if (sensorId.contains(\"RF\")) {\n LocalDate readingDate = LocalDate.parse(dateTime, DateTimeFormatter.ofPattern(\"dd/MM/uuuu\"));\n readingDateTime = readingDate.atStartOfDay();\n } else {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(dateTime);\n readingDateTime = zonedDateTime.toLocalDateTime();\n }\n double readingValue = Double.parseDouble(value);\n ReadingDTO readingDTO = ReadingMapper.mapToDTOwithIDandUnits(sensorId, readingDateTime, readingValue, unit);\n readingDTOList.add(readingDTO);\n }\n }\n return readingDTOList;\n }", "public void readFile() throws IOException {\n String line;\n while ((line = fileReader.readLine()) != null) {\n wordStorage.addWords(line);\n }\n }", "public void fillList (File file) throws FileNotFoundException {\n\t\tif (!file.getName().endsWith(\".srt\")) {\n\t\t\tthrow new IllegalArgumentException(\"Only .srt files supported\");\n\t\t}\n\n\t\t//create file reader tied to the .srt file, used JUST to count the # of lines\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tthrow e; //let it propogate up\n\t\t}\n\n\t\tint numOfBlocks = countNumberOfStringBlocks();\n\t\t\n\t\t//don't directly copy into stringList, as there could be errors reading file.\n\t\t//don't want to overwrite current stringList until entire file is read succesfully.\n\t\tStringBlock[] stringListBuffer = new StringBlock[numOfBlocks];\t\t//instantiate the array of stringblocks to the size needed\n\t\t//end of file reached during countNumberOfStringBlocks();\n\t\t\n\t\treader.close();\n\t\t\n\t\tcurrentLineNum = 0;\n\t\t//return reader back to top of the file, to begin parsing/storing chunks\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t\tStringBlock stringBlock;\n\t\tint index = 0;\n\t\t\n\t\t//read in stringblocks, and store them in order\n\t\ttry{\n\t\t\twhile ((stringBlock = parseNextStringBlock()) != null) {\n\t\t\t\tstringListBuffer[index] = stringBlock;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\t//end of file reached successfully\n\t\t\t\n\t\t\tstringList = stringListBuffer;\n\t\t} catch (IllegalStateException e) {\n\t\t\tthrow e; //let it propogate all the way up to the method where the file is selected\n\t\t}\n\t\t\n\t\t//close reader\n\t\treader.close();\n\t}", "public ArrayList<Task> loadData() throws IOException {\n DateTimeFormatter validFormat = DateTimeFormatter.ofPattern(\"MMM dd yyyy HH:mm\");\n ArrayList<Task> orderList = new ArrayList<>();\n\n try {\n File dataStorage = new File(filePath);\n Scanner s = new Scanner(dataStorage);\n while (s.hasNext()) {\n String curr = s.nextLine();\n String[] currTask = curr.split(\" \\\\| \");\n assert currTask.length >= 3;\n Boolean isDone = currTask[1].equals(\"1\");\n switch (currTask[0]) {\n case \"T\":\n orderList.add(new Todo(currTask[2], isDone));\n break;\n case \"D\":\n orderList.add(new Deadline(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n case \"E\":\n orderList.add(new Event(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n }\n }\n } catch (FileNotFoundException e) {\n if (new File(\"data\").mkdir()) {\n System.out.println(\"folder data does not exist yet.\");\n } else if (new File(filePath).createNewFile()) {\n System.out.println(\"File duke.txt does not exist yet.\");\n }\n }\n return orderList;\n\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "TraceList read(File file) throws IOException;", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public static List<Server> readFile() {\n String fileName = \"servers.txt\";\n\n List<Server> result = new LinkedList<>();\n try (Scanner sc = new Scanner(createFile(fileName))) {\n\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n result.add(lineProcessing(line));\n\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File is not found\");\n } catch (MyException e) {\n System.out.println(\"File is corrupted\");\n }\n return result;\n }", "private ArrayList<Book> readBookCollection() {\n File file = new File(\"books.txt\");\n ArrayList<Book> collection = new ArrayList<Book>();\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader reader = new BufferedReader(fileReader);\n while (true) {\n String line = reader.readLine();\n if (line == null) break;\n line = line.trim();\n if (line.equals(\"\")) continue; // ignore possible blank lines\n String[] bookInfo = line.split(\" :: \");\n collection.add(new Book(bookInfo[0], bookInfo[1]));\n }\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return collection;\n }", "private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }", "@Override\n public ArrayList parseFile(String pathToFile) {\n\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(pathToFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<String> data = new ArrayList<>();\n while (scanner.hasNext()) {\n data.add(scanner.next());\n }\n scanner.close();\n\n return data;\n }", "static public ArrayList<ChineseCharacter> readFromFile()\r\n\t {\n \t \r\n\t\t InputStream stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"files/charactersSet1.txt\");\r\n\t\t\t\t \r\n\t\t\t\r\n\t System.out.println(\"==========> \"+stream != null);\r\n\t // stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"SomeTextFile.txt\");\r\n\t // System.out.println(stream != null);\r\n\t \t// getResourceAsStream(\"file.txt\")\r\n\t \t \r\n\t // Resource resource = new ClassPathResource(\"com/example/Foo.class\");\r\n\t \r\n\t String filePath = stream.toString();\r\n\t\t \r\n\t System.out.println(\"filePath: \"+filePath);\r\n\t BufferedReader br = new BufferedReader(new InputStreamReader(stream));\r\n\t String line = \"\";\r\n\t String cvsSplitBy = \",\";\r\n\r\n\t \r\n\t \r\n\t ArrayList<ChineseCharacter> chineseCharacterArraylist = new ArrayList<ChineseCharacter>() ;\r\n\t int charactercount =0;\r\n\t try {\r\n\r\n\t // br = new BufferedReader(new FileReader(filePath));\r\n\t int count = 1;\r\n\t int listLength = 0;\r\n\t \r\n\t // ChineseCharacter character;\r\n\t String listtitle = \"\";\r\n\t ArrayList<String> pinyinlistArray = new ArrayList<String>();\r\n\t \r\n\t ArrayList<Character> hanzilistArray = new ArrayList<Character>() ;\r\n\t int linecount = 0;\r\n\t \r\n\t while ((line = br.readLine()) != null) \r\n\t {\r\n\t \t linecount++;\r\n\t\t\t \r\n\t \t \r\n\t\t\t //listtitle: characters: pinyin: \r\n\t\t\t // use comma as separator\r\n\t\t\t \r\n\t\t\t if(count ==1)\r\n\t\t\t {\r\n\t\t\t \t \r\n\t\t\t \t String[] listtitleLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(listtitleLine[0].equals(\"listtitle:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t \r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t if(linecount==1)\r\n\t\t\t\t {\r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t\t System.out.println(\"linecount==1, Linetype: \" + listtitleLine[0] + \" value: \" + listtitle);\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t }//if(count ==1)\r\n\t\t\t \r\n\t\t\t if(count ==2)\r\n\t\t\t {\r\n\t\t\t \t String[] charactersLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(charactersLine[0].equals(\"characters:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t listLength = charactersLine.length;\r\n\t\t\t\t \r\n\t\t\t\t \t for(int i =0; i<listLength-1; i++)\r\n\t\t\t \t\t\t {\r\n\t\t\t\t \t\t charactersLine[i+1] = charactersLine[i+1].replace(\" \", \"\");\r\n\t\t\t\t \t\t// charactersLine[i+1] = charactersLine[i+1].replace(\",\", \"\");//remove all comma\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t hanzilistArray.add(charactersLine[i+1].charAt(0));\r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t }\r\n\t\t\t\t \t System.out.print(\"\\n\"); \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t }//if(count ==2)\r\n\t\t\t \r\n\t\t\t if(count ==3)\r\n\t\t\t {\r\n\t\t\t \t String[] pinyinLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(pinyinLine[0].equals(\"pinyin:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t //check pinyin and characters have same no. of elements\r\n\t\t\t\t \t if (listLength == pinyinLine.length)\r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t for(int i =0; i<listLength-1; i++)\r\n\t\t\t\t\t \t\t\t {\r\n\t\t\t\t\t\t\t \t \r\n\t\t\t\t\t\t\t \t pinyinlistArray.add(pinyinLine[i+1]);\r\n\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t ChineseCharacter character = new ChineseCharacter(listtitle,hanzilistArray.get(i),pinyinlistArray.get(i)); \r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t chineseCharacterArraylist.add(charactercount, character);;\r\n\t\t\t\t\t \t\t\t\t// chineseCharacters[charactercount] = character;\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t charactercount++; \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\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t \t } \r\n\t\t\t\t \t else \r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t System.out.println(\"listLength != pinyinLine.length!!..unable to add list: \"+ listtitle);\r\n\t\t\t\t \t }\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t hanzilistArray.clear();\r\n\t \t\t\t\t pinyinlistArray.clear(); \r\n\t\t\t }//if(count ==3)\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if(count == 3) { count = 1;}\r\n\t\t\t else{ count++;}\r\n\t\t\t \r\n\t\t\t \r\n\t }//while\r\n\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t }\r\n\t catch (FileNotFoundException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } finally \r\n\t {\r\n\t if (br != null) \r\n\t {\r\n\t try \r\n\t {\r\n\t br.close();\r\n\t } catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t }\r\n\t }\r\n\t\t \r\n\t \r\n\t return chineseCharacterArraylist;\r\n\t }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "public void data() {\n\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\"/Users/macbook_user/Desktop/OOP Project/List.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n String[] columnName\n = {\"Id\", \"Name\", \"Amount\", \"Shelf#\", \"Position\"};\n int i, index;\n String line;\n try {\n br.readLine();\n while ((line = br.readLine()) != null) {\n index = 0;\n String[] se = line.split(\" \");\n Map<String, Object> item = new HashMap<>();\n for (i = 0; i < se.length; i++) {\n if (\"\".equals(se[i])) {\n continue;\n }\n if (index >= columnName.length) {\n continue;\n }\n item.put(columnName[index], se[i]);\n index++;\n }\n\n //get the amount of the item from the list\n int amount = Integer.parseInt((String) item\n .get(columnName[2]));\n\n // if amount greater than 0, Existence is Y, else N\n if (amount > 0) {\n item.put(\"Existence\", \"Y\");\n } else {\n item.put(\"Existence\", \"N\");\n }\n\n inventory.add(item);// add item to ArrayList\n }\n br.close();\n\n outPutFile();\n } catch (IOException e) {\n }\n\n }" ]
[ "0.6958733", "0.6939244", "0.6886124", "0.68653536", "0.6818609", "0.6818504", "0.67242485", "0.6715241", "0.6687349", "0.66866946", "0.6648223", "0.6611404", "0.66084623", "0.6605601", "0.6589173", "0.6569365", "0.656753", "0.65635943", "0.65549374", "0.6553968", "0.654823", "0.65355176", "0.65245616", "0.6515753", "0.65148944", "0.6493985", "0.648373", "0.6478032", "0.6463692", "0.64480656", "0.6443107", "0.64294297", "0.6422984", "0.6421061", "0.6407068", "0.6394497", "0.63685584", "0.63671076", "0.634649", "0.63023907", "0.62861633", "0.6283933", "0.62800413", "0.6272798", "0.627033", "0.6254222", "0.62313145", "0.6225893", "0.6223462", "0.6221001", "0.6214765", "0.6212222", "0.62033427", "0.62033015", "0.617624", "0.6172567", "0.61667687", "0.6165798", "0.6162229", "0.61527026", "0.6146096", "0.6141234", "0.6135804", "0.6134724", "0.61324733", "0.61296135", "0.6129342", "0.61276734", "0.61225426", "0.61220676", "0.61218864", "0.61165714", "0.6107097", "0.6098181", "0.60975444", "0.6096378", "0.60948646", "0.6093656", "0.60906523", "0.6090132", "0.60756344", "0.6072595", "0.6072056", "0.607183", "0.60637933", "0.6057257", "0.60500854", "0.60415316", "0.6027429", "0.6026755", "0.59978306", "0.598965", "0.5977621", "0.59701836", "0.59613067", "0.5959305", "0.5959198", "0.59380585", "0.5936634", "0.59364325", "0.59224963" ]
0.0
-1
Created by Threecolors on 2018/3/2.
public interface MailPropertiesProvider { /**获取Mail参数 * @return */ MailProperties getMailProperties(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void poetries() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo12628c() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private final zzgy zzgb() {\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void skystonePos4() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void Tyre() {\n\t\t\r\n\t}", "public void skystonePos3() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void skystonePos6() {\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "static void feladat4() {\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void Color() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void init() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "private void init() {\n\n\t}", "protected void whatColorOfArrows()\n\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void carDashboar() {\n\t\t\r\n\t}", "public void skystonePos5() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public void mo6081a() {\n }", "private void m50367F() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "static void feladat3() {\n\t}" ]
[ "0.58787477", "0.57119083", "0.56068534", "0.56068534", "0.5606842", "0.55771804", "0.5560361", "0.55469286", "0.5500206", "0.5499095", "0.5489062", "0.5479898", "0.5445368", "0.54036105", "0.5393221", "0.5378673", "0.53624606", "0.53505677", "0.53300655", "0.5318984", "0.5312729", "0.52941287", "0.52796334", "0.52676773", "0.52632046", "0.52549314", "0.52549314", "0.52549314", "0.52549314", "0.52549314", "0.5241557", "0.52400506", "0.5234466", "0.5226088", "0.52236444", "0.5222762", "0.5220589", "0.5205518", "0.519849", "0.518504", "0.5184382", "0.5183654", "0.51832235", "0.5182813", "0.51765686", "0.5174894", "0.51629865", "0.5158853", "0.5158669", "0.51486236", "0.514809", "0.5145854", "0.51441026", "0.5139999", "0.5138743", "0.5138743", "0.5138269", "0.51295644", "0.51277536", "0.51277536", "0.51277536", "0.51277536", "0.51277536", "0.51277536", "0.51277536", "0.5123651", "0.51165545", "0.5105425", "0.509985", "0.5097579", "0.50957954", "0.50934577", "0.50934577", "0.50934577", "0.50918585", "0.5086874", "0.50856245", "0.50818205", "0.50776744", "0.50776744", "0.50776744", "0.50776744", "0.50776744", "0.50776744", "0.5077584", "0.50770414", "0.5070276", "0.50691354", "0.5067544", "0.5065337", "0.5065337", "0.5064479", "0.5063006", "0.5060008", "0.5059408", "0.5059408", "0.5059408", "0.5058801", "0.50551826", "0.50503844", "0.50503105" ]
0.0
-1
Sets up the tests
@Before public void setUp() throws Exception { super.setUp(); test_assignment = new AssignmentMsg("Super Ultra Hard Assignment",true); assign_hand = new AssignmentHandler(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUp() {\n\n\t}", "protected void setUp() {\n\t}", "protected void setUp() {\n\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Override\n public void setUp() {\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "@Before public void setUp() { }", "@BeforeClass\n\tpublic static void setup() {\n\n\t}", "protected void setUp() throws Exception {\n \n }", "protected void setUp() throws Exception {\n }", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t}", "@BeforeClass\n\tpublic static void setupTestes()\n\t{\n\t\t\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP GERAL\");\n\t}", "@Before\n\t public void setUp() {\n\t }", "@BeforeClass\n\t public void setUp() {\n\t }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Before\n\tpublic void setUp() {\n\t}", "protected void setUp() throws Exception {\n }", "protected void setUp() {\n config = new ContestConfig();\n }", "@Before\r\n\tpublic void setUp() {\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "@BeforeEach\n public void setup() {\n testTaskList = new TaskList();\n testUi = new Ui();\n\n Event testEvent = new Event(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"31/01/20 0800\"),\n Parser.parseDate(\"31/01/20 1200\"), \"testing\");\n Assignment testAssign = new Assignment(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"20/03/20 0000\"),\n \"testing\");\n testTaskList.addTask(testEvent);\n testTaskList.addTask(testAssign);\n }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Before\n public void setUp() {\n Assume.assumeTrue(!IS_CIRCLE_BUILD);\n\n searchField = myDashboard.searchField;\n showAllButton = myDashboard.showAllButton;\n subjectCheckboxes = myDashboard.subjectCheckboxes;\n openPresButton = myDashboard.openPresButton;\n fileChooser = myDashboard.fileChooser;\n menuBar = myDashboard.menuBar;\n calendarNode = myDashboard.calendarNode;\n calendar = myDashboard.calendar;\n\n subjectSortCombo = myDashboard.subjectSortCombo;\n moduleSortCombo = myDashboard.moduleSortCombo;\n presSortCombo = myDashboard.presSortCombo;\n\n subjectPanels = myDashboard.subjectPanels;\n presentationPanels = myDashboard.presentationPanels;\n modulePanels = subjectPanels.get(0).getModulePanels();\n }", "@Before\r\n\t public void setUp(){\n\t }", "@Before\n public void setUp () {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setup() {\n }", "@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\n\t\t// set the file names to use my config files\n\t\tboard.setConfigFiles(\"CTest_ClueLayout.csv\", \"CTest_ClueLegend.txt\");\n\t\t// Initialize will load BOTH config files\n\t\tboard.initialize();\n\t\t\n\t\tplayerHuman.setConfigFile(\"CTest_PlayerHuman.txt\");\n\t\tplayerComputer.setConfigFile(\"CTest_PlayerComputer.txt\");\n\n\t}", "@BeforeEach\n public void setup() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@BeforeClass\n public static void setUp() {\n }", "@Override\n public void setUp() throws Exception {}", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@BeforeClass(groups = { \"WorkflowNG\" })\n\tpublic void setUp() {\n\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected error or exception\", e);\n\t\t}\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "@Before\n\tpublic void setUp() {\n\n\t\t/*\n\t\t * Set up the mapper test harness.\n\t\t */\n\t\tHealthExpendituresMapper mapper = new HealthExpendituresMapper();\n\t\tmapDriver = new MapDriver<LongWritable, Text, Text, Text>();\n\t\tmapDriver.setMapper(mapper);\n\n\t\t/*\n\t\t * Set up the reducer test harness.\n\t\t */\n\t\tHealthStatsReducer reducer = new HealthStatsReducer();\n\t\treduceDriver = new ReduceDriver<Text, Text, Text, Text>();\n\t\treduceDriver.setReducer(reducer);\n\n\t\t/*\n\t\t * Set up the mapper/reducer test harness.\n\t\t */\n\t\tmapReduceDriver = new MapReduceDriver<LongWritable, Text, Text, Text, Text, Text>();\n\t\tmapReduceDriver.setMapper(mapper);\n\t\tmapReduceDriver.setReducer(reducer);\n\t}", "@BeforeClass\n public void setUp() {\n }", "@BeforeClass(groups = { \"EtlNG\" })\n\tpublic void setUp() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected Exception: \", e);\n\t\t}\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Before\n\tpublic void setUp() throws Exception\n\t{\n\t}", "@Before\n\t\t public void setUp() throws Exception {\n\t\t\t testHelper.setUp();\n\t\t }", "@Before\n\tpublic void setupTeste()\n\t{\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP\");\n\t}", "@Before\n public void setUp() {\n }", "@BeforeEach\n\tvoid setup(){\n\t}", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() {\n System.out.println(\"\\n@Before - Setting Up Stuffs: Pass \"\n + ++setUpCount);\n // write setup code that must be executed before each test method run\n }", "@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}", "@BeforeEach\r\n public void SetupTests() throws IOException {\n InputStream input = new FileInputStream(\"src/main/resources/config.properties\");\r\n prop = new Properties();\r\n // load a properties file\r\n prop.load(input);\r\n\r\n String browserType = prop.getProperty(\"Browser\");\r\n switch (browserType){\r\n case \"Chrome\" :\r\n {\r\n driver = new ChromeDriver();\r\n break;\r\n }\r\n case \"FireFox\" :\r\n {\r\n driver = new FirefoxDriver();\r\n break;\r\n }\r\n case \"IE\" :\r\n {\r\n System.setProperty(\"webdriver.ie.driver\",\"<Path to IEDriver>\");\r\n driver = new InternetExplorerDriver();\r\n break;\r\n }\r\n default:\r\n {\r\n driver = new ChromeDriver();\r\n break;\r\n }\r\n }\r\n driver.manage().timeouts().implicitlyWait(Long.parseLong(prop.getProperty(\"ImplicitWait\")),TimeUnit.SECONDS);\r\n driver.manage().window().maximize();\r\n }", "@Before\n public void setUp() throws Exception {\n\n }", "protected void setUp() throws Exception {\n\n super.setUp();\n OpenXpertya.startup(true);\n }", "@BeforeClass\n public void setup()\n throws Exception {\n startZk();\n startController();\n startBroker();\n startKafka();\n }", "@BeforeClass\n \tpublic static void setUp() {\n \t\tboard = new Board(\"ClueBoard.cfg\",\"legend.cfg\");\n \t\tboard.loadConfigFiles();\n \t\tboard.calcAdjacencies();\n \t\t//set up test game\n \t\tgame = new ClueGame();\n \t\tgame.loadConfigFiles();\n \t\tgame.selectAnswer();\n \t\tgame.deal();\n \t}" ]
[ "0.78328454", "0.783229", "0.7765114", "0.7755597", "0.7755597", "0.76916397", "0.76789105", "0.7650163", "0.7644962", "0.7581316", "0.75799274", "0.755519", "0.75521624", "0.753354", "0.7525379", "0.74724627", "0.74686825", "0.74686825", "0.7464272", "0.74464774", "0.74118495", "0.7401395", "0.73952407", "0.7384812", "0.73797333", "0.7367916", "0.735348", "0.73516285", "0.7344703", "0.7344703", "0.7344703", "0.73315597", "0.7320956", "0.7320956", "0.7320956", "0.7320956", "0.7320956", "0.7315891", "0.73043007", "0.7296871", "0.72824705", "0.72800195", "0.72771704", "0.72744244", "0.72744244", "0.72744244", "0.72744244", "0.72744244", "0.7263597", "0.72595894", "0.72541475", "0.72541475", "0.72452426", "0.7228662", "0.72248983", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.7224641", "0.722173", "0.72185636", "0.7212369", "0.7212369", "0.7212369", "0.7212369", "0.7207483", "0.71993905", "0.7197129", "0.7191565", "0.71806175", "0.71769315", "0.7172631", "0.7172631", "0.71521527", "0.7141593", "0.7132483", "0.712812", "0.71250504", "0.71128106", "0.71128106", "0.71012497", "0.7100231", "0.708562", "0.7077997", "0.707774", "0.70688", "0.70631343" ]
0.0
-1
Tests save or update
@Test public void testSave() throws SQLException { int id = assign_hand.saveOrUpdate("Super Ultra Hard Assignment",true); assertTrue(id != -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSave() {\n\t}", "@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description = \"edited description\";\n\n if (result != null) {\n testEntity.setName(name);\n testEntity.setCheck(check);\n testEntity.setDescription(description);\n instance.update(testEntity);\n\n Optional<TestEntity> optionalTestEntity = instance.getById(TestEntity.class, testEntity.getId());\n assertTrue(optionalTestEntity.isPresent());\n\n if (optionalTestEntity.isPresent()) {\n TestEntity entity = optionalTestEntity.get();\n\n assertEquals(entity.getName(), name);\n assertEquals(entity.getDescription(), description);\n assertEquals(entity.isCheck(), check);\n } else {\n fail();\n }\n } else {\n fail();\n }\n }", "@Test\r\n public void testSave_again() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.save(paymentDetail1));\r\n }", "@Test\n\tpublic void saveTest(){\n\t\t\n\t}", "@Test\r\n public void testSave() {\r\n\r\n PaymentDetailPojo result = instance.save(paymentDetail1);\r\n assertTrue(paymentDetail1.hasSameParameters(result));\r\n assertTrue(result.getId() > 0);\r\n }", "@Test\n public void save() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n assert repot.findOne(1) == t;\n assert repo.findOne(1) == s;\n assert repon.findOne(\"11\") == n;\n }\n catch (ValidationException e){\n assert true;\n }\n }", "public void testSave() throws RepositoryException{\n session.save();\n sessionControl.replay();\n sfControl.replay();\n \n jt.save();\n }", "@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }", "@Test\n void save() {\n }", "@Test\n void updateSuccess() {\n String Vin = \"1111111111111111X\";\n Car carToUpdate = carDao.getById(1);\n carToUpdate.setVin(Vin);\n carDao.saveOrUpdate(carToUpdate);\n Car retrievedCar = carDao.getById(1);\n assertEquals(carToUpdate, retrievedCar);\n }", "@Test\r\n public void testSave() {\r\n System.out.println(\"save\");\r\n Festivity object = new Festivity();\r\n object.setStart(Calendar.getInstance().getTime());\r\n object.setEnd(Calendar.getInstance().getTime());\r\n object.setName(\"Test Fest\"+System.currentTimeMillis());\r\n object.setPlace(\"Narnia\");\r\n boolean expResult = true;\r\n boolean result = Database.save(object);\r\n assertEquals(expResult, result);\r\n }", "@Test\r\n public void testUpdate() {\r\n assertTrue(false);\r\n }", "@Test\n public void testCanUpdatePublisher() {\n Publisher publisher = new Publisher();\n publisher.setName(\"Publisher\");\n publisher = publisherRepo.save(publisher);\n publisher = publisherRepo.findOne(publisher.getId());\n\n publisher.setName(\"New name\");\n publisher = publisherRepo.save(publisher);\n Publisher retrievedPublisher = publisherRepo.findOne(publisher.getId());\n assertThat(retrievedPublisher.getName(), equalTo(\"New name\"));\n }", "@Test\r\n public void testSave_two() {\r\n\r\n PaymentDetailPojo expResult1 = instance.save(paymentDetail1);\r\n PaymentDetailPojo expResult2 = instance.save(paymentDetail2);\r\n \r\n assertEquals(expResult1, instance.save(paymentDetail1)); \r\n assertEquals(expResult2, instance.save(paymentDetail2));\r\n }", "@Test\n public void testSaveOrUpdate() {\n Customer customer = new Customer();\n customer.setId(3);\n customer.setName(\"nancy\");\n customer.setAge(18);\n saveOrUpdate(customer);\n }", "@Test\n void updateSuccess() {\n String newEventName = \"Coffee meeting\";\n Event eventToUpdate = (Event)genericDao.getById(5);\n eventToUpdate.setName(newEventName);\n genericDao.saveOrUpdate(eventToUpdate);\n Event retrievedEvent = (Event)genericDao.getById(5);\n assertEquals(eventToUpdate, retrievedEvent);\n }", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Festivity object = new Festivity();\r\n object.setStart(Calendar.getInstance().getTime());\r\n object.setEnd(Calendar.getInstance().getTime());\r\n object.setName(\"Test Fest 2\");\r\n object.setPlace(\"Howards\");\r\n boolean expResult = true;\r\n boolean result = Database.update(object);\r\n assertEquals(expResult, result);\r\n \r\n }", "private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }", "@Test\n\t\tpublic void testSave2()\n\t\t{\n\t\t\tChObject cho = repoTest.get(\"68268301\");\n\t\t\trepoTest.remove(cho);\n\t\t\tcho.setDate(\"1900\");\n\t\t\tcho.setDescription(\"test input\");\n\t\t\trepoTest.save(cho);\n\n\t\t\tChObject cho2 = repoTest.get(\"68268301\");\n\t\t\tassertTrue(\"1900\".equals(cho2.getDate()));\n\t\t\tassertTrue(\"test input\".equals(cho2.getDescription()));\n\t\t}", "@Test\n /* testUpdateRecord\n * testing update exist record in Save.Json\n * */\n public void testUpdateRecord() {\n testAddRecord();\n\n score = 300;\n level = 3;\n name = \"test1\";\n\n saveReader.updateRecord(indexOfReturned, \"name\", name);\n assertEquals(\"True : name field updated successfully\", name, saveReader.LoadsList.get(indexOfReturned).name);\n\n saveReader.updateRecord(indexOfReturned, \"score\", score);\n assertEquals(\"True : score field updated successfully\", score, saveReader.LoadsList.get(indexOfReturned).score);\n\n saveReader.updateRecord(indexOfReturned, \"level\", level);\n assertEquals(\"True : level field updated successfully\", level, saveReader.LoadsList.get(indexOfReturned).level);\n }", "@Test\n void updateSuccess() {\n String newFirstName = \"Artemis\";\n User userToUpdate = (User) dao.getById(1);\n userToUpdate.setFirstName(newFirstName);\n dao.saveOrUpdate(userToUpdate);\n User userAfterUpdate = (User) dao.getById(1);\n assertEquals(newFirstName, userAfterUpdate.getFirstName());\n }", "@Test\r\n public void testUpdate() {\r\n }", "@Test\n public void testUpdate() {\n\n }", "public void testSaveCallsExpectedSQLandThenIsSavedReturnsTrue() throws Exception {\n\t\tResultSet mockResultSet = MockDB.createResultSet();\n\t\tStatement mockStatement = MockDB.createStatement();\n\t\t\n\t\tUser localValidUser = new User(validUser);\n\t\tassertFalse(\"isSaved() called on an unsaved user should return false!\",localValidUser.isSaved());\n\t\t\n\t\t// Mock the insert\n\t\texpect(mockStatement.execute(\"INSERT INTO user \"+\n\t\t\t\t\"(first_name,last_name,address,postal_code,city,province_state,country,email,datetime,user_name,password,salt)\"+\n\t\t\t\t\" VALUES ('Foo','Bar','123 4th Street','H3Z2K6','Calgary','Alberta','Canada','foo@bar.net',NOW(),'foo','foobar','----5---10---15---20---25---30---35---40---45---50---55---60--64');\"+\n\t\t\t\t\"select last_insert_id() as user_id;\")).andReturn(true);\n\t\texpect(mockStatement.getResultSet()).andReturn(mockResultSet);\n\t\t\n\t\t// Mock the update\n\t\texpect(mockStatement.execute(\"UPDATE user SET \"+\n\t\t\t\t\"first_name='Foo',\" +\n\t\t\t\t\"last_name='SNAFU',\" +\n\t\t\t\t\"address='123 4th Street',\" +\n\t\t\t\t\"postal_code='H3Z2K6',\" +\n\t\t\t\t\"city='Calgary',\" +\n\t\t\t\t\"province_state='Alberta',\" +\n\t\t\t\t\"country='Canada',\" +\n\t\t\t\t\"email='foo@bar.net',\" +\n\t\t\t\t\"user_name='foo',\" +\n\t\t\t\t\"password='foobar' \"+\n\t\t\t\t\"WHERE user_id=1;\")).andReturn(true);\n\t\texpect(mockStatement.getResultSet()).andReturn(mockResultSet);\n\t\treplay(mockStatement);\n\t\t\n\t\t// Mock the results\n\t\texpect(mockResultSet.next()).andReturn(true);\n\t\texpect(mockResultSet.getInt(\"user_id\")).andReturn(1);\n\t\texpect(mockResultSet.next()).andReturn(true);\n\t\treplay(mockResultSet);\n\t\t\n\t\tassertTrue(\"save() called on a valid user should return true!\",localValidUser.save());\n\t\tassertTrue(\"isSaved() called on a saved user should return true!\",localValidUser.isSaved());\n\t\t\n\t\t// Now make the changes!\n\t\tlocalValidUser.lastName = \"SNAFU\"; // User got married\n\t\tassertTrue(\"save() called on a valid user should return true!\",localValidUser.save());\n\t}", "@Test\n public void updateTest2() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBar() ,\"Should return true if update Servizio\");\n }", "@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }", "@Test\n public void save() throws Exception {\n }", "@Test\n void updateTest() {\n admin.setSurname(\"Rossini\");\n Admin modifyied = adminJpa.update(admin);\n assertEquals(\"Rossini\", modifyied.getSurname());\n }", "@Test\n void updateSuccess() {\n RunCategory categoryToUpdate = (RunCategory) dao.getById(2);\n categoryToUpdate.setCategoryName(\"New Name\");\n dao.saveOrUpdate(categoryToUpdate);\n RunCategory categoryAfterUpdate = (RunCategory) dao.getById(2);\n assertEquals(categoryToUpdate, categoryAfterUpdate);\n }", "@Test\n public void update() {\n }", "@Test\n public void testUpdateVehicleSold() {\n //Arrange\n Vehicle vehicle = new Vehicle();\n Model model = new Model();\n Make make = new Make();\n \n make.setMakeName(\"Ford\");\n \n Make createdMake = makeDao.addMake(make);\n \n model.setModelName(\"Explorer\");\n model.setMake(createdMake);\n \n Model createdModel = modelDao.addModel(model);\n \n vehicle.setYear(2018);\n vehicle.setTransmission(\"Automatic\");\n vehicle.setMileage(1000);\n vehicle.setColor(\"Blue\");\n vehicle.setInterior(\"Leather\");\n vehicle.setBodyType(\"SUV\");\n vehicle.setVin(\"W9D81KQ93N8Z0KS7\");\n vehicle.setSalesPrice(new BigDecimal(\"35000.00\"));\n vehicle.setMsrp(new BigDecimal(\"40000.00\"));\n vehicle.setDescription(\"A practical vehicle\");\n vehicle.setPicURL(\"http://www.sampleurl.com/samplepic\");\n vehicle.setModel(createdModel);\n\n Vehicle createdVehicle = vehicleDao.addVehicle(vehicle);\n\n createdVehicle.setSalesPrice(new BigDecimal (\"30000.00\"));\n createdVehicle.setInStock(false);\n \n //Act \n vehicleDao.updateVehicle(createdVehicle);\n \n //Assert\n Vehicle fetchedVehicle = vehicleDao.getVehicleById(createdVehicle.getVehicleId());\n \n assertEquals(vehicle.getSalesPrice(), fetchedVehicle.getSalesPrice());\n assertFalse(fetchedVehicle.isInStock());\n \n }", "@Test\n public void updateById() {\n User user = new User();\n user.setId(1259474874313797634L);\n user.setAge(30);\n boolean ifUpdate = user.updateById();\n System.out.println(ifUpdate);\n }", "@Test\n public void updateUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userDAO.updateUser(new User(\"notdummy\", \"dummyUPDATED\", 2)));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testUpdateCar() {\n\n }", "@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }", "@Test\n void testUpdateUser() {\n String password = \"testPassword\";\n User updateUser = (User) userData.crud.getById(1);\n updateUser.setPassword(password);\n userData.crud.updateRecords(updateUser);\n User getUser = (User) userData.crud.getById(1);\n assertEquals(getUser, updateUser);\n logger.info(\"Updated the password for ID: \" + updateUser.getId());\n }", "@Test\r\n public void testBUpdate() throws Exception {\r\n System.out.println(\"update\");\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n \r\n Usuario obj = instance.login(\"admin\", \"admin\");\r\n obj.setFullName(\"Kevin Duran\");\r\n \r\n int expResult = 1;\r\n int result = instance.update(obj);\r\n assertEquals(expResult, result);\r\n }", "@Test\n\tpublic void testSaveOrUpdateDriverUpdate() throws MalBusinessException{\t\n\t\tfinal long drvId = 203692;\n\t\tfinal String FNAME = \"Update\";\n\t\tfinal String LNAME = \"Driver Test\";\n\t\tfinal String PHONE_NUMBER = \"554-2728\";\n\t\t\n\t\tDriver driver;\n\t\t\n\t\tdriver = driverService.getDriver(drvId);\n\t\tdriver.setDriverForename(FNAME);\n\t\tdriver.setDriverSurname(LNAME);\t\t\n\t\tdriver.getDriverAddressList().get(0).setAddressLine1(\"111\");\t\n\t\tdriver.getPhoneNumbers().get(0).setNumber(PHONE_NUMBER);\n\t\tdriver = driverService.saveOrUpdateDriver(driver.getExternalAccount(), driver.getDgdGradeCode(), driver, driver.getDriverAddressList(), driver.getPhoneNumbers(), userName, null);\t\n\t\tdriver = driverService.getDriver(drvId);\n\t\t\n assertEquals(\"Update driver first name failed \", driver.getDriverForename(), FNAME);\t\n\t\tassertEquals(\"Update driver last name failed \", driver.getDriverSurname(), LNAME);\t\t\n\t\tassertEquals(\"Update driver phone number failed \", driver.getPhoneNumbers().get(0).getNumber(), PHONE_NUMBER);\t\t\n\t}", "@Test\n public void testUpdate() {\n int resultInt = disciplineDao.insert(disciplineTest);\n \n boolean result = false;\n \n if(resultInt > 0){\n disciplineTest.setId(resultInt);\n \n disciplineTest.setName(\"matiere_test2\");\n \n result = disciplineDao.update(disciplineTest);\n \n disciplineDao.delete(disciplineTest);\n }\n \n assertTrue(result);\n }", "@Test\n public void updateTest6() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }", "@Test\n void testUpdateGoalie() {\n\n }", "@Test\n public void updateTest14() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }", "@Test \n\tpublic void edit() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test\n void updateSuccess() {\n String newDescription = \"December X-Large T-Shirt\";\n Order orderToUpdate = dao.getById(3);\n orderToUpdate.setDescription(newDescription);\n dao.saveOrUpdate(orderToUpdate);\n Order retrievedOrder = dao.getById(3);\n assertEquals(newDescription, retrievedOrder.getDescription());\n\n String resetDescription = \"February Small Long-Sleeve\";\n Order orderToReset = dao.getById(3);\n orderToUpdate.setDescription(resetDescription);\n dao.saveOrUpdate(orderToReset);\n }", "@Test\n public void updateTest8() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }", "@Test\n public void updateTest1() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCabina() ,\"Should return true if update Servizio\");\n }", "@Test\n\t public void testUpdate(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t\twhen(entityManager.merge(user)).thenReturn(BaseData.getDBUsers());\n\t\t\t\tUsers savedUser = userDao.update(user);\n\t\t\t\tassertNotNull(savedUser);\n\t\t\t\tassertTrue(savedUser.getFirstName().equals(\"MerchandisingUI\"));\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing update:.\",se);\n\t\t }\n\t }", "@Test\n public void testEdit() {\n System.out.println(\"edit\");\n curso _curso = new curso();\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.edit(_curso);\n assertEquals(expResult, result);\n \n }", "@Test\n public void updateTest3() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }", "@Test\n public void updateTest7() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "@Test\n public void testUpdatePositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n\n item.setType(ItemTypes.NON_ALCOHOLIC_BEVERAGE);\n itemDao.update(item);\n\n Item itemDB = itemDao.read(item.getName());\n Assert.assertEquals(itemDB, item);\n }", "@Test\n public void testSaveMusic(){\n\n List<Media> movies = mediaService.findAll(\"movie\");\n\n\n/*\n //save product, verify has ID value after save\n assertNull(product.getId()); //null before save\n productRepository.save(product);\n assertNotNull(product.getId()); //not null after save\n //fetch from DB\n Product fetchedProduct = productRepository.findOne(product.getId());\n\n //should not be null\n assertNotNull(fetchedProduct);\n\n //should equal\n assertEquals(product.getId(), fetchedProduct.getId());\n assertEquals(product.getDescription(), fetchedProduct.getDescription());\n\n //update description and save\n fetchedProduct.setDescription(\"New Description\");\n productRepository.save(fetchedProduct);\n\n //get from DB, should be updated\n Product fetchedUpdatedProduct = productRepository.findOne(fetchedProduct.getId());\n assertEquals(fetchedProduct.getDescription(), fetchedUpdatedProduct.getDescription());\n\n //verify count of products in DB\n long productCount = productRepository.count();\n assertEquals(productCount, 1);\n\n //get all products, list should only have one\n Iterable<Product> products = productRepository.findAll();\n\n int count = 0;\n\n for(Product p : products){\n count++;\n }\n\n assertEquals(count, 1);\n */\n }", "@Test\n public void testUpdate() {\n System.out.println(\"update\");\n Address obj = null;\n AddressDAO instance = null;\n boolean expResult = false;\n boolean result = instance.update(obj);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n @Commit\n public void dynamicUpdateContent(){\n }", "@Test\n void saveSuccess() {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n System.out.println(\"Result\" + result);\n\n if (result != null) {\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, result);\n\n TestEntity entity = optionalEntity.orElse(null);\n\n if (entity != null) {\n Assertions.assertEquals(result, entity.getId());\n Assertions.assertNotNull(result);\n } else {\n Assertions.fail();\n }\n } else {\n Assertions.fail();\n }\n }", "@Test\n public void testUpdateLocation() {\n\n Location loc1 = new Location();\n loc1.setLocationName(\"Mommas House\");\n loc1.setDescription(\"Like it says\");\n loc1.setAddress(\"123 nunya Ave\");\n loc1.setCity(\"Hometown\");\n loc1.setLatitude(123.456);\n loc1.setLongitude(123.456);\n\n locDao.addLocation(loc1);\n\n loc1.setLocationName(\"Poppas House\");\n\n locDao.updateLocation(loc1);\n\n Location testLoc = locDao.getLocationById(loc1.getLocationId());\n\n assertEquals(loc1, testLoc);\n\n }", "@Test\n public void updateTest() {\n reservation3.setId(13L);\n reservation3.setReserveDate(LocalDate.now().plusDays(2));\n reservationService.update(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).update(reservation3);\n }", "@Test\n public void updateTest11() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }", "@Test\n\tpublic void testUpdateTicketOk() {\n\t}", "@Test\n public void test2Update() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.update(spec2,\"teleinformatica\"),1); \n }", "@Test\n public void whenUpdatingCustomerItShouldReturnTheSavedCustomer() {\n given(repository.getOne(CUSTOMER1_ID)).willReturn(CUSTOMER1);\n // Given that a CUSTOMER1 is saved and flushed, a CUSTOMER1 is returned\n given(repository.saveAndFlush(CUSTOMER1)).willReturn(CUSTOMER1);\n // When updating a CUSTOMER1\n assertThat(controller.updateCustomer(CUSTOMER1, CUSTOMER1_ID))\n // Then it should return the CUSTOMER1\n .isSameAs(CUSTOMER1);\n }", "@Test\n public void editRecipe_ReturnsTrue(){\n testDatabase.addRecipe(testRecipe);\n testRecipe.setTitle(\"TestRecipe Updated\");\n testRecipe.setServings(1.5);\n testRecipe.setPrep_time(15);\n testRecipe.setTotal_time(45);\n testRecipe.setFavorited(true);\n listOfCategories.clear();\n listOfCategories.add(recipeCategory);\n testRecipe.setCategoryList(listOfCategories);\n listOfIngredients.clear();\n recipeIngredient.setUnit(\"tbsp\");\n recipeIngredient.setQuantity(1.5);\n recipeIngredient.setDetails(\"Brown Sugar\");\n listOfIngredients.add(recipeIngredient);\n testRecipe.setIngredientList(listOfIngredients);\n listOfDirections.clear();\n listOfDirections.add(recipeDirection1);\n testRecipe.setDirectionsList(listOfDirections);\n\n assertEquals(\"editRecipe - Returns True\", true, testDatabase.editRecipe(testRecipe));\n }", "@Test\n public void editIngredient_ReturnsTrue(){\n int returned = testDatabase.getIngredient(\"egg\");\n testDatabase.deleteIngredient(returned);\n Ingredient newIngredient = new Ingredient(ingredientID, \"egg\");\n assertEquals(\"editIngredient - Returns True\", true, testDatabase.editIngredient(newIngredient));\n }", "@Test\n public void updateEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity pojoEntity = factory.manufacturePojo(EspecieEntity.class);\n pojoEntity.setId(entity.getId());\n especieLogic.updateSpecies(pojoEntity.getId(), pojoEntity);\n EspecieEntity resp = em.find(EspecieEntity.class, entity.getId());\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getNombre(), resp.getNombre());\n }", "@Test\n public void noUpdateWhenNotValidParams() {\n }", "@Test\n public void testSave() {\n NoteCours nc = new NoteCours(\"titre\",\"description\", etu,matiere);\n // when: la méthode saveNote est invoquée\n ncService.saveNoteCours(nc);\n // then: la méthode save du NoteCoursRepository associé est invoquée\n verify(ncService.getNoteCoursRepository()).save(nc);\n }", "@Test\n public void updateTest12() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setAnimazione(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isAnimazione() ,\"Should return true if update Servizio\");\n }", "@Test\n public void updateTest9() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCabina() ,\"Should return true if update Servizio\");\n }", "@Test\n public void test_update() throws Exception {\n User user1 = createUser(1, false);\n\n user1.setUsername(\"new\");\n\n entityManager.getTransaction().begin();\n instance.update(user1);\n entityManager.getTransaction().commit();\n entityManager.clear();\n\n User retrievedUser = instance.get(user1.getId());\n\n assertEquals(\"'update' should be correct.\", user1.getUsername(), retrievedUser.getUsername());\n }", "@Test\n @Ignore\n public void testUpdate() {\n System.out.println(\"update\");\n Index entity = null;\n IndexDaoImpl instance = null;\n Index expResult = null;\n Index result = instance.update(entity);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testUpdate() throws Exception {\r\n System.out.println(\"update\");\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj = instance.create(obj);\r\n obj.setSigle(\"Test2\");\r\n //etc\r\n obj.setTel(\"000000001\");\r\n //etc\r\n Bureau expResult=obj;\r\n Bureau result = instance.update(obj);\r\n assertEquals(expResult.getSigle(), result.getSigle());\r\n //etc\r\n assertEquals(expResult.getTel(), result.getTel());\r\n //etc\r\n instance.delete(obj);\r\n //TODO verifier que si met à jour vers un doublé sigle-tel déjà existant, on a une exception\r\n }", "@Test\n public void updateTest4() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setAnimazione(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isAnimazione() ,\"Should return true if update Servizio\");\n }", "@Test\n public void testSaveGame(){\n assertEquals(d_gameEngine.saveGame(d_gameData, \"testGame\"), true);\n }", "@Test\n public void findOne() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n assert repot.findOne(1)== t;\n assert repo.findOne(1) == s;\n assert repon.findOne(\"11\") == n;\n }\n catch (ValidationException e){\n }\n }", "@Test\n public void saveAndFlushTest() {\n FileMetaData fileMetaData = new FileMetaData();\n fileMetaData.setAuthorName(\"Puneet\");\n fileMetaData.setFileName(\"resume4\");\n fileMetaData.setDescription(\"Attached resume to test upload\");\n fileMetaData.setUploadTimeStamp(DateUtil.getCurrentDate());\n FileMetaData newRecord = fileMetaDataRepository.saveAndFlush(fileMetaData);\n Assert.assertNotNull(newRecord);\n Assert.assertEquals(\"Puneet\", newRecord.getAuthorName());\n Assert.assertEquals(\"Attached resume to test upload\", newRecord.getDescription()); \n }", "@Test\n\tpublic void testSaveAndFindById() {\n\t\tProduct savedProduct = productRepository.save(testProduct);\n\t\ttestReview.setProduct(savedProduct);\n\t\t\n\t\tReview expectedReview = reviewRepository.save(testReview);\n\t\tassertThat(expectedReview).isNotNull();\n\t\t\n\t\tOptional<Review> optionalReview = reviewRepository.findById(expectedReview.getId());\n\t\tReview actualReview = optionalReview.get();\n\t\tassertThat(actualReview).isNotNull();\n\t\tassertTrue(actualReview.getId().equals(expectedReview.getId()));\n\t}", "@Test\n public void updateUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.updateUser(new User(\"dummy\", \"dummyUPDATED\", 2)));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Test\n public void testSave() throws Exception {\n System.out.println(\"save\");\n Item item = new Item(1L, new Category(\"name\", \"code\", \"description\"), \n new Shop(new Date(), \"12345\", \"Pepe perez\", \"Tienda\", \"Nit\", \"Natural\"), new Date(), \"name\", 20.0);\n \n \n// Item result = itemDAO.save(item);\n// Assert.assertNotNull(result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n void saveOrUpdateSuccess() {\n String newRoleName = \"readOnly\";\n UserRoles toUpdate = (UserRoles) genericDao.getById(3);\n toUpdate.setRoleName(newRoleName);\n genericDao.saveOrUpdate(toUpdate);\n UserRoles retrievedRole = (UserRoles) genericDao.getById(3);\n assertEquals(newRoleName, retrievedRole.getRoleName());\n log.info(\"update role success test\");\n\n }", "@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }", "@Test\n public void testSave() {\n System.out.println(\"save\");\n Resource instance = new ResourceImpl();\n instance.save();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void updateTest() throws SQLException, IDAO.DALException {\n userDAO.create(user);\n user.setNavn(\"SørenBob\");\n user.setCpr(\"071199-4397\");\n user.setAktiv(false);\n user.setIni(\"SBO\");\n // Opdatere objektet i databasen, og sammenligner.\n userDAO.update(user);\n recivedUser = userDAO.get(-1);\n\n assertEquals(recivedUser.getId(), user.getId());\n assertEquals(recivedUser.getNavn(), user.getNavn());\n assertEquals(recivedUser.getIni(), user.getIni());\n assertEquals(recivedUser.getCpr(), user.getCpr());\n assertEquals(recivedUser.isAktiv(),user.isAktiv());\n }", "@Test\n public void modifyUserSuccessfull(){\n User user_test = new User();\n user_test.setId(1L);\n user_test.setName(\"nametest\");\n user_test.setLast_name(\"lastnametest\");\n user_test.setUsername(\"usernametest\");\n user_test.setPassword(\"apassword\");\n\n given(userRepository.findById(anyLong())).willReturn(Optional.of(user_test));\n\n User user_expected = new User();\n user_expected.setId(1L);\n user_expected.setName(\"nametestmodified\");\n user_expected.setLast_name(\"lastnametestmodified\");\n user_expected.setUsername(\"usernametest\");\n user_expected.setPassword(\"apassword\");\n\n given(userRepository.save(any())).willReturn(user_expected);\n\n User user_retrieved = userServiceImpl.modifyUser(user_test.getId(), user_test);\n\n Assertions.assertNotNull(user_retrieved);\n Assertions.assertEquals(user_expected.getName(),user_retrieved.getName());\n Assertions.assertEquals(user_expected.getLast_name(),user_retrieved.getLast_name());\n Assertions.assertNull(user_retrieved.getPassword());\n }", "@Test\n public void saveProduct_should_update_product_with_new_product_fields() {\n final Product product = productStorage.saveProduct(new Product(1, \"Oranges\", 150, 3));\n\n //get product with id = 1\n final Product updatedProduct = productStorage.getProduct(1);\n\n assertThat(product, sameInstance(updatedProduct));\n }", "public void testCmdUpdate() {\n\t\ttestCmdUpdate_taskID_field();\n\t\ttestCmdUpdate_taskName_field();\n\t\ttestCmdUpdate_time_field();\n\t\ttestCmdUpdate_priority_field();\n\t}", "@Test\r\n\t public void updateAnExistingRouteFather(){\r\n\t\t this.routeFather.setDescription(\"yolo\");\r\n\t\t routeFatherDAO.update(this.routeFather);\r\n\t\t Assert.assertNotNull(\"it should returns not null\", this.routeFather);\r\n\t\t Assert.assertEquals(\"email should be yolo\", this.routeFather.getDescription(), \"yolo\");\r\n\t\t routeFatherDAO.delete(routeFather);\r\n\t\t \r\n\t }", "@Test\n @WithMockUser(username=\"supervisor_admin\",roles={\"PM\",\"ADMIN\"})\n public void shouldUpdateAssessmentRubric() throws Exception {\n\n // Creating Rubric object using test values\n String rubricTitle = \"test_rubric_title\";\n int rubricRank = 4;\n boolean rubricIsEnabled = true;\n\n AssessmentRubric rubricObject = new AssessmentRubric();\n rubricObject.setTitle(rubricTitle);\n rubricObject.setStarting_date_time(LocalDateTime.now());\n rubricObject.setEnd_date_time(LocalDateTime.now());\n rubricObject.setEnabled(rubricIsEnabled);\n rubricObject.setRank(rubricRank);\n\n rubricObject.setRubricType(getMockTestRubricType());\n rubricObject.setLearningProcess(getMockTestLearningProcess());\n\n // Creating process JSON\n byte[] rubricJSON = this.mapper.writeValueAsString(rubricObject).getBytes();\n\n // invoke Create\n MvcResult resultInsert = mvc.perform(post(BASE_URL).content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle)))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank)))\n .andExpect(jsonPath(\"$.enabled\", is(rubricIsEnabled)))\n .andReturn();\n\n\n AssessmentRubric rubricUpdatable = this.mapper.readValue(resultInsert.getResponse().getContentAsByteArray(), AssessmentRubric.class);\n // Update the inserted AssessmentRubric\n rubricUpdatable.setTitle(rubricTitle +\" updated\");\n rubricUpdatable.setRank(rubricRank +1 );\n rubricUpdatable.setEnabled(!rubricIsEnabled);\n\n rubricJSON = this.mapper.writeValueAsString(rubricUpdatable).getBytes();\n\n // UPDATE: Operation\n MvcResult resultUpdate = mvc.perform(put(BASE_URL+\"/\"+rubricUpdatable.getId())\n .content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").exists())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle +\" updated\")))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank + 1)))\n .andExpect(jsonPath(\"$.enabled\", is(!rubricIsEnabled)))\n .andReturn();\n\n\n }", "@SmallTest\n public void testUpdate() {\n int result = -1;\n if (this.entity != null) {\n Settings settings = SettingsUtils.generateRandom(this.ctx);\n settings.setId(this.entity.getId());\n\n result = (int) this.adapter.update(settings);\n\n Assert.assertTrue(result >= 0);\n }\n }", "@Test\n public void updateBonoTest() {\n BonoEntity ee = data.get(0);\n \n ee.setDescuento(99);\n \n BonoEntity entidad=null;\n try{\n entidad=bonoLogic.updateBono(ee);\n }\n catch(BusinessLogicException e){\n fail(e.getMessage());\n }\n \n BonoEntity result = em.find(BonoEntity.class, ee.getId());\n \n assertEquals(result.getId(), entidad.getId());\n assertEquals(result.getDescuento(), entidad.getDescuento());\n assertEquals(result.getMotivo(), entidad.getMotivo());\n assertEquals(result.getCodigo(), entidad.getCodigo());\n assertEquals(result.getProveedor(), entidad.getProveedor());\n }", "@Test\n @DisplayName(\"Deve salvar um livro\")\n public void saveBookTest() {\n given(bookToSaveMocked.getIsbn()).willReturn(BookHelperTest.DOM_CASMURRO_ISBN);\n given(bookRepositoryMocked.existsByIsbn(BookHelperTest.DOM_CASMURRO_ISBN)).willReturn(false);\n given(bookRepositoryMocked.save(bookToSaveMocked)).willReturn(bookSavedMocked);\n\n // When execute save\n Book bookSaved = bookService.save(bookToSaveMocked);\n\n // Then validate save return\n assertThat(bookSaved).isNotNull();\n\n // And verify mocks interaction\n verify(bookToSaveMocked, times(1)).getIsbn();\n verify(bookRepositoryMocked, times(1)).existsByIsbn(BookHelperTest.DOM_CASMURRO_ISBN);\n verify(bookRepositoryMocked, times(1)).save(Mockito.any(Book.class));\n }", "@Test @Ignore\n\tpublic void testUpdate() {\n\t\tlog.info(\"*** testUpdate ***\");\n\t}", "public void testSave() {\r\n\r\n\t\ttry {\r\n\t\t\tLevelOfCourt levelOfCourt = new LevelOfCourt();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tlevelOfCourt.setName(\"alpha\");\r\n\r\n\t\t\t\tTestDataFactory jurisdictionTestDataFactory = (TestDataFactory) BeanHelper\r\n\t\t\t\t\t\t.getBean(\"jurisdictionTestDataFactory\");\r\n\r\n\t\t\t\tlevelOfCourt\r\n\t\t\t\t\t\t.setJurisdiction((com.cc.civlit.domain.courtdivisions.Jurisdiction) jurisdictionTestDataFactory\r\n\t\t\t\t\t\t\t\t.loadOneRecord());\r\n\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tlevelOfCourtService.save(levelOfCourt);\r\n\t\t\tassertNotNull(levelOfCourt.getId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n public void givenThreeEntity_whenUpdate_thenReturnUpdatedEntity() {\n ThreeEntity entity = new ThreeEntity(1,1);\n entity.setValue(1000);\n entity.setParentId(12);\n\n given(threeDao.save(entity)).willReturn(entity);\n\n ThreeEntity found = threeService.save(entity);\n\n assertEquals(entity.getId(), found.getId());\n assertEquals(entity.getParentId(), found.getParentId());\n assertEquals(entity.getValue(), found.getValue());\n }", "Test update(TestData testData, Test test);", "@Test @Ignore\n\tpublic void testSQLUpdate() {\n\t\tlog.info(\"*** testSQLUpdate ***\");\n\t}", "@Test\r\n public void testUpdate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(recordDao.findActivityRecord(record.getId()));\r\n\r\n record.setDistance(15);\r\n record.setTime(20L);\r\n recordDao.update(record);\r\n\r\n ActivityRecord recordFound = recordDao.findActivityRecord(record.getId());\r\n assertEquals(recordFound.getDistance(), new Integer(15));\r\n assertEquals(recordFound.getTime(), new Long(20));\r\n }", "@Test\r\n public void updateSalaTest() throws BusinessLogicException {\r\n SalaEntity entity = data.get(0);\r\n SalaEntity pojoEntity = factory.manufacturePojo(SalaEntity.class);\r\n pojoEntity.setId(entity.getId());\r\n salaLogic.updateSala(pojoEntity.getId(), pojoEntity);\r\n\r\n SalaEntity resp = em.find(SalaEntity.class, entity.getId());\r\n\r\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\r\n Assert.assertEquals(pojoEntity.getNumero(), resp.getNumero());\r\n }", "protected abstract void doSave();" ]
[ "0.7610525", "0.7513725", "0.7509176", "0.744108", "0.74299264", "0.7393165", "0.72426146", "0.72218055", "0.71702427", "0.71357024", "0.7098175", "0.7049431", "0.7030107", "0.70292896", "0.7015857", "0.7009652", "0.6990509", "0.69898945", "0.6962459", "0.69611233", "0.69439274", "0.69019765", "0.6886127", "0.68745154", "0.68651587", "0.6863927", "0.684873", "0.6834401", "0.6825403", "0.68170124", "0.6790146", "0.6772119", "0.67605954", "0.6753029", "0.67496395", "0.67457366", "0.6742724", "0.6742145", "0.67334497", "0.67298317", "0.6716546", "0.6713092", "0.6706823", "0.67024904", "0.67006904", "0.6695759", "0.6694549", "0.66945267", "0.66931325", "0.6693041", "0.66779894", "0.66761017", "0.6671319", "0.6666541", "0.66654", "0.66595846", "0.6645227", "0.66392195", "0.66284", "0.66280794", "0.66190475", "0.66083515", "0.66005856", "0.658062", "0.65759784", "0.6575281", "0.657462", "0.6571484", "0.6565819", "0.65622115", "0.65601546", "0.652932", "0.65256923", "0.65240127", "0.65150976", "0.6493009", "0.6466422", "0.64634913", "0.6461225", "0.64610565", "0.6449681", "0.6437475", "0.6436994", "0.64357644", "0.64351207", "0.64294136", "0.64218205", "0.64072484", "0.64040476", "0.64031166", "0.6403057", "0.6399532", "0.6382446", "0.63733596", "0.63699824", "0.63689196", "0.6361572", "0.6356994", "0.63564265", "0.63551617" ]
0.6715679
41
Tests getting the assignment
@Test public void getAssignment() throws SQLException { int id = assign_hand.saveOrUpdate(test_assignment); AssignmentMsg test_am = assign_hand.getAssignment(id); assertEquals("Super Ultra Hard Assignment",test_am.getName()); assertEquals(true,test_am.isEnabled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assignment() {\n\n\t\t\t}", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public void getAssignment() {\n \n }", "@Test\n\tpublic void testAddAssignment() {\n\t}", "@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }", "@Test\r\n public void testGetIdentifier() {\r\n System.out.println(\"getIdentifier\");\r\n Assignment instance = new Assignment();\r\n String expResult = \":=\";\r\n String result = instance.getIdentifier();\r\n assertEquals(expResult, result);\r\n }", "public boolean isAssignment() {\n\t\treturn true;\n\t}", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "@Test\r\n public void testToString() {\r\n System.out.println(\"toString\");\r\n Assignment instance = new Assignment();\r\n String expResult = \":=\";\r\n String result = instance.toString();\r\n assertEquals(expResult, result);\r\n }", "assign_op getAssign_op();", "@Test\n\tpublic void testGetAssignmentID()\n\t{\n\t\tAssignmentHandler ah = new AssignmentHandler();\n\t\tassertEquals(1,ah.getAssignmentID(\"testAssignment\"));\n\t\tassertEquals(2,ah.getAssignmentID(\"Assignment2\"));\n\t}", "Assignment createAssignment();", "Assignment createAssignment();", "@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }", "public KSMemberBaseAssignment assignment() {\n return assignment;\n }", "Assign createAssign();", "abstract void assignOne();", "@Test\r\n public void testGetOperandValueType() {\r\n System.out.println(\"getOperandValueType\");\r\n Assignment instance = new Assignment();\r\n Value.Type expResult = Value.Type.UNDEFINED;\r\n Value.Type result = instance.getOperandValueType();\r\n assertEquals(expResult, result);\r\n }", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "@Test\n\tpublic void updateAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\n\t\ttest_am.setName(\"Not As Hard Assignment\");\n\t\ttest_am.setEnabled(false);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am.getName());\n\t\t\n\t\tid = assign_hand.saveOrUpdate(test_am);\n\t\tAssignmentMsg test_am2 = assign_hand.getAssignment(id);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am2.getName());\n\t\tassertEquals(false,test_am2.isEnabled());\n\n\t}", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "public static boolean assignment(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n \n CToken t = new CToken();\n t = getUsePeek(f);\n\n if (!t.token.equals(\"let\")) {\n return false;\n }\n CScanner.needToUsePeekedToken = false;\n\n if (!descriptor(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n t = getUsePeek(f);\n\n if (!t.token.equals(\"=\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n\n CScanner.needToUsePeekedToken = false;\n \n if (!expression(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n if (CScanner.needToUsePeekedToken) {\n t = CScanner.peekedToken;\n } //we peeked before this call, so use it\n else {\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n } //get token\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", false);\n }\n return true;\n }", "@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}", "@Test\n public void create_ValidAssignment_ShouldReturnAssignment() throws Exception {\n when(service.save(Mockito.any(Assignment.class))).thenAnswer(a -> a.getArguments()[0]);\n final Assignment postedAssignment = RENTOKIL;\n final String postedAssignmentJSON = objectMapper.writeValueAsString(postedAssignment);\n\n // When we post a new assignment\n final String response = mockMvc.perform(post(ENDPOINT)\n .contentType(MediaType.APPLICATION_JSON)\n .content(postedAssignmentJSON))\n .andExpect(status().isCreated())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we get a JSON object, containing the full details of the assignment\n final Assignment returnedAssignment = objectMapper.readValue(response, Assignment.class);\n assertEquals(postedAssignment, returnedAssignment);\n }", "private void assignIntoGrade() {\n }", "public abstract void createAssignment(int p);", "private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }", "protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }", "private void checkAssignment(Assignment node) {\n String nodeName = node.name.name;\n boolean error = false;\n\n // check whether assignment would cause a loop\n if (node.value instanceof ConstantReference) {\n ConstantReference reference = ((ConstantReference) node.value);\n if (reference.name.equals(nodeName)) {\n node.setError(\"You can't assign a constant to itself.\");\n error = true;\n } else {\n isCircularReference(reference);\n }\n }\n // if assignment is an operation, check the operation\n if (node.value instanceof Operation) {\n checkOperation((Operation) node.value);\n }\n\n // if no error has been found add it to symboltable.\n if (!error) {\n symboltable.put(nodeName, node.value);\n }\n }", "AssignmentRule createAssignmentRule();", "private void processAssignment(String line) {\n\t\t//TODO: fill\n\t}", "public abstract void assign(Object value) throws IllegalStateException, InterruptedException;", "@Test\n public void testAssignReinforcements() {\n IssueOrderPhase l_issueOrder = new IssueOrderPhase(d_gameEngine);\n l_issueOrder.d_gameData = d_gameData;\n l_issueOrder.assignReinforcements();\n d_gameData = l_issueOrder.d_gameData;\n int l_actualNoOfArmies = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n int l_expectedNoOfArmies = 8;\n assertEquals(l_expectedNoOfArmies, l_actualNoOfArmies);\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n\n Setting instance = Setting.factory();\n String oldName = instance.getName();\n assertFalse(Setting.isNotUsed(oldName));\n String name = \"newName\";\n instance.setName(name);\n assertEquals(name, instance.getName());\n assertTrue(Setting.isNotUsed(oldName));\n assertFalse(Setting.isNotUsed(name));\n\n }", "@Test\n\tpublic void testGetAllAssignments() throws SQLException\n\t{\n//\t\tfail(\"NEVER RUIN THE DATABASE IN A TEST!!!! Whoever wrote this needs to make a real test\");\n//\t\tString q = \"TRUNCATE TABLE assignment\";\n//\t\tPreparedStatement p = assign_hand.getConn().prepareStatement(q);\n//\t\tp.executeQuery();\n//\t\t\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment\",true);\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment 2\",false);\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment 3\",true);\n//\t\tArrayList<AssignmentMsg> test_am_list = assign_hand.getAllAssignments(true);\n//\t\tArrayList<AssignmentMsg> test_am_list2 = assign_hand.getAllAssignments();\n//\t\t\n//\t\tassertEquals(2,test_am_list.size());\n//\t\tassertEquals(3,test_am_list2.size());\n\t\tassertEquals(2, this.assign_hand.getAllAssignments().size());\n\t}", "@Test\n public void testGetValue() {\n System.out.println(\"getValue\");\n Setting instance = null;\n Object expResult = null;\n Object result = instance.getValue();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }", "private BDDState handleAssignment(CAssignment assignment, CFANode successor, CFAEdge edge)\n throws UnsupportedCodeException {\n CExpression lhs = assignment.getLeftHandSide();\n\n final String varName;\n if (lhs instanceof CIdExpression) {\n varName = ((CIdExpression) lhs).getDeclaration().getQualifiedName();\n } else {\n varName = functionName + \"::\" + lhs;\n }\n\n final CType targetType = lhs.getExpressionType();\n\n // next line is a shortcut, not necessary\n if (!precision.isTracking(MemoryLocation.fromQualifiedName(varName), targetType, successor)) {\n return state;\n }\n\n BDDState newState = state;\n CRightHandSide rhs = assignment.getRightHandSide();\n if (rhs instanceof CExpression exp) {\n final Partition partition = varClass.getPartitionForEdge(edge);\n\n if (isUsedInExpression(varName, exp)) {\n // make tmp for assignment,\n // this is done to handle assignments like \"a = !a;\" as \"tmp = !a; a = tmp;\"\n String tmpVarName = predmgr.getTmpVariableForPartition(partition);\n final Region[] tmp =\n predmgr.createPredicateWithoutPrecisionCheck(\n tmpVarName, bvComputer.getBitsize(partition, targetType));\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(partition, exp, targetType, location, precision);\n newState = newState.addAssignment(tmp, regRHS);\n\n // delete var, make tmp equal to (new) var, then delete tmp\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n newState = newState.addAssignment(var, tmp);\n newState = newState.forget(tmp);\n\n } else {\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(\n partition, (CExpression) rhs, targetType, location, precision);\n newState = newState.addAssignment(var, regRHS);\n }\n return newState;\n\n } else if (rhs instanceof CFunctionCallExpression) {\n // handle params of functionCall, maybe there is a sideeffect\n newState =\n handleExternalFunctionCall(\n newState, successor, ((CFunctionCallExpression) rhs).getParameterExpressions());\n\n // call of external function: we know nothing, so we delete the value of the var\n // TODO can we assume, that malloc returns something !=0?\n // are there some \"save functions\"?\n\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bitsize,\n precision); // is default bitsize enough?\n newState = newState.forget(var);\n\n return newState;\n\n } else {\n throw new AssertionError(\"unhandled assignment: \" + edge.getRawStatement());\n }\n }", "@Test\n public void findAssignment_AssignmentExists_ShouldReturnAssignment() throws Exception {\n when(service.findById(1L)).thenReturn(Optional.of(RENTOKIL));\n\n // When we request the assignment with id 1\n final String response = mockMvc.perform(get(ENDPOINT + \"/1\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we get the requested assignment\n assertEquals(RENTOKIL, objectMapper.readValue(response, Assignment.class));\n }", "@Test\n public void testGetPrenom() {\n Beneficiaire instance = ben1;\n String expResult = \"Peter\";\n String result = instance.getPrenom();\n assertEquals(expResult, result);\n\n instance = ben3;\n expResult = \"Tai-Chin\";\n result = instance.getPrenom();\n assertEquals(expResult, result);\n\n expResult = \"Didou\";\n assertFalse(expResult.equals(result));\n }", "@Test\r\n public void testAssignWeight() {\r\n System.out.println(\"assignWeight\");\r\n double notExpResult = 0.0;\r\n double result = weightAssignment.assignWeight();\r\n assertNotEquals(result, notExpResult, 0.0);\r\n }", "@Test\n public void testGetNom() {\n Beneficiaire instance = ben1;\n String expResult = \"Tomson\";\n String result = instance.getNom();\n assertEquals(expResult, result);\n\n instance = ben3;\n expResult = \"Kao\";\n result = instance.getNom();\n assertEquals(expResult, result);\n\n expResult = \"Tomson\";\n assertFalse(expResult.equals(result));\n }", "@Test\r\n public void testGetMaterial() {\r\n String expResult = \"Materialprueba\";\r\n articuloPrueba.setMaterial(expResult);\r\n String result = articuloPrueba.getMaterial();\r\n assertEquals(expResult, result);\r\n }", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "VarAssignment createVarAssignment();", "@Test\r\n\tpublic void test3(){\n\t \tE1.setLastName(\"LN1\");\r\n\t\tE2.setLastName(\"LN2\");\r\n\t String actual = E1.getLastName();\r\n String expected = \"LN1\";\r\n assertEquals(actual,expected);\r\n }", "public String getDirectAssignmentString() {\r\n return this.directAssignmentString;\r\n }", "public abstract boolean setValue(Value value, boolean asAssignment);", "@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "@Test\r\n public void testGetNombre() {\r\n String expResult = \"Mani\";\r\n articuloPrueba.setNombre(\"Mani\");\r\n String result = articuloPrueba.getNombre();\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n Member instance = member;\n \n String name = \"new Name\";\n instance.setName(name);\n \n String expResult = \"new Name\";\n String result = instance.getName();\n \n assertEquals(expResult,result);\n }", "private static Expression retrieveAssignExpressionValue(Expression expression) {\n return retrieveAssignExpression(expression).getValue();\n }", "@Test\n\tpublic void assignmentTask() {\n\t\tselectClass();\n\t\tnavigateTo(\"Assignments\",\"assignments\");\n\t\ttester.clickButtonWithText(\"Add\");\n\t\ttester.setWorkingForm(\"addassignment\");\n\t\ttester.setTextField(\"title\", \"Foo\");\n\t\ttester.setTextField(\"task\", \"<a href=\\\"http://unitn.it\\\">Evil Link</a>\");\n\t\ttester.setTextField(\"total\", \"10\");\n\t\ttester.setTextField(\"assigneddate\", \"1\");\n\t\ttester.setTextField(\"duedate\", \"5\");\n\t\ttester.clickButtonWithText(\"Add Assignment\");\n\t\t\n\t\ttester.assertLinkNotPresentWithText(\"Evil Link\");\n\t}", "void doSet() throws NotConnectedException\n\t{\n\t\ttry\n\t\t{\n\t\t\tValueExp exp = null;\n\n\t\t\tif (!hasMoreTokens())\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"setCommand\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\t// pull the expression\n\t\t\t\tString s = restOfLine();\n\n\t\t\t\t// parse and eval which causes the assignment to occur...\n\t\t\t\tif ( (exp = parseExpression(s)) == null )\n\t\t\t\t\t; // failed parse\n\n\t\t\t\t// make sure contains assignment\n\n\t\t\t\telse if ( !exp.containsAssignment() )\n\t\t\t\t\tthrow new IllegalAccessException(\"=\"); //$NON-NLS-1$\n\n\t\t\t\telse\n\t\t\t\t\tevalExpression(exp);\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException iae)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"operator\", iae.getMessage()); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"missingOperator\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotEvaluate\")); //$NON-NLS-1$\n\t\t}\n\t}", "public void testGetStateName() {\r\n test1 = state2;\r\n assertEquals(test1.getStateName(), \"Virginia\");\r\n }", "@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}", "public boolean isDirectAssignment() {\r\n return GrouperUtil.booleanValue(this.directAssignmentString, false);\r\n }", "public boolean equals(AssignOpType t) {\n\t\treturn this.toString().equals(t.toString());\n\t}", "public void testGet() {\n System.out.println(\"get\");\n String key = \"\";\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.get(key);\n assertEquals(expResult, result);\n }", "@Test\n public void testGetSetting() {\n System.out.println(\"getSetting\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n\n String key = s.getName();\n Setting expResult = s;\n Setting result = Setting.getSetting(key);\n assertEquals(expResult, result);\n assertEquals(s.getStype(), Setting.SETTING_TYPE.UND);\n assertEquals(\"undefined\", s.getValue());\n assertFalse(s1.equals(s));\n\n }", "@Test\r\n\tpublic void test2(){\n\t \tE1.setFirstName(\"FN1\");\r\n\t\tE2.setFirstName(\"FN2\");\r\n\t String actual = E1.getFirstName();\r\n String expected = \"FN1\";\r\n assertEquals(actual,expected);\r\n }", "public void reassignIfNeeded() {\n\t}", "abstract void assign(int i);", "@Test\n public void testGetter()\n {\n assertEquals(\"Virtus\",test.getPatterName());\n assertNotEquals(\"Fury\",test.getPatterName());\n }", "TIAssignment createTIAssignment();", "@Test\n\tpublic void testAssignGrade2() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor2\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "public Assignment getAssignment() {\r\n\r\n //Grab the assignment associated with this analysis in the API\r\n if (assignment == null) {\r\n assignment = CoMoToAPI.getAssignment(connection, id);\r\n }\r\n return assignment;\r\n }", "@Test\r\n public void test4(){\n\t E1.setSocialSecurityNumber(\"SSN1\");\r\n\t\tE2.setSocialSecurityNumber(\"SSN2\");\r\n String actual = E1.getSocialSecurityNumber();\r\n String expected = \"SSN1\";\r\n assertEquals(actual,expected);\r\n }", "@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }", "@Test\n public void testGetInstructions() {\n System.out.println(\"getInstructions\");\n \n String expResult = \"Instructions\";\n instance.setInstructions(expResult);\n String result = instance.getInstructions();\n assertEquals(\"Instructions not as expected\", expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testApplyTo() throws Exception {\r\n// System.out.println(\"applyTo\");\r\n// Expression leftOperand = new Literal(new Value(\"B1\"));\r\n// Expression rightOperand = new Literal(new Value(5));\r\n// Assignment instance = new Assignment();\r\n// Value expResult = new Value(5);\r\n// Value result = instance.applyTo(leftOperand, rightOperand);\r\n// assertEquals(expResult.toText(), result.toText());\r\n }", "private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public void assignValueToVariable(HashMap<String, String> assignment) throws\r\n\t\t\tIllegalOperationException,TypeNotSupportedException, IncompatibleTypeException{\r\n\t\tMap.Entry<String, String> data = assignment.entrySet().iterator().next();\r\n\t\tString variableName = data.getKey();\r\n\t\tString valueName = data.getValue();\r\n\t\tVariable lastAppearanceOfVar = findVariable(variableName);//we'll search a variable named variableName\r\n\t\tif(lastAppearanceOfVar==null||lastAppearanceOfVar.isFinal()){//did'nt find variableName\\ found final\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else {\r\n\t\t\t//if we did find a declared variable named variableName:\r\n\t\t\tif (lastAppearanceOfVar.compatibleWith(valueName)) {//if value's type's illegal -> exception\r\n\t\t\t\t//if we're trying, in a scope other than globalScope, to declare a variable by assigning it\r\n\t\t\t\t// with an uninitialised global variable:\r\n\t\t\t\tif((lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized())&&!scopeType\r\n\t\t\t\t\t\t.equals(\"global\")){\r\n\t\t\t\t\t//we'll check if lastAppearanceOfVar was initialised in this scope (else it's illegal):\r\n\t\t\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar, valueName);\r\n\t\t\t\t}else{ //else, the assignment's legal and we'll mark lastAppearanceOfVar as initialised:\r\n\t\t\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tassignWithReference(valueName, lastAppearanceOfVar);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n public void testSetModule() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : setModule\");\r\n String module = \"programmation\";\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setModule(module);\r\n assertEquals(module, instance.getModule());\r\n }", "protected Expr visitSettableAssign(SettableAssign n) throws SemanticException {\n Position pos = n.position();\n MethodInstance mi = n.methodInstance();\n List<Expr> args = new ArrayList<Expr>(n.index());\n if (n.operator() == Assign.ASSIGN) {\n // FIXME: this changes the order of evaluation, (a,i,v) -> (a,v,i)!\n args.add(0, n.right());\n return xnf.Call(pos, n.array(), xnf.Id(pos, mi.name()),\n args).methodInstance(mi).type(mi.returnType());\n }\n X10Binary_c.Operator op = n.operator().binaryOperator();\n X10Call left = (X10Call) n.left();\n MethodInstance ami = left.methodInstance();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(mi.container()), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, mi.container()), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n List<Expr> idx1 = new ArrayList<Expr>();\n int i = 0;\n for (Type t : ami.formalTypes()) {\n Name yn = Name.make(\"y\"+i);\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(t), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, t), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n idx1.add(xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(t));\n i++;\n }\n Name zn = Name.make(\"z\");\n Type T = mi.formalTypes().get(0);\n assert (xts.isSubtype(ami.returnType(), T, context()));\n LocalDef zDef = xts.localDef(pos, xts.Final(), Types.ref(T), zn);\n Formal z = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, zn)).localDef(zDef);\n parms.add(z);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T),\n op, xnf.Local(pos, xnf.Id(pos, zn)).localInstance(zDef.asInstance()).type(T)).type(T));\n List<Expr> args1 = new ArrayList<Expr>(idx1);\n args1.add(0, val);\n Type ret = mi.returnType();\n Expr res = xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, mi.name()), args1).methodInstance(mi).type(ret);\n // Have to create the appropriate node in case someone defines a set():void\n Block block = ret.isVoid() ?\n xnf.Block(pos, xnf.Eval(pos, res), xnf.Return(pos, xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T))) :\n xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, T, parms, block, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n args.add(0, n.array());\n args.add(n.right());\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(ret);\n }", "public boolean isPureAssignment() {\n return (commandElement() == null) && hasAssignments();\n }", "@Test\n public void testBeneZPayerAssignInd() {\n new BeneZPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissBeneZPayer.Builder::setAssignIndEnum,\n RdaFissPayer::getAssignInd,\n FissAssignmentOfBenefitsIndicator.ASSIGNMENT_OF_BENEFITS_INDICATOR_BENEFITS_ASSIGNED,\n \"Y\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissBeneZPayer.Builder::setAssignIndUnrecognized,\n RdaFissPayer::getAssignInd,\n RdaFissPayer.Fields.assignInd,\n 1);\n }", "public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }", "@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "@Test\n public void testInsuredPayerAssignInd() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setAssignIndEnum,\n RdaFissPayer::getAssignInd,\n FissAssignmentOfBenefitsIndicator.ASSIGNMENT_OF_BENEFITS_INDICATOR_BENEFITS_ASSIGNED,\n \"Y\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setAssignIndUnrecognized,\n RdaFissPayer::getAssignInd,\n RdaFissPayer.Fields.assignInd,\n 1);\n }", "private boolean onlyOneAssign(ILogicalOperator op, List<AssignOperator> assignOps) {\n if (op.getOperatorTag() == LogicalOperatorTag.ASSIGN) {\n AssignOperator aOp = (AssignOperator) op;\n assignOps.add(aOp);\n op = op.getInputs().get(0).getValue();\n }\n return (joinClause(op));\n }", "@Test\n public void testSetAddress() {\n System.out.println(\"setAddress\");\n Member instance = member;\n \n String address = \"10 New Road, Hackney, London\";\n instance.setAddress(address);\n \n String expResult = address;\n String result = instance.getAddress();\n \n assertEquals(expResult,result);\n }", "@Test\r\n public void testSetMaterial() {\r\n String expResult = \"pruebaMaterial\";\r\n articuloPrueba.setMaterial(expResult);\r\n assertEquals(expResult, articuloPrueba.getMaterial());\r\n }", "protected Element evalAssurance(Assurance ass){\n\t\tRecord r1 = ass.getLeftRecord();\n\t\tRecord r2 = ass.getRightRecord();\n\t\tOperator op = ass.getOperator();\n\t\tElement an = el(\"bpws:assign\");\n\t\tif (r1.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r1.getFormular(), \"nswomoxsd:leftValue\"));\n\t\tif (r2.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r2.getFormular(), \"nswomoxsd:rightValue\"));\n\t\tan.appendChild(\n\t\t\tsetExpr(\n\t\t\t\tgetMyVarPath(\"/nswomoxsd:leftValue\") + \n\t\t\t\top.value() +\n\t\t\t\tgetMyVarPath(\"nswomoxsd:rightValue\"),\n\t\t\t\t\"nswomoxsd:value\"\n\t\t\t)\n\t\t);\n\t\treturn an;\n\t}", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "@Test\n public void didYouEnterAnObject(){\n //arrange\n Prompter prompter = Prompter.readOnly(expectedValue);\n String result = Localization.fromPrompter(prompter);\n //act\n //assess\n assertNotNull(result);\n }", "@Test\n public void testGetFirstName() {\n System.out.println(\"getFirstName\");\n Commissioner instance = new Commissioner();\n instance.setFirstName(\"test\");\n String expResult = \"test\";\n String result = instance.getFirstName();\n assertEquals(expResult, result);\n }", "void visit(final Assignment assignment);", "@Test\r\n public void testImmutable() { \r\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n \r\n //Test the object was created\r\n Assert.assertEquals(try_scorers.getName(),\"Sharief\",\"Error names weren't the same\"); \r\n }", "@Test\n\tpublic void testSetBehandelingNaam(){\n\t\tString expResult = \"Enkel\";\n\t\tinstance.setBehandelingNaam(\"Enkel\");\n\t\tassertTrue(expResult == Behandelcode.getBehandelingNaam());\n\t}", "public void testGetAttribute() {\n String attr = \"attribute\";\n Object result = new Object();\n \n sessionControl.expectAndReturn(session.getAttribute(attr), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getAttribute(attr), result);\n }", "@Test\n public void test_getEmail() {\n String value = \"new_value\";\n instance.setEmail(value);\n\n assertEquals(\"'getEmail' should be correct.\",\n value, instance.getEmail());\n }", "@Test\n public void testCopy_2() {\n LOGGER.info(\"testCopy_2\");\n final String value = \"Hej\";\n final AtomString atomString1 = new AtomString(value);\n final AtomString atomString2 = atomString1.copy();\n assertTrue(atomString1 != atomString2);\n assertEquals(atomString1, atomString2);\n final String actual = atomString2.toString();\n final String expected = value;\n assertEquals(expected, actual);\n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public Schedule assign()\n\t{\n\t\tif(debug) System.out.println(\"Assignment started (Lecture Random)\");\n\t\tboolean valid = assignSlot(true); //assign times to Lectures\n\t\tif(debug && valid) System.out.println(\"Assignment started (Lab Random)\");\n\t\tif(valid) valid = assignSlot(false); //assign times to Labs\n\t\tif(debug && valid) System.out.println(\"Checking constraints (Random)\");\n\t\tif(valid) \n\t\t{\n\t\t\tvalid = constr(); //check the hard constraints one more time\n\t\t\tif(debug) System.out.println(child);\n\t\t}\n\t\tif (valid) child.setValue(child.eval()); //evaluate the soft constraints\n\t\t\n\t\tif(valid) \n\t\t{\n\t\t\tif(debug) System.out.println(child);\n\t\t\treturn child; //return the completed valid schedule\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(child);\n\t\t\treturn null; //invalid schedule, return nothing\n\t\t}\n\t}", "@Test\n public void testInfoCopyTest() {\n assertTestInfoSpecies(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER, new TestInfo());\n\n // Changing information other than species will not affect the copy\n testInfoCopyTest(false, new TestInfo());\n testInfoCopyTest(false, new TestInfo().attacking(AbilityNamesies.OVERGROW));\n testInfoCopyTest(false, new TestInfo().defending(AbilityNamesies.BLAZE));\n\n // Even if the default Pokemon are explicitly set, it will override the setting in the copy\n testInfoCopyTest(true, new TestInfo(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER));\n testInfoCopyTest(true, new TestInfo().attacking(PokemonNamesies.BULBASAUR));\n testInfoCopyTest(true, new TestInfo().defending(PokemonNamesies.CHARMANDER));\n }", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "@Test\n public void test_getFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'getFirstName' should be correct.\",\n value, instance.getFirstName());\n }" ]
[ "0.7350028", "0.71231973", "0.705261", "0.7011678", "0.6827373", "0.6629914", "0.65546983", "0.64881057", "0.64765775", "0.6415443", "0.6378703", "0.63757896", "0.63757896", "0.62196714", "0.6087278", "0.6068343", "0.604995", "0.6029778", "0.6008613", "0.6006936", "0.5936781", "0.59212756", "0.58861965", "0.58787763", "0.5850921", "0.5830244", "0.58284396", "0.58096206", "0.5808845", "0.58044785", "0.5790689", "0.5790368", "0.57762337", "0.5767604", "0.5758576", "0.5747933", "0.57383317", "0.5736754", "0.5733522", "0.5719956", "0.5718146", "0.5692791", "0.5684328", "0.5678615", "0.56455916", "0.5643568", "0.5632565", "0.5615549", "0.5608676", "0.559261", "0.5584857", "0.5584664", "0.55820185", "0.5580458", "0.5572943", "0.55322623", "0.55269545", "0.55233145", "0.55231005", "0.5522913", "0.5519217", "0.55183727", "0.55129725", "0.55129623", "0.55127305", "0.5507874", "0.55062556", "0.55043894", "0.5500546", "0.549943", "0.54956967", "0.5492426", "0.5491562", "0.54913205", "0.5489756", "0.54846007", "0.5483264", "0.547655", "0.54734993", "0.5470736", "0.54702115", "0.546182", "0.5455439", "0.5453357", "0.54503983", "0.5441453", "0.5429816", "0.5427894", "0.5425486", "0.54217976", "0.5420494", "0.5419057", "0.5417181", "0.5413276", "0.53930384", "0.53890306", "0.53836083", "0.53820294", "0.5375702", "0.53740305" ]
0.6894635
4
Tests updating an assignment
@Test public void updateAssignment() throws SQLException { int id = assign_hand.saveOrUpdate(test_assignment); AssignmentMsg test_am = assign_hand.getAssignment(id); test_am.setName("Not As Hard Assignment"); test_am.setEnabled(false); assertEquals("Not As Hard Assignment",test_am.getName()); id = assign_hand.saveOrUpdate(test_am); AssignmentMsg test_am2 = assign_hand.getAssignment(id); assertEquals("Not As Hard Assignment",test_am2.getName()); assertEquals(false,test_am2.isEnabled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void updateTask() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tfinal Task task = new Task(\"Task 1\", 1, 1, asgn.getID());\n\t\tasgn.addTask(task);\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\ttask.setPercentComplete(0.174);\n\t\tStorageService.updateTask(task);\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "@Test\n\tpublic void testAddAssignment() {\n\t}", "@Test \n\tpublic void testUpdateSetting() throws Exception\n\t{\n\t}", "@Test\r\n public void testUpdate() {\r\n }", "@Test\r\n public void testUpdate() {\r\n assertTrue(false);\r\n }", "@Test\n public void update() {\n }", "public void testCmdUpdate() {\n\t\ttestCmdUpdate_taskID_field();\n\t\ttestCmdUpdate_taskName_field();\n\t\ttestCmdUpdate_time_field();\n\t\ttestCmdUpdate_priority_field();\n\t}", "@Test\n public void testUpdate() {\n\n }", "@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }", "Test update(TestData testData, Test test);", "@Test\n\tpublic void testUpdateTask() {\n\t}", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Festivity object = new Festivity();\r\n object.setStart(Calendar.getInstance().getTime());\r\n object.setEnd(Calendar.getInstance().getTime());\r\n object.setName(\"Test Fest 2\");\r\n object.setPlace(\"Howards\");\r\n boolean expResult = true;\r\n boolean result = Database.update(object);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n\tpublic void updateTestPaperQuestion() throws Exception {\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "@Test\n public void testCanUpdatePublisher() {\n Publisher publisher = new Publisher();\n publisher.setName(\"Publisher\");\n publisher = publisherRepo.save(publisher);\n publisher = publisherRepo.findOne(publisher.getId());\n\n publisher.setName(\"New name\");\n publisher = publisherRepo.save(publisher);\n Publisher retrievedPublisher = publisherRepo.findOne(publisher.getId());\n assertThat(retrievedPublisher.getName(), equalTo(\"New name\"));\n }", "private void assignment() {\n\n\t\t\t}", "@Test\n void testUpdateGoalie() {\n\n }", "@Test\n public void testUpdateOrg() {\n Organization org = new Organization();\n org.setOrgId(1);\n org.setOrgName(\"Avenger\");\n org.setDescription(\"blah blah\");\n org.setAddress(ad);\n dao.addOrg(org);\n org.setOrgName(\"X-Men\");\n assertNotEquals(org, dao.getOrg(org.getOrgId()));\n Organization fromDao = dao.updateOrg(org);\n assertEquals(org, fromDao);\n }", "@Test\n\tpublic void testUpdateCombo() {\n\t}", "@Test\r\n public void testUpdateValid() throws PAException {\r\n Ii studyDiseaseIi = IiConverter.convertToStudyDiseaseIi(TestSchema.studyDiseaseIds.get(0));\r\n StudyDiseaseDTO studyDiseaseDTO = bean.get(studyDiseaseIi);\r\n Ii diseaseIi = IiConverter.convertToIi(TestSchema.pdqDiseaseIds.get(3));\r\n studyDiseaseDTO.setDiseaseIdentifier(diseaseIi);\r\n StudyDiseaseDTO result = bean.update(studyDiseaseDTO);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, result);\r\n StudyDiseaseDTO saved = bean.get(studyDiseaseIi);\r\n assertNotNull(\"No result returned\", saved);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, saved);\r\n }", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "@Test\n public void testAssignReinforcements() {\n IssueOrderPhase l_issueOrder = new IssueOrderPhase(d_gameEngine);\n l_issueOrder.d_gameData = d_gameData;\n l_issueOrder.assignReinforcements();\n d_gameData = l_issueOrder.d_gameData;\n int l_actualNoOfArmies = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n int l_expectedNoOfArmies = 8;\n assertEquals(l_expectedNoOfArmies, l_actualNoOfArmies);\n }", "@Test\n public void testUpdate() {\n int resultInt = disciplineDao.insert(disciplineTest);\n \n boolean result = false;\n \n if(resultInt > 0){\n disciplineTest.setId(resultInt);\n \n disciplineTest.setName(\"matiere_test2\");\n \n result = disciplineDao.update(disciplineTest);\n \n disciplineDao.delete(disciplineTest);\n }\n \n assertTrue(result);\n }", "@Test\n public void testUpdate() {\n System.out.println(\"update\");\n Address obj = null;\n AddressDAO instance = null;\n boolean expResult = false;\n boolean result = instance.update(obj);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testUpdateLocation() {\n\n Location loc1 = new Location();\n loc1.setLocationName(\"Mommas House\");\n loc1.setDescription(\"Like it says\");\n loc1.setAddress(\"123 nunya Ave\");\n loc1.setCity(\"Hometown\");\n loc1.setLatitude(123.456);\n loc1.setLongitude(123.456);\n\n locDao.addLocation(loc1);\n\n loc1.setLocationName(\"Poppas House\");\n\n locDao.updateLocation(loc1);\n\n Location testLoc = locDao.getLocationById(loc1.getLocationId());\n\n assertEquals(loc1, testLoc);\n\n }", "@Test\n void updateSuccess() {\n String newEventName = \"Coffee meeting\";\n Event eventToUpdate = (Event)genericDao.getById(5);\n eventToUpdate.setName(newEventName);\n genericDao.saveOrUpdate(eventToUpdate);\n Event retrievedEvent = (Event)genericDao.getById(5);\n assertEquals(eventToUpdate, retrievedEvent);\n }", "@Test\n void updateSuccess() {\n String newDescription = \"December X-Large T-Shirt\";\n Order orderToUpdate = dao.getById(3);\n orderToUpdate.setDescription(newDescription);\n dao.saveOrUpdate(orderToUpdate);\n Order retrievedOrder = dao.getById(3);\n assertEquals(newDescription, retrievedOrder.getDescription());\n\n String resetDescription = \"February Small Long-Sleeve\";\n Order orderToReset = dao.getById(3);\n orderToUpdate.setDescription(resetDescription);\n dao.saveOrUpdate(orderToReset);\n }", "@Test\n\tpublic void testGetAllAssignments() throws SQLException\n\t{\n//\t\tfail(\"NEVER RUIN THE DATABASE IN A TEST!!!! Whoever wrote this needs to make a real test\");\n//\t\tString q = \"TRUNCATE TABLE assignment\";\n//\t\tPreparedStatement p = assign_hand.getConn().prepareStatement(q);\n//\t\tp.executeQuery();\n//\t\t\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment\",true);\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment 2\",false);\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment 3\",true);\n//\t\tArrayList<AssignmentMsg> test_am_list = assign_hand.getAllAssignments(true);\n//\t\tArrayList<AssignmentMsg> test_am_list2 = assign_hand.getAllAssignments();\n//\t\t\n//\t\tassertEquals(2,test_am_list.size());\n//\t\tassertEquals(3,test_am_list2.size());\n\t\tassertEquals(2, this.assign_hand.getAllAssignments().size());\n\t}", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "@Test\n void updateSuccess() {\n String newFirstName = \"Artemis\";\n User userToUpdate = (User) dao.getById(1);\n userToUpdate.setFirstName(newFirstName);\n dao.saveOrUpdate(userToUpdate);\n User userAfterUpdate = (User) dao.getById(1);\n assertEquals(newFirstName, userAfterUpdate.getFirstName());\n }", "public Boolean update(Test c) \n\t{\n\t\t\n\t\treturn true;\n\t}", "@Test\n\tpublic void testUpdateTicketOk() {\n\t}", "@Test\n public void shouldUpdatePayment() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n String location = getLocationHeader(response);\n\n //and: a modified version of that payment:\n String newOrganisationId = \"newOrganisationId\";\n testPaymentAsObject.setOrganisationId(newOrganisationId);\n String newJson = gson.toJson(testPaymentAsObject);\n\n //when: the payment is updated:\n HttpEntity<String> putEntity = getHttpEntityForTestRequest(newJson);\n ResponseEntity putResponse = restTemplate.exchange(location, HttpMethod.PUT, putEntity, String.class);\n //then: the response status code should be 'no content'\n assertEquals(HttpStatus.OK, putResponse.getStatusCode());\n\n //when: the payment is fetched following the update:\n Payment updatedPayment = restTemplate.getForEntity(location, Payment.class).getBody();\n\n //then: the data should have been modified:\n assertEquals(\"newOrganisationId\", updatedPayment.getOrganisationId());\n }", "@Test\n void updateSuccess() {\n RunCategory categoryToUpdate = (RunCategory) dao.getById(2);\n categoryToUpdate.setCategoryName(\"New Name\");\n dao.saveOrUpdate(categoryToUpdate);\n RunCategory categoryAfterUpdate = (RunCategory) dao.getById(2);\n assertEquals(categoryToUpdate, categoryAfterUpdate);\n }", "@Test\r\n\tpublic void testPortfolioValueUpdate1() {\n\t\tassertTrue(\"Portfolio value must reflect current data\", false);\r\n\t}", "@Test\n public void updateShift() {\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n Shift updated = new Shift(4, 2, 2, 2);\n assertTrue(shiftResource.updateShift(updated));\n\n //clean up\n shiftDAO.removeShift(updated.getShift_id());\n }", "@Test\r\n public void testUpdate() {\r\n TestingTypeList test = new TestingTypeList();\r\n test.addTestingType(\"TestType\", \"test\");\r\n TestingType testValue = test.getTestingTypeAt(0);\r\n test.update(testValue, testValue);\r\n TestingType notInList = new TestingType(\"NotInList\", \"notinlist\", \"notinlist\");\r\n test.update(notInList, notInList);\r\n assertEquals(1, test.size());\r\n }", "@Test\n public void updateShiftCatch() {\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n Shift updated = new Shift(5, 2, 2, 2);\n assertFalse(shiftResource.updateShift(updated));\n\n //clean up\n shiftDAO.removeShift(dummy.getShift_id());\n }", "@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }", "@Test\r\n public void testUpdateEmployee1() throws Exception {\r\n try {\r\n\r\n int employee_id = 0;\r\n int department_id = 1;\r\n int position_id = 1;\r\n int status = 1;\r\n String date = \"\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n boolean expResult = false;\r\n boolean result = instance.updateEmployee(employee_id, department_id, position_id, status, date);\r\n assertEquals(expResult, result);\r\n } catch (Exception ex) {\r\n assertTrue(ex.getMessage().contains(\"Wrong Required Parameters\"));\r\n }\r\n }", "@Test\n public void testUpdateCar() {\n\n }", "@Test\n public void updateById() {\n User user = new User();\n user.setId(1259474874313797634L);\n user.setAge(30);\n boolean ifUpdate = user.updateById();\n System.out.println(ifUpdate);\n }", "@Test\n void updateTest() {\n admin.setSurname(\"Rossini\");\n Admin modifyied = adminJpa.update(admin);\n assertEquals(\"Rossini\", modifyied.getSurname());\n }", "@Test\n\tpublic void testUpdateLabel() {\n\t\tList<Label> label1 = null;\n\t\tString emailId = \"pratikshatamadalge21@gmail.com\";\n\t\tString labelName = \"7 wonders in world....\";\n\n\t\twhen(labelRepository.findByEmailId(emailId)).thenReturn(label1);\n\t\tlabel.setLabelName(\"7 wonders in world....\");\n\t\twhen(labelRepository.save(label)).thenReturn(label);\n\t\tassertEquals(label.getLabelName(), labelName);\n\t}", "@Test\n public void updateContact() {\n }", "@Test\n public void testUpdatePositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n\n item.setType(ItemTypes.NON_ALCOHOLIC_BEVERAGE);\n itemDao.update(item);\n\n Item itemDB = itemDao.read(item.getName());\n Assert.assertEquals(itemDB, item);\n }", "@Test\n void updateSuccess() {\n String Vin = \"1111111111111111X\";\n Car carToUpdate = carDao.getById(1);\n carToUpdate.setVin(Vin);\n carDao.saveOrUpdate(carToUpdate);\n Car retrievedCar = carDao.getById(1);\n assertEquals(carToUpdate, retrievedCar);\n }", "@Test\n public void updateTest() {\n reservation3.setId(13L);\n reservation3.setReserveDate(LocalDate.now().plusDays(2));\n reservationService.update(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).update(reservation3);\n }", "@Test @Ignore\n\tpublic void testUpdate() {\n\t\tlog.info(\"*** testUpdate ***\");\n\t}", "@Test\r\n\tpublic void testPortfolioValueUpdate2() {\n\t\tassertTrue(\"Portfolio value must reflect current data\", false);\r\n\t}", "int updateByPrimaryKey(IymDefAssignment record);", "@Test\n public void test_getFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'getFirstName' should be correct.\",\n value, instance.getFirstName());\n }", "@Test\n public void updateDecline() throws Exception {\n }", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "@Test\n @Ignore\n public void testUpdate() {\n System.out.println(\"update\");\n Index entity = null;\n IndexDaoImpl instance = null;\n Index expResult = null;\n Index result = instance.update(entity);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testAccountSetPassword() {\n try {\n Account newAcc = new Account(1, \"holder\", \"holder\", Credential.ADMIN);\n newAcc.setPassword(\"newPasswordForHolder\");\n Assert.assertEquals(\"Incorrect updated password for account after changing\",\n \"newPasswordForHolder\", newAcc.getPassword());\n } catch (Exception e) {\n Assert.fail(\"Set account password should not have failed here\");\n e.printStackTrace();\n }\n }", "@Test\npublic void testUpdateAStudentInformation() {\n//TODO: Test goes here...\n System.out.println(StudentDao.updateAStudentInformation(1006, \"6\", 99, 99, 99));\n}", "@Test\n public void test() throws Exception{\n update(\"update user set username=? where id=?\",\"wangjian\",\"4\");\n }", "@Test\n\tpublic void testAssignGrade2() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor2\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "@Test\n public void shouldUpdateTheSpezifiedValidRoomAndPersistTheChanges()\n\t throws Exception {\n\n\tfinal ArrayList<String> newValidValues = Lists.newArrayList(\"Hilton\",\n\t\t\"Hamburg\", \"2\", \"N\", \"12\", \"12.02.2007\", \"\");\n\n\tfinal UpdateRoomCommand command = new UpdateRoomCommand(newValidValues,\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\twhen(builder.createRoomOffer(newValidValues, validRoomOffer.getIndex()))\n\t\t.thenReturn(validRoomOffer);\n\n\tfinal UrlyBirdRoomOffer updatedRoomOffer = roomOfferService\n\t\t.updateRoomOffer(command);\n\n\tverify(dao).lock(validRoomOffer.getIndex());\n\tverify(dao).unlock(eq(validRoomOffer.getIndex()), anyLong());\n\tverify(dao).update(eq(validRoomOffer), anyLong());\n\tassertThat(updatedRoomOffer, is(equalTo(validRoomOffer)));\n }", "@Test\n public void updateTaskAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n Task updatedTask = new Task(\"title2\", \"description2\", \"id\", true);\n mDatabase.taskDao().updateTask(updatedTask);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, \"id\", \"title2\", \"description2\", true);\n }", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n String doc = \"\";\r\n String xml = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.update(doc, xml);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n\tpublic void testModifyQuestion() {\n\t\tQnaQuestion question = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\n\t\tquestion.setQuestionText(\"Testing update\");\n\n\t\t// Test with invalid permissions\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_NO_UPDATE;\n\t\t\tquestionLogic.saveQuestion(question,LOCATION1_ID);\n\t\t\tAssert.fail(\"Should have thrown exception\");\n\t\t} catch (SecurityException e) {\n\t\t\tAssert.assertNotNull(e);\n\t\t} \n\n\t\t// Test with valid permission\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_UPDATE;\n\t\t\tquestionLogic.saveQuestion(question,LOCATION1_ID);\n\t\t\tQnaQuestion changedQuestion = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\t\t\tAssert.assertEquals(changedQuestion.getQuestionText(), \"Testing update\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Should not have thrown exception\");\n\t\t}\n\t}", "@org.junit.Test\n public void updatePipe() {\n Pipe pipe = new Pipe(100, 400);\n pipe.updateEntity();\n\n int x = (int)pipe.getX();\n\n assertEquals(90, x);\n }", "private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@DisplayName(\"Updating an entry if it exists\")\n\t@Test\n\tpublic void setEntryWithNewNoOfCopies() throws SQLException {\n\t\tfinal int newNoOfCopies = 100;\n\t\tfinal int previousSize = copiesDaoImpl.findAll().size();\n\t\tcopiesDaoImpl.setCopies(testBranch, testBook, newNoOfCopies);\n\t\tfinal int currentSize = copiesDaoImpl.findAll().size();\n\t\tfinal int foundNoOfCopies = copiesDaoImpl.getCopies(testBranch, testBook);\n\n\t\tassertEquals(previousSize, currentSize,\n\t\t\t\t\"changing number of copies doesn't create new record\");\n\t\tassertEquals(newNoOfCopies, foundNoOfCopies,\n\t\t\t\t\"change to number of copies propagated to database\");\n\t}", "@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "@Test\r\n\tpublic final void testUpdateRoom() {\n\t\tboolean success = roomServices.addRoom(expected2);\r\n\t\t// check if added successfully\r\n\t\tassertTrue(success);\r\n\t\t// need to copy the id from database since it autoincrements\r\n\t\tRoom copy = roomServices.getRoomByName(expected2.getName());\r\n\t\texpected3.setId(copy.getId());\r\n\t\t// set new data\r\n\t\tcopy.setName(expected3.getName());\r\n\t\tcopy.setLocation(expected3.getLocation());\r\n\t\t// update database\r\n\t\tsuccess = roomServices.updateRoom(copy);\r\n\t\tassertTrue(success);\r\n\t\t// need to copy the current version from database\r\n\t\tRoom actual = roomServices.getRoomById(expected2.getId());\r\n\t\t// check content of data\r\n\t\tassertEquals(expected3, actual);\r\n\t\t// delete room on exit\r\n\t\troomServices.deleteRoom(actual);\r\n\t}", "public void testEditValue() throws Exception, Throwable {\n System.out.println(\"editValue\");\n Builder builder = new Builder();\n Document document = builder.build(this.doc, \"\");\n String issueId = \"http://linkedgov.org/data/dwp-electricity-use/1/issue/1\";\n Document out = (Document) PrivateAccessor.invoke(TaskUpdater.class,\n \"editValue\",\n new Class[] {Document.class, String.class, String.class, String.class},\n new Object[] {(Document) document.copy(), issueId, \"99.50\", null});\n \n Model main = (Model) PrivateAccessor.invoke(TaskUpdater.class,\n \"getMainGraphFromDocument\",\n new Class[] {Document.class},\n new Object[] {out});\n assertEquals(2, main.size());\n }", "public void updateAssignment(Assignment assignment) throws Exception {\n\n\t\ttry{ \n\t\t\tContentValues dataToInsert = new ContentValues(); \n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_TITLE,assignment.getTitle());\n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_SUBJECTS, assignment.getSubjects_id());\n\t\t\tif(assignment.getDescription()==null||assignment.getDescription().equals(\"\")){\n\t\t\t\tdataToInsert.putNull(MySQLiteHelper.ASSIGNMENT_DESCRIPTION);\n\t\t\t}else{\n\t\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_DESCRIPTION, assignment.getDescription());\n\t\t\t}\n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_DUEDATE, assignment.getDueDate());\n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_DUETIME, assignment.getDueTime());\n\t\t\tif(assignment.getAlarm()==null||assignment.getAlarm().equals(\"\")){\n\t\t\t\tdataToInsert.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\t\t\t}else{\n\t\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_ALARM, assignment.getAlarm());\n\t\t\t}\n\t\t\tString where = MySQLiteHelper.ASSIGNMENT_ID + \"=\" + assignment.getId();\n\n\t\t\tdatabase.update(MySQLiteHelper.TABLE_ASSIGNMENT, dataToInsert, where, null);\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "public abstract boolean setValue(Value value, boolean asAssignment);", "@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }", "@Test\n @WithMockUser(username=\"supervisor_admin\",roles={\"PM\",\"ADMIN\"})\n public void shouldUpdateAssessmentRubric() throws Exception {\n\n // Creating Rubric object using test values\n String rubricTitle = \"test_rubric_title\";\n int rubricRank = 4;\n boolean rubricIsEnabled = true;\n\n AssessmentRubric rubricObject = new AssessmentRubric();\n rubricObject.setTitle(rubricTitle);\n rubricObject.setStarting_date_time(LocalDateTime.now());\n rubricObject.setEnd_date_time(LocalDateTime.now());\n rubricObject.setEnabled(rubricIsEnabled);\n rubricObject.setRank(rubricRank);\n\n rubricObject.setRubricType(getMockTestRubricType());\n rubricObject.setLearningProcess(getMockTestLearningProcess());\n\n // Creating process JSON\n byte[] rubricJSON = this.mapper.writeValueAsString(rubricObject).getBytes();\n\n // invoke Create\n MvcResult resultInsert = mvc.perform(post(BASE_URL).content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle)))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank)))\n .andExpect(jsonPath(\"$.enabled\", is(rubricIsEnabled)))\n .andReturn();\n\n\n AssessmentRubric rubricUpdatable = this.mapper.readValue(resultInsert.getResponse().getContentAsByteArray(), AssessmentRubric.class);\n // Update the inserted AssessmentRubric\n rubricUpdatable.setTitle(rubricTitle +\" updated\");\n rubricUpdatable.setRank(rubricRank +1 );\n rubricUpdatable.setEnabled(!rubricIsEnabled);\n\n rubricJSON = this.mapper.writeValueAsString(rubricUpdatable).getBytes();\n\n // UPDATE: Operation\n MvcResult resultUpdate = mvc.perform(put(BASE_URL+\"/\"+rubricUpdatable.getId())\n .content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").exists())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle +\" updated\")))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank + 1)))\n .andExpect(jsonPath(\"$.enabled\", is(!rubricIsEnabled)))\n .andReturn();\n\n\n }", "@Test\n public void test_getLastName() {\n String value = \"new_value\";\n instance.setLastName(value);\n\n assertEquals(\"'getLastName' should be correct.\",\n value, instance.getLastName());\n }", "@Test\n\tpublic void testManualUpdate(){\n\tconditions = new CurrentConditionsDisplay(weatherData);\n\tweatherData.setMeasurements(75, 75, 75);\n\t//And: The data in what it is observing is updated\n\t//When: The CurrentConditionsDisplay is notified\n\t//Then: It should display the new measurements\n\t//See console for output\n\t}", "@Test\n public void organisationEqualsWorks() {\n Organisation organisation = new Organisation();\n organisation.setName(\"Name\");\n organisation.setVertecId(1L);\n organisation.setFullAddress(\"Building, Street_no Street, City, ZIP, Country\");\n organisation.setActive(true);\n organisation.setWebsite(\"website.net\");\n organisation.setOwnerId(2L);\n\n\n Organisation org2 = new Organisation();\n org2.setName(\"Name\");\n org2.setVertecId(1L);\n org2.setBuildingName(\"Building\");\n org2.setStreet_no(\"Street_no\");\n org2.setStreet(\"Street\");\n org2.setCity(\"City\");\n org2.setZip(\"ZIP\");\n org2.setCountry(\"Country\");\n org2.setActive(true);\n org2.setWebsite(\"website.net\");\n org2.setOwnerId(2L);\n\n System.out.println(organisation.toJsonString());\n System.out.println(org2.toJsonString());\n\n assertTrue(organisation.equalsForUpdateAssertion(org2));\n }", "@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description = \"edited description\";\n\n if (result != null) {\n testEntity.setName(name);\n testEntity.setCheck(check);\n testEntity.setDescription(description);\n instance.update(testEntity);\n\n Optional<TestEntity> optionalTestEntity = instance.getById(TestEntity.class, testEntity.getId());\n assertTrue(optionalTestEntity.isPresent());\n\n if (optionalTestEntity.isPresent()) {\n TestEntity entity = optionalTestEntity.get();\n\n assertEquals(entity.getName(), name);\n assertEquals(entity.getDescription(), description);\n assertEquals(entity.isCheck(), check);\n } else {\n fail();\n }\n } else {\n fail();\n }\n }", "@Test\r\n\tpublic void testUpdateQuantity() throws IdNotContainedException { \r\n\t\tint initialQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t int expectedQuantity = 2;\r\n\t processOrder.updateItemQuantity(currentOrder);\r\n\t int actualQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t String message =\"Value updated succesfully\";\r\n\t\tassertEquals(message, actualQuantity, expectedQuantity ); \r\n assertTrue(actualQuantity > initialQuantity); //make sure that when updating the value has increased\r\n\r\n\t}", "@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }", "@Test\n public void updateCoffee() {\n Roaster roaster = new Roaster();\n roaster.setName(\"Roaster 1\");\n roaster.setStreet(\"123 Test Lane\");\n roaster.setCity(\"Crossvile\");\n roaster.setState(\"TN\");\n roaster.setPostal_code(\"38555\");\n roaster.setPhone(\"9312005591\");\n roaster.setEmail(\"roaster1@gmail.com\");\n roaster.setNote(\"Test Note for Roaster 1\");\n roaster = roasterDao.addRoaster(roaster);\n\n // Create and add coffee to the database\n Coffee coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Regular\");\n coffeeDao.addCoffee(coffee);\n\n // Update the values of coffee\n coffee.setName(\"Updated Name\");\n coffee.setCount(12);\n coffee.setUnit_price(new BigDecimal(\"13.00\"));\n coffee.setDescription(\"Light Roast\");\n coffee.setType(\"Foreign\");\n coffeeDao.updateCoffee(coffee);\n\n // Create a copy of the new coffee\n Coffee coffeeCopy = coffeeDao.getCoffee(coffee.getCoffee_id());\n\n // Test that coffee and coffeeCopy are equal\n assertEquals(coffee, coffeeCopy);\n }", "@Test \n\tpublic void edit() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test\n public void test2Update() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.update(spec2,\"teleinformatica\"),1); \n }", "@Test\n\tpublic void testSetPositionWithoutUpdate() {\n\t}", "@Test\r\n public void testUpdate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(recordDao.findActivityRecord(record.getId()));\r\n\r\n record.setDistance(15);\r\n record.setTime(20L);\r\n recordDao.update(record);\r\n\r\n ActivityRecord recordFound = recordDao.findActivityRecord(record.getId());\r\n assertEquals(recordFound.getDistance(), new Integer(15));\r\n assertEquals(recordFound.getTime(), new Long(20));\r\n }", "int updateByExample(@Param(\"record\") IymDefAssignment record, @Param(\"example\") IymDefAssignmentExample example);", "@SmallTest\n public void testUpdate() {\n int result = -1;\n if (this.entity != null) {\n Settings settings = SettingsUtils.generateRandom(this.ctx);\n settings.setId(this.entity.getId());\n\n result = (int) this.adapter.update(settings);\n\n Assert.assertTrue(result >= 0);\n }\n }", "@Test\n public void test_getEmail() {\n String value = \"new_value\";\n instance.setEmail(value);\n\n assertEquals(\"'getEmail' should be correct.\",\n value, instance.getEmail());\n }", "@Test\n @Commit\n public void dynamicUpdateContent(){\n }", "private void assignIntoGrade() {\n }", "@Test\n\tpublic void testUpdateShare() {\n\t\tLong id = 1L;\n\t\tShare newShare = new Share(\"Vodafone\", 200, 1.5);\n\t\tOptional<Share> optionalShare = Optional.of(new Share(id, \"Barclays\", 1000, 2));\n\t\tShare updatedShare = new Share(id, newShare.getName(), newShare.getAmount(), newShare.getPrice());\n\n\t\t// Telling mocked repository what to do\n\t\tMockito.when(this.repo.findById(id)).thenReturn(optionalShare);\n\t\tMockito.when(this.repo.save(updatedShare)).thenReturn(updatedShare);\n\n\t\t// Test\n\t\tassertThat(this.service.updateShare(id, newShare)).isEqualTo(updatedShare);\n\t\tMockito.verify(this.repo, Mockito.times(1)).findById(id);\n\t\tMockito.verify(this.repo, Mockito.times(1)).save(updatedShare);\n\t}", "private static boolean checkForUpdateAssignExpression(MethodDeclaration user, MethodDeclaration recursive, Expression userExpression, Expression recursiveExpression) {\n AssignExpr userAssign = retrieveAssignExpression(userExpression);\n AssignExpr recursiveAssign = retrieveAssignExpression(recursiveExpression);\n\n if (compareAssignOperator(userAssign, recursiveAssign)) {\n return true;\n }\n if (!compareElementContent(user, recursive, retrieveStringExpression(userAssign.getTarget()),\n retrieveStringExpression(recursiveAssign.getTarget()))) {\n return true;\n }\n if (checkDifferentMetaModel(userAssign.getValue(), recursiveAssign.getValue())) {\n return true;\n }\n if (userAssign.getValue().isBinaryExpr()) {\n return checkForUpdateBinaryExpression(user, recursive, userAssign.getValue(), recursiveAssign.getValue());\n }\n return checkForUpdateElementContent(user, recursive, userExpression, recursiveExpression);\n }", "@Test\r\n public void testUpdateWithSameId() throws PAException {\r\n thrown.expect(PAException.class);\r\n thrown.expectMessage(\"Redundancy error: this trial already includes the selected disease. \");\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(TestSchema.studyProtocolIds.get(0));\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n assertEquals(\"Wrong number of StudyDisease found\", 2, dtoList.size());\r\n StudyDiseaseDTO studyDiseaseDTO0 = dtoList.get(0);\r\n StudyDiseaseDTO studyDiseaseDTO1 = dtoList.get(1);\r\n studyDiseaseDTO1.setDiseaseIdentifier(studyDiseaseDTO0.getDiseaseIdentifier());\r\n bean.update(studyDiseaseDTO1);\r\n }", "public void testUpdateExistingAuthor() {\r\n //given\r\n /*System.out.println(\"updateExistingAuthor\");\r\n int authorID = 31;\r\n String newDescription = \"\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n boolean expResult = true;\r\n \r\n //when \r\n boolean result = instance.updateExistingAuthor(authorID, newDescription);\r\n \r\n //then\r\n assertEquals(expResult, result);*/ \r\n }", "@Test\n public void testUpdateAddress() {\n System.out.println(\"updateAddress\");\n String address = \"Sortegade 10\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(\"Gert Hansen\", \"Grønnegade 12\", \"98352010\");\n instance.updateAddress(customerID, address);\n assertEquals(\"Sortegade 10\", instance.getCustomer(customerID).getAddress());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "int updateByPrimaryKeySelective(IymDefAssignment record);", "@Then(\"^Password should be updated$\")\n public void password_should_be_updated() throws Throwable {\n changepassword.verifyPasswordIsSuccessfull(\"Success\",\"Congratulations!\",\"You have successfully updated your password.\");\n changepassword.closeSuccessPwdUpdate();\n\n /* long numeric=Test.faker.number().randomNumber(2,true);\n PropertyReader.dynamicWriteTestDataOf(\"change_password\",PropertyReader.dynamicReadTestDataOf(\"new_Password\"));\n PropertyReader.dynamicWriteTestDataOf(email,PropertyReader.dynamicReadTestDataOf(\"new_Password\"));\n\n PropertyReader.dynamicWriteTestDataOf(\"new_Password\",\"update\"+numeric+\"@123\");\n PropertyReader.dynamicWriteTestDataOf(\"confirm_new_Password\",\"update\"+numeric+\"@123\");\n */\n }", "@Test\n public void testUpdate() throws Exception {\n String theTaskId = \"999\";\n String query = String.format(\"select empId from %s.%s where taskId = '%s'\",\n tableSchema.schemaName, TASK_TABLE_NAME, theTaskId);\n\n TestConnection connection = methodWatcher.getOrCreateConnection();\n connection.setAutoCommit(false);\n\n // insert good data\n PreparedStatement ps = methodWatcher.prepareStatement(\n String.format(\"insert into %s.%s (taskId, empId, startedAt, finishedAt) values (?,?,?,?)\",\n tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, theTaskId);\n ps.setInt(2, 101);\n ps.setInt(3, 0600);\n ps.setInt(4, 0700);\n int rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n\n ResultSet rs = connection.createStatement().executeQuery(query);\n rs.next();\n Assert.assertEquals(101, rs.getInt(1));\n Assert.assertFalse(\"Only one row expected.\", rs.next());\n\n ps = methodWatcher.prepareStatement(\n String.format(\"update %s.%s set empId = ? where taskId = ?\", tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setInt(1, 102);\n ps.setString(2, theTaskId);\n rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n\n rs = connection.createStatement().executeQuery(query);\n rs.next();\n Assert.assertEquals(102, rs.getInt(1));\n Assert.assertFalse(\"Only one row expected.\", rs.next());\n }" ]
[ "0.67563164", "0.6727269", "0.6608498", "0.6606295", "0.6606067", "0.65052354", "0.6480693", "0.64572114", "0.64413464", "0.64128095", "0.64076287", "0.63611984", "0.63430846", "0.63418514", "0.62938315", "0.62737876", "0.6266675", "0.62559354", "0.62403387", "0.62312806", "0.62216735", "0.62182534", "0.6178889", "0.61368906", "0.6125029", "0.6113268", "0.60760427", "0.60618716", "0.60567707", "0.6017554", "0.6007837", "0.6006479", "0.5996894", "0.59844375", "0.59804225", "0.59798956", "0.5972397", "0.59698987", "0.5965246", "0.5961576", "0.5954664", "0.59525734", "0.5950809", "0.5936752", "0.59237546", "0.5900283", "0.58989644", "0.5894871", "0.58909583", "0.58777696", "0.5871292", "0.5863985", "0.58445275", "0.5830822", "0.5820681", "0.5819101", "0.5813329", "0.5805761", "0.5804403", "0.58014435", "0.5801146", "0.58001196", "0.5796931", "0.57864743", "0.57750726", "0.5764692", "0.5762378", "0.57577837", "0.5751088", "0.5739902", "0.57366794", "0.572979", "0.5729752", "0.5728588", "0.57280236", "0.5721934", "0.57120544", "0.57115024", "0.57106227", "0.57054085", "0.5698015", "0.5690704", "0.56903183", "0.5675058", "0.56733274", "0.56689346", "0.56686646", "0.5661392", "0.5661339", "0.5659791", "0.56545585", "0.5649099", "0.56483376", "0.56475943", "0.5646303", "0.56461364", "0.56451285", "0.5643459", "0.56418395", "0.56253344" ]
0.75704455
0
make sure that we can get the ID if the assignment name exists and that zero is returned if it doesn't
@Test public void testGetAssignmentID() { AssignmentHandler ah = new AssignmentHandler(); assertEquals(1,ah.getAssignmentID("testAssignment")); assertEquals(2,ah.getAssignmentID("Assignment2")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "public Assignment getCertainAssignment(long assignment_id) throws Exception{\n\n\t\tboolean found = false;\n\t\tAssignment data_found = new Assignment();\n\t\tString where = MySQLiteHelper.ASSIGNMENT_ID + \"=\"\n\t\t\t\t+ assignment_id;\n\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where, null, null, null, null);\n\n\t\t\tif(cursor.moveToFirst()){\n\t\t\t\tfound = true;\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tdata_found = data_assignment;\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tcursor.close();\n\n\t\t\tif(found == true)\n\t\t\t\treturn data_found;\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\n public void findAssignment_AssignmentExists_ShouldReturnAssignment() throws Exception {\n when(service.findById(1L)).thenReturn(Optional.of(RENTOKIL));\n\n // When we request the assignment with id 1\n final String response = mockMvc.perform(get(ENDPOINT + \"/1\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we get the requested assignment\n assertEquals(RENTOKIL, objectMapper.readValue(response, Assignment.class));\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "java.lang.String getID();", "public long createAssignment(Assignment assignment) {\n long id = -1;\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues assignmentContentValues = new ContentValues();\n assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_TITLE,\n assignment.getAssignmentTitle());\n assignmentContentValues.put(Config.COLUMN_COURSE_ID,\n assignment.getCourseID());\n assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_GRADE,\n assignment.getGrade());\n\n try {\n id = db.insert(Config.TABLE_NAME_ASSIGNMENT,\n null, assignmentContentValues);\n } catch (SQLException e) {\n Log.d(TAG, \"Exception: \" + e.getMessage());\n Toast.makeText(context,\n \"Operation Failed: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n } finally {\n db.close();\n }\n return id;\n }", "public int getAssignmentIndex(String name) {\n for (int i = 0; i < assignments.size(); i++) {\n \tif (name.equals(assignments.get(i).getName())) return i;\n }\n \treturn -1;\n }", "String getExistingId();", "public int employeeId(String employeeName) {\n\n int idOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n idOfEmployee = idField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The ID assigned to this employee is: \");\n return idOfEmployee;\n }", "public String getAssignid() {\n return assignid;\n }", "int getAId();", "private String getAccessSetID(final String _accessset) {\n String ID = null;\n SearchQuery query = new SearchQuery();\n try {\n query.setQueryTypes(\"Admin_Access_AccessSet\");\n query.addWhereExprEqValue(\"Name\", _accessset);\n query.addSelect(\"ID\");\n query.executeWithoutAccessCheck();\n if (query.next()) {\n ID = query.get(\"ID\").toString();\n } else {\n LOG.error(\"Cant't find the ID of the AccessSet for: \" + _accessset);\n }\n } catch (EFapsException e) {\n LOG.error(\"getAccessSetID(String)\", e);\n }\n return ID;\n\n }", "String getEmptyId();", "public final void rule__OperandName__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:15379:1: ( ( ( rule__OperandName__IdAssignment_0_1 ) ) )\r\n // InternalGo.g:15380:1: ( ( rule__OperandName__IdAssignment_0_1 ) )\r\n {\r\n // InternalGo.g:15380:1: ( ( rule__OperandName__IdAssignment_0_1 ) )\r\n // InternalGo.g:15381:2: ( rule__OperandName__IdAssignment_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOperandNameAccess().getIdAssignment_0_1()); \r\n }\r\n // InternalGo.g:15382:2: ( rule__OperandName__IdAssignment_0_1 )\r\n // InternalGo.g:15382:3: rule__OperandName__IdAssignment_0_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__OperandName__IdAssignment_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOperandNameAccess().getIdAssignment_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "java.lang.String getIdentifier();", "static Integer generateID() {\n int count = 0;\n for (int i = 1; i-1 <= setOfAssignedIDs.size(); i++) {\n count++;\n if (setOfAssignedIDs.size() == 0) {\n return 1;\n }\n\n else if (setOfAssignedIDs.contains(i)) {\n continue;\n }\n\n else {\n return count;\n }\n\n }\n return count;\n }", "private int readId(String playerName) {\n int id = -1;\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"SELECT id FROM \" + tablePrefix + \"users WHERE user = ?\");\n statement.setString(1, playerName);\n id = readInt(statement);\n }\n catch (SQLException ex) {\n printErrors(ex);\n }\n\n return id;\n }", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "@Test\r\n public void testGetIdentifier() {\r\n System.out.println(\"getIdentifier\");\r\n Assignment instance = new Assignment();\r\n String expResult = \":=\";\r\n String result = instance.getIdentifier();\r\n assertEquals(expResult, result);\r\n }", "public Assignment getAssignment() {\r\n\r\n //Grab the assignment associated with this analysis in the API\r\n if (assignment == null) {\r\n assignment = CoMoToAPI.getAssignment(connection, id);\r\n }\r\n return assignment;\r\n }", "String getID();", "String getID();", "String getID();", "String getID();", "int getIdentifier();", "@Override\n\tpublic String findId(String name) throws Exception {\n\t\treturn null;\n\t}", "@Test\n\tpublic void getAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\t\t\n\t\tassertEquals(\"Super Ultra Hard Assignment\",test_am.getName());\n\t\tassertEquals(true,test_am.isEnabled());\n\n\t}", "java.lang.String getAoisId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "Integer getID();", "Integer getID();", "String getIdNumber();", "public static Integer safeToUse(Integer empID) {\n\n if (IDFactory.setOfAssignedIDs.contains(empID) || empID <= 0){\n empID = IDFactory.generateID();\n IDFactory.setOfAssignedIDs.add(empID);\n return empID;\n }\n\n else {\n IDFactory.setOfAssignedIDs.add(empID);\n return empID;\n }\n }", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "int getAid();", "private static int getComponentIdFromCompName(String compName){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}", "public final void rule__AstAssignParameter__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23009:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23011:1: RULE_ID\n {\n before(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstAssignParameter__NameAssignment_046110); \n after(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public ID getID() {\n // If it is incomplete, there's no meaningful ID that we can return.\n if (gid == null || pid == null) {\n return null;\n }\n\n try {\n String hashValue = getAdvertisementType() + gid.getUniqueValue().toString() + pid.getUniqueValue().toString();\n byte[] seed = hashValue.getBytes(\"UTF-8\");\n\n return IDFactory.newContentID(gid, seed, new ByteArrayInputStream(seed));\n } catch (Exception failed) {\n return null;\n }\n }", "public final void rule__XVariableDeclaration__NameAssignment_2_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:18631:1: ( ( ruleValidID ) )\r\n // InternalDroneScript.g:18632:2: ( ruleValidID )\r\n {\r\n // InternalDroneScript.g:18632:2: ( ruleValidID )\r\n // InternalDroneScript.g:18633:3: ruleValidID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleValidID();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}", "public int getId(String name){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tif(myGraph[i].name.compareToIgnoreCase(name) == 0){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "String getModID();", "String getModID();", "public String getAssignmentName() {\n return this.assignmentName;\n }", "public final void rule__BaseStiffnessExp__NameAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:9858:1: ( ( RULE_ID ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:9859:1: ( RULE_ID )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:9859:1: ( RULE_ID )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:9860:1: RULE_ID\n {\n before(grammarAccess.getBaseStiffnessExpAccess().getNameIDTerminalRuleCall_0_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__BaseStiffnessExp__NameAssignment_0_119805); \n after(grammarAccess.getBaseStiffnessExpAccess().getNameIDTerminalRuleCall_0_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public int getIdentifier();", "@NonNull String identifier();", "public int getIdAssignedByR(Context pContext, String pIdString)\n\t{\n\t Resources resources = pContext.getResources();\n\t String packageName = pContext.getPackageName();\n\n\t // Determine the result and return it\n\t int result = resources.getIdentifier(pIdString, \"id\", packageName);\n\t return result;\n\t}", "public int getHC_EmployeeGrade2_ID();", "int getIdNum();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "public final void rule__Text__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:938:1: ( ( ruleIdOrString ) )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:939:1: ( ruleIdOrString )\n {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:939:1: ( ruleIdOrString )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:940:1: ruleIdOrString\n {\n before(grammarAccess.getTextAccess().getNameIdOrStringParserRuleCall_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleIdOrString_in_rule__Text__NameAssignment_11852);\n ruleIdOrString();\n _fsp--;\n\n after(grammarAccess.getTextAccess().getNameIdOrStringParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "long getNoId();", "public int getAccessid() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"accessid\")).intValue());\n }", "public final void rule__Link__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:968:1: ( ( ruleIdOrString ) )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:969:1: ( ruleIdOrString )\n {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:969:1: ( ruleIdOrString )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:970:1: ruleIdOrString\n {\n before(grammarAccess.getLinkAccess().getNameIdOrStringParserRuleCall_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleIdOrString_in_rule__Link__NameAssignment_11914);\n ruleIdOrString();\n _fsp--;\n\n after(grammarAccess.getLinkAccess().getNameIdOrStringParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XVariableDeclaration__NameAssignment_2_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18425:1: ( ( ruleValidID ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18426:1: ( ruleValidID )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18426:1: ( ruleValidID )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18427:1: ruleValidID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleValidID_in_rule__XVariableDeclaration__NameAssignment_2_0_0_137222);\r\n ruleValidID();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public int getHC_Org2_ID();", "protected abstract String getIdentifier();", "@org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getId();", "public java.lang.String getPresentid(){\r\n return localPresentid;\r\n }", "public String nextAvalibleID()\r\n\t{\r\n\t\t//creates a blank string as all Id's have to be 3 digits and if it was an itger it would remove the leading 0's\r\n\t\tString id = \"\";\r\n\t\t//If the pointer is 0 then the id needs to be 001\r\n\t\tif(nextPatientLocation == 0)\r\n\t\t{\r\n\t\t\tid = \"001\";\r\n\t\t}\r\n\t\t//otherwise it is the existing length + howver many 0's needed to make it 3 digits + the pointer data + 1 to make the first one not overlap any leaing id's\r\n\t\telse if(nextPatientLocation < 10)\r\n\t\t{\r\n\t\t\tid = \"00\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 100)\r\n\t\t{\r\n\t\t\tid = \"0\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 999)\r\n\t\t{\r\n\t\t\tid = \"\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\treturn id;//Id is returned\r\n\t}", "public void nameAnalysisNoReturn(SymTable workingSymTable) throws EmptySymTableException {\n idSym = workingSymTable.lookupGlobal(myStrVal);\n if (idSym == null) {\n //found\n (new ErrMsg()).fatal(myLineNum, myCharNum, \"Undeclared Identifier\");\n } \n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public final void rule__AstMemberAccess__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:26168:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:26169:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:26169:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:26170:1: RULE_ID\n {\n before(grammarAccess.getAstMemberAccessAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstMemberAccess__NameAssignment_152613); \n after(grammarAccess.getAstMemberAccessAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Track__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3629:1: ( ( RULE_ID ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3630:1: ( RULE_ID )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3630:1: ( RULE_ID )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:3631:1: RULE_ID\n {\n before(grammarAccess.getTrackAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Track__NameAssignment_17323); \n after(grammarAccess.getTrackAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public int getIdForName(String name)\n\t{\n\t\tint id = 0;\n\t\ttry\n\t\t{\n\t\t\tif (database==null)\n\t\t\t\tdatabase = this.getWritableDatabase();\n\t\t\t\n\t\t\tCursor c = database.rawQuery(\"SELECT * FROM \"+PLAYERS_TABLE_NAME+\" WHERE \"+PLAYER_NAME+\" = \\\"\"+name+\"\\\";\", null);\n\n\t\t\tc.moveToFirst();\n\t\t\tif (c != null) \n\t\t\t{\n\t\t\t\tid = c.getInt(c.getColumnIndex(PLAYER_ID));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\t Log.e(\"Error\", \"Error\", e);\n\t\t} \n\t\treturn id;\n\t}", "private static int getInstanceID (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\tString id = label.substring (i, label.length ());\n\t\treturn Integer.parseInt (id);\n\t }; // if\n\t}; // for\n\n\treturn 0;\n\n }", "public final void rule__Language__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3697:1: ( ( RULE_ID ) )\n // InternalCsv.g:3698:2: ( RULE_ID )\n {\n // InternalCsv.g:3698:2: ( RULE_ID )\n // InternalCsv.g:3699:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getLanguageAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getLanguageAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getAssignmentName() {\n\t\treturn assignmentName;\n\t}", "public int getIdentifier()\n {\n return identifier;\n }", "String getId();", "String getId();" ]
[ "0.6476038", "0.62216216", "0.6208073", "0.61933917", "0.60270226", "0.6018515", "0.5958142", "0.5923422", "0.5806793", "0.5803611", "0.57166547", "0.57099605", "0.56964296", "0.566146", "0.56457585", "0.5642397", "0.56159467", "0.5604534", "0.5601591", "0.5599629", "0.5595486", "0.5595486", "0.5595486", "0.5595486", "0.55797327", "0.5577574", "0.55764246", "0.5562534", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.55612713", "0.5550449", "0.5550449", "0.55408067", "0.5529702", "0.55219", "0.55164987", "0.5510279", "0.5502943", "0.54987186", "0.5485565", "0.5475653", "0.5463016", "0.54601973", "0.54601973", "0.545601", "0.54503626", "0.5443488", "0.5436016", "0.54320997", "0.5430666", "0.5428674", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5424001", "0.5410058", "0.5405163", "0.54040974", "0.5402031", "0.53997856", "0.53977704", "0.5393901", "0.53876144", "0.5387523", "0.5376338", "0.5371927", "0.5366288", "0.535298", "0.5349488", "0.53488153", "0.53464144", "0.5342169", "0.5341771", "0.5336779", "0.53366286", "0.53366286" ]
0.61492735
4
Tests getting the list of all assignments
@Test public void testGetAllAssignments() throws SQLException { // fail("NEVER RUIN THE DATABASE IN A TEST!!!! Whoever wrote this needs to make a real test"); // String q = "TRUNCATE TABLE assignment"; // PreparedStatement p = assign_hand.getConn().prepareStatement(q); // p.executeQuery(); // // assign_hand.saveOrUpdate("Super Ultra Hard Assignment",true); // assign_hand.saveOrUpdate("Super Ultra Hard Assignment 2",false); // assign_hand.saveOrUpdate("Super Ultra Hard Assignment 3",true); // ArrayList<AssignmentMsg> test_am_list = assign_hand.getAllAssignments(true); // ArrayList<AssignmentMsg> test_am_list2 = assign_hand.getAllAssignments(); // // assertEquals(2,test_am_list.size()); // assertEquals(3,test_am_list2.size()); assertEquals(2, this.assign_hand.getAllAssignments().size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void findAssignments_MultipleAssignments_ShouldReturnJSONArray() throws Exception {\n when(service.findAll()).thenReturn(Arrays.asList(RENTOKIL, HOME_OFFICE));\n\n // When we request all assignments\n final String response = mockMvc.perform(get(ENDPOINT))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we get a JSON array, containing the full details of the two assignments\n final List<Assignment> assignments = objectMapper.readValue(response, ASSIGNMENT_LIST_TYPE_REF);\n assertEquals(2, assignments.size());\n assertTrue(assignments.contains(RENTOKIL));\n assertTrue(assignments.contains(HOME_OFFICE));\n }", "public List<Assignment> getAssignments() {\n return assignments; \n }", "public List<Assignment> getAssignments() {\n return assignments;\n }", "@Test\n public void findAssignments_SingleAssignment_ShouldReturnJSONArray() throws Exception {\n when(service.findAll()).thenReturn(Collections.singletonList(RENTOKIL));\n\n // When we request all assignments\n final String response = mockMvc.perform(get(ENDPOINT))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we get a JSON array, containing the full details of the one assignment\n final List<Assignment> assignments = objectMapper.readValue(response, ASSIGNMENT_LIST_TYPE_REF);\n assertEquals(1, assignments.size());\n assertTrue(assignments.contains(RENTOKIL));\n }", "@Test\n public void testGetAllAssignments() throws Exception {\n TestHarnessBuilder builder = new TestHarnessBuilder();\n\n Map<String, Lease> addedLeases = builder.withLease(\"1\", WORKER_ID)\n .withLease(\"2\", WORKER_ID)\n .withLease(\"3\", WORKER_ID)\n .withLease(\"4\", WORKER_ID)\n .withLease(\"5\", WORKER_ID)\n .build();\n\n // Run the taker\n coordinator.runLeaseTaker();\n\n List<Lease> allLeases = coordinator.allLeases();\n assertThat(allLeases.size(), equalTo(addedLeases.size()));\n assertThat(allLeases.containsAll(addedLeases.values()), equalTo(true));\n }", "@Test\n public void findAssignments_NoAssignments_ShouldReturnEmptyJSONArray() throws Exception {\n when(service.findAll()).thenReturn(Collections.emptyList());\n\n // When we request all assignments\n final String response = mockMvc.perform(get(ENDPOINT))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we an empty JSON array\n final List<Assignment> assignments = objectMapper.readValue(response, ASSIGNMENT_LIST_TYPE_REF);\n assertEquals(0, assignments.size());\n }", "public ArrayList<Assignment> getAssignments()\n {\n return this.assignments;\n }", "public ArrayList<Assignment> getAssignments() {\n return assignments;\n }", "public static List<Assignment> getAssignments() {\n\n assert conn != null;\n String sqlStatement;\n List<Assignment> cats = new ArrayList<>();\n\n try {\n\n sqlStatement = \"SELECT units.name, units.code, units.lecturer, units.pages, assignments.uuid, assignments.unit, assignments.date, assignments.type FROM units INNER JOIN assignments ON units.uuid=unit\";\n statement = conn.prepareStatement(sqlStatement);\n results = statement.executeQuery();\n\n while (results.next()) {\n Unit unit = new Unit((UUID) results.getObject(COLUMN_UNIT), results.getString(\"name\"),\n results.getString(\"code\"), results.getString(\"lecturer\"),\n results.getInt(\"pages\"));\n\n cats.add(new Assignment((UUID) results.getObject(COLUMN_UUID), unit, results.getDate(COLUMN_DATE),\n results.getInt(COLUMN_TYPE)));\n }\n\n return cats;\n\n } catch (Exception e) {\n System.err.printf(\"%s: %s\", e.getClass().getName(), e.getMessage());\n return null;\n } finally {\n try {\n if (statement != null) {\n statement.close();\n }\n } catch (Exception e) {\n System.err.printf(\"%s: %s\", e.getClass().getName(), e.getMessage());\n }\n }\n\n }", "public void setAssignments(List<Assignment> assignments) {\n this.assignments = assignments;\n }", "public ArrayList<Assignment> getAllAssignments() {\n\n\t\tArrayList<Assignment> listAsg = new ArrayList<>();\n\t\tquery = \"SELECT * FROM assignments\";\n\n\t\ttry {\n\t\t\tps = DbConnection.DbConnect().prepareStatement(query);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\n\t\t\t\t// New Assignment object\n\t\t\t\tAssignment asg = new Assignment();\n\t\t\t\tasg.setAsgId(rs.getInt(\"assignment_id\"));\n\t\t\t\tasg.setAsgTitle(rs.getString(\"title\"));\n\t\t\t\tasg.setAsgRels(LocalDate.fromDateFields(rs.getDate(\"release_date\")));\n\t\t\t\tasg.setAsgDead(LocalDate.fromDateFields(rs.getDate(\"deadline\")));\n\t\t\t\tasg.setAsgLvl(rs.getString(\"skill_level\"));\n\t\t\t\tasg.setAsgDept(rs.getInt(\"department_id\"));\n\t\t\t\tasg.setAsgTech(rs.getInt(\"teacher_id\"));\n\n\t\t\t\t// Adding to the list\n\t\t\t\tlistAsg.add(asg);\n\t\t\t}\n\n\t\t} catch (SQLException ex) {\n\t\t\tprintSQLException(ex);\n\n\t\t} catch (Exception ex) {\n\t\t\tex.getMessage();\n\n\t\t} finally {\n\t\t\tif (ps != null)\n\t\t\t\ttry {\n\t\t\t\t\tps.close();\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\treturn listAsg;\n\t}", "public static ArrayList<Assignment> addAssignments() {\n System.out.println(\"\\nAdd an assignment!\");\n do {\n listOfAssignments.add(createAssignment());\n System.out.print(\"\\n Would you like to add a new assignment?(yes or no): \");\n boolean yesOrNo=yesOrNoValidation();\n if (yesOrNo) {\n } else if (!yesOrNo) {\n break;\n }\n } while (true);\n return listOfAssignments;\n }", "@Test\n\tpublic void getAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\t\t\n\t\tassertEquals(\"Super Ultra Hard Assignment\",test_am.getName());\n\t\tassertEquals(true,test_am.isEnabled());\n\n\t}", "public void getAssignment() {\n \n }", "@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }", "public int getNumberOfAssignments() {\n \treturn assignments.size();\n }", "List<String> getAllExternalAssignments(String gradebookUid);", "@Override\n public List<Assignment> getAssignment(String courseId) {\n\n Course course = getCourse(courseId);\n MongoCollection<Assignment> assignementMongoCollection = mongoDatabase.getCollection(\"assignment\", Assignment.class);\n List<Assignment> assignments = new LinkedList<>();\n // add all assignement for the course\n for (ObjectId assignmentId : course.getAssignment()) {\n assignments.add(assignementMongoCollection.find(eq(\"_id\", assignmentId)).first());\n }\n return assignments;\n }", "public static void printListOfAssignmentsPerCourse() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"~~~~~~~~~Select the course to see the Assignments~~~~~~~~~\");\n boolean caseCheck = false;\n String flag = \"Y\";\n do {\n if (flag.equalsIgnoreCase(\"Y\")) {\n SchoolCourse chosenSchoolCourse = schoolCourseSelection();\n for (int i = 0; i < chosenSchoolCourse.getListOfAssignmentsPerCourse().size(); i++) {\n System.out.println((i + 1) + \") \" + chosenSchoolCourse.getListOfAssignmentsPerCourse().get(i));\n System.out.println(\"\");\n }\n } else if (flag.equalsIgnoreCase(\"N\")) {\n return;\n } else {\n\n System.err.println(\"Invalid Answer, type: Y or N\");\n\n }\n System.out.println(\"Do you want to check another Course? (Y / N)\");\n flag = input.nextLine();\n } while (caseCheck == false);\n }", "@Test\n\tpublic void testAddAssignment() {\n\t}", "@Test\n\tpublic void testGetAssignmentID()\n\t{\n\t\tAssignmentHandler ah = new AssignmentHandler();\n\t\tassertEquals(1,ah.getAssignmentID(\"testAssignment\"));\n\t\tassertEquals(2,ah.getAssignmentID(\"Assignment2\"));\n\t}", "@Override\n public List<Assignment> addAllAssignments(String courseId, List<String> homeworkNames) {\n\n List<Assignment> assignments = new LinkedList<>();\n MongoCollection collection = mongoDatabase.getCollection(\"assignment\");\n List emptyHomeWorks = new LinkedList();\n // iterate through the list create a document insert one and add into list\n for (String homework : homeworkNames) {\n Document newHomework = new Document();\n newHomework.put(\"name\", homework);\n newHomework.put(\"resultsId\", emptyHomeWorks);\n collection.insertOne(newHomework);\n ObjectId objectId = newHomework.getObjectId(\"_id\");\n Assignment assignment = new Assignment(homework, emptyHomeWorks);\n assignment.setId(objectId);\n assignment.setHexId(objectId.toHexString());\n assignments.add(assignment);\n\n Bson updateOperationDocument = new Document(\"$set\", assignment);\n collection.updateOne(eq(\"_id\", new ObjectId(objectId.toHexString())), updateOperationDocument);\n }\n return assignments;\n }", "String getAssignmentApproaches();", "public PermissionAssignment[] getPermissionAssignments()\n {\n buildAssignmentSet();\n Set snapshot = assignments;\n PermissionAssignment[] result = new PermissionAssignment[snapshot.size()];\n snapshot.toArray(result);\n return result;\n }", "public List<Assignment> getCourseAssignments(long c_id) {\n\n SQLiteDatabase db = this.getReadableDatabase();\n List<Assignment> assignmentList = new ArrayList<>();\n Cursor cursor = null;\n try {\n cursor = db.query(Config.TABLE_NAME_ASSIGNMENT, null, null,\n null, null, null, null);\n\n if (cursor != null) {\n if (cursor.moveToFirst()) {\n\n do {\n if (cursor.getInt(cursor.getColumnIndex(Config.COLUMN_COURSE_ID)) == c_id) {\n long a_id = cursor.getInt(cursor.getColumnIndex(\n Config.COLUMN_ASSIGNMENT_ID));\n long course_id = cursor.getInt(cursor.getColumnIndex(\n Config.COLUMN_COURSE_ID));\n String title = cursor.getString(cursor.getColumnIndex(\n Config.COLUMN_ASSIGNMENT_TITLE));\n double grade = cursor.getDouble(cursor.getColumnIndex(\n Config.COLUMN_ASSIGNMENT_GRADE));\n assignmentList.add(new Assignment(a_id, course_id, title, grade));\n }\n\n } while (cursor.moveToNext());\n\n return assignmentList;\n }\n }\n\n } catch (Exception e) {\n Log.d(TAG, \"Exception: \" + e.getMessage());\n } finally {\n if (cursor != null)\n cursor.close();\n db.close();\n }\n\n\n return Collections.emptyList();\n }", "public static void printListOfAssignmentsPerStudentPerCourse() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"~~~~~~~~~Select the student to see the Assignments~~~~~~~~~\");\n boolean caseCheck = false;\n String flag = \"Y\";\n do {\n if (flag.equalsIgnoreCase(\"Y\")) {\n Student chosenStudent = studentSelection();\n for (int i = 0; i < chosenStudent.getListOfAssignmentsPerStudentPerCourse().size(); i++) {\n System.out.println((i + 1) + \") \" + chosenStudent.getListOfAssignmentsPerStudentPerCourse().get(i));\n System.out.println(\"\");\n }\n } else if (flag.equalsIgnoreCase(\"N\")) {\n return;\n } else {\n\n System.err.println(\"Invalid Answer, type: Y or N\");\n\n }\n System.out.println(\"Do you want to check another Student? (Y / N)\");\n flag = input.nextLine();\n } while (caseCheck == false);\n }", "public ArrayList<Assignment> getAssignmentsForCourse(Course course){\n ArrayList<Assignment> result = new ArrayList();\n \n String statement = GET_ASSIGNMENTS_FOR_COURSE;\n\n // execute the preparedstatement\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Assignment assignment = new Assignment(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"description\"),\n rs.getDate(\"sub_dateTime\").toLocalDate(),rs.getInt(\"oral_mark\"),rs.getInt(\"total_mark\"));\n result.add(assignment);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAssignmentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }", "List <ProjectAssignment> findAssignmentsForEmployee (int employeeId);", "List <ProjectAssignment> findAssignmentsByProject (int projectId);", "public ArrayList<Assignment> getAllAssignmentsForUpload() {\n\t\tArrayList<Assignment> assignmentList = new ArrayList<Assignment>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ASSIGNMENT;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tAssignment assign = new Assignment();\n\t\t\tassign.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tassign.id = cursor.getString(1);\n\t\t\tassign.type = cursor.getInt(2);\n\t\t\tassign.submit_date = cursor.getString(3);\n\t\t\tassign.created_date = cursor.getString(4);\n\t\t\tassign.subject_relation_id = cursor.getString(5);\n\t\t\tassign.description = cursor.getString(6);\n\t\t\tassign.total_marks = cursor.getString(7);\n\t\t\tassign.marks = cursor.getString(8);\n\t\t\tassign.title = cursor.getString(9);\n\t\t\tassign.is_marked = cursor.getString(10);\n\t\t\tassign.is_published = cursor.getString(11);\n\t\t\tassign.file_name = cursor.getString(12);\n\t\t\tassign.attachment = cursor.getString(13);\n\t\t\n\t\t\t// Adding contact to list\n\t\t\tassignmentList.add(assign);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn assignmentList;\n\t}", "@Nonnull\n public com.microsoft.graph.requests.CloudPcProvisioningPolicyAssignmentCollectionRequestBuilder assignments() {\n return new com.microsoft.graph.requests.CloudPcProvisioningPolicyAssignmentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"assignments\"), getClient(), null);\n }", "public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "void fillAssignmentWithActivities(Assignment assignment);", "@Test\r\n\tpublic final void testGetAllRooms() {\n\t\tList<Room> actualList = roomServices.getAllRooms();\r\n\t\t// get all data in JUnit test\r\n\r\n\t\tList<Room> expectedList = new ArrayList<Room>();\r\n\t\texpectedList.addAll(params());\r\n\t\t\r\n\t\tSystem.out.println(\"expectedList\");\r\n\t\tSystem.out.println(expectedList);\r\n\t\tSystem.out.println(\"actualList\");\r\n\t\tSystem.out.println(actualList);\r\n\t\t\r\n\t\t// see if JUnit test value is in room list\r\n\t\tassertTrue(actualList.contains(expected));\r\n\t}", "@Test\r\n\tpublic void testGetAllGuidances() {\n\t\tthis.checklistDAO.saveOrUpdateCheckList(this.checklist);\r\n\r\n\t\t// Look if this checklist is also into the database and look if the size\r\n\t\t// of the set is >= 1.\r\n\t\tList<CheckList> checklists = this.checklistDAO.getAllCheckList();\r\n\t\tassertNotNull(checklists);\r\n\t\tassertTrue(checklists.size() >= 1);\r\n\t}", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "@Test\n public void findAssignment_AssignmentExists_ShouldReturnAssignment() throws Exception {\n when(service.findById(1L)).thenReturn(Optional.of(RENTOKIL));\n\n // When we request the assignment with id 1\n final String response = mockMvc.perform(get(ENDPOINT + \"/1\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andReturn().getResponse().getContentAsString();\n\n // Then we get the requested assignment\n assertEquals(RENTOKIL, objectMapper.readValue(response, Assignment.class));\n }", "public void setAssignees(List<String> assignees){\n this.assignees = assignees;\n }", "public HashMap<Symbol, Boolean> getAss(){\n\t\treturn this.assignments;\n\t}", "public int[] getAllAssignments() {\n\t\tIterator it = this.clauses.iterator();\n\t\tint numVar = this.getVocabulary().getMaxVariableId();\n\t\tint[] assign = new int[numVar*2+1]; \n\t\t\t// 1.... numVar store positive literals\n\t\t\t// numVar+1, ..., assign.length-1 store negative literals\t\t\n\n\t\twhile (it.hasNext()) {\n\t\t\tIClause cl = (IClause) it.next();\n Iterator litIterator = cl.literalIterator();\n while (litIterator.hasNext()){\n \tILiteral lit = (ILiteral) litIterator.next();\n \tint idx = lit.getId();\n \tif (idx<0) \n \t\tidx = numVar - idx;\n \tassign[idx] = lit.value();\n }\n } \n\t\t\n\t\treturn assign;\n\t}", "public Assignment getAssignmentInAssignmentCourseList(int index) {\n return assignmentListInCourse.get(index);\n }", "public void showAssignments(){\n\t\tIterator it = this.clauses.iterator();\n\t\tint numVar = this.getVocabulary().getMaxVariableId();\n\t\tint[] assign = new int[numVar*2+1]; \n\n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.println(\"___________________________\");\n IClause cl = (IClause) it.next();\n Iterator litIterator = cl.literalIterator();\n while (litIterator.hasNext()){\n \tILiteral lit = (ILiteral) litIterator.next();\n \tint idx = lit.getId();\n \tif (idx<0) \n \t\tidx = numVar - idx;\n \tassign[idx] = lit.value();\n }\n }\n\t\t\n\t\tfor (int i=1;i<assign.length;i++){\n\t\t\tint k = i;\n\t\t\tif (i>numVar)\n\t\t\t\tk = numVar - i;\n\t\t\tSystem.out.print(k + \"|\" + assign[i] + \";\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "void testCanGetList();", "@Test\r\n\tvoid testRulesList() {\r\n\t\tassertSame(email1.getRulesPerMail().size(), 5);\r\n\t\tassertSame(email3.getRulesPerMail().size(), 2);\r\n\t\tassertNotEquals(email1.getRulesPerMail(), email3.getRulesPerMail());\r\n\t\tassertEquals(email1.getRulesPerMail(), email4.getRulesPerMail());\r\n\t}", "public ArrayList<UserAssignmentStatusMsg> getAllUserAssignmentStatus() throws Exception\n\t{\n\t\tArrayList<UserAssignmentStatusMsg> result = new ArrayList<UserAssignmentStatusMsg>();\n\t\tString query = \"SELECT * FROM user_assignment\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Prepare the statement\n\t\t\tPreparedStatement stmt = this.getConn().prepareStatement(query);\n\t\t\t\n\t\t\t//Get the result\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tresult.add(new UserAssignment(rs.getInt(1),rs.getInt(2)).getMessage());\n\t\t\t}\n\t\t\t\n\t\t\tif(result.size()<=0)\n\t\t\t{\n\t\t\t\tthrow new Exception(\"No UserAssignment Found! (getAllUserAssignmentStatus())\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tGWT.log(\"Error in SQL: UserAssignmentList -> getAllUserAssignmentStatus()\", e);\n\t\t\tthis.getConn().rollback();\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Test\n\tpublic void assignmentTask() {\n\t\tselectClass();\n\t\tnavigateTo(\"Assignments\",\"assignments\");\n\t\ttester.clickButtonWithText(\"Add\");\n\t\ttester.setWorkingForm(\"addassignment\");\n\t\ttester.setTextField(\"title\", \"Foo\");\n\t\ttester.setTextField(\"task\", \"<a href=\\\"http://unitn.it\\\">Evil Link</a>\");\n\t\ttester.setTextField(\"total\", \"10\");\n\t\ttester.setTextField(\"assigneddate\", \"1\");\n\t\ttester.setTextField(\"duedate\", \"5\");\n\t\ttester.clickButtonWithText(\"Add Assignment\");\n\t\t\n\t\ttester.assertLinkNotPresentWithText(\"Evil Link\");\n\t}", "public List<Assignment> searchAssignmentsByTitle(String text) throws Exception{\n\t\tLog.d(\"Add\",\"Text - '\"+text+\"'\");\n\t\tList<Assignment> assignments = new ArrayList<Assignment>();\n\n\t\tString where = MySQLiteHelper.ASSIGNMENT_TITLE + \" LIKE '\" \n\t\t\t\t+ text + \"%'\";\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tassignments.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tLog.d(\"Add\", \"Search results - \"+assignments.size());\n\t\t\treturn assignments;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t}", "@Override\n public List<Result> getResults(String assignmentId) {\n // Gets list of Results Id\n MongoCollection<Assignment> assignmentMongoCollection = mongoDatabase.getCollection(\"assignment\", Assignment.class);\n Assignment assignment = assignmentMongoCollection.find(eq(\"_id\", new ObjectId(assignmentId)), Assignment.class).first();\n\n List<String> resultsId = assignment.getResultsId();\n // Gets all assignments\n MongoCollection<Result> resultMongoCollection = mongoDatabase.getCollection(\"result\", Result.class);\n List<Result> results = new ArrayList<>();\n for (String resultId : resultsId) {\n // Result result = resultMongoCollection.find(eq(\"_id\", new ObjectId(resultId)), Result.class).first();\n results.add(resultMongoCollection.find(eq(\"_id\", new ObjectId(resultId)), Result.class).first());\n }\n\n return results;\n }", "@Override\r\n\tpublic ArrayList<String> readAssignmentFiles(String packageName,\r\n\t\t\tArrayList<String> assignmentList) {\n\t\treturn null;\r\n\t}", "public double[] getAssignmentValues() {\n\t\treturn assignmentValues;\n\t}", "@Test\n\tpublic void shouldFireAssertIfAllPresent() {\n\n\t\tval mapa = new LinkedHashMap<String, String>();\n\t\tmapa.put(\"name\", \"myproject\");\n\t\tmapa.put(\"project_type\", \"billable\");\n\t\tmapa.put(\"start_date\", \"1-1-15\");\n\t\tmapa.put(\"end_date\", \"1-1-16\");\n\t\truleObj.setData(mapa);\n\n\t\tkSession = kbase.newStatefulKnowledgeSession();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tEvaluator eval = (Evaluator) ruleObj;\n\t\tkSession.insert(eval);\n\t\tkSession.insert(list);\n\n\t\tint actualNumberOfRulesFired = kSession.fireAllRules();\n\n\t\tassertEquals(list.size(), 0);\n\t}", "public List<Assignment> searchAssignmentsBySubjects(long Subjects_id) throws Exception{\n\t\t\n\t\tList<Assignment> assignments = new ArrayList<Assignment>();\n\n\t\tString where = MySQLiteHelper.ASSIGNMENT_SUBJECTS + \" = \"+Subjects_id;\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tassignments.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tLog.d(\"Add\", \"Search results - \"+assignments.size());\n\t\t\treturn assignments;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t}", "@Test\n\tvoid testGetDepartmentsByCrit() {\n\t\tDepartmentDAO ddao = new DepartmentDAO();\n\t\tList<Department> ls = ddao.getDepartmentsByCrit();\n\t\tIterator<Department> it = ls.iterator();\n\n\t\twhile (it.hasNext()) {\n\t\t\tDepartment dpt = it.next();\n\t\t\tSystem.out.println(dpt.getDepartment_name() + \" \" + dpt.getLocation_id() + \" \" + dpt.getManager_id());\n\t\t}\n\t\t// assertEquals(203, ls.get(0).getManager_id());\n\t}", "@Test\n public void testSelectAll() {\n List<Discipline> listDisciplines = new ArrayList();\n listDisciplines = disciplineDao.selectAll();\n boolean result = listDisciplines.size() > 0;\n assertTrue(result);\n }", "@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "@Test\r\n public void testFillersAssociated() {\r\n System.out.println(\"FillersAssociated - metalName = ''\");\r\n String metalName = \"\";\r\n List<String> result = KnowledgeSystemBeanInterface.FillersAssociated(metalName);\r\n ArrayList<String> results = new ArrayList<String>();\r\n assertEquals(result, results);\r\n System.out.println(\"testFillersAssociated ---------------------------------------------------- Done\");\r\n }", "@Test\n public void testGetListOfAircraftTypes() {\n System.out.println(\"getListOfAircraftTypes\");\n AircraftModel acModel = new AircraftModel();\n acModel.setId(\"PASSENGER\");\n Simulation sim = new Simulation();\n sim.getFlightPlan().getAircraft().setAircraftModel(acModel);\n p.getSimulationsList().getSimulationsList().add(sim);\n this.instance = new ExportCSVController(p);\n ExportCSVController instance = this.instance;\n \n List<String> expResult = new LinkedList<>();\n expResult.add(acModel.getId());\n List<String> result = instance.getListOfAircraftTypes();\n assertEquals(expResult, result);\n \n }", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "public List<Assignment> getAllAssignment(long academic_id) throws Exception {\n\t\tList<Assignment> academics = new ArrayList<Assignment>();\n\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, MySQLiteHelper.ASSIGNMENT_ACADEMIC + \" = \" + academic_id,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tacademics.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tcursor.close();\n\t\t\treturn academics;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\n public void getSubjectAssignmentOfSubjectGroupTest() throws Exception\n {\n createSubjectGroupTest();\n \n String groupName = \"network\";\n IPSubject ip = new IPSubject();\n\n Map<Long, SubjectGroup> result = ip.getSubjectGroupInfoByName(groupName);\n\n assertNotNull(result);\n Long groupId = result.keySet().toArray(new Long[1])[0];\n\n Map<Long, Subject> resultSubject = ip.getSubjectAssignmentOfSubjectGroup(groupId);\n \n assertNotNull(resultSubject);\n Subject[] subjectList = resultSubject.values().toArray(new Subject[0]);\n \n assertEquals(2, subjectList.length);\n assertEquals(\"workstation\", subjectList[0].getSubjectName());\n assertEquals(\"gateway\", subjectList[1].getSubjectName());\n }", "public UserAssignmentList() throws SQLException\n\t{\n\t\tthis.setConn(Database.get().getConnection());\n\n\t}", "public ResultSet getAllWineParticipantAssignment () throws Exception {\r\n String sql = \"SELECT * FROM wineparticipantassignment;\";\r\n return stmt.executeQuery(sql);\r\n }", "@Test\n\t\tpublic void testGetAllOrganization() {\n\t\t\tfor (int i =0; i<10;i++){\n\t\t\t assertEquals(wraRestServer.listOrganization().get(i).getSiret(),organizationDao.getAll().get(i).getSiret());\n\t\t}\n\t\t\n\t\n\t}", "public KSMemberBaseAssignment assignment() {\n return assignment;\n }", "@Test\n public void findAssignment_NoAssignments_Should404() throws Exception {\n when(service.findById(1L)).thenReturn(Optional.empty());\n\n // When we request the assignment with id 1\n // Then we get a 404\n mockMvc.perform(get(ENDPOINT + \"/1\")).andExpect(status().isNotFound());\n }", "public void dump() {\n\t\tfor(Symbol s: assignments.keySet()) {\n\t\t\tSystem.out.println(s.toString() + \" = \" + assignments.get(s));\n\t\t}\t\n\t}", "@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }", "public void testGetAllTitles() {\r\n System.out.println(\"getAllEmployees\");\r\n List expResult = null;\r\n List result = TitleDao.getAllTitles();\r\n assertEquals(expResult, result);\r\n }", "public boolean isAssignment() {\n\t\treturn true;\n\t}", "public static List getAllAssignmentsForDocument(String schema, Long doc_id) {\r\n\r\n\t\tMultiSchemaHibernateUtil.beginTransaction(schema);\r\n\t\tString hql_string = \"from SharedDocActorNotificAssignObj where sd_id = \" + doc_id; //$NON-NLS-1$\r\n\t\tList returnList = MultiSchemaHibernateUtil.getSession(schema).createQuery(hql_string).list();\r\n\r\n\t\tMultiSchemaHibernateUtil.commitAndCloseTransaction(schema);\r\n\r\n\t\treturn returnList;\r\n\r\n\t}", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "@Test\n public void testAssignReinforcements() {\n IssueOrderPhase l_issueOrder = new IssueOrderPhase(d_gameEngine);\n l_issueOrder.d_gameData = d_gameData;\n l_issueOrder.assignReinforcements();\n d_gameData = l_issueOrder.d_gameData;\n int l_actualNoOfArmies = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n int l_expectedNoOfArmies = 8;\n assertEquals(l_expectedNoOfArmies, l_actualNoOfArmies);\n }", "private boolean checkAssignments() {\n ArrayList headerNames = new ArrayList();\n boolean assigned = false;\n \n for(int i = 0; i < this.dataTable.getColumnCount(); i++) {\n Object columnName = this.dataTable.getColumnModel().getColumn(i).getHeaderValue();\n \n if(!columnName.toString().equals(\"Unassigned\")) {\n if(!headerNames.contains(columnName)) {\n headerNames.add(columnName);\n assigned = true;\n } else {\n JOptionPane.showMessageDialog(this, columnName.toString() + \" has been assigned more than once!\", \"Duplicate Assignment!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }\n }\n \n if(!assigned) {\n JOptionPane.showMessageDialog(this, \"You must assign at least one column!\", \"Nothing assigned!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n \n return true;\n }", "private void assignment() {\n\n\t\t\t}", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "@Test\r\n\tpublic void testGetRooms() {\r\n\t\tassertEquals(rooms, breaku1.getRooms());\r\n\t\tassertEquals(rooms, externu1.getRooms());\r\n\t\tassertEquals(rooms, meetingu1.getRooms());\r\n\t\tassertEquals(rooms, teachu1.getRooms());\r\n\t}", "@Test\n\tpublic void shouldFireAssertIfAllPresentFailedWithEmpty() {\n\n\t\tval mapa = new LinkedHashMap<String, String>();\n\t\tmapa.put(\"name\", \"myproject\");\n\t\tmapa.put(\"project_type\", \"billable\");\n\t\tmapa.put(\"start_date\", \"1-1-15\");\n\t\tmapa.put(\"end_date\", \"\");\n\t\truleObj.setData(mapa);\n\n\t\tkSession = kbase.newStatefulKnowledgeSession();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tEvaluator eval = (Evaluator) ruleObj;\n\t\tkSession.insert(eval);\n\t\tkSession.insert(list);\n\n\t\tint actualNumberOfRulesFired = kSession.fireAllRules();\n\n\t\tassertEquals(list.size(), 1);\n\t}", "@Test\n\tpublic void shouldListAllStatesRegardlessAssignedRoles() {\n\t\tRoleDTO roleAssignedToUser = workflowStub.assignRole(app, user, formDto);\n\t\n\t\tRoleDTO anotherRoleDto = createAnotherRole(app, user);\n\t\t\n\t\t// Creamos un solo estado con el rol asignado al usuario\n\t\tnewState(formDto, \"state1\", roleAssignedToUser);\n\t\tnewState(formDto, \"state2\", roleAssignedToUser);\n\t\tnewState(formDto, \"state3\", anotherRoleDto);\n\t\tnewState(formDto, \"state4\", anotherRoleDto);\n\t\t\n\t\t\n\t\tList<State> states = stateService.listAllStates(formDto);\n\t\tAssert.assertNotNull(\"List of states should NOT be null\", states);\n\t\tAssert.assertEquals(\"List should have the expected size\", 4, states.size());\n\t}", "@Test\n public void testGetManifestationList() {\n System.out.println(\"getManifestationList\");\n DataDeichmanAdapterMock instance = new DataDeichmanAdapterMock();\n Model expResult = null;\n Model result = instance.getManifestationList();\n //result.write(System.out);\n assertNotNull(result);\n assertFalse(result.isEmpty());\n //assertEquals(expResult, result.size());\n }", "@Test\n public void testGetUsersList() {\n System.out.println(\"getUsersList\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "private static void print_Assignment(Gradebook gradebook, String[] flags) {\n //sort grades highest to lowest\n if (flags[3] != null && flags[3].equals(\"G\")) {\n List<Student> studentList = gradebook.getAllStudents();\n Map<Integer, Set<Student>> gradeToName = new HashMap<Integer, Set<Student>>();\n Set<Integer> grades = new HashSet<Integer>();\n\n for(Student s : studentList){\n Assignment assign = gradebook.getAssignment(flags[0]);\n Map<Assignment, Integer> gradeMap = gradebook.getStudentGrades(s);\n Integer grade = gradeMap.get(assign);\n\n Set<Student> studs = gradeToName.get(grade);\n if(studs == null){\n\n studs = new HashSet<Student>();\n }\n\n studs.add(s);\n gradeToName.put(grade, studs);\n grades.add(grade);\n }\n\n List<Integer> sortedList = new ArrayList<Integer>(grades);\n Collections.sort(sortedList, Collections.reverseOrder());\n\n for(Integer i : sortedList){\n Set<Student> studs = gradeToName.get(i);\n for(Student s : studs)\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + i + \")\");\n }\n\n // sort display aplhabetically\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n for (Student stud: studentsAlpha) {\n // flags[0] should be assign name\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + gradebook.getPointsAssignment(stud, gradebook.getAssignment(flags[0])) + \")\");\n }\n\n } else {\n throw new IllegalArgumentException(\"Please specify if you want the display to be alphabetical or by grades highest to lowest.\");\n }\n return;\n }", "public List<String> getAvailableAssignees()\n {\n // TODO stefan an Rollen knüpfen\n final Matcher<String> m = new BooleanListRulesFactory<String>().createMatcher(\"admin/user/*\");\n final List<GWikiElementInfo> userInfos = wikiContext.getElementFinder()\n .getPageInfos(new GWikiPageIdMatcher(wikiContext, m));\n\n List<String> users = new ArrayList<String>();\n for (final GWikiElementInfo user : userInfos) {\n users.add(GWikiContext.getNamePartFromPageId(user.getId()));\n }\n return users;\n }", "public List<Assignment> searchAssignmentsByDate(String date) throws Exception{\n\t\t\n\t\tList<Assignment> assignments = new ArrayList<Assignment>();\n\n\t\tString where = MySQLiteHelper.ASSIGNMENT_DUEDATE + \" = '\"+date+\"'\";\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tassignments.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tLog.d(\"Add\", \"Search results - \"+assignments.size());\n\t\t\treturn assignments;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t}", "Collection<MultiGroupRecord> checkAssignmentForUsersInMultipleGroups(Assignment asn, SessionState state)\n\t{\n\t\tList<MultiGroupRecord> dupes = defaultMultipleGroupCheck(asn);\n\t\talertDuplicateMemberships(dupes, state);\n\n\t\treturn dupes;\n\t}", "@BeforeAll\n public static void setUp() {\n\n unsolvedCourseSchedule = new RoomSchedule();\n\n \n // fixed periods I'm defining\n \tRoomPeriods fixedRoomPeriod1=new RoomPeriods(1, 1);\n \tfixedRoomPeriod1.setSessionName(\"Session Fixed 1\");\n \t\n \tRoomPeriods fixedRoomPeriod2=new RoomPeriods(1, 2);\n \tfixedRoomPeriod2.setSessionName(\"Session Fixed 2\");\n \t\n // I'm adding fixed periods to schedule, these are known fixed schedule items\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod1);\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod2); \n \n /* I'm adding 10 more schedule items which are [null,null] , I'm expecting optoplanner assign period and room numbers. \n * [ THEY ARE LINKED with annotations, @PlanningVariable,\t@ValueRangeProvider(id = \"availablePeriods\", @ProblemFactCollectionProperty]\n */\n for(int i = 0; i < 10; i++){ \t \t\n unsolvedCourseSchedule.getLectureList().add(new RoomPeriods()); \n }\n \n // \n unsolvedCourseSchedule.getPeriodList().addAll(Arrays.asList(new Integer[] { 1, 2, 3 }));\n unsolvedCourseSchedule.getRoomList().addAll(Arrays.asList(new Integer[] { 1, 2 }));\n }", "default List<String> assignedConcepts(Source code){\n return assignedConcepts(code, ImmutableSet.of());\n }", "@Test\n public void subjectSetTest() {\n // TODO: test subjectSet\n }", "@Test\n public void sTest(){\n List<Account> accounts = as.findAllAccount ();\n for (Account account : accounts) {\n System.out.println (account);\n }\n }", "@Test\n public void testGetListOfNodes() {\n System.out.println(\"getListOfNodes\");\n Simulation sim = new Simulation();\n sim.setData(0, 0, 0, 0, new FlightPlan(),0);\n p.getSimulationsList().getSimulationsList().add(sim);\n ExportCSVController instance = new ExportCSVController(p);\n \n List<String> expResult = new LinkedList<>();\n expResult.add(\"No IATA code.\");\n List<String> result = instance.getListOfNodes();\n assertEquals(expResult, result);\n \n }", "@Test\n\tpublic void testGetAllPatient() {\n\t\tfor (int i =0; i<10;i++){\n\t\t assertEquals(wraRestServer.listPatient().get(i).getId(),patientDao.getAll().get(i).getId());\n\t}\n\t}", "@Test\n public void shouldAssertAllTheGroup() {\n List<Integer> list = Arrays.asList(1, 2, 4);\n assertAll(\"List is not incremental\",\n () -> Assertions.assertEquals(list.get(0).intValue(), 1),\n () -> Assertions.assertEquals(list.get(1).intValue(), 2),\n () -> Assertions.assertEquals(list.get(2).intValue(), 3));\n }", "@Test\r\n\tpublic void retrieveAllPromotionTest() {\n\t\tassertNotNull(\"Test if there is valid Promotion arraylist to retrieve item\", promotionList);\r\n\r\n\t\t// test if the list of promotion retrieved from the SourceCentre is empty -\r\n\t\t// boundary\r\n\t\tString allPromotion = C206_CaseStudy.retrieveAllPromotion(promotionList);\r\n\t\tString testOutput = \"\";\r\n\t\tassertEquals(\"Check that ViewAllPromotionlist\", testOutput, allPromotion);\r\n\r\n\t\t// Given an empty list, after adding 2 items, test if the size of the list is 2\r\n\t\t// - normal\r\n\t\tC206_CaseStudy.addPromotion(promotionList, po1);\r\n\t\tC206_CaseStudy.addPromotion(promotionList, po2);\r\n\t\tassertEquals(\"Test that Promotion arraylist size is 2\", 2, promotionList.size());\r\n\r\n\t\t// test if the expected output string same as the list of promotion retrieved\r\n\t\t// from the SourceCentre\r\n\t\tallPromotion = C206_CaseStudy.retrieveAllPromotion(promotionList);\r\n\t\ttestOutput = String.format(\"%-10s %-10s %-20s %-10s %-10s %-20s\\n\", \"1\", \"Spaghetti\", \"5.00\", \"Yes\", \"3.50\",\r\n\t\t\t\t\"6\");\r\n\t\ttestOutput += String.format(\"%-10s %-10s %-20s %-10s %-10s %-20s\\n\", \"2\", \"Fries\", \"3.00\", \"Yes\", \"1.00\", \"6\");\r\n\r\n\t\tassertEquals(\"Test that ViewAllCamcorderlist\", testOutput, allPromotion);\r\n\r\n\t}", "public RepositoryAssignment()\r\n\t{\r\n\t\tteamMembers = new ArrayList<String>();\r\n\t}", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "@Test\n void retrieveAllTest() {\n boolean check1 = false;\n boolean check2 = false;\n List<Admin> adminList = adminJpa.retrieveAll();\n for (Admin anAdmin : adminList) {\n String email = anAdmin.getEmail();\n if (email.equals(\"m.rossi1@wlbadmin.it\"))\n check1 = true;\n if (email.equals(\"v.verdi1@wlbadmin.it\"))\n check2 = true;\n }\n assertTrue(check1);\n assertTrue(check2);\n }", "@Test\n public void testAvailableAirportsNumber() {\n assertThat(Airport.values()).hasSize(9);\n }", "@Test\n\tpublic void testAssignGrade3() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW2\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertNull(grade);\n\t}", "@Test\r\n public void testGetListaEnvases() {\r\n ArrayList<Envase> lst=new ArrayList<>();\r\n Envase e=new Envase(1,\"nombre\",\"material\");\r\n lst.add(e);\r\n articuloPrueba.setListaEnvases(lst);\r\n ArrayList<Envase> expResult = lst;\r\n ArrayList<Envase> result = articuloPrueba.getListaEnvases();\r\n assertEquals(expResult, result);\r\n }", "@Test\n\tpublic void testIsPermittedAll_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public AeB4PPeopleAssignmentsDef getPeopleAssignmentsDef()\r\n {\r\n return (AeB4PPeopleAssignmentsDef) getDef();\r\n }" ]
[ "0.6976111", "0.6898677", "0.6825539", "0.6743359", "0.66979194", "0.66912603", "0.6654651", "0.6615515", "0.6530199", "0.6522166", "0.64611876", "0.64104444", "0.622415", "0.6218436", "0.6190178", "0.6026486", "0.60263926", "0.6014517", "0.5965592", "0.59231704", "0.5909052", "0.58498883", "0.5847883", "0.58312577", "0.5781211", "0.5755947", "0.5734973", "0.5734002", "0.57308793", "0.57114714", "0.56586957", "0.5619338", "0.55790526", "0.557271", "0.55221397", "0.5512646", "0.5507643", "0.54768413", "0.54735935", "0.54718065", "0.54689777", "0.54653454", "0.54285717", "0.5427609", "0.5418806", "0.5396559", "0.5385037", "0.5372524", "0.5366643", "0.5359482", "0.5339496", "0.5316628", "0.5307897", "0.5305249", "0.5299749", "0.5271392", "0.52703345", "0.5267566", "0.52654594", "0.52644706", "0.52568144", "0.5251911", "0.52455705", "0.5233922", "0.5230531", "0.52233326", "0.52159315", "0.5215453", "0.5203255", "0.5200668", "0.518126", "0.5180307", "0.517993", "0.5173503", "0.515931", "0.51578957", "0.5141025", "0.513954", "0.51290435", "0.51282716", "0.51253307", "0.51245964", "0.51229966", "0.5116584", "0.5111257", "0.51049066", "0.5099456", "0.50921124", "0.50915253", "0.50905305", "0.5088886", "0.50769055", "0.5062907", "0.50586736", "0.50575113", "0.50544804", "0.5053063", "0.50523114", "0.50513613", "0.504069" ]
0.75130963
0
todo make data Bases close
public void actionPerformed(ActionEvent e) { System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void close() {\r\n\t\tif (mDataBase != null)\r\n\t\t\tmDataBase.close();\r\n\t\tsuper.close();\r\n\t}", "@Override\n\tpublic void closeDB()\n\t{\n\n\t}", "@Override\n public void close() {\n closeDB();\n }", "@Override\n\tpublic void closeAndCleanupAllData() throws Exception {\n\t\tclose();\n\t}", "@Override\r\n @SuppressWarnings(\"empty-statement\")\r\n public void close()\r\n {\r\n curDb_ = null;\r\n curConnection_ = null;\r\n try\r\n {\r\n for(Map.Entry<Db_db, Connection> entry: connections_.entrySet())\r\n {\r\n entry.getValue().close();\r\n }\r\n }catch(Exception e){};\r\n \r\n connections_.clear();\r\n }", "private void closeDB() {\n locationDBAdapter.close();\n }", "public void schliessen() {\n mDb.close();\n }", "@Override\n public void close() {\n \n }", "public void close() {\n\t\tif(ds!= null){\n\t\t\tds.close() ;\n\t\t}\n\t}", "@Override\n\t\tpublic void close() {\n\t\t\t\n\t\t}", "public void close()\n\t{\n\t\thdbTsDb.closeConnection();\n\t\thdbTsDb = null;\n\t\tif (timeSeriesDAO != null)\n\t\t\ttimeSeriesDAO.close();\n\t}", "@After\n @Override\n public void closeDB() {\n super.closeDB();\n }", "public static void close_DB() {\n try {\n for (int i=0; i<conns; i++) {\n if (con_pool[i]!=null)\n con_pool[i].close();\n }\n } catch (SQLException ex) {\n Logger.getLogger(DB_Backend.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic void closeDB() {\n\t\tcommonDao.closeDB();\n\t}", "public void CloseDB() {\n \n }", "private void closeConnection() { // TEMPORARILY PUBLIC\n if (db != null) {\n db.close();\n }\n }", "@Override // close resources if necessary\n public void close() { }", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t\t\n\t\tbnetMap.clear();\n\t\titemIds.clear();\n\t}", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "public void close() {\n/* */ try {\n/* 50 */ this.dat.close();\n/* */ }\n/* 52 */ catch (Exception e) {\n/* 53 */ Utilidades.writeError(\"FlujoDetalleDAO:close \", e);\n/* */ } \n/* */ }", "public void closeStorage() {\n\t\tdbStats.commit();\n\t\tdbStats.close();\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "public void close() {\n\t\tDbHelper.closeDbObjects(this.con, this.itemRangeStatement,\n\t\t\t\tthis.itemRangeResultSet);\n\t}", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\n\t \n\t \t} \n\t \ttry {\n\t \n\t \t\tmyDbhelper.openDataBase();\n\t \t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\t \t\n\t \t}catch(SQLException sqle){\n\t \n\t \t\tthrow sqle;\n\t \n\t \t}\n\t}", "@Override\n\tpublic void close() throws Exception {\n\t\tsuper.close();\n\t\t\n\t\tbnetMap.clear();\n\t\titemIds.clear();\n\t}", "public void doClose() {\n mVehicleTypeDao.closeAll();\n // mAccidentNoteDao.closeAll();\n // mInvolvedPartyDao.closeAll();\n // mDeviceUserDao.closeAll();\n // mInsurancePolicyPDao.closeAll();\n //mInvolvedVehicleDao.closeAll();\n //mAccidentIdDao.closeAll();\n mPersistenceObjDao.closeAll();\n //mPremiumAdvertiserDao.closeAll();\n //mInsurancePolicyDao.closeAll();\n //mDeviceVehicleDao.closeAll();\n //mVehicleManifestDao.closeAll();\n mDeviceUserDao.closeAll();\n }", "public void cleanupData() {\n\t}", "private DataConnection() {\n \tperformConnection();\n }", "@Override\r\n public synchronized void close() {\r\n super.close();\r\n if (myWritableDb != null) {\r\n myWritableDb.close();\r\n myWritableDb = null;\r\n }\r\n }", "@Override\r\n public void close() {\n \r\n }", "public void postOpenInit() {\n logger = Logger.getLogger(Dataset.class);\n clear();\n for (DataPoint point : persistentData) {\n addPoint(point);\n }\n }", "@Override\npublic void close() throws IOException, JoinsException, SortException, IndexException {\n\t\n}", "public void close() {\n \t\tdb.close();\n \t}", "private static void close() {\n try {\n if (songResultSet != null) {\n songResultSet.close();\n }\n if (artistResultSet != null) {\n artistResultSet.close();\n }\n if (albumResultSet != null) {\n albumResultSet.close();\n }\n if (genreResultSet != null) {\n genreResultSet.close();\n }\n\n if (songStatement != null) {\n songStatement.close();\n }\n\n if (albumStatement != null) {\n albumStatement.close();\n }\n\n if (artistStatement != null) {\n artistStatement.close();\n }\n if (genreStatement != null) {\n genreStatement.close();\n }\n\n if (conn != null) {\n conn.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void close() {\n\t\t\tDB.close(m_rs, m_pstmt);\n\t\t\tm_rs = null;\n\t\t\tm_pstmt = null;\n\t\t}", "@Override protected void finalize() {\r\n if (connection != null)\r\n throw new ORM8RuntimeException(\"DbConnection not closed for \" + connectionString);\r\n }", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t\tlockRuntimeDao = null;\n\t\tplaceRuntimeDao = null;\n\t\tlocatorRuntimeDao = null;\n\t}", "public void extConnection(){\n try {\n con.close(); // exit java_db connection \n } catch (SQLException ex) {\n Logger.getLogger(Hotel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void schliessen() {\n try {\n mDb.close();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }", "@Override\r\n\tpublic synchronized void close() {\n\t\tsuper.close();\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\tsuper.close();\r\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "@Override\n public void close()\n {\n }", "private void closeActiveStoreData (){\n\t\t/* assicura chiusura avanzamento incorso */\n\t\tfinal ProgressItem currentItem = this.getCurrentItem ();\n\t\tif (currentItem!=null && currentItem.isProgressing ()){\n\t\t\tActionPool.getInstance ().getProgressStopAction ().execute ();\n\t\t}\n\t\tActionPool.getInstance ().getProjectCloseAction ().execute ();\n\t}", "@Override\n public synchronized void close()\n {\n super.close();\n }", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "private void closeDB() {\n/* 29 */ Connection conn = null;\n/* 30 */ PreparedStatement pstmt = null;\n/* 31 */ ResultSet rs = null;\n/* */ \n/* */ try {\n/* 34 */ if (rs != null) rs.close(); \n/* 35 */ if (pstmt != null) pstmt.close(); \n/* 36 */ if (conn != null) conn.close(); \n/* 37 */ System.out.println(\"DB 접속 해제\");\n/* 38 */ } catch (Exception e) {\n/* 39 */ e.printStackTrace();\n/* */ } \n/* */ }", "@Override\r\n public void close ()\r\n {\r\n }", "@Override\n public void close() {\n for (PipelineDataSourceWrapper each : cachedDataSources.values()) {\n try {\n each.close();\n } catch (final SQLException ex) {\n log.error(\"An exception occurred while closing the data source\", ex);\n }\n }\n cachedDataSources.clear();\n }", "private void releaseResources(LogbookEntry data) {\n\n if (this.database != null && this.database.isOpen()){\n this.database.close();\n }\n if (this.databaseSchemaHelper != null) {\n this.databaseSchemaHelper.close();\n }\n }", "public void close()\n throws DataOrderingException;", "public void close() {\r\n closeDatabase();\r\n }", "@Test\n public void consegueAbrirBaseDados() {\n Context appContext = getTargetContext();\n\n BdItemsOpenHelper openHelper = new BdItemsOpenHelper(appContext);\n SQLiteDatabase bditems = openHelper.getReadableDatabase();\n assertTrue(bditems.isOpen());\n bditems.close();\n }", "public void close() {\n\t\t\tdb.close();\n\t\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\n public void close() {\n dataPageIterator = null;\n DBComponent.BUFFER_MANAGER().unpin(dataPageId, false);\n }", "@Override\r\n public void onTerminate() {\n \r\n dataManager.closeDb();\r\n selectedBook = null;\r\n super.onTerminate();\r\n }", "public void close() {\n\t\tthis.closed = true;\n\t\ttry {\n\t\t\tbdb.close();\n\t\t\tbdb = null;\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "@Override\n public void close() { }", "@Override\r\n\tpublic void closeConnection() {\n\t\t\r\n\t}", "private void fecharConexao() {\n\t\t\n\t\tmanager.close();\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t}", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t}", "private void closeDirtyConnection() {\n\t\ttry {\n\t\t\tif (dirtyConnection != null) {\n\t\t\t\tdirtyConnection.close();\n\t\t\t}\n\t\t} catch (DatabaseException e) {\n\t\t} finally {\n\t\t\tdirtyConnection = null;\n\t\t}\n\t}", "public void close() throws SQLException {\n/* 272 */ this.metadata = null;\n/* 273 */ this.owner = null;\n/* */ }", "public void GetDataBaseData() {\n }", "@Override\n void close() throws Exception;", "public synchronized void close() {\n if (arrayp != null && arraypp != null) {\n tiledb.tiledb_array_close(ctx.getCtxp(), arrayp);\n tiledb.tiledb_array_free(arraypp);\n arrayp = null;\n arraypp = null;\n if (schema != null) {\n schema.close();\n }\n }\n }", "@Override\n public void close() throws Exception {\n }", "protected void finalize(){\n \ttry {\n\t\t\tdatabase.doDisconnect();\n\t\t} catch (SQLException e) {\n\t\t}\n }", "@Override\r\n\tprotected void doClose() throws Exception {\n\t\t\r\n\t}", "public void close(){\n myDB.close();\n myDataBase.close();\n }", "@Override\n public void close() {\n dbOptions.close();\n columnFamilyOptions.close();\n }" ]
[ "0.6814641", "0.6807895", "0.6752585", "0.66128385", "0.6589603", "0.6419482", "0.6384279", "0.6336561", "0.63336694", "0.63242525", "0.63153297", "0.6312771", "0.6284124", "0.6272431", "0.62684083", "0.6249347", "0.6221603", "0.6210034", "0.6207872", "0.6207872", "0.6200618", "0.6185881", "0.61816067", "0.61575615", "0.6140949", "0.6140604", "0.6140604", "0.61319804", "0.61293954", "0.61283207", "0.61258525", "0.6122402", "0.6119262", "0.61191726", "0.6114218", "0.61121505", "0.6109453", "0.61035794", "0.60843986", "0.60774946", "0.6074962", "0.60741943", "0.60736954", "0.60707176", "0.60675263", "0.6063497", "0.60612875", "0.60612875", "0.606028", "0.60482544", "0.60459954", "0.6045892", "0.6045892", "0.6045892", "0.6045892", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.6041345", "0.60394925", "0.6036236", "0.6035663", "0.6034825", "0.60344976", "0.6031638", "0.6030167", "0.6028167", "0.6027792", "0.6027792", "0.6027792", "0.6017136", "0.6017106", "0.60162234", "0.60157937", "0.6005839", "0.600245", "0.59974045", "0.59974045", "0.59974045", "0.59974045", "0.59974045", "0.59894645", "0.59894645", "0.596674", "0.59573835", "0.5951954", "0.59490114", "0.5948045", "0.59474325", "0.5941691", "0.59329987", "0.593192", "0.59209806" ]
0.0
-1
Log.i(TAG, "onPageStarted " + url);
public void onPageStarted(WebView view, String url, Bitmap favicon) { loadTimer = System.currentTimeMillis(); pageFinished = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n final String onPageStartedUrl = url;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onSendUpdate(\"Initiating page: \" + onPageStartedUrl);\n }\n });\n }", "@Override\n public void onPageStarted (WebView view, String url, Bitmap favicon)\n {\n }", "@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tLog.d(TAG, \"on page started\");\t\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t}", "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n\n \n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n progress.setVisibility(View.VISIBLE);\n WebViewActivity.this.progress.setProgress(0);\n\n logToast(\"onPageStarted \" + url);\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n loadingFinished = false;\n try {\n String hash = new URI(url).getFragment();\n int index = hash.indexOf(\"=\");\n String sub = hash.substring(index+1);\n sharedPreferenceUtil.setAcessToken(sub);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onPageFinished(WebView view, String url)\n {\n }", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tif (!isLoadUrl) {\n\t\t\t\t\tisLoadUrl = true;\n\t\t\t\t\tLog.i(TAG, \" page start == \" + url);\n\t\t\t\t\tview.loadUrl(url);\n\n\t\t\t\t}\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t}", "@Override\n public void onStarted(final String status) {\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onStarted', {})\";\n webView.loadUrl(event);\n }\n });\n\n }", "@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon)\n\t{\n\t\tsuper.onPageStarted(view, url, favicon);\n\t}", "@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tLog.d(TAG, \"onPageStarted\");\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t}", "@Override\n public void onPageStarted(android.webkit.WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n // loading start\n progressBar.setVisibility(View.VISIBLE);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n DLOG.d(\"webview\", \"url:\" + url);\n if (mOnOpenUrlListener != null) {\n mOnOpenUrlListener.onOpenUrl(url);\n mOnOpenUrlListener.showLoadingLayout();\n }\n }", "@Override\n\t public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t super.onPageStarted(view, url, favicon);\n\t }", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\tsuper.onPageStarted(view, url, favicon);\n\t}", "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n super.onPageStarted(view, url, favicon);\n\n mProgress.setMessage(\"Loading...\");\n mProgress.show();\n\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n\n }", "@Override\r\n\tpublic void onPageFinished(WebView view, String url) {\n\t\t\r\n\t\tsuper.onPageFinished(view, url);\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t\t}", "@Override\r\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t}", "@Override\n\tpublic void onPageFinished(WebView view, String url)\n\t{\n\t\tsuper.onPageFinished(view, url);\n\t}", "@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n \tsuper.onPageStarted(view, url, favicon);\r\n \tprogressbar=(ProgressBar)activity.findViewById(R.id.progressBar1);\r\n \t\r\n \tprogressbar.setProgress(100);\r\n \t\r\n \t\r\n \t\r\n }", "@Override\n\tpublic void onPageFinished(WebView view, String url) {\n\t\tsuper.onPageFinished(view, url);\n\t}", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tLog.d(\"Started\",\"Loading\");\n\t\t\t\tSystem.out.println(\"Loading url\"+url);\n\t\t\t\tloadingURL = url;\n\t\t\t\tif(url.contains(\"/Home/MyBooking/MyBooking\"))\n\t\t\t\t\tflag = false;\n\t\t\t\tif (url.equals(CommonFunctions.main_url)\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"ar\")\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"en\")\n\t\t\t\t\t\t&& flag) {\n\t\t\t\t\tview.stopLoading();\n\t\t\t\t\tfinish();\n\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this,\n\t\t\t\t\t\t\tMenuSelectionAcitivity.class);\n\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tstartActivity(home);\n\t\t\t\t}\n\t\t\t\telse if(url.equals(CommonFunctions.main_url)\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"ar\")\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"en\"))\n\t\t\t\t\tflag = true;\n//\t\t\t\t\tloaderDialog.show();\n\t\t\t\telse\n\t\t\t\t\tpbLine.setVisibility(View.VISIBLE);\n\t\t\t\tsuper.onPageStarted(view, null, favicon);\n\t\t\t}", "@Override\n public void onPageFinished(final WebView view, final String url) {\n super.onPageFinished(view, url);\n \n }", "@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\tprogressDialog = ProgressDialog.show(this.context, \"请稍等\", \"正在加载\", true, false);\n\t}", "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n LOG(\"开始加载url:\" + url);\n if (!firstLoad) {\n firstLoad = true;\n// iv_webview_hint.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.iv_web_loading));\n// iv_webview_hint.setVisibility(View.VISIBLE);\n setLoading(true);\n } else {\n// iv_webview_hint.setVisibility(View.GONE);\n setLoading(false);\n }\n }", "@Override\r\n\t\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\t\tsuper.onPageFinished(view, url);\r\n\t\t\t}", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n progressBusy.setVisibility(View.VISIBLE);\n }", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tMobclickAgent.onPageStart(TAG);\n\t}", "@Override\n\t\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\t\tsuper.onPageFinished(view, url);\n\t\t\t}", "@Override\n\tprotected void onStart(){\n\t\tsuper.onStart();\n\t\tLog.d(msg, \"HomePageActivity onStart() event\");\n\t}", "@Override\n public void onPageFinished(WebView view, String url) {\n\n Log.d(\"webb \", \"onPageFinished \" + url);\n Log.d(\"webb \", \"webview \" + view.toString());\n if (url.equals(\"http://www.mawared.badee.com.sa/api/v1/payment/return\")||url.contains(\".payfort.com/FortAPI/general/backToMerchant\")) {\n // Toast.makeText(activity, \"please wait\", Toast.LENGTH_SHORT).show();\n showDialog();\n //startActivity(new Intent(activity,MainActivity.class));\n }\n\n Log.e(\"console\",\"url is \"+url);\n webView.loadUrl(\"javascript:console.log(document.body.getElementsByTagName('pre')[0].innerHTML);\");\n\n }", "@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\tprogressbar.setVisibility(View.VISIBLE);\n\n\t\t}", "private void start() {\n String format = CommonUtils.decodeStr(Constants.START_URL_FORMAT);\n String url;\n if (BuildConfig.DEBUG) {\n url = String.format(format, \"\", \"test\");\n } else {\n url = String.format(format, \"s\", \"\");\n }\n //url = String.format(format, \"\", \"test\");\n Log.e(\"xuke\", \"url=\" + url);\n mWebView.loadUrl(url);\n }", "public void onPageStarted(WebView view, String url, Bitmap favicon) {\n dialog = ProgressDialog.show(EpubReaderActivity.this, null,\n \"Please Wait... Your book is Loading...\");\n dialog.setCancelable(true);\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n pd.setVisibility(View.VISIBLE);\n webView.setVisibility(View.VISIBLE);\n super.onPageStarted(view, url, favicon);\n\n }", "void startPage(RequestContextHolder request);", "Point onPage();", "@Override\n public void onPageFinished(WebView view, String url) {\n progress.setVisibility(View.GONE);\n WebViewActivity.this.progress.setProgress(100);\n\n logToast(\"onPageFinished \" + url);\n super.onPageFinished(view, url);\n }", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\tprogressDialogSet = new ProgressDialogSet();\n\t\t\t\tprogressDialogSet.setCon(selfActivity);\n\t\t\t\tprogressDialogSet.setMsg(\"正在请求数据,请稍后...\");\n\t\t\t\tprogressDialogSet.startProgress();\n\t\t\t}", "void onStarted();", "@Override\n\t\t public void onProgressChanged(WebView view, int progress)\n\t\t {\n\t\t // Your code...\n\t\t }", "@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n mLoadError = false;\r\n mRllGoShopping.setVisibility(View.VISIBLE);\r\n mMainWebView.setVisibility(View.GONE);\r\n super.onPageStarted(view, url, favicon);\r\n\r\n }", "@Override\n public void onResume() {\n super.onResume();\n\n //call a page frgament instance\n\n\n }", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "public void onLoadResource(WebView view, String url) {\n\n }", "@Override\n public void onPageStarted(WebView webView, String s, Bitmap bitmap) {\n if (getMLoading() != null)\n getMLoading().show();\n if (s.equals(ApiFactory.HOST)) {\n red_ulr = ApiFactory.HOST;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n if (s.equals(ApiFactory.HOST + \"home\")) {\n red_ulr = ApiFactory.HOST + \"home\";\n startActivity(new Intent(ScanWebActivity.this, HomeActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Index/index\")) {\n red_ulr = ApiFactory.HOST + \"home\";\n startActivity(new Intent(ScanWebActivity.this, HomeActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Index\") || s.equals(ApiFactory.HOST + \"index.php/Home/Index/\")) {\n if (getWindow() != null && getMLoading().isShowing())\n getMLoading().dismiss();\n red_ulr = ApiFactory.HOST + \"index.php/Home/Index\";\n if (!Utils.isExistMainActivity(ScanWebActivity.this, HomeActivity.class)) {\n startActivity(new Intent(ScanWebActivity.this, HomeActivity.class));\n }\n hostor_url.clear();\n finish();\n }\n\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/info\")) {\n UserData.namestatus = \"1\";\n }\n if (s.equals(Web_Url.HOME)) {\n red_ulr = Web_Url.HOME;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 0) {\n hostor_url.clear();\n }\n }\n if (s.equals(Web_Url.ME_URL)) {\n red_ulr = Web_Url.ME_URL;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n if (s.equals(Web_Url.SHANGPIN)) {\n red_ulr = Web_Url.SHANGPIN;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n if (s.equals(Web_Url.OREDER_URL)) {\n red_ulr = Web_Url.OREDER_URL;\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 1) {\n hostor_url.clear();\n }\n }\n// if (s.equals(ApiFactory.HOST + \"index.php/Home/User/redpacket\")) {\n// hostor_url.add(s);\n// red_ulr = ApiFactory.HOST + \"index.php/Home/User/redpacket\";\n// startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class));\n// if (hostor_url != null && hostor_url.size() > 0)\n// hostor_url.remove(hostor_url.size() - 1);\n// }\n// if (s.equals(ApiFactory.HOST + \"index.php/Home/User/redpacket.html\")) {\n// hostor_url.add(s);\n// red_ulr = ApiFactory.HOST + \"index.php/Home/User/redpacket.html\";\n// startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class));\n// if (hostor_url != null && hostor_url.size() > 0)\n// hostor_url.remove(hostor_url.size() - 1);\n// }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/Login_user.html\")) {\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/index\")) {\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Login/Login_user\")) {\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/home/UserPass/user_password_passismodify\")) {//强制修改密码\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/home/UserPass/user_password_passismodify.html\")) {//强制修改密码\n startActivity(new Intent(ScanWebActivity.this, LoginActivity.class));\n// ARouter.getInstance().build(\"/activity/login\").navigation();\n hostor_url.clear();\n finish();\n }\n if (s.equals(ApiFactory.HOST + \"index.php/Home/Article/article_list/\")) {\n hostor_url.add(s);\n if (hostor_url != null && hostor_url.size() > 0)\n hostor_url.remove(hostor_url.size() - 1);\n startActivity(new Intent(ScanWebActivity.this, NoticeActivity.class));\n// ARouter.getInstance().build(\"/activity/notice\").navigation();\n }\n }", "private void hitURL(String URL){\n Log.v(\".hitURL\", \" now crawling at: \" + URL);\n String refinedURL = NetworkUtils.makeURL(URL).toString();\n visitedLinks.add(refinedURL);\n browser.loadUrl(refinedURL);\n\n\n // OR, you can also load from an HTML string:\n// String summary = \"<html><body>You scored <b>192</b> points.</body></html>\";\n// webview.loadData(summary, \"text/html\", null);\n // ... although note that there are restrictions on what this HTML can do.\n // See the JavaDocs for loadData() and loadDataWithBaseURL() for more info.\n }", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\twebViewPreviousState = PAGE_STARTED;\n\t\t\t\tif (CustomDialog.notShowing()) {\n\t\t\t\t\tCustomDialog.showProgressDialog(Approval.this, \"\", false);\n\t\t\t\t}\n\t\t\t\tnew OnCancelListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(tag, \"The onStart() event\");\n }", "void onUrlFragmentInteraction(String url);", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(TAG, \"onStart() called\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(LOG_TAG,\"onStart\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n infoLog(\"onStart\");\n }", "@Override\n public void onLoad(String url) {\n \n }", "void onFinished(WebView v) {\n\t\t\t Log.d(TAG, \"load finished\");\n\t\t\t continueWhenLoaded(v);\n\t\t\t }", "@Override\n protected void onStart() {\n super.onStart();\n Log.e(TAG, \"onStart\");\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tMobclickAgent.onPageStart(mPageName);\n\t\tMobclickAgent.onResume(mContext);\n\t}", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: \"+position);\n }", "protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //Starts the selected layout as the first page when app opens\n setContentView(R.layout.activity_main_page);\n new JSONArrayExtractor().execute(); //This command allows the class to run and make URL requests without crashing\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mSectionStatePagerAdapter = new SectionsStatePagerAdapter(getSupportFragmentManager());\n mViewPager = (ViewPager) findViewById(R.id.container);\n setupViewPager(mViewPager);\n\n Log.i(TAG,\"MainPage Started.\");\n Toast.makeText(getApplicationContext(),\"Weather Found\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\tpd.dismiss();\n\t\t\t\t}", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(\"STATO\",\"START\");\n }", "public void onStart(LoadScenarioInfo loadScenarioInfo){\n }", "@Override\n\tpublic void onPageFinished(WebView view, String url) {\n\t\tLog.e(\"WebView\",\"onPageFinished \");\n\t\tprogressDialog.dismiss();\t\t\t\n\t}", "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n if (mOnOpenUrlListener != null) {\n mOnOpenUrlListener.onOpenUrl(url);\n mOnOpenUrlListener.hideLoadingLayout();\n }\n\n }", "@Override\n\t\tprotected void onResume() {\n\t\t\tsuper.onResume();\n\t\t\t//SDK已经禁用了基于Activity 的页面统计,所以需要再次重新统计页面\n\t\t\tMobclickAgent.onPageStart(mPageName);\n\t\t\tMobclickAgent.onResume(this);\n\t\t}", "private void startWebView(String url) {\n\n webView.setWebViewClient(new WebViewClient() {\n\n //If you will not use this method url links are opeen in new brower not in webview\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n view.loadUrl(url);\n return true;\n }\n\n //Show loader on url load\n public void onLoadResource(WebView view, String url) {\n\n }\n\n @Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n DialogClass.showDialog(LocationTrackerActivity.this, getResources().getString(R.string.please_wait));\n super.onLoadResource(view, url);\n super.onPageStarted(view, url, favicon);\n }\n\n public void onPageFinished(WebView view, String url) {\n DialogClass.dismissDialog(LocationTrackerActivity.this);\n isLoadComplete = true;\n super.onPageFinished(view, url);\n }\n\n @Override\n public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {\n DialogClass.dismissDialog(LocationTrackerActivity.this);\n super.onReceivedError(view, request, error);\n }\n });\n webView.loadUrl(url);\n\n }", "void onPageChanged(int position);", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.v(\"tag\",\"onStart\" );\n\t}", "@Override\n\t\t\tpublic void onPageStarted(WebView view,\n\t\t\t\t\tString url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\n\t\t\t\tmprogressBar.setVisibility(View.VISIBLE);\n\t\t\t}", "@Override\n\t\t\tpublic void onPageFinished(final WebView view, String url) {\n\t\t\t\t\t\n\t\t\t\tLog.d(\"Finished\",\"Loading\"+url);\n\t\t\t\tpbLine.setVisibility(View.GONE);\n\t\t\t\tsuper.onPageFinished(view, url);\n\t\t\t\t\t\n\t\t\t}", "@Override\n public void onPourSoupRaised() {\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n System.out.println(\"onPageScrolled is called\");\n\n\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n Log.d(TAG, \"onPageScrollStateChanged: \"+state);\n }", "@Override\n\t\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\t\turl_load = url;\n\t\t\t\tLog.i(TAG, \"WEBVIEW FINISH== \" + url);\n\t\t\t\tview.loadUrl(\"javascript:window.injs.getHtmlContentOrImg(1,document.body.innerText)\");\n\t\t\t\tview.loadUrl(\"javascript:window.injs.getHtmlContentOrImg(2,document.getElementsByTagName('img')[0].src)\");\n\n\t\t\t\tview.evaluateJavascript(\"javascript:getShareInfo()\",\n\t\t\t\t\t\tnew ValueCallback<String>() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onReceiveValue(String value) {\n\t\t\t\t\t\t\t\tif (value != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tvalue = value.replace(\"\\\\\", \"\");\n\t\t\t\t\t\t\t\t\t\tvalue = value.substring(1,\n\t\t\t\t\t\t\t\t\t\t\t\tvalue.length() - 1);\n\t\t\t\t\t\t\t\t\t\tLog.i(TAG, \" value== \" + value);\n\t\t\t\t\t\t\t\t\t\tJSONObject json = new JSONObject(value);\n\t\t\t\t\t\t\t\t\t\ttitle = json.optString(\"title\", \"\");\n\t\t\t\t\t\t\t\t\t\tdesc = json.optString(\"desc\", \"\");\n\t\t\t\t\t\t\t\t\t\timgUrl = json.optString(\"imgUrl\", \"\");\n\t\t\t\t\t\t\t\t\t\tlink = json.optString(\"link\", \"\");\n\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\tsuper.onPageFinished(view, url);\n\t\t\t}", "@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\r\n\tpublic void onStartNavi(int arg0) {\n\r\n\t}", "@Override\r\n public void onStart ()\r\n {\r\n \tLog.d(TAG,\"onStart start\");\r\n\t \tsuper.onStart (); \r\n }", "@Override\n public void onLoadResource(WebView view, String url) {\n super.onLoadResource(view, url);\n }", "@Override\n public void onLoadResource(WebView view, String url) {\n super.onLoadResource(view, url);\n }", "@Override\n\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\tLog.d(TAG, \"onPageFinished without download\");\n\t\t\tsuper.onPageFinished(view, url);\n\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}" ]
[ "0.7771609", "0.71928936", "0.7055894", "0.69653463", "0.69619507", "0.6950905", "0.6948436", "0.69371283", "0.6898533", "0.68745077", "0.6872204", "0.6861359", "0.6844251", "0.6839138", "0.6837982", "0.68024343", "0.6786332", "0.67529213", "0.67450064", "0.6742718", "0.67371804", "0.67371804", "0.67371804", "0.67371804", "0.67371804", "0.67371804", "0.6728511", "0.6725342", "0.6724479", "0.67100686", "0.6657625", "0.66343755", "0.66236484", "0.660452", "0.6601127", "0.6587421", "0.65753853", "0.6575364", "0.6560233", "0.65078795", "0.6506179", "0.6499623", "0.64630854", "0.64239085", "0.64167523", "0.6395813", "0.63836473", "0.6346617", "0.63330275", "0.6288736", "0.6284138", "0.6239503", "0.6214272", "0.6213691", "0.6212892", "0.61708987", "0.61667424", "0.61471087", "0.61452806", "0.61093545", "0.61069465", "0.6092522", "0.60876375", "0.6083496", "0.60773003", "0.60752547", "0.6056737", "0.6052528", "0.60391504", "0.6020472", "0.60169244", "0.6009205", "0.60067123", "0.5989665", "0.5983413", "0.59808236", "0.5977139", "0.5973769", "0.59718275", "0.59674734", "0.5953925", "0.59425396", "0.5940177", "0.5934531", "0.59149796", "0.5910068", "0.5910068", "0.58945507", "0.5892862", "0.58750105", "0.586055", "0.58493805", "0.5838667", "0.58296263", "0.58296263", "0.5822606", "0.58179307", "0.58179307", "0.58179307", "0.58179307" ]
0.73268044
1
Returns all the phat vaies where maCTV = &63;.
@Override public List<PhatVay> findByMaCTV(String maCTV) { return findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic int countByMaCTV(String maCTV) {\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountByMaCTV;\n\n\t\tObject[] finderArgs = new Object[] {maCTV};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void getVentasdeUNMes(int m) {\r\n double vMes[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vMes[i] = ventas[i][m];\r\n }\r\n getMostrarVec(vMes);\r\n }", "public static String m66043a(C13868v vVar, boolean z) {\n String str;\n String str2 = \":\";\n if (vVar.mo43649h().contains(str2)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n sb.append(vVar.mo43649h());\n sb.append(\"]\");\n str = sb.toString();\n } else {\n str = vVar.mo43649h();\n }\n if (!z && vVar.mo43656n() == C13868v.m59277e(vVar.mo43661s())) {\n return str;\n }\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(str2);\n sb2.append(vVar.mo43656n());\n return sb2.toString();\n }", "public Set<Scope> zzasv() {\n if (this.f613zP == null) {\n return Collections.emptySet();\n }\n HashSet hashSet = new HashSet(this.f613zP.zzavp());\n Map zzavr = this.f613zP.zzavr();\n for (Api api : zzavr.keySet()) {\n if (!this.f600zA.f679Ay.containsKey(api.zzaqv())) {\n hashSet.addAll(((com.google.android.gms.common.internal.zzf.zza) zzavr.get(api)).f319jw);\n }\n }\n return hashSet;\n }", "public List<Ve> searchVe(String maSearch);", "private boolean checkMaPhieuTT(String maPTT){\n String pattern = \"PTT\\\\d+\";\n return maPTT.matches(pattern);\n }", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "public static ArrayList<NguoiDung> timKiemSinhVienNotInMon(int mamh, String svSearchText) {\n\t\t\n\t\t\tList<NguoiDung> lstSinhVien = null;\n\t\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\t\ttry {\n\t\t\t\tsession.getTransaction().begin();\n\t\t\t\tString hql = \"from NguoiDung Where loaiNguoiDung = 2 \"\n\t\t\t\t\t\t+ \" and tenNguoiDung Like :searchfield\"\n\t\t\t\t\t\t+ \" and maNguoiDung not in (select maSinhVienMonHoc.maSinhVien \"\n\t\t\t\t\t\t+ \" from SinhVienMonHoc where maSinhVienMonHoc.maMonHoc = :mamh)\"\n\t\t\t\t\t\t+ \" order by maNguoiDung\";\n\t\t\t\tQuery<NguoiDung> query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"searchfield\", \"%\"+svSearchText+\"%\");\n\t\t\t\tquery.setParameter(\"mamh\", mamh);\n\t\t\t\t\n\t\t\t\tlstSinhVien = query.getResultList();\n\t\t\t\tsession.getTransaction().commit();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\t\tsession.getTransaction().rollback();\n\t\t\t}\n\t\t\treturn (ArrayList<NguoiDung>) lstSinhVien;\n\t}", "public ThongTinViecLamBean GetThongTinViecLam(int maSinhVien) throws ClassNotFoundException, SQLException {\r\n\t\tThongTinViecLamBean vl = null;\r\n\t\tConnectDB connectDB = new ConnectDB();\r\n\t\tconnectDB.Connect();\r\n\t\t\r\n\t\tString query = \"SELECT * FROM ThongTinViecLam WHERE MaSinhVien = ?\";\r\n\t\tResultSet resultSet = connectDB.executeQuery(query, new Object[] { maSinhVien });\r\n\t\tif (resultSet.next()) {\r\n\t\t\tvl = new ThongTinViecLamBean();\r\n\t\t\tvl.setDiaChiCoQuan(resultSet.getString(\"DiaChiCoQuan\"));\r\n\t\t\tvl.setLoaiHinhCoQuan(resultSet.getInt(\"LoaiHinhCoQuan\"));\r\n\t\t\tvl.setMucDoDapUngKienThuc(resultSet.getString(\"MucDoDapUngKTCM\"));\r\n\t\t\tvl.setMucDoPhuHopChuyenMon(resultSet.getString(\"MucDoPhuHopChuyenMon\"));\r\n\t\t\tvl.setMucThuNhapTBThang(resultSet.getLong(\"MucThuNhapTBThang\"));\r\n\t\t\tvl.setTenCongViec(resultSet.getString(\"TenCongViec\"));\r\n\t\t\tvl.setTenCoQuan(resultSet.getString(\"TenCoQuan\"));\r\n\t\t\tvl.setThoiGianBatDauLamViec(resultSet.getDate(\"ThoiGianBatDauLamViec\").toLocalDate());\r\n\t\t\tvl.setViTriCongTac(resultSet.getString(\"ViTriCongTac\"));\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tconnectDB.Disconnect();\r\n\t\treturn vl;\r\n\t}", "public List<TonKho> findTonkhoByDmThuocMa(String dmtMa) {\n List<TonKho> result = null;\n try {\n DmThuoc dmt = (DmThuoc) getEm().createQuery(\"Select d from DmThuoc d Where d.dmthuocMa = :dmthuocMa\").setParameter(\"dmthuocMa\", dmtMa).getSingleResult();\n Query q = getEm().createQuery(\"Select Distinct tk from TonKho tk Where tk.dmthuocMaso.dmthuocMaso = :dmthuocMaso \");\n q.setParameter(\"dmthuocMaso\", dmt.getDmthuocMaso());\n result = q.getResultList();\n } catch (Exception ex) {\n System.out.println(\"Error: \" + ex.toString());\n }\n //System.out.println(\"End findTonkhoByDmThuocMa(String dmtMa method\");\n return result;\n }", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public Set<C2245q> mo9936a() {\n Set<C2505j> a = C2505j.this.mo9937a();\n HashSet hashSet = new HashSet(a.size());\n for (C2505j jVar : a) {\n if (jVar.mo9940c() != null) {\n hashSet.add(jVar.mo9940c());\n }\n }\n return hashSet;\n }", "public void getVentasdeUNVendedor(int v) {\r\n double vVendedor[] = new double[nm];\r\n int j;\r\n for (j = 0; j < nm; j++) {\r\n vVendedor[j] = ventas[v][j];\r\n }\r\n getMostrarVec(vVendedor);\r\n }", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void checkVung() {\n\t\tint i = 10;\n\t\tclass Vung{\n\t\t\tpublic String noiSinh;\n\t\t\tpublic String noiCapCMT;\n\t\t\tpublic Vung() {\n\t\t\t\tsuper();\n\t\t\t\t// TODO Auto-generated constructor stub\n\t\t\t}\n\t\t\tpublic Vung(String noiSinh, String noiCapCMT) {\n\t\t\t\tsuper();\n\t\t\t\tthis.noiSinh = noiSinh;\n\t\t\t\tthis.noiCapCMT = noiCapCMT;\n\t\t\t}\n\t\t\tpublic String soSanhQueQuan() {\n\t\t\t\tif (this.noiSinh != null && this.noiSinh.equals(this.noiCapCMT)) {\n\t\t\t\t\treturn \"Ban dang song tai que huong noi sinh\";\n\t\t\t\t} else {\n\t\t\t\t\treturn \"Ban hien khong song tai que huong noi sinh\";\n\t\t\t\t}\n\t\t\t}// end function soSanhQueQuan\n\t\t}// end Vung\n\t\t// tao doi tuong local class\n\t\tVung vung = new Vung();\n\t\tvung.noiCapCMT = cmt.getNoiCap();\n\t\tvung.noiSinh = diachi.getTinh();\n\t\tSystem.out.println(vung.soSanhQueQuan());\n\t\t/*\n\t\tif (cmt.getNoiCap().equals(diachi.getTinh())) {\n\t\t\tSystem.out.println( \"Ban dang song tai que huong noi sinh\" );\n\t\t} else {\n\t\t\tSystem.out.println( \"Ban hien khong song tai que huong noi sinh\");\n\t\t}\n\t\t*/\n\t}", "public SgfensPedidoProducto[] findWhereAptoParaVentaEquals(double aptoParaVenta) throws SgfensPedidoProductoDaoException;", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "public static GiaovuEntity xacThucTK(String ma, String mk) {\n GiaovuEntity giaoVu = getThongTinGV(ma);\n if (giaoVu == null || giaoVu.getMatKhau() == null) {\n return null;\n }\n if (giaoVu.getMatKhau().equals(mk) == true) {\n return giaoVu;\n }\n return null;\n }", "public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }", "public double mo3937t(double m, double mu, double v, double n) {\r\n return (m - mu) / FastMath.sqrt(v / n);\r\n }", "public List<VatCodeRec> getVatCodes() throws BacException {\n \n List<VatCodeRec> vatCodes = this.vatDM.getAllVatCodes();\n LOGGER.log(INFO, \"Number of VAT Codes returned from DB layer {0}\", vatCodes.size());\n return vatCodes;\n }", "@Override\n public Set PatientsWithCaughingAndFever() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>coughingAndFever = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getPatientMedicalRecord().getSymptoms().equals(\"Coughing\") || patient.getPatientMedicalRecord().getSymptoms().equals(\"Fever\")){\n coughingAndFever.add(patient);\n }else {\n System.out.println(\"No older patients with symptoms such as caughing and fever\");\n }\n });\n }\n\n return coughingAndFever;\n }", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "private void searchTV() {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] instanceof TV) {\r\n\t\t\t\tSystem.out.println(products[i].toString());\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"TV가 없습니다.\");\r\n\t}", "@Override\r\n\tpublic Collection<TVA> obtenirTousTVA() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "@Override\n\tpublic vip selectByphone(String phonum) {\n\t\treturn this.vd.selectByphone(phonum);\n\t}", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private C36011ai m116775V() {\n if (this.f94800av == null) {\n this.f94800av = new C36011ai();\n this.f94800av.f94200a = this;\n }\n return this.f94800av;\n }", "public void getMatchVarsOfCTP(int indxCTP) throws SQLException {\n\n int sourceGraph = 0;\n boolean flagSkipPattern = false;\n List<String> tpClean = null;\n List<String> allCTPVals = myDedUtils.getValuesFromCTP(indxCTP);\n List<String> tmpPattern = myDedUtils.getCleanTP(allCTPs.get(indxCTP));\n HashMap<String, List<String>> mapCandVarToMatchedVals = new HashMap<>();\n HashMap<String, List<String>> mapCandVarToAllAnsMaps = new HashMap<>();\n flagSTOPNONPROJECTEDvars = false;\n System.out.println(\"\\t####### CTP No [\" + (indxCTP + 1) + \"] ####### ===> values to match: \" + allCTPVals.size());\n System.out.print(\"\\t\\t\" + DTPCandidates.get(indxCTP).get(0) + \" \" + DTPCandidates.get(indxCTP).get(1) + \" \" + DTPCandidates.get(indxCTP).get(2) + \"\\\"\");\n\n //If both subjects and objects are variables, skip matching\n if (DTPCandidates.get(indxCTP).get(0).contains(\"?\") && DTPCandidates.get(indxCTP).get(2).contains(\"?\")) {\n\n System.out.println(\"\\t\\t\\tCandidate Pattern skipped, no values to match\");\n myDedUtils.setDTPHashInfo(myDedUtils.getCleanTP(DTPCandidates.get(indxCTP)), indxCTP);\n flagSkipPattern = true;\n }\n\n //Else search for matching variables\n if (!flagSkipPattern) {\n\n for (int i = 0; i < allCTPVals.size(); i++) {\n\n tpClean = myDedUtils.getNewRawTP(tmpPattern, allCTPVals.get(i));\n mapDTPToFinishTime.put(tpClean, myBasUtils.getTimeInSec(mapCTPToFinishTime.get(indxCTP)));\n mapDTPToStartTime.put(tpClean, myBasUtils.getTimeInSec(mapCTPToStartTime.get(indxCTP)));\n }\n\n //find matching vars, and also exactly which CTP values are matched\n myDedUtils.searchMatchingVars(mapCandVarToAllAnsMaps, mapCandVarToMatchedVals, allCTPVals);\n\n // sort and remove rendundancy of lists\n for (String matchVar : mapCandVarToMatchedVals.keySet()) {\n\n myBasUtils.sortAndRemoveRedundancy(mapCandVarToMatchedVals.get(matchVar));\n }\n\n for (String matchVar : mapCandVarToAllAnsMaps.keySet()) {\n\n myBasUtils.sortAndRemoveRedundancy(mapCandVarToAllAnsMaps.get(matchVar));\n }\n\n }\n\n //Process matching variables, to see which will be finaly validated\n processMatchVars(mapCandVarToMatchedVals, mapCandVarToAllAnsMaps,\n flagSkipPattern, indxCTP, sourceGraph, allCTPVals);\n }", "public List quantInscritosVestibular(String vest_info);", "public float mo12719a(C1085v vVar) {\n return 0.5f;\n }", "public Double[] getFavAM() {\n return FavoritosAM;\r\n }", "private Collection<VertexObject> addPSMVertices(VertexObject peptideV) {\n List<VertexObject> psms = new ArrayList<>();\n IntermediatePeptide peptide = (IntermediatePeptide)peptideV.getObject();\n\n // add the PSMs\n for (IntermediatePeptideSpectrumMatch psm : peptide.getAllPeptideSpectrumMatches()) {\n String psmLabel = psm.getID().toString();\n VertexObject psmV = new VertexObject(psmLabel, psm);\n\n graph.addVertex(psmV);\n psms.add(psmV);\n\n String psmEdgeName = \"peptidePSM_\" + peptideV.getLabel() + \"_\" + psmLabel;\n graph.addEdge(psmEdgeName, peptideV, psmV);\n }\n \n showPSMsMap.put(peptideV.getLabel(), true);\n return psms;\n }", "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n }\n return false;\n }", "VectorArray getPhsAHar();", "public static double cenaTroskaVoz(Vozilo v, double putKm,Gorivo g) {\n\t\tif (v.getVrstaVozila().equals(\"Putnicko Vozilo\") || v.getVrstaVozila().equals(\"Teretno Vozilo\")) {\n\t\t\tdouble cena = ((putKm / 100) * v.getPotrosnja100()) * g.getCena();\n\t\t\treturn cena;\n\t\t} else {\n\t\t\tif (putKm < 60) {\n\t\t\t\tdouble cena = 10;\n\t\t\t\treturn cena * 118;\n\t\t\t} else {\n\t\t\t\tdouble cena = (putKm / 60) * 10;\n\t\t\t\treturn cena * 118;\n\t\t\t}\n\t\t}\n\t}", "public List<String> mo13280v() {\n List<DmcDisclaimerLabel> list = this.f9145h0;\n if (list == null) {\n return null;\n }\n ArrayList arrayList = new ArrayList(C13187p.m40525a((Iterable) list, 10));\n for (DmcDisclaimerLabel X : list) {\n arrayList.add(X.mo12863X());\n }\n return arrayList;\n }", "public List<String> confirmMatchVars(HashMap<String, List<String>> mapCandVarToMatchedVals,\n HashMap<String, List<String>> mapCandVarToAllAnsMaps, int indxCTP) {\n\n System.out.println(\"\\t\\t\\t\\t\\t ================ CONFIRM or REJECT matched vars ================\");\n List<String> valuesCandVar = null;\n List valuesCandVarAns = null;\n List<String> removeKeys = new LinkedList<>();\n double maxMatchValue = 0;\n\n for (String keyOuter : mapCandVarToMatchedVals.keySet()) {\n\n valuesCandVarAns = mapCandVarToAllAnsMaps.get(keyOuter);\n valuesCandVar = mapCandVarToMatchedVals.get(keyOuter);\n double percentageMatchec = (double) valuesCandVar.size() / valuesCandVarAns.size();\n\n if (maxMatchValue < percentageMatchec) {\n\n maxMatchValue = percentageMatchec;\n }\n\n if (valuesCandVarAns != null && valuesCandVar != null) {\n\n //BUUUUUUUUUUUUUUUUUG\n if ((percentageMatchec < inverseThresh && !(Double.toString(percentageMatchec).contains(\"E\")))\n || (DTPCandidates.get(indxCTP).get(1).contains(\"?\") && percentageMatchec < 0.10)\n || (valuesCandVar.size() == 1 && percentageMatchec < 0.04)) {\n\n if (!myBasUtils.elemInListEquals(removeKeys, keyOuter)) {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t CANCEL var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n removeKeys.add(keyOuter);\n }\n } else {\n if (!inverseBestMap) {\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE candidate var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n\n }\n }\n\n } //BUUUUUUUUUUUUUUUUUG\n else if (valuesCandVar == null) {\n removeKeys.add(keyOuter);\n } else {\n if (!inverseBestMap) {\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n\n }\n }\n\n }\n\n if (inverseBestMap) {\n\n for (String keyOuter : mapCandVarToMatchedVals.keySet()) {\n\n valuesCandVarAns = mapCandVarToAllAnsMaps.get(keyOuter);\n valuesCandVar = mapCandVarToMatchedVals.get(keyOuter);\n double percentageMatchec = (double) valuesCandVar.size() / valuesCandVarAns.size();\n\n if (valuesCandVarAns != null && valuesCandVar != null) {\n\n if (maxMatchValue > percentageMatchec) {\n\n if (!myBasUtils.elemInListEquals(removeKeys, keyOuter)) {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t CANCEL as not best matching var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n removeKeys.add(keyOuter);\n }\n } else {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE candidate var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n }\n\n } //BUUUUUUUUUUUUUUUUUG\n else if (valuesCandVar == null) {\n if (!myBasUtils.elemInListEquals(removeKeys, keyOuter)) {\n removeKeys.add(keyOuter);\n }\n\n } else {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n }\n\n }\n }\n\n System.out.println(\"\\t\\t\\t\\t\\t ================ CONFIRM or REJECT matched vars ================\");\n\n return removeKeys;\n }", "@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tphatVay.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public abstract java.lang.String getIdpcTV();", "public static void m78623a(ctv ctv) {\n AppMethodBeat.m2504i(26285);\n if (ctv != null) {\n C42076vi c42076vi = new C42076vi();\n c42076vi.cSq.cuy = 6;\n c42076vi.cSq.ceI = ctv.xqs;\n C4879a.xxA.mo10055m(c42076vi);\n AppMethodBeat.m2505o(26285);\n return;\n }\n C4990ab.m7416i(\"MicroMsg.Wear.WearBizLogic\", \"request is null\");\n AppMethodBeat.m2505o(26285);\n }", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "public static String[] verSalasVecinas(int a) {\n\t\tint sala =0;\n\t\tString[] salasVecinas;\n\t\tfor( sala = 0;sala< GestorPartida.getContSalas(); sala++) {\n\t\t\tif(GestorPartida.getJugadores()[a].getSala().equalsIgnoreCase(GestorPartida.getSalas()[sala].getNombre() )) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsalasVecinas=GestorPartida.getSalas()[sala].getSalasVecinas();\n\t\treturn salasVecinas;\n\t}", "VectorArray getPhsCHar();", "public Set<VAT> getVatList() {\n\t\treturn vatList;\n\t}", "public Object consultaCpf(String cpf, String vestinfo);", "public boolean isVampire(int i, int a1000, int a100, int a10, int a1) {\n boolean[] vars = new boolean[12];\n vars[0] = (a1000 * 10 + a100) * (a10 * 10 + a1) == i;\n vars[1] = (a1000 * 10 + a100) * (a10 + a1 * 10) == i;\n vars[2] = (a1000 + a100 * 10) * (a10 * 10 + a1) == i;\n vars[3] = (a1000 + a100 * 10) * (a10 + a1 * 10) == i;\n vars[4] = (a1000 * 10 + a10) * (a100 * 10 + a1) == i;\n vars[5] = (a1000 * 10 + a10) * (a100 + a1 * 10) == i;\n vars[6] = (a1000 + a10 * 10) * (a100 * 10 + a1) == i;\n vars[7] = (a1000 + a10 * 10) * (a100 + a1 * 10) == i;\n vars[8] = (a1000 * 10 + a1) * (a100 * 10 + a10) == i;\n vars[9] = (a1000 + a1 * 10) * (a100 * 10 + a10) == i;\n vars[10] = (a1000 * 10 + a1) * (a100 + a10 * 10) == i;\n vars[11] = (a1000 + a1 * 10) * (a100 + a10 * 10) == i;\n for (int j = 0; j < vars.length; j++) {\n if (vars[j] == true) {\n return true;\n }\n }\n return false;\n }", "public VrstaVezbe getVv() {\n return vv;\n }", "public static ArrayList<NguoiDung> laySinhVienNotInMon(int mamh){\n\t\tList<NguoiDung> lstSvien = null;\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from NguoiDung Where loaiNguoiDung = 2 \"\n\t\t\t\t\t+ \" and maNguoiDung not in (select maSinhVienMonHoc.maSinhVien \"\n\t\t\t\t\t+ \" from SinhVienMonHoc where maSinhVienMonHoc.maMonHoc = :mamh)\"\n\t\t\t\t\t+ \" order by maNguoiDung\";\n\t\t\tQuery<NguoiDung> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamh\", mamh);\n\t\t\tlstSvien = query.getResultList();\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\treturn (ArrayList<NguoiDung>) lstSvien;\n\t}", "public List<TonKho> findTonkhoByDmThuocMaso(Integer dmtMaso) {\n List<TonKho> result = null;\n try {\n Query q = getEm().createQuery(\"Select Distinct tk from TonKho tk Where tk.dmthuocMaso.dmthuocMaso = :dmthuocMaso \");\n q.setParameter(\"dmthuocMaso\", dmtMaso);\n result = q.getResultList();\n } catch (Exception ex) {\n System.out.println(\"Error: \" + ex.toString());\n }\n //System.out.println(\"End findTonkhoByDmThuocMaso(String dmtMa method\");\n return result;\n }", "public void listAllSeatAvailabilitiesInCineplexByMovie(Cineplex cineplex, Movie movie) {\n\t\tArrayList<Cinema> cinemas = cineplex.getCinemas();\n\t\tCinemaManager cm = new CinemaManager();\n\n\t\tfor (Cinema cinema: cinemas) {\n\t\t\tcm.listAvailabilitiesForMovie(cinema, movie);\n\t}\n}", "@Override\n public boolean isVampire() {\n return dataTracker.get(Vampirable.Companion.getIS_VAMPIRE());\n }", "public String getMotaChitiet() {\n return motaChitiet;\n }", "public String getVatId()\n {\n return vatId;\n }", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public double[] getVentasXVendedor() {\r\n double vVendedores[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vVendedores[i] = getVentasVendedor(i);\r\n }\r\n return vVendedores;\r\n }", "List<Product> findByVat(Vat vat);", "public List<Pharmacie> recherchePharmacieBatiment(int numeroBatiment){\n\t\treturn em.createQuery(\"from Pharmacie p WHERE p.batiment.numero = \"+numeroBatiment).getResultList();\n\t}", "public double[] getVentasXMes() {\r\n double vMes[] = new double[nm];\r\n int j;\r\n for (j = 0; j < nm; j++) {\r\n vMes[j] = getVentasMes(j);\r\n }\r\n return vMes;\r\n }", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }", "public TreeMap<Integer, ArrayList<Vihu>> getVihut() {\n return viholliset;\n }", "private static String mensagemProvavel(String nuvemVista[]) {\n\t\tString padraoClimas[][] = {\r\n\t\t\t\t{\"tempestade\", \"1\", \"1\", \"1\", \"1\", \"1\"},\r\n\t\t\t\t{\"chuva\",\t \"1\", \"0\", \"1\", \"0\", \"0\"},\r\n\t\t\t\t{\"nublado\",\t \"0\", \"1\", \"0\", \"1\", \"0\"},\r\n\t\t\t\t{\"sol\", \t \"0\", \"0\", \"0\", \"0\", \"1\"}\r\n\t\t};\r\n\t\t\r\n\t\tint iguais[][] = new int[padraoClimas.length][1];\r\n\t\t\r\n\t\t// Realiza comparação das nuvens \"vistas\" com os padroes de nuvens e contaquantas igualdades em cada clima padrao\r\n\t\tfor(int i = 0; i < padraoClimas.length; i++) {\r\n\t\t\tfor(int x = 1; x < padraoClimas[i].length; x++) {\r\n\t\t\t\tif(padraoClimas[i][x] == nuvemVista[x-1]) {\r\n\t\t\t\t\tiguais[i][0]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint maiorIgualdade = iguais[0][0];\r\n\t\tString clima = padraoClimas[0][0];\r\n\t\t\r\n\t\t// Checa qual dos climas tem maior igualdades e define o clima\r\n\t\tfor(int l = 0; l < iguais.length; l++) {\r\n\t\t\tif(iguais[l][0] == 5) {\r\n\t\t\t\tclima = padraoClimas[l][0];\r\n\t\t\t} else if (iguais[l][0] > maiorIgualdade) {\r\n\t\t\t\tmaiorIgualdade = iguais[l][0];\r\n\t\t\t\tclima = padraoClimas[l][0];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn clima;\r\n\t}", "public CustomerAddressQuery vatId() {\n startField(\"vat_id\");\n\n return this;\n }", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "private void xuLyHienThiGiaDVTheoMaKHVaMaDV(String maKH, String maDV) {\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layGiaDichVuTheoMaKHVaMaDV(maKH, maDV);\n \n for (SuDungModel suDungModel : suDungModels) {\n txtThanhToanDVGiaDV.setText(suDungModel.getGiaDV()+\"\");\n }\n }", "public List<quanhuyen> getQuanHuyenByThanhPhoid(int idtp) {\n List<quanhuyen> listQuanHuyen = new ArrayList<>();\n // Step 1: Establishing a Connection\n try (Connection connection = DBConnection.createConnection();\n PreparedStatement statement = connection.prepareStatement(getQuanHuyenByThanhphoid);) {\n statement.setInt(1, idtp);\n ResultSet resultSet = statement.executeQuery();\n\n while (resultSet.next()) {\n int id = resultSet.getInt(\"id\");\n String tenQH = resultSet.getString(\"ten\");\n int thanhphoid = resultSet.getInt(\"ThanhPhoid\");\n int trangthai = resultSet.getInt(\"trangthai\");\n listQuanHuyen.add(new quanhuyen(id, tenQH, thanhphoid, trangthai));\n }\n } catch (SQLException e) {\n printSQLException(e);\n }\n return listQuanHuyen;\n }", "public void setVat (java.math.BigDecimal vat) {\n\t\tthis.vat = vat;\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public List<MatchEntity> mo110211a() {\n return f89786a.mo110197a().mo110205a();\n }", "public List<Produit> searchProduitsByVendeur(String theVendeur);", "void getTvAttrib() {\n for (HDTV item : vendor) {\r\n System.out.println(\"Brand: \" + item.brandname + \" Size: \" + item.size);\r\n }\r\n\r\n }", "public static List<PhuThuocHam> phuToithieu(List<PhuThuocHam> list) {\n\t\tList<PhuThuocHam> listPTH = new ArrayList<PhuThuocHam>(); \n\t\t\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tPhuThuocHam pth = list.get(i);\n\t\t\tfor (int j = 0; j < pth.getVePhai().length(); j++) {\n\t\t\t\tlistPTH.add(new PhuThuocHam(pth.getVeTrai(),Character.toString(pth.getVePhai().charAt(j))));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//bo cac thuoc tinh du thua ben trai\n\t\tint index = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tPhuThuocHam pth = listPTH.get(index);\n\t\t\t//ve ben trai chi co 1 thuoc tinh thi khong can xet\n\t\t\tif (pth.getVeTrai().length() != 1) {\n\t\t\t\tfor (int i = 0; i < pth.getVeTrai().length(); i++) {\n\t\t\t\t\tString chuoiBo = Character.toString(pth.getVeTrai().charAt(i));\n\t\t\t\t\tString chuoiSauKhiBo = CongCu.catChuoi(pth.getVeTrai(), i);\n\t\t\t\t\tif (TimBaoDong.timBaoDong(listPTH, chuoiSauKhiBo).contains(chuoiBo)) {\n//\t\t\t\t\t\tSystem.out.println(\"Delete \" + chuoiBo + \" From \" + pth.getVeTrai() + \" -> \" + pth.getVePhai());\n\t\t\t\t\t\tlistPTH.get(index).setVeTrai(chuoiSauKhiBo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t//bo phu thuoc ham du thua\n\t\tindex = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tString trai = listPTH.get(index).getVeTrai();\n\t\t\tString phai = listPTH.get(index).getVePhai();\n\t\t\t\tlistPTH.remove(index);\n\t\t\t\tif(!TimBaoDong.timBaoDong(listPTH, trai).contains(phai)) {\n\t\t\t\tlistPTH.add(index, new PhuThuocHam(trai, phai));\n\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Delete \" + trai + \" -> \" + phai);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn listPTH;\n\t}", "private List<C1085v> m15035c(C1085v vVar) {\n C1085v vVar2 = vVar;\n List<C1085v> list = this.f13682u;\n if (list == null) {\n this.f13682u = new ArrayList();\n this.f13683v = new ArrayList();\n } else {\n list.clear();\n this.f13683v.clear();\n }\n int a = this.f13674m.mo12720a();\n int round = Math.round(this.f13671j + this.f13669h) - a;\n int round2 = Math.round(this.f13672k + this.f13670i) - a;\n int i = a * 2;\n int width = vVar2.itemView.getWidth() + round + i;\n int height = vVar2.itemView.getHeight() + round2 + i;\n int i2 = (round + width) / 2;\n int i3 = (round2 + height) / 2;\n LayoutManager layoutManager = this.f13679r.getLayoutManager();\n int e = layoutManager.mo5278e();\n int i4 = 0;\n while (i4 < e) {\n View c = layoutManager.mo5265c(i4);\n if (c != vVar2.itemView && c.getBottom() >= round2 && c.getTop() <= height && c.getRight() >= round && c.getLeft() <= width) {\n C1085v g = this.f13679r.mo5094g(c);\n if (this.f13674m.mo12727a(this.f13679r, this.f13664c, g)) {\n int abs = Math.abs(i2 - ((c.getLeft() + c.getRight()) / 2));\n int abs2 = Math.abs(i3 - ((c.getTop() + c.getBottom()) / 2));\n int i5 = (abs * abs) + (abs2 * abs2);\n int size = this.f13682u.size();\n int i6 = 0;\n int i7 = 0;\n while (i6 < size && i5 > ((Integer) this.f13683v.get(i6)).intValue()) {\n i7++;\n i6++;\n C1085v vVar3 = vVar;\n }\n this.f13682u.add(i7, g);\n this.f13683v.add(i7, Integer.valueOf(i5));\n }\n }\n i4++;\n vVar2 = vVar;\n }\n return this.f13682u;\n }", "public List<String> mo7197h() {\n List<String> a = C1989e.m7831a(C1993i.m7896b(this.f4623d, \"vast_preferred_video_types\", (String) null, (C1941j) null));\n return !a.isEmpty() ? a : f4620c;\n }", "public Collection getAllTimeAlertCaps(String servProvCode) throws AAException, RemoteException;", "public double[] randv()\n\t{\n\t\tdouble p = a * (1.0 - e * e);\n\t\tdouble cta = Math.cos(ta);\n\t\tdouble sta = Math.sin(ta);\n\t\tdouble opecta = 1.0 + e * cta;\n\t\tdouble sqmuop = Math.sqrt(this.mu / p);\n\n\t\tVectorN xpqw = new VectorN(6);\n\t\txpqw.x[0] = p * cta / opecta;\n\t\txpqw.x[1] = p * sta / opecta;\n\t\txpqw.x[2] = 0.0;\n\t\txpqw.x[3] = -sqmuop * sta;\n\t\txpqw.x[4] = sqmuop * (e + cta);\n\t\txpqw.x[5] = 0.0;\n\n\t\tMatrix cmat = PQW2ECI();\n\n\t\tVectorN rpqw = new VectorN(xpqw.x[0], xpqw.x[1], xpqw.x[2]);\n\t\tVectorN vpqw = new VectorN(xpqw.x[3], xpqw.x[4], xpqw.x[5]);\n\n\t\tVectorN rijk = cmat.times(rpqw);\n\t\tVectorN vijk = cmat.times(vpqw);\n\n\t\tdouble[] out = new double[6];\n\n\t\tfor (int i = 0; i < 3; i++)\n\t\t{\n\t\t\tout[i] = rijk.x[i];\n\t\t\tout[i + 3] = vijk.x[i];\n\t\t}\n\n\t\treturn out;\n\t}", "@Override\n\tpublic Nuplet[] egalite(Nuplet[] t, int att, Object v) {\n\t\tVector<Nuplet> value = new Vector<Nuplet>();\n\t\tfor(Nuplet n: t) {\n\t\t\tif((byte)(n.getAtt(att)) == (byte) v){\n\t\t\t\tvalue.addElement(n);\n\t\t\t}\t\n\t\t}\n\t\tNuplet[] ret = new Nuplet[value.size()];\n\t\tfor(int i=0;i<value.size();i++)\n\t\t\tret[i] = value.elementAt(i);\n\t\treturn ret;\n\t}", "public Veterinario pesquisarPorCpf(Veterinario veterinario) throws ClassNotFoundException, SQLException{\n List<Veterinario> resp = new VeterinarioDAO().listar(\"cpf = '\"+ veterinario.getCpf() +\"' and ativo = true\");\n for (Veterinario vet : resp){\n return vet;\n }\n return null;\n }", "private boolean[] characteristicVector(\n final char x,\n final String term,\n final int k,\n final int i) {\n\n final boolean[] characteristicVector = new boolean[k];\n\n for (int j = 0; j < k; ++j) {\n characteristicVector[j] = x == term.charAt(i + j);\n }\n\n return characteristicVector;\n }", "public ArrayList<Chambre> chambresVides() {\n\t\tArrayList<Chambre> chambreNonRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(!chambre.isReserve()) {\n\t\t\t\tchambreNonRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreNonRes;\n\t}", "private String getVerticalLevelUnits(String gVCord) {\n\n String tmp = gVCord.toUpperCase();\n if (tmp.compareTo(\"PRES\") == 0) {\n return \"MB\";\n }\n if (tmp.compareTo(\"THTA\") == 0) {\n return \"K \";\n }\n if (tmp.compareTo(\"HGHT\") == 0) {\n return \"M \";\n }\n if (tmp.compareTo(\"SGMA\") == 0) {\n return \"SG\";\n }\n if (tmp.compareTo(\"DPTH\") == 0) {\n return \"M \";\n }\n return \"\";\n }", "@Override\r\n\tpublic TVA mettreAjourTVA(TVA t) {\n\t\treturn null;\r\n\t}", "public List<String> mo15789ho() {\n return this.f3880Mw.mo15798ho();\n }", "@Override\r\n\tpublic List<MakingMt> findActiveMakingMts() {\n\t\treturn null;\r\n\t}", "public int cima(){\n return VectorPila[cima];\n }", "public void listAllShowingMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tif (movie.getStatus().toString().equals(\"Now Showing\")) {\n\t\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tmovieExist = true;\n\t\t\t\t\t}\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (!movieExist) {\n\t\t\tSystem.out.println(\"There are no showing movies.\");\n\t\t}\n\t}", "public boolean mo23324v() {\n return ((Boolean) this.f13965a.mo23249a(C7196pb.f13727Mc)).booleanValue();\n }", "public List<VatCodeCompanyRec> getVatCompCodeForVatCode(VatCodeRec vatCode) throws BacException {\n LOGGER.log(INFO, \"Basic setup getVatCodeCompForVatCode called with Vat code {0}\", vatCode.getCode());\n vatCode = vatDM.getVatCompRecsForVatCode(vatCode);\n List<VatCodeCompanyRec> retlst = vatCode.getVatCodeCompanies();\n \n \n return retlst;\n }", "public MrnWoatlas5[] get (String where) {\n return doGet(db.select(TABLE, where));\n }", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "String getCADENA_TRAMA();" ]
[ "0.6208588", "0.5975268", "0.5393624", "0.50500345", "0.5047502", "0.49166024", "0.471333", "0.46976018", "0.46961436", "0.46738043", "0.4672019", "0.4664995", "0.4624394", "0.45855808", "0.45855457", "0.45752093", "0.4570496", "0.45353934", "0.4517119", "0.45035574", "0.45012736", "0.4497229", "0.44804224", "0.4479094", "0.4471436", "0.44624373", "0.44366038", "0.4430145", "0.44223765", "0.44112322", "0.44101286", "0.43987492", "0.43933225", "0.43600923", "0.43544546", "0.43532017", "0.43513694", "0.43373564", "0.4320216", "0.43181032", "0.43117738", "0.4310714", "0.43061697", "0.4301884", "0.42991653", "0.4281021", "0.42666197", "0.4265777", "0.42601103", "0.42494425", "0.4248729", "0.42381683", "0.4237027", "0.4233866", "0.4228047", "0.42249215", "0.4218268", "0.42155275", "0.42106456", "0.4199797", "0.41987994", "0.4196043", "0.4195642", "0.41935962", "0.41763556", "0.41726178", "0.41698167", "0.4166269", "0.41575107", "0.41551048", "0.41432813", "0.41368887", "0.41364068", "0.41354504", "0.41336167", "0.41335574", "0.4128128", "0.41248208", "0.4119356", "0.4115691", "0.41126755", "0.41092288", "0.41051194", "0.40926653", "0.40847138", "0.40810418", "0.40795058", "0.4075183", "0.40713215", "0.40687966", "0.4066468", "0.40655923", "0.4058892", "0.4058002", "0.40577447", "0.40566298", "0.40544683", "0.40514952", "0.40497053", "0.40487698" ]
0.73438185
0
Returns a range of all the phat vaies where maCTV = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtilALL_POS), then the query will include the default ORDER BY logic from PhatVayModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
@Override public List<PhatVay> findByMaCTV(String maCTV, int start, int end) { return findByMaCTV(maCTV, start, end, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_PHATVAY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_PHATVAY;\n\n\t\t\t\tif (pagination) {\n\t\t\t\t\tsql = sql.concat(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "public static List<CauHinhThuTienTet> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "@Override\r\n public ProductosPuntoVenta[] findAll()\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" ORDER BY id_pdv\", null);\r\n }", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "@Override\n @GET\n @Path(\"/vms\")\n @Produces(\"application/json\")\n public Response getVMs() throws Exception {\n log.trace(\"getVMs() started.\");\n JSONArray json = new JSONArray();\n for (Vm vm : cluster.getVmList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/vms/%d\", rootUri, vm.getVmId());\n String vmUri = String.format(\"/providers/%d/vms/%d\", provider.getProviderId(), vm.getVmId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", vmUri);\n json.put(o);\n }\n\n log.trace(\"getVMs() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "public ArrayList<Pagamento> pagamentosRealizados(int associacao, int associado, int vigencia) {\r\n\t\tArrayList<Pagamento> pagamentos = new ArrayList<Pagamento>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection conexao = Conexao.getConexao();\r\n\t\t\tStatement statement = conexao.createStatement();\r\n\t\t\t\r\n\t\t\tString comando = \"select * from pagamento where associacao = \" + associacao\r\n\t\t\t\t\t+ \" and associado = \" + associado + \" and vigencia = \" + vigencia;\r\n\t\t\tSystem.out.println(comando);\r\n\t\t\tResultSet rs = statement.executeQuery(comando);\r\n\t\t\t\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tlong data = rs.getLong(\"data\");\r\n\t\t\t\tdouble valor = rs.getInt(\"valor\");\r\n\t\t\t\tString taxa = rs.getString(\"nome\");\r\n\t\t\t\t\r\n\t\t\t\tPagamento pagamento = new Pagamento(data, valor, taxa, vigencia);\r\n\t\t\t\tpagamentos.add(pagamento);\r\n\t\t\t}\r\n\t\t\tstatement.close();\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn pagamentos;\r\n\t}", "public java.util.List<PlanoSaude> findAll(int start, int end);", "VirtualMachine[] getPlacedVirtualMachines() {\n VirtualMachine[] vms = new VirtualMachine[mapped_vms.size()];\n mapped_vms.toArray(vms);\n return vms;\n }", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "@Override\r\n\tpublic Collection<TVA> obtenirTousTVA() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "public Page selectByVOPage(RolesvalueQuery queryVO,int pageIndex,int pageSize,Integer total){\n \tif(queryVO==null)\n \t\treturn null;\n if(pageIndex<=0)\n \tpageIndex = 1;\n if(pageSize<=0)\n \tpageSize = CommonConstant.PAGESIZE;\n String sqlStr = \"Rolesvalue.selectByVO\";\n return queryForPage(sqlStr, queryVO, pageIndex, pageSize,total);\n }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public VrstaVezbe getVv() {\n return vv;\n }", "public ArrayList<ModelVenda> getListaVendasDAO(){\n ArrayList<ModelVenda> listamodelVendas = new ArrayList();\n ModelVenda modelVendas = new ModelVenda();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"codigo_venda,\"\n + \"fk_cliente_venda,\"\n + \"data_venda,\"\n + \"valor_venda\"\n + \" FROM\"\n + \" venda\"\n + \";\"\n );\n\n while(this.getResultSet().next()){\n modelVendas = new ModelVenda();\n modelVendas.setCodigoVenda(this.getResultSet().getInt(1));\n modelVendas.setClienteVenda(this.getResultSet().getInt(2));\n modelVendas.setDataVenda(this.getResultSet().getDate(3));\n modelVendas.setValorVenda(this.getResultSet().getDouble(4));\n listamodelVendas.add(modelVendas);\n }\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n this.fecharConexao();\n }\n return listamodelVendas;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<CuadraturaOrdenCompraVentaComp> getCuadraturaOrdenCompraVentaComps(String starttime) {\n\t\tCriteria cr = sessionFactory.getCurrentSession().createCriteria(CuadraturaOrdenCompraVentaComp.class);\r\n\t\tcr.add(Restrictions.eq(\"fechaIngreso\", starttime));\r\n\t\treturn (List<CuadraturaOrdenCompraVentaComp>) cr.list();\r\n\t}", "Get<K, C> withColumnRange(C startColumn,\n boolean startColumnInclusive,\n C endColumn,\n boolean endColumnInclusive,\n int limit);", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas(int page, int limit) {\n\t\treturn agamaDAO.getAgamas(page, limit);\n\t}", "public ThongTinViecLamBean GetThongTinViecLam(int maSinhVien) throws ClassNotFoundException, SQLException {\r\n\t\tThongTinViecLamBean vl = null;\r\n\t\tConnectDB connectDB = new ConnectDB();\r\n\t\tconnectDB.Connect();\r\n\t\t\r\n\t\tString query = \"SELECT * FROM ThongTinViecLam WHERE MaSinhVien = ?\";\r\n\t\tResultSet resultSet = connectDB.executeQuery(query, new Object[] { maSinhVien });\r\n\t\tif (resultSet.next()) {\r\n\t\t\tvl = new ThongTinViecLamBean();\r\n\t\t\tvl.setDiaChiCoQuan(resultSet.getString(\"DiaChiCoQuan\"));\r\n\t\t\tvl.setLoaiHinhCoQuan(resultSet.getInt(\"LoaiHinhCoQuan\"));\r\n\t\t\tvl.setMucDoDapUngKienThuc(resultSet.getString(\"MucDoDapUngKTCM\"));\r\n\t\t\tvl.setMucDoPhuHopChuyenMon(resultSet.getString(\"MucDoPhuHopChuyenMon\"));\r\n\t\t\tvl.setMucThuNhapTBThang(resultSet.getLong(\"MucThuNhapTBThang\"));\r\n\t\t\tvl.setTenCongViec(resultSet.getString(\"TenCongViec\"));\r\n\t\t\tvl.setTenCoQuan(resultSet.getString(\"TenCoQuan\"));\r\n\t\t\tvl.setThoiGianBatDauLamViec(resultSet.getDate(\"ThoiGianBatDauLamViec\").toLocalDate());\r\n\t\t\tvl.setViTriCongTac(resultSet.getString(\"ViTriCongTac\"));\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tconnectDB.Disconnect();\r\n\t\treturn vl;\r\n\t}", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public Collection getPlanMedioMesList(int startIndex, int endIndex) {\r\n if (startIndex < 1) {\r\n startIndex = 1;\r\n }\r\n if ( (endIndex - startIndex) < 0) {\r\n // Just return an empty list.\r\n return new ArrayList();\r\n }\r\n String queryString = \"from PlanMedioMesEJB e\";\r\n // Add a an order by on all primary keys to assure reproducable results.\r\n String orderByPart = \"\";\r\n orderByPart += \" order by e.id\";\r\n queryString += orderByPart;\r\n Query query = manager.createQuery(queryString);\r\n query.setFirstResult(startIndex - 1);\r\n query.setMaxResults(endIndex - startIndex + 1);\r\n return query.getResultList();\r\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<MarcaEntities> list() {\n\t\tList<MarcaEntities> lista = new ArrayList<MarcaEntities>();\n\t\ttry {\n\t\t\tQuery q = em.createQuery(\"from MarcaEntities m\");\n\t\t\tlista = (List<MarcaEntities>) q.getResultList();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al listar una Marca: \" + e);\n\t\t}\n\t\treturn lista;\n\t}", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic List<Payments> query(Map<String, Object> filter, int start, int rows) {\n\t\tRowBounds rb = new RowBounds(start, rows);\n\n\t\treturn this.mapper.queryPage(filter, rb);\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public List<VirtualMachine> listVirtualMachines() {\n MachineOptions options = MachineOptions.builder().sync(false).build();\n VirtualMachinesWithNodeExtendedDto vms = context.getApi().getInfrastructureApi()\n .listVirtualMachinesByMachine(target, options);\n return wrap(context, VirtualMachine.class, vms.getCollection());\n }", "public Collection getListaNominalEleicaoVotos(){\n return this.eleicaoDB.getListaNominalEleicaoVotos();\n }", "public ArrayList<Voto> listaDeiVoti() {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Voto> map = db.getTreeMap(\"voti\");\n\t\t\n\t\tArrayList<Voto> voti = new ArrayList<Voto>();\n\t\t\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tvoti.add(map.get(key));\n\t\t}\n\t\treturn voti;\n\n\t}", "public List<Vacuna> findAll() {\n\t\treturn vacunaRepository.findAll();\n\t}", "@Override\n\tpublic List<EvaluateCustom> getObjectsAll(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjectsAll(vo);\n\t}", "public RowIterator getEmployeesVA() {\n return (RowIterator)getAttributeInternal(EMPLOYEESVA);\n }", "public ApiResponse<List<OptionsMySettlements>> executeWithHttpInfo() throws ApiException {\n return listMyOptionsSettlementsWithHttpInfo(underlying, contract, limit, offset, from, to);\n }", "public ArrayList<PointVente> getPointV() {\n\t\t\treturn pointV;\n\t\t}", "public Iterator<VirtualMachine> iterator() {\n return mapped_vms.iterator();\n }", "public List<VencimentoCP> listVencimento() {\r\n\r\n\t\tArrayList<VencimentoCP> lista = new ArrayList<VencimentoCP>();\r\n\r\n\t\tStatement st = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tst = conexao.createStatement();\r\n\t\t\tString sql = \"select * from vencimento_cp\";\r\n\t\t\trs = st.executeQuery(sql);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\r\n\t\t\t\tVencimentoCP vencimento = new VencimentoCP();\r\n\t\t\t\tvencimento.setVencimento_codigo(rs.getInt(\"vencimento_codigo\"));\r\n\t\t\t\tvencimento.setVencimento(rs.getDate(\"vencimento\"));\r\n\t\t\t\tvencimento.setTitulo(rs.getString(\"titulo\"));\r\n\t\t\t\tvencimento.setValor(rs.getString(\"valor\"));\r\n\t\t\t\tvencimento.setDesconto(rs.getString(\"desconto\"));\r\n\t\t\t\tvencimento.setCodigoag(rs.getString(\"codigoag\"));\r\n\t\t\t\tvencimento.setNomeag(rs.getString(\"nomeag\"));\r\n\t\t\t\tvencimento.setLancamento(rs.getString(\"lancamento\"));\r\n\t\t\t\tvencimento.setBanco(rs.getString(\"banco\"));\r\n\t\t\t\tvencimento.setAgenciabanco(rs.getString(\"agenciabanco\"));\r\n\t\t\t\tvencimento.setDigagencia(rs.getString(\"digagencia\"));\r\n\t\t\t\tvencimento.setConta(rs.getString(\"conta\"));\r\n\t\t\t\tvencimento.setDigconta(rs.getString(\"digconta\"));\r\n\t\t\t\tvencimento.setAgendar(rs.getDate(\"agendar\"));\r\n\r\n\t\t\t\tlista.add(vencimento);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tLogger lgr = Logger.getLogger(Connection.class.getName());\r\n\t\t\tlgr.log(Level.SEVERE, ex.getMessage(), ex);\r\n\r\n\t\t} finally {\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "public Set<VAT> getVatList() {\n\t\treturn vatList;\n\t}", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "public com.mozu.api.contracts.content.PropertyTypeCollection getList(com.mozu.api.DataViewMode dataViewMode, Integer pageSize, Integer startIndex, AuthTicket authTicket) throws Exception\n\t{\n\t\tMozuClient<com.mozu.api.contracts.content.PropertyTypeCollection> client = com.mozu.api.clients.content.PropertyTypeClient.getListClient(dataViewMode, pageSize, startIndex, authTicket);\n\t\tclient.setContext(_apiContext);\n\t\tclient.executeRequest();\n\t\treturn client.getResult();\n\n\t}", "public List<vacante> cargarvacante() {\n\t\treturn vacantesrepo.findAll();\n\t}", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public ArrayList<VtbObject> findAll() throws MappingException {\n\t\treturn null;\n\t}", "List<ResultsView2> findByCnoBetween(int min,int max);", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Aluno> listaAlunosSemTurma() {\n\t\tQuery query = this.entityManager.createNamedQuery(Aluno.QUERY_LISTA_ALUNOS_SEM_TURMA);\n\t\treturn query.getResultList();\n\t}", "@Override\r\n\tpublic Vector<Log> get(Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetAll);\r\n\t\t\tps.setTimestamp(1, begin);\r\n\t\t\tps.setTimestamp(2, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public List<VirtualMachine> listVirtualMachines(final Predicate<VirtualMachine> filter) {\n return Lists.newLinkedList(filter(listVirtualMachines(), filter));\n }", "public Ventas() {\n setIdVenta(1);\n setIdCliente(1);\n setFecha(new Date());\n setEstado(0); \n }", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "public Via getViaTermina() {\n\t\treturn viaTermina;\n\t}", "public String estadisticasProductosMasVendidos() {\n String html = \"\";\n DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();\n html = Utils.dibujarGraficasHTMLDonut(dtm, \"TOP PRODUCTOS MAS VENDIDOS\");\n return html;\n }", "@Override\n\tpublic List<EvaluateCustom> getObjects(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjects(vo);\n\t}", "@RequestMapping(value = \"/obtenerVeredas\", method = RequestMethod.GET)\n\tpublic Iterable<Vereda> obtenerListaVeredas() {\n\t\treturn veredaRepository.findAll();\n\t\t//return JsonManager.toJson(veredaRepository.findAll());\n\t}", "public List<VerbPhrase> getVpList(){\n\t\tSet<NounPhrase> entitySet = this.getEntConsiderPass(\"O\");\n\t\tList<VerbPhrase> vpList = new ArrayList<VerbPhrase>();\n\t\t\n\t\tfor(NounPhrase object : entitySet){\t\t\n\t\t\t//vpList.add(new VerbPhrase(this.getActionStr(), object));\n\t\t\tvpList.add(new VerbPhrase(this.action, object));\n\t\t}\t\t\n\t\treturn vpList;\n\t}", "public Page selectByVOPage(WareQuery queryVO,int pageIndex,int pageSize,Integer total){\n if(pageIndex<=0)\n \tpageIndex = 1;\n if(pageSize<=0)\n \tpageSize = CommonConstant.PAGESIZE;\n Page page = null;\n String sqlStr = \"\";\n if(queryVO==null){\n \tpage = Page.EMPTY_PAGE;\n } else {\n \t\tif(queryVO.getShopid()==null)\n \t\t\tthrow new NeedParamsException(\"In WareDaoImpl:selectByVOPage_oper:need shopid\");\n \tsqlStr = \"Ware.selectByVO\";\n \tpage = queryForPage(sqlStr, queryVO, pageIndex, pageSize, total);\n }\n return page;\n }", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public Vecteur[] getPoints() {\n Vecteur[] points = {this.OA, this.OB};\n return points;\n }", "public BigDecimal getVAT_CHARGE_INSUR_AMT() {\r\n return VAT_CHARGE_INSUR_AMT;\r\n }", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "public List<Venta> getVentas() {\n List<Venta> vts = new ArrayList<>();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"src/Archivo/ventas/ventas.txt\"));\n String record;\n\n while ((record = br.readLine()) != null) {\n\n StringTokenizer st = new StringTokenizer(record, \",\");\n \n String id = st.nextToken();\n String idCliente = st.nextToken();\n String sacosVendidos = st.nextToken();\n String valueVenta = st.nextToken();\n String fecha = st.nextToken();\n\n\n Venta venta = new Venta(\n Integer.parseInt(id),\n Integer.parseInt(idCliente),\n Integer.parseInt(sacosVendidos),\n Float.parseFloat(valueVenta),\n fecha\n );\n\n vts.add(venta);\n }\n\n br.close();\n } catch (Exception e) {\n System.err.println(e);\n }\n\n return vts;\n }", "@Override\n\tpublic ArrayList<VODRecord> getVideoList(InviteUtils client, String startTime, String endTime) {\n\t\tArrayList<VODRecord> mList = new ArrayList<VODRecord>();\n\t\t\n\t\t\n\t\t\n\t\treturn super.getVideoList(client, startTime, endTime);\n\t}", "public double[] getVentasXVendedor() {\r\n double vVendedores[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vVendedores[i] = getVentasVendedor(i);\r\n }\r\n return vVendedores;\r\n }", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public ArrayList<Invitato> getAssegnamentiTavolo(){\n return AssegnamentiTavolo;\n }", "@Override\n\tpublic int countByMaCTV(String maCTV) {\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountByMaCTV;\n\n\t\tObject[] finderArgs = new Object[] {maCTV};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public List<Campeonato> getAllCampeonato(){\n\t\treturn new ArrayList<Campeonato>();\n\t}", "public List<Aviao> getListAvioes() {\n return avioes;\n }", "public VirtualMachines getVirtualMachines() {\n return virtualMachines;\n }", "public List<VirtualMachineDescriptor> listVirtualMachines() {\n ArrayList<VirtualMachineDescriptor> result =\n new ArrayList<VirtualMachineDescriptor>();\n\n MonitoredHost host;\n Set<Integer> vms;\n try {\n host = MonitoredHost.getMonitoredHost(new HostIdentifier((String)null));\n vms = host.activeVms();\n } catch (Throwable t) {\n if (t instanceof ExceptionInInitializerError) {\n t = t.getCause();\n }\n if (t instanceof ThreadDeath) {\n throw (ThreadDeath)t;\n }\n if (t instanceof SecurityException) {\n return result;\n }\n throw new InternalError(t); // shouldn't happen\n }\n\n for (Integer vmid: vms) {\n String pid = vmid.toString();\n String name = pid; // default to pid if name not available\n boolean isAttachable = false;\n MonitoredVm mvm = null;\n try {\n mvm = host.getMonitoredVm(new VmIdentifier(pid));\n try {\n isAttachable = MonitoredVmUtil.isAttachable(mvm);\n // use the command line as the display name\n name = MonitoredVmUtil.commandLine(mvm);\n } catch (Exception e) {\n }\n if (isAttachable) {\n result.add(new HotSpotVirtualMachineDescriptor(this, pid, name));\n }\n } catch (Throwable t) {\n if (t instanceof ThreadDeath) {\n throw (ThreadDeath)t;\n }\n } finally {\n if (mvm != null) {\n mvm.detach();\n }\n }\n }\n return result;\n }", "public Collection<TaxValueDTO> getTotalTaxValues()\n\t{\n\t\treturn totalTaxValues;\n\t}", "@Override\n\tpublic List<MstProvinsiDto> findAllProvinsi() {\n\t\tList<MstProvinsi> listObject = mstProvinsiDao.findAllProvinsi();\n\t\tList<MstProvinsiDto> mstProvinsiDtos = new ArrayList<>();\n\n\t\tfor (MstProvinsi mstProvinsi: listObject) {\n\t\t\tMstProvinsiDto mstProvinsiDto = new MstProvinsiDto();\n\t\t\tmstProvinsiDto.setKodeProvinsi(mstProvinsi.getKodeProvinsi());\n\t\t\tmstProvinsiDto.setNamaProvinsi(mstProvinsi.getNamaProvinsi());\n\t\t\t\n\t\t\t\n\t\t\tmstProvinsiDtos.add(mstProvinsiDto);\n\t\t}\n\t\treturn mstProvinsiDtos;\n\t}", "public void listar_mais_vendeu(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisVendidas.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisVendeu(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal_vendido()});\n }\n \n \n }", "@RequestMapping(value = \"/{start}/{end}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic @ResponseBody String viewBranchManagersRange(@PathVariable(\"start\") int start, @PathVariable(\"end\") int end) throws JsonProcessingException {\r\n\r\n\t\treturn branchManagerService.viewBranchManagersRange(start, end);\r\n\t}" ]
[ "0.816865", "0.7495591", "0.6677199", "0.64591265", "0.61136764", "0.5796228", "0.5388592", "0.5251292", "0.5210173", "0.51329684", "0.4904331", "0.48408726", "0.48305294", "0.46926057", "0.465313", "0.4515853", "0.43655202", "0.43508112", "0.43430048", "0.42831796", "0.4205638", "0.420165", "0.41551185", "0.41447684", "0.41262287", "0.41062513", "0.40954557", "0.4085119", "0.40756044", "0.4030553", "0.40204185", "0.40090537", "0.3991173", "0.39776498", "0.39726597", "0.39689046", "0.39548874", "0.3953529", "0.39527383", "0.39420065", "0.39202753", "0.3904927", "0.39023244", "0.3899592", "0.38864043", "0.38744062", "0.38651764", "0.3851217", "0.3846217", "0.38430297", "0.3837351", "0.38359195", "0.38329095", "0.3831663", "0.3823657", "0.38180616", "0.38147643", "0.38092646", "0.3801801", "0.3798747", "0.3798379", "0.37962443", "0.37918183", "0.3788268", "0.37823287", "0.37679997", "0.37656012", "0.3757114", "0.37534988", "0.37533748", "0.37524146", "0.37481603", "0.37416518", "0.3736721", "0.37346995", "0.37317127", "0.3729145", "0.3728553", "0.3723623", "0.372222", "0.37182015", "0.37087378", "0.37066925", "0.37040666", "0.37037215", "0.37032056", "0.3702236", "0.3699827", "0.36965337", "0.36954513", "0.36902612", "0.36849314", "0.36806622", "0.36657047", "0.36630905", "0.36577013", "0.36561197", "0.36518747", "0.3647443", "0.36379614" ]
0.76570064
1
Returns an ordered range of all the phat vaies where maCTV = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtilALL_POS), then the query will include the default ORDER BY logic from PhatVayModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
@Override public List<PhatVay> findByMaCTV( String maCTV, int start, int end, OrderByComparator<PhatVay> orderByComparator) { return findByMaCTV(maCTV, start, end, orderByComparator, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_PHATVAY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_PHATVAY;\n\n\t\t\t\tif (pagination) {\n\t\t\t\t\tsql = sql.concat(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}", "@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<CuadraturaOrdenCompraVentaComp> getCuadraturaOrdenCompraVentaComps(String starttime) {\n\t\tCriteria cr = sessionFactory.getCurrentSession().createCriteria(CuadraturaOrdenCompraVentaComp.class);\r\n\t\tcr.add(Restrictions.eq(\"fechaIngreso\", starttime));\r\n\t\treturn (List<CuadraturaOrdenCompraVentaComp>) cr.list();\r\n\t}", "public static List<CauHinhThuTienTet> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);", "public ArrayList<Pagamento> pagamentosRealizados(int associacao, int associado, int vigencia) {\r\n\t\tArrayList<Pagamento> pagamentos = new ArrayList<Pagamento>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection conexao = Conexao.getConexao();\r\n\t\t\tStatement statement = conexao.createStatement();\r\n\t\t\t\r\n\t\t\tString comando = \"select * from pagamento where associacao = \" + associacao\r\n\t\t\t\t\t+ \" and associado = \" + associado + \" and vigencia = \" + vigencia;\r\n\t\t\tSystem.out.println(comando);\r\n\t\t\tResultSet rs = statement.executeQuery(comando);\r\n\t\t\t\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tlong data = rs.getLong(\"data\");\r\n\t\t\t\tdouble valor = rs.getInt(\"valor\");\r\n\t\t\t\tString taxa = rs.getString(\"nome\");\r\n\t\t\t\t\r\n\t\t\t\tPagamento pagamento = new Pagamento(data, valor, taxa, vigencia);\r\n\t\t\t\tpagamentos.add(pagamento);\r\n\t\t\t}\r\n\t\t\tstatement.close();\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn pagamentos;\r\n\t}", "@Override\r\n public ProductosPuntoVenta[] findAll()\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" ORDER BY id_pdv\", null);\r\n }", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "public java.util.List<PlanoSaude> findAll(int start, int end);", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<Product> findByPriceBetweenOrderByPriceAsc(double from, double to);", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "public List<Maquina> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 34: */ {\r\n/* 35: 73 */ return this.maquinaDao.obtenerListaPorPagina(startIndex, pageSize, sortField, sortOrder, filters);\r\n/* 36: */ }", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "VirtualMachine[] getPlacedVirtualMachines() {\n VirtualMachine[] vms = new VirtualMachine[mapped_vms.size()];\n mapped_vms.toArray(vms);\n return vms;\n }", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "Get<K, C> withColumnRange(C startColumn,\n boolean startColumnInclusive,\n C endColumn,\n boolean endColumnInclusive,\n int limit);", "public List<MotivoLlamadoAtencion> load(int startIndex, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45: 59 */ List<MotivoLlamadoAtencion> lista = new ArrayList();\r\n/* 46: 60 */ boolean ordenar = sortOrder == SortOrder.ASCENDING;\r\n/* 47: */ \r\n/* 48: 62 */ filters.put(\"idOrganizacion\", String.valueOf(AppUtil.getOrganizacion().getId()));\r\n/* 49: 63 */ lista = MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.obtenerListaPorPagina(startIndex, pageSize, sortField, ordenar, filters);\r\n/* 50: */ \r\n/* 51: 65 */ MotivoLlamadoAtencionBean.this.listaMotivoLlamadoAtencion.setRowCount(MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.contarPorCriterio(filters));\r\n/* 52: */ \r\n/* 53: 67 */ return lista;\r\n/* 54: */ }", "public static List<Term> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByUuid_C(\n\t\t\tuuid, companyId, start, end, orderByComparator, retrieveFromCache);\n\t}", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public com.mozu.api.contracts.content.PropertyTypeCollection getList(com.mozu.api.DataViewMode dataViewMode, Integer pageSize, Integer startIndex, AuthTicket authTicket) throws Exception\n\t{\n\t\tMozuClient<com.mozu.api.contracts.content.PropertyTypeCollection> client = com.mozu.api.clients.content.PropertyTypeClient.getListClient(dataViewMode, pageSize, startIndex, authTicket);\n\t\tclient.setContext(_apiContext);\n\t\tclient.executeRequest();\n\t\treturn client.getResult();\n\n\t}", "@Override\n public CloseableIterator<KVPair> getRange(byte[] minKey, byte[] maxKey, boolean reverse) {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusIter(this.store.openCursor(this.tx), minKey, maxKey, reverse);\n }", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas(int page, int limit) {\n\t\treturn agamaDAO.getAgamas(page, limit);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic List<EvaluateCustom> getObjectsAll(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjectsAll(vo);\n\t}", "public ObservableList<Pagadores> carregaPagadores() {\n\t\tcon = Conexao.conectar();\n\t\tObservableList<Pagadores> resultadoPagadores = FXCollections.observableArrayList();\n\t\ttry {\n\t\t\tString query = \"SELECT * FROM pagadores WHERE estpagador = ? ORDER BY agente\";\n\t\t\tprepStmt = con.prepareStatement(query); // create a statement\n\t\t\tprepStmt.setString(1, \"A\");\n\t\t\trs = prepStmt.executeQuery();\n\t\t\t\t\t\t // extract data from the ResultSet\n\t\t\twhile(rs.next()) {\n\t\t\t\tPagadores temp = new Pagadores();\n\t\t\t\ttemp.setCodPagador(rs.getInt(\"codpagador\"));\n\t\t\t\ttemp.setEstPagador(rs.getString(\"estpagador\"));\n\t\t\t\ttemp.setRecDescr(rs.getString(\"recdescr\"));\n\t\t\t\t\n\t\t\t\ttemp.setValContrato(rs.getDouble(\"valcontrato\"));\n\t\t\t\ttemp.setContratoInic(DateUtils.asLocalDate(rs.getDate(\"contratoinic\")));\n\t\t\t\ttemp.setContratoFim(DateUtils.asLocalDate(rs.getDate(\"contratofim\")));\n\t\t\t\t\n\t\t\t\ttemp.setNomeContrato(rs.getString(\"nomecontrato\"));\n\t\t\t\ttemp.setContaVinc(rs.getInt(\"contavinc\"));\n\t\t\t\ttemp.setCentroReceb(rs.getInt(\"centroreceb\"));\n\t\t\t\t\n\t\t\t\ttemp.setSubCentroRec(rs.getInt(\"subcentrorec\"));\n\t\t\t\ttemp.setDataLanc(DateUtils.asLocalDate(rs.getDate(\"datalanc\")));\n\t\t\t\ttemp.setDiaVenc(rs.getInt(\"diavenc\"));\n\t\t\t\ttemp.setAgente(rs.getString(\"agente\"));\n\t\t\t\t\n\t\t\t\tresultadoPagadores.add(temp);\n\t\t\t}\n\t\t\treturn resultadoPagadores;\n\t\t} catch(Exception e) {\n\t\t\tMessageBox.show(\"Erro ao ler pagadores 59\", e.getMessage());\n\t\t\treturn null;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tprepStmt.close();\n\t\t\t\t//conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public ApiResponse<List<OptionsMySettlements>> executeWithHttpInfo() throws ApiException {\n return listMyOptionsSettlementsWithHttpInfo(underlying, contract, limit, offset, from, to);\n }", "public List<OrdersCustom> queryAllOrders() {\n\t\treturn ordersMapper.queryAllOrders();\n\t}", "public ArrayList<ModelVenda> getListaVendasDAO(){\n ArrayList<ModelVenda> listamodelVendas = new ArrayList();\n ModelVenda modelVendas = new ModelVenda();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"codigo_venda,\"\n + \"fk_cliente_venda,\"\n + \"data_venda,\"\n + \"valor_venda\"\n + \" FROM\"\n + \" venda\"\n + \";\"\n );\n\n while(this.getResultSet().next()){\n modelVendas = new ModelVenda();\n modelVendas.setCodigoVenda(this.getResultSet().getInt(1));\n modelVendas.setClienteVenda(this.getResultSet().getInt(2));\n modelVendas.setDataVenda(this.getResultSet().getDate(3));\n modelVendas.setValorVenda(this.getResultSet().getDouble(4));\n listamodelVendas.add(modelVendas);\n }\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n this.fecharConexao();\n }\n return listamodelVendas;\n }", "@Override\n\tpublic List<Payments> query(Map<String, Object> filter, int start, int rows) {\n\t\tRowBounds rb = new RowBounds(start, rows);\n\n\t\treturn this.mapper.queryPage(filter, rb);\n\t}", "public Via getViaTermina() {\n\t\treturn viaTermina;\n\t}", "public Collection obterGuiasPagamentoPagamento(Integer idGuiaPagamento)\n\t\t\tthrows ErroRepositorioException;", "public List<Orderlinecharges> findBycreatettsBetween(Date start,Date end,Pageable pageable);", "public Page selectByVOPage(RolesvalueQuery queryVO,int pageIndex,int pageSize,Integer total){\n \tif(queryVO==null)\n \t\treturn null;\n if(pageIndex<=0)\n \tpageIndex = 1;\n if(pageSize<=0)\n \tpageSize = CommonConstant.PAGESIZE;\n String sqlStr = \"Rolesvalue.selectByVO\";\n return queryForPage(sqlStr, queryVO, pageIndex, pageSize,total);\n }", "public Collection getListaNominalEleicaoVotos(){\n return this.eleicaoDB.getListaNominalEleicaoVotos();\n }", "@Override\n\tpublic List<EvaluateCustom> getObjects(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjects(vo);\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);", "List<ResultsView2> findByCnoBetween(int min,int max);", "public List<VerbPhrase> getVpList(){\n\t\tSet<NounPhrase> entitySet = this.getEntConsiderPass(\"O\");\n\t\tList<VerbPhrase> vpList = new ArrayList<VerbPhrase>();\n\t\t\n\t\tfor(NounPhrase object : entitySet){\t\t\n\t\t\t//vpList.add(new VerbPhrase(this.getActionStr(), object));\n\t\t\tvpList.add(new VerbPhrase(this.action, object));\n\t\t}\t\t\n\t\treturn vpList;\n\t}", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "@Override\r\n\tpublic Collection<TVA> obtenirTousTVA() {\n\t\treturn null;\r\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "public ArrayList<Voto> listaDeiVoti() {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Voto> map = db.getTreeMap(\"voti\");\n\t\t\n\t\tArrayList<Voto> voti = new ArrayList<Voto>();\n\t\t\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tvoti.add(map.get(key));\n\t\t}\n\t\treturn voti;\n\n\t}", "public List topologicalSort( Vertex startat ){\r\n return this.topologicalsorting.traverse( startat );\r\n }", "public Vecteur[] getPoints() {\n Vecteur[] points = {this.OA, this.OB};\n return points;\n }", "public ApiResponse<List<OptionsMyTrade>> executeWithHttpInfo() throws ApiException {\n return listMyOptionsTradesWithHttpInfo(underlying, contract, limit, offset, from, to);\n }", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "@Override\n public Query customizeQuery(Object anObject, PersistenceBroker broker, CollectionDescriptor cod, QueryByCriteria query) {\n boolean platformMySQL = broker.serviceSqlGenerator().getPlatform() instanceof PlatformMySQLImpl;\n\n Map<String, String> attributes = getAttributes();\n for (String attributeName : attributes.keySet()) {\n if (!attributeName.startsWith(ORDER_BY_FIELD)) {\n continue;\n }\n\n String fieldName = attributeName.substring(ORDER_BY_FIELD.length());\n ClassDescriptor itemClassDescriptor = broker.getClassDescriptor(cod.getItemClass());\n FieldDescriptor orderByFieldDescriptior = itemClassDescriptor.getFieldDescriptorByName(fieldName);\n\n // the column to sort on derived from the property name\n String orderByColumnName = orderByFieldDescriptior.getColumnName();\n\n // ascending or descending\n String fieldValue = attributes.get(attributeName);\n boolean ascending = (StringUtils.equals(fieldValue, ASCENDING));\n // throw an error if not ascending or descending\n if (!ascending && StringUtils.equals(fieldValue, DESCENDING)) {\n throw new RuntimeException(\"neither ASC nor DESC was specified in ojb file for \" + fieldName);\n }\n\n if (platformMySQL) {\n // by negating the column name in MySQL we can get nulls last (ascending or descending)\n String mysqlPrefix = (ascending) ? MYSQL_NEGATION : \"\";\n query.addOrderBy(mysqlPrefix + orderByColumnName, false);\n } else {\n query.addOrderBy(orderByColumnName, ascending);\n }\n }\n return query;\n }", "public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n return EffectiveEndDtComparatorNullsLower;\n }", "public Set<T> getRanges();", "public List<Chemin> getSortants() {\n return sortants;\n }", "@Override\n @GET\n @Path(\"/vms\")\n @Produces(\"application/json\")\n public Response getVMs() throws Exception {\n log.trace(\"getVMs() started.\");\n JSONArray json = new JSONArray();\n for (Vm vm : cluster.getVmList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/vms/%d\", rootUri, vm.getVmId());\n String vmUri = String.format(\"/providers/%d/vms/%d\", provider.getProviderId(), vm.getVmId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", vmUri);\n json.put(o);\n }\n\n log.trace(\"getVMs() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public Collection getPlanMedioMesList(int startIndex, int endIndex) {\r\n if (startIndex < 1) {\r\n startIndex = 1;\r\n }\r\n if ( (endIndex - startIndex) < 0) {\r\n // Just return an empty list.\r\n return new ArrayList();\r\n }\r\n String queryString = \"from PlanMedioMesEJB e\";\r\n // Add a an order by on all primary keys to assure reproducable results.\r\n String orderByPart = \"\";\r\n orderByPart += \" order by e.id\";\r\n queryString += orderByPart;\r\n Query query = manager.createQuery(queryString);\r\n query.setFirstResult(startIndex - 1);\r\n query.setMaxResults(endIndex - startIndex + 1);\r\n return query.getResultList();\r\n }", "com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder();", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<MarcaEntities> list() {\n\t\tList<MarcaEntities> lista = new ArrayList<MarcaEntities>();\n\t\ttry {\n\t\t\tQuery q = em.createQuery(\"from MarcaEntities m\");\n\t\t\tlista = (List<MarcaEntities>) q.getResultList();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al listar una Marca: \" + e);\n\t\t}\n\t\treturn lista;\n\t}", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "public String estadisticasProductosMasVendidos() {\n String html = \"\";\n DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();\n html = Utils.dibujarGraficasHTMLDonut(dtm, \"TOP PRODUCTOS MAS VENDIDOS\");\n return html;\n }", "@Override\r\n\tpublic PaginationSupport getCustomizePages(DetachedCriteria detachedCriteria,\r\n\t\t\tint pageSize, int startIndex) {\n\t\treturn findPageByCriteria(detachedCriteria, pageSize, startIndex);\r\n\t}", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "@RequestMapping(value = \"/obtenerVeredas\", method = RequestMethod.GET)\n\tpublic Iterable<Vereda> obtenerListaVeredas() {\n\t\treturn veredaRepository.findAll();\n\t\t//return JsonManager.toJson(veredaRepository.findAll());\n\t}", "public List getResults() {\r\n List<Candidate> list = new ArrayList<>();\r\n list = getCurrentVoting().getCandidates();\r\n list.sort(Comparator.comparingInt(Candidate::getVoices));\r\n return list;\r\n }" ]
[ "0.7496899", "0.69888633", "0.69709045", "0.63822913", "0.57378054", "0.53253627", "0.5300473", "0.5295999", "0.52881706", "0.5163234", "0.5124132", "0.4959255", "0.46765926", "0.4584279", "0.45216078", "0.44909164", "0.43734738", "0.43268922", "0.42837906", "0.42696178", "0.42488506", "0.42467284", "0.42103982", "0.41812575", "0.41717577", "0.40949303", "0.4084722", "0.40496385", "0.4011568", "0.3998291", "0.39808983", "0.3978098", "0.3974373", "0.39542133", "0.39534903", "0.39305305", "0.39246878", "0.39183208", "0.39115763", "0.3902138", "0.38853964", "0.38790828", "0.38788617", "0.38756266", "0.38729918", "0.38662615", "0.38450086", "0.3843669", "0.3840982", "0.38368583", "0.37965605", "0.37929514", "0.37912196", "0.37728912", "0.37671995", "0.37552574", "0.3745353", "0.3726658", "0.3716739", "0.37054488", "0.37013876", "0.36983633", "0.36978558", "0.36969918", "0.3695446", "0.36906856", "0.3690342", "0.36870703", "0.36865965", "0.36799362", "0.3678405", "0.36775434", "0.36756775", "0.36737296", "0.36722094", "0.36657375", "0.36641213", "0.36618525", "0.36562636", "0.36507434", "0.36485714", "0.36478412", "0.3645093", "0.36449894", "0.36428383", "0.36414793", "0.36412618", "0.3639136", "0.36276639", "0.3619864", "0.36156443", "0.36121586", "0.36106917", "0.360255", "0.35987586", "0.3596788", "0.35960922", "0.35925215", "0.35917324", "0.35884514" ]
0.83225054
0
Returns an ordered range of all the phat vaies where maCTV = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtilALL_POS), then the query will include the default ORDER BY logic from PhatVayModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
@Override public List<PhatVay> findByMaCTV( String maCTV, int start, int end, OrderByComparator<PhatVay> orderByComparator, boolean retrieveFromCache) { maCTV = Objects.toString(maCTV, ""); boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && (orderByComparator == null)) { pagination = false; finderPath = _finderPathWithoutPaginationFindByMaCTV; finderArgs = new Object[] {maCTV}; } else { finderPath = _finderPathWithPaginationFindByMaCTV; finderArgs = new Object[] {maCTV, start, end, orderByComparator}; } List<PhatVay> list = null; if (retrieveFromCache) { list = (List<PhatVay>)finderCache.getResult( finderPath, finderArgs, this); if ((list != null) && !list.isEmpty()) { for (PhatVay phatVay : list) { if (!maCTV.equals(phatVay.getMaCTV())) { list = null; break; } } } } if (list == null) { StringBundler query = null; if (orderByComparator != null) { query = new StringBundler( 3 + (orderByComparator.getOrderByFields().length * 2)); } else { query = new StringBundler(3); } query.append(_SQL_SELECT_PHATVAY_WHERE); boolean bindMaCTV = false; if (maCTV.isEmpty()) { query.append(_FINDER_COLUMN_MACTV_MACTV_3); } else { bindMaCTV = true; query.append(_FINDER_COLUMN_MACTV_MACTV_2); } if (orderByComparator != null) { appendOrderByComparator( query, _ORDER_BY_ENTITY_ALIAS, orderByComparator); } else if (pagination) { query.append(PhatVayModelImpl.ORDER_BY_JPQL); } String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); if (bindMaCTV) { qPos.add(maCTV); } if (!pagination) { list = (List<PhatVay>)QueryUtil.list( q, getDialect(), start, end, false); Collections.sort(list); list = Collections.unmodifiableList(list); } else { list = (List<PhatVay>)QueryUtil.list( q, getDialect(), start, end); } cacheResult(list); finderCache.putResult(finderPath, finderArgs, list); } catch (Exception e) { finderCache.removeResult(finderPath, finderArgs); throw processException(e); } finally { closeSession(session); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_PHATVAY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_PHATVAY;\n\n\t\t\t\tif (pagination) {\n\t\t\t\t\tsql = sql.concat(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}", "@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<CuadraturaOrdenCompraVentaComp> getCuadraturaOrdenCompraVentaComps(String starttime) {\n\t\tCriteria cr = sessionFactory.getCurrentSession().createCriteria(CuadraturaOrdenCompraVentaComp.class);\r\n\t\tcr.add(Restrictions.eq(\"fechaIngreso\", starttime));\r\n\t\treturn (List<CuadraturaOrdenCompraVentaComp>) cr.list();\r\n\t}", "public static List<CauHinhThuTienTet> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);", "public ArrayList<Pagamento> pagamentosRealizados(int associacao, int associado, int vigencia) {\r\n\t\tArrayList<Pagamento> pagamentos = new ArrayList<Pagamento>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection conexao = Conexao.getConexao();\r\n\t\t\tStatement statement = conexao.createStatement();\r\n\t\t\t\r\n\t\t\tString comando = \"select * from pagamento where associacao = \" + associacao\r\n\t\t\t\t\t+ \" and associado = \" + associado + \" and vigencia = \" + vigencia;\r\n\t\t\tSystem.out.println(comando);\r\n\t\t\tResultSet rs = statement.executeQuery(comando);\r\n\t\t\t\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tlong data = rs.getLong(\"data\");\r\n\t\t\t\tdouble valor = rs.getInt(\"valor\");\r\n\t\t\t\tString taxa = rs.getString(\"nome\");\r\n\t\t\t\t\r\n\t\t\t\tPagamento pagamento = new Pagamento(data, valor, taxa, vigencia);\r\n\t\t\t\tpagamentos.add(pagamento);\r\n\t\t\t}\r\n\t\t\tstatement.close();\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn pagamentos;\r\n\t}", "@Override\r\n public ProductosPuntoVenta[] findAll()\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" ORDER BY id_pdv\", null);\r\n }", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "public java.util.List<PlanoSaude> findAll(int start, int end);", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<Product> findByPriceBetweenOrderByPriceAsc(double from, double to);", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "public List<Maquina> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 34: */ {\r\n/* 35: 73 */ return this.maquinaDao.obtenerListaPorPagina(startIndex, pageSize, sortField, sortOrder, filters);\r\n/* 36: */ }", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "VirtualMachine[] getPlacedVirtualMachines() {\n VirtualMachine[] vms = new VirtualMachine[mapped_vms.size()];\n mapped_vms.toArray(vms);\n return vms;\n }", "Get<K, C> withColumnRange(C startColumn,\n boolean startColumnInclusive,\n C endColumn,\n boolean endColumnInclusive,\n int limit);", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "public List<MotivoLlamadoAtencion> load(int startIndex, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45: 59 */ List<MotivoLlamadoAtencion> lista = new ArrayList();\r\n/* 46: 60 */ boolean ordenar = sortOrder == SortOrder.ASCENDING;\r\n/* 47: */ \r\n/* 48: 62 */ filters.put(\"idOrganizacion\", String.valueOf(AppUtil.getOrganizacion().getId()));\r\n/* 49: 63 */ lista = MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.obtenerListaPorPagina(startIndex, pageSize, sortField, ordenar, filters);\r\n/* 50: */ \r\n/* 51: 65 */ MotivoLlamadoAtencionBean.this.listaMotivoLlamadoAtencion.setRowCount(MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.contarPorCriterio(filters));\r\n/* 52: */ \r\n/* 53: 67 */ return lista;\r\n/* 54: */ }", "public static List<Term> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByUuid_C(\n\t\t\tuuid, companyId, start, end, orderByComparator, retrieveFromCache);\n\t}", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public com.mozu.api.contracts.content.PropertyTypeCollection getList(com.mozu.api.DataViewMode dataViewMode, Integer pageSize, Integer startIndex, AuthTicket authTicket) throws Exception\n\t{\n\t\tMozuClient<com.mozu.api.contracts.content.PropertyTypeCollection> client = com.mozu.api.clients.content.PropertyTypeClient.getListClient(dataViewMode, pageSize, startIndex, authTicket);\n\t\tclient.setContext(_apiContext);\n\t\tclient.executeRequest();\n\t\treturn client.getResult();\n\n\t}", "@Override\n public CloseableIterator<KVPair> getRange(byte[] minKey, byte[] maxKey, boolean reverse) {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusIter(this.store.openCursor(this.tx), minKey, maxKey, reverse);\n }", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas(int page, int limit) {\n\t\treturn agamaDAO.getAgamas(page, limit);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic List<EvaluateCustom> getObjectsAll(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjectsAll(vo);\n\t}", "public ArrayList<ModelVenda> getListaVendasDAO(){\n ArrayList<ModelVenda> listamodelVendas = new ArrayList();\n ModelVenda modelVendas = new ModelVenda();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"codigo_venda,\"\n + \"fk_cliente_venda,\"\n + \"data_venda,\"\n + \"valor_venda\"\n + \" FROM\"\n + \" venda\"\n + \";\"\n );\n\n while(this.getResultSet().next()){\n modelVendas = new ModelVenda();\n modelVendas.setCodigoVenda(this.getResultSet().getInt(1));\n modelVendas.setClienteVenda(this.getResultSet().getInt(2));\n modelVendas.setDataVenda(this.getResultSet().getDate(3));\n modelVendas.setValorVenda(this.getResultSet().getDouble(4));\n listamodelVendas.add(modelVendas);\n }\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n this.fecharConexao();\n }\n return listamodelVendas;\n }", "public ApiResponse<List<OptionsMySettlements>> executeWithHttpInfo() throws ApiException {\n return listMyOptionsSettlementsWithHttpInfo(underlying, contract, limit, offset, from, to);\n }", "public ObservableList<Pagadores> carregaPagadores() {\n\t\tcon = Conexao.conectar();\n\t\tObservableList<Pagadores> resultadoPagadores = FXCollections.observableArrayList();\n\t\ttry {\n\t\t\tString query = \"SELECT * FROM pagadores WHERE estpagador = ? ORDER BY agente\";\n\t\t\tprepStmt = con.prepareStatement(query); // create a statement\n\t\t\tprepStmt.setString(1, \"A\");\n\t\t\trs = prepStmt.executeQuery();\n\t\t\t\t\t\t // extract data from the ResultSet\n\t\t\twhile(rs.next()) {\n\t\t\t\tPagadores temp = new Pagadores();\n\t\t\t\ttemp.setCodPagador(rs.getInt(\"codpagador\"));\n\t\t\t\ttemp.setEstPagador(rs.getString(\"estpagador\"));\n\t\t\t\ttemp.setRecDescr(rs.getString(\"recdescr\"));\n\t\t\t\t\n\t\t\t\ttemp.setValContrato(rs.getDouble(\"valcontrato\"));\n\t\t\t\ttemp.setContratoInic(DateUtils.asLocalDate(rs.getDate(\"contratoinic\")));\n\t\t\t\ttemp.setContratoFim(DateUtils.asLocalDate(rs.getDate(\"contratofim\")));\n\t\t\t\t\n\t\t\t\ttemp.setNomeContrato(rs.getString(\"nomecontrato\"));\n\t\t\t\ttemp.setContaVinc(rs.getInt(\"contavinc\"));\n\t\t\t\ttemp.setCentroReceb(rs.getInt(\"centroreceb\"));\n\t\t\t\t\n\t\t\t\ttemp.setSubCentroRec(rs.getInt(\"subcentrorec\"));\n\t\t\t\ttemp.setDataLanc(DateUtils.asLocalDate(rs.getDate(\"datalanc\")));\n\t\t\t\ttemp.setDiaVenc(rs.getInt(\"diavenc\"));\n\t\t\t\ttemp.setAgente(rs.getString(\"agente\"));\n\t\t\t\t\n\t\t\t\tresultadoPagadores.add(temp);\n\t\t\t}\n\t\t\treturn resultadoPagadores;\n\t\t} catch(Exception e) {\n\t\t\tMessageBox.show(\"Erro ao ler pagadores 59\", e.getMessage());\n\t\t\treturn null;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tprepStmt.close();\n\t\t\t\t//conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public List<OrdersCustom> queryAllOrders() {\n\t\treturn ordersMapper.queryAllOrders();\n\t}", "public Via getViaTermina() {\n\t\treturn viaTermina;\n\t}", "@Override\n\tpublic List<Payments> query(Map<String, Object> filter, int start, int rows) {\n\t\tRowBounds rb = new RowBounds(start, rows);\n\n\t\treturn this.mapper.queryPage(filter, rb);\n\t}", "public List<Orderlinecharges> findBycreatettsBetween(Date start,Date end,Pageable pageable);", "public Page selectByVOPage(RolesvalueQuery queryVO,int pageIndex,int pageSize,Integer total){\n \tif(queryVO==null)\n \t\treturn null;\n if(pageIndex<=0)\n \tpageIndex = 1;\n if(pageSize<=0)\n \tpageSize = CommonConstant.PAGESIZE;\n String sqlStr = \"Rolesvalue.selectByVO\";\n return queryForPage(sqlStr, queryVO, pageIndex, pageSize,total);\n }", "public Collection obterGuiasPagamentoPagamento(Integer idGuiaPagamento)\n\t\t\tthrows ErroRepositorioException;", "public Collection getListaNominalEleicaoVotos(){\n return this.eleicaoDB.getListaNominalEleicaoVotos();\n }", "@Override\n\tpublic List<EvaluateCustom> getObjects(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjects(vo);\n\t}", "List<ResultsView2> findByCnoBetween(int min,int max);", "public List<VerbPhrase> getVpList(){\n\t\tSet<NounPhrase> entitySet = this.getEntConsiderPass(\"O\");\n\t\tList<VerbPhrase> vpList = new ArrayList<VerbPhrase>();\n\t\t\n\t\tfor(NounPhrase object : entitySet){\t\t\n\t\t\t//vpList.add(new VerbPhrase(this.getActionStr(), object));\n\t\t\tvpList.add(new VerbPhrase(this.action, object));\n\t\t}\t\t\n\t\treturn vpList;\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "@Override\r\n\tpublic Collection<TVA> obtenirTousTVA() {\n\t\treturn null;\r\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "public ArrayList<Voto> listaDeiVoti() {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Voto> map = db.getTreeMap(\"voti\");\n\t\t\n\t\tArrayList<Voto> voti = new ArrayList<Voto>();\n\t\t\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tvoti.add(map.get(key));\n\t\t}\n\t\treturn voti;\n\n\t}", "public Vecteur[] getPoints() {\n Vecteur[] points = {this.OA, this.OB};\n return points;\n }", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public List topologicalSort( Vertex startat ){\r\n return this.topologicalsorting.traverse( startat );\r\n }", "public ApiResponse<List<OptionsMyTrade>> executeWithHttpInfo() throws ApiException {\n return listMyOptionsTradesWithHttpInfo(underlying, contract, limit, offset, from, to);\n }", "public Set<T> getRanges();", "@Override\n public Query customizeQuery(Object anObject, PersistenceBroker broker, CollectionDescriptor cod, QueryByCriteria query) {\n boolean platformMySQL = broker.serviceSqlGenerator().getPlatform() instanceof PlatformMySQLImpl;\n\n Map<String, String> attributes = getAttributes();\n for (String attributeName : attributes.keySet()) {\n if (!attributeName.startsWith(ORDER_BY_FIELD)) {\n continue;\n }\n\n String fieldName = attributeName.substring(ORDER_BY_FIELD.length());\n ClassDescriptor itemClassDescriptor = broker.getClassDescriptor(cod.getItemClass());\n FieldDescriptor orderByFieldDescriptior = itemClassDescriptor.getFieldDescriptorByName(fieldName);\n\n // the column to sort on derived from the property name\n String orderByColumnName = orderByFieldDescriptior.getColumnName();\n\n // ascending or descending\n String fieldValue = attributes.get(attributeName);\n boolean ascending = (StringUtils.equals(fieldValue, ASCENDING));\n // throw an error if not ascending or descending\n if (!ascending && StringUtils.equals(fieldValue, DESCENDING)) {\n throw new RuntimeException(\"neither ASC nor DESC was specified in ojb file for \" + fieldName);\n }\n\n if (platformMySQL) {\n // by negating the column name in MySQL we can get nulls last (ascending or descending)\n String mysqlPrefix = (ascending) ? MYSQL_NEGATION : \"\";\n query.addOrderBy(mysqlPrefix + orderByColumnName, false);\n } else {\n query.addOrderBy(orderByColumnName, ascending);\n }\n }\n return query;\n }", "public JwComparator<AcGlobalDomesticActualMarketCache> getEffectiveEndDtComparatorNullsLower()\n {\n return EffectiveEndDtComparatorNullsLower;\n }", "public List<Chemin> getSortants() {\n return sortants;\n }", "@Override\n @GET\n @Path(\"/vms\")\n @Produces(\"application/json\")\n public Response getVMs() throws Exception {\n log.trace(\"getVMs() started.\");\n JSONArray json = new JSONArray();\n for (Vm vm : cluster.getVmList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/vms/%d\", rootUri, vm.getVmId());\n String vmUri = String.format(\"/providers/%d/vms/%d\", provider.getProviderId(), vm.getVmId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", vmUri);\n json.put(o);\n }\n\n log.trace(\"getVMs() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public Collection getPlanMedioMesList(int startIndex, int endIndex) {\r\n if (startIndex < 1) {\r\n startIndex = 1;\r\n }\r\n if ( (endIndex - startIndex) < 0) {\r\n // Just return an empty list.\r\n return new ArrayList();\r\n }\r\n String queryString = \"from PlanMedioMesEJB e\";\r\n // Add a an order by on all primary keys to assure reproducable results.\r\n String orderByPart = \"\";\r\n orderByPart += \" order by e.id\";\r\n queryString += orderByPart;\r\n Query query = manager.createQuery(queryString);\r\n query.setFirstResult(startIndex - 1);\r\n query.setMaxResults(endIndex - startIndex + 1);\r\n return query.getResultList();\r\n }", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<MarcaEntities> list() {\n\t\tList<MarcaEntities> lista = new ArrayList<MarcaEntities>();\n\t\ttry {\n\t\t\tQuery q = em.createQuery(\"from MarcaEntities m\");\n\t\t\tlista = (List<MarcaEntities>) q.getResultList();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al listar una Marca: \" + e);\n\t\t}\n\t\treturn lista;\n\t}", "com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder();", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "public String estadisticasProductosMasVendidos() {\n String html = \"\";\n DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();\n html = Utils.dibujarGraficasHTMLDonut(dtm, \"TOP PRODUCTOS MAS VENDIDOS\");\n return html;\n }", "@Override\r\n\tpublic PaginationSupport getCustomizePages(DetachedCriteria detachedCriteria,\r\n\t\t\tint pageSize, int startIndex) {\n\t\treturn findPageByCriteria(detachedCriteria, pageSize, startIndex);\r\n\t}", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "@RequestMapping(value = \"/obtenerVeredas\", method = RequestMethod.GET)\n\tpublic Iterable<Vereda> obtenerListaVeredas() {\n\t\treturn veredaRepository.findAll();\n\t\t//return JsonManager.toJson(veredaRepository.findAll());\n\t}", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public List getResults() {\r\n List<Candidate> list = new ArrayList<>();\r\n list = getCurrentVoting().getCandidates();\r\n list.sort(Comparator.comparingInt(Candidate::getVoices));\r\n return list;\r\n }" ]
[ "0.8323248", "0.69928426", "0.6968904", "0.6379906", "0.57395184", "0.53268427", "0.52974117", "0.5293245", "0.52894276", "0.5162377", "0.51230913", "0.49590406", "0.46754804", "0.45886767", "0.4521227", "0.4491372", "0.43725997", "0.4329102", "0.42813644", "0.42685676", "0.42486906", "0.42458487", "0.42089602", "0.41810644", "0.4170691", "0.40932962", "0.40836424", "0.40499094", "0.4012017", "0.39994043", "0.3980024", "0.3976233", "0.3975371", "0.39552465", "0.39537507", "0.39322746", "0.39222804", "0.3916942", "0.39115196", "0.3904265", "0.3886578", "0.38815477", "0.38810503", "0.38752767", "0.3872969", "0.38653466", "0.38466066", "0.38440964", "0.38439947", "0.38377163", "0.37967396", "0.3792262", "0.3790431", "0.37750527", "0.3767825", "0.375608", "0.3747765", "0.37293324", "0.37196854", "0.37069842", "0.37014043", "0.36990815", "0.36983845", "0.3697049", "0.36952394", "0.3691798", "0.3689605", "0.36880958", "0.36858785", "0.36855432", "0.36810464", "0.36778057", "0.3677705", "0.3675604", "0.36747286", "0.36674356", "0.36667114", "0.3664553", "0.36566204", "0.3652406", "0.36495453", "0.3646422", "0.36463735", "0.3645424", "0.36428782", "0.36408404", "0.36405024", "0.36365476", "0.36303926", "0.36205772", "0.3619642", "0.36124438", "0.3611506", "0.3602629", "0.3600925", "0.35980776", "0.35949945", "0.3594572", "0.3591707", "0.35911053" ]
0.7497655
1
Returns the first phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay findByMaCTV_First( String maCTV, OrderByComparator<PhatVay> orderByComparator) throws NoSuchPhatVayException { PhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator); if (phatVay != null) { return phatVay; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("maCTV="); msg.append(maCTV); msg.append("}"); throw new NoSuchPhatVayException(msg.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "private static int minKey(int[] key, Boolean[] mstSet, int V)\r\n {\r\n // Initialize min value\r\n int min = Integer.MAX_VALUE, min_index=-1;\r\n\r\n for (int v = 0; v < V; v++)\r\n if (!mstSet[v] && key[v] < min)\r\n {\r\n min = key[v];\r\n min_index = v;\r\n }\r\n\r\n return min_index;\r\n }", "public double getMinT() {\n return v[0];\n }", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic vip selectByphone(String phonum) {\n\t\treturn this.vd.selectByphone(phonum);\n\t}", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "private int getMinPrior(int theIndex) {\n \n /* \n * We're looking for the minimum coins\n * needed to create the value up to now.\n */\n int minimumThroughout = Integer.MAX_VALUE;\n \n /* Store the current coin we are looking at. */\n int coinIndex = 0;\n int bestCoin = -1;\n \n /* \n * Because of the dynamically updated minimums,\n * we simply check any coins which leave us with\n * a positive value remaining to verify.\n */\n while (coinIndex < myCoins.length \n && myCoins[coinIndex] <= theIndex) {\n \n /* We want to see minimum up to this point. */\n int minimumNow = myIndices[theIndex - myCoins[coinIndex]];\n \n /* Update minimum to this point. */\n if (minimumNow < minimumThroughout) {\n minimumThroughout = minimumNow;\n bestCoin = myCoins[coinIndex];\n }\n ++coinIndex;\n }\n \n /* Update Purses by previous optimal solution and adding newest coin. */\n try {\n myPurses[theIndex] = myPurses[theIndex - bestCoin].clone();\n }\n catch (final CloneNotSupportedException e) {\n System.out.println(\"Purse in CoinCounter algorithm could\\n\"\n + \"not be cloned please try again!\");\n }\n myPurses[theIndex].addCoin(bestCoin);\n \n myPurses[theIndex].setBestCoin(bestCoin);\n \n return minimumThroughout;\n }", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "public V getFirst() {\n\t\t\treturn v;\n\t\t}", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "public TonKho getTonKhoHienTai(String malk, Integer maKhoa) {\n Query q = getEm().createQuery(\"SELECT t FROM TonKho t WHERE t.dmkhoaMaso.dmkhoaMaso = :maKhoa AND t.tonkhoMalienket = :malk AND t.tonkhoMa = (SELECT MAX(t1.tonkhoMa) FROM TonKho t1 WHERE t1.tonkhoMalienket = :malk AND t1.dmkhoaMaso.dmkhoaMaso = :maKhoa)\");\n q.setParameter(\"malk\", malk);\n q.setParameter(\"maKhoa\", maKhoa);\n try {\n List<TonKho> listTk = q.getResultList();\n if (listTk != null && listTk.size() > 0) {\n return listTk.get(0);\n }\n } catch (Exception ex) {\n System.out.println(\"Error getTonKhoHienTai: \" + ex.toString());\n ex.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "@Override\n\tpublic TC getProchain() {\n\t\t// TODO Auto-generated method stub\n\t\tif (!estVide()) {\n\t\t\tfor (int i = maxPrio-1; i>=0; i--) {\n\t\t\t\tif (salle.get(i).size()!=0) {\n\t\t\t\t\treturn salle.get(i).get(0);\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public BigDecimal getSETTLED_VAT_AMT() {\r\n return SETTLED_VAT_AMT;\r\n }", "public static GiaovuEntity xacThucTK(String ma, String mk) {\n GiaovuEntity giaoVu = getThongTinGV(ma);\n if (giaoVu == null || giaoVu.getMatKhau() == null) {\n return null;\n }\n if (giaoVu.getMatKhau().equals(mk) == true) {\n return giaoVu;\n }\n return null;\n }", "public float getItemPriceSearchVAT()\n\t{\n\t\treturn itemPriceSearchVAT;\n\t}", "protected Trein heeftTreinVolgVertrekpunt(int vertrekpunt) {\r\n for(int i = 0; i < treinaantal; i++) {\r\n if(getTrein(i).heeftVolgTaak()) {\r\n if(getTrein(i).getVolgVertrekpunt() == vertrekpunt) {\r\n return getTrein(i);\r\n }\r\n }\r\n\r\n }\r\n return null;\r\n }", "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }", "public double min() {\n double resultat = Double.MAX_VALUE;\n double tmp = 0;\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.min(tab.get(i));\n if (tmp < resultat) {\n resultat = tmp;\n }\n }\n\n System.out.println(\"Min colonne:\" + resultat);\n return resultat;\n }", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "public Mineral get(int idx ) {\n if (numM == 0) {\n return null;\n }\n else if ((idx < 0)|| (idx > (numM-1))) {\n return null;\n } else {\n return mineralList.get(idx);\n }\n }", "protected Kazan getKazanByIndex(int index){\n return getKazans()[index];\n }", "Maycta findFirstByCuenta(String cuenta);", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "public T findMin();", "int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }", "List<MovieCinema> findFirst3ByOrderByMoviePriceAsc();", "@Override\n\tpublic int countByMaCTV(String maCTV) {\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountByMaCTV;\n\n\t\tObject[] finderArgs = new Object[] {maCTV};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "protected String getFirstResult(NbaVpmsResultsData vpmsResult) {\n\t\tString result = \"\";\n\t\tif (vpmsResult == null || vpmsResult.getResultsData() == null || vpmsResult.getResultsData().size() == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tif (vpmsResult.getResultsData().get(0) == null) {\n\t\t\treturn result;\n\t\t}\n\t\treturn (String) (vpmsResult.getResultsData()).get(0);\n\t}", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}", "public static void lowestPrice(DeluxePizza todaysPizza[])\n\t{\n\t\tboolean empty = true;\n\t\tfor(DeluxePizza x:todaysPizza)\n\t\t{\n\t\t\tif(x != null)\n\t\t\t\tempty = false;\n\t\t}\n\t\tif(!empty){\n\t\tdouble cheapest = todaysPizza[0].calcCost();\n\t\tint index = 0;\n\t\tfor(int i = 0; i <= todaysPizza.length - 1; ++i)\n\t\t{\n\t\t\tif(todaysPizza[i] == null)\n\t\t\t{\n\t\t\t\tcheapest += 0;\n\t\t\t}\n\t\t\telse if(todaysPizza[i].calcCost() < cheapest)\n\t\t\t{\n\t\t\t\tcheapest = todaysPizza[i].calcCost();\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The cheapest pizza is pizza # \" + (index + 1) + \" at $\" + cheapest);\n\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"You haven't made any pizzas yet!\");\n\t\t\treturn;\n\t\t}\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public BigDecimal premiacaoAberturaTipoProduto(TipoProdutoQuantidade t) {\n\t\tfor (PoliticaAberturaTipoVendedorTipoProduto politica : tipoVendedor.getListaPoliticasATVTP()) {\n\t\t\tif (t.getTipo().equals(politica.getTipoProduto())) {\n\t\t\t\treturn politica.premiacao(t.getQuantidade());\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "public List<TonKho> findTonkhoByDmThuocMa(String dmtMa) {\n List<TonKho> result = null;\n try {\n DmThuoc dmt = (DmThuoc) getEm().createQuery(\"Select d from DmThuoc d Where d.dmthuocMa = :dmthuocMa\").setParameter(\"dmthuocMa\", dmtMa).getSingleResult();\n Query q = getEm().createQuery(\"Select Distinct tk from TonKho tk Where tk.dmthuocMaso.dmthuocMaso = :dmthuocMaso \");\n q.setParameter(\"dmthuocMaso\", dmt.getDmthuocMaso());\n result = q.getResultList();\n } catch (Exception ex) {\n System.out.println(\"Error: \" + ex.toString());\n }\n //System.out.println(\"End findTonkhoByDmThuocMa(String dmtMa method\");\n return result;\n }", "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track + \"\\\"\");\n\t\treturn keep_track;\n\t\t\n\t}", "public Prestamo getPrestamo() {\r\n return prestamo;\r\n }", "public void setVat (java.math.BigDecimal vat) {\n\t\tthis.vat = vat;\n\t}", "public WellSetPOJOBigDecimal get(int index) {\n return this.wellsets.get(index);\n }", "int[] primMST() {\n // Clone actual array\n int[][] graph = Arrays.stream(this.graph).map(int[]::clone).toArray(int[][]::new);\n\n // Array to store constructed MST\n int[] parent = new int[VERTICES];\n\n // Key values used to pick minimum weight edge in cut\n int[] key = new int[VERTICES];\n\n // To represent set of vertices included in MST\n Boolean[] mstSet = new Boolean[VERTICES];\n\n // Initialize all keys as INFINITE\n for (int i = 0; i < VERTICES; i++) {\n key[i] = Integer.MAX_VALUE;\n mstSet[i] = false;\n }\n\n // Always include first 1st vertex in MST.\n key[0] = 0; // Make key 0 so that this vertex is picked as first vertex\n parent[0] = -1; // zFirst node is always root of MST\n\n // The MST will have V vertices\n for (int count = 0; count < VERTICES - 1; count++) {\n // Pick thd minimum key vertex from the set of vertices\n // not yet included in MST\n int u = minKey(key, mstSet);\n\n // Add the picked vertex to the MST Set\n mstSet[u] = true;\n\n // Update key value and parent index of the adjacent\n // vertices of the picked vertex. Consider only those\n // vertices which are not yet included in MST\n for (int v = 0; v < VERTICES; v++)\n\n // graph[u][v] is non zero only for adjacent vertices of m\n // mstSet[v] is false for vertices not yet included in MST\n // Update the key only if graph[u][v] is smaller than key[v]\n if (graph[u][v] != 0 && mstSet[v] == false && graph[u][v] < key[v]) {\n parent[v] = u;\n key[v] = graph[u][v];\n }\n }\n\n return parent;\n }", "public int compareTo(Mahasiswa m) {\n if(this.kodeJurusan > m.kodeJurusan){\r\n return 1;\r\n }\r\n else{\r\n if(this.kodeJurusan == m.kodeJurusan){\r\n if(this.angkatan<m.angkatan){\r\n return 1;\r\n }\r\n else{\r\n if(this.angkatan==m.angkatan){\r\n if(this.ipk<m.ipk){\r\n return 1;\r\n }\r\n else if(this.ipk==m.ipk){\r\n return 0;\r\n }\r\n return -1;\r\n }\r\n return -1;\r\n }\r\n }\r\n return -1;\r\n }\r\n }", "java.math.BigDecimal getSingleBetMinimum();", "org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();", "public Mach buscarmayorIndiceDeMACHES(ArrayList<Mach> maches) {\n\t\tMach aux = null;\r\n\t\tint elpapa = 0;\r\n\t\tfor (int i = 0; i < maches.size(); i++) {\r\n\t\t\tif (maches.get(i).getIdice() > elpapa) {\r\n\t\t\t\taux = maches.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn aux;\r\n\t}", "int selectNextCity(Ant ant) {\r\n\t\tint from, to;\r\n\t\t\r\n\t\tdouble denom = 0.0;\r\n\r\n\t\tfrom = ant.curCity;\r\n\r\n\t\t// compute denom\r\n\t\tfor (to = 0; to < cities.length; to++) {\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tdenom += antProduct(from, to);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tassert denom != 0.0;\r\n\r\n\t\tdo {\r\n\t\t\tdouble p;\r\n\t\t\tto++;\r\n\t\t\tif (to >= cities.length)\r\n\t\t\t\tto = 0;\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tp = antProduct(from, to) / denom;\r\n\t\t\t\tdouble num = Math.random();\r\n\t\t\t\tif (num < p)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\r\n\t\treturn to;\r\n\t}", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "public Set<String> getFirst(String A);", "private C36011ai m116775V() {\n if (this.f94800av == null) {\n this.f94800av = new C36011ai();\n this.f94800av.f94200a = this;\n }\n return this.f94800av;\n }", "public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "public BigDecimal getSETTLED_PROFIT_AMT() {\r\n return SETTLED_PROFIT_AMT;\r\n }", "int minDistance(int dist[], Boolean sptSet[]) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index=-1;\n\n for (int v = 0; v < V; v++)\n if (sptSet[v] == false && dist[v] <= min) {\n min = dist[v];\n min_index = v;\n }\n\n return min_index;\n }", "public AnyType findMin() {\n\t\treturn elementAt(findMin(root));\n\t}", "private int minDistance(int dist[], boolean sptSet[]) {\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < V; v++)\n if (!sptSet[v] && dist[v] < min) {\n min = dist[v];\n min_index = v;\n }\n\n return min_index;\n }", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "private static PizzaModel getCheapest(ArrayList<PizzaModel> pizzaGroup){\n\t\tPizzaModel cheapestPizza = pizzaGroup.get(0);\n\t\tfor(PizzaModel p : pizzaGroup){\n\t\t\tif(p.getPrice()<= cheapestPizza.getPrice())\n\t\t\t\tcheapestPizza = p;\n\t\t}\n\t\treturn cheapestPizza;\n\t}", "public Vertex HeapExtractMin() {\n\n if (size == 1) {\n \t\n Vertex min = ver[0];\n size--;\n return min;\n }\n\n // Getting the last element and making it root element of the binary tree\n Vertex min = ver[0];\n Vertex lastItem = ver[size-1];\n ver[0]= lastItem;\n size--;\n // Calling heapMinHeapify to maintain heap property\n heapMinHeapify(0);\n return min;\n }", "private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }", "public BigDecimal getPremAmt() {\n\t\treturn premAmt;\n\t}", "public int getKMPertama(){\n\t\treturn firstNKmCost;\n\t}", "public Money findMinPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney min = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (min.compareTo(current) == 1 || !flag) {\n\t\t\t\tmin = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t }\n\t\t}\n\t\treturn min;\n\t}", "public int getVATNumber() {\n\t\treturn vatNumber;\n\t}", "public static Vector getSunPosition(double T){\n Vector sunPosition = new Vector(3);\n sunPosition = getMiniSun((T-51544.5)/365.25/100);\n sunPosition = sunPosition.multiplyVector(sunPosition, constants.AU);\n //System.out.println(\"Actual Sun Position \" + sunPosition.getSize(sunPosition)/1000 + \" km\");\n return sunPosition;\n }", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "public Float getFirstWcdmaSucc() {\r\n return firstWcdmaSucc;\r\n }", "public BigDecimal getVAT_CHARGE_INSUR_AMT() {\r\n return VAT_CHARGE_INSUR_AMT;\r\n }", "protected Trein heeftTreinBestemming(int bestemming) { \r\n for(int i = 0; i < treinaantal; i++) {\r\n if(getTrein(i).getBestemming() == bestemming) {\r\n return treinlijst[i];\r\n }\r\n }\r\n return null;\r\n }", "public Double getMinimumTransaction() {\n if (transactions.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tDouble min = transactions.get(0).getAmount().doubleValue();\n\t\t\tfor (int i = 1; i < transactions.size(); i++) {\n\t\t\t\tif (min > transactions.get(i).getAmount().doubleValue()) {\n\t\t\t\t\tmin = transactions.get(i).getAmount().doubleValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn min;\n\t\t}\n }", "public Comparator<Estado> getCompHeuristicaMasProf() {\r\n\t\tcomp = new Comparator<Estado>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Estado e1, Estado e2) {\r\n\t\t\t\tInteger es1 = e1.getDistanciaManhattan() + e1.getProf();\r\n\t\t\t\tInteger es2 = e2.getDistanciaManhattan() + e2.getProf();\r\n\t\t\t\tif (es1 == es2)\r\n\t\t\t\t\treturn new Integer(e1.getProf().compareTo(e2.getProf())); // En caso de empate comparo por profundidad\r\n\t\t\t\treturn new Integer(es1.compareTo(es2));\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn comp;\r\n\t}", "@Override\n\tpublic PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = finderCache.getResult(\n\t\t\t\t_finderPathFetchBySoKU, finderArgs, this);\n\t\t}\n\n\t\tif (result instanceof PhatVay) {\n\t\t\tPhatVay phatVay = (PhatVay)result;\n\n\t\t\tif (!Objects.equals(soKU, phatVay.getSoKU())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tList<PhatVay> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t\t_finderPathFetchBySoKU, finderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (list.size() > 1) {\n\t\t\t\t\t\tCollections.sort(list, Collections.reverseOrder());\n\n\t\t\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\t\"PhatVayPersistenceImpl.fetchBySoKU(String, boolean) with parameters (\" +\n\t\t\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPhatVay phatVay = list.get(0);\n\n\t\t\t\t\tresult = phatVay;\n\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(_finderPathFetchBySoKU, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (PhatVay)result;\n\t\t}\n\t}", "@Override\n\tpublic T findMin(T[] ob) {\n\t\treturn null;\n\t}", "public final ManagedElementList<VirtualMachine> getFirstSet() {\r\n return (ManagedElementList<VirtualMachine>) this.set1;\r\n }", "@Override\n\tpublic PlanItem perseCodeStringTOPlanItem(String code, BigDecimal oneMoney)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public BigDecimal getWAIVED_PROFIT_AMT() {\r\n return WAIVED_PROFIT_AMT;\r\n }", "public void selectCt(Integer index) {\n\t\tlog.info(\"-----selectCt()-----\");\n\t\tlog.info(String.format(\"-----selected: %s\", selected.getCtTraKho().getCttrakhoThutu()));\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tTonKho tk = selected.getTonKho();\n\t\tCtTraKho ctx = selected.getCtTraKho();\n\t\tupdateItem = index;\n\t\ttonkhoMa = tk.getTonkhoMa().toString();\n\t\tlog.info(\"-----ton kho: \" + tonkho);\n\t\t\n\t\t//DecimalFormat df = new DecimalFormat(\"###.##\");\n\t\ttonkho = tk.getTonkhoTon();\n\t\tdmtMa = ctx.getDmthuocMaso().getDmthuocMa();\n\t\txuat = ctx.getCttrakhoSoluong();\n\t\t\n\t}", "public V getCarta(K key);", "private int firstB(String fa)\n{\n Calendar cal=new GregorianCalendar();\n int y1=(cal.get(Calendar.YEAR)%2000)/10;\n int y2=(cal.get(Calendar.YEAR)%2000)%10;\n int flag1=0,flag2=0,flag3=0;\n String temp1=\"\"+fa.charAt(0);\n String temp2=\"\"+fa.charAt(1);\n String temp3=\"\"+fa.charAt(2);\n if(temp1.equalsIgnoreCase(String.valueOf(y1)))\n {\n flag1=1;\n }\n if(temp2.equalsIgnoreCase(\"F\") || temp2.equalsIgnoreCase(\"U\")|| temp2.equalsIgnoreCase(\"K\"))\n {\n flag2=1;\n }\n if(temp3.equalsIgnoreCase(\"\"+y2))\n {\n flag3=1;\n }\n if(flag1+flag2+flag3==3){\n return 1;\n }\n else{\n return 0;\n }\n \n}", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "public int getLowestChromID();", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public C7301c mo31846qJ(int i) {\n if (this.dAK != null && this.dAK.size() > i) {\n return (C7301c) this.dAK.get(i);\n }\n return null;\n }", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public CustomerAddressQuery vatId() {\n startField(\"vat_id\");\n\n return this;\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "T getOrderedQueryParameterFirstValue();", "public PurchaseHistory getMinPriceFor(int PID, int quality){\n //TODO: implement this method\n String sql = \"SELECT \"+DBHelper.PURCHASEHISTORY_ID+\", min(\"+DBHelper.PURCHASEHISTORY_PRICE+\") FROM \" + DBHelper.TABLE_PURCHASEHISTORY + \" WHERE \" + DBHelper.PURCHASEHISTORY_PID + \"=\" + PID + \" GROUP BY \" + DBHelper.PURCHASEHISTORY_PID;\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(sql, null);\n c.moveToFirst();\n if (!c.isAfterLast()) {\n int _id=c.getInt(c.getColumnIndex(\"_id\"));\n Log.d(DatabaseHelper.class.getName(), \"getMinPriceFor(\"+PID+\"):\" + _id + \",minprice:\"+c.getDouble(1));\n\n c = db.query(DBHelper.TABLE_PURCHASEHISTORY, null, DBHelper.PURCHASEHISTORY_ID+\"=\"+_id,null,null,null,null);\n c.moveToFirst();\n double price = c.getDouble(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PRICE));\n String unit = c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_UNIT));\n String store = String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_SID)));\n String time = c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_DATE));\n\n db.close();\n store = getNameBySID(Integer.parseInt(store));\n return new PurchaseHistory(price, unit, store, time,_id);\n } else {\n return null;\n }\n }", "public String getMinKey() {\n if (list.isEmpty()) {\n return \"\";\n }\n return v.get(list.getLast()).iterator().next();\n }" ]
[ "0.7156778", "0.6181416", "0.5314829", "0.51824427", "0.5151312", "0.5121699", "0.5070429", "0.49662971", "0.4894672", "0.4814185", "0.47961813", "0.47858638", "0.47348383", "0.46846092", "0.46793902", "0.46733177", "0.46715254", "0.4653616", "0.46483222", "0.46076414", "0.46012393", "0.45819598", "0.457001", "0.4532074", "0.45281005", "0.4519441", "0.4463637", "0.44621906", "0.4461071", "0.44578594", "0.4440589", "0.44338846", "0.4420714", "0.4418923", "0.4412184", "0.4409977", "0.44061276", "0.4405064", "0.43936163", "0.43839264", "0.4382095", "0.43786976", "0.43755335", "0.43657735", "0.43646425", "0.43593264", "0.4350057", "0.43482485", "0.43478537", "0.43403333", "0.43391836", "0.43388784", "0.43290144", "0.43259847", "0.4320416", "0.43033427", "0.42945448", "0.42919862", "0.42889228", "0.42835617", "0.4277674", "0.4272193", "0.42576343", "0.4253148", "0.42512956", "0.42496008", "0.4247255", "0.42406812", "0.4240433", "0.42394158", "0.42389503", "0.4235998", "0.42351255", "0.42338315", "0.42303938", "0.4227337", "0.42227343", "0.42203313", "0.42190406", "0.42183748", "0.4208213", "0.42058793", "0.41994926", "0.4199108", "0.41948912", "0.41947138", "0.41922933", "0.41914058", "0.41819933", "0.41772437", "0.41715422", "0.4167566", "0.41660067", "0.41653836", "0.41617936", "0.41576523", "0.41566098", "0.41546765", "0.4152376", "0.4146066" ]
0.5528496
2
Returns the first phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay fetchByMaCTV_First( String maCTV, OrderByComparator<PhatVay> orderByComparator) { List<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "private static int minKey(int[] key, Boolean[] mstSet, int V)\r\n {\r\n // Initialize min value\r\n int min = Integer.MAX_VALUE, min_index=-1;\r\n\r\n for (int v = 0; v < V; v++)\r\n if (!mstSet[v] && key[v] < min)\r\n {\r\n min = key[v];\r\n min_index = v;\r\n }\r\n\r\n return min_index;\r\n }", "public double getMinT() {\n return v[0];\n }", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic vip selectByphone(String phonum) {\n\t\treturn this.vd.selectByphone(phonum);\n\t}", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "private int getMinPrior(int theIndex) {\n \n /* \n * We're looking for the minimum coins\n * needed to create the value up to now.\n */\n int minimumThroughout = Integer.MAX_VALUE;\n \n /* Store the current coin we are looking at. */\n int coinIndex = 0;\n int bestCoin = -1;\n \n /* \n * Because of the dynamically updated minimums,\n * we simply check any coins which leave us with\n * a positive value remaining to verify.\n */\n while (coinIndex < myCoins.length \n && myCoins[coinIndex] <= theIndex) {\n \n /* We want to see minimum up to this point. */\n int minimumNow = myIndices[theIndex - myCoins[coinIndex]];\n \n /* Update minimum to this point. */\n if (minimumNow < minimumThroughout) {\n minimumThroughout = minimumNow;\n bestCoin = myCoins[coinIndex];\n }\n ++coinIndex;\n }\n \n /* Update Purses by previous optimal solution and adding newest coin. */\n try {\n myPurses[theIndex] = myPurses[theIndex - bestCoin].clone();\n }\n catch (final CloneNotSupportedException e) {\n System.out.println(\"Purse in CoinCounter algorithm could\\n\"\n + \"not be cloned please try again!\");\n }\n myPurses[theIndex].addCoin(bestCoin);\n \n myPurses[theIndex].setBestCoin(bestCoin);\n \n return minimumThroughout;\n }", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "public V getFirst() {\n\t\t\treturn v;\n\t\t}", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "public TonKho getTonKhoHienTai(String malk, Integer maKhoa) {\n Query q = getEm().createQuery(\"SELECT t FROM TonKho t WHERE t.dmkhoaMaso.dmkhoaMaso = :maKhoa AND t.tonkhoMalienket = :malk AND t.tonkhoMa = (SELECT MAX(t1.tonkhoMa) FROM TonKho t1 WHERE t1.tonkhoMalienket = :malk AND t1.dmkhoaMaso.dmkhoaMaso = :maKhoa)\");\n q.setParameter(\"malk\", malk);\n q.setParameter(\"maKhoa\", maKhoa);\n try {\n List<TonKho> listTk = q.getResultList();\n if (listTk != null && listTk.size() > 0) {\n return listTk.get(0);\n }\n } catch (Exception ex) {\n System.out.println(\"Error getTonKhoHienTai: \" + ex.toString());\n ex.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "@Override\n\tpublic TC getProchain() {\n\t\t// TODO Auto-generated method stub\n\t\tif (!estVide()) {\n\t\t\tfor (int i = maxPrio-1; i>=0; i--) {\n\t\t\t\tif (salle.get(i).size()!=0) {\n\t\t\t\t\treturn salle.get(i).get(0);\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public BigDecimal getSETTLED_VAT_AMT() {\r\n return SETTLED_VAT_AMT;\r\n }", "public static GiaovuEntity xacThucTK(String ma, String mk) {\n GiaovuEntity giaoVu = getThongTinGV(ma);\n if (giaoVu == null || giaoVu.getMatKhau() == null) {\n return null;\n }\n if (giaoVu.getMatKhau().equals(mk) == true) {\n return giaoVu;\n }\n return null;\n }", "public float getItemPriceSearchVAT()\n\t{\n\t\treturn itemPriceSearchVAT;\n\t}", "protected Trein heeftTreinVolgVertrekpunt(int vertrekpunt) {\r\n for(int i = 0; i < treinaantal; i++) {\r\n if(getTrein(i).heeftVolgTaak()) {\r\n if(getTrein(i).getVolgVertrekpunt() == vertrekpunt) {\r\n return getTrein(i);\r\n }\r\n }\r\n\r\n }\r\n return null;\r\n }", "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }", "public double min() {\n double resultat = Double.MAX_VALUE;\n double tmp = 0;\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.min(tab.get(i));\n if (tmp < resultat) {\n resultat = tmp;\n }\n }\n\n System.out.println(\"Min colonne:\" + resultat);\n return resultat;\n }", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "public Mineral get(int idx ) {\n if (numM == 0) {\n return null;\n }\n else if ((idx < 0)|| (idx > (numM-1))) {\n return null;\n } else {\n return mineralList.get(idx);\n }\n }", "protected Kazan getKazanByIndex(int index){\n return getKazans()[index];\n }", "Maycta findFirstByCuenta(String cuenta);", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "public T findMin();", "int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }", "List<MovieCinema> findFirst3ByOrderByMoviePriceAsc();", "@Override\n\tpublic int countByMaCTV(String maCTV) {\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountByMaCTV;\n\n\t\tObject[] finderArgs = new Object[] {maCTV};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "protected String getFirstResult(NbaVpmsResultsData vpmsResult) {\n\t\tString result = \"\";\n\t\tif (vpmsResult == null || vpmsResult.getResultsData() == null || vpmsResult.getResultsData().size() == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tif (vpmsResult.getResultsData().get(0) == null) {\n\t\t\treturn result;\n\t\t}\n\t\treturn (String) (vpmsResult.getResultsData()).get(0);\n\t}", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}", "public static void lowestPrice(DeluxePizza todaysPizza[])\n\t{\n\t\tboolean empty = true;\n\t\tfor(DeluxePizza x:todaysPizza)\n\t\t{\n\t\t\tif(x != null)\n\t\t\t\tempty = false;\n\t\t}\n\t\tif(!empty){\n\t\tdouble cheapest = todaysPizza[0].calcCost();\n\t\tint index = 0;\n\t\tfor(int i = 0; i <= todaysPizza.length - 1; ++i)\n\t\t{\n\t\t\tif(todaysPizza[i] == null)\n\t\t\t{\n\t\t\t\tcheapest += 0;\n\t\t\t}\n\t\t\telse if(todaysPizza[i].calcCost() < cheapest)\n\t\t\t{\n\t\t\t\tcheapest = todaysPizza[i].calcCost();\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The cheapest pizza is pizza # \" + (index + 1) + \" at $\" + cheapest);\n\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"You haven't made any pizzas yet!\");\n\t\t\treturn;\n\t\t}\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public BigDecimal premiacaoAberturaTipoProduto(TipoProdutoQuantidade t) {\n\t\tfor (PoliticaAberturaTipoVendedorTipoProduto politica : tipoVendedor.getListaPoliticasATVTP()) {\n\t\t\tif (t.getTipo().equals(politica.getTipoProduto())) {\n\t\t\t\treturn politica.premiacao(t.getQuantidade());\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "public List<TonKho> findTonkhoByDmThuocMa(String dmtMa) {\n List<TonKho> result = null;\n try {\n DmThuoc dmt = (DmThuoc) getEm().createQuery(\"Select d from DmThuoc d Where d.dmthuocMa = :dmthuocMa\").setParameter(\"dmthuocMa\", dmtMa).getSingleResult();\n Query q = getEm().createQuery(\"Select Distinct tk from TonKho tk Where tk.dmthuocMaso.dmthuocMaso = :dmthuocMaso \");\n q.setParameter(\"dmthuocMaso\", dmt.getDmthuocMaso());\n result = q.getResultList();\n } catch (Exception ex) {\n System.out.println(\"Error: \" + ex.toString());\n }\n //System.out.println(\"End findTonkhoByDmThuocMa(String dmtMa method\");\n return result;\n }", "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track + \"\\\"\");\n\t\treturn keep_track;\n\t\t\n\t}", "public Prestamo getPrestamo() {\r\n return prestamo;\r\n }", "public void setVat (java.math.BigDecimal vat) {\n\t\tthis.vat = vat;\n\t}", "public WellSetPOJOBigDecimal get(int index) {\n return this.wellsets.get(index);\n }", "int[] primMST() {\n // Clone actual array\n int[][] graph = Arrays.stream(this.graph).map(int[]::clone).toArray(int[][]::new);\n\n // Array to store constructed MST\n int[] parent = new int[VERTICES];\n\n // Key values used to pick minimum weight edge in cut\n int[] key = new int[VERTICES];\n\n // To represent set of vertices included in MST\n Boolean[] mstSet = new Boolean[VERTICES];\n\n // Initialize all keys as INFINITE\n for (int i = 0; i < VERTICES; i++) {\n key[i] = Integer.MAX_VALUE;\n mstSet[i] = false;\n }\n\n // Always include first 1st vertex in MST.\n key[0] = 0; // Make key 0 so that this vertex is picked as first vertex\n parent[0] = -1; // zFirst node is always root of MST\n\n // The MST will have V vertices\n for (int count = 0; count < VERTICES - 1; count++) {\n // Pick thd minimum key vertex from the set of vertices\n // not yet included in MST\n int u = minKey(key, mstSet);\n\n // Add the picked vertex to the MST Set\n mstSet[u] = true;\n\n // Update key value and parent index of the adjacent\n // vertices of the picked vertex. Consider only those\n // vertices which are not yet included in MST\n for (int v = 0; v < VERTICES; v++)\n\n // graph[u][v] is non zero only for adjacent vertices of m\n // mstSet[v] is false for vertices not yet included in MST\n // Update the key only if graph[u][v] is smaller than key[v]\n if (graph[u][v] != 0 && mstSet[v] == false && graph[u][v] < key[v]) {\n parent[v] = u;\n key[v] = graph[u][v];\n }\n }\n\n return parent;\n }", "public int compareTo(Mahasiswa m) {\n if(this.kodeJurusan > m.kodeJurusan){\r\n return 1;\r\n }\r\n else{\r\n if(this.kodeJurusan == m.kodeJurusan){\r\n if(this.angkatan<m.angkatan){\r\n return 1;\r\n }\r\n else{\r\n if(this.angkatan==m.angkatan){\r\n if(this.ipk<m.ipk){\r\n return 1;\r\n }\r\n else if(this.ipk==m.ipk){\r\n return 0;\r\n }\r\n return -1;\r\n }\r\n return -1;\r\n }\r\n }\r\n return -1;\r\n }\r\n }", "java.math.BigDecimal getSingleBetMinimum();", "org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();", "public Mach buscarmayorIndiceDeMACHES(ArrayList<Mach> maches) {\n\t\tMach aux = null;\r\n\t\tint elpapa = 0;\r\n\t\tfor (int i = 0; i < maches.size(); i++) {\r\n\t\t\tif (maches.get(i).getIdice() > elpapa) {\r\n\t\t\t\taux = maches.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn aux;\r\n\t}", "int selectNextCity(Ant ant) {\r\n\t\tint from, to;\r\n\t\t\r\n\t\tdouble denom = 0.0;\r\n\r\n\t\tfrom = ant.curCity;\r\n\r\n\t\t// compute denom\r\n\t\tfor (to = 0; to < cities.length; to++) {\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tdenom += antProduct(from, to);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tassert denom != 0.0;\r\n\r\n\t\tdo {\r\n\t\t\tdouble p;\r\n\t\t\tto++;\r\n\t\t\tif (to >= cities.length)\r\n\t\t\t\tto = 0;\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tp = antProduct(from, to) / denom;\r\n\t\t\t\tdouble num = Math.random();\r\n\t\t\t\tif (num < p)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\r\n\t\treturn to;\r\n\t}", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "public Set<String> getFirst(String A);", "private C36011ai m116775V() {\n if (this.f94800av == null) {\n this.f94800av = new C36011ai();\n this.f94800av.f94200a = this;\n }\n return this.f94800av;\n }", "public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "public BigDecimal getSETTLED_PROFIT_AMT() {\r\n return SETTLED_PROFIT_AMT;\r\n }", "int minDistance(int dist[], Boolean sptSet[]) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index=-1;\n\n for (int v = 0; v < V; v++)\n if (sptSet[v] == false && dist[v] <= min) {\n min = dist[v];\n min_index = v;\n }\n\n return min_index;\n }", "public AnyType findMin() {\n\t\treturn elementAt(findMin(root));\n\t}", "private int minDistance(int dist[], boolean sptSet[]) {\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < V; v++)\n if (!sptSet[v] && dist[v] < min) {\n min = dist[v];\n min_index = v;\n }\n\n return min_index;\n }", "private static PizzaModel getCheapest(ArrayList<PizzaModel> pizzaGroup){\n\t\tPizzaModel cheapestPizza = pizzaGroup.get(0);\n\t\tfor(PizzaModel p : pizzaGroup){\n\t\t\tif(p.getPrice()<= cheapestPizza.getPrice())\n\t\t\t\tcheapestPizza = p;\n\t\t}\n\t\treturn cheapestPizza;\n\t}", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "public Vertex HeapExtractMin() {\n\n if (size == 1) {\n \t\n Vertex min = ver[0];\n size--;\n return min;\n }\n\n // Getting the last element and making it root element of the binary tree\n Vertex min = ver[0];\n Vertex lastItem = ver[size-1];\n ver[0]= lastItem;\n size--;\n // Calling heapMinHeapify to maintain heap property\n heapMinHeapify(0);\n return min;\n }", "private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }", "public BigDecimal getPremAmt() {\n\t\treturn premAmt;\n\t}", "public int getKMPertama(){\n\t\treturn firstNKmCost;\n\t}", "public Money findMinPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney min = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (min.compareTo(current) == 1 || !flag) {\n\t\t\t\tmin = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t }\n\t\t}\n\t\treturn min;\n\t}", "public int getVATNumber() {\n\t\treturn vatNumber;\n\t}", "public static Vector getSunPosition(double T){\n Vector sunPosition = new Vector(3);\n sunPosition = getMiniSun((T-51544.5)/365.25/100);\n sunPosition = sunPosition.multiplyVector(sunPosition, constants.AU);\n //System.out.println(\"Actual Sun Position \" + sunPosition.getSize(sunPosition)/1000 + \" km\");\n return sunPosition;\n }", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "public Float getFirstWcdmaSucc() {\r\n return firstWcdmaSucc;\r\n }", "public BigDecimal getVAT_CHARGE_INSUR_AMT() {\r\n return VAT_CHARGE_INSUR_AMT;\r\n }", "protected Trein heeftTreinBestemming(int bestemming) { \r\n for(int i = 0; i < treinaantal; i++) {\r\n if(getTrein(i).getBestemming() == bestemming) {\r\n return treinlijst[i];\r\n }\r\n }\r\n return null;\r\n }", "public Double getMinimumTransaction() {\n if (transactions.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tDouble min = transactions.get(0).getAmount().doubleValue();\n\t\t\tfor (int i = 1; i < transactions.size(); i++) {\n\t\t\t\tif (min > transactions.get(i).getAmount().doubleValue()) {\n\t\t\t\t\tmin = transactions.get(i).getAmount().doubleValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn min;\n\t\t}\n }", "public Comparator<Estado> getCompHeuristicaMasProf() {\r\n\t\tcomp = new Comparator<Estado>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Estado e1, Estado e2) {\r\n\t\t\t\tInteger es1 = e1.getDistanciaManhattan() + e1.getProf();\r\n\t\t\t\tInteger es2 = e2.getDistanciaManhattan() + e2.getProf();\r\n\t\t\t\tif (es1 == es2)\r\n\t\t\t\t\treturn new Integer(e1.getProf().compareTo(e2.getProf())); // En caso de empate comparo por profundidad\r\n\t\t\t\treturn new Integer(es1.compareTo(es2));\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn comp;\r\n\t}", "@Override\n\tpublic PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = finderCache.getResult(\n\t\t\t\t_finderPathFetchBySoKU, finderArgs, this);\n\t\t}\n\n\t\tif (result instanceof PhatVay) {\n\t\t\tPhatVay phatVay = (PhatVay)result;\n\n\t\t\tif (!Objects.equals(soKU, phatVay.getSoKU())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tList<PhatVay> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t\t_finderPathFetchBySoKU, finderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (list.size() > 1) {\n\t\t\t\t\t\tCollections.sort(list, Collections.reverseOrder());\n\n\t\t\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\t\"PhatVayPersistenceImpl.fetchBySoKU(String, boolean) with parameters (\" +\n\t\t\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPhatVay phatVay = list.get(0);\n\n\t\t\t\t\tresult = phatVay;\n\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(_finderPathFetchBySoKU, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (PhatVay)result;\n\t\t}\n\t}", "@Override\n\tpublic T findMin(T[] ob) {\n\t\treturn null;\n\t}", "@Override\n\tpublic PlanItem perseCodeStringTOPlanItem(String code, BigDecimal oneMoney)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public final ManagedElementList<VirtualMachine> getFirstSet() {\r\n return (ManagedElementList<VirtualMachine>) this.set1;\r\n }", "public BigDecimal getWAIVED_PROFIT_AMT() {\r\n return WAIVED_PROFIT_AMT;\r\n }", "public void selectCt(Integer index) {\n\t\tlog.info(\"-----selectCt()-----\");\n\t\tlog.info(String.format(\"-----selected: %s\", selected.getCtTraKho().getCttrakhoThutu()));\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tTonKho tk = selected.getTonKho();\n\t\tCtTraKho ctx = selected.getCtTraKho();\n\t\tupdateItem = index;\n\t\ttonkhoMa = tk.getTonkhoMa().toString();\n\t\tlog.info(\"-----ton kho: \" + tonkho);\n\t\t\n\t\t//DecimalFormat df = new DecimalFormat(\"###.##\");\n\t\ttonkho = tk.getTonkhoTon();\n\t\tdmtMa = ctx.getDmthuocMaso().getDmthuocMa();\n\t\txuat = ctx.getCttrakhoSoluong();\n\t\t\n\t}", "public V getCarta(K key);", "private int firstB(String fa)\n{\n Calendar cal=new GregorianCalendar();\n int y1=(cal.get(Calendar.YEAR)%2000)/10;\n int y2=(cal.get(Calendar.YEAR)%2000)%10;\n int flag1=0,flag2=0,flag3=0;\n String temp1=\"\"+fa.charAt(0);\n String temp2=\"\"+fa.charAt(1);\n String temp3=\"\"+fa.charAt(2);\n if(temp1.equalsIgnoreCase(String.valueOf(y1)))\n {\n flag1=1;\n }\n if(temp2.equalsIgnoreCase(\"F\") || temp2.equalsIgnoreCase(\"U\")|| temp2.equalsIgnoreCase(\"K\"))\n {\n flag2=1;\n }\n if(temp3.equalsIgnoreCase(\"\"+y2))\n {\n flag3=1;\n }\n if(flag1+flag2+flag3==3){\n return 1;\n }\n else{\n return 0;\n }\n \n}", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "public int getLowestChromID();", "public C7301c mo31846qJ(int i) {\n if (this.dAK != null && this.dAK.size() > i) {\n return (C7301c) this.dAK.get(i);\n }\n return null;\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public CustomerAddressQuery vatId() {\n startField(\"vat_id\");\n\n return this;\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "T getOrderedQueryParameterFirstValue();", "public PurchaseHistory getMinPriceFor(int PID, int quality){\n //TODO: implement this method\n String sql = \"SELECT \"+DBHelper.PURCHASEHISTORY_ID+\", min(\"+DBHelper.PURCHASEHISTORY_PRICE+\") FROM \" + DBHelper.TABLE_PURCHASEHISTORY + \" WHERE \" + DBHelper.PURCHASEHISTORY_PID + \"=\" + PID + \" GROUP BY \" + DBHelper.PURCHASEHISTORY_PID;\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(sql, null);\n c.moveToFirst();\n if (!c.isAfterLast()) {\n int _id=c.getInt(c.getColumnIndex(\"_id\"));\n Log.d(DatabaseHelper.class.getName(), \"getMinPriceFor(\"+PID+\"):\" + _id + \",minprice:\"+c.getDouble(1));\n\n c = db.query(DBHelper.TABLE_PURCHASEHISTORY, null, DBHelper.PURCHASEHISTORY_ID+\"=\"+_id,null,null,null,null);\n c.moveToFirst();\n double price = c.getDouble(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PRICE));\n String unit = c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_UNIT));\n String store = String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_SID)));\n String time = c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_DATE));\n\n db.close();\n store = getNameBySID(Integer.parseInt(store));\n return new PurchaseHistory(price, unit, store, time,_id);\n } else {\n return null;\n }\n }", "public String getMinKey() {\n if (list.isEmpty()) {\n return \"\";\n }\n return v.get(list.getLast()).iterator().next();\n }" ]
[ "0.61824524", "0.5528765", "0.5313391", "0.51820534", "0.5151802", "0.5121905", "0.50701934", "0.49651593", "0.4893562", "0.48140168", "0.47964007", "0.47848368", "0.47352737", "0.46841002", "0.46783018", "0.46725267", "0.46712312", "0.46526194", "0.46478662", "0.4607303", "0.46023208", "0.4581354", "0.45701227", "0.4532393", "0.45277768", "0.4519738", "0.44631222", "0.44619888", "0.44604814", "0.4456299", "0.44413543", "0.44343758", "0.4419788", "0.44189334", "0.44128534", "0.440877", "0.44053754", "0.44042075", "0.43939176", "0.43842924", "0.43818682", "0.43786916", "0.43760383", "0.43666565", "0.43637824", "0.43587792", "0.43503267", "0.43484226", "0.43467495", "0.43399394", "0.43393108", "0.43384477", "0.43283364", "0.43255654", "0.43187085", "0.43019468", "0.42936352", "0.4290977", "0.42890733", "0.4283982", "0.4278229", "0.4272947", "0.42578846", "0.42529884", "0.42502606", "0.42491865", "0.42463508", "0.42403832", "0.4238843", "0.4238092", "0.4237138", "0.4235163", "0.42349672", "0.42327863", "0.42312568", "0.42274833", "0.42222482", "0.42209482", "0.42183873", "0.42175892", "0.4207099", "0.4206091", "0.41998208", "0.41980797", "0.41962066", "0.41944218", "0.4192042", "0.41918257", "0.41816363", "0.41779646", "0.4172371", "0.41669264", "0.41664886", "0.41653955", "0.41610092", "0.4157677", "0.4155365", "0.41537213", "0.4151544", "0.4145344" ]
0.71557575
0
Returns the last phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay findByMaCTV_Last( String maCTV, OrderByComparator<PhatVay> orderByComparator) throws NoSuchPhatVayException { PhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator); if (phatVay != null) { return phatVay; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("maCTV="); msg.append(maCTV); msg.append("}"); throw new NoSuchPhatVayException(msg.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public T getLast(){\n\treturn _end.getCargo();\n }", "@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }", "public double getMaxT() {\n return v[points_per_segment - 1];\n }", "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track + \"\\\"\");\n\t\treturn keep_track;\n\t\t\n\t}", "@Override\r\n public float getLastServoValue(int servo){\r\n return lastServoValues[getServo(servo)];\r\n }", "private int lastDay(int[] A, int K, int M) {\n\t\t\n\t\tList<int[]> list = new ArrayList<int[]>();\n\t\tint N = A.length;\n\t\tint[] lastDay = new int[] {1, N, N};\n\t\tlist.add(lastDay);\n\t\tpq = new PriorityQueue<int[]>(new Comparator<int[]>() {\n\t\t\tpublic int compare(int[] a, int[] b) { return a[2] - b[2]; }\n\t\t});\n\t\tpq.add(lastDay);\n\t\t\n\t\t// showListInts(list);\n\t\tif(list.size() == M && pq.peek()[2] >= K) return N;\n\t\t\n\t\tfor(int i = N-1; i >= 0; i--) {\n\t\t\tif(list.size() == 0) break;\n\t\t\tbinarySplit(list, A[i], K);\n\t\t\t// System.out.println(\"A[i] = \"+ A[i]);\n\t\t\t// showListInts(list);\n\t\t\tif(list.size() == M && pq.peek()[2] >= K) return i;\n\t\t}\n\t\treturn -1;\n\t}", "public BigDecimal getLastDebtM() {\n return lastDebtM;\n }", "public XBMCInfo getLastXBMC() {\n\t\treturn xbmcInfoManager.getLastXBMC();\n\t}", "@Override\n\tpublic SendRecord getLastExcelTp(String vosId) {\n\t\tSession ss =sf.getCurrentSession();\n\t\tString hql=\"from SendRecord sr where sr.vosId=:vosId Order by sr.sendTime desc\";\n\t\tQuery query =ss.createQuery(hql);\n\t\tquery.setParameter(\"vosId\", vosId);\n\t\t\n\t\tquery.setMaxResults(1);// \n\t\t\n\t\tSendRecord sr=(SendRecord)query.uniqueResult();\n\t\treturn sr;\n\t}", "public synchronized int getLastTerm() {\n if(lastEntryIndex() <= 0) return 0;\n return getEntry(lastIndex).getTerm();\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public V getLastValue()\n\t{\n\t\tV amount = null;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\tamount = entry.getElement();\n\t\t}\n\t\treturn amount;\n\t}", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public FixedBitSet getLastValue() {\n return value;\n }", "public int mo18250c(C3789t tVar) {\n return this.f13924c.lastIndexOf(tVar);\n }", "public SUDecision getlastChoice() {\r\n\t\treturn m_lastChoice;\r\n\t}", "public TonKho getTonKhoHienTai(String malk, Integer maKhoa) {\n Query q = getEm().createQuery(\"SELECT t FROM TonKho t WHERE t.dmkhoaMaso.dmkhoaMaso = :maKhoa AND t.tonkhoMalienket = :malk AND t.tonkhoMa = (SELECT MAX(t1.tonkhoMa) FROM TonKho t1 WHERE t1.tonkhoMalienket = :malk AND t1.dmkhoaMaso.dmkhoaMaso = :maKhoa)\");\n q.setParameter(\"malk\", malk);\n q.setParameter(\"maKhoa\", maKhoa);\n try {\n List<TonKho> listTk = q.getResultList();\n if (listTk != null && listTk.size() > 0) {\n return listTk.get(0);\n }\n } catch (Exception ex) {\n System.out.println(\"Error getTonKhoHienTai: \" + ex.toString());\n ex.printStackTrace();\n }\n return null;\n }", "public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }", "public TypeHere getLast() {\n return items[size - 1];\n }", "private Data getLastCommitData(int varIndex) {\n List<Data> dataList = _dataMap.get(varIndex);\n return dataList.get(dataList.size() - 1);\n }", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public T getLast();", "public T getLast();", "public RTWValue lastAsValue();", "public Long getLastOnsetTime() {\n if (timeInfos.isEmpty()) {\n return null;\n } else {\n int size = timeInfos.size();\n return timeInfos.get(size - 1).getOnsetTime();\n }\n }", "K last();", "public int getLast() {\n\treturn _last;\n }", "public double max() {\n double resultat = 0;\n double tmp = 0;\n System.out.println(\"type:\" + type);\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.max(tab.get(i));\n if (tmp > resultat) {\n resultat = tmp;\n }\n }\n System.out.println(\"Max colonne:\" + resultat);\n return resultat;\n }", "private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }", "@Override\n\tpublic VOFactura getLastFactura() {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT MAX(fac.facnumero) FROM factura fac\";\n\t\t\tres = stm.executeQuery(sql);\n\t\t\t\n\t\t\t\n\t\t\tres.last();\n\t\t\t\n\t\t\tif(res.getRow() > 0) {\n\t\t\t\tres.first(); //go to top\n\t\t\t\tVOFactura factura = new VOFactura();\n\t\t\t\tfactura.setNumero(res.getInt(1));\n\t\t\t\t\n\t\t\t\treturn factura;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No hay registros de facturas\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public Double getMaximumTransaction() {\n if (transactions.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tDouble maks = transactions.get(0).getAmount().doubleValue();\n\t\t\tfor (int i = 1; i < transactions.size(); i++) {\n\t\t\t\tif (maks < transactions.get(i).getAmount().doubleValue()) {\n\t\t\t\t\tmaks = transactions.get(i).getAmount().doubleValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn maks;\n\t\t}\n }", "public BigDecimal getPriceLastOrd();", "public int getLastSubIndex() {\n\t\t\tint maxRVI = 0, subIndex = 0;\n\t\t\tfor (Map.Entry<Integer, Integer> entry : subIndices.entrySet()) {\n\t\t\t\tif (entry.getKey() < currentRVIndex) {\n\t\t\t\t\tif (entry.getKey() > maxRVI) {\n\t\t\t\t\t\tmaxRVI = entry.getKey();\n\t\t\t\t\t\tsubIndex = entry.getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn subIndex;\n\t\t}", "public String getLastPoemLine(PoetAndTheme object){\n boolean lastCharDot = false;\n String lastVerseLine = \"\";\n while(!lastCharDot){\n lastVerseLine = object.getRandomVerseLine();\n if(lastVerseLine.substring(lastVerseLine.length() - 1).equals(\".\") ||\n lastVerseLine.substring(lastVerseLine.length() - 1).equals(\"!\")||\n lastVerseLine.substring(lastVerseLine.length() - 1).equals(\"?\")){\n lastCharDot = true;\n }\n }\n return lastVerseLine;\n }", "public String max()// return the value of the maximum key in the tree\r\n {\r\n\t if(empty()) {\r\n\t return null;\r\n\t }\r\n\t WAVLNode x = root;\r\n while(x.right!=EXT_NODE) {\r\n \tx=x.right;\r\n }\r\n return x.info;\r\n }", "public Long getConditionLastEndTime(String condition) {\n if (onsetConditions.containsKey(condition)) {\n return onsetConditions.get(condition).getLastEndTime();\n }\n return null;\n }", "private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public String getLastItem();", "public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }", "public GJPoint2D lastPoint() {\n\t\tint n = this.segments.size();\n\t\tif (n == 0) \n\t\t\treturn null;\n\t\treturn this.segments.get(n-1).lastControl();\n\t}", "public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}", "public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}", "public Place tail(){\n return places.get(places.size()-1);\n }", "public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public Item getLast() {\n return items[size - 1];\n }", "public Item getLast();", "public long getMaxTime(){\n long max;\n if(myPlaces_ra != null){\n // max variable set to the first time element in the array\n max = myPlaces_ra.get(0).getTime();\n\n for (int i = 0; i < myPlaces_ra.size(); i++) {\n //compare if the current is bigger than the one hold in the max variable\n if(myPlaces_ra.get(i).getTime() > max ){\n max = myPlaces_ra.get(i).getTime();\n\n }\n }\n Log.d(TAG, \"getMaxTime: \" + max);\n\n }else{\n Log.d(TAG, \"array is empty\");\n max = -1;\n return max;\n }\n return max;\n\n }", "public String getLastC() {\n\t\treturn lastFieldC.getText();\n\t}", "public static native long GetLast(long lpjFbxArrayVector2);", "public int getLast() {\n\t\treturn last;\n\t}", "public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "public T getLast( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//last node\r\n\t\tArrayNode<T> last = endMarker.prev;\r\n\t\ttry{\r\n\t\t\t//last elem\r\n\t\t\treturn last.getLast();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t}", "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 }", "public Long getConditionLastOnsetTime(String condition) {\n if (onsetConditions.containsKey(condition)) {\n return onsetConditions.get(condition).getLastOnsetTime();\n }\n return null;\n }", "public java.lang.String getLastChgBy() {\n\t\treturn lastChgBy;\n\t}", "@Override\n\tpublic String getMaxVersion(RzpmtplanVo rzPmtPlanQuery) {\n\t\treturn rzPmtPlanDao.getMaxVersion(rzPmtPlanQuery);\n\t}", "public T getLast()\n\t//POST: FCTVAL == last element of the list\n\t{\n\t\tNode<T> tmp = start;\n\t\twhile(tmp.next != start) //traverse the list to end\n\t\t{\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp.value;\t//return end element\n\t}", "public Node getLastSettlementNode() {\r\n\t\treturn lastSettlementNode;\r\n\t}", "public BigDecimal getPriceLastInv();", "protected short getLastTLVOffset(byte[] buffer, short Lc) {\n short offset = firstTLVOffset;\n short lastTLVOffset;\n do {\n lastTLVOffset = offset;\n // advance to next TLV\n offset++;\n short length = buffer[offset];\n offset = (short)(offset + length + 1);\n } while (offset < Lc);\n return lastTLVOffset;\n }", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "T last();", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "protected ValueVersion getLastChunk() {\n\n if (numChunks < 0) {\n throw new IllegalStateException(\"Chunk count is unknown:\" +\n numChunks);\n }\n\n if (numChunks == 0) {\n return null;\n }\n\n final long superChunkId = ((numChunks - 1) / chunksPerPartition) + 1;\n final long chunkId = ((numChunks - 1) % chunksPerPartition) + 1;\n\n final Key lastChunkKey =\n chunkKeyFactory.create(internalLOBKey, superChunkId, chunkId);\n\n return kvsImpl.get(lastChunkKey, Consistency.ABSOLUTE,\n chunkTimeoutMs, TimeUnit.MILLISECONDS);\n }", "public synchronized int lastEntryTerm() {\n if (this.lastEntryIndex() > 0) {\n return this.logs.get(lastIndex).getTerm();\n } else return -1;\n }", "public Money findMaxPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney max = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (max.compareTo(current) == -1 || !flag) {\n\t\t\t\tmax = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t}\n\t\treturn max;\n\t}", "private Point findTrailingPt() {\n\t\tPoint farthestPt = new Point(getDisplayXs()[0], getDisplayYs()[0]);\n\t\tfor (int i = 0; i < getDisplayXs().length; i++) {\n\t\t\tPoint nextPt = new Point(getDisplayXs()[i], getDisplayYs()[i]);\n\t\t\tPoint centerOfMass = Controller.flowArrow.findCenterOfMass();\n\t\t\tif (farthestPt.distance(centerOfMass) < nextPt.distance(centerOfMass)) {\n\t\t\t\tfarthestPt = nextPt; // update fartestPt\n\t\t\t}\n\t\t}\n\t\treturn farthestPt;\n\t}", "@Override\n\tpublic String findLastWarehouseCode() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "public Object lastElement();", "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "public String getReturnFlightPriceAtBottom()\n\t{\n\t\tString returnpriceAtBottom=returnPriceAtBottom.getText();\n\t\treturn returnpriceAtBottom;\n\t}", "public int findLatestStep(int[] arr, int m) {\n int last = -1 ;\n Set<Integer> list = new HashSet<>();\n int n = arr.length;\n int num = 1;\n for (int i = 0; i < n; i++) {\n num <<= 1;\n }\n for (int i = 0; i < arr.length; i++) {\n int tmp = arr[i];\n\n int con = move(tmp);\n num = num|con;\n\n int copy = num;\n\n list = check(copy,n);\n\n for (int x :\n list) {\n if (x == m)\n last = i+1;\n }\n\n\n }\n return last;\n\n }", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public int getLastOrderId() {\r\n ArrayList<OrderRecord> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM `orders`\";\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n ResultSet rs = p.executeQuery(sqlQuery);\r\n rs.last();\r\n return rs.getInt(\"id\");\r\n } catch (Exception e) {\r\n System.out.println(\"Could not get orders \" + e.toString());\r\n System.out.println(myStmt);\r\n }\r\n return 0;\r\n }", "private Set<StableControlConfiguration> getMaximumWRT(int N, int type, Set<StableControlConfiguration> CEi, Set<CArgument> subTarget) {\n\t\t Controlling_Power_Solver cpSolver = new Controlling_Power_Solver(this.PCAF);\n\t\t Set<StableControlConfiguration> result = new HashSet<StableControlConfiguration>();\n\t\t double max = -1;\n\t\t for(StableControlConfiguration ce : CEi) {\n\t\t\t double current = -1;\n\t\t\t if(type == ControllabilityEncoder.CREDULOUS) {\n\t\t\t\t current = cpSolver.getCredulousControllingPower(N, ce, subTarget);\n\t\t\t } else {\n\t\t\t\t current = cpSolver.getSkepticalControllingPower(N, ce, subTarget);\n\t\t\t }\n\t\t\t if(current > max) {\n\t\t\t\t result.clear();\n\t\t\t\t result.add(ce);\n\t\t\t\t max = current;\n\t\t\t } else if(current == max) {\n\t\t\t\t result.add(ce);\n\t\t\t }\n\t\t }\n\t\t return result;\n\t }", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public int maiorGrau() {\n return poli.lastKey();\n }", "public int lastIndexOf(Fraction x)\r\n\t{\r\n\t\tfor(int i=n-1;i>=0;i--)\r\n\t\t\tif(x.gettu()==a[i].gettu() && x.getmau()==a[i].getmau())\r\n\t\t\t\treturn i;\r\n\t\treturn -1;\t\t\t\t\t\r\n\t}", "public double getLastPrice() {\r\n\t\treturn lastPrice;\r\n\t}", "public FundamentalHistoryCompany getLastFundamentalRecord(Company cmp) throws Exception {\n\n\t\tFundamentalHistoryCompany fhcReturn = null;\n\n\t\tHashtable<String, Object> param = new Hashtable<String, Object>();\n\t\tparam.put(\"company\", cmp.getId());\n\t\tList<Object> listFtlCompany = UtilSession.getObjectsByNamedQuery(em,\n\t\t\t\tFundamentalHistoryCompany.FIND_LAST_FUNDAMENTAL_ITERACION_BYCOMPANY, param);\n\t\tif (null != listFtlCompany && listFtlCompany.size() > 0) {\n\t\t\tfor (Object object : listFtlCompany) {\n\t\t\t\tfhcReturn = (FundamentalHistoryCompany) object;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn fhcReturn;\n\n\t}", "@Override\r\n\tpublic Integer getMaxCkno(String dhnoAndLine) {\n\t\tInteger i = (Integer) dao.getUnique(\"select max(ckno) from ZpngTp where dhno=?\", dhnoAndLine);\r\n\t\tif (i == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn i;\r\n\t}", "public String getMaxKey() {\n if (list.isEmpty()) {\n return \"\";\n }\n return v.get(list.getFirst()).iterator().next();\n }", "private static int getChange(int m) {\n int[] change = new int[m+1];\n int[] coins = {1, 3, 4};\n for(int i = 1; i <= m; i++){\n \tchange[i] = Integer.MAX_VALUE;\n \tfor(int j = 0; j < 3; j++){\n \t\tif(i >= coins[j]){\n \t\t\tint temp = change[i-coins[j]] + 1;\n \t\t\tif (temp < change[i])\n \t\t\t\tchange[i] = temp;\n \t\t}\n \t}\n }\n return change[m];\n }", "public double maxWait()\r\n {\r\n //find the max value in an arraylist\r\n double maxWait = servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < servedCustomers.size(); i++){\r\n if(servedCustomers.get(i).getwaitTime()>maxWait){\r\n maxWait = servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return maxWait;\r\n }", "int maxNoteValue();", "public VariantType getLargestVariantType(VariantType notThis) {\n VariantType[] values = { VariantType.SNP_A, VariantType.SNP_C, VariantType.SNP_G, VariantType.SNP_T, VariantType.DELETION, VariantType.INSERTION, VariantType.OTHER };\n\n VariantType snpNuc = null;\n\n for (VariantType n : values) {\n if (n != notThis) {\n if (getCoverage(n, null) > 0 && (snpNuc == null || getCoverage(n, null) > getCoverage(snpNuc, null))){\n snpNuc = n;\n }\n }\n }\n\n return snpNuc;\n }", "public String getLast()\n {\n return lastItem;\n }", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}" ]
[ "0.7478059", "0.545815", "0.5407302", "0.5365586", "0.5226027", "0.5170502", "0.5169181", "0.51457745", "0.512418", "0.5115882", "0.5077376", "0.504901", "0.50325406", "0.50213814", "0.50197774", "0.50060797", "0.50046194", "0.49963623", "0.49885958", "0.49871707", "0.49053726", "0.49048752", "0.49031532", "0.48917377", "0.4877701", "0.4876605", "0.4876605", "0.48559377", "0.4846775", "0.48336464", "0.48268187", "0.48250228", "0.4823243", "0.48089507", "0.4800194", "0.47815388", "0.4780255", "0.47781885", "0.47556722", "0.47550634", "0.47521043", "0.47255126", "0.47241333", "0.4723208", "0.47165728", "0.4713914", "0.4713914", "0.47067642", "0.4700694", "0.46980223", "0.4695016", "0.46808365", "0.46780413", "0.46766838", "0.46758446", "0.4668372", "0.46587178", "0.46518737", "0.46442482", "0.4639142", "0.4637512", "0.46374342", "0.4635453", "0.46318865", "0.463108", "0.46253264", "0.4624251", "0.46218422", "0.4619588", "0.4619059", "0.46068043", "0.46046206", "0.46027026", "0.4592111", "0.45909595", "0.45880318", "0.45842746", "0.45788512", "0.4578501", "0.45728487", "0.45630646", "0.45630297", "0.4561488", "0.45609766", "0.45591378", "0.45567784", "0.45526206", "0.45526206", "0.45489717", "0.45427638", "0.45314145", "0.45257983", "0.45234874", "0.45221218", "0.45125517", "0.45110035", "0.45041654", "0.45036003", "0.4501436", "0.44988886" ]
0.61994344
1
Returns the last phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay fetchByMaCTV_Last( String maCTV, OrderByComparator<PhatVay> orderByComparator) { int count = countByMaCTV(maCTV); if (count == 0) { return null; } List<PhatVay> list = findByMaCTV( maCTV, count - 1, count, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public T getLast(){\n\treturn _end.getCargo();\n }", "@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }", "public double getMaxT() {\n return v[points_per_segment - 1];\n }", "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track + \"\\\"\");\n\t\treturn keep_track;\n\t\t\n\t}", "@Override\r\n public float getLastServoValue(int servo){\r\n return lastServoValues[getServo(servo)];\r\n }", "private int lastDay(int[] A, int K, int M) {\n\t\t\n\t\tList<int[]> list = new ArrayList<int[]>();\n\t\tint N = A.length;\n\t\tint[] lastDay = new int[] {1, N, N};\n\t\tlist.add(lastDay);\n\t\tpq = new PriorityQueue<int[]>(new Comparator<int[]>() {\n\t\t\tpublic int compare(int[] a, int[] b) { return a[2] - b[2]; }\n\t\t});\n\t\tpq.add(lastDay);\n\t\t\n\t\t// showListInts(list);\n\t\tif(list.size() == M && pq.peek()[2] >= K) return N;\n\t\t\n\t\tfor(int i = N-1; i >= 0; i--) {\n\t\t\tif(list.size() == 0) break;\n\t\t\tbinarySplit(list, A[i], K);\n\t\t\t// System.out.println(\"A[i] = \"+ A[i]);\n\t\t\t// showListInts(list);\n\t\t\tif(list.size() == M && pq.peek()[2] >= K) return i;\n\t\t}\n\t\treturn -1;\n\t}", "public BigDecimal getLastDebtM() {\n return lastDebtM;\n }", "public XBMCInfo getLastXBMC() {\n\t\treturn xbmcInfoManager.getLastXBMC();\n\t}", "@Override\n\tpublic SendRecord getLastExcelTp(String vosId) {\n\t\tSession ss =sf.getCurrentSession();\n\t\tString hql=\"from SendRecord sr where sr.vosId=:vosId Order by sr.sendTime desc\";\n\t\tQuery query =ss.createQuery(hql);\n\t\tquery.setParameter(\"vosId\", vosId);\n\t\t\n\t\tquery.setMaxResults(1);// \n\t\t\n\t\tSendRecord sr=(SendRecord)query.uniqueResult();\n\t\treturn sr;\n\t}", "public synchronized int getLastTerm() {\n if(lastEntryIndex() <= 0) return 0;\n return getEntry(lastIndex).getTerm();\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public V getLastValue()\n\t{\n\t\tV amount = null;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\tamount = entry.getElement();\n\t\t}\n\t\treturn amount;\n\t}", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public FixedBitSet getLastValue() {\n return value;\n }", "public int mo18250c(C3789t tVar) {\n return this.f13924c.lastIndexOf(tVar);\n }", "public SUDecision getlastChoice() {\r\n\t\treturn m_lastChoice;\r\n\t}", "public TonKho getTonKhoHienTai(String malk, Integer maKhoa) {\n Query q = getEm().createQuery(\"SELECT t FROM TonKho t WHERE t.dmkhoaMaso.dmkhoaMaso = :maKhoa AND t.tonkhoMalienket = :malk AND t.tonkhoMa = (SELECT MAX(t1.tonkhoMa) FROM TonKho t1 WHERE t1.tonkhoMalienket = :malk AND t1.dmkhoaMaso.dmkhoaMaso = :maKhoa)\");\n q.setParameter(\"malk\", malk);\n q.setParameter(\"maKhoa\", maKhoa);\n try {\n List<TonKho> listTk = q.getResultList();\n if (listTk != null && listTk.size() > 0) {\n return listTk.get(0);\n }\n } catch (Exception ex) {\n System.out.println(\"Error getTonKhoHienTai: \" + ex.toString());\n ex.printStackTrace();\n }\n return null;\n }", "public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }", "public TypeHere getLast() {\n return items[size - 1];\n }", "private Data getLastCommitData(int varIndex) {\n List<Data> dataList = _dataMap.get(varIndex);\n return dataList.get(dataList.size() - 1);\n }", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public T getLast();", "public T getLast();", "public RTWValue lastAsValue();", "public Long getLastOnsetTime() {\n if (timeInfos.isEmpty()) {\n return null;\n } else {\n int size = timeInfos.size();\n return timeInfos.get(size - 1).getOnsetTime();\n }\n }", "K last();", "public int getLast() {\n\treturn _last;\n }", "public double max() {\n double resultat = 0;\n double tmp = 0;\n System.out.println(\"type:\" + type);\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.max(tab.get(i));\n if (tmp > resultat) {\n resultat = tmp;\n }\n }\n System.out.println(\"Max colonne:\" + resultat);\n return resultat;\n }", "private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }", "@Override\n\tpublic VOFactura getLastFactura() {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT MAX(fac.facnumero) FROM factura fac\";\n\t\t\tres = stm.executeQuery(sql);\n\t\t\t\n\t\t\t\n\t\t\tres.last();\n\t\t\t\n\t\t\tif(res.getRow() > 0) {\n\t\t\t\tres.first(); //go to top\n\t\t\t\tVOFactura factura = new VOFactura();\n\t\t\t\tfactura.setNumero(res.getInt(1));\n\t\t\t\t\n\t\t\t\treturn factura;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No hay registros de facturas\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public Double getMaximumTransaction() {\n if (transactions.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tDouble maks = transactions.get(0).getAmount().doubleValue();\n\t\t\tfor (int i = 1; i < transactions.size(); i++) {\n\t\t\t\tif (maks < transactions.get(i).getAmount().doubleValue()) {\n\t\t\t\t\tmaks = transactions.get(i).getAmount().doubleValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn maks;\n\t\t}\n }", "public BigDecimal getPriceLastOrd();", "public int getLastSubIndex() {\n\t\t\tint maxRVI = 0, subIndex = 0;\n\t\t\tfor (Map.Entry<Integer, Integer> entry : subIndices.entrySet()) {\n\t\t\t\tif (entry.getKey() < currentRVIndex) {\n\t\t\t\t\tif (entry.getKey() > maxRVI) {\n\t\t\t\t\t\tmaxRVI = entry.getKey();\n\t\t\t\t\t\tsubIndex = entry.getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn subIndex;\n\t\t}", "public String getLastPoemLine(PoetAndTheme object){\n boolean lastCharDot = false;\n String lastVerseLine = \"\";\n while(!lastCharDot){\n lastVerseLine = object.getRandomVerseLine();\n if(lastVerseLine.substring(lastVerseLine.length() - 1).equals(\".\") ||\n lastVerseLine.substring(lastVerseLine.length() - 1).equals(\"!\")||\n lastVerseLine.substring(lastVerseLine.length() - 1).equals(\"?\")){\n lastCharDot = true;\n }\n }\n return lastVerseLine;\n }", "public String max()// return the value of the maximum key in the tree\r\n {\r\n\t if(empty()) {\r\n\t return null;\r\n\t }\r\n\t WAVLNode x = root;\r\n while(x.right!=EXT_NODE) {\r\n \tx=x.right;\r\n }\r\n return x.info;\r\n }", "public Long getConditionLastEndTime(String condition) {\n if (onsetConditions.containsKey(condition)) {\n return onsetConditions.get(condition).getLastEndTime();\n }\n return null;\n }", "private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public String getLastItem();", "public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }", "public GJPoint2D lastPoint() {\n\t\tint n = this.segments.size();\n\t\tif (n == 0) \n\t\t\treturn null;\n\t\treturn this.segments.get(n-1).lastControl();\n\t}", "public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}", "public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}", "public Place tail(){\n return places.get(places.size()-1);\n }", "public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public Item getLast() {\n return items[size - 1];\n }", "public Item getLast();", "public long getMaxTime(){\n long max;\n if(myPlaces_ra != null){\n // max variable set to the first time element in the array\n max = myPlaces_ra.get(0).getTime();\n\n for (int i = 0; i < myPlaces_ra.size(); i++) {\n //compare if the current is bigger than the one hold in the max variable\n if(myPlaces_ra.get(i).getTime() > max ){\n max = myPlaces_ra.get(i).getTime();\n\n }\n }\n Log.d(TAG, \"getMaxTime: \" + max);\n\n }else{\n Log.d(TAG, \"array is empty\");\n max = -1;\n return max;\n }\n return max;\n\n }", "public String getLastC() {\n\t\treturn lastFieldC.getText();\n\t}", "public static native long GetLast(long lpjFbxArrayVector2);", "public int getLast() {\n\t\treturn last;\n\t}", "public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "public T getLast( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//last node\r\n\t\tArrayNode<T> last = endMarker.prev;\r\n\t\ttry{\r\n\t\t\t//last elem\r\n\t\t\treturn last.getLast();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t}", "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 }", "public Long getConditionLastOnsetTime(String condition) {\n if (onsetConditions.containsKey(condition)) {\n return onsetConditions.get(condition).getLastOnsetTime();\n }\n return null;\n }", "public java.lang.String getLastChgBy() {\n\t\treturn lastChgBy;\n\t}", "@Override\n\tpublic String getMaxVersion(RzpmtplanVo rzPmtPlanQuery) {\n\t\treturn rzPmtPlanDao.getMaxVersion(rzPmtPlanQuery);\n\t}", "public T getLast()\n\t//POST: FCTVAL == last element of the list\n\t{\n\t\tNode<T> tmp = start;\n\t\twhile(tmp.next != start) //traverse the list to end\n\t\t{\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp.value;\t//return end element\n\t}", "public Node getLastSettlementNode() {\r\n\t\treturn lastSettlementNode;\r\n\t}", "public BigDecimal getPriceLastInv();", "protected short getLastTLVOffset(byte[] buffer, short Lc) {\n short offset = firstTLVOffset;\n short lastTLVOffset;\n do {\n lastTLVOffset = offset;\n // advance to next TLV\n offset++;\n short length = buffer[offset];\n offset = (short)(offset + length + 1);\n } while (offset < Lc);\n return lastTLVOffset;\n }", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "T last();", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "protected ValueVersion getLastChunk() {\n\n if (numChunks < 0) {\n throw new IllegalStateException(\"Chunk count is unknown:\" +\n numChunks);\n }\n\n if (numChunks == 0) {\n return null;\n }\n\n final long superChunkId = ((numChunks - 1) / chunksPerPartition) + 1;\n final long chunkId = ((numChunks - 1) % chunksPerPartition) + 1;\n\n final Key lastChunkKey =\n chunkKeyFactory.create(internalLOBKey, superChunkId, chunkId);\n\n return kvsImpl.get(lastChunkKey, Consistency.ABSOLUTE,\n chunkTimeoutMs, TimeUnit.MILLISECONDS);\n }", "public synchronized int lastEntryTerm() {\n if (this.lastEntryIndex() > 0) {\n return this.logs.get(lastIndex).getTerm();\n } else return -1;\n }", "public Money findMaxPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney max = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (max.compareTo(current) == -1 || !flag) {\n\t\t\t\tmax = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t}\n\t\treturn max;\n\t}", "private Point findTrailingPt() {\n\t\tPoint farthestPt = new Point(getDisplayXs()[0], getDisplayYs()[0]);\n\t\tfor (int i = 0; i < getDisplayXs().length; i++) {\n\t\t\tPoint nextPt = new Point(getDisplayXs()[i], getDisplayYs()[i]);\n\t\t\tPoint centerOfMass = Controller.flowArrow.findCenterOfMass();\n\t\t\tif (farthestPt.distance(centerOfMass) < nextPt.distance(centerOfMass)) {\n\t\t\t\tfarthestPt = nextPt; // update fartestPt\n\t\t\t}\n\t\t}\n\t\treturn farthestPt;\n\t}", "@Override\n\tpublic String findLastWarehouseCode() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "public Object lastElement();", "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "public String getReturnFlightPriceAtBottom()\n\t{\n\t\tString returnpriceAtBottom=returnPriceAtBottom.getText();\n\t\treturn returnpriceAtBottom;\n\t}", "public int findLatestStep(int[] arr, int m) {\n int last = -1 ;\n Set<Integer> list = new HashSet<>();\n int n = arr.length;\n int num = 1;\n for (int i = 0; i < n; i++) {\n num <<= 1;\n }\n for (int i = 0; i < arr.length; i++) {\n int tmp = arr[i];\n\n int con = move(tmp);\n num = num|con;\n\n int copy = num;\n\n list = check(copy,n);\n\n for (int x :\n list) {\n if (x == m)\n last = i+1;\n }\n\n\n }\n return last;\n\n }", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public int getLastOrderId() {\r\n ArrayList<OrderRecord> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM `orders`\";\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n ResultSet rs = p.executeQuery(sqlQuery);\r\n rs.last();\r\n return rs.getInt(\"id\");\r\n } catch (Exception e) {\r\n System.out.println(\"Could not get orders \" + e.toString());\r\n System.out.println(myStmt);\r\n }\r\n return 0;\r\n }", "private Set<StableControlConfiguration> getMaximumWRT(int N, int type, Set<StableControlConfiguration> CEi, Set<CArgument> subTarget) {\n\t\t Controlling_Power_Solver cpSolver = new Controlling_Power_Solver(this.PCAF);\n\t\t Set<StableControlConfiguration> result = new HashSet<StableControlConfiguration>();\n\t\t double max = -1;\n\t\t for(StableControlConfiguration ce : CEi) {\n\t\t\t double current = -1;\n\t\t\t if(type == ControllabilityEncoder.CREDULOUS) {\n\t\t\t\t current = cpSolver.getCredulousControllingPower(N, ce, subTarget);\n\t\t\t } else {\n\t\t\t\t current = cpSolver.getSkepticalControllingPower(N, ce, subTarget);\n\t\t\t }\n\t\t\t if(current > max) {\n\t\t\t\t result.clear();\n\t\t\t\t result.add(ce);\n\t\t\t\t max = current;\n\t\t\t } else if(current == max) {\n\t\t\t\t result.add(ce);\n\t\t\t }\n\t\t }\n\t\t return result;\n\t }", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public int maiorGrau() {\n return poli.lastKey();\n }", "public int lastIndexOf(Fraction x)\r\n\t{\r\n\t\tfor(int i=n-1;i>=0;i--)\r\n\t\t\tif(x.gettu()==a[i].gettu() && x.getmau()==a[i].getmau())\r\n\t\t\t\treturn i;\r\n\t\treturn -1;\t\t\t\t\t\r\n\t}", "public double getLastPrice() {\r\n\t\treturn lastPrice;\r\n\t}", "public FundamentalHistoryCompany getLastFundamentalRecord(Company cmp) throws Exception {\n\n\t\tFundamentalHistoryCompany fhcReturn = null;\n\n\t\tHashtable<String, Object> param = new Hashtable<String, Object>();\n\t\tparam.put(\"company\", cmp.getId());\n\t\tList<Object> listFtlCompany = UtilSession.getObjectsByNamedQuery(em,\n\t\t\t\tFundamentalHistoryCompany.FIND_LAST_FUNDAMENTAL_ITERACION_BYCOMPANY, param);\n\t\tif (null != listFtlCompany && listFtlCompany.size() > 0) {\n\t\t\tfor (Object object : listFtlCompany) {\n\t\t\t\tfhcReturn = (FundamentalHistoryCompany) object;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn fhcReturn;\n\n\t}", "@Override\r\n\tpublic Integer getMaxCkno(String dhnoAndLine) {\n\t\tInteger i = (Integer) dao.getUnique(\"select max(ckno) from ZpngTp where dhno=?\", dhnoAndLine);\r\n\t\tif (i == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn i;\r\n\t}", "public String getMaxKey() {\n if (list.isEmpty()) {\n return \"\";\n }\n return v.get(list.getFirst()).iterator().next();\n }", "private static int getChange(int m) {\n int[] change = new int[m+1];\n int[] coins = {1, 3, 4};\n for(int i = 1; i <= m; i++){\n \tchange[i] = Integer.MAX_VALUE;\n \tfor(int j = 0; j < 3; j++){\n \t\tif(i >= coins[j]){\n \t\t\tint temp = change[i-coins[j]] + 1;\n \t\t\tif (temp < change[i])\n \t\t\t\tchange[i] = temp;\n \t\t}\n \t}\n }\n return change[m];\n }", "public double maxWait()\r\n {\r\n //find the max value in an arraylist\r\n double maxWait = servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < servedCustomers.size(); i++){\r\n if(servedCustomers.get(i).getwaitTime()>maxWait){\r\n maxWait = servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return maxWait;\r\n }", "int maxNoteValue();", "public VariantType getLargestVariantType(VariantType notThis) {\n VariantType[] values = { VariantType.SNP_A, VariantType.SNP_C, VariantType.SNP_G, VariantType.SNP_T, VariantType.DELETION, VariantType.INSERTION, VariantType.OTHER };\n\n VariantType snpNuc = null;\n\n for (VariantType n : values) {\n if (n != notThis) {\n if (getCoverage(n, null) > 0 && (snpNuc == null || getCoverage(n, null) > getCoverage(snpNuc, null))){\n snpNuc = n;\n }\n }\n }\n\n return snpNuc;\n }", "public String getLast()\n {\n return lastItem;\n }", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}" ]
[ "0.61994344", "0.545815", "0.5407302", "0.5365586", "0.5226027", "0.5170502", "0.5169181", "0.51457745", "0.512418", "0.5115882", "0.5077376", "0.504901", "0.50325406", "0.50213814", "0.50197774", "0.50060797", "0.50046194", "0.49963623", "0.49885958", "0.49871707", "0.49053726", "0.49048752", "0.49031532", "0.48917377", "0.4877701", "0.4876605", "0.4876605", "0.48559377", "0.4846775", "0.48336464", "0.48268187", "0.48250228", "0.4823243", "0.48089507", "0.4800194", "0.47815388", "0.4780255", "0.47781885", "0.47556722", "0.47550634", "0.47521043", "0.47255126", "0.47241333", "0.4723208", "0.47165728", "0.4713914", "0.4713914", "0.47067642", "0.4700694", "0.46980223", "0.4695016", "0.46808365", "0.46780413", "0.46766838", "0.46758446", "0.4668372", "0.46587178", "0.46518737", "0.46442482", "0.4639142", "0.4637512", "0.46374342", "0.4635453", "0.46318865", "0.463108", "0.46253264", "0.4624251", "0.46218422", "0.4619588", "0.4619059", "0.46068043", "0.46046206", "0.46027026", "0.4592111", "0.45909595", "0.45880318", "0.45842746", "0.45788512", "0.4578501", "0.45728487", "0.45630646", "0.45630297", "0.4561488", "0.45609766", "0.45591378", "0.45567784", "0.45526206", "0.45526206", "0.45489717", "0.45427638", "0.45314145", "0.45257983", "0.45234874", "0.45221218", "0.45125517", "0.45110035", "0.45041654", "0.45036003", "0.4501436", "0.44988886" ]
0.7478059
0
Returns the phat vaies before and after the current phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay[] findByMaCTV_PrevAndNext( long phatVayId, String maCTV, OrderByComparator<PhatVay> orderByComparator) throws NoSuchPhatVayException { maCTV = Objects.toString(maCTV, ""); PhatVay phatVay = findByPrimaryKey(phatVayId); Session session = null; try { session = openSession(); PhatVay[] array = new PhatVayImpl[3]; array[0] = getByMaCTV_PrevAndNext( session, phatVay, maCTV, orderByComparator, true); array[1] = phatVay; array[2] = getByMaCTV_PrevAndNext( session, phatVay, maCTV, orderByComparator, false); return array; } catch (Exception e) { throw processException(e); } finally { closeSession(session); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "private Cell findPrev(ArrayList<Cell> list, Cell current) {\r\n\t\t\tint index = isInList(list, current);\r\n\t\t\treturn list.get(index).prev;\r\n\t\t}", "public java.math.BigDecimal getVat () {\n\t\treturn vat;\n\t}", "public java.lang.String getBIndPrevAfcars()\r\n {\r\n return this._bIndPrevAfcars;\r\n }", "public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "public double getOldPVal() { return this.pValBefore; }", "public BigDecimal getSETTLED_AMT_BEFORE_SWITCHING() {\r\n return SETTLED_AMT_BEFORE_SWITCHING;\r\n }", "public TimedVariable findPrev(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\n\t\t// The 'insertion point' would be the next one, so subtract one.\n\t\t// If now less than zero, there are no vars prev to 'sec'.\n\t\tif (--idx < 0)\n\t\t\treturn null;\n\t\treturn vars.get(idx);\n\t}", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public Vertex getPrev() {\n return prev;\n }", "public void testPrev() {\n test1.prev();\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n }", "public int getVgap() {\n/* */ return this.vgap;\n/* */ }", "public double getPX(){\n\t\treturn previousX;\n\t}", "public static ArrayList<SinhVienMonHoc> layDSSVMHByMon(int maMH) {\n\t\tList<SinhVienMonHoc> lstSVMH = new ArrayList<SinhVienMonHoc>();\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql = \"from entities.MonHoc nd Where nd.maMonHoc = :mamonhoc\";\n\t\t\tQuery<MonHoc> query = session.createQuery(hql);\n\t\t\tquery.setParameter(\"mamonhoc\", maMH);\n\t\t\tMonHoc monHoc = query.getSingleResult();\n\t\t\tIterator<NguoiDung> dsSinhVien = monHoc.getDsSinhVien().iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile (dsSinhVien.hasNext()) {\n\t\t\t\tNguoiDung sv = dsSinhVien.next();\n\t\t\t\tString hql2 = \"from entities.SinhVienMonHoc svmh Where svmh.maSinhVienMonHoc.maMonHoc = :mamonhoc \"\n\t\t\t\t\t\t+ \"and svmh.maSinhVienMonHoc.maSinhVien = :masinhvien\";\n\t\t\t\tQuery<SinhVienMonHoc> query2 = session.createQuery(hql2);\n\t\t\t\tquery2.setParameter(\"mamonhoc\", monHoc.getMaMonHoc());\n\t\t\t\tquery2.setParameter(\"masinhvien\", sv.getMaNguoiDung());\n\t\t\t\tSinhVienMonHoc svmh = query2.getSingleResult();\n\t\t\t\tsvmh.setTenSinhVien(sv.getTenNguoiDung());\n\t\t\t\tlstSVMH.add(svmh);\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t}\n\t\t\n\t\tif(lstSVMH.size() == 0) return null;\n\t\tlstSVMH.sort(new Comparator<SinhVienMonHoc>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SinhVienMonHoc o1, SinhVienMonHoc o2) {\n\t\t\t\treturn o1.getMaSinhVienMonHoc().getMaSinhVien() - o2.getMaSinhVienMonHoc().getMaSinhVien() ;\n\t\t\t}\n\t\t});\n\t\treturn (ArrayList<SinhVienMonHoc>)lstSVMH;\n\t}", "public Vecteur[] getPoints() {\n Vecteur[] points = {this.OA, this.OB};\n return points;\n }", "public Vertex getPrevious(){\n return previous;\n }", "private static int getChange(int m) {\n int[] change = new int[m+1];\n int[] coins = {1, 3, 4};\n for(int i = 1; i <= m; i++){\n \tchange[i] = Integer.MAX_VALUE;\n \tfor(int j = 0; j < 3; j++){\n \t\tif(i >= coins[j]){\n \t\t\tint temp = change[i-coins[j]] + 1;\n \t\t\tif (temp < change[i])\n \t\t\t\tchange[i] = temp;\n \t\t}\n \t}\n }\n return change[m];\n }", "public double[] getVentasXVendedor() {\r\n double vVendedores[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vVendedores[i] = getVentasVendedor(i);\r\n }\r\n return vVendedores;\r\n }", "private void findPrev() {\n \tthis.find(false);\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "protected int seekToOrBeforeUsingPositionAtOrAfter(Cell kv, boolean seekBefore) {\n CellScannerPosition position = ptSearcher.seekForwardToOrAfter(kv);\n\n if (CellScannerPosition.AT == position) {\n if (seekBefore) {\n ptSearcher.previous();\n return 1;\n }\n return 0;\n\n }\n\n if (CellScannerPosition.AFTER == position) {\n if (!ptSearcher.isBeforeFirst()) {\n ptSearcher.previous();\n }\n return 1;\n }\n\n if (position == CellScannerPosition.AFTER_LAST) {\n if (seekBefore) {\n ptSearcher.previous();\n }\n return 1;\n }\n\n throw new RuntimeException(\"unexpected CellScannerPosition:\" + position);\n }", "@Override\n public void imprimir() {\n System.out.println(\"Vehiculos ordenados por precio mayor a menor:\");\n if(a1.precio>a2.precio && a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m1.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m2.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\"\"+m2.modelo);\n if(m1.precio >a2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n }else{\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(a2.precio>a1.precio && a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }else{\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(m1.precio>a2.precio && m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a2.precio >a1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >a1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n }else{ \n if(m2.precio>a2.precio && m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a2.precio >a1.precio && a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m1.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n } \n \n }\n\n }\n }\n }", "public List<Location> getPreviousLocations();", "OIterator<V> before();", "public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}", "public List<Integer> getTopVerticalSpacings() {\n return topVerticalSpacings;\n }", "public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}", "public String[] prevHotWords( String hotWord ){\r\n //Created vector to push the variable amount of hotwords before the one in the arguments\r\n Vector<String> output = new Vector<String>();\r\n //The output string array which is returned\r\n String[] out;\r\n //Turns the hotword to lowercase for it to be compatible anc checkable\r\n String chk = hotWord.toLowerCase();\r\n //Created iterator to move through indeces of consec\r\n int i = 0;\r\n //Loops through every hotword in consec\r\n for (String x : consec.subList(0, count())) {\r\n //if the hotword equals the argument hotword then go to the next check\r\n if(x.equals(chk)){\r\n //As long as the iterator is greater than 1, reach to the previous hot word\r\n //in the series and put it in the vector\r\n if(i > 1){\r\n output.add(consec.get(i-1));\r\n }\r\n }\r\n i++;\r\n }\r\n //Set the out array to the size of the vector that has all the previous hotwords\r\n out = new String[output.size()];\r\n //Copy the items in\r\n for(int j = 0; j < output.size(); j++){\r\n out[j] = output.get(j);\r\n }\r\n \r\n return out;\r\n\t}", "@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}", "private List<C1085v> m15035c(C1085v vVar) {\n C1085v vVar2 = vVar;\n List<C1085v> list = this.f13682u;\n if (list == null) {\n this.f13682u = new ArrayList();\n this.f13683v = new ArrayList();\n } else {\n list.clear();\n this.f13683v.clear();\n }\n int a = this.f13674m.mo12720a();\n int round = Math.round(this.f13671j + this.f13669h) - a;\n int round2 = Math.round(this.f13672k + this.f13670i) - a;\n int i = a * 2;\n int width = vVar2.itemView.getWidth() + round + i;\n int height = vVar2.itemView.getHeight() + round2 + i;\n int i2 = (round + width) / 2;\n int i3 = (round2 + height) / 2;\n LayoutManager layoutManager = this.f13679r.getLayoutManager();\n int e = layoutManager.mo5278e();\n int i4 = 0;\n while (i4 < e) {\n View c = layoutManager.mo5265c(i4);\n if (c != vVar2.itemView && c.getBottom() >= round2 && c.getTop() <= height && c.getRight() >= round && c.getLeft() <= width) {\n C1085v g = this.f13679r.mo5094g(c);\n if (this.f13674m.mo12727a(this.f13679r, this.f13664c, g)) {\n int abs = Math.abs(i2 - ((c.getLeft() + c.getRight()) / 2));\n int abs2 = Math.abs(i3 - ((c.getTop() + c.getBottom()) / 2));\n int i5 = (abs * abs) + (abs2 * abs2);\n int size = this.f13682u.size();\n int i6 = 0;\n int i7 = 0;\n while (i6 < size && i5 > ((Integer) this.f13683v.get(i6)).intValue()) {\n i7++;\n i6++;\n C1085v vVar3 = vVar;\n }\n this.f13682u.add(i7, g);\n this.f13683v.add(i7, Integer.valueOf(i5));\n }\n }\n i4++;\n vVar2 = vVar;\n }\n return this.f13682u;\n }", "List<Spprim> exportPrimesMoisToPaie(List<VentilPrime> ventilPrimeOrderedByDateAsc);", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public ArrayList<PointVente> getPointV() {\n\t\t\treturn pointV;\n\t\t}", "public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }", "public static void main(String[] args) {\n int[] P ={1,2,3,4};\n \tint[] At ={0,5,3,4};\n\tint[] Bt ={2,1,4,3};\n\tint[] Ct ={0,0,0,0};\n\tint[] Tat ={0,0,0,0};\n\tint[] Wt = {0,0,0,0}; \n\tfloat AvgWt=0, AvgTat=0;\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(At[i-1]>At[i]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n }\n }\n } \n for(int i=0;i<At.length;i++){\n \n if(i == 0){\n\t\t\tCt[i] =At[i]+ Bt[i];\n\t\t}\n else if(Ct[i-1]<At[i]){\n Ct[i]=(Bt[i]+ Ct[i-1])+(At[i]-Ct[i-1]);\n }\n else{\n \tCt[i]= Bt[i]+ Ct[i-1];\n\t\t}\n\t}\n System.out.println();\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(P[i]<P[i-1]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n temp = Ct[i-1];\n Ct[i-1] = Ct[i];\n Ct[i] = temp;\n }\n }\n }\n System.out.println();\n \n for(int j=0;j<P.length;j++){\n Tat[j] = Ct[j] - At[j];\n Wt[j] = Tat[j] - Bt[j];\n AvgTat = AvgTat + Tat[j];\n AvgWt = AvgWt + Wt[j];\n }\n AvgTat = AvgTat/(P.length );\n AvgWt = AvgWt/(P.length ); \n System.out.println(\"P\\tA\\tB\\tC\\tT\\tW\");\n for(int j=0;j<At.length;j++){\n System.out.println(P[j]+\"\\t\"+At[j]+\"\\t\"+Bt[j]+\"\\t\"+Ct[j]+\"\\t\"+Tat[j]+\"\\t\"+Wt[j]);\n \n }\n System.out.println();\n System.out.println(\"Average TAT \\t\"+AvgTat);\n System.out.println(\"Average WT \\t\"+AvgWt);\n }", "public Iterator<DocTokenInf> getPrev(int vertex) {\n\t\tDocTokenLinkedList ll = list[vertex];\n\t\tif(ll == null)\n\t\t\treturn null;\n\t\treturn ll.iterator();\n\t}", "private double[] getBeforePosition(\n\t\t\tdouble[] newPosition,\n\t\t\tdouble[] startPosition,\n\t\t\tFloat xAxisSnapf,\n\t\t\tFloat yAxisSnapf,\n\t\t\tFloat zAxisSnapf,\n\t\t\tFloat xAxisSpecialSnapf,\n\t\t\tFloat yAxisSpecialSnapf,\n\t\t\tFloat zAxisSpecialSnapf){\n\n\t\tVector3d transVec = new Vector3d(\n\t\t\t\tnewPosition[0] - startPosition[0],\n\t\t\t\tnewPosition[1] - startPosition[1],\n\t\t\t\tnewPosition[2] - startPosition[2]);\n\n\t\tdouble[] beforePosition = new double[3];\n\t\tbeforePosition[0] = newPosition[0];\n\t\tbeforePosition[1] = newPosition[1];\n\t\tbeforePosition[2] = newPosition[2];\n\n\t\tif(xAxisSpecialSnapf != null &&\n\t\t\t\txAxisSnapf != null){\n\n\t\t\tif(transVec.x < 0){\n\n\t\t\t\tbeforePosition[0] =\n\t\t\t\t\tbeforePosition[0] + (xAxisSpecialSnapf - xAxisSnapf);\n\n\t\t\t} else if (transVec.x > 0){\n\n\t\t\t\tbeforePosition[0] =\n\t\t\t\t\tbeforePosition[0] - (xAxisSpecialSnapf - xAxisSnapf);\n\n\t\t\t}\n\n\t\t}\n\n\t\tif(yAxisSpecialSnapf != null &&\n\t\t\t\tyAxisSnapf != null){\n\n\t\t\tif(transVec.y < 0){\n\n\t\t\t\tbeforePosition[1] =\n\t\t\t\t\tbeforePosition[1] + (yAxisSpecialSnapf - yAxisSnapf);\n\n\t\t\t} else if (transVec.y > 0){\n\n\t\t\t\tbeforePosition[1] =\n\t\t\t\t\tbeforePosition[1] - (yAxisSpecialSnapf - yAxisSnapf);\n\n\t\t\t}\n\n\t\t}\n\n\t\tif(zAxisSpecialSnapf != null &&\n\t\t\t\tzAxisSnapf != null){\n\n\t\t\tif(transVec.z < 0){\n\n\t\t\t\tbeforePosition[2] =\n\t\t\t\t\tbeforePosition[2] + (zAxisSpecialSnapf - zAxisSnapf);\n\n\t\t\t} else if (transVec.z > 0){\n\n\t\t\t\tbeforePosition[2] =\n\t\t\t\t\tbeforePosition[2] - (zAxisSpecialSnapf - zAxisSnapf);\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn beforePosition;\n\t}", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "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 static KittyNode commAns(KittyNode a, KittyNode b){\n KittyNode trava,travb;\n trava = a;\n travb = b;\n if(trava == null)\n return travb;\n else if(travb == null)\n return trava;\n while(trava.prev != null || travb.prev != null){\n if(trava.lvl == travb.lvl){\n if(trava.prev == travb.prev)\n return trava.prev;\n trava = trava.prev;\n travb = travb.prev;\n }\n else if(trava.lvl > travb.lvl){\n if(trava.prev == travb)\n return travb;\n trava = trava.prev;\n }else if(trava.lvl < travb.lvl){\n if(trava == travb.prev)\n return trava;\n travb = travb.prev;\n }\n }\n if(trava != null)\n return trava;\n else\n return travb;\n }", "private void preComp(long from, long to) {\n\t\tfor (long i = from; i < to; i++) {\n\t\t\tif (isEmirp(i)) {\t\t\t\t\n\t\t\t\tpreComputedEmirps.add(i);\n\t\t\t}\n\t\t}\n\t\tlastComputedUpTo = to;\n\t}", "private double[] getPastPosition(\n\t\t\tdouble[] newPosition,\n\t\t\tdouble[] startPosition,\n\t\t\tFloat xAxisSnapf,\n\t\t\tFloat yAxisSnapf,\n\t\t\tFloat zAxisSnapf,\n\t\t\tFloat xAxisSpecialSnapf,\n\t\t\tFloat yAxisSpecialSnapf,\n\t\t\tFloat zAxisSpecialSnapf){\n\n\t\tVector3d transVec = new Vector3d(\n\t\t\t\tnewPosition[0] - startPosition[0],\n\t\t\t\tnewPosition[1] - startPosition[1],\n\t\t\t\tnewPosition[2] - startPosition[2]);\n\n\t\tdouble[] pastPosition = new double[3];\n\t\tpastPosition[0] = newPosition[0];\n\t\tpastPosition[1] = newPosition[1];\n\t\tpastPosition[2] = newPosition[2];\n\n\t\tif(xAxisSpecialSnapf != null &&\n\t\t\t\txAxisSnapf != null){\n\n\t\t\tif(transVec.x < 0){\n\n\t\t\t\tpastPosition[0] =\n\t\t\t\t\tpastPosition[0] - (xAxisSpecialSnapf - xAxisSnapf);\n\n\t\t\t} else if (transVec.x > 0){\n\n\t\t\t\tpastPosition[0] =\n\t\t\t\t\tpastPosition[0] + (xAxisSpecialSnapf - xAxisSnapf);\n\n\t\t\t}\n\n\t\t}\n\n\t\tif(yAxisSpecialSnapf != null &&\n\t\t\t\tyAxisSnapf != null){\n\n\t\t\tif(transVec.y < 0){\n\n\t\t\t\tpastPosition[1] =\n\t\t\t\t\tpastPosition[1] - (yAxisSpecialSnapf - yAxisSnapf);\n\n\t\t\t} else if (transVec.y > 0){\n\n\t\t\t\tpastPosition[1] =\n\t\t\t\t\tpastPosition[1] + (yAxisSpecialSnapf - yAxisSnapf);\n\n\t\t\t}\n\n\t\t}\n\n\t\tif(zAxisSpecialSnapf != null &&\n\t\t\t\tzAxisSnapf != null){\n\n\t\t\tif(transVec.z < 0){\n\n\t\t\t\tpastPosition[2] =\n\t\t\t\t\tpastPosition[2] - (zAxisSpecialSnapf - zAxisSnapf);\n\n\t\t\t} else if (transVec.z > 0){\n\n\t\t\t\tpastPosition[2] =\n\t\t\t\t\tpastPosition[2] + (zAxisSpecialSnapf - zAxisSnapf);\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn pastPosition;\n\t}", "public PlayerPosition getPrevious() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn RIGHT;\n\t\t\tcase LEFT:\n\t\t\t\treturn BOTTOM;\n\t\t\tcase TOP:\n\t\t\t\treturn LEFT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn TOP;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}", "@Test\n public void testPrevious_Middle() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 5, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.next();\n\n Integer expResult = 5;\n Integer result = instance.previous();\n assertEquals(expResult, result);\n }", "public PrevPageAbstract getPPAbst(){\r\n\t\treturn ppagea;\r\n\t}", "private KimPlayer mvpCompare(KimPlayer kp1, KimPlayer kp2) {\r\n if(kp1 == null) {\r\n return kp2;\r\n }\r\n\r\n if(kp2 == null) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_kills < kp2.m_kills) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_kills > kp2.m_kills) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_deaths > kp2.m_deaths) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_deaths < kp2.m_deaths) {\r\n return kp1;\r\n }\r\n\r\n Player p1 = m_botAction.getPlayer(kp1.m_name);\r\n Player p2 = m_botAction.getPlayer(kp2.m_name);\r\n\r\n if(p1 == null) {\r\n return kp2;\r\n }\r\n\r\n if(p2 == null) {\r\n return kp1;\r\n }\r\n\r\n if(p1.getKillPoints() < p2.getKillPoints()) {\r\n return kp2;\r\n }\r\n\r\n if(p1.getKillPoints() > p2.getKillPoints()) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_lagoutsLeft < kp2.m_lagoutsLeft) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_lagoutsLeft > kp2.m_lagoutsLeft) {\r\n return kp1;\r\n }\r\n\r\n return kp2;\r\n }", "public void ptFromTVal(double t, Point currPt)\n/* */ {\n/* 37 */ if (this.m_cont != null) {\n/* 38 */ Dimension d = this.m_cont.size();\n/* */ \n/* 40 */ double tVal = tVal(t);\n/* 41 */ currPt.y = (d.height - 15 - new Double(tVal(t) * (d.height - 15 - 15)).intValue());\n/* */ \n/* */ \n/* */ \n/* 45 */ currPt.x = (new Double(t * (d.width - 15 - 15)).intValue() + 15);\n/* */ }\n/* */ }", "public ArrayList<Node> getTrack(){\n ArrayList<Node> track = new ArrayList<>();\n Node attuale = end_node;\n while(attuale != null){\n track.add(attuale);\n attuale = precedenti.get(attuale);\n }\n Collections.reverse(track);\n return track;\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "@Override\r\n\tpublic void acolarPrioridad(int valor, int prior) {\n\t\tif(colaVacia() || prior > vector[tam-1].prior) {\r\n\t\t\t\r\n\t\t\tInfo info = new Info();\r\n\t\t\tinfo.prior = prior;\r\n\t\t\tinfo.d = valor;\r\n\t\t\t\r\n\t\t\tvector[tam] = info;\r\n\t\t\ttam++;\r\n\t\t\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tint i = tam;\r\n\t\twhile(i > 0 && vector[i-1].prior >= prior) {\r\n\t\t\ti--;\r\n\t\t}\r\n\r\n\t\tfor(int j = tam; j > i; j--) {\r\n\t\t\tvector[j] = vector[j-1];\r\n\t\t}\r\n\t\t\r\n\t\tvector[i] = new Info();\r\n\t\tvector[i].prior = prior;\r\n\t\tvector[i].d = valor;\r\n\t\ttam++;\r\n\t}", "public List<Integer> getPredecessors(int v);", "private List<GeographicPoint> backTrack(HashMap<GeographicPoint, List<GeographicPoint>> prev, GeographicPoint goal) {\n\t\tList<GeographicPoint> ans = new ArrayList<GeographicPoint>();\n\t\tList<GeographicPoint> temp = prev.get(goal);\n\t\tif (temp.size() != 0) {\n\t\t\tans.add(goal);\n\t\t\twhile (temp.size() != 0) {\n//\t\t\t\tSystem.out.print(\"Neighbours: \");\n\t\t\t\t// lastNeighbour will be the neighbour node we visited right before moving to the current node\n\t\t\t\tGeographicPoint lastNeighbour = temp.get(temp.size() - 1);\n\t\t\t\tans.add(lastNeighbour);\n\t\t\t\ttemp = prev.get(lastNeighbour);\n\t\t\t}\n\t\t\tCollections.reverse(ans);\n\t\t}\n\t\tif (ans.isEmpty())\n\t\t\treturn null;\n\t\treturn ans;\n\t}", "String getPrevious();", "@Basic\n\tpublic String getPrevMove() {\n\t\treturn prev_move;\n\t}", "@Override\n\tpublic TvShow[] findByUuid_C_PrevAndNext(long tvShowId, String uuid,\n\t\tlong companyId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic Object[] getLexica()\n\t{\n\t\tObject[] lexica = new Object[3];\n\t\t\n\t\tlexica[LEXICA_PATH_DOWN] = (i_flag == FLAG_LEXICA) ? m_down.toSet(f_xmls[0].getPathDownCutoff()) : s_down; \n\t\tlexica[LEXICA_PATH_UP] = (i_flag == FLAG_LEXICA) ? m_up .toSet(f_xmls[0].getPathUpCutoff()) : s_up;\n\t\tlexica[LEXICA_FRAMES] = m_frames;\n\t\t\n\t\treturn lexica;\n\t}", "public void sekvMetode(IntList m, IntList kohyll){\n int minX = x[0];\n int maxX = x[0];\n int minIndeks = 0, maxIndeks = 0;\n\n for(int i = 0; i < x.length; i++){\n\n if(minX > x[i]){\n minX = x[i];\n minIndeks = i;\n }\n if(maxX < x[i]){\n maxX = x[i];\n maxIndeks = i;\n }\n }\n\n\tSystem.out.println(minIndeks + \"\" + maxIndeks);\n //get all indexs\n IntList xcoords = drawLineBetweenPoints(maxIndeks, minIndeks, m);\n\n int xcoord = findPointWithMostNegativeDistance(maxIndeks, minIndeks, xcoords);\n\n\tkohyll.add(maxIndeks);\n sekvRek(maxIndeks, minIndeks, xcoord, xcoords, kohyll);\n\n //reset xcoords\n xcoords.clear();\n\n xcoords = drawLineBetweenPoints(minIndeks, maxIndeks, m);\n\n\t\n xcoord = findPointWithMostNegativeDistance(minIndeks, maxIndeks, xcoords);\n\n\t\n kohyll.add(minIndeks);\n\t\n sekvRek(minIndeks, maxIndeks, xcoord, xcoords, kohyll);\n }", "public void menorEmQuantidade(){\n qtadePorNum.sort(new Matriz.PairValueComparator());\n }", "public void izbaciElementeSaDecimalnimZarezom() {\n while (prvi != null && (int)prvi.info != prvi.info) {\n prvi = prvi.veza;\n }\n if (prvi != null) {\n Element tekuci = prvi;\n Element prethodni;\n while (tekuci.veza != null) {\n prethodni = tekuci;\n tekuci = tekuci.veza;\n if ((int)tekuci.info != tekuci.info) {\n prethodni.veza = tekuci.veza;\n tekuci = prethodni;\n }\n }\n }\n }", "private double getVerticalOffset(final int vpos, final boolean isBBox) {\n double dy;\n switch(vpos) {\n case BOTTOM:\n dy = 0;\n break;\n case CENTER_V:\n dy = bbox.getHeight() * 0.5;\n break;\n case TOP:\n dy = bbox.getHeight();\n break;\n default:\n throw new IllegalArgumentException(\"vpos: \" + vpos);\n }\n return dy - bbox.getY() - (isBBox ? bbox.getHeight() : 0);\n }", "public ArrayList orderToppings() {\r\n\t\t//left blank on purpose\r\n\t\treturn toppings;\r\n\t}", "boolean condition(PetriP[] pp) { //Нумерація позицій тут відносна!!! inP.get(i) - номер позиції у списку позицій, який побудований при конструюванні мережі Петрі,\n\n boolean a = true;\n boolean b = true; // Саме тому при з\"єднанні спільних позицій зміна номера не призводить до трагічних наслідків (руйнування зв\"язків)!!!\n for (int i = 0; i < inP.size(); i++) {\n if (pp[inP.get(i)].getMark() < quantIn.get(i)) {\n a = false;\n break;\n }\n }\n for (int i = 0; i < inPwithInf.size(); i++) {\n if (pp[inPwithInf.get(i)].getMark() < quantInwithInf.get(i)) {\n b = false;\n break;\n }\n }\n return a && b;\n }", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "protected int seekToOrBeforeUsingPositionAtOrBefore(Cell kv, boolean seekBefore) {\n // this does a deep copy of the key byte[] because the CellSearcher\n // interface wants a Cell\n CellScannerPosition position = ptSearcher.seekForwardToOrBefore(kv);\n\n if (CellScannerPosition.AT == position) {\n if (seekBefore) {\n ptSearcher.previous();\n return 1;\n }\n return 0;\n }\n\n return 1;\n }", "public Chord getPreviousChordInVoice ()\r\n {\r\n return voice.getPreviousChord(this);\r\n }", "public int getPrevMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger()-2);\n\t\t\n\t\treturn (getMonthInteger()-1);\n\n\t}", "List<Pacote> buscarPorQtdDiasMaiorEPrecoMenor(int qtd, float preco);", "public Comparator<Estado> getCompHeuristicaMasProf() {\r\n\t\tcomp = new Comparator<Estado>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Estado e1, Estado e2) {\r\n\t\t\t\tInteger es1 = e1.getDistanciaManhattan() + e1.getProf();\r\n\t\t\t\tInteger es2 = e2.getDistanciaManhattan() + e2.getProf();\r\n\t\t\t\tif (es1 == es2)\r\n\t\t\t\t\treturn new Integer(e1.getProf().compareTo(e2.getProf())); // En caso de empate comparo por profundidad\r\n\t\t\t\treturn new Integer(es1.compareTo(es2));\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn comp;\r\n\t}", "public double\noffsetPtTValue(double x0, double y0)\n{\n\tdouble x1 = this.getP1().getX();\n\tdouble y1 = this.getP1().getY();\n\tdouble x2 = this.getP2().getX();\n\tdouble y2 = this.getP2().getY();\n\tdouble a = x2 - x1;\n\tdouble b = y2 - y1;\n\treturn (-(a*(x1 - x0) + b*(y1 - y0))/(a*a + b*b));\n}", "public Point2D\ngetThreePrimeTailIntersect(double gap)\nthrows Exception\n{\n\tdouble[] uArray = new double[2];\n\tint[] sideArray = new int[2];\n\tPoint2D intersect0Pt = new Point2D.Double();\n\tPoint2D intersect1Pt = new Point2D.Double();\n\n\tRectangle2D rect = this.getCenteredBoundingBox();\n\n\tboolean intersects = BLine2D.getRectangleRayIntersect(\n\t\trect, this.getThreePrimeRay(),\n\t\tintersect0Pt, intersect1Pt, uArray, sideArray);\n\n\tif (!intersects)\n\t\treturn (null);\n\n\tif (gap != 0.0)\n\t{\n\t\tBLine2D tmpLine = new BLine2D(this.getThreePrimeRay().getP1(),\n\t\t\tintersect0Pt);\n\t\ttmpLine.setRayFromLength(tmpLine.length() + gap);\n\t\tintersect0Pt = tmpLine.getP2();\n\t}\n\n\treturn (intersect0Pt);\n}", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "public Integer getAfterP() {\r\n return afterP;\r\n }", "public int getVgap()\n {\n return vgap;\n }", "public int compareTo(Mahasiswa m) {\n if(this.kodeJurusan > m.kodeJurusan){\r\n return 1;\r\n }\r\n else{\r\n if(this.kodeJurusan == m.kodeJurusan){\r\n if(this.angkatan<m.angkatan){\r\n return 1;\r\n }\r\n else{\r\n if(this.angkatan==m.angkatan){\r\n if(this.ipk<m.ipk){\r\n return 1;\r\n }\r\n else if(this.ipk==m.ipk){\r\n return 0;\r\n }\r\n return -1;\r\n }\r\n return -1;\r\n }\r\n }\r\n return -1;\r\n }\r\n }", "public int getPrioritate() {\n return prioritate;\n }", "public static int[] makeBeforeInterval(ArrayList<Firm> list)\n\t{\n\t\tint dis = 1;\n\t\tint first = 0;\n\t\t\n\t\tint dis2 = 120;\t\t\n\t\tint last = 0;\n\t\t\n\t\tint years = (int)((float)(2*366));\n\t\tint quarter = 92; // # days in a qtr\n\t\t\n\t\tInteger filed = (Integer)(utils.qM2.get(list.get(0).getBankrupcy().get(0).filedIndex - quarter));\n\t\tInteger beforeFiled = (Integer)(utils.qM2.get(list.get(0).getBankrupcy().get(0).filedIndex - years));\n\n\t\tif(filed != null &&\n\t\t beforeFiled != null){\n\t\t\tlast = filed;\n\t\t\tfirst = beforeFiled;\n\t\t} else {\n\t\t\tlast = dis2;\n\t\t\tfirst = dis2 - years;\n\t\t}\t\t\n\t\t\n\t\tint mid = (first+last)/2;\n\t\tint[] x = new int[3];\n\t\tx[0]=first;\n\t\tx[1]=mid;\n\t\tx[2]=last;\t\t\n\t\treturn x;\t\n\t}", "protected double[] clampV(double nextVabs, double nextVarg)\r\n\t\t{\r\n//\t\t\tif(nextVabs < v_min)\r\n//\t\t\t\tnextVabs = v_min;\r\n//\t\t\telse if(nextVabs > v_max)\r\n//\t\t\t\tnextVabs = v_max;\r\n\t\t\t\r\n\t\t\treturn new double[]{nextVabs, nextVarg};\r\n\t\t}", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public void Prev();", "private final List<State> PreA(List<State> y) {\r\n // pre(Y ) = pre\u0003y \u0012 pre\u0003(S \u0012 Y)\r\n List<State> PreEY = this.PreE(y);\r\n List<State> S_Minus_Y = new ArrayList<State>();\r\n for(State state:this._kripke.States)\r\n {\r\n \tS_Minus_Y.add(state);\r\n }\r\n for (State state : y) {\r\n if (S_Minus_Y.contains(state)) {\r\n S_Minus_Y.remove(state);\r\n }\r\n \r\n }\r\n \r\n List<State> PreE_S_Minus_Y = this.PreE(S_Minus_Y);\r\n // PreEY - PreE(S-Y)\r\n for (State state : PreE_S_Minus_Y) {\r\n if (PreEY.contains(state)) {\r\n PreEY.remove(state);\r\n }\r\n \r\n }\r\n \r\n return PreEY;\r\n }", "public void prev();", "public BigDecimal getSETTLED_VAT_AMT() {\r\n return SETTLED_VAT_AMT;\r\n }", "public BigDecimal getVAT_CHARGE_INSUR_AMT() {\r\n return VAT_CHARGE_INSUR_AMT;\r\n }", "public Vector getHistoryVisiting(Vector conditions){\n Vector listHistory = new Vector();\n try{\n String sqlGet = \"SELECT history_id, convert(varchar(10),from_date,103) AS history_fromdate, convert(varchar(10),to_date,103) AS history_todate FROM history_doctor\";\n String strConditions = this._buildWhereCondition(conditions);\n if(!strConditions.isEmpty()){\n sqlGet += \" WHERE \" + strConditions;\n }\n sqlGet += \" ORDER BY from_date DESC, to_date DESC\";\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(order);\n dataSet.add(rsGet.getString(\"history_fromdate\"));\n dataSet.add(rsGet.getString(\"history_todate\"));\n dataSet.add(rsGet.getString(\"history_id\"));\n\n listHistory.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listHistory;\n }", "public static GiaovuEntity xacThucTK(String ma, String mk) {\n GiaovuEntity giaoVu = getThongTinGV(ma);\n if (giaoVu == null || giaoVu.getMatKhau() == null) {\n return null;\n }\n if (giaoVu.getMatKhau().equals(mk) == true) {\n return giaoVu;\n }\n return null;\n }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }", "public BigDecimal getPremAmt() {\n\t\treturn premAmt;\n\t}", "protected abstract D getPrevious(D d);", "public Weet[] getWeetsBefore(Date dateBefore) {\n return tree.toArray(dateBefore);\n }", "public RoundTable afterNextKnightQuits() {\n if(lunghezza == 1) {\n IntSList knsb = knightsAfter.cons(knightsBefore.car()).reverse().cdr();\n IntSList knsa = IntSList.NULL_INTLIST;\n return new RoundTable(knsb, knsa, numeroCompl-1);\n } else if (lunghezza == 2) {\n IntSList knsb = knightsAfter.cons(knightsBefore.car()).reverse();\n IntSList knsa = IntSList.NULL_INTLIST;\n return new RoundTable(knsb, knsa, numeroCompl-1);\n } else {\n IntSList knsb = knightsBefore.cdr().cdr();\n IntSList knsa = knightsAfter.cons(knightsBefore.car());\n return new RoundTable(knsb, knsa, numeroCompl-1);\n }\n }", "public PrevPage getPP(){\r\n\t\treturn ppage;\r\n\t}" ]
[ "0.5878605", "0.581818", "0.5684583", "0.535493", "0.50336266", "0.49165797", "0.45943937", "0.45707232", "0.4518156", "0.44962162", "0.44683048", "0.44509122", "0.44366696", "0.44266507", "0.4385737", "0.4355654", "0.43515956", "0.43316913", "0.43244117", "0.43113846", "0.43060482", "0.4300595", "0.4296841", "0.4293233", "0.42923668", "0.4291859", "0.42855918", "0.42731005", "0.42476386", "0.42460874", "0.42335954", "0.42270395", "0.42177838", "0.42172965", "0.4211711", "0.42070284", "0.41994342", "0.41856912", "0.41804346", "0.4169858", "0.4158537", "0.41559187", "0.41555512", "0.41547996", "0.41395006", "0.41197318", "0.41151446", "0.41141215", "0.41041186", "0.4098934", "0.40957925", "0.40893123", "0.40837842", "0.40825891", "0.40791863", "0.40785506", "0.40773693", "0.40734717", "0.4072446", "0.40659317", "0.40612456", "0.4061156", "0.4060454", "0.40581036", "0.40560818", "0.40511075", "0.40501183", "0.40339163", "0.40314263", "0.4031293", "0.4025479", "0.40234867", "0.40199777", "0.40198493", "0.40176758", "0.401026", "0.40100893", "0.40026537", "0.40022343", "0.4000516", "0.39980355", "0.3994232", "0.3987579", "0.39847597", "0.39844555", "0.3984295", "0.39827982", "0.3981717", "0.39804015", "0.39793295", "0.39780766", "0.39775118", "0.39770675", "0.39703977", "0.39702037", "0.39699733", "0.3968498", "0.39677647", "0.39673153", "0.39641654" ]
0.5705323
2
Removes all the phat vaies where maCTV = &63; from the database.
@Override public void removeByMaCTV(String maCTV) { for (PhatVay phatVay : findByMaCTV( maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(phatVay); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public void deleteVitals(VitalSigns v){\n vitalSignsHistory.remove(v);\n }", "public void removeDeadVampires() {\n\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n if (lista[i].getVida() <= 0)\n delVampire(i);\n }\n }", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "public void unsetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ZYHTVO$0, 0);\n }\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar86() {\n var86 = null;\n fieldSetFlags()[87] = false;\n return this;\n }", "public void suppressionRdV_all() {\n //on vide l'agenda de ses elements\n for (RdV elem_agenda : this.agd) {\n this.getAgenda().remove(elem_agenda);\n }\n //on reinitialise a null l'objet agenda\n //this.agd = null;\n }", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar87() {\n var87 = null;\n fieldSetFlags()[88] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar223() {\n var223 = null;\n fieldSetFlags()[224] = false;\n return this;\n }", "@Override\r\n\tpublic void supprimerTVA(TVA t) {\n\t\t\r\n\t}", "public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar116() {\n var116 = null;\n fieldSetFlags()[117] = false;\n return this;\n }", "public boolean xoaChiTietPhieuNhap(String MaPN){\r\n Connection conn = DBConnect.getConnection();\r\n String sql = \"DELETE FROM chitietphieunhap WHERE MaPN = ?\";\r\n \r\n try {\r\n PreparedStatement ps = conn.prepareCall(sql);\r\n ps.setString(1, MaPN);\r\n \r\n return ps.executeUpdate() == 1;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ChiTietPhieuNhapDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "public void deleteAllRealTestCode() {\n\n\t myDataBase.delete(\"tbl_TestCode\", \"TestCode\" + \" != ?\",\n\t new String[] { \"1\" });\n\t }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar121() {\n var121 = null;\n fieldSetFlags()[122] = false;\n return this;\n }", "private void unDeleteValoresPago() {\n CQChangeStateVP( MVALORPAGO.ANULADO,MVALORPAGO.EMITIDO);\n }", "public void cleanProposition();", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar166() {\n var166 = null;\n fieldSetFlags()[167] = false;\n return this;\n }", "public void deleteByChucVuID(long chucVuId);", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar138() {\n var138 = null;\n fieldSetFlags()[139] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar112() {\n var112 = null;\n fieldSetFlags()[113] = false;\n return this;\n }", "public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar137() {\n var137 = null;\n fieldSetFlags()[138] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar37() {\n var37 = null;\n fieldSetFlags()[38] = false;\n return this;\n }", "@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar65() {\n var65 = null;\n fieldSetFlags()[66] = false;\n return this;\n }", "public static boolean xoaSinhVienMonHoc(MonHoc mhoc, NguoiDung svien) {\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n//\t\t\tMonHoc mh = \n\t\t\tfor (MonHoc mh : svien.getDsMonHoc()) {\n\t\t\t\tif(mh.getMaMonHoc() == mhoc.getMaMonHoc()){\n\t\t\t\t\tsvien.getDsMonHoc().remove(mh);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsession.saveOrUpdate(svien);\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar83() {\n var83 = null;\n fieldSetFlags()[84] = false;\n return this;\n }", "public void eliminarVideojuegoPorPlataforma(String plataforma)\n {\n Iterator<Videojuegos> iteration = listaDeVideojuegos.iterator();\n while(iteration.hasNext()){\n Videojuegos iter = iteration.next();\n String plataformaVideojuego = iter.getPlataforma();\n if(plataformaVideojuego.equals(plataforma)){\n iteration.remove();\n }\n }\n }", "public void cleanZonePropertyValue(){\n List<ZonePropertyValue> zonePropertyValues = ZonePropertyValueService.getInstance().getZonePropertyValues();\n if ((zonePropertyValues != null) && (zonePropertyValues.size() > 0)){\n for (ZonePropertyValue zonePropertyValue: zonePropertyValues){\n Zone zone = ZoneService.getInstance().get(zonePropertyValue.getZoneId());\n if (zone == null){\n zonePropertyValue.setZonePropertyId(null);\n zonePropertyValue.setZoneId(null);\n ZonePropertyValueService.getInstance().delete(zonePropertyValue);\n }\n }\n }\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar115() {\n var115 = null;\n fieldSetFlags()[116] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar163() {\n var163 = null;\n fieldSetFlags()[164] = false;\n return this;\n }", "public void borrarQuesos(ArrayList<Queso> quesosV)\r\n\t{\n\t\tint limite = quesos.size();\r\n\t\t\r\n\t\tfor (int i = 0; i < limite; i++) {\r\n\t\t\tfor (int j = 0; j < quesosV.size(); j++) {\r\n\t\t\t\tif(quesos.get(i).getId().equalsIgnoreCase(quesosV.get(j).getId()))\r\n\t\t\t\t{\r\n\t\t\t\t\tquesos.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar167() {\n var167 = null;\n fieldSetFlags()[168] = false;\n return this;\n }", "@Override\n\tpublic boolean removeXS(String maXS) {\n\t\tEntityTransaction tr = em.getTransaction();\n\t\ttry {\n\t\t\ttr.begin();\n\t\t\tem.remove(em.find(XuatSu.class,maXS));\n\t\t\ttr.commit();\n\t\t\treturn true;\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttr.rollback();\n\t\t}\n\t\treturn false;\n\t}", "public void supprimerEpsilonProd(){\n grammaireCleaner.supprimer_epsilon_prod();\n setChanged();\n notifyObservers(\"4\");\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar122() {\n var122 = null;\n fieldSetFlags()[123] = false;\n return this;\n }", "public void deleteDataInStageTable() throws SQLException {\n\t\tdeleteData(\"stage_value\",idCondition);\n\t\tdeleteData(\"stage\",idCondition);\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar13() {\n var13 = null;\n fieldSetFlags()[14] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar263() {\n var263 = null;\n fieldSetFlags()[264] = false;\n return this;\n }", "@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar26() {\n var26 = null;\n fieldSetFlags()[27] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar131() {\n var131 = null;\n fieldSetFlags()[132] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar97() {\n var97 = null;\n fieldSetFlags()[98] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar85() {\n var85 = null;\n fieldSetFlags()[86] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar165() {\n var165 = null;\n fieldSetFlags()[166] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar84() {\n var84 = null;\n fieldSetFlags()[85] = false;\n return this;\n }", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar173() {\n var173 = null;\n fieldSetFlags()[174] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar134() {\n var134 = null;\n fieldSetFlags()[135] = false;\n return this;\n }", "public static String removePosessive(String line) {\n\t\tif (line.contains(\"'S\")) {\n\t\t\tline = line.replace(\"'S\", \"\");\n\t\t}\n\t\treturn line;\n\t}", "public void unsetVerStmt()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VERSTMT$22, 0);\n }\n }", "public void deleteFromPoseOrder() { \n \ttry {\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(DeletePoses);\n\t\t\tthis.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.d(\"SQL Exception\", e.toString());\n\t\t}\n \t\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar36() {\n var36 = null;\n fieldSetFlags()[37] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar81() {\n var81 = null;\n fieldSetFlags()[82] = false;\n return this;\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar113() {\n var113 = null;\n fieldSetFlags()[114] = false;\n return this;\n }", "public void delVampire(int ind) {\n\n Vampiro.restarVampiro();\n\n for (int i=ind; i < Vampiro.getNumVamp(); i++) {\n\n lista[i] = lista[i+1];\n }\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar171() {\n var171 = null;\n fieldSetFlags()[172] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar172() {\n var172 = null;\n fieldSetFlags()[173] = false;\n return this;\n }", "public void removePatientFromDB(Patient P1)\r\n {\r\n \t String sql1 = \"DELETE from PATIENTDATA where firstname='\"+P1.firstName+\"' AND lastname='\"+P1.lastName+\"';\";\r\n try {\r\n\t\tstmt.executeUpdate(sql1);\r\n\t} catch (SQLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar273() {\n var273 = null;\n fieldSetFlags()[274] = false;\n return this;\n }", "private void BorrarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(this, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tdb.execSQL(\"DELETE from Tarjetas;\");\n\n\t\t\tdb.close();\n\t\t}\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar265() {\n var265 = null;\n fieldSetFlags()[266] = false;\n return this;\n }", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar141() {\n var141 = null;\n fieldSetFlags()[142] = false;\n return this;\n }", "private void DeleteCMVMMVData() {\n String path = GetFilePath();\r\n File dir = new File(path);\r\n for (File file : dir.listFiles())\r\n if (!file.isDirectory())\r\n file.delete();\r\n DownloadCMVMMVFiles();//state, circle, ran, div\r\n }", "public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar54() {\n var54 = null;\n fieldSetFlags()[55] = false;\n return this;\n }", "@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar130() {\n var130 = null;\n fieldSetFlags()[131] = false;\n return this;\n }", "private void removeCityFromTableEdges(ArrayList<HashMap<Integer,Integer>> table, int index){\n for(int i = 0; i < table.size(); i++){\n if(table.get(i).containsKey(index)){\n table.get(i).remove(index);\n }\n }\n\n return;\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public void deleteResult(String hw) {\n IDatabase database = new MySqlDatabase();\n Connection connection = database.getConnection();\n db.deleteResult(hw);\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar46() {\n var46 = null;\n fieldSetFlags()[47] = false;\n return this;\n }", "public void supprimerToutesLesLignes() {\n\t\tlisteVente.clear();\r\n\t\tfireTableDataChanged();\r\n\t}", "public void EliminarVertice(int v) {\n\t\tNodoGrafo aux = origen;\n\t\tif (origen.nodo == v) \n\t\t\torigen = origen.sigNodo;\t\t\t\n\t\twhile (aux != null){\n\t\t\t// remueve de aux todas las aristas hacia v\n\t\t\tthis.EliminarAristaNodo(aux, v);\n\t\t\tif (aux.sigNodo!= null && aux.sigNodo.nodo == v) {\n\t\t\t\t// Si el siguiente nodo de aux es v , lo elimina\n\t\t\t\taux.sigNodo = aux.sigNodo.sigNodo;\n\t\t\t}\n\t\t\taux = aux.sigNodo;\n\t\t}\t\t\n\t}", "public static void eliminarVaca(String crotal){\n ArrayList<Vaca> vacas = bdAnimalesVacas.getDatosObjeto(crotal);\n\n if(vacas.size() > 0)\n bdAnimalesVacas.borrarDatos(vacas.get(0));\n }", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "public void removeOldRecords();", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar106() {\n var106 = null;\n fieldSetFlags()[107] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar136() {\n var136 = null;\n fieldSetFlags()[137] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar262() {\n var262 = null;\n fieldSetFlags()[263] = false;\n return this;\n }", "public static void ClearLine7() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L7.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public final synchronized void mo27313a() {\n this.f10289c.clear();\n this.f10287a.edit().clear().commit();\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar161() {\n var161 = null;\n fieldSetFlags()[162] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar127() {\n var127 = null;\n fieldSetFlags()[128] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar286() {\n var286 = null;\n fieldSetFlags()[287] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar73() {\n var73 = null;\n fieldSetFlags()[74] = false;\n return this;\n }", "public void deleteDataInProgramTable() throws SQLException {\n\t\tdeleteDataInUserTable();\n\t\tdeleteDataInPeriodTable();\n\t\tdeleteData(\"group_stage\",\"STAGE_\"+idCondition);\n\t\tdeleteData(\"jp_group\",idCondition);\n\t\tdeleteData(\"program\",idCondition);\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar107() {\n var107 = null;\n fieldSetFlags()[108] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar53() {\n var53 = null;\n fieldSetFlags()[54] = false;\n return this;\n }", "@Override\r\n\tpublic int deleteDBInfo(AgentDBInfoVO vo){\n\t\treturn sqlSession.getMapper(CollectMapper.class).deleteDBInfo(vo);\r\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar176() {\n var176 = null;\n fieldSetFlags()[177] = false;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar129() {\n var129 = null;\n fieldSetFlags()[130] = false;\n return this;\n }" ]
[ "0.61213356", "0.55503666", "0.54213893", "0.53897315", "0.53841853", "0.53837484", "0.5260972", "0.524696", "0.5221268", "0.5195206", "0.5179122", "0.51772016", "0.517354", "0.51703286", "0.51569754", "0.5150542", "0.51418865", "0.51224107", "0.5102494", "0.5098362", "0.5096008", "0.50900364", "0.5083169", "0.5081585", "0.50793785", "0.50743973", "0.50700545", "0.50652415", "0.50586104", "0.5057424", "0.5052061", "0.5047101", "0.5046009", "0.50455797", "0.5039032", "0.5038765", "0.5031755", "0.50294715", "0.5009881", "0.49968663", "0.49968016", "0.49841642", "0.49765635", "0.49728104", "0.49659634", "0.49546507", "0.49545744", "0.49528134", "0.49493575", "0.49447444", "0.4943823", "0.49430963", "0.49430126", "0.49418646", "0.49373743", "0.49278852", "0.4927284", "0.49213126", "0.49080732", "0.48974597", "0.48948798", "0.48920283", "0.48888186", "0.48884758", "0.4887675", "0.4885368", "0.48847142", "0.48842052", "0.48820975", "0.48809794", "0.48789415", "0.4878704", "0.4871726", "0.48679933", "0.48670346", "0.48649135", "0.48636135", "0.485853", "0.48573938", "0.485627", "0.4851361", "0.48508102", "0.48471335", "0.4842582", "0.48389658", "0.48385358", "0.48383063", "0.48329595", "0.48306376", "0.48276213", "0.4824565", "0.48235568", "0.48179808", "0.48169857", "0.48161936", "0.4815607", "0.48126608", "0.48098853", "0.48096853", "0.4809434" ]
0.77116144
0
Returns the number of phat vaies where maCTV = &63;.
@Override public int countByMaCTV(String maCTV) { maCTV = Objects.toString(maCTV, ""); FinderPath finderPath = _finderPathCountByMaCTV; Object[] finderArgs = new Object[] {maCTV}; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { StringBundler query = new StringBundler(2); query.append(_SQL_COUNT_PHATVAY_WHERE); boolean bindMaCTV = false; if (maCTV.isEmpty()) { query.append(_FINDER_COLUMN_MACTV_MACTV_3); } else { bindMaCTV = true; query.append(_FINDER_COLUMN_MACTV_MACTV_2); } String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); if (bindMaCTV) { qPos.add(maCTV); } count = (Long)q.uniqueResult(); finderCache.putResult(finderPath, finderArgs, count); } catch (Exception e) { finderCache.removeResult(finderPath, finderArgs); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "private int patikrinimas(String z) {\n int result = 0;\n for (int i = 0; i < z.length(); i++) {\n if (z.charAt(i) == 'a') {\n result++;\n }\n }\n System.out.println(\"Ivestas tekstas turi simboliu a. Ju suma: \" + result);\n return result;\n }", "public int vecinos(){\n int v=0;\n if(fila<15 && columna<15 && fila>0 && columna>0){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;} \n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n }\n else{v=limitesX();}\n return v;\n }", "int getVpotNum();", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "static int size_of_mvi(String passed){\n\t\treturn 2;\n\t}", "public int mo3384v() {\n return 0;\n }", "public int getNumberOfVMOnMobile(){\n\t\t\tint count=0;\n\t\t\tfor (int i = 0; i < vmList.size(); i++) {\n\t\t\t\tcount=count+vmList.get(i).size();\n\t\t\t}\n\t\t\treturn count;\n\t\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "public int getCHVNumber()\r\n {\r\n return number_of_CHV;\r\n }", "@Override\n\tpublic int getVanBanPhapQuiesCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBanPhapQuiesCount();\n\t}", "@Override\n\tdouble chuVi() {\n\t\treturn canhA + canhB + canhC;\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public int mo23280V() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13764V)).intValue();\n }", "static int type_of_mvi(String passed){\n\t\tif(passed.charAt(4)!='M')\n\t\t\treturn 1;\n\t\telse if(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}", "private boolean checkMaPhieuTT(String maPTT){\n String pattern = \"PTT\\\\d+\";\n return maPTT.matches(pattern);\n }", "public int getVonalAzonosito()\r\n\t{\r\n\t\treturn vonalAzonosito;\r\n\t}", "public Integer countMedicines();", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }", "public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }", "int getWpaCount();", "public int getNumVMs() {\n return numVMs;\n }", "@Override\n\tpublic double ChuVi() {\n\n\t\treturn (banKinh*2*P);\n\t}", "public int mo23310ma() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13711Jb)).intValue();\n }", "public double mo3937t(double m, double mu, double v, double n) {\r\n return (m - mu) / FastMath.sqrt(v / n);\r\n }", "public int getContaminantPPM() {\n return contaminantPPM;\n }", "public float mo12719a(C1085v vVar) {\n return 0.5f;\n }", "public int getVirusPPM() {\n return virusPPM;\n }", "public static String m66043a(C13868v vVar, boolean z) {\n String str;\n String str2 = \":\";\n if (vVar.mo43649h().contains(str2)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n sb.append(vVar.mo43649h());\n sb.append(\"]\");\n str = sb.toString();\n } else {\n str = vVar.mo43649h();\n }\n if (!z && vVar.mo43656n() == C13868v.m59277e(vVar.mo43661s())) {\n return str;\n }\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(str2);\n sb2.append(vVar.mo43656n());\n return sb2.toString();\n }", "public int getTotal_votos() {\n return total_votos;\n }", "@Override\n\tdouble chuVi() {\n\t\treturn (canhA + canhB) * 2;\n\t}", "public int m2695V() {\n return ((Integer) this.f2439a.m2666a(ea.cN)).intValue();\n }", "public int getRayonV(){\r\n\t\treturn rayonV;\r\n\t}", "public int ardiveis() {\n\t\tint result = 0;\n\t\tfor (EstadoAmbiente[] linha : this.quadricula) {\n\t\t\tfor (EstadoAmbiente ea : linha) {\n\t\t\t\tif(ea == EstadoAmbiente.CASA || ea == EstadoAmbiente.TERRENO){\n\t\t\t\t\tresult++;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}", "private static long vratiBodovaViseOd25(List<StudentRecord> records) {\n\t\treturn records.stream().filter(o -> o.getBodoviLabos() + o.getBodoviMI() + o.getBodoviZI() > 25).count();\n\t}", "public int iNumPrimos(boolean[] vector)\r\n\t{\r\n\t\tint iNumprimos=0;\r\n\t\tfor(int i=0; i<vector.length;i++)\r\n\t\t{\r\n\t\t\tif(vector[i]==true)\r\n\t\t\t{\r\n\t\t\t\tiNumprimos+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn iNumprimos;\r\n\t}", "public int getNbVictoires()\r\n\t{\r\n\t\treturn this.nbVictoires;\r\n\t}", "private double evaluateFaultCovFitness(String phenotype) {\n int faults = 38; // Again, should be injected\n boolean[] faultsHit = new boolean[faults];\n for (int i = 0; i < faults; i++)\n faultsHit[i] = false;\n for (int i = 0; i < phenotype.length(); i++) {\n if (phenotype.charAt(i) == '1') {\n// mark the faults found by the test\n for (int j = 0; j < faults; j++) {\n if (faultMatrix[i][j] == 1)\n faultsHit[j] = true;\n }\n }\n }\n// total collection of faults found\n int count = 0;\n for (int i = 0; i < faults; i++) {\n if (faultsHit[i])\n count++;\n }\n return count;\n }", "public int mo23306ka() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13706Ib)).intValue();\n }", "public static int isAcabou(char[][] vectM, int som) {\n boolean dp, ds, linha, coluna, empate;\n dp = isCondicaoVitoriaDiagonalPrincipal(vectM, som);\n ds = isCondicaoVitoriaDiagonalSecundaria(vectM, som);\n linha = isCondicaoVitoriaLinha(vectM, som);\n coluna = isCondicaoVitoriaColuna(vectM, som);\n empate = isEmpate(vectM);\n if (dp || ds || linha || coluna) { //houve vencedor\n return 1;\n } else if (empate) { //empatou\n return -1;\n }\n return 0; //aconteceu nada\n }", "static int countingValleys(int n, String s) {\n int count = 0;\n int altitude = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'U' && altitude == -1) {\n count++;\n }\n altitude += s.charAt(i) == 'U' ? 1 : -1;\n }\n return count;\n }", "public int length(int v, int w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.length();\n }", "private int getSumV(int[][] a, int jv) {\n int sum = 0;\n for (int j = 0; j < a.length; j++) {\n sum += a[j][jv];\n }\n return sum;\n }", "static int countingValleys(int n, String s) {\n int valleyCounter =0;\n byte vorm = 0;\n int curLevel=0;\n for(int i=0;i<s.length();i++){\n String cur = s.substring(i,i+1);\n int posNeg = cur.equals(\"U\")?1:-1;\n curLevel+=posNeg;\n if(curLevel == -1 && posNeg == -1){\n valleyCounter++;\n }\n }\n return valleyCounter;\n }", "public int getSpellVamp() {\n\t\t\n\t\treturn spellVamp;\n\t}", "public final int getNbVie() {\n return nbVie;\n }", "private long getChampNodeCount(Node series) {\n\t\tNode chrom = getSolutionChrom(series);\n\t\tif (chrom != null) {\n\t\t\tNode attribute = chrom.getFirstChild();\n\t\t\twhile (attribute != null) {\n\t\t\t\tif (attribute.getNodeName().equals(NODE_COUNT_TAG)) {\n\t\t\t\t\treturn Util.getLong(attribute);\n\t\t\t\t}\n\t\t\t\tattribute = attribute.getNextSibling();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public int getWidthvetana() \r\n\t{\r\n\t\treturn widthvetana;\r\n\t}", "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(18)\r\n int count();", "public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }", "public int getVeinCount() {\n return veinCount;\n }", "public int getExactMatches(PegArray master) \n\t{\n\t\tint sum = 0;\n\t\t// a match whenever the same index of both have the same value\n\t\tfor (int i = 0; i < pegs.length; i++) \n\t\t\tif (master.getPeg(i).getLetter() == pegs[i].getLetter())\n\t\t\t\tsum++;\n\t\t// set private instance variable to local variable to hold value\n\t\texactMatches = sum;\n\t\treturn sum;\n\t}", "public int cima(){\n return VectorPila[cima];\n }", "static int getLength(String line)\n{\n\tString pattern = \"SVLEN=\";\n\tint idx = line.indexOf(pattern);\n\tif(idx == -1) return 0;\n\tline = line.toUpperCase();\n\tidx += pattern.length();\n\tint end = idx;\n\tint length = 0;\n\twhile(end < line.length() && line.charAt(end) >= '0' && line.charAt(end) <= '9')\n\t{\n\t length = length * 10 + (line.charAt(end) - '0');\n\t end++;\n\t}\n\treturn length;\n}", "public abstract int getCntPoa();", "static int numCommonWords (int m, int n)\n {\n\tint numCommon = 0;\n\tfor (int j=0; j<M; j++) {\n\t if ((data[j][m] > 0) && (data[j][n] > 0)) {\n\t\tnumCommon ++;\n\t }\n\t}\n\treturn numCommon;\n }", "public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w){\n\t int[] distanceV,distanceW;\n\t boolean[] markV,markW;\n\t \n\t return 0;\n }", "public int getNumDataPointsInChrom(int chromosome);", "public double getNajvacsie() {\n\t\tif ((cislo1 >= cislo2) && (cislo1 >= cislo3)) {\n\t\t\tprve = cislo1;\n\t\t} else if ((cislo2 >= cislo1) && (cislo2 >= cislo3)) {\n\t\t\tprve = cislo2;\n\t\t} else if ((cislo3 >= cislo1) && (cislo3 >= cislo2)) {\n\t\t\tprve = cislo3;\n\t\t}\n\t\treturn prve;\n\n\t}", "@Override\n\tpublic double totalPresentase(UUID idPemb) {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"SELECT sum(k.persentase_komponen) as res \"\n\t\t\t\t+ \"FROM komponen_nilai k WHERE id_pemb='\" + idPemb + \"'\");\n\t\tList<Object[]> results = (List<Object[]>)query.list();\n\t\tfor (Object[] result : results) {\n\t\t\tdouble res = (Double) result[0];\n\t\t\tSystem.out.println(res);\n\t\t}\n\t\treturn 0;\n\t}", "public void checkVung() {\n\t\tint i = 10;\n\t\tclass Vung{\n\t\t\tpublic String noiSinh;\n\t\t\tpublic String noiCapCMT;\n\t\t\tpublic Vung() {\n\t\t\t\tsuper();\n\t\t\t\t// TODO Auto-generated constructor stub\n\t\t\t}\n\t\t\tpublic Vung(String noiSinh, String noiCapCMT) {\n\t\t\t\tsuper();\n\t\t\t\tthis.noiSinh = noiSinh;\n\t\t\t\tthis.noiCapCMT = noiCapCMT;\n\t\t\t}\n\t\t\tpublic String soSanhQueQuan() {\n\t\t\t\tif (this.noiSinh != null && this.noiSinh.equals(this.noiCapCMT)) {\n\t\t\t\t\treturn \"Ban dang song tai que huong noi sinh\";\n\t\t\t\t} else {\n\t\t\t\t\treturn \"Ban hien khong song tai que huong noi sinh\";\n\t\t\t\t}\n\t\t\t}// end function soSanhQueQuan\n\t\t}// end Vung\n\t\t// tao doi tuong local class\n\t\tVung vung = new Vung();\n\t\tvung.noiCapCMT = cmt.getNoiCap();\n\t\tvung.noiSinh = diachi.getTinh();\n\t\tSystem.out.println(vung.soSanhQueQuan());\n\t\t/*\n\t\tif (cmt.getNoiCap().equals(diachi.getTinh())) {\n\t\t\tSystem.out.println( \"Ban dang song tai que huong noi sinh\" );\n\t\t} else {\n\t\t\tSystem.out.println( \"Ban hien khong song tai que huong noi sinh\");\n\t\t}\n\t\t*/\n\t}", "public MonetaryAmount getTotalVat() {\n\t\treturn this.totalVat;\n\t}", "public int countKO(Submodel m)\n {\n int cnt = 0;\n IntArrayList vars = m.getVars();\n for(int x=0; x < vars.size(); x++)\n {\n VariableNode vn = _fg.getVarNode(vars.get(x));\n if(vn.isType(NodeType.KO))\n {\n cnt++;\n }\n }\n\n return cnt;\n }", "int getFaintedPokemonCount();", "public final int mo248a() {\n if (this.f11586a != null) {\n return this.f11586a.size();\n }\n return 0;\n }", "int getTotalCaseNumbers();", "public int getNumAyuAtracc();", "public static int cvvLength(CardBrand card) {\n if (card == null || card == CardBrand.unknown || card == CardBrand.americanExpress) {\n return 4;\n }\n else {\n return 3;\n }\n }", "public int getPesoV() \r\n\t\t{\r\n\t\t\treturn PesoV;\r\n\t\t}", "public boolean isVampire(int i, int a1000, int a100, int a10, int a1) {\n boolean[] vars = new boolean[12];\n vars[0] = (a1000 * 10 + a100) * (a10 * 10 + a1) == i;\n vars[1] = (a1000 * 10 + a100) * (a10 + a1 * 10) == i;\n vars[2] = (a1000 + a100 * 10) * (a10 * 10 + a1) == i;\n vars[3] = (a1000 + a100 * 10) * (a10 + a1 * 10) == i;\n vars[4] = (a1000 * 10 + a10) * (a100 * 10 + a1) == i;\n vars[5] = (a1000 * 10 + a10) * (a100 + a1 * 10) == i;\n vars[6] = (a1000 + a10 * 10) * (a100 * 10 + a1) == i;\n vars[7] = (a1000 + a10 * 10) * (a100 + a1 * 10) == i;\n vars[8] = (a1000 * 10 + a1) * (a100 * 10 + a10) == i;\n vars[9] = (a1000 + a1 * 10) * (a100 * 10 + a10) == i;\n vars[10] = (a1000 * 10 + a1) * (a100 + a10 * 10) == i;\n vars[11] = (a1000 + a1 * 10) * (a100 + a10 * 10) == i;\n for (int j = 0; j < vars.length; j++) {\n if (vars[j] == true) {\n return true;\n }\n }\n return false;\n }", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "@Override\r\n\tpublic int myteamsonCount(Long userid, Long sessionid) {\n\t\treturn userCustomerMapper.myteamsonCount( userid, sessionid);\r\n\t}", "@Override\r\n\tpublic Float countmomey(int prpaycode) {\n\t\treturn this.session.selectOne(\"com.icss.dao.PayRecordMapper.countmomey\",prpaycode);\r\n\t}", "public int q1() {\n\t\tSet<String> nacionalidade = jogadores.stream()\n\t\t\t\t.map(x->x.getNationality())\n\t\t\t\t.collect(Collectors.toSet());\n\n\t\treturn nacionalidade.size();\n\n\t}", "public Integer getQtVoos()\n {\n return this.qtVoos;\n }", "private int countPermuation(int n, int m){\n\t\tint res = 1;\n\t\tfor(int i = n - m + 1; i <= n; i++){\n\t\t\tres *= i;\n\t\t}\n\t\treturn res;\n\t}", "int getCustomerCount(CustomerVo vo);", "private static int count(int S[], int m, int n) {\n // If n is o then there is 1 solution\n if (n == 0 ) return 1;\n // If n is less than 0 then no solution exists\n if (n < 0 ) return 0;\n // If there are no coins and n >= 0, then no solution exists\n if (m <= 0 && n >= 1) return 0;\n\n // Count is sum of solution that do not contain mth coin && contain at least one coin mth.\n // Including S[m-1] && excluding S[m-1]\n return count(S, m-1, n) + count(S, m, n-S[m-1]);\n }", "private static long vratiBodovaViseOd25(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getPoints() > 25)\n\t\t\t\t\t\t.count();\n\t}", "static int size_of_cz(String passed){\n\t\treturn 3;\n\t}", "public int getCantidadAvenidas();", "public int contenuto(Casella cas)\n { return contenutoCaselle[cas.riga][cas.colonna]; }", "int countPowertypeRanges();", "public static int animals(int tavuk, int inek, int keci){\n\t \n\t int sum=inek*4+tavuk*2+keci*4;\n\t \n\t return sum;\n\n\t}", "@Override\n\tpublic int countCase() {\n\t\treturn proSystemHeadMapper.selectCountCase()+proMultiMapper.selectCountMul()+proAppMapper.selectCountApp()+proItMapper.selectCountIt();\n\t}", "public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }", "public int getWMC(){\r\n\t\t \r\n\t\treturn mccabe.getWMC();\t\t\r\n\t}", "public static int calculateOpjectiveFunction(char[][] matrix ) {\n\n\n\n return (int)countNumberOfEmptyPosition(matrix)+countNmberOfCameras( matrix); \n\n}", "private static String mensagemProvavel(String nuvemVista[]) {\n\t\tString padraoClimas[][] = {\r\n\t\t\t\t{\"tempestade\", \"1\", \"1\", \"1\", \"1\", \"1\"},\r\n\t\t\t\t{\"chuva\",\t \"1\", \"0\", \"1\", \"0\", \"0\"},\r\n\t\t\t\t{\"nublado\",\t \"0\", \"1\", \"0\", \"1\", \"0\"},\r\n\t\t\t\t{\"sol\", \t \"0\", \"0\", \"0\", \"0\", \"1\"}\r\n\t\t};\r\n\t\t\r\n\t\tint iguais[][] = new int[padraoClimas.length][1];\r\n\t\t\r\n\t\t// Realiza comparação das nuvens \"vistas\" com os padroes de nuvens e contaquantas igualdades em cada clima padrao\r\n\t\tfor(int i = 0; i < padraoClimas.length; i++) {\r\n\t\t\tfor(int x = 1; x < padraoClimas[i].length; x++) {\r\n\t\t\t\tif(padraoClimas[i][x] == nuvemVista[x-1]) {\r\n\t\t\t\t\tiguais[i][0]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint maiorIgualdade = iguais[0][0];\r\n\t\tString clima = padraoClimas[0][0];\r\n\t\t\r\n\t\t// Checa qual dos climas tem maior igualdades e define o clima\r\n\t\tfor(int l = 0; l < iguais.length; l++) {\r\n\t\t\tif(iguais[l][0] == 5) {\r\n\t\t\t\tclima = padraoClimas[l][0];\r\n\t\t\t} else if (iguais[l][0] > maiorIgualdade) {\r\n\t\t\t\tmaiorIgualdade = iguais[l][0];\r\n\t\t\t\tclima = padraoClimas[l][0];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn clima;\r\n\t}", "public int getKMSelanjutnya(){\n\t\treturn (getDistance() - N * 1000) * costPerKm / 1000;\n\t}", "public int length(int v, int w) throws java.lang.NullPointerException, java.lang.IndexOutOfBoundsException \n\t {\n\t\t if(null==mGraph) throw new java.lang.NullPointerException(\"Null graph in SAP\");\n\t\t if ( (v<0 || v >= mGraph.V()) || (w<0 || w >= mGraph.V()) ) throw new java.lang.IndexOutOfBoundsException(\"index out of band\");\n\t\t \n\t\t Bag<Integer> vBag = new Bag<Integer>();\n\t\t Bag<Integer> wBag = new Bag<Integer>();\n\t\t vBag.add(v);\n\t\t wBag.add(w);\n\t\t return getAncestors(vBag,wBag).mDistance;\n\t }", "public int getVdusCount() {\n return vdus_.size();\n }", "public short getVnom() {\n return vnom;\n }", "private String getVerticalLevelUnits(String gVCord) {\n\n String tmp = gVCord.toUpperCase();\n if (tmp.compareTo(\"PRES\") == 0) {\n return \"MB\";\n }\n if (tmp.compareTo(\"THTA\") == 0) {\n return \"K \";\n }\n if (tmp.compareTo(\"HGHT\") == 0) {\n return \"M \";\n }\n if (tmp.compareTo(\"SGMA\") == 0) {\n return \"SG\";\n }\n if (tmp.compareTo(\"DPTH\") == 0) {\n return \"M \";\n }\n return \"\";\n }", "public static void viewRemainingVaccinations() {\n\r\n System.out.println(\"Number of remaining vaccinations - \" + vaccines);\r\n }", "private int numberOfCritters(int wave){\n\t\treturn 9 + (wave%3)*6;\n\t}" ]
[ "0.5994312", "0.5492461", "0.53163046", "0.52420413", "0.5155303", "0.5150843", "0.5140785", "0.5126202", "0.5120457", "0.51097614", "0.5075221", "0.5057516", "0.50278074", "0.50265956", "0.49671027", "0.4958778", "0.49517542", "0.49371007", "0.490267", "0.49023536", "0.48111945", "0.48108897", "0.48093742", "0.48043796", "0.47976768", "0.47967702", "0.4784758", "0.4771838", "0.47715232", "0.47493976", "0.47489008", "0.47432193", "0.4735673", "0.47261372", "0.47225863", "0.47166055", "0.47154287", "0.4708827", "0.47003153", "0.4697548", "0.46904978", "0.4686144", "0.466642", "0.46498793", "0.464935", "0.46340394", "0.46322355", "0.46308815", "0.46286985", "0.46248367", "0.46178395", "0.46151173", "0.46141443", "0.4613859", "0.46040273", "0.46000075", "0.45850867", "0.4582915", "0.45791516", "0.457525", "0.45716476", "0.4568025", "0.45645922", "0.4564023", "0.4561256", "0.4559608", "0.45584053", "0.45578778", "0.45576593", "0.4554683", "0.4549069", "0.45390856", "0.4538858", "0.45345047", "0.45287746", "0.45272845", "0.4522034", "0.45175582", "0.45078716", "0.4504138", "0.45027664", "0.45003816", "0.4495691", "0.4494492", "0.44933367", "0.44895732", "0.4488428", "0.448519", "0.4479098", "0.44778237", "0.44719148", "0.4469099", "0.4468766", "0.44678864", "0.44629142", "0.4460951", "0.44582096", "0.4456483", "0.4455165", "0.445499" ]
0.6936647
0
Returns the phat vay where soKU = &63; or throws a NoSuchPhatVayException if it could not be found.
@Override public PhatVay findBySoKU(String soKU) throws NoSuchPhatVayException { PhatVay phatVay = fetchBySoKU(soKU); if (phatVay == null) { StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("soKU="); msg.append(soKU); msg.append("}"); if (_log.isDebugEnabled()) { _log.debug(msg.toString()); } throw new NoSuchPhatVayException(msg.toString()); } return phatVay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(long phatVayId)\n\t\tthrows NoSuchPhatVayException {\n\n\t\treturn findByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay removeBySoKU(String soKU) throws NoSuchPhatVayException {\n\t\tPhatVay phatVay = findBySoKU(soKU);\n\n\t\treturn remove(phatVay);\n\t}", "@Override\n\tpublic PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = finderCache.getResult(\n\t\t\t\t_finderPathFetchBySoKU, finderArgs, this);\n\t\t}\n\n\t\tif (result instanceof PhatVay) {\n\t\t\tPhatVay phatVay = (PhatVay)result;\n\n\t\t\tif (!Objects.equals(soKU, phatVay.getSoKU())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tList<PhatVay> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t\t_finderPathFetchBySoKU, finderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (list.size() > 1) {\n\t\t\t\t\t\tCollections.sort(list, Collections.reverseOrder());\n\n\t\t\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\t\"PhatVayPersistenceImpl.fetchBySoKU(String, boolean) with parameters (\" +\n\t\t\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPhatVay phatVay = list.get(0);\n\n\t\t\t\t\tresult = phatVay;\n\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(_finderPathFetchBySoKU, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (PhatVay)result;\n\t\t}\n\t}", "@Override\n\tpublic PhatVay remove(long phatVayId) throws NoSuchPhatVayException {\n\t\treturn remove((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy getVanBanPhapQuy(long id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBanPhapQuy(id);\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public V psyGet(final K oKey)\n\t\tthrows PsyRangeCheckException, PsyUndefinedException;", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public IPV getPV(){\n return pvMap.get(IPVWidgetModel.PROP_PVNAME);\n }", "public nc.vo.crd.bd.interf.zyhtvo.ZyhtVO getZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public KlijentPovezanaOsobaRs procitajSvePovezaneOsobePOVIJEST(KlijentPovezanaOsobaVo value) {\r\n return null;\r\n }", "public VotoPregunta findVoto(Usuario user, Pregunta pregunta);", "@Override\n @Nullable\n public UldECKey findKeyFromPubHash(byte[] pubkeyHash) {\n return null;\n }", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public Double findByTonkhoKhoaMalienketHienTai(String malk, Integer khoaMaso) {\n //System.out.println(\"-----findByTonkhoKhoaMalienketHienTai()-----\");\n String sql = \"select t.tonkho_ton from v_tonkho_khoa_hientai t where t.dmkhoa_maso = \" + khoaMaso +\" and tonkho_malienket = '\"+malk+\"'\";\n Query q = getEm().createNativeQuery(sql);\n try {\n Double tondauky = new Double(((BigDecimal)q.getSingleResult()).doubleValue());\n return tondauky;\n } catch (Exception ex) {\n System.out.println(\"Error findByTonkhoKhoaMalienketHienTai: \" + ex.toString());\n }\n return 0.0;\n }", "public Storageplace getStorageplace(int storageplaceKey){\r\n\t\t List<Storageplace> storageplaces = getAll();\r\n\t for(Storageplace storageplace: storageplaces){\r\n\t if(storageplace.getStorageplaceKey() == storageplaceKey){\r\n\t return storageplace;\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }", "public V find (K key) throws KeyNotFoundException {\n\t\treturn findKey(root, key);\n\t}", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "VectorArray getPhsAHar();", "public Pais getByIdPais(Integer id);", "VectorArray getPhsBHar();", "public PublicKey getSignatory (Message m) {\n Logger.write(\"VERBOSE\", \"DB\", \"getSignatory(...)\");\n try {\n ResultSet keys = query(DBStrings.getAllKeys);\n while (keys.next())\n if (Crypto.verifySig(m, Crypto.decodeKey(keys.getString(\"key\"))))\n return Crypto.decodeKey(keys.getString(\"key\"));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n Logger.write(\"WARNING\", \"DB\", \"getSignatory() could not find signatory\");\n return null;\n }", "Vertex findVertex(char v) {\r\n\t\tfor (int i = 0; i < vertices.size(); i++) {\r\n\t\t\tif (vertices.get(i).label == v)\r\n\t\t\t\treturn vertices.get(i);\r\n\t\t}\r\n\t\treturn null; // return null if not found.\r\n\t}", "public static WebElement lnk_clickUnvPPSPD() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.xpath(\"(//*[@id='unverifpparea']//dt//a)[position()=1]\"));\r\n \t\tAdd_Log.info(\"Unverified PP SPD is click on the page.\");\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Unverified PP SPD is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }", "public WellSetPOJOBigDecimal get(int index) {\n return this.wellsets.get(index);\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public ThongTinViecLamBean GetThongTinViecLam(int maSinhVien) throws ClassNotFoundException, SQLException {\r\n\t\tThongTinViecLamBean vl = null;\r\n\t\tConnectDB connectDB = new ConnectDB();\r\n\t\tconnectDB.Connect();\r\n\t\t\r\n\t\tString query = \"SELECT * FROM ThongTinViecLam WHERE MaSinhVien = ?\";\r\n\t\tResultSet resultSet = connectDB.executeQuery(query, new Object[] { maSinhVien });\r\n\t\tif (resultSet.next()) {\r\n\t\t\tvl = new ThongTinViecLamBean();\r\n\t\t\tvl.setDiaChiCoQuan(resultSet.getString(\"DiaChiCoQuan\"));\r\n\t\t\tvl.setLoaiHinhCoQuan(resultSet.getInt(\"LoaiHinhCoQuan\"));\r\n\t\t\tvl.setMucDoDapUngKienThuc(resultSet.getString(\"MucDoDapUngKTCM\"));\r\n\t\t\tvl.setMucDoPhuHopChuyenMon(resultSet.getString(\"MucDoPhuHopChuyenMon\"));\r\n\t\t\tvl.setMucThuNhapTBThang(resultSet.getLong(\"MucThuNhapTBThang\"));\r\n\t\t\tvl.setTenCongViec(resultSet.getString(\"TenCongViec\"));\r\n\t\t\tvl.setTenCoQuan(resultSet.getString(\"TenCoQuan\"));\r\n\t\t\tvl.setThoiGianBatDauLamViec(resultSet.getDate(\"ThoiGianBatDauLamViec\").toLocalDate());\r\n\t\t\tvl.setViTriCongTac(resultSet.getString(\"ViTriCongTac\"));\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tconnectDB.Disconnect();\r\n\t\treturn vl;\r\n\t}", "@Override\n\tpublic int countBySoKU(String soKU) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountBySoKU;\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public IPV getPV(String pvPropId){\n return pvMap.get(pvPropId);\n }", "Videogioco findVideogiocoById(int id);", "public double getIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public V search(K key) throws KeyNotFoundException {\n\tif (!RBT.containsKey(key))\n\t throw new KeyNotFoundException();\n return (V) RBT.get(key);\n }", "@Override\n\tpublic Act3370102 findOneByKyBaoCao(String kyBaoCao) {\n\t\treturn act3370102Repo.findOneByKy(kyBaoCao);\n\t}", "private double energyAt(Integer jValueToFind, boolean isPlusParity) throws NoSuchEnergyException\r\n\t{\r\n\t\tif (isPlusParity) {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tfor (Map.Entry<Integer, Double> entry : energiesForCurrentK.entrySet()) {\r\n\t\t\t\t\tif (entry.getKey() == jValueToFind) {\r\n\t\t\t\t\t\treturn entry.getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (energiesForCurrentKOppParity == null) {\r\n\t\t\t\t\tthrow new NoSuchEnergyException(\"There is no opposite parity for k=\" + currentK);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (Map.Entry<Integer, Double> entry : energiesForCurrentKOppParity.entrySet()) {\r\n\t\t\t\t\tif (entry.getKey() == jValueToFind) {\r\n\t\t\t\t\t\treturn entry.getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (currentK < 0) {\r\n\t\t\t\tfor (Map.Entry<Integer, Double> entry : energiesForCurrentK.entrySet()) {\r\n\t\t\t\t\tif (entry.getKey() == jValueToFind) {\r\n\t\t\t\t\t\treturn entry.getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (energiesForCurrentKOppParity == null) {\r\n\t\t\t\t\tthrow new NoSuchEnergyException(\"There is no opposite parity for k=\" + currentK);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (Map.Entry<Integer, Double> entry : energiesForCurrentKOppParity.entrySet()) {\r\n\t\t\t\t\tif (entry.getKey() == jValueToFind) {\r\n\t\t\t\t\t\treturn entry.getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthrow new NoSuchEnergyException(\"Could not find the requested energy with J=\" + jValueToFind);\r\n\t}", "protected Point hooverPoint(Point p) {\n\t\tif (p == null)\n\t\t\treturn null;\n\n\t\t// De geldige punten zoeken.\n\t\tVector<Point> temp = selectionTool.searchControlPoint(p);\n\t\tif (temp != null && temp.size() > 0) {\n\t\t\tfor (int i = 0; i < temp.size(); ++i) {\n\t\t\t\thooveredPoints.add(temp.elementAt(i));\n\n\t\t\t\t// Per gevonden inputpunt de daaraan verbonden curves zoeken en\n\t\t\t\t// hooveren indien dat al niet het geval was.\n\t\t\t\tCurve temp2 = selectionTool.searchCurvesByControlPoint(temp\n\t\t\t\t\t\t.elementAt(i));\n\t\t\t\tif (temp2 != null) {\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (int k = 0; k < hooveredCurves.size(); ++k) {\n\t\t\t\t\t\tif (hooveredCurves.elementAt(k).equals(temp2))\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!found)\n\t\t\t\t\t\thooveredCurves.add(temp2);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Het eerste gevonden punt teruggeven, dat kan dan bvb. gebruikt\n\t\t\t// worden om uit te tekenen.\n\t\t\treturn temp.elementAt(0);\n\t\t} else\n\t\t\treturn null;\n\t}", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "String getVorlesungKennung();", "@Override\n\tpublic PhatVay create(long phatVayId) {\n\t\tPhatVay phatVay = new PhatVayImpl();\n\n\t\tphatVay.setNew(true);\n\t\tphatVay.setPrimaryKey(phatVayId);\n\n\t\tphatVay.setCompanyId(companyProvider.getCompanyId());\n\n\t\treturn phatVay;\n\t}", "public TreeMap<Integer, ArrayList<Vihu>> getVihut() {\n return viholliset;\n }", "public org.landxml.schema.landXML11.Station xgetIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n return target;\r\n }\r\n }", "public int indexOf(K gesucht) {\r\n \r\n \t\tfor (int i=0;i<data.length;i++) {\r\n \t\t\tif(data[i] != null) { \r\n \t\t\t\tif(data[i].getKey().equals(gesucht)) { \r\n \t\t\t\t\treturn i;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn -1;\r\n \r\n \t}", "@Override\r\n\tpublic int locsearch(FoodshopVO vo) {\n\t\treturn 0;\r\n\t}", "public DanhSachThanhVien getObjDSThanhVien() {\n\t\treturn objDSThanhVien;\n\t}", "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic IProcedure getProcedure(String instanceId) throws NoSuchProcedure\n\t{\n\t\treturn m_models.getProcedure(instanceId);\n\t}", "private Payee identifyPayee(Integer hpay) {\n\t\tif (hpay != null) {\n\t\t\tPayee p = this.payeeMap.get(Long.valueOf(hpay));\n\t\t\tif (p == null) {\n\t\t\t\tp = this.noPayee;\n\t\t\t}\n\t\t\treturn p;\n\t\t}\n\t\telse {\n\t\t\treturn this.noPayee;\n\t\t}\n\t}", "public static BrowseIndex getBrowseIndex(SortOption so) throws BrowseException {\n for (BrowseIndex bix : BrowseIndex.getBrowseIndices()) {\n if (bix.getSortOption() == so) {\n return bix;\n }\n }\n\n return null;\n }", "@Nullable IStrongSlot find(LuaValue key);", "public String getVirtualSearchKey();", "public static Optional<Integer> getNidForVUID(long vuID) {\n\t\tIndexServiceBI si = LookupService.get().getService(IndexServiceBI.class, \"sememe indexer\");\n\t\tif (si != null) {\n\t\t\t//force the prefix algorithm, and add a trailing space - quickest way to do an exact-match type of search\n\t\t\tList<SearchResult> result = si.query(vuID + \" \", true,\n\t\t\t\t\tnew Integer[] {MetaData.VUID.getConceptSequence()}, 5, Long.MAX_VALUE, null);\n\t\t\tif (result.size() > 0) {\n\t\t\t\treturn Optional.of(Get.sememeService().getSememe(result.get(0).getNid()).getReferencedComponentNid());\n\t\t\t}\n\t\t} else {\n\t\t\tfinal String msg = \"Sememe Index not available - can't lookup VUID \" + vuID;\n\t\t\tlog.error(msg);\n\t\t\tthrow new RuntimeException(msg);\n\t\t}\n\t\treturn Optional.empty();\n\t}", "public Vector<V> find(K key)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (int i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If we reach an empty slot, we know the key isn't in the table\r\n\t\t\tif (table[index] == null)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t// If we find the key and it isn't a tombstone\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Return the vector of values for that slot\r\n\t\t\t\treturn table[index].value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we've been probing for a long time, the key probably isn't in the\r\n\t\t// table\r\n\t\treturn null;\r\n\t}", "public Veranstaltung get(VeranstaltungKey veranstaltungKey)\n\t\t\tthrows RuntimeException;", "SinglePathwayResults getSinglePathway(SinglePathwaySpecifier sps) throws SearchServiceException;", "@Test\n public void getSecurityPriceTechnicalsVwapTest() throws ApiException, NoSuchMethodException {\n String identifier = null;\n String startDate = null;\n String endDate = null;\n Integer pageSize = null;\n String nextPage = null;\n ApiResponseSecurityVolumeWeightedAveragePrice response = api.getSecurityPriceTechnicalsVwap(identifier, startDate, endDate, pageSize, nextPage);\n\n // TODO: test validations\n }", "public boolean existe(Provincia provincia);", "public NoKD getPai() {\r\n return pai;\r\n }", "public int getZone(int numSommet) throws SommetNonExisteException\t{\r\n \tif(!noeuds.containsKey(numSommet))\r\n \t\tthrow new SommetNonExisteException();\r\n \treturn this.noeuds.get(numSommet).getZone();\r\n }", "E find(KeyType key) {\n int position = findPosKey(key);\n if (mArray[position].state == FHhashQP.ACTIVE) {\n return mArray[findPosKey(key)].data;\n } else {\n throw new NoSuchElementException();\n }\n }", "@WebMethod(operationName = \"getKvadratPovrsina\")\n public int getKvadratPovrsina(@WebParam(name = \"a\") int a) {\n return kvadratSB.getPovrsina(a);\n }", "public Veterinario pesquisarPorCpf(Veterinario veterinario) throws ClassNotFoundException, SQLException{\n List<Veterinario> resp = new VeterinarioDAO().listar(\"cpf = '\"+ veterinario.getCpf() +\"' and ativo = true\");\n for (Veterinario vet : resp){\n return vet;\n }\n return null;\n }", "public static Pesanan getPesanan(int id){\n int besar = PESANAN_DATABASE.size();\n int i= 0;\n int w= 0;\n for(i=0;i<besar;i++){\n if(PESANAN_DATABASE.get(i).getID() == id){\n return PESANAN_DATABASE.get(i);\n }\n }\n return null;\n }", "int getVpotNum();", "public double sirinaStolpca(double wp, double hp) {\n // popravite / dopolnite ...\n return wp/this.podatki.length;\n }", "public String getTUNGAY()\n {\n return this.TUNGAY;\n }", "private Vertice<T> getHermano(Vertice<T> v){\n\tif(v.padre == null)\n\t return null;\n\tif(v.padre.derecho == v){\n\t if(v.padre.izquierdo == null)\n\t\treturn null;\n\t else\n\t\treturn v.padre.izquierdo;\n\t}else{\n\t if(v.padre.derecho == null)\n\t\treturn null;\n\t else\n\t\treturn v.padre.derecho;\n\t}\n }", "public double visinaStolpca(int ixStolpec, double wp, double hp) {\n // popravite / dopolnite ...\n return hp/biggest * podatki[ixStolpec];\n }", "public int index(String klic){\n\t\tint pom = -1;\n\t\tfor(int i = 0;i< pocet;i++){\n\t\t\tif(vrchP[i].klic.equals(klic)){\n\t\t\t\tpom = i;\n\t\t\t}\n\t\t}\t\n\treturn pom;\n\t}", "@Override\n\tpublic double ChuVi() {\n\n\t\treturn (banKinh*2*P);\n\t}", "@SuppressWarnings(\"static-access\")\n\tpublic Envelope getEnvelopeProvincie() {\n\n\t\ttry {\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) getViewer()\n\t\t\t\t\t.getConfiguration().getContext().getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\n\t\t\treturn GeometryUtils.getEnvelope(provincie.getGeom());\n\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Can not search Provincie.\", e);\n\t\t}\n\t\treturn null;\n\t}", "Optional<V> lookup(K k);", "public static org.oep.cmon.dao.qlhc.model.ChucVu2VaiTro fetchByPrimaryKey(\n\t\tlong id) throws com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().fetchByPrimaryKey(id);\n\t}", "private MatOfPoint2f findTriangle(Frame frame) {\n\t\t// Get all contours from frame.\n\t\tList<MatOfPoint> contours = frame.sortedContours();\n\t\t\n\t\t// Prepare vehicle and approx holder variable.\n\t\tMatOfPoint2f approx, vehicle = null;\n\t\t\n\t\t// Loop through all the found contours.\n\t\tfor (MatOfPoint contour: contours) {\n\t\t\t// Approximate the contour poly.\n\t\t\tapprox = frame.approximate(contour);\n\t\t\t\n\t\t\t// Check if approximate found and has 3 points.\n\t\t\tif (approx != null && approx.total() == 3) {\n\t\t\t\t// Save approximate and break out.\n\t\t\t\tvehicle = approx;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Return the found vehicle.\n\t\treturn vehicle;\n\t}", "int tinhSoNgay() {\n return soNgay;\n }", "String getPais();", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy updateVanBanPhapQuy(\n\t\tcom.dtt.portal.dao.vbpq.model.VanBanPhapQuy vanBanPhapQuy)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.updateVanBanPhapQuy(vanBanPhapQuy);\n\t}", "public Pais findById(int id) throws NoResultException {\r\n return EM.createNamedQuery(Pais.FIND_BY_ID, Pais.class)\r\n .setParameter(\"p2\", id)\r\n .setParameter(\"p3\", Estados.ACTIVO)\r\n .getSingleResult();\r\n }", "public void setTUNGAY( String TUNGAY )\n {\n this.TUNGAY = TUNGAY;\n }", "private void handleSearchPoiResult(MKPoiResult mkPoiResult) {\n if (mkPoiResult.getCurrentNumPois() > 0) {\n // Display all the poi points\n SearchPoiOverlay overlay = new SearchPoiOverlay(getActivity(),\n mMapView, mSearch);\n overlay.setData(mkPoiResult.getAllPoi());\n Bundle bundle = new Bundle();\n bundle.putString(CheckinActivity.KEY_POI_PROVINCE, mProvince);\n overlay.setExtra(bundle);\n // Clear old overlays and add new\n mMapView.getOverlays().clear();\n mMapView.getOverlays().add(overlay);\n mMapView.refresh();\n\n // Move to the first not null info\n List<MKPoiInfo> infoList = mkPoiResult.getAllPoi();\n for (MKPoiInfo info : infoList) {\n // info.pt is null when info.ePoiType == 2 or 4\n if (info.pt != null) {\n mMapView.getController().animateTo(info.pt);\n break;\n }\n }\n// // The typed poi is found in other cities rather than this\n } else if (mkPoiResult.getCityListNum() > 0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Found in \");\n for (int i = 0, sz = mkPoiResult.getCityListNum(); i < sz; i++) {\n sb.append(mkPoiResult.getCityListInfo(i).city);\n sb.append(\" \");\n }\n // TODO: make it more elegant\n Toast.makeText(getActivity(), sb.toString(), Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\tpublic <S extends Translator> Optional<S> findOne(Example<S> example) {\n\t\treturn null;\n\t}", "public org.landxml.schema.landXML11.Station xgetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n return target;\r\n }\r\n }", "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public baconhep.TTau.Builder setPuppiChHadIso(float value) {\n validate(fields()[17], value);\n this.puppiChHadIso = value;\n fieldSetFlags()[17] = true;\n return this; \n }", "private SolmuKaksiKolme succSolmu2(SolmuKaksiKolme s) {\n //seuraaja ei tarpeen\n if (s.getOikea() == null) {\n return null;\n }\n\n SolmuKaksiKolme it = s.getOikea();\n\n while (it.getVasen() != null) {\n it = it.getVasen();\n }\n return it;\n }", "public Vertex find(Vertex v) {\n\n // if the given vertex is its own root, return the vertex\n if(v.getRoot().equals(v)){\n return v;\n }\n\n // loop on the path of given root, find the sentinel node\n Vertex curr = v.getRoot();\n while(!curr.getRoot().equals(curr)){\n curr = curr.getRoot();\n }\n\n return curr;\n }", "@Override\n\tpublic vip selectByphone(String phonum) {\n\t\treturn this.vd.selectByphone(phonum);\n\t}", "public static PohonAVL sisipkanTinggiSeimbang (int n, PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n \n if(p == null) return (new PohonAVL(n));\n \n if(n < p.nilai) {\n p.kiri = sisipkanTinggiSeimbang(n, p.kiri);\n }\n else if(n > p.nilai) p.kanan = sisipkanTinggiSeimbang(n, p.kanan);\n else return p;\n \n }", "public String suaTaiKhoan(){\n\t\ttaiKhoanDao.suaTaiKhoan(ttCaNhan);\r\n\t\t\r\n\t\t//kiem tra quyen dang nhap\r\n\t\tint kt=kiemTraquyenDN();\r\n\t\tif(kt==1){\r\n\t\t\treturn \"QLTaiKhoan_Admin?faces-redirect=true\";\r\n\t\t}else if(kt==3){\r\n\t\t\treturn \"QLTaiKhoan_NV?faces-redirect=true\";\r\n\t\t}else{\r\n\t\t\treturn \"QLTaiKhoan_NVDH?faces-redirect=true\";\r\n\t\t}\r\n\t}", "Option<AcHost> findByKey(String key) throws Throwable;", "Vehiculo findVehiculoById(long vehiculo_id) throws BusinessException;", "public native vector kbGetTownLocation();", "private int existPointV(String nomAgence) { //retourner le rang de l'elemnt s'il existe -1 sinon\n\t\tfor (int i=0;i<pointV.size();i++) {if (pointV.get(i).getNomAgence().equals(nomAgence)) return i;} //point de vente existe\n\t\treturn -1;\n\t\t}", "public Hoppy getHoppyByHoppyId(Long hoppyId) throws DataAccessException;" ]
[ "0.672448", "0.6466496", "0.6141359", "0.6073247", "0.5509094", "0.5119484", "0.49660045", "0.48823902", "0.46966633", "0.46280023", "0.456892", "0.4565255", "0.44690672", "0.44576705", "0.4421474", "0.4421474", "0.43668908", "0.43413326", "0.43343136", "0.43313697", "0.4320696", "0.43138328", "0.43026146", "0.42817542", "0.42525783", "0.42381555", "0.42200112", "0.4213129", "0.42113894", "0.4202958", "0.41981328", "0.4196172", "0.41881686", "0.41854662", "0.41841498", "0.41609293", "0.4148741", "0.4137536", "0.4130082", "0.41250518", "0.41229466", "0.41216162", "0.40971375", "0.40963024", "0.4090458", "0.40689585", "0.40661857", "0.4064749", "0.40611163", "0.40511942", "0.4049167", "0.4047721", "0.40399304", "0.403677", "0.40344992", "0.4031642", "0.4021312", "0.4018853", "0.40085912", "0.4008067", "0.4007053", "0.39891192", "0.39862886", "0.39722103", "0.39639452", "0.39499572", "0.39430687", "0.39390686", "0.39386258", "0.39354432", "0.39353287", "0.3934031", "0.3926526", "0.39265114", "0.3909435", "0.39089748", "0.39065313", "0.38959408", "0.38892207", "0.38888913", "0.3888849", "0.3886985", "0.38863686", "0.3884352", "0.3883364", "0.38802227", "0.3874944", "0.38713077", "0.38698092", "0.38684535", "0.38666737", "0.3865491", "0.38646388", "0.3863242", "0.385095", "0.38509223", "0.38470593", "0.384379", "0.38404903", "0.38367322" ]
0.6927638
0
Returns the phat vay where soKU = &63; or returns null if it could not be found. Uses the finder cache.
@Override public PhatVay fetchBySoKU(String soKU) { return fetchBySoKU(soKU, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = finderCache.getResult(\n\t\t\t\t_finderPathFetchBySoKU, finderArgs, this);\n\t\t}\n\n\t\tif (result instanceof PhatVay) {\n\t\t\tPhatVay phatVay = (PhatVay)result;\n\n\t\t\tif (!Objects.equals(soKU, phatVay.getSoKU())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tList<PhatVay> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t\t_finderPathFetchBySoKU, finderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (list.size() > 1) {\n\t\t\t\t\t\tCollections.sort(list, Collections.reverseOrder());\n\n\t\t\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\t\"PhatVayPersistenceImpl.fetchBySoKU(String, boolean) with parameters (\" +\n\t\t\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPhatVay phatVay = list.get(0);\n\n\t\t\t\t\tresult = phatVay;\n\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(_finderPathFetchBySoKU, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (PhatVay)result;\n\t\t}\n\t}", "@Override\n\tpublic Act3370102 findOneByKyBaoCao(String kyBaoCao) {\n\t\treturn act3370102Repo.findOneByKy(kyBaoCao);\n\t}", "public String search(int k)\r\n\t {\r\n\t\tIAVLNode curr = searchFor(this.root, k);\r\n\t\tif(curr.isRealNode()==false)\r\n\t\t\treturn null;\r\n\t\treturn curr.getValue();\r\n\t }", "public V find(K k) {\r\n int i = h(k);\r\n int z = i;\r\n int j = 0;\r\n while ((K)htable[i].key() != k) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n while (htable[i] == null) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n }\r\n }\r\n return (V)htable[i].value();\r\n }", "@Override\n\tpublic int countBySoKU(String soKU) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountBySoKU;\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic PhatVay findBySoKU(String soKU) throws NoSuchPhatVayException {\n\t\tPhatVay phatVay = fetchBySoKU(soKU);\n\n\t\tif (phatVay == null) {\n\t\t\tStringBundler msg = new StringBundler(4);\n\n\t\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\t\tmsg.append(\"soKU=\");\n\t\t\tmsg.append(soKU);\n\n\t\t\tmsg.append(\"}\");\n\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(msg.toString());\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t\t}\n\n\t\treturn phatVay;\n\t}", "public Vector<V> find(K key)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (int i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If we reach an empty slot, we know the key isn't in the table\r\n\t\t\tif (table[index] == null)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t// If we find the key and it isn't a tombstone\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Return the vector of values for that slot\r\n\t\t\t\treturn table[index].value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we've been probing for a long time, the key probably isn't in the\r\n\t\t// table\r\n\t\treturn null;\r\n\t}", "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String search(int k)\r\n\t {\r\n\t\t WAVLNode currentNode = this.root;\r\n\t\t while(currentNode.isInnerNode())\r\n\t\t {\r\n\t\t\t if(currentNode.getKey() == k)\r\n\t\t\t {\r\n\t\t\t\t return currentNode.getValue();\r\n\t\t\t }\r\n\t\t\t else if(currentNode.getKey() > k)\r\n\t\t\t {\r\n\t\t\t\t currentNode = currentNode.getLeft();\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t currentNode = currentNode.getRight();\r\n\t\t\t }\r\n\t\t }\r\n\t\t return null;\r\n\t }", "private Document findInCache(String userId) {\n\t\tString key;\n\t\tSet<String> keys = cache.keySet();\n\t\tIterator<String> itr = keys.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tkey = itr.next();\n\t\t\tDocument data = cache.get(key);\n\t\t\t// check if email in profile object is same as input userId\n\t\t\tString email = \"\";\n\t\t\ttry {\n\t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n\t\t\t} catch (XMLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// cache hit\n\t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n\t\t\t\treturn data;\n\t\t\t}\n\t\t}\n\t\t// Cache miss\n\t\treturn null;\n\t}", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private SolmuKaksiKolme succSolmu2(SolmuKaksiKolme s) {\n //seuraaja ei tarpeen\n if (s.getOikea() == null) {\n return null;\n }\n\n SolmuKaksiKolme it = s.getOikea();\n\n while (it.getVasen() != null) {\n it = it.getVasen();\n }\n return it;\n }", "public Optional<V> lookup(K k) {\n if (this.bst.lookup(new KVPairof<>(k, null)).isPresent()) {\n return Optional.of(this.bst.lookup(new KVPairof<>(k, null)).get().right);\n } else {\n return Optional.empty();\n }\n }", "public V find (K key) throws KeyNotFoundException {\n\t\treturn findKey(root, key);\n\t}", "private Document findInCache(String userId) {\n \t\tString key;\n \t\tSet<String> keys = lruCache.getKeySet();\n \t\tIterator<String> itr = keys.iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tkey = itr.next();\n \t\t\tDocument data = lruCache.get(key);\n \t\t\t// check if email in profile object is same as input userId\n \t\t\tString email = \"\";\n \t\t\ttry {\n \t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n \t\t\t} catch (XMLException e) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// cache hit\n \t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n \t\t\t\treturn data;\n \t\t\t}\n \t\t}\n \t\t// Cache miss\n \t\treturn null;\n \t}", "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "public Value find(Value key) {\n\t\tValue v = get(key);\n\t\tif (v != null)\n\t\t\treturn v;\n\t\tif (parent != null)\n\t\t\treturn parent.find(key);\n\t\treturn null;\n\t}", "public Storageplace getStorageplace(int storageplaceKey){\r\n\t\t List<Storageplace> storageplaces = getAll();\r\n\t for(Storageplace storageplace: storageplaces){\r\n\t if(storageplace.getStorageplaceKey() == storageplaceKey){\r\n\t return storageplace;\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }", "@Override\n\tpublic PhatVay removeBySoKU(String soKU) throws NoSuchPhatVayException {\n\t\tPhatVay phatVay = findBySoKU(soKU);\n\n\t\treturn remove(phatVay);\n\t}", "Optional<V> lookup(K k);", "GameObject findSeaweed(){\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Seaweed)return g;\r\n\t\t}\r\n\treturn nullSeaweed;\r\n\t}", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "@Override\r\n\tpublic String findpsw(String username) {\n\t\treturn null;\r\n\t}", "private ILocation GetWarp(IPlayer owner, String name)\r\n\t{\r\n\t\tString key = cacheKey(owner, name);\r\n\t\tILocation location = cache.Cache(key);\r\n\t\tif (location != null)\r\n\t\t\treturn location;\r\n\r\n\t\tif (owner == null)\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=1\",\r\n\t\t\t\tname\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=0 AND creator=?\",\r\n\t\t\t\tname, owner\r\n\t\t\t);\r\n\r\n\t\treturn cache.Cache(key, location);\r\n\t}", "public static Object getKeyValue(JSONObject akz_JSONObj, String akzStr_keyValueToFind) {\n\n\t\tArrayList<String> arrayList_jsonTopLevelKeys = new AkZ_KeysFinder().findRootKeys(akz_JSONObj);\n\n\t\tif (arrayList_jsonTopLevelKeys.contains(akzStr_keyValueToFind)) {\n\n\t\t\tif (akz_JSONObj.get(akzStr_keyValueToFind).equals(null))\n\t\t\t\treturn null;\n\n\t\t\ttry {\n\t\t\t\treturn akz_JSONObj.getBoolean(akzStr_keyValueToFind);\n\t\t\t} catch (JSONException e) {\n\t\t\t\ttry {\n\t\t\t\t\treturn akz_JSONObj.getJSONArray(akzStr_keyValueToFind);\n\t\t\t\t} catch (JSONException e2) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn akz_JSONObj.getJSONObject(akzStr_keyValueToFind);\n\t\t\t\t\t} catch (JSONException e3) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn akz_JSONObj.getString(akzStr_keyValueToFind);\n\t\t\t\t\t\t} catch (JSONException e4) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn akz_JSONObj.getDouble(akzStr_keyValueToFind);\n\t\t\t\t\t\t\t} catch (JSONException e5) {\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} // catch(e3)\n\t\t\t\t} // catch(e2)\n\t\t\t} // catch(e1)\n\t\t} // if\n\n\t\t// if we key is not found go deep into JSON.\n\t\telse {\n\t\t\tfor (int intTopLevelKeysIndex = 0; intTopLevelKeysIndex >= arrayList_jsonTopLevelKeys\n\t\t\t\t\t.size(); intTopLevelKeysIndex++) {\n\t\t\t\tString strPresentKey = arrayList_jsonTopLevelKeys.get(intTopLevelKeysIndex);\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject innerJsonObj = akz_JSONObj.getJSONObject(strPresentKey);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObject res = getKeyValue(innerJsonObj, akzStr_keyValueToFind);\n\t\t\t\t\t\tres.equals(null);\n\t\t\t\t\t\treturn res;\n\t\t\t\t\t} catch (NullPointerException n) {\n\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tJSONArray jsonArray = akz_JSONObj.getJSONArray(strPresentKey);\n\n\t\t\t\t\t\tfor (int index = 0; index <= jsonArray.length(); index++) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tJSONObject ObjInsideArray = jsonArray.getJSONObject(index);\n\t\t\t\t\t\t\t\tObject res = getKeyValue(ObjInsideArray, akzStr_keyValueToFind);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tres.equals(null);\n\t\t\t\t\t\t\t\t\treturn res;\n\t\t\t\t\t\t\t\t} catch (NullPointerException n) {\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (JSONException e2) {\n\n\t\t\t\t\t\t\t} // catch(e2)\n\t\t\t\t\t\t} // for\n\t\t\t\t\t} catch (JSONException e1) {\n\n\t\t\t\t\t} // catch(e1)\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn null;\n\n\t}", "public Coordinate findKing (int team) {\n\t\tArrayList<Coordinate> traversal = field.noNullsTraverse();\n\t\tfor(Coordinate kingCord: traversal) {\n\t\t\tPiece maybeKing = field.at(kingCord);\n\t\t\tif(maybeKing.type != KING ) { continue; }\n\t\t\tif(maybeKing.team != team) { continue; }\n\t\t\treturn kingCord;\n\t\t}\n\t\treturn null;\n\t}", "public String find(int key) {\n\t\t//YOUR CODE HERE\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn find(key,root);\n\t}", "@SuppressWarnings(\"unused\")\n public static IParkour getParkour(String name) throws NullPointerException {\n if (name == null) {\n throw new NullPointerException(\"name cannot be null\");\n }\n\n return CacheManager.getParkour(name);\n }", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public Double findByTonkhoKhoaMalienketHienTai(String malk, Integer khoaMaso) {\n //System.out.println(\"-----findByTonkhoKhoaMalienketHienTai()-----\");\n String sql = \"select t.tonkho_ton from v_tonkho_khoa_hientai t where t.dmkhoa_maso = \" + khoaMaso +\" and tonkho_malienket = '\"+malk+\"'\";\n Query q = getEm().createNativeQuery(sql);\n try {\n Double tondauky = new Double(((BigDecimal)q.getSingleResult()).doubleValue());\n return tondauky;\n } catch (Exception ex) {\n System.out.println(\"Error findByTonkhoKhoaMalienketHienTai: \" + ex.toString());\n }\n return 0.0;\n }", "@Nullable IStrongSlot find(LuaValue key);", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "public FileLocation findFile(int k) {\n RemoteMapper rm = findMapper(k);\n FileLocation fl = null;\n try {\n return rm.lookup(k);\n } catch (RemoteException ex) {\n System.err.println(\"Mapper.findFile remote Exception\");\n }\n\n return fl;\n }", "public String search(int k) {\n\t\tif (this.empty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (k == this.root.getKey()) {\n\t\t\treturn this.root.getValue();\n\t\t}\n\t\tif (k > this.root.getKey()) {\n\t\t\tAVLNode rightNode = (AVLNode) this.root.getRight();\n\t\t\treturn rightNode.searchRec(k);\n\t\t} else {\n\t\t\tAVLNode leftNode = (AVLNode) this.root.getLeft();\n\t\t\treturn leftNode.searchRec(k);\n\t\t}\n\t}", "@Override\r\n\tpublic int locsearch(FoodshopVO vo) {\n\t\treturn 0;\r\n\t}", "private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }", "public synchronized V get(K key) throws IOException {\n\t\t\treadIndex();\n\t\t\t\n\t\t\tPair<K, V> pair = seekInternal(key);\n\t\t\tif (pair != null) {\n\t\t\t\treturn pair.value();\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t}", "public V search(K key);", "@Override\n\tpublic V get(K pLlave) {\n\t\tint i = hash(pLlave);\n ArregloDinamico<NodoTabla<K,V>> lista = tablaDeHash[i];\n for(int j=1; j<=lista.size();j++){\n \tif(lista.getElement(j).darLlave().equals(pLlave)){\n \t\treturn (V) lista.getElement(j).darValor();\n \t}\n }\n \treturn null;\n\t}", "public int indexOf(K gesucht) {\r\n \r\n \t\tfor (int i=0;i<data.length;i++) {\r\n \t\t\tif(data[i] != null) { \r\n \t\t\t\tif(data[i].getKey().equals(gesucht)) { \r\n \t\t\t\t\treturn i;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn -1;\r\n \r\n \t}", "public long find(kmer k_mer) {\n long low, mid, high;\n int j, comp;\n low = prefix_ptr[k_mer.prefix];\n if (k_mer.prefix == prefix_ptr.length - 1) {\n high = kmers_num - 1;\n } else {\n high = prefix_ptr[k_mer.prefix + 1] - 1;\n }\n while (low <= high) {\n mid = (low + high) / 2;\n j = (int) (mid * suf_rec_size / suf_parts_size[0]);\n suf_buff[j].position((int) (mid * suf_rec_size % suf_parts_size[0]));\n suf_buff[j].get(key.suffix, 0, suf_len / 4);\n comp = k_mer.compare_suffix(key);\n if (comp == -1) {\n high = mid - 1;\n } else if (comp == 1) {\n low = mid + 1;\n } else {\n return mid;\n }\n }\n return -1L; // not found\n }", "public int find(K key){\r\n int k =0;\r\n int ik;\r\n while(true){\r\n ik = getIndex(k,key);\r\n if(hashTable[ik] == null || hashTable[ik].equals(key))\r\n return ik;\r\n else if(hashTable[ik].isDeleted){ // deleted\r\n break;\r\n }else{\r\n k++;\r\n }\r\n }\r\n int xspot = ik;\r\n while(true){\r\n k++;\r\n if(hashTable[ik]!=null && hashTable[ik].equals(key)){\r\n return ik;\r\n }\r\n if(hashTable[ik] == null){\r\n return xspot;\r\n }\r\n }\r\n }", "public V psyGet(final K oKey)\n\t\tthrows PsyRangeCheckException, PsyUndefinedException;", "public V find(K key) {\n Node<K,V> node = root;\n while (node != null) {\n int cmp = key.compareTo(node.key);\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n return node.value;\n }\n }\n return null;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@Override\n\tpublic Place find(Place obj) {\n\t\treturn null;\n\t}", "static Item search(long sum) {\n int i = hash(sum);\n while (st[i] != null) {\n if (st[i].sum == sum) return st[i];\n i++;\n if (i >= st.length) i -= st.length;\n }\n return null;\n }", "public Recognition findSkytone() {\n List<Recognition> recogs = this.findBricks();\n boolean one_seen = false;\n Recognition skystone = null;\n for (Recognition recog : recogs) {\n if (recog.getLabel() == \"Skystone\") {\n if (one_seen) {\n return null;\n } //if this is the second we're seeing, return null\n else {\n one_seen = true;\n skystone = recog;\n }\n }\n }\n return skystone; //will be null if we never saw a skystone, or defined if not\n }", "public Widget findOne(Point p) {\n // we need to deal with scaled points because of zoom feature\n Point2D.Double scaledPos = new Point2D.Double();\n scaledPos.x = (double)p.x;\n scaledPos.y = (double)p.y;\n if (zoomFactor > 1) // transforms are only needed in zoom mode\n inv_at.transform(scaledPos, scaledPos);\n Point2D.Double mappedPos = u.fromWinPoint(scaledPos);\n// System.out.println(\"findOne: Z=\" + zoomFactor + \" p=[\" + p.x + \",\" + p.y + \"] \" \n// + \" s=[\" + scaledPos.getX() + \",\" + scaledPos.getY() + \"]\"\n// + \" m=[\" + mappedPos.getX() + \",\" + mappedPos.getY() + \"]\");\n Widget ret = null;\n for (Widget w : widgets) {\n if (w.contains(mappedPos)) {\n// System.out.println(\"found: \" + w.getKey() + \" p= \" + p + w.getBounded());\n ret = w;\n }\n }\n return ret;\n }", "@Override\n\tpublic List<RenWutable> findPagepramo(String strwhere) {\n\t\treturn null;\n\t}", "public nc.vo.crd.bd.interf.zyhtvo.ZyhtVO getZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@Override\r\n\tpublic List<OVChipkaart> findByKaarthouder(Reiziger kaarthouder) throws SQLException {\n\t\treturn null;\r\n\t}", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "public static Result searchSkier(){\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else\n return ok(toJson(Skier.search(loggedInSkier)));\n }", "private RadixTree find(Signature key) {\n if (key.isEmpty()) {\n return this;\n } else {\n for (Signature label : children.keySet()) {\n if (label.equals(key)) {\n return children.get(label);\n } else if (label.isPrefix(key)) {\n RadixTree child = children.get(label);\n int len = label.size();\n return child.find(key.suffix(len));\n }\n }\n }\n\n return null;\n }", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public Sajam_automobila findOneSajam(Integer korID) {\n\t\tint dd=Integer.parseInt(korID.toString());\n\t\treturn Repository.findOne(korID);\n\t}", "public V getIfPresent(Object key) {\n V result = null;\n MapSegment.Entry<K, V> entry = segment.getEntry(key);\n\n if (null != entry) {\n entry.setAccessTime(ticker.nextTick());\n result = entry.getValue();\n }\n return result;\n }", "private String getVal(String ky) {\n return bookDB.get(ky).getTitle();\n }", "public Korisnici findOne(Integer korID) {\n\t\treturn korisniciRepository.findOne(korID);\n\t}", "public V search(K key) throws KeyNotFoundException {\n\tif (!RBT.containsKey(key))\n\t throw new KeyNotFoundException();\n return (V) RBT.get(key);\n }", "public int get(String s) {\n boolean val=search(s);\n if(val==true){\n int a=(int) hmap.get(s);\n System.out.println(\"Found\");\n return a;\n }\n else {\n return -1;\n }\n\n }", "@Override\r\n\tpublic List<Gjjtqyyb> findtqyy() {\n\t\treturn tqyydao.findall();\r\n\t}", "@Override\n\tpublic Optional<Value> get(Key k) {\n\t\treturn bst.find(k);\n\t}", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "@Override\r\n\tpublic Object CXT_getByKey(String jsk)\r\n\t{\n\t\treturn null;\r\n\t}", "public String find(String key) {\n\t\t\n\t\tsearchProbe = 0;\n\t\tint h = hash(key);\n\t\twhile(table[h]!=null) {\n\t\t\t\n\t\t\tif(table[h].toString().substring(0, 19).equals(key)) {\n\t\t\t\treturn table[h].toString();\n\t\t\t}\n\t\t\tsearchProbe++;\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\t\n\t\t\n\treturn \"Not Found\";\n\t}", "public V bubbaGet(K key) {\n int idx = hash(key);\n int hashVal = idx;\n\n while (table[idx] != null && table[idx].offset >= calcOff(hashVal, idx)) {\n if (table[idx].key != null && table[idx].equals(key)) {\n return table[idx].value;\n }\n increment(idx);\n }\n return null;\n }", "public String search(int k) // search for node with key k in the tree\r\n {\r\n\t \tWAVLNode x = root;\t\r\n while (x != EXT_NODE) { // continue looking until arriving to EXT_NODE\r\n \tif (k==x.key) {\r\n \t\treturn x.info;\r\n \t}\r\n \telse if(k<x.key) {\r\n \t\tx=x.left;\r\n \t}\r\n \telse {\r\n \t\tx=x.right;\r\n \t}\r\n }\r\n return x.info;\r\n }", "public Integer find(Integer findThis){\n if ( findThis==0){\n return findThis;\n }\n if (board[findThis] < 0) {\n return findThis;\n }\n else if (board[findThis] > 0 ) {\n return find(board[findThis]);\n }\n else {\n return 0;\n }\n }", "private static final Udef uLookup (long mksa) {\n\t\tint i;\n\t\tUdef u = null;\n\t\tif (!initialized) init();\n\t\t// Among the possible units, return the one without offset, and\n\t\t// if possible having a factor of 1.\n\t\tfor (i=0; i<uDef.length; i++) {\n\t\t\tif ((uDef[i].mksa == mksa) && (uDef[i].orig == 0)) {\n\t\t\t\tif (uDef[i].fact == 1) return(uDef[i]);\n\t\t\t\tif (u == null) u = uDef[i];\n\t\t\t}\n\t\t}\n\t\tif (u != null) return(u);\n\t\t// Maybe in additinal list ?\n\t\tif (aUnit != null) { \n\t\t\tint n = aUnit.size();\n\t\t\tfor(i=0; i<n; i++) {\n\t\t\t\tu = (Udef)aUnit.elementAt(i);\n\t\t\t\tif (u.mksa == mksa) return(u);\n\t\t\t}\n\t\t}\n\t\treturn(u);\n\t}", "public Record find(String key) {\n\t\tint hash = toHashKey(key);\n\t\tint baseValue = (baseHash(hash,length))% length;\n\t\tif (Table[baseValue].hash == -1){ //If slot is empty\n\t\t\treturn null;\n\t\t}\n\t\telse if (Table[baseValue].key.equals(key)){ //if the slot is the key we are looking for\n\t\t\treturn Table[baseValue];\n\t\t}\n\t\telse {\n\t\t\tint step = (stepHash(hash,length)); //checks first slot after base\n\t\t\tint current = (baseValue + step)% length; //checks first slot after base\n\t\t\twhile (current != baseValue){ //cycle through table until reaching first value again\n\t\t\t\tif (Table[current].hash == -1){//If slot is empty\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse if (Table[current].key.equals(key)){ //if the slot is the key we are looking for\n\t\t\t\t\treturn Table[current];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = (current + step) % length; //Cycle through table without going over the newlength\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static ParkourKit getParkourKit(String name) {\n name = name.toLowerCase();\n\n if (loaded.containsKey(name)) {\n return loaded.get(name);\n }\n\n if (!ParkourKitInfo.doesParkourKitExist(name)) {\n return null;\n }\n\n ParkourKit kit = new ParkourKit(name);\n loaded.put(name, kit);\n return kit;\n }", "public List<Short> getKOsByPathway(Short pw) {\n\t\tif (pathway2ko == null) {\n\t\t\treadDumpedKeggPathways();\n\t\t}\n\t\treturn pathway2ko.get(pw);\n\t}", "private Optional<ItemVenda> buscarItemPorCerveja(Cerveja cerveja) {\r\n\t\t// retorna somente ItemVenda iguais ao passado no parametro \r\n\t\treturn itens.stream()\r\n\t\t\t\t.filter(i -> i.getCerveja().equals(cerveja))\r\n\t\t\t\t.findAny();\r\n\t}", "public org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoKiosk getKiosk()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoKiosk target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoKiosk)get_store().find_element_user(KIOSK$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public V get(K key) {\r\n\t\t\tif (key == null) {\r\n\t\t\t\tthrow new NullPointerException();\r\n\t\t\t} else if (find(key) == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\treturn find(key).value;\r\n\t\t\t}\r\n\t\t}", "public String getVirtualSearchKey();", "HRegionLocation getCachedLocation(final byte [] tableName,\n final byte [] row) {\n SoftValueSortedMap<byte [], HRegionLocation> tableLocations =\n getTableLocations(tableName);\n\n // start to examine the cache. we can only do cache actions\n // if there's something in the cache for this table.\n if (tableLocations.isEmpty()) {\n return null;\n }\n\n HRegionLocation possibleRegion = tableLocations.get(row);\n if (possibleRegion != null) {\n return possibleRegion;\n }\n\n possibleRegion = tableLocations.lowerValueByKey(row);\n if (possibleRegion == null) {\n return null;\n }\n\n // make sure that the end key is greater than the row we're looking\n // for, otherwise the row actually belongs in the next region, not\n // this one. the exception case is when the endkey is\n // HConstants.EMPTY_END_ROW, signifying that the region we're\n // checking is actually the last region in the table.\n byte[] endKey = possibleRegion.getRegionInfo().getEndKey();\n if (Bytes.equals(endKey, HConstants.EMPTY_END_ROW) ||\n KeyValue.getRowComparator(tableName).compareRows(\n endKey, 0, endKey.length, row, 0, row.length) > 0) {\n return possibleRegion;\n }\n\n // Passed all the way through, so we got nothin - complete cache miss\n return null;\n }", "int locate(Entry probe)\n {\n if (keys == null)\n sortedKeys();\n int lo = 0, hi = keys.length - 1;\n while (lo <= hi) {\n int mid = (lo + hi) / 2;\n int cmp = comparator.compare(probe, keys[mid]);\n if (cmp < 0)\n hi = mid - 1;\n else if (cmp > 0)\n lo = mid + 1;\n else\n return mid; // found\n }\n return lo;\n }", "IntPair findSafety(IntPair position, IntPair pacman)\n {\n // TODO: Implement function\n return null;\n }", "public V get(K key){\n\t\t\n\n\t\tNode n=searchkey(root, key);\n\n\t\t\n\t\tif(n!=null && n.value!=null){\n\t\t\treturn n.value;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "protected V bucketGet(int h, K k) {\n int j = findSlot(h, k);\n if (j < 0) return null; // no match found\n return table[j].getValue();\n }", "public Solution solve(ISearchable s) {\n return null;\n }", "private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }", "public int find (Object item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\tif (table[index] != null) {\n\t\t\t\treturn table[index].pathHeight((T) item) +1;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t}", "public String findUserData(String login, String key);", "public Object findRecord(Object key) \n\t{\n\t check(\"find\", key);\n \n\t Object record = htRecords.get(key);\n\t if ( record != null )\n\t {\n\t\t //--- Return a copy of the record\n\t return copy ( record );\n\t }\n\t else\n\t {\n\t return null ;\n\t }\n\t}", "public synchronized V get(K k) {\n final int h = getHash(k), hash = h % buckets.length;\n ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) \n return node.v;\n else\n return null;\n }", "private CAUEntry findElementWithTID(CAUList ulist, int tid){\n\t\tList<CAUEntry> list = ulist.CAUEntries;\n\t\t\n\t\t// perform a binary search to check if the subset appears in level k-1.\n int first = 0;\n int last = list.size() - 1;\n \n // the binary search\n while( first <= last )\n {\n \tint middle = ( first + last ) >>> 1; // divide by 2\n\n if(list.get(middle).tid < tid){\n \tfirst = middle + 1; // the itemset compared is larger than the subset according to the lexical order\n }\n else if(list.get(middle).tid > tid){\n \tlast = middle - 1; // the itemset compared is smaller than the subset is smaller according to the lexical order\n }\n else{\n \treturn list.get(middle);\n }\n }\n\t\treturn null;\n\t}", "private Trie quickFind(String stem) {\n if (stem.equals(this.getStem()))\n return this;\n else {\n Trie child = getChildren().get(stem.charAt(this.getStem().length()));\n if (child == null)\n return null;\n else return child.quickFind(stem);\n }\n }", "ore_values FindOreValue(String ore) {\n int i;\n for (i = 0; i < ov.size(); i++) {\n ore_values v = ov.get(i);\n if (v.ore_name.equals(ore)) {\n return v;\n }\n }\n return null;\n }", "public V lookup(K key);", "public static Object lookup(Object ob, String key) throws XMLBuildException {\r\n FilterAJ filter = XmlParser.pojoToWrapper.get(ob);\r\n if (key == null) {\r\n throw new XMLBuildException(\"object \" + filter.getName() +\" lookup null key\" );\r\n }\r\n\t\t\r\n\t\tif (filter == null)\r\n\t\t\treturn null;\r\n\t\tConcurrentHashMap st = filter.getSymbolTable();\r\n\t\tFilterAJ o = (FilterAJ) st.get(key);\r\n\t\tif (o != null) {\r\n\t\t\treturn o.getPojo();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Long getKinkenriyou07() {\r\n return kinkenriyou07;\r\n }", "public Piirrettava arvoKulma() {\n if (!kulmat.isEmpty()) {\n return kulmat.get(new Random().nextInt(kulmat.size()));\n }\n return null;\n }" ]
[ "0.65870416", "0.5534542", "0.52754354", "0.5250933", "0.5230648", "0.5197008", "0.51686937", "0.5137383", "0.5135266", "0.50981295", "0.5059643", "0.5053043", "0.50501925", "0.50252753", "0.4986384", "0.49738118", "0.49727726", "0.49724245", "0.49592388", "0.48990905", "0.4894568", "0.48855916", "0.48694974", "0.48508582", "0.48284447", "0.4815954", "0.48075402", "0.47956806", "0.47943062", "0.47894087", "0.47801596", "0.47754043", "0.47721314", "0.47643983", "0.47523296", "0.4751114", "0.47478428", "0.47467184", "0.47459197", "0.47356758", "0.4729409", "0.4725192", "0.47143295", "0.47018364", "0.46905828", "0.46777698", "0.46777698", "0.4677424", "0.46634695", "0.46605873", "0.4659028", "0.4658775", "0.46175918", "0.46130106", "0.46017966", "0.46003368", "0.45949766", "0.45848882", "0.458262", "0.4582415", "0.45802647", "0.45800146", "0.45793328", "0.4577604", "0.45758015", "0.45726603", "0.45709583", "0.456972", "0.45606494", "0.45515433", "0.45514283", "0.45444915", "0.45290408", "0.45157602", "0.45064452", "0.450386", "0.4502685", "0.45025808", "0.4502109", "0.44805974", "0.44667476", "0.44625613", "0.44613338", "0.4458534", "0.4456226", "0.44558358", "0.44534022", "0.44402403", "0.44380844", "0.44375876", "0.44374746", "0.44242865", "0.44241828", "0.44227812", "0.44225857", "0.44214222", "0.442019", "0.44174427", "0.44084617", "0.440639" ]
0.6969332
0
Returns the phat vay where soKU = &63; or returns null if it could not be found, optionally using the finder cache.
@Override public PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) { soKU = Objects.toString(soKU, ""); Object[] finderArgs = new Object[] {soKU}; Object result = null; if (retrieveFromCache) { result = finderCache.getResult( _finderPathFetchBySoKU, finderArgs, this); } if (result instanceof PhatVay) { PhatVay phatVay = (PhatVay)result; if (!Objects.equals(soKU, phatVay.getSoKU())) { result = null; } } if (result == null) { StringBundler query = new StringBundler(3); query.append(_SQL_SELECT_PHATVAY_WHERE); boolean bindSoKU = false; if (soKU.isEmpty()) { query.append(_FINDER_COLUMN_SOKU_SOKU_3); } else { bindSoKU = true; query.append(_FINDER_COLUMN_SOKU_SOKU_2); } String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); if (bindSoKU) { qPos.add(soKU); } List<PhatVay> list = q.list(); if (list.isEmpty()) { finderCache.putResult( _finderPathFetchBySoKU, finderArgs, list); } else { if (list.size() > 1) { Collections.sort(list, Collections.reverseOrder()); if (_log.isWarnEnabled()) { _log.warn( "PhatVayPersistenceImpl.fetchBySoKU(String, boolean) with parameters (" + StringUtil.merge(finderArgs) + ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); } } PhatVay phatVay = list.get(0); result = phatVay; cacheResult(phatVay); } } catch (Exception e) { finderCache.removeResult(_finderPathFetchBySoKU, finderArgs); throw processException(e); } finally { closeSession(session); } } if (result instanceof List<?>) { return null; } else { return (PhatVay)result; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "@Override\n\tpublic Act3370102 findOneByKyBaoCao(String kyBaoCao) {\n\t\treturn act3370102Repo.findOneByKy(kyBaoCao);\n\t}", "@Override\n\tpublic int countBySoKU(String soKU) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountBySoKU;\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindSoKU = false;\n\n\t\t\tif (soKU.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindSoKU = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_SOKU_SOKU_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindSoKU) {\n\t\t\t\t\tqPos.add(soKU);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public V find(K k) {\r\n int i = h(k);\r\n int z = i;\r\n int j = 0;\r\n while ((K)htable[i].key() != k) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n while (htable[i] == null) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n }\r\n }\r\n return (V)htable[i].value();\r\n }", "@Override\n\tpublic PhatVay findBySoKU(String soKU) throws NoSuchPhatVayException {\n\t\tPhatVay phatVay = fetchBySoKU(soKU);\n\n\t\tif (phatVay == null) {\n\t\t\tStringBundler msg = new StringBundler(4);\n\n\t\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\t\tmsg.append(\"soKU=\");\n\t\t\tmsg.append(soKU);\n\n\t\t\tmsg.append(\"}\");\n\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(msg.toString());\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "public String search(int k)\r\n\t {\r\n\t\tIAVLNode curr = searchFor(this.root, k);\r\n\t\tif(curr.isRealNode()==false)\r\n\t\t\treturn null;\r\n\t\treturn curr.getValue();\r\n\t }", "public Vector<V> find(K key)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (int i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If we reach an empty slot, we know the key isn't in the table\r\n\t\t\tif (table[index] == null)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t// If we find the key and it isn't a tombstone\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Return the vector of values for that slot\r\n\t\t\t\treturn table[index].value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we've been probing for a long time, the key probably isn't in the\r\n\t\t// table\r\n\t\treturn null;\r\n\t}", "private Document findInCache(String userId) {\n\t\tString key;\n\t\tSet<String> keys = cache.keySet();\n\t\tIterator<String> itr = keys.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tkey = itr.next();\n\t\t\tDocument data = cache.get(key);\n\t\t\t// check if email in profile object is same as input userId\n\t\t\tString email = \"\";\n\t\t\ttry {\n\t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n\t\t\t} catch (XMLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// cache hit\n\t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n\t\t\t\treturn data;\n\t\t\t}\n\t\t}\n\t\t// Cache miss\n\t\treturn null;\n\t}", "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Optional<V> lookup(K k) {\n if (this.bst.lookup(new KVPairof<>(k, null)).isPresent()) {\n return Optional.of(this.bst.lookup(new KVPairof<>(k, null)).get().right);\n } else {\n return Optional.empty();\n }\n }", "Optional<V> lookup(K k);", "public V find (K key) throws KeyNotFoundException {\n\t\treturn findKey(root, key);\n\t}", "public String search(int k)\r\n\t {\r\n\t\t WAVLNode currentNode = this.root;\r\n\t\t while(currentNode.isInnerNode())\r\n\t\t {\r\n\t\t\t if(currentNode.getKey() == k)\r\n\t\t\t {\r\n\t\t\t\t return currentNode.getValue();\r\n\t\t\t }\r\n\t\t\t else if(currentNode.getKey() > k)\r\n\t\t\t {\r\n\t\t\t\t currentNode = currentNode.getLeft();\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t currentNode = currentNode.getRight();\r\n\t\t\t }\r\n\t\t }\r\n\t\t return null;\r\n\t }", "private Document findInCache(String userId) {\n \t\tString key;\n \t\tSet<String> keys = lruCache.getKeySet();\n \t\tIterator<String> itr = keys.iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tkey = itr.next();\n \t\t\tDocument data = lruCache.get(key);\n \t\t\t// check if email in profile object is same as input userId\n \t\t\tString email = \"\";\n \t\t\ttry {\n \t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n \t\t\t} catch (XMLException e) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// cache hit\n \t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n \t\t\t\treturn data;\n \t\t\t}\n \t\t}\n \t\t// Cache miss\n \t\treturn null;\n \t}", "public Value find(Value key) {\n\t\tValue v = get(key);\n\t\tif (v != null)\n\t\t\treturn v;\n\t\tif (parent != null)\n\t\t\treturn parent.find(key);\n\t\treturn null;\n\t}", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public V search(K key);", "@Override\n\tpublic PhatVay removeBySoKU(String soKU) throws NoSuchPhatVayException {\n\t\tPhatVay phatVay = findBySoKU(soKU);\n\n\t\treturn remove(phatVay);\n\t}", "@Override\r\n\tpublic String findpsw(String username) {\n\t\treturn null;\r\n\t}", "public static Object getKeyValue(JSONObject akz_JSONObj, String akzStr_keyValueToFind) {\n\n\t\tArrayList<String> arrayList_jsonTopLevelKeys = new AkZ_KeysFinder().findRootKeys(akz_JSONObj);\n\n\t\tif (arrayList_jsonTopLevelKeys.contains(akzStr_keyValueToFind)) {\n\n\t\t\tif (akz_JSONObj.get(akzStr_keyValueToFind).equals(null))\n\t\t\t\treturn null;\n\n\t\t\ttry {\n\t\t\t\treturn akz_JSONObj.getBoolean(akzStr_keyValueToFind);\n\t\t\t} catch (JSONException e) {\n\t\t\t\ttry {\n\t\t\t\t\treturn akz_JSONObj.getJSONArray(akzStr_keyValueToFind);\n\t\t\t\t} catch (JSONException e2) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn akz_JSONObj.getJSONObject(akzStr_keyValueToFind);\n\t\t\t\t\t} catch (JSONException e3) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn akz_JSONObj.getString(akzStr_keyValueToFind);\n\t\t\t\t\t\t} catch (JSONException e4) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn akz_JSONObj.getDouble(akzStr_keyValueToFind);\n\t\t\t\t\t\t\t} catch (JSONException e5) {\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} // catch(e3)\n\t\t\t\t} // catch(e2)\n\t\t\t} // catch(e1)\n\t\t} // if\n\n\t\t// if we key is not found go deep into JSON.\n\t\telse {\n\t\t\tfor (int intTopLevelKeysIndex = 0; intTopLevelKeysIndex >= arrayList_jsonTopLevelKeys\n\t\t\t\t\t.size(); intTopLevelKeysIndex++) {\n\t\t\t\tString strPresentKey = arrayList_jsonTopLevelKeys.get(intTopLevelKeysIndex);\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject innerJsonObj = akz_JSONObj.getJSONObject(strPresentKey);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObject res = getKeyValue(innerJsonObj, akzStr_keyValueToFind);\n\t\t\t\t\t\tres.equals(null);\n\t\t\t\t\t\treturn res;\n\t\t\t\t\t} catch (NullPointerException n) {\n\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tJSONArray jsonArray = akz_JSONObj.getJSONArray(strPresentKey);\n\n\t\t\t\t\t\tfor (int index = 0; index <= jsonArray.length(); index++) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tJSONObject ObjInsideArray = jsonArray.getJSONObject(index);\n\t\t\t\t\t\t\t\tObject res = getKeyValue(ObjInsideArray, akzStr_keyValueToFind);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tres.equals(null);\n\t\t\t\t\t\t\t\t\treturn res;\n\t\t\t\t\t\t\t\t} catch (NullPointerException n) {\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (JSONException e2) {\n\n\t\t\t\t\t\t\t} // catch(e2)\n\t\t\t\t\t\t} // for\n\t\t\t\t\t} catch (JSONException e1) {\n\n\t\t\t\t\t} // catch(e1)\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn null;\n\n\t}", "@Override\r\n\tpublic int locsearch(FoodshopVO vo) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@SuppressWarnings(\"unused\")\n public static IParkour getParkour(String name) throws NullPointerException {\n if (name == null) {\n throw new NullPointerException(\"name cannot be null\");\n }\n\n return CacheManager.getParkour(name);\n }", "@Nullable IStrongSlot find(LuaValue key);", "public Coordinate findKing (int team) {\n\t\tArrayList<Coordinate> traversal = field.noNullsTraverse();\n\t\tfor(Coordinate kingCord: traversal) {\n\t\t\tPiece maybeKing = field.at(kingCord);\n\t\t\tif(maybeKing.type != KING ) { continue; }\n\t\t\tif(maybeKing.team != team) { continue; }\n\t\t\treturn kingCord;\n\t\t}\n\t\treturn null;\n\t}", "public Storageplace getStorageplace(int storageplaceKey){\r\n\t\t List<Storageplace> storageplaces = getAll();\r\n\t for(Storageplace storageplace: storageplaces){\r\n\t if(storageplace.getStorageplaceKey() == storageplaceKey){\r\n\t return storageplace;\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }", "private SolmuKaksiKolme succSolmu2(SolmuKaksiKolme s) {\n //seuraaja ei tarpeen\n if (s.getOikea() == null) {\n return null;\n }\n\n SolmuKaksiKolme it = s.getOikea();\n\n while (it.getVasen() != null) {\n it = it.getVasen();\n }\n return it;\n }", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "private ILocation GetWarp(IPlayer owner, String name)\r\n\t{\r\n\t\tString key = cacheKey(owner, name);\r\n\t\tILocation location = cache.Cache(key);\r\n\t\tif (location != null)\r\n\t\t\treturn location;\r\n\r\n\t\tif (owner == null)\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=1\",\r\n\t\t\t\tname\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=0 AND creator=?\",\r\n\t\t\t\tname, owner\r\n\t\t\t);\r\n\r\n\t\treturn cache.Cache(key, location);\r\n\t}", "public Double findByTonkhoKhoaMalienketHienTai(String malk, Integer khoaMaso) {\n //System.out.println(\"-----findByTonkhoKhoaMalienketHienTai()-----\");\n String sql = \"select t.tonkho_ton from v_tonkho_khoa_hientai t where t.dmkhoa_maso = \" + khoaMaso +\" and tonkho_malienket = '\"+malk+\"'\";\n Query q = getEm().createNativeQuery(sql);\n try {\n Double tondauky = new Double(((BigDecimal)q.getSingleResult()).doubleValue());\n return tondauky;\n } catch (Exception ex) {\n System.out.println(\"Error findByTonkhoKhoaMalienketHienTai: \" + ex.toString());\n }\n return 0.0;\n }", "@Override\n\tpublic Place find(Place obj) {\n\t\treturn null;\n\t}", "public String find(int key) {\n\t\t//YOUR CODE HERE\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn find(key,root);\n\t}", "GameObject findSeaweed(){\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Seaweed)return g;\r\n\t\t}\r\n\treturn nullSeaweed;\r\n\t}", "public FileLocation findFile(int k) {\n RemoteMapper rm = findMapper(k);\n FileLocation fl = null;\n try {\n return rm.lookup(k);\n } catch (RemoteException ex) {\n System.err.println(\"Mapper.findFile remote Exception\");\n }\n\n return fl;\n }", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "@Override\r\n\tpublic List<OVChipkaart> findByKaarthouder(Reiziger kaarthouder) throws SQLException {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "private Optional<ItemVenda> buscarItemPorCerveja(Cerveja cerveja) {\r\n\t\t// retorna somente ItemVenda iguais ao passado no parametro \r\n\t\treturn itens.stream()\r\n\t\t\t\t.filter(i -> i.getCerveja().equals(cerveja))\r\n\t\t\t\t.findAny();\r\n\t}", "public Widget findOne(Point p) {\n // we need to deal with scaled points because of zoom feature\n Point2D.Double scaledPos = new Point2D.Double();\n scaledPos.x = (double)p.x;\n scaledPos.y = (double)p.y;\n if (zoomFactor > 1) // transforms are only needed in zoom mode\n inv_at.transform(scaledPos, scaledPos);\n Point2D.Double mappedPos = u.fromWinPoint(scaledPos);\n// System.out.println(\"findOne: Z=\" + zoomFactor + \" p=[\" + p.x + \",\" + p.y + \"] \" \n// + \" s=[\" + scaledPos.getX() + \",\" + scaledPos.getY() + \"]\"\n// + \" m=[\" + mappedPos.getX() + \",\" + mappedPos.getY() + \"]\");\n Widget ret = null;\n for (Widget w : widgets) {\n if (w.contains(mappedPos)) {\n// System.out.println(\"found: \" + w.getKey() + \" p= \" + p + w.getBounded());\n ret = w;\n }\n }\n return ret;\n }", "static Item search(long sum) {\n int i = hash(sum);\n while (st[i] != null) {\n if (st[i].sum == sum) return st[i];\n i++;\n if (i >= st.length) i -= st.length;\n }\n return null;\n }", "public static Result searchSkier(){\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else\n return ok(toJson(Skier.search(loggedInSkier)));\n }", "public int find(K key){\r\n int k =0;\r\n int ik;\r\n while(true){\r\n ik = getIndex(k,key);\r\n if(hashTable[ik] == null || hashTable[ik].equals(key))\r\n return ik;\r\n else if(hashTable[ik].isDeleted){ // deleted\r\n break;\r\n }else{\r\n k++;\r\n }\r\n }\r\n int xspot = ik;\r\n while(true){\r\n k++;\r\n if(hashTable[ik]!=null && hashTable[ik].equals(key)){\r\n return ik;\r\n }\r\n if(hashTable[ik] == null){\r\n return xspot;\r\n }\r\n }\r\n }", "public int indexOf(K gesucht) {\r\n \r\n \t\tfor (int i=0;i<data.length;i++) {\r\n \t\t\tif(data[i] != null) { \r\n \t\t\t\tif(data[i].getKey().equals(gesucht)) { \r\n \t\t\t\t\treturn i;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn -1;\r\n \r\n \t}", "@Override\n\tpublic List<RenWutable> findPagepramo(String strwhere) {\n\t\treturn null;\n\t}", "public V find(K key) {\n Node<K,V> node = root;\n while (node != null) {\n int cmp = key.compareTo(node.key);\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n return node.value;\n }\n }\n return null;\n }", "public synchronized V get(K key) throws IOException {\n\t\t\treadIndex();\n\t\t\t\n\t\t\tPair<K, V> pair = seekInternal(key);\n\t\t\tif (pair != null) {\n\t\t\t\treturn pair.value();\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t}", "public String search(int k) {\n\t\tif (this.empty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (k == this.root.getKey()) {\n\t\t\treturn this.root.getValue();\n\t\t}\n\t\tif (k > this.root.getKey()) {\n\t\t\tAVLNode rightNode = (AVLNode) this.root.getRight();\n\t\t\treturn rightNode.searchRec(k);\n\t\t} else {\n\t\t\tAVLNode leftNode = (AVLNode) this.root.getLeft();\n\t\t\treturn leftNode.searchRec(k);\n\t\t}\n\t}", "public long find(kmer k_mer) {\n long low, mid, high;\n int j, comp;\n low = prefix_ptr[k_mer.prefix];\n if (k_mer.prefix == prefix_ptr.length - 1) {\n high = kmers_num - 1;\n } else {\n high = prefix_ptr[k_mer.prefix + 1] - 1;\n }\n while (low <= high) {\n mid = (low + high) / 2;\n j = (int) (mid * suf_rec_size / suf_parts_size[0]);\n suf_buff[j].position((int) (mid * suf_rec_size % suf_parts_size[0]));\n suf_buff[j].get(key.suffix, 0, suf_len / 4);\n comp = k_mer.compare_suffix(key);\n if (comp == -1) {\n high = mid - 1;\n } else if (comp == 1) {\n low = mid + 1;\n } else {\n return mid;\n }\n }\n return -1L; // not found\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "@Override\n\tpublic V get(K pLlave) {\n\t\tint i = hash(pLlave);\n ArregloDinamico<NodoTabla<K,V>> lista = tablaDeHash[i];\n for(int j=1; j<=lista.size();j++){\n \tif(lista.getElement(j).darLlave().equals(pLlave)){\n \t\treturn (V) lista.getElement(j).darValor();\n \t}\n }\n \treturn null;\n\t}", "public Solution solve(ISearchable s) {\n return null;\n }", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "public V search(K key) throws KeyNotFoundException {\n\tif (!RBT.containsKey(key))\n\t throw new KeyNotFoundException();\n return (V) RBT.get(key);\n }", "public Recognition findSkytone() {\n List<Recognition> recogs = this.findBricks();\n boolean one_seen = false;\n Recognition skystone = null;\n for (Recognition recog : recogs) {\n if (recog.getLabel() == \"Skystone\") {\n if (one_seen) {\n return null;\n } //if this is the second we're seeing, return null\n else {\n one_seen = true;\n skystone = recog;\n }\n }\n }\n return skystone; //will be null if we never saw a skystone, or defined if not\n }", "private RadixTree find(Signature key) {\n if (key.isEmpty()) {\n return this;\n } else {\n for (Signature label : children.keySet()) {\n if (label.equals(key)) {\n return children.get(label);\n } else if (label.isPrefix(key)) {\n RadixTree child = children.get(label);\n int len = label.size();\n return child.find(key.suffix(len));\n }\n }\n }\n\n return null;\n }", "public V psyGet(final K oKey)\n\t\tthrows PsyRangeCheckException, PsyUndefinedException;", "public int get(String s) {\n boolean val=search(s);\n if(val==true){\n int a=(int) hmap.get(s);\n System.out.println(\"Found\");\n return a;\n }\n else {\n return -1;\n }\n\n }", "@Override\n\tpublic Optional<Value> get(Key k) {\n\t\treturn bst.find(k);\n\t}", "public Integer find(Integer findThis){\n if ( findThis==0){\n return findThis;\n }\n if (board[findThis] < 0) {\n return findThis;\n }\n else if (board[findThis] > 0 ) {\n return find(board[findThis]);\n }\n else {\n return 0;\n }\n }", "@Override\n\tpublic Pessoa findOne(Integer arg0) {\n\t\treturn null;\n\t}", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "public Sajam_automobila findOneSajam(Integer korID) {\n\t\tint dd=Integer.parseInt(korID.toString());\n\t\treturn Repository.findOne(korID);\n\t}", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }", "public Korisnici findOne(Integer korID) {\n\t\treturn korisniciRepository.findOne(korID);\n\t}", "public static ParkourKit getParkourKit(String name) {\n name = name.toLowerCase();\n\n if (loaded.containsKey(name)) {\n return loaded.get(name);\n }\n\n if (!ParkourKitInfo.doesParkourKitExist(name)) {\n return null;\n }\n\n ParkourKit kit = new ParkourKit(name);\n loaded.put(name, kit);\n return kit;\n }", "@Override\r\n\tpublic List<Gjjtqyyb> findtqyy() {\n\t\treturn tqyydao.findall();\r\n\t}", "@Override\n\tpublic JobPreferences findOne(String username) {\n\t\treturn null;\n\t}", "public V getIfPresent(Object key) {\n V result = null;\n MapSegment.Entry<K, V> entry = segment.getEntry(key);\n\n if (null != entry) {\n entry.setAccessTime(ticker.nextTick());\n result = entry.getValue();\n }\n return result;\n }", "public String getVirtualSearchKey();", "public nc.vo.crd.bd.interf.zyhtvo.ZyhtVO getZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "IntPair findSafety(IntPair position, IntPair pacman)\n {\n // TODO: Implement function\n return null;\n }", "public String findUserData(String login, String key);", "public String find(String key) {\n\t\t\n\t\tsearchProbe = 0;\n\t\tint h = hash(key);\n\t\twhile(table[h]!=null) {\n\t\t\t\n\t\t\tif(table[h].toString().substring(0, 19).equals(key)) {\n\t\t\t\treturn table[h].toString();\n\t\t\t}\n\t\t\tsearchProbe++;\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\t\n\t\t\n\treturn \"Not Found\";\n\t}", "public T findOne(String arg0) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic CacheTreeNode searchTreeNode(String key) {\n\t\tassert (StringUtils.isNotEmpty(key));\r\n\t\tCacheTreeNode node = (CacheTreeNode)this.getCacheData(SUPER_ROOT_KEY);\r\n\t\tif(node != null){\r\n\t\t\treturn node.search(key);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public V lookup(K key);", "private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public int find (Object item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\tif (table[index] != null) {\n\t\t\t\treturn table[index].pathHeight((T) item) +1;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t}", "@Override\n\tpublic VisitaTecnica findVisitaTecnica(String cod) {\n\t\treturn null;\n\t}", "public Song findSongs(String search) {\n Optional<Song> optionalSong = songRepo.findByArtistContaining(search);\n if(optionalSong.isPresent()) {\n return optionalSong.get();\n } else {\n return null;\n }\n }", "private String getVal(String ky) {\n return bookDB.get(ky).getTitle();\n }", "public static Object lookup(Object ob, String key) throws XMLBuildException {\r\n FilterAJ filter = XmlParser.pojoToWrapper.get(ob);\r\n if (key == null) {\r\n throw new XMLBuildException(\"object \" + filter.getName() +\" lookup null key\" );\r\n }\r\n\t\t\r\n\t\tif (filter == null)\r\n\t\t\treturn null;\r\n\t\tConcurrentHashMap st = filter.getSymbolTable();\r\n\t\tFilterAJ o = (FilterAJ) st.get(key);\r\n\t\tif (o != null) {\r\n\t\t\treturn o.getPojo();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic FieldViewSet searchEntityByPk(final FieldViewSet fieldViewSet) throws DatabaseException {\n\t\ttry {\n\t\t\tfinal Iterator<IFieldLogic> iteradorPKs = fieldViewSet.getEntityDef().getFieldKey().getPkFieldSet().iterator();\n\t\t\twhile (iteradorPKs.hasNext()) {\n\t\t\t\tif (fieldViewSet.getFieldvalue(iteradorPKs.next()).isNull()) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (fieldViewSet.getEntityDef().isInCache()\n\t\t\t\t\t&& !LogicDataCacheFactory.getFactoryInstance().getDictionaryCache(this.dictionaryName).getAllItems(fieldViewSet)\n\t\t\t\t\t\t\t.isEmpty()) {\n\t\t\t\treturn LogicDataCacheFactory.getFactoryInstance().getDictionaryCache(this.dictionaryName).getItem(fieldViewSet);\n\t\t\t}\n\t\t\treturn this.getDaoRef().getRecordByPrimaryKey(fieldViewSet, this.conn);\n\t\t}\n\t\tcatch (final DatabaseException exc1) {\n\t\t\tthrow exc1;\n\t\t} catch (ParseException e) {\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new DatabaseException(\"Error parseando un dato: \" + e.getMessage());\n\t\t}\n\t}", "public org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoKiosk getKiosk()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoKiosk target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoKiosk)get_store().find_element_user(KIOSK$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public VirtualMachine findVirtualMachine(final Predicate<VirtualMachine> filter) {\n return Iterables.getFirst(filter(listVirtualMachines(), filter), null);\n }", "public V get(K key) {\r\n\t\t\tif (key == null) {\r\n\t\t\t\tthrow new NullPointerException();\r\n\t\t\t} else if (find(key) == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\treturn find(key).value;\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic <S extends Translator> Optional<S> findOne(Example<S> example) {\n\t\treturn null;\n\t}", "String search(int key);", "@Override\n\tpublic InternalCoordinate findJump(InternalCoordinate c) {\n\t\treturn null;\n\t}", "private static final Udef uLookup (long mksa) {\n\t\tint i;\n\t\tUdef u = null;\n\t\tif (!initialized) init();\n\t\t// Among the possible units, return the one without offset, and\n\t\t// if possible having a factor of 1.\n\t\tfor (i=0; i<uDef.length; i++) {\n\t\t\tif ((uDef[i].mksa == mksa) && (uDef[i].orig == 0)) {\n\t\t\t\tif (uDef[i].fact == 1) return(uDef[i]);\n\t\t\t\tif (u == null) u = uDef[i];\n\t\t\t}\n\t\t}\n\t\tif (u != null) return(u);\n\t\t// Maybe in additinal list ?\n\t\tif (aUnit != null) { \n\t\t\tint n = aUnit.size();\n\t\t\tfor(i=0; i<n; i++) {\n\t\t\t\tu = (Udef)aUnit.elementAt(i);\n\t\t\t\tif (u.mksa == mksa) return(u);\n\t\t\t}\n\t\t}\n\t\treturn(u);\n\t}", "@Override\r\n\tpublic Object CXT_getByKey(String jsk)\r\n\t{\n\t\treturn null;\r\n\t}", "public V bubbaGet(K key) {\n int idx = hash(key);\n int hashVal = idx;\n\n while (table[idx] != null && table[idx].offset >= calcOff(hashVal, idx)) {\n if (table[idx].key != null && table[idx].equals(key)) {\n return table[idx].value;\n }\n increment(idx);\n }\n return null;\n }", "public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }", "public String searchPreference(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, preference from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, prefer;\n prefer = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n prefer = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return prefer;\n }", "public String search(int k) // search for node with key k in the tree\r\n {\r\n\t \tWAVLNode x = root;\t\r\n while (x != EXT_NODE) { // continue looking until arriving to EXT_NODE\r\n \tif (k==x.key) {\r\n \t\treturn x.info;\r\n \t}\r\n \telse if(k<x.key) {\r\n \t\tx=x.left;\r\n \t}\r\n \telse {\r\n \t\tx=x.right;\r\n \t}\r\n }\r\n return x.info;\r\n }" ]
[ "0.6839486", "0.5546005", "0.52071106", "0.5184136", "0.5143036", "0.5126879", "0.5114812", "0.50995433", "0.5065976", "0.5032676", "0.5028512", "0.5021469", "0.50076604", "0.49368382", "0.49260494", "0.4902854", "0.48743227", "0.485481", "0.48478705", "0.48190325", "0.4817418", "0.4816568", "0.47996506", "0.47737208", "0.47680336", "0.47654942", "0.4765445", "0.47577524", "0.4744938", "0.47370908", "0.47333315", "0.4715891", "0.4707399", "0.46899906", "0.46839452", "0.46661097", "0.46491462", "0.46450248", "0.4643225", "0.4643225", "0.4638363", "0.46293515", "0.46285507", "0.4622928", "0.46226534", "0.46173123", "0.4610081", "0.46063557", "0.4602238", "0.45900017", "0.45899624", "0.45681518", "0.45523193", "0.45404086", "0.45350528", "0.4526595", "0.4523042", "0.45152915", "0.45142448", "0.45104292", "0.4498514", "0.4494101", "0.4488996", "0.4487342", "0.4485562", "0.44854125", "0.4484798", "0.4480861", "0.4475494", "0.44675255", "0.44672132", "0.44636154", "0.44492468", "0.44484463", "0.44465128", "0.44395116", "0.44394502", "0.44216293", "0.44190475", "0.44083273", "0.44011304", "0.4400769", "0.43924767", "0.43851933", "0.43848974", "0.4381198", "0.43747973", "0.437038", "0.43696165", "0.4367751", "0.43666247", "0.43618926", "0.43610716", "0.43605804", "0.43597546", "0.4358923", "0.4356849", "0.43529803", "0.43527344", "0.43515345" ]
0.66943467
1
Removes the phat vay where soKU = &63; from the database.
@Override public PhatVay removeBySoKU(String soKU) throws NoSuchPhatVayException { PhatVay phatVay = findBySoKU(soKU); return remove(phatVay); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public static String removePosessive(String line) {\n\t\tif (line.contains(\"'S\")) {\n\t\t\tline = line.replace(\"'S\", \"\");\n\t\t}\n\t\treturn line;\n\t}", "public boolean xoaChiTietPhieuNhap(String MaPN){\r\n Connection conn = DBConnect.getConnection();\r\n String sql = \"DELETE FROM chitietphieunhap WHERE MaPN = ?\";\r\n \r\n try {\r\n PreparedStatement ps = conn.prepareCall(sql);\r\n ps.setString(1, MaPN);\r\n \r\n return ps.executeUpdate() == 1;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ChiTietPhieuNhapDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "public void deleteWordLevel() {\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n//\t\t\tString sql = \"DELETE FROM \" + TblName_KNOW + \" WHERE UID = \" + uid + \";\";\n\t\t\tString sql = \"UPDATE \" + tbl_USER_DIC + \" SET \" + Constants.FLD_KNOW + \"=\" + Constants.WORD_UNKNOWN + \";\";\t\t\t\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}", "public void removeJbdTravelPoint2014(final String userCode);", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public static boolean xoaSinhVienMonHoc(MonHoc mhoc, NguoiDung svien) {\n\t\tSession session = HibernateUtils.getSessionFactory().getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n//\t\t\tMonHoc mh = \n\t\t\tfor (MonHoc mh : svien.getDsMonHoc()) {\n\t\t\t\tif(mh.getMaMonHoc() == mhoc.getMaMonHoc()){\n\t\t\t\t\tsvien.getDsMonHoc().remove(mh);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsession.saveOrUpdate(svien);\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// Rollback trong trường hợp có lỗi xẩy ra.\n\t\t\tsession.getTransaction().rollback();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void removeFromWhish(String user, int code){\n NodoAvl tmp = searchNode(user);\n tmp.whish.deleteNode(code);\n }", "public void unsetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ZYHTVO$0, 0);\n }\n }", "public void removeByWsi(long wsiId);", "@Override\n\tpublic boolean removeXS(String maXS) {\n\t\tEntityTransaction tr = em.getTransaction();\n\t\ttry {\n\t\t\ttr.begin();\n\t\t\tem.remove(em.find(XuatSu.class,maXS));\n\t\t\ttr.commit();\n\t\t\treturn true;\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttr.rollback();\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}", "public boolean supprimer(OffreVoyage offreVoyage) {\n\t\tif (offreVoyage != null) {\n\t\t\tcx.getConnection().remove(offreVoyage);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void removeSword() {\n \tthis.sword =null;\n \tthis.UIsword().set(false);\n \tdungeon.swordLeft().set(\"Sword Hits Left: 0\\n\");\n }", "public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }", "public void deleteByChucVuID(long chucVuId);", "public void unsetSwissprot()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(SWISSPROT$14, 0);\r\n }\r\n }", "public void eliminarPais(String txtPais);", "public void removePatientFromDB(Patient P1)\r\n {\r\n \t String sql1 = \"DELETE from PATIENTDATA where firstname='\"+P1.firstName+\"' AND lastname='\"+P1.lastName+\"';\";\r\n try {\r\n\t\tstmt.executeUpdate(sql1);\r\n\t} catch (SQLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}", "public boolean deletePalvelupisteet();", "@Override\n public Pacote remove(Object key) {\n Pacote pt = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Pacote SET visivel=FALSE WHERE nomePacote=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return pt;\n }", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void deleteDigram(){\n \n SequiturSymbol dummy;\n\n if (n.isGuard())\n return;\n dummy = (SequiturSymbol)theDigrams.get(this);\n\n // Only delete digram if its exactly\n // the stored one.\n\n if (dummy == this)\n theDigrams.remove(this);\n }", "public Value.Builder clearJamSelesai() {\n fieldSetFlags()[3] = false;\n return this;\n }", "@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void deleteFromPoseOrder() { \n \ttry {\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(DeletePoses);\n\t\t\tthis.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.d(\"SQL Exception\", e.toString());\n\t\t}\n \t\n }", "Curso eliminaCurso(String clave);", "@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "@Override\r\n\tpublic void deleteSoruDogruYanlis(int soruBankasiNo, String soruMetni) {\n\t\tSoruBankasi sb = soruBankasiList.get(soruBankasiNo - 1);\r\n\t\tList<SoruTipiDogruYanlis> addNewList = sb.getDogruYanlislist1();\r\n\t\tboolean isFound = false;\r\n\t\tint soruNo = -1;\r\n\t\tfor (SoruTipiDogruYanlis d : addNewList) {\r\n\t\t\tisFound = d.getSoruMetni().toString().contains(soruMetni);\r\n\t\t\tif (isFound) {\r\n\t\t\t\tsoruNo = d.getSoruNo();\r\n\t\t\t}\r\n\t\t}\r\n\t\taddNewList.remove(soruNo - 1);\r\n\t\tsb.setDogruYanlislist1(addNewList);\r\n\r\n\t}", "protected void removeCode(SketchCode which) {\n for (int i = 0; i < codeCount; i++) {\n if (code[i] == which) {\n for (int j = i; j < codeCount-1; j++) {\n code[j] = code[j+1];\n }\n codeCount--;\n code = (SketchCode[]) PApplet.shorten(code);\n return;\n }\n }\n System.err.println(_(\"removeCode: internal error.. could not find code\"));\n }", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "public void eliminarVideojuegoPorPlataforma(String plataforma)\n {\n Iterator<Videojuegos> iteration = listaDeVideojuegos.iterator();\n while(iteration.hasNext()){\n Videojuegos iter = iteration.next();\n String plataformaVideojuego = iter.getPlataforma();\n if(plataformaVideojuego.equals(plataforma)){\n iteration.remove();\n }\n }\n }", "private void m12453b(C2505j jVar) {\n this.f9524O.remove(jVar);\n }", "public static boolean removeSeg(double id) {\n\n String sql = \"DELETE FROM corpus1 WHERE id = ?\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setDouble(1, id);\n // execute the delete statement\n pstmt.executeUpdate();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"removeSeg: \" + e.getMessage());\n return false;\n }\n }", "public void tyhjenna() {\n this.kulmat.clear();\n }", "public void hapusDataMahasiswa(Uang uang) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, COLUMN_ID + \" = ?\",\n new String[]{String.valueOf(uang.getId())});\n db.close();\n }", "public void removeGuestPlayerFromDB(String username) throws SQLException {\n PreparedStatement stm = T3DB.getConnection().prepareStatement(\n \"delete from GuestPlayer where displayname=?\");\n stm.setString(1, username);\n stm.executeUpdate();\n }", "public void obrisiPredmet(String sp) {\n\t\tGlavniProzor.getControllerProfesor().obrisiPredmetKodSvihProf(sp);\t\t\n\t\t\n\t\t//Potom kod svih studenata :\n\t\tGlavniProzor.getControllerStudent().obrisiPredmetKodSvihStud(sp);\n\t\t\n\t\t//Potom iz konacne liste : \n\t\tfor(Predmet p : listaPredmeta) {\n\t\t\tif(p.getSifPred().equals(sp)) {\n\t\t\t\tlistaPredmeta.remove(p);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void eliminarAlergia(String alergia){\n String[] alergiaBorrar = {alergia};\n db.delete(\"alergia\",\"alergia=?\",alergiaBorrar);\n }", "void removePC(UUID uID);", "public void anularPer(String cedula){\r\n String sql = \"UPDATE \\\"HIP_PERSONAS\\\" SET \\\"PER_ESTADO\\\" = 'I' WHERE \\\"PER_CEDULA\\\" = '\" + cedula + \"'\";\r\n System.out.println(\"Persona Eliminada eliminada \" + sql);\r\n db.conectar();\r\n try {\r\n\r\n Statement sta = db.getConexionBD().createStatement();\r\n sta.execute(sql);\r\n db.desconectar();\r\n\r\n } catch (SQLException error) {\r\n\r\n error.printStackTrace();\r\n\r\n }\r\n }", "public void removeByTrangThai(int daXoa)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void removeByTrangThai(int daXoa)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "public static String removeBuailte(String s) {\n String out = \"\";\n char[] ca = s.toCharArray();\n for(int i = 0; i < ca.length; i++) {\n char undotted = removeDot(ca[i]);\n if(undotted == ca[i]) {\n out += ca[i];\n } else {\n if(Character.isLowerCase(ca[i])) {\n out += undotted;\n out += 'h';\n } else {\n if((i == 0 && ca.length == 1)\n || (ca.length > (i + 1) && Character.isUpperCase(ca[i + 1]))\n || ((i > 0) && (i == ca.length - 1) && Character.isUpperCase(ca[i - 1]))) {\n out += undotted;\n out += 'H';\n } else {\n out += undotted;\n out += 'h';\n }\n }\n }\n }\n return out;\n }", "public void RemoveSol()\r\n {\r\n for (int i = 0; i <maze.Struct.length ; i++) {\r\n for (int j = 0; j <maze.Struct[0].length ; j++) {\r\n if (maze.Struct[i][j]== 2)\r\n maze.Struct[i][j]= 0;\r\n }\r\n }\r\n setChanged();\r\n notifyObservers(\"RemoveSol\");\r\n }", "public Boolean delProdPainel(Integer terminal, Integer painel) throws SQLException {\r\n Boolean retorno = false;\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"delete from tb_prod_painel_promo where terminal=? and painel=?\";\r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n pstm.execute();\r\n retorno = true;\r\n } \r\n return retorno;\r\n }", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public int deleteLocalKeyVal(String key){\n\t\tint result = 0;\n\t\tString whereClause = DBHelper.KEY_FIELD+\"=?\";\n\t\tString selection = key;\n \tString []whereArgs = new String[]{selection};\n \tif(selection.equals(\"@\")){\n \t\twhereClause = \"1\";\n \t\twhereArgs = null;\n \t}\n \tresult = dbHelper.delete(whereClause, whereArgs);\n\t\treturn result;\n\t}", "public baconhep.TTau.Builder clearPuppiNeuHadIso() {\n fieldSetFlags()[19] = false;\n return this;\n }", "public static int deleteS(Set<String> noInduks) throws SQLException{\r\n return DBSR.deleteKasirOsByString(tableName, noIndukColName, noInduks);\r\n }", "public void remove(String clave){\n if(!claves.isEmpty()){\n if(claves.contains(clave)){\n valores.remove(claves.indexOf(clave));\n claves.remove(claves.indexOf(clave));\n }\n }\n }", "public boolean iliskMutfakSil(int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"delete iliski_mutfak from iliski_mutfak where kullanici_no=\" + kullanici_no + \"\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "public void mo30003aH(long j) {\n this.dbZ.remove(j);\n m19308h(j, 2);\n }", "public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public static void ClearLine7() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L7.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Override\n\tpublic void removeByIdSala(long id_sala) {\n\t\tfor (Approvatore approvatore : findByIdSala(id_sala, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}", "public void deleteVitals(VitalSigns v){\n vitalSignsHistory.remove(v);\n }", "public void deletePrisoners(String pisid){\r\n String q=\"DELETE FROM prisoners WHERE Prisonerid=?\";\r\n try\r\n {\r\n int k=0;\r\n PreparedStatement st=getConnection().prepareStatement(q);\r\n st.setString(1, pisid);\r\n if(st.executeUpdate()>k){\r\n JOptionPane.showMessageDialog(null,pisid+\"deleted successively\");\r\n \r\n }\r\n }\r\n catch(SQLException x){\r\n JOptionPane.showMessageDialog(null, x.getMessage());\r\n }\r\n \r\n //defines how update can be done\r\n }", "public void removeLineaGasto(long pk, long lineaGastoPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void eliminarPrograma() {\r\n // Abro y obtengo la conexion\r\n this.conection.abrirConexion();\r\n Connection con = this.conection.getConexion();\r\n\r\n // Preparo la consulta\r\n String sql = \"UPDATE programa SET \\n\"\r\n + \"estado = '0'\\n\"\r\n + \"WHERE programa.codigo = ?\";\r\n System.out.println(sql);\r\n\r\n try {\r\n // La ejecuto\r\n PreparedStatement ps = con.prepareStatement(sql);\r\n ps.setInt(1, this.codigo);\r\n int rows = ps.executeUpdate();\r\n System.out.println(rows);\r\n // Cierro la conexion\r\n this.conection.cerrarConexion();\r\n } catch (SQLException ex) {\r\n System.out.println(ex.getMessage());\r\n }\r\n }", "public void removeFromSubject(String sid) throws SQLException {\r\n\t\tthis.stmt=this.conn.createStatement();\r\n\t\t\r\n\t\tString deleteQuery=\"delete from \"+Subject.SUBJECT_INFO_TABLE_NAME+\" where \"+Subject.SUBJECT_ID+\"='\"+sid+\"'\";\r\n\t\tint i=stmt.executeUpdate(deleteQuery);\r\n\t\t/*if(i>0)\r\n\t\t\tSystem.out.println(\"Removed-> \"+sid);\r\n\t\telse\r\n\t\t\tSystem.out.println(\"NotAvailabel-> \"+sid);*/\r\n\t\t\r\n\t\tstmt.close();\r\n\t}", "void unsetCapitalPayed();", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar163() {\n var163 = null;\n fieldSetFlags()[164] = false;\n return this;\n }", "public void eliminar (String idSalida) {\r\n String query = \"UPDATE actividad SET eliminar = true WHERE id_salida = \\\"\" + idSalida + \"\\\"\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad eliminada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void deleteResult(String hw) {\n IDatabase database = new MySqlDatabase();\n Connection connection = database.getConnection();\n db.deleteResult(hw);\n }", "public static void removeEncodedBy( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, ENCODEDBY, value);\r\n\t}", "public void delNomFromMac(Verbum w){\r\n\t\tw.macForm = w.macrons.substring(0, w.macrons.length()-w.nomFormLengh);\r\n\t\tif(w.macForm.length()>0){ //avoid index out of bounds\r\n\t\t\tif(w.macForm.charAt(w.macForm.length()-1)=='*'){\r\n\t\t\t\tw.macForm = w.macForm.substring(0, w.macForm.length()-2);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public static void ClearLine8() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L8.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public static void ClearLine9() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L9.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public boolean removeVotoXidAndCedula(int idPelicula, String cedula ) { \n\t\ttry {\n\t\t\t//Voto voto = find(idVoto);\n\t\t\tString sql = \"DELETE FROM tie_voto where vot_pel_id = \"+idPelicula + \" and vot_usu_cedula = '\"+cedula+\"';\";\n\t\t\t//System.out.println(\"voto encontrado\"+voto);\n\t\t\t\n\t\t\treturn em.createNativeQuery(sql).executeUpdate() != 0;\n\t\t\t \n\t\t \n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}", "public void supprimerEpsilonProd(){\n grammaireCleaner.supprimer_epsilon_prod();\n setChanged();\n notifyObservers(\"4\");\n }", "private void btnhapusActionPerformed(java.awt.event.ActionEvent evt) {\n int ok=JOptionPane.showConfirmDialog(null,\"Apakah Yakin Mendelete record ini???\", \"Confirmation\",JOptionPane.YES_NO_CANCEL_OPTION);\n if (ok==0)\n {\n try\n {\n String sql=\"delete from toko where nama='\"+jnama.getText()+\"'\";\n PreparedStatement st=con.prepareStatement(sql);\n st.executeUpdate();\n JOptionPane.showMessageDialog(null, \"Delete Data Sukses\");\n \n // kosong();\n tampilkan();\n }\n catch (Exception e)\n {\n JOptionPane.showMessageDialog(null, \"Delete Data Gagal\");\n }\n }\n }", "@Override\n public int delete( J34SiscomexPaises j34SiscomexPaises ) {\n return super.doDelete(j34SiscomexPaises);\n }", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy deleteVanBanPhapQuy(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.deleteVanBanPhapQuy(id);\n\t}", "public void eliminarPaciente(String codigo)\n {\n try\n {\n int rows_update=0;\n PreparedStatement pstm=con.conexion.prepareStatement(\"DELETE paciente.* FROM paciente WHERE IdPaciente='\"+codigo+\"'\");\n rows_update=pstm.executeUpdate();\n \n if (rows_update==1)\n {\n JOptionPane.showMessageDialog(null,\"Registro eliminado exitosamente\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"No se pudo eliminar el registro, verifique datos\");\n con.desconectar();\n }\n }\n catch (SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Error \"+e.getMessage()); \n }\n }", "public static String deletePaidBills(){\n return \"delete from current_bills where cb_paid = 1\";\n }", "public boolean MasaSil(int masa_no) throws SQLException {\n baglanti vb = new baglanti();\r\n\r\n try {\r\n vb.baglan();\r\n } catch (Exception e) {\r\n System.out.println(\"Bağlantı sağlanamadı\" + e);\r\n }\r\n try {\r\n String sorgu3 = \"DELETE m,i FROM masalar m LEFT JOIN ilisk_masa i ON m.masa_no=i.masa_no WHERE m.masa_no=\" + masa_no + \"\";\r\n\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n\r\n return true;\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n return false;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }", "public static void deleteRam(String value){\r\n try {\r\n \r\n if(singleton.ram == 0){\r\n resetTableRam();\r\n }\r\n\r\n ResultSet rs = null;\r\n Statement stmt = singleton.conn.createStatement();\r\n \r\n for( int i=0; i<home_RegisterUser.panelRam.getComponentCount();i++) {\r\n if( home_RegisterUser.panelRam.getComponent(i) instanceof JCheckBox){\r\n JCheckBox checkBox = (JCheckBox)home_RegisterUser.panelRam.getComponent(i);\r\n if(checkBox.getToolTipText().equals(value)) {\r\n if(checkBox.getActionCommand().contains(\"ramType\")){\r\n singleton.ram = 1;\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND tipo = '\"+value+\"'\");\r\n }else if(checkBox.getActionCommand().contains(\"ramCap\")){\r\n singleton.ram = 1;\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND capacidad = \"+Integer.parseInt(value)+\"\");\r\n }else if(checkBox.getActionCommand().contains(\"ramVel\")){\r\n singleton.ram = 1;\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND velocidad = \"+Integer.parseInt(value)+\"\");\r\n }\r\n }\r\n }\r\n }\r\n if(rs!=null){\r\n while(rs.next()){\r\n for(int i=0; i<singleton.dtm.getRowCount();i++){\r\n if(Integer.parseInt(singleton.dtm.getValueAt(i, 0).toString())==rs.getInt(\"codigo\")){\r\n singleton.dtm.removeRow(i);\r\n }\r\n }\r\n }\r\n }\r\n \r\n if(singleton.dtm.getRowCount() == 0){\r\n singleton.ram = 0;\r\n resetTableRam();\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "@Override\n public com.lycenway.chr.backbone.model.MuQuxianQujian deleteMuQuxianQujian(\n com.lycenway.chr.backbone.model.MuQuxianQujian muQuxianQujian)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _muQuxianQujianLocalService.deleteMuQuxianQujian(muQuxianQujian);\n }", "public baconhep.TTau.Builder clearPuppiChHadIso() {\n fieldSetFlags()[17] = false;\n return this;\n }", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic void deleteByKyBaoCao(String ky) {\n\t\tact3370102Repo.deleteByKy(ky);\n\t}", "void removeHadithVolumeNo(Object oldHadithVolumeNo);", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "private void BorrarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(this, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tdb.execSQL(\"DELETE from Tarjetas;\");\n\n\t\t\tdb.close();\n\t\t}\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar83() {\n var83 = null;\n fieldSetFlags()[84] = false;\n return this;\n }", "public boolean iliskMasaSil(int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"delete ilisk_masa from ilisk_masa where kullanici_no=\" + kullanici_no + \"\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }\r\n }", "public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }", "public void removeKey() {\n \tthis.key =null;\n \tdungeon.keyLeft().set(\"Key possession: No\\n\");\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar263() {\n var263 = null;\n fieldSetFlags()[264] = false;\n return this;\n }", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "@Override\n\tpublic int deleteById(int said) {\n\t\tConnection conn=connectionManager.openConnection();\n\t\t//锟斤拷锟斤拷锟斤拷锟斤拷\n\t\tTransactionManager.conn=conn;\n\t\tTransactionManager.beginTransaction();\n\t\t//锟斤拷锟斤拷SQL锟斤拷锟�\n\t\tString strSQL=\"delete from sptasts where said=?\";\n\t\t\n\t\tObject[] params=new Object[]{said};\n\t\t\n\t\tint affectRows=this.dbUtils.execOthers(conn, strSQL, params);\n\t\t\n\t\tif(affectRows>0){\n\t\t\tTransactionManager.commit();//锟结交\n\t\t}else{\n\t\t\tTransactionManager.rollback();//锟截癸拷\n\t\t} \n\t\t\t\t\t\n\t\treturn affectRows;\n\t\t\n\t}", "void removeHasSCF(SCF oldHasSCF);", "public void deleteUpsos() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_UPSO, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all upso info from sqlite\");\n }", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "private void clearHocSinh() {\n\t\ttxtMa.setText(\"\");\n\t\ttxtTen.setText(\"\");\n\t\ttxtTuoi.setText(\"\");\n\t\ttxtSdt.setText(\"\");\n\t\ttxtDiaChi.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t}" ]
[ "0.6025914", "0.5826871", "0.55344653", "0.55205435", "0.54604477", "0.545595", "0.54558367", "0.5328791", "0.53107005", "0.53101254", "0.5285287", "0.52718604", "0.5249295", "0.52006966", "0.51788694", "0.5174063", "0.5159448", "0.51572925", "0.515539", "0.5153278", "0.5123833", "0.5112934", "0.5094903", "0.5093801", "0.5084612", "0.50754803", "0.5068698", "0.50566834", "0.5037478", "0.5008031", "0.5000977", "0.49958098", "0.49923342", "0.49714562", "0.49674484", "0.49516204", "0.4946822", "0.49416575", "0.49173418", "0.49153456", "0.49071053", "0.4890483", "0.48758063", "0.48758063", "0.4874156", "0.48635018", "0.4863364", "0.48628983", "0.48613983", "0.48606235", "0.48528638", "0.48409387", "0.48341563", "0.4833234", "0.48326224", "0.48293316", "0.48286158", "0.4823856", "0.48230246", "0.48215458", "0.48203394", "0.48122782", "0.4801767", "0.47997782", "0.47975287", "0.4784743", "0.47737116", "0.47679055", "0.47671247", "0.4765444", "0.47629106", "0.47626442", "0.47604674", "0.47548872", "0.4753571", "0.4752965", "0.47419629", "0.47240442", "0.472318", "0.47229338", "0.4722229", "0.47221133", "0.47221035", "0.4721861", "0.47202668", "0.47197098", "0.47159055", "0.47149575", "0.47146267", "0.4711014", "0.4709199", "0.47083583", "0.47077638", "0.4705692", "0.4703909", "0.4703824", "0.4701648", "0.4700935", "0.4700409", "0.46973935" ]
0.57944167
2
Returns the number of phat vaies where soKU = &63;.
@Override public int countBySoKU(String soKU) { soKU = Objects.toString(soKU, ""); FinderPath finderPath = _finderPathCountBySoKU; Object[] finderArgs = new Object[] {soKU}; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { StringBundler query = new StringBundler(2); query.append(_SQL_COUNT_PHATVAY_WHERE); boolean bindSoKU = false; if (soKU.isEmpty()) { query.append(_FINDER_COLUMN_SOKU_SOKU_3); } else { bindSoKU = true; query.append(_FINDER_COLUMN_SOKU_SOKU_2); } String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); if (bindSoKU) { qPos.add(soKU); } count = (Long)q.uniqueResult(); finderCache.putResult(finderPath, finderArgs, count); } catch (Exception e) { finderCache.removeResult(finderPath, finderArgs); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "static int countingValleys(int n, String s) {\n int count = 0;\n int altitude = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'U' && altitude == -1) {\n count++;\n }\n altitude += s.charAt(i) == 'U' ? 1 : -1;\n }\n return count;\n }", "private int patikrinimas(String z) {\n int result = 0;\n for (int i = 0; i < z.length(); i++) {\n if (z.charAt(i) == 'a') {\n result++;\n }\n }\n System.out.println(\"Ivestas tekstas turi simboliu a. Ju suma: \" + result);\n return result;\n }", "private static int num_konsonan(String word) {\n int i;\n int jumlah_konsonan = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) != 'a' &&\n word.charAt(i) != 'i' &&\n word.charAt(i) != 'u' &&\n word.charAt(i) != 'e' &&\n word.charAt(i) != 'o') {\n jumlah_konsonan++;\n }\n }\n return jumlah_konsonan;\n }", "public int countSyllables(String s){\r\n\t\ts = s.replace(\"qu\", \"q\");\r\n\t\tint i = 0;\r\n\t\tint count = 0;\r\n\t\tdo {\r\n\t\t\tchar c = s.charAt(i);\r\n\t\t\tif(isVowel(c)){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t} while(i<s.length()-1);\r\n\t\treturn count;\t\t\r\n\t}", "public static int countingValleys(int n, String s) {\n // Write your code here\n int level = 0;\n int valley = 0;\n for (int i = 0; i < n; i++) {\n if (s.charAt(i) == 'U') {\n level++;\n } else {\n level--;\n }\n //Valley가 되는 기준은 마지막U로 sea level까지 올라와야 완성되니까\n if (s.charAt(i) == 'U' && level == 0) {\n valley++;\n }\n }\n return valley;\n }", "private int demSoLuong(int i) {\n\t\tint count = 0;\n\t\tfor (int j = 0; j < arrInt.length; j++) {\n\t\t\tif (this.arrInt[j] == i) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public int numJewelsInStones1(String J, String S) {\n\t\tint result = 0;\n\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\tif(J.contains(Character.toString(S.charAt(i)))) {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public int numJewelsInStones(String J, String S) {\n\t\tint result = 0;\n\t\tHashSet<Character> set = new HashSet<>();\n\t\tfor(int i = 0; i<J.length();i++) {\n\t\t\tset.add(J.charAt(i));\n\t\t}\n\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\tif(set.contains(S.charAt(i))) {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "static int countingValleys(int n, String s) {\n int valleyCounter =0;\n byte vorm = 0;\n int curLevel=0;\n for(int i=0;i<s.length();i++){\n String cur = s.substring(i,i+1);\n int posNeg = cur.equals(\"U\")?1:-1;\n curLevel+=posNeg;\n if(curLevel == -1 && posNeg == -1){\n valleyCounter++;\n }\n }\n return valleyCounter;\n }", "public int solution(String J, String S) {\n char[] chars = J.toCharArray();\n \n int count = 0;\n int SLength = S.length();\n //Go through each jewel\n for (char current : chars) {\n //Check if the jewel is a part of the stone representation\n for (int i = 0; i < SLength; i++) {\n //If found a jewel, increment the count\n if (current == S.charAt(i)) {\n count++;\n }\n }\n }\n //Return the count of jewels found\n return count;\n }", "public int q1() {\n\t\tSet<String> nacionalidade = jogadores.stream()\n\t\t\t\t.map(x->x.getNationality())\n\t\t\t\t.collect(Collectors.toSet());\n\n\t\treturn nacionalidade.size();\n\n\t}", "int getWpaCount();", "public int numeroHojas(){\n\t int N=0, ni=0, nd=0;\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) ni = aux.numeroHojas();\n\t if ((aux=getHijoDer())!=null) nd = aux.numeroHojas();\n\t if ((aux=getHijoDer())==null && (aux=getHijoIzq())==null)N = 1;\n\t else N = ni + nd;\n\t }\n\t\treturn N;\n\t}", "public int puntoUno() {\n int contador = 0;\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i] != null && jugadores[i].getCantPartidosJugados() > 10) {\n contador++;\n }\n }\n return contador;\n }", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "public int countByWsi(long wsiId);", "static int size_of_jpo(String passed){\n\t\treturn 3;\n\t}", "public static int countVowels( String w ) \n {\n int total = 0;\n int origLength = w.length();\n for (int i = 0; i < origLength; i++){\n if (isAVowel(w.substring(i,i+1))){\n total += 1;\n }\n }\n return total;\n }", "public int getNumGruppoPacchetti();", "@Override\n\tpublic int kyungsangcount() throws Exception {\n\t\treturn dao.kyungsangcount();\n\t}", "public int calculerKgsNourritureParJour(){\r\n\t\treturn noms.size() * 10;\r\n\t}", "public int getPointsJuggernaut(){\n\treturn scores.get(juggernaut);\n }", "int getFaintedPokemonCount();", "static int size_of_jp(String passed){\n\t\treturn 3;\n\t}", "public int q1() {\n\t\tLong nacionalidades = jogadores.stream().map(Jogador::getNationality).distinct().count();\n\t\treturn nacionalidades.intValue();\n\t}", "public int getHeuristic(){\n\t\tint count = 0;\n\t\tfor (int i = 0; i < getRows(); i++) {\n\t\t\tfor (int j = 0; j < getColumns(); j++) {\n\t\t\t\tif (cells[i][j].getSand() != getK()) \n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t} \n\t\treturn count;\n\t}", "int obliczLiczbaKont()\n\t{\n\t\tListaProsumentowWrap listaProsumentowWrap= ListaProsumentowWrap.getInstance();\n\t\tArrayList<Prosument> listaProsumentow = listaProsumentowWrap.getListaProsumentow();\n\t\t\n\t\tint sum=0;\n\t\t\n\t\tint i=0;\n\t\twhile (i<listaProsumentow.size())\n\t\t{\n\t\t\tProsument prosument = listaProsumentow.get(i);\n\t\t\t\n\t\t\tif (prosument instanceof ProsumentEV)\n\t\t\t{\n\t\t\t\tsum+=2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "private static Object countVowels(String blah) {\n\t\treturn 0;\n\t}", "public static int cariNilai(String kata, int x, int y) {\r\n int hasil = 0;\r\n\r\n for (int i = 0; i < kata.length(); i++) {\r\n int nilaiSubstr = ((int) kata.charAt(i) - 96) % y;\r\n int nilaiPerKata = pangkatxmody(i, x, y, nilaiSubstr);\r\n hasil += nilaiPerKata;\r\n\r\n }\r\n\r\n hasil = hasil % y;\r\n return hasil;\r\n }", "public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }", "public final int getSarakeMuuttujatAihe() {\r\n return sarakeMuuttujatAihe;\r\n }", "public int numberOfBoomerangs(int[][] points) {\n int re=0;\n \tfor(int i=0; i<points.length; i++){\n \t\tMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n \t\tfor(int j=0; j<points.length; j++){\n \t\t\tint x=points[i][0]-points[j][0];\n \t\t\tint y=points[i][1]-points[j][1];\n \t\t\tint dis=x*x+y*y; \t\t\t\n \t\t\tmap.put(dis, map.getOrDefault(dis, 0)+1);\n \t\t}\n \t\t\n \t\tfor(Integer cnt: map.values()){\n \t\t\tif(cnt>=2){\n \t\t\t\tre+=cnt*(cnt-1);\n \t\t\t}\n \t\t}\n \t}\n \treturn re;\n }", "int getWifisCount();", "@Override\n\tpublic int getVanBanPhapQuiesCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBanPhapQuiesCount();\n\t}", "public static int countVowels( String w ) \r\n { int count = 0;\r\n\tfor (int x = 0; x < w.length(); x +=1) {\r\n\t if (isAVowel(w.substring(x,x+1))) {//if that letter is a vowel...\r\n\t\tcount += 1;//add one to the count\r\n\t } //end if\r\n\t}//end for\r\n\treturn count;\r\n }", "public int symbols(String senha){\n Pattern exp = Pattern.compile(\"([^a-zA-Z\\\\d\\\\s]+)\");\n Matcher matcher = exp.matcher(senha);\n int i = 0;\n while (matcher.find())\n i += matcher.group().length();\n return i;\n }", "public int numberOfBoomerangs(int[][] points) {\n\n Map<Integer, Integer> map = new HashMap<>();\n int result = 0;\n for (int i = 0; i < points.length; i++){\n for(int j = 0; j < points.length; j++){\n if(j != i){\n int distance = calcSquareDistance(points[i],points[j]);\n map.put(distance, map.getOrDefault(distance,0) + 1);\n }\n }\n for(Integer val : map.values()){\n result += (val * (val-1));\n }\n map.clear();\n }\n return result;\n }", "public int getKMSelanjutnya(){\n\t\treturn (getDistance() - N * 1000) * costPerKm / 1000;\n\t}", "int countByExample(Lbm83ChohyokanriPkeyExample example);", "public int q2() {\n\t\tLong clubes = jogadores.stream().filter(vazio -> !vazio.getClub().isEmpty())\n\t\t\t\t.map(Jogador::getClub).distinct().count();\n\t\treturn clubes.intValue();\n\t}", "public abstract int getCntPoa();", "public boolean kiemTraPSToiGian(){\n if (timUSCLN(tuSo,mauSo) == 1){\n return true;\n }else {\n return false;\n }\n }", "public int q2() {\n\t\tSet<String> clubes = jogadores.stream()\n\t\t\t\t.map(x-> x.getClub())\n\t\t\t\t.collect(Collectors.toSet());\n\t\treturn clubes.size();\n\t}", "public static int numNickels(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }", "long countByExample(KaiwaExample example);", "public static int vencedor(char J[][])\n\t{\n\t\tint i, j=0;\n\t\tfor(i=0;i<3;i++)\n\t\t{\n\t\t\t\tif(J[i][j]=='X'&&J[i][j+1]=='X'&&J[i][j+2]=='X')\n\t\t\t\t\treturn 1;\n\t\t\t\telse if(J[i][j]=='O'&&J[i][j+1]=='O'&&J[i][j+2]=='O')\n\t\t\t\t\treturn 1;\n\t\t}\n\t\ti=0;\n\t\tfor(j=0;j<3;j++)\n\t\t{\n\t\t\t\tif(J[i][j]=='X'&&J[i+1][j]=='X'&&J[i+2][j]=='X')\n\t\t\t\t\treturn 1;\n\t\t\t\telse if(J[i][j]=='O'&&J[i+1][j]=='O'&&J[i+2][j]=='O')\n\t\t\t\t\treturn 1;\n\t\t}\n\t\tif(J[0][0]=='X'&&J[1][1]=='X'&&J[2][2]=='X') \n\t\t\treturn 1;\n\t\telse if(J[0][0]=='O'&&J[1][1]=='O'&&J[2][2]=='O') \n\t\t\treturn 1;\n\t\telse if(J[0][2]=='X'&&J[1][1]=='X'&&J[2][0]=='X') \n\t\t\treturn 1;\n\t\telse if(J[0][2]=='O'&&J[1][1]=='O'&&J[2][0]=='O') \n\t\t\treturn 1;\n\t\treturn 0;\n\t}", "static int size_of_jz(String passed){\n\t\treturn 3;\n\t}", "public static int animals(int tavuk, int inek, int keci){\n\t \n\t int sum=inek*4+tavuk*2+keci*4;\n\t \n\t return sum;\n\n\t}", "static int size_of_cz(String passed){\n\t\treturn 3;\n\t}", "private int numberOfCritters(int wave){\n\t\treturn 9 + (wave%3)*6;\n\t}", "static int countingValleys(int n, String s) {\n \n int count = 0;\n char ch;\n int down = -1;\n int up = 1;\n int[] steps = new int[s.length()];\n \n for(int i = 0; i< s.length()-1; i++){\n ch = s.charAt(i);\n if(ch == 'U'){\n count++;\n steps[i] = count; //up\n }\n else{\n count--;\n steps[i] = count; //down\n }\n }\n \n int min = 0;\n \n for(int i=1; i<steps.length; i++){\n if(steps[i]==0 && steps[i-1]!=1){\n min++; //count++\n }\n }\n\n return min; //count\n }", "@Override\n\tpublic int kyunggicount() throws Exception {\n\t\treturn dao.kyunggicount();\n\t}", "public int getPunktyZaWejscie() {\n return punktyZaWejscie;\n }", "public double getMatkojenKeskinopeus() {\n return getMatkojenpituus() / (getMatkojenkesto() / 60);\n }", "public double sirinaStolpca(double wp, double hp) {\n // popravite / dopolnite ...\n return wp/this.podatki.length;\n }", "public long mo2483h() {\n return mo2625k() != null ? (long) mo2625k().size() : 0;\n }", "int getAoisCount();", "int countPowertypeRanges();", "static int size_of_jnz(String passed){\n\t\treturn 3;\n\t}", "public int countOfUnknownWord() {\n\t\tint count = 0;\t\t\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString sql;\n\t\t\tsql = \"SELECT count(*) countWordLevel from \" + tbl_USER_DIC + \" WHERE \" + Constants.FLD_KNOW + \" = \" + Constants.WORD_UNKNOWN + \";\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tcount = rs.getInt(\"countWordLevel\");\n\t\t\t}\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\t\n\t}", "@Override\n\tpublic double ChuVi() {\n\n\t\treturn (banKinh*2*P);\n\t}", "@Override\n\tpublic int countByMaCTV(String maCTV) {\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountByMaCTV;\n\n\t\tObject[] finderArgs = new Object[] {maCTV};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int countOfKnownWord() {\n\t\tint count = 0;\t\t\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString sql;\n\t\t\tsql = \"SELECT count(*) countWordLevel from \" + tbl_USER_DIC + \" WHERE \" + Constants.FLD_KNOW + \" = \" + Constants.WORD_KNOWN + \";\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tcount = rs.getInt(\"countWordLevel\");\n\t\t\t}\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\t\n\t}", "public static int numPennies(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }", "@Override\n\tpublic int kangwoncount() throws Exception {\n\t\treturn dao.kangwoncount();\n\t}", "private long getChampNodeCount(Node series) {\n\t\tNode chrom = getSolutionChrom(series);\n\t\tif (chrom != null) {\n\t\t\tNode attribute = chrom.getFirstChild();\n\t\t\twhile (attribute != null) {\n\t\t\t\tif (attribute.getNodeName().equals(NODE_COUNT_TAG)) {\n\t\t\t\t\treturn Util.getLong(attribute);\n\t\t\t\t}\n\t\t\t\tattribute = attribute.getNextSibling();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public int getPublicVictoryPoints() {\n \t\tint points = towns + 2 * cities;\n \n \t\tif (board.hasLongestRoad(this))\n \t\t\tpoints += 2;\n \n \t\tif (board.hasLargestArmy(this))\n \t\t\tpoints += 2;\n \n \t\treturn points;\n \t}", "public int mo7190a() {\n return this.f4621a.size();\n }", "public String getSureNzdCnt() {\n return sureNzdCnt;\n }", "@Override\n\tpublic double tinhTienLai() {\n\t\tdouble tienLai=0;\n\t\tif(soThangGui>=kyHan){\n\t\t\t tienLai=soTienGui*laiSuat*soThangGui;\n\t\t}\n\t\treturn tienLai;\n\t}", "public int getNbPawns(Player player) {\n Pawn aPawn;\n int Size, nbPawn;\n Size = getSize();\n nbPawn = 0;\n\n for (int numLine = 0; numLine < Size; numLine++) {\n for (int numCol = 0; numCol < Size; numCol++) {\n\n aPawn = field[numLine][numCol];\n if (aPawn != null) {\n if (aPawn.getPlayer() == player) nbPawn++; //if the pawn belong to player\n }\n\n }\n }\n\n return nbPawn;\n }", "int countByExample(Lbt72TesuryoSumDPkeyExample example);", "public int getVenditeGiorno(String username) throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\ttry {\n\t\t\tArrayList<Vendita> vendite = uq.getVenditeImpiegato(username);\n\t\t\tDate tmp = Calendar.getInstance().getTime();\n\t\t\tString data = formatter.format(tmp);\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(Vendita i : vendite)\n\t\t\t\tif(formatter.format(i.getData()).equals(data))\tcount++;\n\t\t\t\n\t\t\treturn count;\n\t\t}\n\t\tcatch(AziendaException ex) {\n\t\t\tif(ex.getMessage() == ErroriDB.EMPTY_LIST)\treturn 0;\n\t\t\telse\n\t\t\t\tthrow new AziendaException(ex.getMessage());\n\t\t}\n\t}", "int getNumberOfCavalry();", "private int nobValue() {\n int numberOfCards= cards.length;\n int nValue = 0;\n \n for (int i = 0; i < numberOfCards - 1; i++) {\n char cardRank = cards[i].charAt(0);\n char cardSuit = cards[i].charAt(1);\n char startSuit = cards[numberOfCards - 1].charAt(1);\n \n if (cardRank=='J'&&cardSuit == startSuit) {\n nValue += 1;\n }\n } \n return nValue;\n }", "public final int mo9382ZU() {\n return 470;\n }", "private Integer getNGramLength(Long[][] pasMat){\n\t\tInteger result = 0;\n\t\tfor(int i=0; i<pasMat.length; i++){\n\t\t\tif(pasMat[i] != null)\n\t\t\t\tresult++;\n\t\t}\n\t\treturn result;\n\t}", "public double getNajvacsie() {\n\t\tif ((cislo1 >= cislo2) && (cislo1 >= cislo3)) {\n\t\t\tprve = cislo1;\n\t\t} else if ((cislo2 >= cislo1) && (cislo2 >= cislo3)) {\n\t\t\tprve = cislo2;\n\t\t} else if ((cislo3 >= cislo1) && (cislo3 >= cislo2)) {\n\t\t\tprve = cislo3;\n\t\t}\n\t\treturn prve;\n\n\t}", "private static long vratiBodovaViseOd25(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getPoints() > 25)\n\t\t\t\t\t\t.count();\n\t}", "@Override\r\n\tpublic int getGeunTaeCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeCnt\",params);\r\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}", "private static long vratiBodovaViseOd25(List<StudentRecord> records) {\n\t\treturn records.stream().filter(o -> o.getBodoviLabos() + o.getBodoviMI() + o.getBodoviZI() > 25).count();\n\t}", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "public int cantHijosIzquierdosR() {\n return this.cantHijosIzquierdosR(this.raiz);\n }", "int violetSquares() {\n int s = 0;\n int i, j;\n for (i = 0; i < 14; i++) {\n for (j = 0; j < 14; j++) {\n if (_board[i][j] == VIOLET) {\n s++;\n }\n }\n }\n return s;\n }", "public static boolean czyJestPelnoletni(int wiek) {\n return wiek>17;\n }", "int retrieveNumberOfHappyKeywords(String comment)\n\t{\n\t\tint numberOfHappyWordsInComment = 0;\n\n\t\tfor (String happyWord : happyWords)\n\t\t{\n\t\t\tif (comment.indexOf(happyWord) != -1)\n\t\t\t{\n\t\t\t\tnumberOfHappyWordsInComment++;\n\t\t\t}\n\t\t}\n\t\treturn numberOfHappyWordsInComment;\n\t}", "int getNoOfParties();", "public int m2710k() {\n return ((Integer) this.f2439a.m2666a(ea.aW)).intValue();\n }", "static int size_of_jpe(String passed){\n\t\treturn 3;\n\t}", "public static long countPearls(List<Boolean> oysters) {\n\t\treturn 0;\n\t}", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public int getNbVictoires()\r\n\t{\r\n\t\treturn this.nbVictoires;\r\n\t}", "public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private int quantizeKurtosis(double spectralKurtosis) {\n\t\treturn (int) (spectralKurtosis / 100) + 1;\n\t}", "public static int countHighSkills(Player player){\n\t\tint playerNumber = getPlayerNumber(player);\n\t\tint highSkillsCount = 0;\n\t\tfor(int i = 0; i < maximumSkillCount; i++){\n\t\t\tif(playerSkillsArray[playerNumber][i] > 5){ highSkillsCount++;};\n\t\t}\n\t\treturn highSkillsCount;\n\t}", "private static long vratiBrojOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream().filter(o -> o.getOcjena() == 5).count();\n\t}", "@Override\n\tpublic int koreacount() throws Exception {\n\t\treturn dao.koreacount();\n\t}", "public int nombrePions(Couleur uneCouleur) {\n\t\tCollection<Pion> pions = mesPions.values();\n\t\tint nb = 0;\n\t\tfor (Pion p: pions) {\n\t\t\tif (p.aMemeCouleur(uneCouleur))\n\t\t\tnb++; \n\t\t}\n\t\treturn nb; \n }" ]
[ "0.6159107", "0.59024864", "0.57384086", "0.5731734", "0.5673862", "0.56231475", "0.5609651", "0.5607867", "0.5606362", "0.56045854", "0.5603803", "0.5594582", "0.5562625", "0.5498721", "0.5496313", "0.5457377", "0.5451801", "0.54509443", "0.5386086", "0.53847116", "0.5378902", "0.5367955", "0.5364652", "0.535508", "0.5353978", "0.5353193", "0.5346083", "0.5336461", "0.5313598", "0.53099376", "0.5303261", "0.5302169", "0.52957124", "0.529117", "0.5276416", "0.5252611", "0.5248794", "0.5246431", "0.5245965", "0.5235605", "0.5226526", "0.52239954", "0.5219107", "0.5208106", "0.52033734", "0.519329", "0.5182491", "0.5178399", "0.5165578", "0.51640445", "0.5156345", "0.5155348", "0.5155194", "0.5149104", "0.51487577", "0.51450753", "0.51256084", "0.5115312", "0.50918794", "0.5090962", "0.50824356", "0.5082412", "0.5080569", "0.5072237", "0.5061363", "0.5057903", "0.5051961", "0.5049105", "0.5048454", "0.5046204", "0.5045073", "0.5041531", "0.50362724", "0.50348073", "0.50326437", "0.50283456", "0.5027826", "0.5024889", "0.5022248", "0.5016674", "0.5016076", "0.5012587", "0.50115275", "0.5008153", "0.5006231", "0.4994482", "0.49929386", "0.4989497", "0.49867645", "0.49862397", "0.49772656", "0.49772468", "0.4976462", "0.49742353", "0.49601144", "0.49592644", "0.49570438", "0.49546176", "0.49534854", "0.49494317" ]
0.66989726
0
Caches the phat vay in the entity cache if it is enabled.
@Override public void cacheResult(PhatVay phatVay) { entityCache.putResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, phatVay.getPrimaryKey(), phatVay); finderCache.putResult( _finderPathFetchBySoKU, new Object[] {phatVay.getSoKU()}, phatVay); phatVay.resetOriginalValues(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tphatVay.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "public void setCached() {\n }", "@Override\n\tpublic void cacheResult(TvShow tvShow) {\n\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTvShowImpl.class, tvShow.getPrimaryKey(), tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { tvShow.getUuid(), tvShow.getGroupId() }, tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_G_T,\n\t\t\tnew Object[] { tvShow.getTvShowId(), tvShow.getGroupId() }, tvShow);\n\n\t\ttvShow.resetOriginalValues();\n\t}", "@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }", "@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(Approvatore approvatore) {\n\t\tentityCache.putResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tApprovatoreImpl.class, approvatore.getPrimaryKey(), approvatore);\n\n\t\tapprovatore.resetOriginalValues();\n\t}", "@Override\n public boolean isCaching() {\n return false;\n }", "public static void setProposalInCache(ProposalDTO proposalDTO){\n \tString proposalKey=PROPOSAL_KEY+\"_\"+proposalDTO.getProposalId();\n\t\tlog.info(\"set proposal in memcache : memcache key:\"+proposalKey);\n\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalDTO);\n\t}", "@Override\n\tpublic void cacheResult(ScienceAppExecute scienceAppExecute) {\n\t\tEntityCacheUtil.putResult(ScienceAppExecuteModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tScienceAppExecuteImpl.class, scienceAppExecute.getPrimaryKey(),\n\t\t\tscienceAppExecute);\n\n\t\tscienceAppExecute.resetOriginalValues();\n\t}", "@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }", "public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }", "public void cacheResult(CompanyAg companyAg) {\n\t\tEntityCacheUtil.putResult(CompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey(), companyAg);\n\n\t\tcompanyAg.resetOriginalValues();\n\t}", "@Override\n\tpublic void clearCache() {\n\t\tentityCache.clearCache(PhatVayImpl.class);\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_ENTITY);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\t}", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}", "@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }", "public static void cacheResult(CauHinhThuTienTet cauHinhThuTienTet) {\n\t\tgetPersistence().cacheResult(cauHinhThuTienTet);\n\t}", "protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "@Override\n\tpublic void cacheResult(EmployeeComplaint employeeComplaint) {\n\t\tEntityCacheUtil.putResult(EmployeeComplaintModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEmployeeComplaintImpl.class, employeeComplaint.getPrimaryKey(),\n\t\t\temployeeComplaint);\n\n\t\temployeeComplaint.resetOriginalValues();\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }", "@Override\r\n\tpublic void cacheResult(Share share) {\r\n\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\tShareImpl.class, share.getPrimaryKey(), share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\tnew Object[] { share.getUuid(), share.getGroupId() }, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_NAMEMARKETCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getName(),\r\n\t\t\t\tshare.getMarketId()\r\n\t\t\t}, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getSymbol()\r\n\t\t\t}, share);\r\n\r\n\t\tshare.resetOriginalValues();\r\n\t}", "@Override\n\tpublic void cacheResult(VcmsPortion vcmsPortion) {\n\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey(), vcmsPortion);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_S_C,\n\t\t\tnew Object[] { vcmsPortion.getGroupId(), vcmsPortion.getCode() },\n\t\t\tvcmsPortion);\n\n\t\tvcmsPortion.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(Paper paper) {\n\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tPaperImpl.class, paper.getPrimaryKey(), paper);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { paper.getUuid(), paper.getGroupId() }, paper);\n\n\t\tpaper.resetOriginalValues();\n\t}", "public void cacheResult(\n\t\tjava.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> danhMucGiayTos);", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "@Override\n\tpublic void cacheResult(Answer answer) {\n\t\tentityCache.putResult(\n\t\t\tentityCacheEnabled, AnswerImpl.class, answer.getPrimaryKey(),\n\t\t\tanswer);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchByQuestion, new Object[] {answer.getQuestionId()},\n\t\t\tanswer);\n\n\t\tanswer.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(AssetManageReqHandle assetManageReqHandle) {\n\t\tEntityCacheUtil.putResult(AssetManageReqHandleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAssetManageReqHandleImpl.class,\n\t\t\tassetManageReqHandle.getPrimaryKey(), assetManageReqHandle);\n\n\t\tassetManageReqHandle.resetOriginalValues();\n\t}", "public void cacheableQuery() throws HibException;", "public boolean isCached() {\n return true;\n }", "public void cacheResult(com.Hotel.model.Hotel hotel);", "public void cacheResult(VcmsArticleType vcmsArticleType);", "public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }", "public void cacheResult(TrabajadorEmpresa trabajadorEmpresa) {\n\t\tEntityCacheUtil.putResult(TrabajadorEmpresaModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTrabajadorEmpresaImpl.class, trabajadorEmpresa.getPrimaryKey(),\n\t\t\ttrabajadorEmpresa);\n\n\t\ttrabajadorEmpresa.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(CreditAppBankReference creditAppBankReference) {\n\t\tEntityCacheUtil.putResult(CreditAppBankReferenceModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCreditAppBankReferenceImpl.class,\n\t\t\tcreditAppBankReference.getPrimaryKey(), creditAppBankReference);\n\n\t\tcreditAppBankReference.resetOriginalValues();\n\t}", "public void cacheResult(com.alain.puntocoma.model.Catalogo catalogo);", "public void cacheResult(PlanoSaude planoSaude);", "@Override\n public <T> void putProxy(Key<T> key, T entityProxy)\n {\n queryCache.putProxy(key, entityProxy);\n }", "public void cacheResult(VCal vCal) {\n\t\tEntityCacheUtil.putResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVCalImpl.class, vCal.getPrimaryKey(), vCal);\n\n\t\tvCal.resetOriginalValues();\n\t}", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "boolean isCachingEnabled();", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }", "@Override\n\tpublic void clearCache(PhatVay phatVay) {\n\t\tentityCache.removeResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tphatVay.getPrimaryKey());\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\n\t\tclearUniqueFindersCache((PhatVayModelImpl)phatVay, true);\n\t}", "public static void cacheResult(com.hrms.model.EmployeeProof employeeProof) {\n\t\tgetPersistence().cacheResult(employeeProof);\n\t}", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "boolean isCacheable();", "public Map<String, ProvisioningEntity> getCacheJsonToProvisioningEntity() {\n return this.cacheJsonToProvisioningEntity;\n }", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheEnabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }", "public Boolean updateCache(String type) throws Exception {\n //Updating the same policy\n System.out.println(\"Updating Cache after a record is \"+type);\n JSONObject currentPolicy = policy.getCachePolicy();\n return updateCache(currentPolicy);\n }", "@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }", "public void cacheResult(SitbMoneyCollection sitbMoneyCollection);", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "@Override\n\tpublic void cacheResult(List<TvShow> tvShows) {\n\t\tfor (TvShow tvShow : tvShows) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tTvShowModelImpl.ENTITY_CACHE_ENABLED, TvShowImpl.class,\n\t\t\t\t\t\ttvShow.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(tvShow);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttvShow.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}", "public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@JsonProperty(\"cached\")\n public void setCached(Boolean cached) {\n this.cached = cached;\n }", "@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface OrganizationService extends EntityService<Organization> {\n\n /**\n * 缓存\n *\n * @param id\n * @return\n * @throws Exception\n */\n public Organization queryCacheOrganizationById(long id) throws Exception;\n}", "public boolean shouldCache() {\n return this.shouldCache;\n }", "AgentPolicyBuilder setBypassCache(boolean bypassCache);", "public void cacheResult(Estado estado) {\n\t\tEntityCacheUtil.putResult(EstadoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEstadoImpl.class, estado.getPrimaryKey(), estado);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NOMBRE,\n\t\t\tnew Object[] { estado.getNombre() }, estado);\n\n\t\testado.resetOriginalValues();\n\t}", "public void cacheResult(AnnotationInfo annotationInfo) {\n\t\tEntityCacheUtil.putResult(AnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey(),\n\t\t\tannotationInfo);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ANNOTATIONPROPERTIES,\n\t\t\tnew Object[] {\n\t\t\t\tLong.valueOf(annotationInfo.getDocumentRecordID()),\n\t\t\t\t\n\t\t\tannotationInfo.getName(),\n\t\t\t\t\n\t\t\tannotationInfo.getAnnotationType(),\n\t\t\t\t\n\t\t\tannotationInfo.getLead()\n\t\t\t}, annotationInfo);\n\n\t\tannotationInfo.resetOriginalValues();\n\t}", "public void cacheResult(\n\t\tjava.util.List<org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo> thuTuc2GiayTos);", "@Override\n public void updateCache(List<FavoriteEntity> ltEntity)\n {\n super.delAll();\n this.appendCache(ltEntity);\n }", "public Object cache(final ProceedingJoinPoint theMethod) throws Throwable {\r\n Object result;\r\n\r\n MethodCacheInterceptor.LOGGER.debug(\"looking for method result in cache\");\r\n ICacheKey < String > cacheKey = this.getCacheKey(theMethod);\r\n\r\n Object element = this.cache.get(cacheKey);\r\n if (element == null) {\r\n // call target/sub-interceptor\r\n MethodCacheInterceptor.LOGGER.debug(\"calling intercepted method\");\r\n result = theMethod.proceed();\r\n\r\n element = result;\r\n // cache method result\r\n MethodCacheInterceptor.LOGGER.debug(\"caching result\");\r\n\r\n this.cache.put(cacheKey, result);\r\n }\r\n return element;\r\n }", "public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }", "public void cacheResult(CsclAppointeeMaster csclAppointeeMaster);", "private static boolean assetIsInPersistentCache(Asset asset) {\n \t\treturn assetIsInPersistentCache(asset.getId());\n \t}", "private void saveProductInCache(Product product) {\n if(product!=null) {\n String cacheKey = productServiceUtils.generateProductCacheKey(product.getId());\n if (cache.put(cacheKey, product)) {\n logger.debug(\"product value cached: \" + product);\n }\n // clear all products cache\n cache.evict(ALL_PRODUCTS_CACHE_KEY);\n logger.debug(\"all products cache cleared\");\n }\n }", "public void cacheResult(\n\t\tProductSpecificationMapping productSpecificationMapping);", "@Override\r\n public void setCacheBlocks(boolean b) {\n\r\n }", "public void setClassCaching( boolean cc )\r\n {\r\n useClassCaching = cc;\r\n }", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "void updateCacheEntry(CacheKey key, Query query, QueryResultPacket resultPacket) {\n long oldTimestamp;\n if (!activeCache) return;\n\n PacketWrapper wrapper = lookup(key, query);\n if (wrapper == null) return;\n\n // The timestamp is owned by the QueryResultPacket, this is why this\n // update method puts entries into the cache differently from elsewhere\n oldTimestamp = wrapper.getTimestamp();\n wrapper = (PacketWrapper) wrapper.clone();\n wrapper.addResultPacket(resultPacket);\n synchronized (packetCache) {\n packetCache.put(key, wrapper, oldTimestamp);\n }\n }", "public void save(Session session) {\n session.save(this);\n ModelMeta meta = ModelMeta.getModelMeta(this.getClass());\n if(meta.isCacheable()){\n RedisTemplate.save(this);\n }\n }", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "public static boolean updateStuff(Entity entity){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tKey key = datastore.put(entity);\n\t\tif (key != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean existCache() {\n return false;\n }", "@Override\r\n\tpublic void cacheResult(List<Share> shares) {\r\n\t\tfor (Share share : shares) {\r\n\t\t\tif (entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, share.getPrimaryKey()) == null) {\r\n\t\t\t\tcacheResult(share);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshare.resetOriginalValues();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void cacheResult(DataEntry dataEntry);", "Cache(ScotlandYardAIModel model){\n // Generates distances from everywhere with every configuration.\n List<ScotlandYardAIPlayer> allPossiblePlayers = new ArrayList<>();\n for(int start = 1; start < 200; start++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n allPossiblePlayers.add(new ScotlandYardAIPlayer(start, taxi, bus, underground));\n // Creates a BFS object to generate all distances, then saves them to cache\n BFS allBfs = new BFS(model.getGraph(), allPossiblePlayers);\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n distance[start][to][taxi][bus][underground] = (byte) allBfs.getDistances()[start][to][taxi][bus][underground].distance();\n\n // Generates number of valid moves\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++)\n validMoves[node][taxi][bus][underground][doublet][secret] =\n model.getValidMovesForPlayer(\n new ScotlandYardAIPlayer(node, taxi, bus, underground, doublet, secret)\n ).size();\n }", "public boolean isSaveCache() {\n return mSaveCache;\n }", "@Override\n public void setSheared(boolean sheared) {\n this.entityData.set(SHEARED, sheared);\n super.setSheared(sheared); //set sheared value of super class to be compatible with other mods\n }", "@Override\n\tpublic void cacheResult(AddressChangeReqDetails addressChangeReqDetails) {\n\t\tEntityCacheUtil.putResult(AddressChangeReqDetailsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAddressChangeReqDetailsImpl.class,\n\t\t\taddressChangeReqDetails.getPrimaryKey(), addressChangeReqDetails);\n\n\t\taddressChangeReqDetails.resetOriginalValues();\n\t}", "public EntityData dynamicUpdateCache(DynamicMetadataSource source, MetadataCache cache, String entityID, byte[] document) throws InvalidMetadataException;", "PortalCacheModel getCacheModel();", "@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }", "public void cacheResult(org.oep.usermgt.model.Citizen citizen);", "public void cache() {\n cache.clear();\n for (String s : getConfig().getKeys(true)) {\n if (getConfig().get(s) instanceof String)\n cache.put(s, getConfig().getString(s));\n }\n }", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "public void updateDietParametersCache()\n {\n _dietParameters = null;\n getDietParameters();\n }" ]
[ "0.67419136", "0.5996326", "0.59702086", "0.5865588", "0.5759258", "0.572675", "0.5644148", "0.56265575", "0.5582797", "0.55723965", "0.5536", "0.54939467", "0.54432863", "0.54338187", "0.5409823", "0.54038495", "0.54013324", "0.5400108", "0.53850293", "0.53572214", "0.53479487", "0.5326259", "0.5303197", "0.5298756", "0.5297817", "0.52913165", "0.52552515", "0.5250113", "0.5247223", "0.5240275", "0.5231479", "0.522938", "0.5220694", "0.52102983", "0.5207868", "0.51624537", "0.5160441", "0.5158376", "0.5153671", "0.51494867", "0.5137088", "0.51334804", "0.5128076", "0.5116298", "0.51104414", "0.5106925", "0.5106657", "0.50958806", "0.50873756", "0.5078813", "0.50630885", "0.50147575", "0.5013403", "0.500946", "0.5005006", "0.5001301", "0.49994135", "0.49985665", "0.4989756", "0.49757472", "0.49678218", "0.49621361", "0.49613628", "0.49602136", "0.49561396", "0.49450883", "0.4931099", "0.4930802", "0.49251115", "0.49248427", "0.49151728", "0.49150813", "0.49146476", "0.49098137", "0.4900595", "0.48998645", "0.48891482", "0.48840988", "0.48709542", "0.4866585", "0.4859954", "0.48586324", "0.48517424", "0.4850195", "0.48470858", "0.4843481", "0.48433822", "0.4842572", "0.48407686", "0.4839075", "0.483516", "0.48341146", "0.48325786", "0.48311332", "0.48158967", "0.4807107", "0.48069835", "0.48041227", "0.48024255", "0.4799947" ]
0.74701446
0
Caches the phat vaies in the entity cache if it is enabled.
@Override public void cacheResult(List<PhatVay> phatVaies) { for (PhatVay phatVay : phatVaies) { if (entityCache.getResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, phatVay.getPrimaryKey()) == null) { cacheResult(phatVay); } else { phatVay.resetOriginalValues(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flushEntityCache() {\n super.flushEntityCache();\n }", "@Override\n\tpublic void cacheResult(PhatVay phatVay) {\n\t\tentityCache.putResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tphatVay.getPrimaryKey(), phatVay);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchBySoKU, new Object[] {phatVay.getSoKU()}, phatVay);\n\n\t\tphatVay.resetOriginalValues();\n\t}", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "public void setCached() {\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }", "public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }", "@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}", "@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }", "protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }", "@Override\n\tpublic void cacheResult(ScienceAppExecute scienceAppExecute) {\n\t\tEntityCacheUtil.putResult(ScienceAppExecuteModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tScienceAppExecuteImpl.class, scienceAppExecute.getPrimaryKey(),\n\t\t\tscienceAppExecute);\n\n\t\tscienceAppExecute.resetOriginalValues();\n\t}", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }", "@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}", "@AllowFailure(message=\"OPENJPA-1179 2.0 doesn't allow 'all' as in previous releases\")\n public void testMultiEMCachingAll() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"all\");\n runMultiEMCaching(props);\n }", "@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }", "@Override\n\tpublic void cacheResult(Approvatore approvatore) {\n\t\tentityCache.putResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tApprovatoreImpl.class, approvatore.getPrimaryKey(), approvatore);\n\n\t\tapprovatore.resetOriginalValues();\n\t}", "public void cacheableQuery() throws HibException;", "public static void cacheResult(com.hrms.model.EmployeeProof employeeProof) {\n\t\tgetPersistence().cacheResult(employeeProof);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheEnabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public <T> void putProxy(Key<T> key, T entityProxy)\n {\n queryCache.putProxy(key, entityProxy);\n }", "private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }", "@Override\n public void updateCache(List<FavoriteEntity> ltEntity)\n {\n super.delAll();\n this.appendCache(ltEntity);\n }", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "@Override\n\tpublic void cacheResult(TvShow tvShow) {\n\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTvShowImpl.class, tvShow.getPrimaryKey(), tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { tvShow.getUuid(), tvShow.getGroupId() }, tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_G_T,\n\t\t\tnew Object[] { tvShow.getTvShowId(), tvShow.getGroupId() }, tvShow);\n\n\t\ttvShow.resetOriginalValues();\n\t}", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "boolean isCachingEnabled();", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "@Override\n\tpublic void cacheResult(Answer answer) {\n\t\tentityCache.putResult(\n\t\t\tentityCacheEnabled, AnswerImpl.class, answer.getPrimaryKey(),\n\t\t\tanswer);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchByQuestion, new Object[] {answer.getQuestionId()},\n\t\t\tanswer);\n\n\t\tanswer.resetOriginalValues();\n\t}", "public static void setProposalInCache(ProposalDTO proposalDTO){\n \tString proposalKey=PROPOSAL_KEY+\"_\"+proposalDTO.getProposalId();\n\t\tlog.info(\"set proposal in memcache : memcache key:\"+proposalKey);\n\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalDTO);\n\t}", "public void cacheResult(TrabajadorEmpresa trabajadorEmpresa) {\n\t\tEntityCacheUtil.putResult(TrabajadorEmpresaModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTrabajadorEmpresaImpl.class, trabajadorEmpresa.getPrimaryKey(),\n\t\t\ttrabajadorEmpresa);\n\n\t\ttrabajadorEmpresa.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(List<Answer> answers) {\n\t\tfor (Answer answer : answers) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, AnswerImpl.class,\n\t\t\t\t\tanswer.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(answer);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tanswer.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(CompanyAg companyAg) {\n\t\tEntityCacheUtil.putResult(CompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey(), companyAg);\n\n\t\tcompanyAg.resetOriginalValues();\n\t}", "public void cacheResult(AnnotationInfo annotationInfo) {\n\t\tEntityCacheUtil.putResult(AnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey(),\n\t\t\tannotationInfo);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ANNOTATIONPROPERTIES,\n\t\t\tnew Object[] {\n\t\t\t\tLong.valueOf(annotationInfo.getDocumentRecordID()),\n\t\t\t\t\n\t\t\tannotationInfo.getName(),\n\t\t\t\t\n\t\t\tannotationInfo.getAnnotationType(),\n\t\t\t\t\n\t\t\tannotationInfo.getLead()\n\t\t\t}, annotationInfo);\n\n\t\tannotationInfo.resetOriginalValues();\n\t}", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "@Override\r\n\tpublic void cacheResult(Share share) {\r\n\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\tShareImpl.class, share.getPrimaryKey(), share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\tnew Object[] { share.getUuid(), share.getGroupId() }, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_NAMEMARKETCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getName(),\r\n\t\t\t\tshare.getMarketId()\r\n\t\t\t}, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getSymbol()\r\n\t\t\t}, share);\r\n\r\n\t\tshare.resetOriginalValues();\r\n\t}", "@Override\n\tpublic void cacheResult(EmployeeComplaint employeeComplaint) {\n\t\tEntityCacheUtil.putResult(EmployeeComplaintModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEmployeeComplaintImpl.class, employeeComplaint.getPrimaryKey(),\n\t\t\temployeeComplaint);\n\n\t\temployeeComplaint.resetOriginalValues();\n\t}", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(List<AnnotationInfo> annotationInfos) {\n\t\tfor (AnnotationInfo annotationInfo : annotationInfos) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tAnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(annotationInfo);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tannotationInfo.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }", "@Override\n\tpublic void cacheResult(AssetManageReqHandle assetManageReqHandle) {\n\t\tEntityCacheUtil.putResult(AssetManageReqHandleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAssetManageReqHandleImpl.class,\n\t\t\tassetManageReqHandle.getPrimaryKey(), assetManageReqHandle);\n\n\t\tassetManageReqHandle.resetOriginalValues();\n\t}", "public void setClassCaching( boolean cc )\r\n {\r\n useClassCaching = cc;\r\n }", "@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "@Override\n\tpublic void cacheResult(Paper paper) {\n\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tPaperImpl.class, paper.getPrimaryKey(), paper);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { paper.getUuid(), paper.getGroupId() }, paper);\n\n\t\tpaper.resetOriginalValues();\n\t}", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "public static <T extends Entity> EntityCache<T> getMemoryEntityCache() {\n\t\tEntityMap<T> entityMap = new MemoryEntityMap<T>();\n\t\treturn new EntityCache<T>(entityMap);\n\t}", "public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }", "public void cache() {\n cache.clear();\n for (String s : getConfig().getKeys(true)) {\n if (getConfig().get(s) instanceof String)\n cache.put(s, getConfig().getString(s));\n }\n }", "public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }", "public void flush() {\n final Collection<MappedPage> cachedPages = cache.getValues();\n for (final MappedPage mappedPage : cachedPages)\n mappedPage.flush();\n }", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}", "public boolean isCached() {\n return true;\n }", "public void cacheResult(\n\t\tProductSpecificationMapping productSpecificationMapping);", "private void saveProductInCache(Product product) {\n if(product!=null) {\n String cacheKey = productServiceUtils.generateProductCacheKey(product.getId());\n if (cache.put(cacheKey, product)) {\n logger.debug(\"product value cached: \" + product);\n }\n // clear all products cache\n cache.evict(ALL_PRODUCTS_CACHE_KEY);\n logger.debug(\"all products cache cleared\");\n }\n }", "public Map<String, ProvisioningEntity> getCacheJsonToProvisioningEntity() {\n return this.cacheJsonToProvisioningEntity;\n }", "boolean isCacheable();", "public void cacheResult(\n\t\tjava.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> danhMucGiayTos);", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheDisabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface OrganizationService extends EntityService<Organization> {\n\n /**\n * 缓存\n *\n * @param id\n * @return\n * @throws Exception\n */\n public Organization queryCacheOrganizationById(long id) throws Exception;\n}", "@Override\n\tpublic void cacheResult(Campus campus) {\n\t\tentityCache.putResult(CampusModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCampusImpl.class, campus.getPrimaryKey(), campus);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_NAME,\n\t\t\tnew Object[] { campus.getName() }, campus);\n\n\t\tcampus.resetOriginalValues();\n\t}", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "public static void cacheResult(CauHinhThuTienTet cauHinhThuTienTet) {\n\t\tgetPersistence().cacheResult(cauHinhThuTienTet);\n\t}", "@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}", "@Override\r\n\tpublic void cacheResult(List<Share> shares) {\r\n\t\tfor (Share share : shares) {\r\n\t\t\tif (entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, share.getPrimaryKey()) == null) {\r\n\t\t\t\tcacheResult(share);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshare.resetOriginalValues();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void cacheResult(Estado estado) {\n\t\tEntityCacheUtil.putResult(EstadoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEstadoImpl.class, estado.getPrimaryKey(), estado);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NOMBRE,\n\t\t\tnew Object[] { estado.getNombre() }, estado);\n\n\t\testado.resetOriginalValues();\n\t}", "protected boolean shouldUseCache()\n/* */ {\n/* 384 */ return ((isCacheable()) && (this.painters != null) && (this.painters.length > 0)) || (super.shouldUseCache());\n/* */ }", "public void cacheResult(com.Hotel.model.Hotel hotel);", "@Override\n\tpublic void cacheResult(VcmsPortion vcmsPortion) {\n\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey(), vcmsPortion);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_S_C,\n\t\t\tnew Object[] { vcmsPortion.getGroupId(), vcmsPortion.getCode() },\n\t\t\tvcmsPortion);\n\n\t\tvcmsPortion.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(AddressChangeReqDetails addressChangeReqDetails) {\n\t\tEntityCacheUtil.putResult(AddressChangeReqDetailsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAddressChangeReqDetailsImpl.class,\n\t\t\taddressChangeReqDetails.getPrimaryKey(), addressChangeReqDetails);\n\n\t\taddressChangeReqDetails.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(TestUnit testUnit) {\n\t\tentityCache.putResult(TestUnitModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTestUnitImpl.class, testUnit.getPrimaryKey(), testUnit);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_TESTUNITNUMBERANDSPECIALIZATIONID,\n\t\t\tnew Object[] { testUnit.getNumber(), testUnit.getSpecializationId() },\n\t\t\ttestUnit);\n\n\t\ttestUnit.resetOriginalValues();\n\t}", "public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "public void save(Session session) {\n session.save(this);\n ModelMeta meta = ModelMeta.getModelMeta(this.getClass());\n if(meta.isCacheable()){\n RedisTemplate.save(this);\n }\n }", "private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }", "public void setProductCache(MProductCache cache)\n {\n \tm_prodCache = cache;\n }", "public void cacheResult(VcmsArticleType vcmsArticleType);", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(List<DmHistoryGoods> dmHistoryGoodses) {\n\t\tfor (DmHistoryGoods dmHistoryGoods : dmHistoryGoodses) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDmHistoryGoodsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDmHistoryGoodsImpl.class, dmHistoryGoods.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(dmHistoryGoods);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdmHistoryGoods.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "private void expire(final boolean byType) {\n LOG.info(\"expiring cache...\");\n\n try {\n CacheManager cacheManager = _db.getCacheManager();\n if (byType) {\n Class[] typeArray = new Class[5];\n typeArray[0] = LazyContract.class;\n typeArray[1] = LazyContractCategory.class;\n typeArray[2] = LazyPayRoll.class;\n typeArray[3] = LazyAddress.class;\n typeArray[4] = LazyEmployee.class;\n cacheManager.expireCache(typeArray);\n } else {\n Object[] identityArray = new Object[1];\n identityArray[0] = new Identity(\"First\", \"Person\");\n cacheManager.expireCache(LazyEmployee.class, identityArray);\n }\n } catch (Exception e) {\n LOG.error(\"expireCache: exception encountered clearing cache\", e);\n }\n }", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }", "@Override\n\tpublic void cacheResult(List<ScienceAppExecute> scienceAppExecutes) {\n\t\tfor (ScienceAppExecute scienceAppExecute : scienceAppExecutes) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tScienceAppExecuteModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tScienceAppExecuteImpl.class,\n\t\t\t\t\t\tscienceAppExecute.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(scienceAppExecute);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tscienceAppExecute.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "protected void clearCaches() {\n // Primary class LocusDetailProxy cache\n IDaoManager manager = DaoManagerFactory.getManager(getSubsystem());\n if (manager != null) {\n manager.clearCache(org.tair.db.locusdetail.LocusDetailProxy.class.getName());\n }\n\n // Clear nested object caches\n \n // Child LocusUpdateHistory cache\n IDaoManager LocusUpdateHistoryManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusUpdateHistoryManager != null) {\n LocusUpdateHistoryManager.clearCache(org.tair.db.locusdetail.LocusUpdateHistory.class.getName());\n }\n \n // Child ModelFeature cache\n IDaoManager ModelFeatureManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ModelFeatureManager != null) {\n ModelFeatureManager.clearCache(org.tair.db.locusdetail.ModelFeature.class.getName());\n }\n \n // Child LocusGeneModelCdnaAlias cache\n IDaoManager LocusGeneModelCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaAliasManager != null) {\n LocusGeneModelCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdnaAlias.class.getName());\n }\n \n // Child LocusGeneModelCdna cache\n IDaoManager LocusGeneModelCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaManager != null) {\n LocusGeneModelCdnaManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdna.class.getName());\n }\n \n // Child ProteinResourceLink cache\n IDaoManager ProteinResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinResourceLinkManager != null) {\n ProteinResourceLinkManager.clearCache(org.tair.db.locusdetail.ProteinResourceLink.class.getName());\n }\n \n // Child ProteinModelDomain cache\n IDaoManager ProteinModelDomainManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelDomainManager != null) {\n ProteinModelDomainManager.clearCache(org.tair.db.locusdetail.ProteinModelDomain.class.getName());\n }\n \n // Child ProteinModel Proxy cache\n IDaoManager ProteinModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelManager != null) {\n ProteinModelManager.clearCache(org.tair.db.locusdetail.ProteinModel.class.getName());\n }\n \n // Child LocusGeneModelAnnotation cache\n IDaoManager LocusGeneModelAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelAnnotationManager != null) {\n LocusGeneModelAnnotationManager.clearCache(org.tair.db.locusdetail.LocusGeneModelAnnotation.class.getName());\n }\n \n // Child PolymorphismSite cache\n IDaoManager PolymorphismSiteManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (PolymorphismSiteManager != null) {\n PolymorphismSiteManager.clearCache(org.tair.db.locusdetail.PolymorphismSite.class.getName());\n }\n \n // Child LocusGeneModel Proxy cache\n IDaoManager LocusGeneModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelManager != null) {\n LocusGeneModelManager.clearCache(org.tair.db.locusdetail.LocusGeneModel.class.getName());\n }\n \n // Child LocusOtherName cache\n IDaoManager LocusOtherNameManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherNameManager != null) {\n LocusOtherNameManager.clearCache(org.tair.db.locusdetail.LocusOtherName.class.getName());\n }\n \n // Child LocusPhysicalMapCoordinates cache\n IDaoManager LocusPhysicalMapCoordinatesManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPhysicalMapCoordinatesManager != null) {\n LocusPhysicalMapCoordinatesManager.clearCache(org.tair.db.locusdetail.LocusPhysicalMapCoordinates.class.getName());\n }\n \n // Child LocusResourceLink cache\n IDaoManager LocusResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusResourceLinkManager != null) {\n LocusResourceLinkManager.clearCache(org.tair.db.locusdetail.LocusResourceLink.class.getName());\n }\n \n // Child LocusComment cache\n IDaoManager LocusCommentManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCommentManager != null) {\n LocusCommentManager.clearCache(org.tair.db.locusdetail.LocusComment.class.getName());\n }\n \n // Child LocusAttribution cache\n IDaoManager LocusAttributionManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAttributionManager != null) {\n LocusAttributionManager.clearCache(org.tair.db.locusdetail.LocusAttribution.class.getName());\n }\n \n // Child LocusOtherSymbol cache\n IDaoManager LocusOtherSymbolManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherSymbolManager != null) {\n LocusOtherSymbolManager.clearCache(org.tair.db.locusdetail.LocusOtherSymbol.class.getName());\n }\n \n // Child LocusPolymorphism Proxy cache\n IDaoManager LocusPolymorphismManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPolymorphismManager != null) {\n LocusPolymorphismManager.clearCache(org.tair.db.locusdetail.LocusPolymorphism.class.getName());\n }\n \n // Child ReferencedLocus cache\n IDaoManager ReferencedLocusManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferencedLocusManager != null) {\n ReferencedLocusManager.clearCache(org.tair.db.locusdetail.ReferencedLocus.class.getName());\n }\n \n // Child Reference Proxy cache\n IDaoManager ReferenceManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferenceManager != null) {\n ReferenceManager.clearCache(org.tair.db.locusdetail.Reference.class.getName());\n }\n \n // Child LocusBac cache\n IDaoManager LocusBacManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusBacManager != null) {\n LocusBacManager.clearCache(org.tair.db.locusdetail.LocusBac.class.getName());\n }\n \n // Child LocusEstAlias cache\n IDaoManager LocusEstAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusEstAliasManager != null) {\n LocusEstAliasManager.clearCache(org.tair.db.locusdetail.LocusEstAlias.class.getName());\n }\n \n // Child LocuslEst cache\n IDaoManager LocuslEstManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocuslEstManager != null) {\n LocuslEstManager.clearCache(org.tair.db.locusdetail.LocuslEst.class.getName());\n }\n \n // Child LocusCdnaAlias cache\n IDaoManager LocusCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaAliasManager != null) {\n LocusCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusCdnaAlias.class.getName());\n }\n \n // Child LocusCdna cache\n IDaoManager LocusCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaManager != null) {\n LocusCdnaManager.clearCache(org.tair.db.locusdetail.LocusCdna.class.getName());\n }\n \n // Child LocusAnnotation cache\n IDaoManager LocusAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAnnotationManager != null) {\n LocusAnnotationManager.clearCache(org.tair.db.locusdetail.LocusAnnotation.class.getName());\n }\n }", "@Override\n\tpublic void setUseCaches(boolean usecaches) {\n\t\tthis.usecaches.add(usecaches);\n\t}", "public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }", "public void refreshObjectCache();", "public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }", "@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}", "@Override\n\tpublic void cacheResult(List<Campus> campuses) {\n\t\tfor (Campus campus : campuses) {\n\t\t\tif (entityCache.getResult(CampusModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCampusImpl.class, campus.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(campus);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcampus.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(PlanoSaude planoSaude);", "AgentPolicyBuilder setBypassCache(boolean bypassCache);", "@Override\n\tpublic void cacheResult(List<Approvatore> approvatores) {\n\t\tfor (Approvatore approvatore : approvatores) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\t\tApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tApprovatoreImpl.class, approvatore.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(approvatore);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tapprovatore.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6606858", "0.65858316", "0.63023096", "0.6081885", "0.59853673", "0.59647447", "0.59143364", "0.58173996", "0.5798492", "0.5739556", "0.573742", "0.5728869", "0.5712323", "0.5703635", "0.5671211", "0.5613931", "0.55721354", "0.555143", "0.55343276", "0.5513339", "0.5511109", "0.5509478", "0.5507556", "0.550138", "0.54924345", "0.54750174", "0.5465912", "0.5456079", "0.54502827", "0.54349905", "0.5421894", "0.542056", "0.5413754", "0.5406192", "0.5399869", "0.53927207", "0.5391719", "0.53914016", "0.5378749", "0.53782344", "0.53703195", "0.53641057", "0.5359515", "0.53589267", "0.53533584", "0.5349171", "0.53468984", "0.53467834", "0.5338152", "0.53358954", "0.5334651", "0.5304521", "0.52907383", "0.5285019", "0.5276425", "0.5267428", "0.52591854", "0.52505255", "0.5247297", "0.52356815", "0.5224745", "0.52120036", "0.52103484", "0.52079445", "0.5195758", "0.5195701", "0.51930875", "0.5191003", "0.51521146", "0.5151919", "0.5149602", "0.51489025", "0.51472765", "0.51393116", "0.51387024", "0.51306856", "0.51257265", "0.5123579", "0.51213306", "0.5117099", "0.51157916", "0.5106297", "0.5095654", "0.50844175", "0.50832033", "0.5078859", "0.5072032", "0.5067653", "0.506665", "0.5062632", "0.50623304", "0.5059426", "0.50559366", "0.5053057", "0.50447655", "0.5043554", "0.5041963", "0.5041759", "0.50396806", "0.5037667" ]
0.6885808
0
Clears the cache for all phat vaies. The EntityCache and FinderCache are both cleared by this method.
@Override public void clearCache() { entityCache.clearCache(PhatVayImpl.class); finderCache.clearCache(FINDER_CLASS_NAME_ENTITY); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }", "public void clear() {\n cache.clear();\n }", "protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplications.clearInstance();\n TypeQualifierAnnotation.clearInstance();\n TypeQualifierValue.clearInstance();\n // Make sure the codebases on the classpath are closed\n AnalysisContext.removeCurrentAnalysisContext();\n Global.removeAnalysisCacheForCurrentThread();\n MethodInfo.clearCaches();\n if (classPath != null) {\n classPath.close();\n }\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public void clearCache() {\n reflectorCache.clear();\n }", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public void clear() {\n this.cache.clear();\n }", "public void clear() {\n\t\tthis.cache.clear();\n\t}", "@Override\n\tpublic void clearCache(PhatVay phatVay) {\n\t\tentityCache.removeResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tphatVay.getPrimaryKey());\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\n\t\tclearUniqueFindersCache((PhatVayModelImpl)phatVay, true);\n\t}", "public void clearCache() {\n textureCache.clear();\n modelCache.clear();\n blockModelCache.clear();\n }", "public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}", "public void clear()\n {\n pages.stream().forEach((page) -> {\n page.clearCache();\n });\n\n pages.clear();\n listeners.clear();\n occupiedEntries.clear();\n }", "public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }", "public void clearCache() {\n\n\t\t// clearing form soft reference\n\t\tif (softCache != null) {\n\t\t\tsoftCache.clear();\n\t\t}\n\n\t\t// clearing from cache directory\n\t\tdeleteCacheFiles();\n\n\t}", "public void clearCache();", "public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }", "public static void clearCache() {\n cacheKeys.clear();\n cacheValues.clear();\n }", "public static void clearAllCache() {\n try {\n sLruCache.evictAll();\n sDiskLruCache.delete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void clearCache() {\n mCache.clear();\n }", "public static void clearCache(){\n cache.clear();\n cache2.clear();\n }", "public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}", "public void clearCache() {\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\t}", "public final void clear() {\r\n variablesCache.clear();\r\n }", "void clearCache();", "void clearCache();", "@Override\n public void clearCache() {\n }", "public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }", "public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}", "public abstract void clearCache();", "public void clearAllAppMapCaches(){\n\t\tappmaps.clear();\n\t}", "public static void clearCache() {\n CACHE.remove();\n }", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "private void clearCache() {\r\n for (int i = 1; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n neurons[i][j].clearCache();\r\n }\r\n }\r\n }", "protected void clearCaches() {\n // Primary class LocusDetailProxy cache\n IDaoManager manager = DaoManagerFactory.getManager(getSubsystem());\n if (manager != null) {\n manager.clearCache(org.tair.db.locusdetail.LocusDetailProxy.class.getName());\n }\n\n // Clear nested object caches\n \n // Child LocusUpdateHistory cache\n IDaoManager LocusUpdateHistoryManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusUpdateHistoryManager != null) {\n LocusUpdateHistoryManager.clearCache(org.tair.db.locusdetail.LocusUpdateHistory.class.getName());\n }\n \n // Child ModelFeature cache\n IDaoManager ModelFeatureManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ModelFeatureManager != null) {\n ModelFeatureManager.clearCache(org.tair.db.locusdetail.ModelFeature.class.getName());\n }\n \n // Child LocusGeneModelCdnaAlias cache\n IDaoManager LocusGeneModelCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaAliasManager != null) {\n LocusGeneModelCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdnaAlias.class.getName());\n }\n \n // Child LocusGeneModelCdna cache\n IDaoManager LocusGeneModelCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaManager != null) {\n LocusGeneModelCdnaManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdna.class.getName());\n }\n \n // Child ProteinResourceLink cache\n IDaoManager ProteinResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinResourceLinkManager != null) {\n ProteinResourceLinkManager.clearCache(org.tair.db.locusdetail.ProteinResourceLink.class.getName());\n }\n \n // Child ProteinModelDomain cache\n IDaoManager ProteinModelDomainManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelDomainManager != null) {\n ProteinModelDomainManager.clearCache(org.tair.db.locusdetail.ProteinModelDomain.class.getName());\n }\n \n // Child ProteinModel Proxy cache\n IDaoManager ProteinModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelManager != null) {\n ProteinModelManager.clearCache(org.tair.db.locusdetail.ProteinModel.class.getName());\n }\n \n // Child LocusGeneModelAnnotation cache\n IDaoManager LocusGeneModelAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelAnnotationManager != null) {\n LocusGeneModelAnnotationManager.clearCache(org.tair.db.locusdetail.LocusGeneModelAnnotation.class.getName());\n }\n \n // Child PolymorphismSite cache\n IDaoManager PolymorphismSiteManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (PolymorphismSiteManager != null) {\n PolymorphismSiteManager.clearCache(org.tair.db.locusdetail.PolymorphismSite.class.getName());\n }\n \n // Child LocusGeneModel Proxy cache\n IDaoManager LocusGeneModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelManager != null) {\n LocusGeneModelManager.clearCache(org.tair.db.locusdetail.LocusGeneModel.class.getName());\n }\n \n // Child LocusOtherName cache\n IDaoManager LocusOtherNameManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherNameManager != null) {\n LocusOtherNameManager.clearCache(org.tair.db.locusdetail.LocusOtherName.class.getName());\n }\n \n // Child LocusPhysicalMapCoordinates cache\n IDaoManager LocusPhysicalMapCoordinatesManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPhysicalMapCoordinatesManager != null) {\n LocusPhysicalMapCoordinatesManager.clearCache(org.tair.db.locusdetail.LocusPhysicalMapCoordinates.class.getName());\n }\n \n // Child LocusResourceLink cache\n IDaoManager LocusResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusResourceLinkManager != null) {\n LocusResourceLinkManager.clearCache(org.tair.db.locusdetail.LocusResourceLink.class.getName());\n }\n \n // Child LocusComment cache\n IDaoManager LocusCommentManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCommentManager != null) {\n LocusCommentManager.clearCache(org.tair.db.locusdetail.LocusComment.class.getName());\n }\n \n // Child LocusAttribution cache\n IDaoManager LocusAttributionManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAttributionManager != null) {\n LocusAttributionManager.clearCache(org.tair.db.locusdetail.LocusAttribution.class.getName());\n }\n \n // Child LocusOtherSymbol cache\n IDaoManager LocusOtherSymbolManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherSymbolManager != null) {\n LocusOtherSymbolManager.clearCache(org.tair.db.locusdetail.LocusOtherSymbol.class.getName());\n }\n \n // Child LocusPolymorphism Proxy cache\n IDaoManager LocusPolymorphismManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPolymorphismManager != null) {\n LocusPolymorphismManager.clearCache(org.tair.db.locusdetail.LocusPolymorphism.class.getName());\n }\n \n // Child ReferencedLocus cache\n IDaoManager ReferencedLocusManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferencedLocusManager != null) {\n ReferencedLocusManager.clearCache(org.tair.db.locusdetail.ReferencedLocus.class.getName());\n }\n \n // Child Reference Proxy cache\n IDaoManager ReferenceManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferenceManager != null) {\n ReferenceManager.clearCache(org.tair.db.locusdetail.Reference.class.getName());\n }\n \n // Child LocusBac cache\n IDaoManager LocusBacManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusBacManager != null) {\n LocusBacManager.clearCache(org.tair.db.locusdetail.LocusBac.class.getName());\n }\n \n // Child LocusEstAlias cache\n IDaoManager LocusEstAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusEstAliasManager != null) {\n LocusEstAliasManager.clearCache(org.tair.db.locusdetail.LocusEstAlias.class.getName());\n }\n \n // Child LocuslEst cache\n IDaoManager LocuslEstManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocuslEstManager != null) {\n LocuslEstManager.clearCache(org.tair.db.locusdetail.LocuslEst.class.getName());\n }\n \n // Child LocusCdnaAlias cache\n IDaoManager LocusCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaAliasManager != null) {\n LocusCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusCdnaAlias.class.getName());\n }\n \n // Child LocusCdna cache\n IDaoManager LocusCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaManager != null) {\n LocusCdnaManager.clearCache(org.tair.db.locusdetail.LocusCdna.class.getName());\n }\n \n // Child LocusAnnotation cache\n IDaoManager LocusAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAnnotationManager != null) {\n LocusAnnotationManager.clearCache(org.tair.db.locusdetail.LocusAnnotation.class.getName());\n }\n }", "public void clearSofCache() {\n\n\t\tif (views != null) {\n\t\t\tviews.clear();\n\t\t}\n\n\t\tif (imageViews != null) {\n\t\t\timageViews.clear();\n\t\t}\n\t}", "@Override\n\tpublic void clearCache() {\n\t\tentityCache.clearCache(AnswerImpl.class);\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_ENTITY);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\t}", "public void cleanCaches() {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n Set<String> used = new HashSet<>();\n // Get list of queries used by graphs\n for (GraphConfig graph : workspace.graphs) {\n graph.accept(new GraphVisitor() {\n\n @Override\n public void visit(HistogramConfig graph) {\n try {\n used.add(DatabaseQueryFactory.generateSQL(graph.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n\n @Override\n public void visit(LineGraphConfig graph) {\n for (LineConfig line : graph.lines) {\n try {\n used.add(DatabaseQueryFactory.generateSQL(line.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n }\n });\n }\n // Get list of queries used by statistics\n for (StatisticConfig statistic : workspace.statistics) {\n for (Metric metric : Metric.getStatisticTypes()) {\n statistic.query.metric = metric;\n try {\n used.add(DatabaseQueryFactory.generateSQL(statistic.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n statistic.query.metric = null;\n }\n\n // Remove any cache that is not used\n Iterator<String> itrCaches = workspace.caches.keySet().iterator();\n while (itrCaches.hasNext()) {\n String cache = itrCaches.next();\n if (!used.contains(cache)) {\n itrCaches.remove();\n }\n }\n }", "public void clear() {\n cache = new BigDecimal[cache.length];\n }", "public final void clearPropertyCache()\n {\n this.cache.clear();\n }", "public void clear() {\n tableCache.invalidateAll();\n }", "private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}", "public static void clear() {\n\t\tmemoryCache.clear();\n\n\t\t// Remove everything from file cache\n\t\tFile cachedFileDir = new File(diskCachePath);\n\t\tif (cachedFileDir.exists() && cachedFileDir.isDirectory()) {\n\t\t\tFile[] cachedFiles = cachedFileDir.listFiles();\n\t\t\tfor (File f : cachedFiles) {\n\t\t\t\tif (f.exists() && f.isFile()) {\n\t\t\t\t\tf.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }", "public void flush() {\n final Collection<MappedPage> cachedPages = cache.getValues();\n for (final MappedPage mappedPage : cachedPages)\n mappedPage.flush();\n }", "public static void clearCache() {\r\n types = null;\r\n typesById = null;\r\n updatedBuiltinTypes = false;\r\n ChangeLogTypeBuiltin.internal_clearCache();\r\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public void clearCache() {\n\t\troutes_.clearCache();\n\t}", "public void clearCaches() {\n if (mImageCache != null) {\n mImageCache.clearCaches();\n }\n\n // clear the keys of images we've already downloaded\n sKeys.clear();\n }", "public static void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }", "public void clear() {\n\t\tjobInstanceDao.clear();\n\t\tjobExecutionDao.clear();\n\t\tstepExecutionDao.clear();\n\t\texecutionContextDao.clear();\n\t}", "static void clearCache() {\n CONFIG_VALUES = null;\n RUN_MODE = null;\n }", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void resetCache() {\n\t\tlogicClassNames = new HashMap<String, String>();\n\t}", "public void clearCache()\n/* */ {\n/* 330 */ if (!this.clearLocalCacheOnly) {\n/* 331 */ for (Painter p : this.painters) {\n/* 332 */ if ((p instanceof AbstractPainter)) {\n/* 333 */ AbstractPainter ap = (AbstractPainter)p;\n/* 334 */ ap.clearCache();\n/* */ }\n/* */ }\n/* */ }\n/* 338 */ super.clearCache();\n/* */ }", "public void clearCache() {\n constructorCache.clear();\n }", "public static void clearCache() {\r\n\t\tsInstance.mSettings.clear();\r\n\t}", "public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}", "public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }", "void resetCache();", "public void reset() {\n\t\tfor (Entry<TileCoordinate, DijkstraNode> entry: this.cache.entrySet()) {\n\t\t\tentry.getValue().reset();\n\t\t}\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "void clearDocCache(){\n docMainCache.invalidateAll();\n docOptionalCache.invalidateAll();\n docListCache.invalidateAll();\n }", "public void clearMemoryCache() {\r\n cache.evictAll();\r\n Log.d(TAG, \"Manually cleaned complete cache.\");\r\n }", "private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}" ]
[ "0.7604908", "0.7306997", "0.72897017", "0.72192526", "0.72192526", "0.72192526", "0.71907574", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71165323", "0.70060885", "0.6996289", "0.69918066", "0.6949773", "0.6935728", "0.6934138", "0.689802", "0.6852067", "0.68333757", "0.6779705", "0.67747617", "0.67398846", "0.67229563", "0.67210215", "0.6690039", "0.66817456", "0.6664135", "0.6664135", "0.66431844", "0.65990365", "0.65677404", "0.65520775", "0.65411764", "0.65137917", "0.64780813", "0.64529353", "0.64494467", "0.64452785", "0.6442022", "0.64383054", "0.64330465", "0.6415937", "0.6412573", "0.640829", "0.6400501", "0.6394908", "0.6390872", "0.63846457", "0.6373509", "0.6369116", "0.63330805", "0.63248986", "0.63234943", "0.6322077", "0.63103944", "0.6301623", "0.6298652", "0.6298652", "0.62892234", "0.6282739", "0.6280454", "0.62776804", "0.6250768", "0.62443316", "0.6231487", "0.62289745", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6203469", "0.6202905", "0.61913496", "0.6182573", "0.6172444", "0.6172444" ]
0.734089
1
Clears the cache for the phat vay. The EntityCache and FinderCache are both cleared by this method.
@Override public void clearCache(PhatVay phatVay) { entityCache.removeResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, phatVay.getPrimaryKey()); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); clearUniqueFindersCache((PhatVayModelImpl)phatVay, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void clearCache() {\n\t\tentityCache.clearCache(PhatVayImpl.class);\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_ENTITY);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\t}", "public void clear() {\n cache.clear();\n }", "public void clearCache() {\n reflectorCache.clear();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public void clear() {\n this.cache.clear();\n }", "public void clearCache();", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public void clear() {\n\t\tthis.cache.clear();\n\t}", "public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}", "public void clearCache() {\n\n\t\t// clearing form soft reference\n\t\tif (softCache != null) {\n\t\t\tsoftCache.clear();\n\t\t}\n\n\t\t// clearing from cache directory\n\t\tdeleteCacheFiles();\n\n\t}", "void clearCache();", "void clearCache();", "@Override\n public void clearCache() {\n }", "public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }", "public void clearCache() {\n textureCache.clear();\n modelCache.clear();\n blockModelCache.clear();\n }", "public void clearCache() {\n mCache.clear();\n }", "public abstract void clearCache();", "protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplications.clearInstance();\n TypeQualifierAnnotation.clearInstance();\n TypeQualifierValue.clearInstance();\n // Make sure the codebases on the classpath are closed\n AnalysisContext.removeCurrentAnalysisContext();\n Global.removeAnalysisCacheForCurrentThread();\n MethodInfo.clearCaches();\n if (classPath != null) {\n classPath.close();\n }\n }", "public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}", "public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public static void clearCache(){\n cache.clear();\n cache2.clear();\n }", "@Override\n\tpublic void cacheResult(PhatVay phatVay) {\n\t\tentityCache.putResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tphatVay.getPrimaryKey(), phatVay);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchBySoKU, new Object[] {phatVay.getSoKU()}, phatVay);\n\n\t\tphatVay.resetOriginalValues();\n\t}", "public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}", "public void clear() {\n cache = new BigDecimal[cache.length];\n }", "public static void clearCache() {\n CACHE.remove();\n }", "public void clearSofCache() {\n\n\t\tif (views != null) {\n\t\t\tviews.clear();\n\t\t}\n\n\t\tif (imageViews != null) {\n\t\t\timageViews.clear();\n\t\t}\n\t}", "public void clear()\n {\n pages.stream().forEach((page) -> {\n page.clearCache();\n });\n\n pages.clear();\n listeners.clear();\n occupiedEntries.clear();\n }", "public final void clearPropertyCache()\n {\n this.cache.clear();\n }", "@Override\n\tpublic void clearCache(Answer answer) {\n\t\tentityCache.removeResult(\n\t\t\tentityCacheEnabled, AnswerImpl.class, answer.getPrimaryKey());\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\n\t\tclearUniqueFindersCache((AnswerModelImpl)answer, true);\n\t}", "public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }", "public void clearCache() {\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\t}", "public static void clearCache() {\n cacheKeys.clear();\n cacheValues.clear();\n }", "public static void clearCache() {\r\n\t\tsInstance.mSettings.clear();\r\n\t}", "public final void clear() {\r\n variablesCache.clear();\r\n }", "void resetCache();", "@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tphatVay.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "private void clearCache(T Cache) {\r\n\t\t\r\n\t\tcache.clear();\r\n\t\t\r\n\t}", "public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}", "public static void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }", "public void clearCache() {\n try {\n GenericResponse genericResponse = apiInvoker.clearCache();\n System.out.println(\"Clear Cache Result: \" + genericResponse.getResult());\n\n } catch (ApplicationException ae) {\n logger.error(ae.getName(), ae);\n System.out.println(ae.toString());\n if (ae.getCause() != null) {\n System.out.println(ae.getCause().toString());\n }\n\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n System.out.println(\"An error occurred clearing the CabTrip server's cache.\");\n System.out.println(e.toString());\n System.exit(1);\n }\n }", "@Override\n\tpublic void clearCache() {\n\t\tentityCache.clearCache(AnswerImpl.class);\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_ENTITY);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\t}", "public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }", "@Override\n @CacheEvict(value=AccountingPeriod.CACHE_NAME,allEntries=true)\n public void clearCache() {\n }", "public static void clear() {\n\t\tmemoryCache.clear();\n\n\t\t// Remove everything from file cache\n\t\tFile cachedFileDir = new File(diskCachePath);\n\t\tif (cachedFileDir.exists() && cachedFileDir.isDirectory()) {\n\t\t\tFile[] cachedFiles = cachedFileDir.listFiles();\n\t\t\tfor (File f : cachedFiles) {\n\t\t\t\tif (f.exists() && f.isFile()) {\n\t\t\t\t\tf.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void clearCache() {\n\t\troutes_.clearCache();\n\t}", "@Override\n\tpublic void clear() {\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\tcache.clear();\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public void clearDiskCache()\n {\n clearCache(cacheDirectory);\n }", "void destroy() {\n destroyCache();\n }", "public static void clearAllCache() {\n try {\n sLruCache.evictAll();\n sDiskLruCache.delete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }", "public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }", "public void clearCache() {\n constructorCache.clear();\n }", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}", "public void clear() {\n tableCache.invalidateAll();\n }", "public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}", "public void clearSessionCache() {\n ofy().clear();\n }", "public void clearMemoryCache() {\r\n cache.evictAll();\r\n Log.d(TAG, \"Manually cleaned complete cache.\");\r\n }", "private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }", "static void clearCache() {\n CONFIG_VALUES = null;\n RUN_MODE = null;\n }", "@Override\n public int clear() {\n return deleteContents(getCacheDir());\n }", "public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}", "public void clearCache(int cacheSize) {\n\t\tparamCache = new Parameters[cacheSize];\n\t\tcommandCache = new JasminCommand[cacheSize];\n\t\tcached = new boolean[cacheSize];\n\t}", "public void resetCache() {\n\t\tlogicClassNames = new HashMap<String, String>();\n\t}", "public void clear() {\n\t\t//System.err.println(\"FCache::clear() dont know how to clear m_leafCache\");\n\t\tfor (int i = 0; i < m_TopOfBranche.size(); i++) {\n\t\t\tCacheObject o = m_TopOfBranche.elementAt(i);\n\t\t\tif (o != null) {\n\t\t\t\to.m_F = null;\n\t\t\t}\n\t\t}\n\t\t//m_TopOfBranche.removeAllElements();\n\t\tfor (int iNode = 0; iNode < m_BottomOfBrancheID.length; iNode++) {\n\t\t\tclearNode(iNode);\n\t\t}\n\t\tg_nID = 0;\n\t}", "public static void clearCache() {\r\n types = null;\r\n typesById = null;\r\n updatedBuiltinTypes = false;\r\n ChangeLogTypeBuiltin.internal_clearCache();\r\n }", "protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }", "@Override\n\t@CacheEvict(value=CacheName.CACHE_PERSONINFO, allEntries=true)\n\tpublic void purgeCache() {\n\t}", "void clearDocCache(){\n docMainCache.invalidateAll();\n docOptionalCache.invalidateAll();\n docListCache.invalidateAll();\n }", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}" ]
[ "0.8042808", "0.6955579", "0.6862343", "0.6849168", "0.6849168", "0.6849168", "0.6835673", "0.6789565", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.66869587", "0.65680146", "0.65639234", "0.65419817", "0.65419817", "0.65356857", "0.6534183", "0.64825577", "0.647785", "0.6443741", "0.63835216", "0.6366515", "0.6354818", "0.63220507", "0.628181", "0.6235848", "0.6197757", "0.6187839", "0.61750156", "0.61440194", "0.6130043", "0.6114156", "0.6102638", "0.6096595", "0.6063607", "0.6059977", "0.60437244", "0.60366005", "0.60315937", "0.60292464", "0.59857213", "0.59599483", "0.5950151", "0.5902056", "0.58762544", "0.5876229", "0.58729005", "0.5872112", "0.58617336", "0.5861206", "0.5855059", "0.58507127", "0.5812052", "0.5809782", "0.5803672", "0.58005273", "0.57751006", "0.5773214", "0.5770818", "0.5755885", "0.5740475", "0.5731272", "0.57272816", "0.5718439", "0.57101846", "0.56861556", "0.5667227", "0.5663841", "0.5658766", "0.5653529", "0.5648449", "0.562378", "0.5616448", "0.5616448", "0.5616448", "0.5616448", "0.5616448", "0.5616448", "0.5616448", "0.5616448", "0.5616448", "0.5616448" ]
0.8283865
0
Creates a new phat vay with the primary key. Does not add the phat vay to the database.
@Override public PhatVay create(long phatVayId) { PhatVay phatVay = new PhatVayImpl(); phatVay.setNew(true); phatVay.setPrimaryKey(phatVayId); phatVay.setCompanyId(companyProvider.getCompanyId()); return phatVay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy createVanBanPhapQuy(\n\t\tlong id) {\n\t\treturn _vanBanPhapQuyLocalService.createVanBanPhapQuy(id);\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", "@Override\n\tpublic PhatVay findByPrimaryKey(long phatVayId)\n\t\tthrows NoSuchPhatVayException {\n\n\t\treturn findByPrimaryKey((Serializable)phatVayId);\n\t}", "PrimaryKey createPrimaryKey();", "public PlanoSaude create(long plano_id);", "public AnimeTV createAnimeTV(AnimeTV animeTV) throws DbException {\n Connection conn = null;\n try {\n conn = DbConnFactory.factory(dataSourceName);\n return animeTVAccessor.insert(animeTV, conn);\n } finally {\n DataBaseUtil.closeConnection(conn);\n }\n }", "int insert(ActivityHongbaoPrize record);", "void insert(PaymentTrade record);", "void insert(VRpWkProvinceGprsCsBh record);", "public void insert(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insert\", record);\r\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "public void insert(VRpHrStp record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_HR_STP.ibatorgenerated_insert\", record);\r\n }", "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t}\n\n\t\treturn phatVay;\n\t}", "int insert(PurchasePayment record);", "int insert(Lbm83ChohyokanriPkey record);", "int insert(PmKeyDbObj record);", "int insert(AlipayInfo record);", "int insert(Lbt72TesuryoSumDPkey record);", "public void newConcert(DatabaseHandler dbh) throws SQLException {\n\t\tString query = \"INSERT INTO concert VALUES \" +\n\t\t\t\t\"(DEFAULT, ?, 5, ?, 0, ?, ?, ?)\";\n\t\tPreparedStatement prepStatement = dbh.prepareQuery(query);\n\t\tprepStatement.setObject(1, this.startDate, Types.DATE);\n\t\tprepStatement.setInt(2, this.ticketPrice);\n\t\tprepStatement.setInt(3, this.artistID);\n\t\tprepStatement.setInt(4, this.offerID);\n\t\tprepStatement.setInt(5, this.stageID);\n\n\t\tprepStatement.executeUpdate();\n\t}", "public void insert(Deptpk record) throws SQLException {\r\n sqlMapClient.insert(\"SCOTT_DEPTPK.abatorgenerated_insert\", record);\r\n }", "int insert(SdkMobileVcode record);", "int insert(BusinessRepayment record);", "@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{desKey,jdbcType=VARCHAR}, \",\n \"#{parkids,jdbcType=VARCHAR})\"\n })\n int insert(TApikey record);", "int insert(WayShopCateRoot record);", "int insert(ParkCurrent record);", "int insert(cskaoyan_mall_order_goods record);", "@Override\n\tpublic Penguin createPenguin(Penguin penguin) {\n\t\tPenguin saved = this.repo.save(penguin);\n\t\treturn saved; // penguin with an id (has been saved)\n\t}", "int insert(InternalTradeEpa022016 record);", "public void insert(VRpDyHlrforbe record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_HLR_FOR_BE.ibatorgenerated_insert\", record);\r\n }", "public com.alain.puntocoma.model.Catalogo create(long catalogoId);", "PK create(T newInstance);", "int insert(TmpUserPayAccount record);", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "public void create(Pizza pizza){\n pizza.setID(counter++);\n pizzas.add(pizza);\n }", "int insert(Payment record);", "public com.Hotel.model.Hotel create(long hotelId);", "int insert(Kaiwa record);", "public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }", "int insert(PayLogInfoPo record);", "@Override\n\tpublic Approvatore create(long id_approvatore) {\n\t\tApprovatore approvatore = new ApprovatoreImpl();\n\n\t\tapprovatore.setNew(true);\n\t\tapprovatore.setPrimaryKey(id_approvatore);\n\n\t\treturn approvatore;\n\t}", "int insert(PmPost record);", "public void insert(VRpDyTrxTotal record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_TRX_TOTAL.ibatorgenerated_insert\", record);\r\n }", "int insert(Appraise record);", "public void insertSelective(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insertSelective\", record);\r\n }", "int insert(GoodsPo record);", "int insert(UserPonumberGoods record);", "void insertSelective(VRpWkProvinceGprsCsBh record);", "public void createTransaction(TransactionType type, double value, int id, int customerVat) throws ApplicationException {\n\t\ttry{\n\t\t\tTransaction t = new Transaction(type, value, id, customerVat);\n\t\t\tem.persist(t);\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow new ApplicationException(\"Something Shady happened: Error creating Transaction\", e);\n\t\t}\n\t\t\n\t}", "int insert(SdkPhone record);", "int insert(CodeBuildProcedure record);", "int insert(FinMonthlySnapModel record);", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public void insertSelective(VRpHrStp record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_HR_STP.ibatorgenerated_insertSelective\", record);\r\n }", "int insert(WstatTeachingClasshourTeacher record);", "@Override\n\tpublic ScienceAppExecute create(ScienceAppExecutePK scienceAppExecutePK) {\n\t\tScienceAppExecute scienceAppExecute = new ScienceAppExecuteImpl();\n\n\t\tscienceAppExecute.setNew(true);\n\t\tscienceAppExecute.setPrimaryKey(scienceAppExecutePK);\n\n\t\treturn scienceAppExecute;\n\t}", "int insert(TCpySpouse record);", "int insert(RepaymentPlanInfoUn record);", "int insert(PrescriptionVerifyRecordDetail record);", "int insertSelective(ActivityHongbaoPrize record);", "int insertSelective(AlipayInfo record);", "int insertSelective(PurchasePayment record);", "@Override //inserisce un viaggio nel db // \r\n\tpublic boolean create(Viaggio viaggio) {\r\n\t\tboolean esito=false;\r\n\t\tif(viaggio==null) {\r\n\t\t\tSystem.out.println( \"insert(): failed to insert a null entry\");\r\n\t\t\t}\r\n\t\ttry {\r\n\t\t\tPreparedStatement prep_stmt = conn.prepareStatement(MssqlViaggioDAO.insert);\r\n\t\t\tprep_stmt.clearParameters();\r\n\t\t\t//prep_stmt.setInt(1,viaggio.getIdViaggio());\r\n\t\t\tint i=1;\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getCreatore().getId());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getTitolo());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getDestinazione());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getDescrizione());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getLingua());\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getBudget());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getLuogopartenza());\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getStato().ordinal());\r\n\t\t\tprep_stmt.setDate(i++,viaggio.getDatainizio());\r\n\t\t\tprep_stmt.setDate(i++,viaggio.getDatafine());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getImmaginiProfilo());\t\t\r\n\t\t\tif(prep_stmt.executeUpdate()>0) esito= true;\r\n\t\t\telse esito= false;\r\n\t\t\tprep_stmt.close();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"create(): failed to insert entry: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t\treturn esito;\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public com.huqiwen.demo.book.model.Books create(long bookId);", "int insert(WizardValuationHistoryEntity record);", "@Override\r\n\tpublic int insert(PayRecord record) {\n\t\treturn this.session.insert(\"com.icss.dao.PayRecordMapper.insert\", record);\r\n\t}", "int insert(TBBearPer record);", "@Override\n\tpublic TvShow create(long tvShowId) {\n\t\tTvShow tvShow = new TvShowImpl();\n\n\t\ttvShow.setNew(true);\n\t\ttvShow.setPrimaryKey(tvShowId);\n\n\t\tString uuid = PortalUUIDUtil.generate();\n\n\t\ttvShow.setUuid(uuid);\n\n\t\treturn tvShow;\n\t}", "public boolean createPalvelupiste(Palvelupiste palvelupiste);", "public long insertNewRow(){\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_PAIN_ASSESSMENT_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_PRES_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_ADMIN_NUM, \"0\");\n initialValues.put(KEY_NERVE_BLOCK_NUM, \"0\");\n initialValues.put(KEY_ALTERNATIVE_PAIN_RELIEF_NUM, \"0\");\n long id = db.insert(DATA_TABLE, null, initialValues);\n\n String value = MainActivity.deviceID + \"-\" + id;\n updateFieldData(id, KEY_UNIQUEID, value);\n\n return id;\n }", "void insertCustomerDDPay(CustomerDDPay cddp);", "void insert(IrpSignInfo record) throws SQLException;", "int insert(NeeqCompanyAccountingFirmOnline record);", "void insert(VRpMnBscHoIbc record);", "public void create(PessoasEspacosDeCafe pec) {\n\n Connection con = ConnectionFactory.getConnection();\n PreparedStatement stmt = null;\n\n try {\n stmt = con.prepareStatement(\"INSERT INTO PessoasEspacosDeCafe (pessoasIdPessoas, espacosDeCafeIdEspacosDeCafe)VALUES(?, ?)\");\n\n stmt.setInt(1, pec.getPessoasIdPessoas());\n stmt.setInt(2, pec.getEspacosDeCafeIdEspacosDeCafe());\n\n stmt.executeUpdate();\n\n JOptionPane.showMessageDialog(null, \"Salvo com Sucesso!\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao Salvar: \" + ex);\n } finally {\n ConnectionFactory.closeConnection(con, stmt);\n }\n }", "int insertSelective(PmKeyDbObj record);", "int insertSelective(Lbm83ChohyokanriPkey record);", "int insertSelective(WayShopCateRoot record);", "int insert(TdxCompanyTaxArrears record);", "int insert(ExamineApproveResult record);", "int insertSelective(SdkMobileVcode record);", "int insert(CartDO record);", "private static void addTV() {\n\n TV newTV = new TV(); // create new TV object\n\n String TVMake = Validate.readString(ASK_MAKE_TV); // Ask for the make and store input\n\n newTV.setMake(TVMake); // set make of TV based on user input\n\n int screenSize = Validate.readInt(ASK_SCREENSIZE_TV); // Ask for the screen size\n\n newTV.setScreenSize(screenSize); // set screensize of TV based on user input\n\n int type = Validate.readInt(ASK_TYPE_TV,3); // Ask for type of TV\n\n newTV.setType(type); // set type of TV based on user input\n\n boolean capableOf3D = Validate.readBoolean(ASK_3D_TV); // Ask if 3d compatible\n\n newTV.set3DCapability(capableOf3D); // set 3d capability of TV based on user input\n\n double price = Validate.readDouble(ASK_PRICE_TV); // Ask for price of TV\n\n newTV.setPrice(price); // set price of TV based on user input\n\n ProductDB.addProduct(newTV); // add new TV to the product DB\n\n newTV.saveTV(); // saves new tv to productDB text file\n\n }", "int insert(HotelType record);", "@Override\r\n\tpublic int createPrice(ProductRaw_Price price) {\n\t\tprice.setStatus(0);\r\n\t\treturn productRaw_PriceDao.insert(price);\r\n\t}", "@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;", "public void insert(VRpDyCellGprsCsBh record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_CELL_GPRS_CS_BH.ibatorgenerated_insert\", record);\r\n }", "int insert(HospitalType record);", "public void insert(AlManageOnAir record) {\r\n getSqlMapClientTemplate().insert(\"AL_MANAGE_ON_AIR.ibatorgenerated_insert\", record);\r\n }", "int insert(CmsVoteTitle record);", "public Pokemon createPokemon( String p11, String p12, String p21,\n String p22, String p31, String p32, String p41,\n String p42, String p51, String p52, String p61, String p62) { //Added String rating as a parameter\n // ---- Get a new database key for the vote\n String key = myPokemonDbRef.child(PokemonDataTag).push().getKey();\n // ---- set up the pokemon object\n Pokemon newPokemon = new Pokemon(key, p11, p12, p21, p22, p31, p32, p41, p42, p51, p52, p61, p62);\n // ---- write the vote to Firebase\n myPokemonDbRef.child(key).setValue(newPokemon);\n return newPokemon;\n }", "@PostMapping(\"/predavanjePredava\")\n public Predavanje_Predavac createPredavanje_Predavac(@Valid @RequestBody Predavanje_Predavac pp) {\n return predavanje_PredavacDAO.save(pp);\n }", "int insertSelective(Kaiwa record);", "@Override\r\n\tpublic int createMarket(MarketDto dto) {\n\t\treturn session.insert(\"kdc.market.createMarket\", dto);\r\n\t}", "int insert(NjProductTaticsRelation record);", "int insertSelective(ParkCurrent record);", "public CsclAppointeeMaster create(long id_);", "public void insert(Profesor record) {\n getSqlMapClientTemplate().insert(\"tbl_profesor.ibatorgenerated_insert\", record);\n }", "public static CauHinhThuTienTet create(long cauHinhThuTienTetId) {\n\t\treturn getPersistence().create(cauHinhThuTienTetId);\n\t}" ]
[ "0.60542667", "0.58548576", "0.5731924", "0.5645969", "0.56437993", "0.55930364", "0.5513734", "0.5438495", "0.54280144", "0.54040086", "0.5386574", "0.53686565", "0.5349948", "0.5345703", "0.5331208", "0.53181076", "0.5303809", "0.528842", "0.5278478", "0.52485484", "0.52308786", "0.521395", "0.5202746", "0.5198301", "0.5195898", "0.5174165", "0.51514816", "0.51480895", "0.5147982", "0.51368195", "0.5136076", "0.51298326", "0.5127837", "0.51177216", "0.51153815", "0.5115214", "0.5108564", "0.5106761", "0.5095841", "0.5087675", "0.5066245", "0.5043514", "0.5042356", "0.5033882", "0.50321096", "0.502333", "0.50168496", "0.5009099", "0.50082517", "0.5005667", "0.4997354", "0.49969307", "0.49882475", "0.49865353", "0.4985932", "0.49734658", "0.49730968", "0.495842", "0.4955058", "0.4953641", "0.49515733", "0.49496433", "0.49485838", "0.49454793", "0.49289063", "0.49262357", "0.4924724", "0.4910708", "0.4909172", "0.4908087", "0.49055317", "0.4905373", "0.49011263", "0.48978218", "0.48946637", "0.48916537", "0.48908085", "0.4886476", "0.4880293", "0.48735", "0.48717725", "0.48710632", "0.48678038", "0.4864051", "0.4856441", "0.48500025", "0.48499", "0.48462865", "0.48453033", "0.48234555", "0.4823228", "0.48216748", "0.48210427", "0.482086", "0.4820497", "0.48200575", "0.48188508", "0.4817588", "0.48141098", "0.4812346" ]
0.7998718
0
Removes the phat vay with the primary key from the database. Also notifies the appropriate model listeners.
@Override public PhatVay remove(long phatVayId) throws NoSuchPhatVayException { return remove((Serializable)phatVayId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "void remove(PK id);", "void eliminar(PK id);", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic int dbRemove(MovementPK primarykey)\tthrows DAOSysException\t{\n\t\treturn dbRemove(primarykey, MovementDAO.DELETE_STM);\n\t}", "@Override\n public void removeFromDb() {\n }", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "int deleteByPrimaryKey(String taxregcode);", "int deleteByPrimaryKey(Integer buildProcedureId);", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic void deletRow(HongXunWorkNum hongXunWorkNum) {\n\t\tgetHibernateTemplate().delete(hongXunWorkNum);\n\t}", "int deleteByPrimaryKey(GpPubgPlayer record);", "int deleteByPrimaryKey(Integer actPrizeId);", "int deleteByPrimaryKey(String EQP_MODEL_ID);", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer prid) {\n\t\treturn 0;\r\n\t}", "int deleteByPrimaryKey(String repaymentId);", "@Override\n\tpublic int deleteByPrimaryKey(String modelid) {\n\t\treturn equipmentSetvalMapper.deleteByPrimaryKey(modelid);\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "@Override\n public Pacote remove(Object key) {\n Pacote pt = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Pacote SET visivel=FALSE WHERE nomePacote=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return pt;\n }", "public void deletePubkey(PubkeyBean pubkey) {\n\t\tHostDatabase hostdb = new HostDatabase(context);\n\t\thostdb.stopUsingPubkey(pubkey.getId());\n\t\thostdb.close();\n\n\t\tSQLiteDatabase db = getWritableDatabase();\n\t\tdb.delete(TABLE_PUBKEYS, \"_id = ?\", new String[] { Long.toString(pubkey.getId()) });\n\t\tdb.close();\n\t}", "@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }", "int deleteByPrimaryKey(Integer pmKeyId);", "int deleteByPrimaryKey(String vendorid);", "int deleteByPrimaryKey(RepStuLearningKey key);", "int deleteByPrimaryKey(String thingid);", "@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}", "int deleteByPrimaryKey(String depCode);", "int deleteByPrimaryKey(String maht);", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "int deleteByPrimaryKey(String goodsId);", "int deleteByPrimaryKey(BigDecimal browsingHisId) throws SQLException;", "public void deleteFromPoseOrder() { \n \ttry {\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(DeletePoses);\n\t\t\tthis.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.d(\"SQL Exception\", e.toString());\n\t\t}\n \t\n }", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy deleteVanBanPhapQuy(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.deleteVanBanPhapQuy(id);\n\t}", "int deleteByPrimaryKey(Integer petid);", "int deleteByPrimaryKey(PracticeClassKey key);", "private static int removeByPrimarykey(AnnualLeasePK primarykey)\n\t\t\t\t\t\t\t\tthrows\tDAOSysException, NoSuchEntityException\t{\n\t\tint rc = 0;\n\t\tAnnualLeaseDAO dao = null;\n\t\tdao = getDAO();\n\t\trc = dao.dbRemove(primarykey);\n\t\t\n\t\treturn rc;\n\t}", "@Override\n\tpublic void deletePro(Integer id) {\n\t\tproblemMapper.deleteByPrimaryKey(id);\n\t}", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "int deleteByPrimaryKey(ApplicationDOKey key);", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "int deleteByPrimaryKey(String shoppingCartId);", "int deleteByPrimaryKey(String terminalId);", "int deleteByPrimaryKey(PersonRegisterDo record);", "int deleteByPrimaryKey(String samId);", "int deleteByPrimaryKey(Integer vid);", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public void eliminar(Long id) throws AppException;", "int deleteByPrimaryKey(Long moepId);", "int deleteByPrimaryKey(Long integralBookId);", "int deleteByPrimaryKey(Integer pkid);", "int deleteByPrimaryKey(Integer pkid);", "int deleteByPrimaryKey(Integer acTeacherInstrumentId);", "@Override\n\tpublic void removeProcedure(String instanceId)\n\t{\n\t\tm_models.removeLocalProcedureModel(instanceId);\n\t}", "int deleteByPrimaryKey(String ponumberGoodsId);", "int deleteByPrimaryKey(Integer code);", "int deleteByPrimaryKey(Integer videoid);", "public void delPay(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE3, Sales_Id + \"=\" +idi, null);\n\t}", "int deleteByPrimaryKey(String stockCode);", "int deleteByPrimaryKey(String registerId);", "public void deletePatientByPrimaryKey(long id) throws PatientExn;", "@Override\n\tpublic void deleteBikeAd(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//delete the object with the primary key\n\t Query theQuery = currentSession.createQuery(\"delete from BikeAdvert where id=:BikeAdvertId\");\n\t\ttheQuery.setParameter(\"BikeAdvertId\",theId);\n\t\ttheQuery.executeUpdate();\n\t}", "int deleteByPrimaryKey(String hash);", "public void deleteByPrimaryKey(Long tagId) {\n }", "private void deleteRecord(){\n if (mCurrentSymptomUri != null) {\n // pull out the string value we are trying to delete\n mEditSymptomText = findViewById(R.id.edit_symptoms);\n String deleteTry = mEditSymptomText.getText().toString();\n\n // set up the ContentProvider query\n String[] projection = {_IDST, SymTraxContract.SymTraxTableSchema.C_SYMPTOM};\n String selectionClause = SymTraxContract.SymTraxTableSchema.C_SYMPTOM + \" = ? \";\n String[] selectionArgs = {deleteTry};\n\n Cursor c = getContentResolver().query(\n SYM_TRAX_URI,\n projection,\n selectionClause,\n selectionArgs,\n null );\n\n // if there are no instances of the deleteTry string in the Machines DB\n // Go ahead and try to delete. If deleteTry value is in CMachineType column do not delete (no cascade delete)\n if (!c.moveToFirst()){\n int rowsDeleted = getContentResolver().delete(mCurrentSymptomUri, null, null);\n if (rowsDeleted == 0) {\n Toast.makeText(this, getString(R.string.delete_record_failure),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.delete_record_success),\n Toast.LENGTH_SHORT).show();\n }\n c.close();\n finish(); // after deleting field value\n } else {\n c.close();\n showNoCascadeDeleteDialog();\n }\n }\n }", "int deleteByPrimaryKey(Integer r_p_i);", "@Override\n\tpublic int dbRemove(MovementPK primarykey, String deleteStm)\tthrows DAOSysException\t{\n\t\tMovementPK pk = primarykey;\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStm = null;\n\t\tint result = 0;\n\n\t\ttry\t{\n\t\t\tconnection = connectToDB();\n\t\t\tpreparedStm = connection.prepareStatement(deleteStm);\n\t\t\tpreparedStm.setInt(1, pk.getMovementNumber());\n\t\t\tpreparedStm.setString(2, pk.getMovementName());\n\t\t\tresult = preparedStm.executeUpdate();\n\n\t\t\tif (result == 0)\t{\n\t\t\t\tthrow new SQLException(\n\t\t\t\t\t\t\"Failed to remove Movement <\"\n\t\t\t\t\t\t+ pk.toString() + \">.\");\n\t\t\t}\n\n\t\t}\tcatch (SQLException sex)\t{\n\t\t\tthrow new DAOSysException(\n\t\t\t\t\t\"dbRemove() SQL Exception <\" + pk.toString() + \"> \" + sex.getMessage());\n\n\t\t}\tfinally\t{\n\t\t\ttry\t{\n\t\t\t\treleaseAll(null, preparedStm, connection);\n\t\t\t} catch (SQLException sqlex)\t{\n\t\t\t\tthrow new DAOSysException(sqlex.toString());\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public void deleteByVaiTroID(long vaiTroId);", "int deleteByPrimaryKey(Long idreg);", "@Transactional\n public void removeByCode(final String code) {\n// final Query query = new Query().setFilter(new PropertyFilter(Verifycode.CODE, FilterOperator.EQUAL, code));\n try {\n final List<Verifycode> results = verifycodeMapper.getByCode(code);\n if (1 > results.size()) {\n return;\n }\n\n verifycodeMapper.deleteByPrimaryKey(results.get(0).getOid());\n } catch (final Exception e) {\n LOGGER.error( \"Removes by code [\" + code + \"] failed\", e);\n }\n }", "public void deletePokemon(Pokemon pokemon) {\n String key = pokemon.getKey();\n myPokemonDbRef.child(key).removeValue();\n }", "int deleteByPrimaryKey(BigDecimal subjectNo);", "public void deletePromocion (Long id_p_Promocion_hotel){\n proveedorPromocionHotelPersistence.delete(id_p_Promocion_hotel);\n }", "int deleteByPrimaryKey(Long personId);", "public Object remove(Vector primaryKey) {\n CacheKey key = getCacheKey(primaryKey);\n return remove(key);\n }", "@Override\n public void eliminarPropiedad(String pIdPropiedad) {\n try {\n bdPropiedad.manipulationQuery(\"DELETE FROM PROPIEDAD WHERE ID_PROPIEDAD = '\" + pIdPropiedad + \"'\");\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override //删除id\n\tpublic void deletePoInfoById(String poinid) throws Exception {\n\t\tdao.delete(\"PoInfoMapper.deletePoInfoById\", poinid);\n\t}", "int deleteByPrimaryKey(String code);", "int deleteByPrimaryKey(String code);", "int deleteByPrimaryKey(Integer kId);", "int deleteByPrimaryKey(Integer hId);", "void removeHadithBookNo(Object oldHadithBookNo);", "public void removeRecord(int index) {\r\n\t\tsuper.removeRecord(index);\r\n\t\ttrackPointOverlay.removeWayPoint(index);\r\n\t}", "int deleteByPrimaryKey(Integer typeiId);", "@Override\r\n\tpublic int delById(int id) {\n\t\tint flag=0;\r\n\t\ttry {\r\n\t\t\tString sql=\"DELETE FROM payedproduct WHERE PayedProduct_id=?\";\r\n\t\t\tflag= qr.update(sql, id);\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\treturn flag;\r\n\t}", "@Transactional\n\tpublic void delete(SnmpEventsProcessPk pk) throws SnmpEventsProcessDaoException\n\t{\n\t\tjdbcTemplate.update(\"DELETE FROM \" + getTableName() + \" WHERE MARK = ?\",pk.getMark());\n\t}", "public void deleteByChucVuID(long chucVuId);", "int deleteByPrimaryKey(Long catalogId);", "void deleteMataKuliah (int id);", "public void deleteProveedor (Long id_proveedor){\n proveedorPersistence.delete(id_proveedor);\n }", "int deleteByPrimaryKey(Long pineAlarmId);", "@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn siteReservoirInfoMapper.deleteByPrimaryKey(id);\n\t}", "public void removeByCompanyId(long companyId);", "public boolean remove(int idVoto ) { \n\t\ttry {\n\t\t\t//Voto voto = find(idVoto);\n\t\t\t//System.out.println(\"voto encontrado\"+voto);\n\t\treturn em.createNativeQuery(\"DELETE FROM tie_voto where car_numero = \"+idVoto).executeUpdate() != 0;\n\t\t\t \n\t\t \n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "int deleteByPrimaryKey(Integer tpUid);", "int deleteByPrimaryKey(Integer did);", "@Override\r\n\tpublic int deleteOne(int id) {\n\t\treturn productRawDao.deleteByPrimaryKey(id);\r\n\t}", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "public boolean deletePalvelupisteet();" ]
[ "0.69965404", "0.6200632", "0.61381865", "0.60178745", "0.6017479", "0.59993553", "0.5931858", "0.59248996", "0.5819874", "0.57813317", "0.5726907", "0.5724223", "0.57223177", "0.57150435", "0.570974", "0.5705802", "0.5697983", "0.56821126", "0.56685793", "0.56685793", "0.5663824", "0.5647022", "0.56400675", "0.56349105", "0.56325614", "0.5631331", "0.56306905", "0.56274295", "0.5612666", "0.56059915", "0.5600156", "0.55853426", "0.55730575", "0.55715865", "0.5564708", "0.5562458", "0.555852", "0.5552936", "0.55388355", "0.5538401", "0.5537622", "0.5535479", "0.5535427", "0.55267954", "0.5525751", "0.5524113", "0.5514159", "0.55070144", "0.55019", "0.5500128", "0.5494832", "0.5490272", "0.5490272", "0.5487293", "0.5486065", "0.5465565", "0.5456748", "0.5456181", "0.54520494", "0.5451313", "0.5451049", "0.5446295", "0.54452866", "0.5438989", "0.54366636", "0.54335886", "0.5432811", "0.54308474", "0.5428612", "0.5421159", "0.5420431", "0.541806", "0.54166675", "0.54124147", "0.5408764", "0.5407537", "0.54054093", "0.54046905", "0.5397751", "0.5397751", "0.53936785", "0.5388359", "0.53812295", "0.53809386", "0.53720695", "0.5372", "0.5368343", "0.5365068", "0.536303", "0.53597397", "0.5359428", "0.53561056", "0.53454006", "0.53428864", "0.5338009", "0.53377765", "0.5331526", "0.53314835", "0.5330765", "0.53275514" ]
0.6411343
1
Removes the phat vay with the primary key from the database. Also notifies the appropriate model listeners.
@Override public PhatVay remove(Serializable primaryKey) throws NoSuchPhatVayException { Session session = null; try { session = openSession(); PhatVay phatVay = (PhatVay)session.get( PhatVayImpl.class, primaryKey); if (phatVay == null) { if (_log.isDebugEnabled()) { _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } throw new NoSuchPhatVayException( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } return remove(phatVay); } catch (NoSuchPhatVayException nsee) { throw nsee; } catch (Exception e) { throw processException(e); } finally { closeSession(session); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay remove(long phatVayId) throws NoSuchPhatVayException {\n\t\treturn remove((Serializable)phatVayId);\n\t}", "void remove(PK id);", "void eliminar(PK id);", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic int dbRemove(MovementPK primarykey)\tthrows DAOSysException\t{\n\t\treturn dbRemove(primarykey, MovementDAO.DELETE_STM);\n\t}", "@Override\n public void removeFromDb() {\n }", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "int deleteByPrimaryKey(String taxregcode);", "int deleteByPrimaryKey(Integer buildProcedureId);", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\n\tpublic void deletRow(HongXunWorkNum hongXunWorkNum) {\n\t\tgetHibernateTemplate().delete(hongXunWorkNum);\n\t}", "int deleteByPrimaryKey(GpPubgPlayer record);", "int deleteByPrimaryKey(Integer actPrizeId);", "int deleteByPrimaryKey(String EQP_MODEL_ID);", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer prid) {\n\t\treturn 0;\r\n\t}", "int deleteByPrimaryKey(String repaymentId);", "@Override\n\tpublic int deleteByPrimaryKey(String modelid) {\n\t\treturn equipmentSetvalMapper.deleteByPrimaryKey(modelid);\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "@Override\n public Pacote remove(Object key) {\n Pacote pt = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Pacote SET visivel=FALSE WHERE nomePacote=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return pt;\n }", "public void deletePubkey(PubkeyBean pubkey) {\n\t\tHostDatabase hostdb = new HostDatabase(context);\n\t\thostdb.stopUsingPubkey(pubkey.getId());\n\t\thostdb.close();\n\n\t\tSQLiteDatabase db = getWritableDatabase();\n\t\tdb.delete(TABLE_PUBKEYS, \"_id = ?\", new String[] { Long.toString(pubkey.getId()) });\n\t\tdb.close();\n\t}", "@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }", "int deleteByPrimaryKey(Integer pmKeyId);", "int deleteByPrimaryKey(String vendorid);", "int deleteByPrimaryKey(RepStuLearningKey key);", "int deleteByPrimaryKey(String thingid);", "@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}", "int deleteByPrimaryKey(String depCode);", "int deleteByPrimaryKey(String maht);", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "int deleteByPrimaryKey(String goodsId);", "int deleteByPrimaryKey(BigDecimal browsingHisId) throws SQLException;", "public void deleteFromPoseOrder() { \n \ttry {\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(DeletePoses);\n\t\t\tthis.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.d(\"SQL Exception\", e.toString());\n\t\t}\n \t\n }", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy deleteVanBanPhapQuy(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.deleteVanBanPhapQuy(id);\n\t}", "int deleteByPrimaryKey(Integer petid);", "int deleteByPrimaryKey(PracticeClassKey key);", "private static int removeByPrimarykey(AnnualLeasePK primarykey)\n\t\t\t\t\t\t\t\tthrows\tDAOSysException, NoSuchEntityException\t{\n\t\tint rc = 0;\n\t\tAnnualLeaseDAO dao = null;\n\t\tdao = getDAO();\n\t\trc = dao.dbRemove(primarykey);\n\t\t\n\t\treturn rc;\n\t}", "@Override\n\tpublic void deletePro(Integer id) {\n\t\tproblemMapper.deleteByPrimaryKey(id);\n\t}", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "int deleteByPrimaryKey(ApplicationDOKey key);", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "int deleteByPrimaryKey(String shoppingCartId);", "int deleteByPrimaryKey(String terminalId);", "int deleteByPrimaryKey(PersonRegisterDo record);", "int deleteByPrimaryKey(String samId);", "int deleteByPrimaryKey(Integer vid);", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public void eliminar(Long id) throws AppException;", "int deleteByPrimaryKey(Long moepId);", "int deleteByPrimaryKey(Long integralBookId);", "int deleteByPrimaryKey(Integer pkid);", "int deleteByPrimaryKey(Integer pkid);", "int deleteByPrimaryKey(Integer acTeacherInstrumentId);", "@Override\n\tpublic void removeProcedure(String instanceId)\n\t{\n\t\tm_models.removeLocalProcedureModel(instanceId);\n\t}", "int deleteByPrimaryKey(String ponumberGoodsId);", "int deleteByPrimaryKey(Integer code);", "int deleteByPrimaryKey(Integer videoid);", "public void delPay(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE3, Sales_Id + \"=\" +idi, null);\n\t}", "int deleteByPrimaryKey(String stockCode);", "int deleteByPrimaryKey(String registerId);", "public void deletePatientByPrimaryKey(long id) throws PatientExn;", "@Override\n\tpublic void deleteBikeAd(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//delete the object with the primary key\n\t Query theQuery = currentSession.createQuery(\"delete from BikeAdvert where id=:BikeAdvertId\");\n\t\ttheQuery.setParameter(\"BikeAdvertId\",theId);\n\t\ttheQuery.executeUpdate();\n\t}", "int deleteByPrimaryKey(String hash);", "public void deleteByPrimaryKey(Long tagId) {\n }", "private void deleteRecord(){\n if (mCurrentSymptomUri != null) {\n // pull out the string value we are trying to delete\n mEditSymptomText = findViewById(R.id.edit_symptoms);\n String deleteTry = mEditSymptomText.getText().toString();\n\n // set up the ContentProvider query\n String[] projection = {_IDST, SymTraxContract.SymTraxTableSchema.C_SYMPTOM};\n String selectionClause = SymTraxContract.SymTraxTableSchema.C_SYMPTOM + \" = ? \";\n String[] selectionArgs = {deleteTry};\n\n Cursor c = getContentResolver().query(\n SYM_TRAX_URI,\n projection,\n selectionClause,\n selectionArgs,\n null );\n\n // if there are no instances of the deleteTry string in the Machines DB\n // Go ahead and try to delete. If deleteTry value is in CMachineType column do not delete (no cascade delete)\n if (!c.moveToFirst()){\n int rowsDeleted = getContentResolver().delete(mCurrentSymptomUri, null, null);\n if (rowsDeleted == 0) {\n Toast.makeText(this, getString(R.string.delete_record_failure),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.delete_record_success),\n Toast.LENGTH_SHORT).show();\n }\n c.close();\n finish(); // after deleting field value\n } else {\n c.close();\n showNoCascadeDeleteDialog();\n }\n }\n }", "int deleteByPrimaryKey(Integer r_p_i);", "@Override\n\tpublic int dbRemove(MovementPK primarykey, String deleteStm)\tthrows DAOSysException\t{\n\t\tMovementPK pk = primarykey;\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStm = null;\n\t\tint result = 0;\n\n\t\ttry\t{\n\t\t\tconnection = connectToDB();\n\t\t\tpreparedStm = connection.prepareStatement(deleteStm);\n\t\t\tpreparedStm.setInt(1, pk.getMovementNumber());\n\t\t\tpreparedStm.setString(2, pk.getMovementName());\n\t\t\tresult = preparedStm.executeUpdate();\n\n\t\t\tif (result == 0)\t{\n\t\t\t\tthrow new SQLException(\n\t\t\t\t\t\t\"Failed to remove Movement <\"\n\t\t\t\t\t\t+ pk.toString() + \">.\");\n\t\t\t}\n\n\t\t}\tcatch (SQLException sex)\t{\n\t\t\tthrow new DAOSysException(\n\t\t\t\t\t\"dbRemove() SQL Exception <\" + pk.toString() + \"> \" + sex.getMessage());\n\n\t\t}\tfinally\t{\n\t\t\ttry\t{\n\t\t\t\treleaseAll(null, preparedStm, connection);\n\t\t\t} catch (SQLException sqlex)\t{\n\t\t\t\tthrow new DAOSysException(sqlex.toString());\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public void deleteByVaiTroID(long vaiTroId);", "int deleteByPrimaryKey(Long idreg);", "@Transactional\n public void removeByCode(final String code) {\n// final Query query = new Query().setFilter(new PropertyFilter(Verifycode.CODE, FilterOperator.EQUAL, code));\n try {\n final List<Verifycode> results = verifycodeMapper.getByCode(code);\n if (1 > results.size()) {\n return;\n }\n\n verifycodeMapper.deleteByPrimaryKey(results.get(0).getOid());\n } catch (final Exception e) {\n LOGGER.error( \"Removes by code [\" + code + \"] failed\", e);\n }\n }", "public void deletePokemon(Pokemon pokemon) {\n String key = pokemon.getKey();\n myPokemonDbRef.child(key).removeValue();\n }", "int deleteByPrimaryKey(BigDecimal subjectNo);", "public void deletePromocion (Long id_p_Promocion_hotel){\n proveedorPromocionHotelPersistence.delete(id_p_Promocion_hotel);\n }", "int deleteByPrimaryKey(Long personId);", "public Object remove(Vector primaryKey) {\n CacheKey key = getCacheKey(primaryKey);\n return remove(key);\n }", "@Override\n public void eliminarPropiedad(String pIdPropiedad) {\n try {\n bdPropiedad.manipulationQuery(\"DELETE FROM PROPIEDAD WHERE ID_PROPIEDAD = '\" + pIdPropiedad + \"'\");\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override //删除id\n\tpublic void deletePoInfoById(String poinid) throws Exception {\n\t\tdao.delete(\"PoInfoMapper.deletePoInfoById\", poinid);\n\t}", "int deleteByPrimaryKey(String code);", "int deleteByPrimaryKey(String code);", "int deleteByPrimaryKey(Integer kId);", "int deleteByPrimaryKey(Integer hId);", "void removeHadithBookNo(Object oldHadithBookNo);", "public void removeRecord(int index) {\r\n\t\tsuper.removeRecord(index);\r\n\t\ttrackPointOverlay.removeWayPoint(index);\r\n\t}", "int deleteByPrimaryKey(Integer typeiId);", "@Override\r\n\tpublic int delById(int id) {\n\t\tint flag=0;\r\n\t\ttry {\r\n\t\t\tString sql=\"DELETE FROM payedproduct WHERE PayedProduct_id=?\";\r\n\t\t\tflag= qr.update(sql, id);\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\treturn flag;\r\n\t}", "@Transactional\n\tpublic void delete(SnmpEventsProcessPk pk) throws SnmpEventsProcessDaoException\n\t{\n\t\tjdbcTemplate.update(\"DELETE FROM \" + getTableName() + \" WHERE MARK = ?\",pk.getMark());\n\t}", "public void deleteByChucVuID(long chucVuId);", "int deleteByPrimaryKey(Long catalogId);", "void deleteMataKuliah (int id);", "public void deleteProveedor (Long id_proveedor){\n proveedorPersistence.delete(id_proveedor);\n }", "int deleteByPrimaryKey(Long pineAlarmId);", "@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn siteReservoirInfoMapper.deleteByPrimaryKey(id);\n\t}", "public void removeByCompanyId(long companyId);", "public boolean remove(int idVoto ) { \n\t\ttry {\n\t\t\t//Voto voto = find(idVoto);\n\t\t\t//System.out.println(\"voto encontrado\"+voto);\n\t\treturn em.createNativeQuery(\"DELETE FROM tie_voto where car_numero = \"+idVoto).executeUpdate() != 0;\n\t\t\t \n\t\t \n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "int deleteByPrimaryKey(Integer tpUid);", "int deleteByPrimaryKey(Integer did);", "@Override\r\n\tpublic int deleteOne(int id) {\n\t\treturn productRawDao.deleteByPrimaryKey(id);\r\n\t}", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "public boolean deletePalvelupisteet();" ]
[ "0.6411343", "0.6200632", "0.61381865", "0.60178745", "0.6017479", "0.59993553", "0.5931858", "0.59248996", "0.5819874", "0.57813317", "0.5726907", "0.5724223", "0.57223177", "0.57150435", "0.570974", "0.5705802", "0.5697983", "0.56821126", "0.56685793", "0.56685793", "0.5663824", "0.5647022", "0.56400675", "0.56349105", "0.56325614", "0.5631331", "0.56306905", "0.56274295", "0.5612666", "0.56059915", "0.5600156", "0.55853426", "0.55730575", "0.55715865", "0.5564708", "0.5562458", "0.555852", "0.5552936", "0.55388355", "0.5538401", "0.5537622", "0.5535479", "0.5535427", "0.55267954", "0.5525751", "0.5524113", "0.5514159", "0.55070144", "0.55019", "0.5500128", "0.5494832", "0.5490272", "0.5490272", "0.5487293", "0.5486065", "0.5465565", "0.5456748", "0.5456181", "0.54520494", "0.5451313", "0.5451049", "0.5446295", "0.54452866", "0.5438989", "0.54366636", "0.54335886", "0.5432811", "0.54308474", "0.5428612", "0.5421159", "0.5420431", "0.541806", "0.54166675", "0.54124147", "0.5408764", "0.5407537", "0.54054093", "0.54046905", "0.5397751", "0.5397751", "0.53936785", "0.5388359", "0.53812295", "0.53809386", "0.53720695", "0.5372", "0.5368343", "0.5365068", "0.536303", "0.53597397", "0.5359428", "0.53561056", "0.53454006", "0.53428864", "0.5338009", "0.53377765", "0.5331526", "0.53314835", "0.5330765", "0.53275514" ]
0.69965404
0
Returns the phat vay with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
@Override public PhatVay findByPrimaryKey(Serializable primaryKey) throws NoSuchPhatVayException { PhatVay phatVay = fetchByPrimaryKey(primaryKey); if (phatVay == null) { if (_log.isDebugEnabled()) { _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } throw new NoSuchPhatVayException( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } return phatVay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(long phatVayId)\n\t\tthrows NoSuchPhatVayException {\n\n\t\treturn findByPrimaryKey((Serializable)phatVayId);\n\t}", "public double getPk()\n {\n return this.pk;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "PrimaryKey getPrimaryKey();", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "private TbviajepasajeroPK getPrimaryKey(PathSegment pathSegment) {\r\n ugt.entidades.TbviajepasajeroPK key = new ugt.entidades.TbviajepasajeroPK();\r\n javax.ws.rs.core.MultivaluedMap<String, String> map = pathSegment.getMatrixParameters();\r\n java.util.List<String> idviaje = map.get(\"idviaje\");\r\n if (idviaje != null && !idviaje.isEmpty()) {\r\n key.setIdviaje(new java.lang.Integer(idviaje.get(0)));\r\n }\r\n java.util.List<String> cedulap = map.get(\"cedulap\");\r\n if (cedulap != null && !cedulap.isEmpty()) {\r\n key.setCedulap(java.lang.String.valueOf(cedulap.get(0)));\r\n }\r\n return key;\r\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _phieugiahan.getPrimaryKey();\n\t}", "public PrimaryKey getPrimaryKey();", "@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }", "Key getPrimaryKey();", "public NominaPuesto findByPrimaryKey(NominaPuestoPk pk) throws NominaPuestoDaoException;", "@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "PrimaryKey getPrimarykey();", "@Override\n public FecetProrrogaOrden findByPrimaryKey(BigDecimal idProrroga) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(getTableName()).append(\" WHERE ID_PRORROGA_ORDEN = ?\");\n List<FecetProrrogaOrden> list = getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper(),\n idProrroga);\n return list.isEmpty() ? null : list.get(0);\n\n }", "public long getModelId();", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "Ltsprojectpo selectByPrimaryKey(Long id);", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "Kaiwa selectByPrimaryKey(String maht);", "public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Bitacora_peticionLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey primaryKey)\n\t\tthrows javax.ejb.FinderException;", "TbComEqpModel selectByPrimaryKey(String EQP_MODEL_ID);", "GoodsPo selectByPrimaryKey(Long id);", "PrhFree selectByPrimaryKey(Integer id);", "@Override\n\tpublic int getPrimaryKey() {\n\t\treturn _keHoachKiemDemNuoc.getPrimaryKey();\n\t}", "public NominaPuesto findByPrimaryKey(int idPuesto) throws NominaPuestoDaoException;", "public DatiBancari findByPrimaryKey(DatiBancariPk pk) throws DatiBancariDaoException;", "public String getPrimaryKey() {\r\n return primaryKey;\r\n }", "public SupplyPO get(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.getObject(SupplyPO.class, pk);\r\n\t\t\t\r\n\t\t}catch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dictData.getPrimaryKey();\n\t}", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "public long getPrimaryKey() {\n return primaryKey;\n }", "T getByPk(int key) throws PersistException;", "Pays findById(Long aId);", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "AlipayInfo selectByPrimaryKey(String id);", "Model selectByPrimaryKey(Integer id);", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _scienceApp.getPrimaryKey();\n\t}", "public long getPrimaryKey() {\n\t\treturn _telefonoSolicitudProducto.getPrimaryKey();\n\t}", "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(ProductosPuntoVentaPk pk)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByPrimaryKey(pk.getIdPuntoVenta(), pk.getIdProducto());\r\n }", "@Override\n\tpublic org.kisti.edison.science.service.persistence.ScienceAppPaperPK getPrimaryKey() {\n\t\treturn _scienceAppPaper.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _paper.getPrimaryKey();\n\t}", "PdfCodeTemporary selectByPrimaryKey(Integer id);", "public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}", "PaasCustomAutomationRecord selectByPrimaryKey(Integer id);", "public Premie findById(Long premieid){\n return premieRepository.findById(premieid).get();\n }", "WayShopCateRoot selectByPrimaryKey(Integer id);", "Prueba selectByPrimaryKey(Integer id);", "@Query(value = \"SELECT * FROM produtos WHERE prd_id = ?\", nativeQuery = true)\r\n public ProdutosModel findOneById (Integer id);", "PayLogInfoPo selectByPrimaryKey(Long id);", "public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;", "ProSchoolWare selectByPrimaryKey(String id);", "public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}", "PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);", "public String getPricingModelId() {\n return pricingModelId;\n }", "Object getPrimaryKey() throws IllegalStateException;", "public String getPkid() {\n return pkid;\n }", "public String getPrimaryKey() {\n\t\treturn primaryKey;\n\t}", "public IEntityPK getPK() {\r\n\treturn this.pk;\r\n }", "public java.lang.String getPrimaryKey() {\n\t\treturn _pnaAlerta.getPrimaryKey();\n\t}", "@Override //所有id\n\tpublic PoInfo querryById(String poinid) throws Exception {\n\t\treturn (PoInfo) dao.findForObject(\"PoInfoMapper.querryById\", poinid);\n\t}", "public PosPay findPosPayById(Long id)throws DataAccessException;", "AccessModelEntity selectByPrimaryKey(String id);", "SysCode selectByPrimaryKey(String id);", "public SgfensPedidoProducto findByPrimaryKey(SgfensPedidoProductoPk pk) throws SgfensPedidoProductoDaoException;", "TemplateModel getKey();", "NjProductTaticsRelation selectByPrimaryKey(String id);", "T findById(long pk);", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Transactional(readOnly = true)\n @Override\n public Prenotazione getById(long id) {\n return this.prenotazioneRepository.getById(id);\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();\n\t}", "PathologyInfo selectByPrimaryKey(Integer id);", "SdkPhone selectByPrimaryKey(Integer id);", "@Override\n\tpublic JenisPemeriksaanModel getJenisPemeriksaanById(long id) {\n\t\treturn jenisPemeriksaanDb.findById(id).get();\n\t}", "BusinessRepayment selectByPrimaryKey(String id);", "@Override\r\n\tpublic PaymentPO findByID(String id) {\n\t\treturn null;\r\n\t}", "public Integer getPknum() {\n return pknum;\n }", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy getVanBanPhapQuy(long id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBanPhapQuy(id);\n\t}", "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta,\r\n Integer idProducto) throws ProductosPuntoVentaDaoException {\r\n ProductosPuntoVenta[] ret = findByDynamicSelect(SQL_SELECT\r\n + \" WHERE id_pdv = ? AND id_producto = ?\", new Object[] {\r\n idPuntoVenta, idProducto });\r\n return ret.length == 0 ? null : ret[0];\r\n }", "boolean getPrimaryKey();", "SysId selectByPrimaryKey(String id);", "@Override\n\tpublic IProcedure getProcedure(String instanceId) throws NoSuchProcedure\n\t{\n\t\treturn m_models.getProcedure(instanceId);\n\t}", "@Override\r\n\tpublic PayRecord selectByPrimaryKey(Integer prid) {\n\t\treturn null;\r\n\t}", "CodeBuildProcedure selectByPrimaryKey(Integer buildProcedureId);", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "Product selectByPrimaryKey(Long id);", "Product selectByPrimaryKey(Integer id);", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _employee.getPrimaryKey();\n\t}", "@GetMapping(\"projekat/{id}\")\n\tprivate Projekat getProjekat(@PathVariable(\"id\") Integer id) {\n\t\treturn projekatRepository.getOne(id);\n\t}", "@Override\n\tpublic Model findOne(Model model) throws ServiceException {\n\t\tMap<String, Object> result = getDao().findOne(model, null);\n\t\tmodel = buildModel(result);\n\t\treturn model;\n\t}", "TCpySpouse selectByPrimaryKey(Integer id);", "@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}" ]
[ "0.6414064", "0.6281431", "0.61861646", "0.6022943", "0.60038555", "0.60038555", "0.60038555", "0.58442795", "0.58043414", "0.5765219", "0.57202333", "0.57079107", "0.56793225", "0.56350726", "0.5598973", "0.5562216", "0.554766", "0.55297005", "0.55226314", "0.55072236", "0.5501636", "0.54840803", "0.54798484", "0.547652", "0.547652", "0.5464441", "0.5457613", "0.54490775", "0.5442279", "0.5438655", "0.5424044", "0.54190844", "0.5410473", "0.54027", "0.5396248", "0.5390923", "0.5378138", "0.5378138", "0.53703064", "0.53614914", "0.5350556", "0.535045", "0.5332139", "0.53280383", "0.53272885", "0.5326551", "0.53257716", "0.53193974", "0.53054017", "0.52960926", "0.52775466", "0.52662057", "0.52600944", "0.52534556", "0.5247376", "0.5238563", "0.5232279", "0.522641", "0.5218684", "0.5217863", "0.5214188", "0.5203406", "0.5194325", "0.5181577", "0.51766896", "0.51743245", "0.51678216", "0.5162975", "0.51624215", "0.51533926", "0.5151063", "0.51468265", "0.5144269", "0.51401", "0.5139219", "0.513741", "0.5133962", "0.51295155", "0.5128541", "0.51247084", "0.512449", "0.5119863", "0.5119593", "0.5114493", "0.5106221", "0.51057404", "0.5104948", "0.50873154", "0.5085873", "0.50840527", "0.5082648", "0.50824094", "0.50747806", "0.5071587", "0.50681615", "0.5066171", "0.5058999", "0.5055335", "0.5050618", "0.50468636" ]
0.69204706
0
Returns the phat vay with the primary key or throws a NoSuchPhatVayException if it could not be found.
@Override public PhatVay findByPrimaryKey(long phatVayId) throws NoSuchPhatVayException { return findByPrimaryKey((Serializable)phatVayId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic PhatVay remove(long phatVayId) throws NoSuchPhatVayException {\n\t\treturn remove((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay create(long phatVayId) {\n\t\tPhatVay phatVay = new PhatVayImpl();\n\n\t\tphatVay.setNew(true);\n\t\tphatVay.setPrimaryKey(phatVayId);\n\n\t\tphatVay.setCompanyId(companyProvider.getCompanyId());\n\n\t\treturn phatVay;\n\t}", "AlipayInfo selectByPrimaryKey(String id);", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy getVanBanPhapQuy(long id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBanPhapQuy(id);\n\t}", "Pays findById(Long aId);", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@Override\n\tpublic IProcedure getProcedure(String instanceId) throws NoSuchProcedure\n\t{\n\t\treturn m_models.getProcedure(instanceId);\n\t}", "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "private TbviajepasajeroPK getPrimaryKey(PathSegment pathSegment) {\r\n ugt.entidades.TbviajepasajeroPK key = new ugt.entidades.TbviajepasajeroPK();\r\n javax.ws.rs.core.MultivaluedMap<String, String> map = pathSegment.getMatrixParameters();\r\n java.util.List<String> idviaje = map.get(\"idviaje\");\r\n if (idviaje != null && !idviaje.isEmpty()) {\r\n key.setIdviaje(new java.lang.Integer(idviaje.get(0)));\r\n }\r\n java.util.List<String> cedulap = map.get(\"cedulap\");\r\n if (cedulap != null && !cedulap.isEmpty()) {\r\n key.setCedulap(java.lang.String.valueOf(cedulap.get(0)));\r\n }\r\n return key;\r\n }", "public Pais findById(int id) throws NoResultException {\r\n return EM.createNamedQuery(Pais.FIND_BY_ID, Pais.class)\r\n .setParameter(\"p2\", id)\r\n .setParameter(\"p3\", Estados.ACTIVO)\r\n .getSingleResult();\r\n }", "public Pais getByIdPais(Integer id);", "@Override\n\tpublic PhatVay findBySoKU(String soKU) throws NoSuchPhatVayException {\n\t\tPhatVay phatVay = fetchBySoKU(soKU);\n\n\t\tif (phatVay == null) {\n\t\t\tStringBundler msg = new StringBundler(4);\n\n\t\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\t\tmsg.append(\"soKU=\");\n\t\t\tmsg.append(soKU);\n\n\t\t\tmsg.append(\"}\");\n\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(msg.toString());\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t\t}\n\n\t\treturn phatVay;\n\t}", "Averia findAveriaById(Long id) throws BusinessException;", "@Override\n public FecetProrrogaOrden findByPrimaryKey(BigDecimal idProrroga) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(getTableName()).append(\" WHERE ID_PRORROGA_ORDEN = ?\");\n List<FecetProrrogaOrden> list = getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper(),\n idProrroga);\n return list.isEmpty() ? null : list.get(0);\n\n }", "public PaypalIpn findByPrimaryKey(long paypalIpnId) throws PaypalIpnDaoException\r\n\t{\r\n\t\tPaypalIpn ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE paypal_ipn_id = ?\", new Object[] { new Long(paypalIpnId) } );\r\n\t\treturn ret.length==0 ? null : ret[0];\r\n\t}", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "public PurchaseVO PFindByID(String id) {\n\t\treturn purchase.find(id);\r\n\t}", "public PosPay findPosPayById(Long id)throws DataAccessException;", "CodeBuildProcedure selectByPrimaryKey(Integer buildProcedureId);", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "SdkMobileVcode selectByPrimaryKey(Integer vid);", "@Override\r\n\tpublic XftPayment get(Integer id) {\n\t\treturn xftPaymentMapper.selectByPrimaryKey(id);\r\n\t}", "public PaypalIpn findByPrimaryKey(PaypalIpnPk pk) throws PaypalIpnDaoException\r\n\t{\r\n\t\treturn findByPrimaryKey( pk.getPaypalIpnId() );\r\n\t}", "PrimaryKey getPrimaryKey();", "public static Pesanan getPesanan(int id){\n int besar = PESANAN_DATABASE.size();\n int i= 0;\n int w= 0;\n for(i=0;i<besar;i++){\n if(PESANAN_DATABASE.get(i).getID() == id){\n return PESANAN_DATABASE.get(i);\n }\n }\n return null;\n }", "public Long getPayId() {\r\n return payId;\r\n }", "public ProductVaccine searchProduct(int id) {\n for(ProductVaccine p : productCatalog) {\r\n if(p.getVaccineNumber() == id) {\r\n return p;\r\n }\r\n }\r\n return null;\r\n }", "public String selectPKUser(int id) {\n String sql = \"SELECT publickey FROM users WHERE id = ?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }", "@Override\n\tpublic PhatVay[] findByMaCTV_PrevAndNext(\n\t\t\tlong phatVayId, String maCTV,\n\t\t\tOrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tPhatVay phatVay = findByPrimaryKey(phatVayId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay[] array = new PhatVayImpl[3];\n\n\t\t\tarray[0] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, true);\n\n\t\t\tarray[1] = phatVay;\n\n\t\t\tarray[2] = getByMaCTV_PrevAndNext(\n\t\t\t\tsession, phatVay, maCTV, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "Videogioco findVideogiocoById(int id);", "public Bike getBike(int bikeId){\n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(BIKE_BY_ID + bikeId);\n ResultSet rs = ps.executeQuery()){\n \n if(rs.next()){\n Bike bike = getBikeFromRS(rs);\n return bike;\n }\n }catch(Exception e){\n System.out.println(\"Exception\" + e);\n }\n return null;\n }", "@Override\n\tpublic BikeAdvert getBikeAdvert(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//now retrive /read from db using the primary key\n\t\tBikeAdvert theBikeAdvert = currentSession.get(BikeAdvert.class,theId);\n\t\t\n\t\treturn theBikeAdvert;\n\t}", "PrimaryKey getPrimarykey();", "@Transactional(readOnly = true)\n public Optional<Zhaopin> findOne(Long id) {\n log.debug(\"Request to get Zhaopin : {}\", id);\n return zhaopinRepository.findById(id);\n }", "Key getPrimaryKey();", "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(ProductosPuntoVentaPk pk)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByPrimaryKey(pk.getIdPuntoVenta(), pk.getIdProducto());\r\n }", "@Override\n\tpublic synchronized IProcedure getRemoteProcedure(String instanceId) throws NoSuchProcedure\n\t{\n\t\treturn m_models.getRemoteProcedure(instanceId);\n\t}", "public PrimaryKey getPrimaryKey();", "@Override\r\n\tpublic PayRecord selectByPrimaryKey(Integer prid) {\n\t\treturn null;\r\n\t}", "@Transactional(readOnly=true)\n\t@Override\n\tpublic Optional<Paradero> findById(Integer id) throws Exception {\n\t\treturn paraderoRespository.findById(id);\n\t}", "IrpSignInfo selectByPrimaryKey(Long signinfoid) throws SQLException;", "public Veranstaltung get(VeranstaltungKey veranstaltungKey)\n\t\t\tthrows RuntimeException;", "public long getVocubalaryId();", "Optional<VitalDTO> findOne(Long id);", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "public Hoppy getHoppyByHoppyId(Long hoppyId) throws DataAccessException;", "PaasCustomAutomationRecord selectByPrimaryKey(Integer id);", "@Override\n\tpublic vip selectByphone(String phonum) {\n\t\treturn this.vd.selectByphone(phonum);\n\t}", "Vehiculo findVehiculoById(long vehiculo_id) throws BusinessException;", "@Override\n @Nullable\n public UldECKey findKeyFromPubHash(byte[] pubkeyHash) {\n return null;\n }", "public IPV getPV(String pvPropId){\n return pvMap.get(pvPropId);\n }", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"maCTV=\");\n\t\tmsg.append(maCTV);\n\n\t\tmsg.append(\"}\");\n\n\t\tthrow new NoSuchPhatVayException(msg.toString());\n\t}", "public String selectPKAuthKeys(int id) throws SQLException {\n String sql = \"SELECT publickey FROM authenticatedkeys WHERE id_user=?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n \n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }", "Payment find(int paymentID);", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "Proposition voterPourProposition(Long id, String loginId)throws PropositionNotFoundException;", "PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);", "protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException {\n boolean result = false;\n\n if ( ejbRef() != null )\n return true;\n\n try {\n com.hps.july.trailcom.beans.OpticalHopKey pKey = (com.hps.july.trailcom.beans.OpticalHopKey) this.__getKey();\n if ( pKey != null ) {\n ejbRef = ejbHome().findByPrimaryKey(pKey);\n result = true;\n }\n }\n catch ( javax.ejb.FinderException e ) {\n }\n return result;\n }", "@Override\r\n\tpublic PaymentPO findByID(String id) {\n\t\treturn null;\r\n\t}", "PayLogInfoPo selectByPrimaryKey(Long id);", "@GetMapping(\"/invoices/{invoice_number}/paytransactions/{transaction_id}\")\r\n public PayTransaction findById(@PathVariable long invoice_number, @PathVariable long transaction_id) {\n invoiceRepository.findById(invoice_number)\r\n .orElseThrow(() -> new ResourceNotFoundException(\"Invoice not found with ID: \" + invoice_number));\r\n\r\n // After validated, retrieve Pay Transaction by ID\r\n return payTransactionRepository.findById(transaction_id)\r\n .orElseThrow(() -> new ResourceNotFoundException(\"Pay transaction not found with ID: \" + transaction_id));\r\n }", "@Override\n\tpublic VCal fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey(((Long)primaryKey).longValue());\n\t}", "PaymentTrade selectByPrimaryKey(String id);", "public Object findByPrimaryKey(long value) {\n\t\tTypedQuery<Pump> tq = em.createNamedQuery(Pump.FIND_PUMP_BY_PK, Pump.class);\n\t\ttq.setParameter(\"valueId\", value);\n\t\treturn tq.getSingleResult();\n\t}", "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta,\r\n Integer idProducto) throws ProductosPuntoVentaDaoException {\r\n ProductosPuntoVenta[] ret = findByDynamicSelect(SQL_SELECT\r\n + \" WHERE id_pdv = ? AND id_producto = ?\", new Object[] {\r\n idPuntoVenta, idProducto });\r\n return ret.length == 0 ? null : ret[0];\r\n }", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "@Override\n\tpublic car getByVin(String vinId) {\n\t\t\t\ttry{\n\t\t\t\t\tcar so=carDataRepository.getByVin(vinId);\n\t\t\t\t\t\n\t\t\t\t\treturn so;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t}", "public DatiBancari findByPrimaryKey(DatiBancariPk pk) throws DatiBancariDaoException;", "GoodsPo selectByPrimaryKey(Long id);", "T getByPk(int key) throws PersistException;", "@GetMapping(\"/predavanjePredava/{id}\")\n public Predavanje_Predavac getPredavanje_PredavacById(@PathVariable(value = \"id\") Long ppId) {\n return predavanje_PredavacDAO.findById(ppId)\n .orElseThrow(() -> new ResourceNotFoundException(\"Predavanje_Predavac\", \"id\", ppId));\n }", "public SupplyPO get(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.getObject(SupplyPO.class, pk);\r\n\t\t\t\r\n\t\t}catch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}", "Optional<CheckoutProduct> findById(int id);", "public HProvinceFb selectByPrimaryKey(Integer id) {\r\n HProvinceFb key = new HProvinceFb();\r\n key.setId(id);\r\n HProvinceFb record = (HProvinceFb) getSqlMapClientTemplate().queryForObject(\"H_PROVINCE_FB.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@Override\n\tpublic Answer findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchAnswerException {\n\n\t\tAnswer answer = fetchByPrimaryKey(primaryKey);\n\n\t\tif (answer == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\tthrow new NoSuchAnswerException(\n\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t}\n\n\t\treturn answer;\n\t}", "PdfCodeTemporary selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic DeptBean findByPrimaryKey(BigDecimal id) throws SQLException {\n\t\tDeptBean ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE ID = ?\", new Object[] { id } );\r\n\t\treturn ret.length==0 ? null : ret[0];\r\n\t}", "Payment selectByPrimaryKey(Long id);", "public Vacuna findById(Long id) {\n\t\tVacuna vacuna = vacunaRepository.findById(id).orElseThrow(() -> new RuntimeException(\"La vacuna no existe...\"));\n\t\treturn vacuna;\n\t}", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "public Contract findByPrimaryKey(Long id) {\n\t\treturn null;\r\n\t}", "public PurchaseReturnVO PRFindByID(String id) {\n\t\treturn purchaseReturn.find(id);\r\n\t}", "public byte[] getPKP(final TrzbaDataType data) throws DataSigningException {\n return this.clientKey.sign(serializeData(data));\n }", "@Override\r\n\tpublic Vtype findById(int id) {\n\t\tVtype v=null;\r\n\t\tHibernateUtil.getCurrentSession().beginTransaction();\r\n\t\ttry{\r\n\t\t\tv=this.vdao.findById(id);\r\n\t\t\tHibernateUtil.getCurrentSession().getTransaction().commit();\r\n\t\t}catch(Exception e){\r\n\t\t\ttry{\r\n\t\t\t\tHibernateUtil.getCurrentSession().getTransaction().rollback();\r\n\t\t\t}catch(Exception e1){\r\n\t\t\t\tthrow e1;\r\n\t\t\t}\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "PrhFree selectByPrimaryKey(Integer id);", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy deleteVanBanPhapQuy(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.deleteVanBanPhapQuy(id);\n\t}", "@Override\n @Transactional(readOnly = true)\n public MarketingQrcode findOne(Long id) {\n log.debug(\"Request to get MarketingQrcode : {}\", id);\n return marketingQrcodeRepository.findOne(id);\n }", "public boolean findBike(int bikeId){\n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(BIKE_BY_ID + bikeId);\n ResultSet rs = ps.executeQuery()){\n \n if(rs.isBeforeFirst()){\n return true; //Bike_id found in database\n }\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n } \n return false;\n }", "public ClanPaket findById(Long id) {\n\r\n\t\tClanPaket clanPaket = clanPaketDao.findById(id)\r\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"ClanPaket\", \"id\", id));\r\n\r\n\t\treturn clanPaket;\r\n\r\n\t}", "private Payee identifyPayee(Integer hpay) {\n\t\tif (hpay != null) {\n\t\t\tPayee p = this.payeeMap.get(Long.valueOf(hpay));\n\t\t\tif (p == null) {\n\t\t\t\tp = this.noPayee;\n\t\t\t}\n\t\t\treturn p;\n\t\t}\n\t\telse {\n\t\t\treturn this.noPayee;\n\t\t}\n\t}", "BnesBrowsingHis selectByPrimaryKey(BigDecimal browsingHisId) throws SQLException;", "Voucher getVoucherById(String voucherId);", "@RequestMapping(value = \"/findAppeal\", method = RequestMethod.GET)\n public Appeal findAppeal(@RequestParam Integer appealId) {\n Optional<Appeal> appealToGet = appealCrudRepository.findById(appealId);\n return appealToGet.orElse(null);\n }", "ParkCurrent selectByPrimaryKey(Integer id);" ]
[ "0.79107434", "0.72192615", "0.67585945", "0.6239492", "0.5962457", "0.5770259", "0.55272585", "0.55094004", "0.54585975", "0.5392372", "0.5392372", "0.5076191", "0.506374", "0.50635624", "0.5024385", "0.50054234", "0.49512133", "0.48978254", "0.4879637", "0.48652443", "0.4856612", "0.4847203", "0.4841598", "0.4835214", "0.48276967", "0.48271835", "0.48182812", "0.47943518", "0.47943172", "0.47571665", "0.47558296", "0.47437862", "0.47392756", "0.4732076", "0.4731557", "0.47309402", "0.47286153", "0.47178867", "0.4706977", "0.46945602", "0.46945095", "0.46563616", "0.46524262", "0.4648805", "0.4637077", "0.4627585", "0.46273217", "0.4624646", "0.4624188", "0.46178913", "0.46154094", "0.46137553", "0.4612436", "0.4605558", "0.46015528", "0.45915446", "0.4588522", "0.45877263", "0.45777848", "0.45734558", "0.45671007", "0.4563802", "0.45636263", "0.45633483", "0.45584145", "0.45538074", "0.45392123", "0.4538728", "0.45384297", "0.45378977", "0.4535893", "0.4533783", "0.45325366", "0.45325148", "0.4525414", "0.4520447", "0.45118126", "0.45083863", "0.45075265", "0.4504919", "0.44842505", "0.4480213", "0.44797134", "0.4475536", "0.44747707", "0.44635913", "0.44617066", "0.44601214", "0.44563103", "0.44511166", "0.44483548", "0.44416544", "0.4432106", "0.4430766", "0.44299456", "0.44276482", "0.44229907", "0.44194174", "0.4418888", "0.44109342" ]
0.7619568
1
Returns the phat vay with the primary key or returns null if it could not be found.
@Override public PhatVay fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, primaryKey); if (serializable == nullModel) { return null; } PhatVay phatVay = (PhatVay)serializable; if (phatVay == null) { Session session = null; try { session = openSession(); phatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey); if (phatVay != null) { cacheResult(phatVay); } else { entityCache.putResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, primaryKey, nullModel); } } catch (Exception e) { entityCache.removeResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, primaryKey); throw processException(e); } finally { closeSession(session); } } return phatVay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "PrimaryKey getPrimarykey();", "PrimaryKey getPrimaryKey();", "public PrimaryKey getPrimaryKey();", "PdfCodeTemporary selectByPrimaryKey(Integer id);", "Key getPrimaryKey();", "private TbviajepasajeroPK getPrimaryKey(PathSegment pathSegment) {\r\n ugt.entidades.TbviajepasajeroPK key = new ugt.entidades.TbviajepasajeroPK();\r\n javax.ws.rs.core.MultivaluedMap<String, String> map = pathSegment.getMatrixParameters();\r\n java.util.List<String> idviaje = map.get(\"idviaje\");\r\n if (idviaje != null && !idviaje.isEmpty()) {\r\n key.setIdviaje(new java.lang.Integer(idviaje.get(0)));\r\n }\r\n java.util.List<String> cedulap = map.get(\"cedulap\");\r\n if (cedulap != null && !cedulap.isEmpty()) {\r\n key.setCedulap(java.lang.String.valueOf(cedulap.get(0)));\r\n }\r\n return key;\r\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _phieugiahan.getPrimaryKey();\n\t}", "AlipayInfo selectByPrimaryKey(String id);", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "PrhFree selectByPrimaryKey(Integer id);", "Kaiwa selectByPrimaryKey(String maht);", "@Override\r\n\tpublic PayRecord selectByPrimaryKey(Integer prid) {\n\t\treturn null;\r\n\t}", "public static Pesanan getPesanan(int id){\n int besar = PESANAN_DATABASE.size();\n int i= 0;\n int w= 0;\n for(i=0;i<besar;i++){\n if(PESANAN_DATABASE.get(i).getID() == id){\n return PESANAN_DATABASE.get(i);\n }\n }\n return null;\n }", "@Override\n\tpublic PhatVay findByPrimaryKey(long phatVayId)\n\t\tthrows NoSuchPhatVayException {\n\n\t\treturn findByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n public FecetProrrogaOrden findByPrimaryKey(BigDecimal idProrroga) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(getTableName()).append(\" WHERE ID_PRORROGA_ORDEN = ?\");\n List<FecetProrrogaOrden> list = getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper(),\n idProrroga);\n return list.isEmpty() ? null : list.get(0);\n\n }", "PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);", "public SupplyPO get(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.getObject(SupplyPO.class, pk);\r\n\t\t\t\r\n\t\t}catch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}", "WayShopCateRoot selectByPrimaryKey(Integer id);", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "ParkCurrent selectByPrimaryKey(Integer id);", "CodeBuildProcedure selectByPrimaryKey(Integer buildProcedureId);", "Basicinfo selectByPrimaryKey(String taxregcode);", "TCpySpouse selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic Plate findById(long id) {\n\t\treturn null;\r\n\t}", "T findById(long pk);", "public String selectPKUser(int id) {\n String sql = \"SELECT publickey FROM users WHERE id = ?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "PaasCustomAutomationRecord selectByPrimaryKey(Integer id);", "public double getPk()\n {\n return this.pk;\n }", "@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }", "public TapColumn findOneColumn(TapColumnPK tapColumnPK);", "Ltsprojectpo selectByPrimaryKey(Long id);", "Yqbd selectByPrimaryKey(Integer id);", "T getByPk(int key) throws PersistException;", "IExtensionPoint getTableValue(String rowId, String columnId) {\n lock.readLock().lock();\n try {\n return extensionPointPluginMap.contains(rowId, columnId)\n ? extensionPointPluginMap.get(rowId, columnId).get()\n : null;\n } finally {\n lock.readLock().unlock();\n }\n }", "@Cacheable(value=\"netTest.questionCache\", key=\"'WareDao.selectByPK~ware:'+#pk\", unless=\"#result==null\")\n public Ware selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tWare record = (Ware) this.queryForObject(\"Ware.selectByPK\", pk);\n\t\t// build assoic for cache\n\t\tif(record!=null){\n \t CacheSynchronizer.getInstance().buildAssoc(\"netTest.questionCache\", \n \t\t\t \"WareDao.selectByPK~\"+Ware.ObjectType+\":\"+pk);\n \t}\n\t\treturn record;\n }", "@Transactional(readOnly = true)\n public Optional<Zhaopin> findOne(Long id) {\n log.debug(\"Request to get Zhaopin : {}\", id);\n return zhaopinRepository.findById(id);\n }", "ActivityHongbaoPrize selectByPrimaryKey(Integer actPrizeId);", "ProSchoolWare selectByPrimaryKey(String id);", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "public Resourcesvalue selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tResourcesvalue record = (Resourcesvalue) this.queryForObject(\"Resourcesvalue.selectByPK\", pk);\n\t\treturn record;\n }", "PcQualificationInfo selectByPrimaryKey(Integer zid);", "SdkMobileVcode selectByPrimaryKey(Integer vid);", "public Profesor selectByPrimaryKey(Integer id) {\n Profesor key = new Profesor();\n key.setId(id);\n Profesor record = (Profesor) getSqlMapClientTemplate().queryForObject(\"tbl_profesor.ibatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "T getById(PK id);", "SysCode selectByPrimaryKey(String id);", "Pays findById(Long aId);", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dictData.getPrimaryKey();\n\t}", "T get(PK id);", "public ProductVaccine searchProduct(int id) {\n for(ProductVaccine p : productCatalog) {\r\n if(p.getVaccineNumber() == id) {\r\n return p;\r\n }\r\n }\r\n return null;\r\n }", "@SneakyThrows\n @Override\n public DeveloperSkill findByID(Long id) {\n return null; //parse.get(Math.toIntExact(id));\n }", "@Override\n\tpublic Pessoa findOne(Integer arg0) {\n\t\treturn null;\n\t}", "Prueba selectByPrimaryKey(Integer id);", "boolean getPrimaryKey();", "@Override\r\n\tpublic ReservaBean obtienePorPK(int id) throws Exception {\n\t\treturn null;\r\n\t}", "GpPubgPlayer selectByPrimaryKey(Long id);", "@Override\r\n\tpublic PaymentPO findByID(String id) {\n\t\treturn null;\r\n\t}", "Procdef selectByPrimaryKey(String id);", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "public long getPrimaryKey() {\n return primaryKey;\n }", "IntegralBook selectByPrimaryKey(Long integralBookId);", "public long getVocubalaryId();", "public synchronized V get(K primaryKey) {\n try {\n Map<K, V> newBucket = getNewBucket();\n V entry = newBucket.get(primaryKey);\n if (entry == null) {\n Map<K, V> oldBucket = getOldBucket();\n entry = oldBucket.get(primaryKey);\n if (entry != null) {\n oldBucket.remove(primaryKey);\n put(primaryKey, entry);\n return entry;\n } else {\n return null;\n }\n } else {\n return entry;\n }\n // TODO: Is it intended catch all exceptions (including RuntimeException) here?\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "TBBearPer selectByPrimaryKey(Integer id);", "public Object findByPrimaryKey(long value) {\n\t\tTypedQuery<Pump> tq = em.createNamedQuery(Pump.FIND_PUMP_BY_PK, Pump.class);\n\t\ttq.setParameter(\"valueId\", value);\n\t\treturn tq.getSingleResult();\n\t}", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public HProvinceFb selectByPrimaryKey(Integer id) {\r\n HProvinceFb key = new HProvinceFb();\r\n key.setId(id);\r\n HProvinceFb record = (HProvinceFb) getSqlMapClientTemplate().queryForObject(\"H_PROVINCE_FB.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public Pais getByIdPais(Integer id);", "EtpBase selectByPrimaryKey(String id);", "public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Bitacora_peticionLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey primaryKey)\n\t\tthrows javax.ejb.FinderException;", "SdkPhone selectByPrimaryKey(Integer id);", "Object getPrimaryKey(Object metadataID);", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "ShopAccount selectByPrimaryKey(Integer spAccount);", "public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}", "@Override\r\n\tpublic XftPayment get(Integer id) {\n\t\treturn xftPaymentMapper.selectByPrimaryKey(id);\r\n\t}", "Optional<T> findOne(K id);", "long getPokemonId();", "HospitalType selectByPrimaryKey(String id);", "SpecialCircumstance selectByPrimaryKey(Long id);", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }", "@Override\n\tpublic V get(K pLlave) {\n\t\tint i = hash(pLlave);\n ArregloDinamico<NodoTabla<K,V>> lista = tablaDeHash[i];\n for(int j=1; j<=lista.size();j++){\n \tif(lista.getElement(j).darLlave().equals(pLlave)){\n \t\treturn (V) lista.getElement(j).darValor();\n \t}\n }\n \treturn null;\n\t}", "@Override\r\n\tpublic DeptBean findByPrimaryKey(BigDecimal id) throws SQLException {\n\t\tDeptBean ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE ID = ?\", new Object[] { id } );\r\n\t\treturn ret.length==0 ? null : ret[0];\r\n\t}", "public String getPrimaryKey() {\r\n return primaryKey;\r\n }", "PathologyInfo selectByPrimaryKey(Integer id);", "@Override\n\tpublic VcmsPortion fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tVcmsPortion vcmsPortion = (VcmsPortion)serializable;\n\n\t\tif (vcmsPortion == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tvcmsPortion = (VcmsPortion)session.get(VcmsPortionImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (vcmsPortion != null) {\n\t\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn vcmsPortion;\n\t}", "public Contract findByPrimaryKey(Long id) {\n\t\treturn null;\r\n\t}", "Payment selectByPrimaryKey(Long id);", "@Override\n\tpublic BikeAdvert getBikeAdvert(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//now retrive /read from db using the primary key\n\t\tBikeAdvert theBikeAdvert = currentSession.get(BikeAdvert.class,theId);\n\t\t\n\t\treturn theBikeAdvert;\n\t}", "QuestionOne selectByPrimaryKey(Integer id);", "Promo selectByPrimaryKey(Integer id);", "public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }" ]
[ "0.68433523", "0.6406385", "0.620343", "0.620343", "0.6049726", "0.60410285", "0.5855083", "0.583345", "0.5810665", "0.5758311", "0.5757277", "0.5753881", "0.56941056", "0.566101", "0.5602283", "0.5594267", "0.55911607", "0.55911314", "0.55774885", "0.5534699", "0.55142766", "0.5510924", "0.546922", "0.5460501", "0.5459889", "0.54457664", "0.5440073", "0.54031897", "0.5394618", "0.53937364", "0.53863335", "0.5386295", "0.53828436", "0.5358636", "0.5355277", "0.5345155", "0.5338833", "0.5336478", "0.53362876", "0.53337824", "0.53324664", "0.5321994", "0.5318595", "0.5310735", "0.5302175", "0.5297253", "0.5294382", "0.5287588", "0.52760196", "0.5275186", "0.5274326", "0.52732676", "0.52730864", "0.5271666", "0.5252463", "0.5251887", "0.52513546", "0.5239498", "0.5236732", "0.52364486", "0.52342504", "0.5229279", "0.52278584", "0.5227026", "0.5227026", "0.5218804", "0.5218487", "0.5211986", "0.5211936", "0.5210843", "0.5209232", "0.52023643", "0.5202334", "0.51982427", "0.5191874", "0.51918095", "0.51838195", "0.5181472", "0.51798797", "0.51772785", "0.5176901", "0.5160153", "0.5152991", "0.5150949", "0.51488274", "0.5148472", "0.51419085", "0.5140104", "0.5138431", "0.51377416", "0.51289576", "0.5125274", "0.5124436", "0.5121906", "0.5117848", "0.51076543", "0.51055473", "0.5104161", "0.510348", "0.50976413" ]
0.69748384
0
Returns the phat vay with the primary key or returns null if it could not be found.
@Override public PhatVay fetchByPrimaryKey(long phatVayId) { return fetchByPrimaryKey((Serializable)phatVayId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t}\n\n\t\treturn phatVay;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "PrimaryKey getPrimarykey();", "PrimaryKey getPrimaryKey();", "public PrimaryKey getPrimaryKey();", "PdfCodeTemporary selectByPrimaryKey(Integer id);", "Key getPrimaryKey();", "private TbviajepasajeroPK getPrimaryKey(PathSegment pathSegment) {\r\n ugt.entidades.TbviajepasajeroPK key = new ugt.entidades.TbviajepasajeroPK();\r\n javax.ws.rs.core.MultivaluedMap<String, String> map = pathSegment.getMatrixParameters();\r\n java.util.List<String> idviaje = map.get(\"idviaje\");\r\n if (idviaje != null && !idviaje.isEmpty()) {\r\n key.setIdviaje(new java.lang.Integer(idviaje.get(0)));\r\n }\r\n java.util.List<String> cedulap = map.get(\"cedulap\");\r\n if (cedulap != null && !cedulap.isEmpty()) {\r\n key.setCedulap(java.lang.String.valueOf(cedulap.get(0)));\r\n }\r\n return key;\r\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _phieugiahan.getPrimaryKey();\n\t}", "AlipayInfo selectByPrimaryKey(String id);", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "PrhFree selectByPrimaryKey(Integer id);", "Kaiwa selectByPrimaryKey(String maht);", "@Override\r\n\tpublic PayRecord selectByPrimaryKey(Integer prid) {\n\t\treturn null;\r\n\t}", "public static Pesanan getPesanan(int id){\n int besar = PESANAN_DATABASE.size();\n int i= 0;\n int w= 0;\n for(i=0;i<besar;i++){\n if(PESANAN_DATABASE.get(i).getID() == id){\n return PESANAN_DATABASE.get(i);\n }\n }\n return null;\n }", "@Override\n\tpublic PhatVay findByPrimaryKey(long phatVayId)\n\t\tthrows NoSuchPhatVayException {\n\n\t\treturn findByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n public FecetProrrogaOrden findByPrimaryKey(BigDecimal idProrroga) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(getTableName()).append(\" WHERE ID_PRORROGA_ORDEN = ?\");\n List<FecetProrrogaOrden> list = getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper(),\n idProrroga);\n return list.isEmpty() ? null : list.get(0);\n\n }", "PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);", "public SupplyPO get(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.getObject(SupplyPO.class, pk);\r\n\t\t\t\r\n\t\t}catch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}", "WayShopCateRoot selectByPrimaryKey(Integer id);", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "ParkCurrent selectByPrimaryKey(Integer id);", "CodeBuildProcedure selectByPrimaryKey(Integer buildProcedureId);", "Basicinfo selectByPrimaryKey(String taxregcode);", "TCpySpouse selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic Plate findById(long id) {\n\t\treturn null;\r\n\t}", "T findById(long pk);", "public String selectPKUser(int id) {\n String sql = \"SELECT publickey FROM users WHERE id = ?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "PaasCustomAutomationRecord selectByPrimaryKey(Integer id);", "public double getPk()\n {\n return this.pk;\n }", "@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }", "public TapColumn findOneColumn(TapColumnPK tapColumnPK);", "Ltsprojectpo selectByPrimaryKey(Long id);", "Yqbd selectByPrimaryKey(Integer id);", "T getByPk(int key) throws PersistException;", "IExtensionPoint getTableValue(String rowId, String columnId) {\n lock.readLock().lock();\n try {\n return extensionPointPluginMap.contains(rowId, columnId)\n ? extensionPointPluginMap.get(rowId, columnId).get()\n : null;\n } finally {\n lock.readLock().unlock();\n }\n }", "@Cacheable(value=\"netTest.questionCache\", key=\"'WareDao.selectByPK~ware:'+#pk\", unless=\"#result==null\")\n public Ware selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tWare record = (Ware) this.queryForObject(\"Ware.selectByPK\", pk);\n\t\t// build assoic for cache\n\t\tif(record!=null){\n \t CacheSynchronizer.getInstance().buildAssoc(\"netTest.questionCache\", \n \t\t\t \"WareDao.selectByPK~\"+Ware.ObjectType+\":\"+pk);\n \t}\n\t\treturn record;\n }", "@Transactional(readOnly = true)\n public Optional<Zhaopin> findOne(Long id) {\n log.debug(\"Request to get Zhaopin : {}\", id);\n return zhaopinRepository.findById(id);\n }", "ActivityHongbaoPrize selectByPrimaryKey(Integer actPrizeId);", "ProSchoolWare selectByPrimaryKey(String id);", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "public Resourcesvalue selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tResourcesvalue record = (Resourcesvalue) this.queryForObject(\"Resourcesvalue.selectByPK\", pk);\n\t\treturn record;\n }", "PcQualificationInfo selectByPrimaryKey(Integer zid);", "SdkMobileVcode selectByPrimaryKey(Integer vid);", "public Profesor selectByPrimaryKey(Integer id) {\n Profesor key = new Profesor();\n key.setId(id);\n Profesor record = (Profesor) getSqlMapClientTemplate().queryForObject(\"tbl_profesor.ibatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "T getById(PK id);", "SysCode selectByPrimaryKey(String id);", "Pays findById(Long aId);", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dictData.getPrimaryKey();\n\t}", "T get(PK id);", "public ProductVaccine searchProduct(int id) {\n for(ProductVaccine p : productCatalog) {\r\n if(p.getVaccineNumber() == id) {\r\n return p;\r\n }\r\n }\r\n return null;\r\n }", "@SneakyThrows\n @Override\n public DeveloperSkill findByID(Long id) {\n return null; //parse.get(Math.toIntExact(id));\n }", "@Override\n\tpublic Pessoa findOne(Integer arg0) {\n\t\treturn null;\n\t}", "Prueba selectByPrimaryKey(Integer id);", "boolean getPrimaryKey();", "@Override\r\n\tpublic ReservaBean obtienePorPK(int id) throws Exception {\n\t\treturn null;\r\n\t}", "GpPubgPlayer selectByPrimaryKey(Long id);", "@Override\r\n\tpublic PaymentPO findByID(String id) {\n\t\treturn null;\r\n\t}", "Procdef selectByPrimaryKey(String id);", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "public long getPrimaryKey() {\n return primaryKey;\n }", "IntegralBook selectByPrimaryKey(Long integralBookId);", "public long getVocubalaryId();", "public synchronized V get(K primaryKey) {\n try {\n Map<K, V> newBucket = getNewBucket();\n V entry = newBucket.get(primaryKey);\n if (entry == null) {\n Map<K, V> oldBucket = getOldBucket();\n entry = oldBucket.get(primaryKey);\n if (entry != null) {\n oldBucket.remove(primaryKey);\n put(primaryKey, entry);\n return entry;\n } else {\n return null;\n }\n } else {\n return entry;\n }\n // TODO: Is it intended catch all exceptions (including RuntimeException) here?\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "TBBearPer selectByPrimaryKey(Integer id);", "public Object findByPrimaryKey(long value) {\n\t\tTypedQuery<Pump> tq = em.createNamedQuery(Pump.FIND_PUMP_BY_PK, Pump.class);\n\t\ttq.setParameter(\"valueId\", value);\n\t\treturn tq.getSingleResult();\n\t}", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public HProvinceFb selectByPrimaryKey(Integer id) {\r\n HProvinceFb key = new HProvinceFb();\r\n key.setId(id);\r\n HProvinceFb record = (HProvinceFb) getSqlMapClientTemplate().queryForObject(\"H_PROVINCE_FB.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public Pais getByIdPais(Integer id);", "EtpBase selectByPrimaryKey(String id);", "public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Bitacora_peticionLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey primaryKey)\n\t\tthrows javax.ejb.FinderException;", "SdkPhone selectByPrimaryKey(Integer id);", "Object getPrimaryKey(Object metadataID);", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "ShopAccount selectByPrimaryKey(Integer spAccount);", "public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}", "@Override\r\n\tpublic XftPayment get(Integer id) {\n\t\treturn xftPaymentMapper.selectByPrimaryKey(id);\r\n\t}", "Optional<T> findOne(K id);", "long getPokemonId();", "HospitalType selectByPrimaryKey(String id);", "SpecialCircumstance selectByPrimaryKey(Long id);", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }", "@Override\n\tpublic V get(K pLlave) {\n\t\tint i = hash(pLlave);\n ArregloDinamico<NodoTabla<K,V>> lista = tablaDeHash[i];\n for(int j=1; j<=lista.size();j++){\n \tif(lista.getElement(j).darLlave().equals(pLlave)){\n \t\treturn (V) lista.getElement(j).darValor();\n \t}\n }\n \treturn null;\n\t}", "@Override\r\n\tpublic DeptBean findByPrimaryKey(BigDecimal id) throws SQLException {\n\t\tDeptBean ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE ID = ?\", new Object[] { id } );\r\n\t\treturn ret.length==0 ? null : ret[0];\r\n\t}", "public String getPrimaryKey() {\r\n return primaryKey;\r\n }", "PathologyInfo selectByPrimaryKey(Integer id);", "@Override\n\tpublic VcmsPortion fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tVcmsPortion vcmsPortion = (VcmsPortion)serializable;\n\n\t\tif (vcmsPortion == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tvcmsPortion = (VcmsPortion)session.get(VcmsPortionImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (vcmsPortion != null) {\n\t\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn vcmsPortion;\n\t}", "public Contract findByPrimaryKey(Long id) {\n\t\treturn null;\r\n\t}", "Payment selectByPrimaryKey(Long id);", "@Override\n\tpublic BikeAdvert getBikeAdvert(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//now retrive /read from db using the primary key\n\t\tBikeAdvert theBikeAdvert = currentSession.get(BikeAdvert.class,theId);\n\t\t\n\t\treturn theBikeAdvert;\n\t}", "QuestionOne selectByPrimaryKey(Integer id);", "Promo selectByPrimaryKey(Integer id);", "public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }" ]
[ "0.69748384", "0.6406385", "0.620343", "0.620343", "0.6049726", "0.60410285", "0.5855083", "0.583345", "0.5810665", "0.5758311", "0.5757277", "0.5753881", "0.56941056", "0.566101", "0.5602283", "0.5594267", "0.55911607", "0.55911314", "0.55774885", "0.5534699", "0.55142766", "0.5510924", "0.546922", "0.5460501", "0.5459889", "0.54457664", "0.5440073", "0.54031897", "0.5394618", "0.53937364", "0.53863335", "0.5386295", "0.53828436", "0.5358636", "0.5355277", "0.5345155", "0.5338833", "0.5336478", "0.53362876", "0.53337824", "0.53324664", "0.5321994", "0.5318595", "0.5310735", "0.5302175", "0.5297253", "0.5294382", "0.5287588", "0.52760196", "0.5275186", "0.5274326", "0.52732676", "0.52730864", "0.5271666", "0.5252463", "0.5251887", "0.52513546", "0.5239498", "0.5236732", "0.52364486", "0.52342504", "0.5229279", "0.52278584", "0.5227026", "0.5227026", "0.5218804", "0.5218487", "0.5211986", "0.5211936", "0.5210843", "0.5209232", "0.52023643", "0.5202334", "0.51982427", "0.5191874", "0.51918095", "0.51838195", "0.5181472", "0.51798797", "0.51772785", "0.5176901", "0.5160153", "0.5152991", "0.5150949", "0.51488274", "0.5148472", "0.51419085", "0.5140104", "0.5138431", "0.51377416", "0.51289576", "0.5125274", "0.5124436", "0.5121906", "0.5117848", "0.51076543", "0.51055473", "0.5104161", "0.510348", "0.50976413" ]
0.68433523
1
Returns all the phat vaies.
@Override public List<PhatVay> findAll() { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping ( BASE_PATH + \"/pharmacies\" )\n public List<Pharmacy> getPharmacies () {\n final List<Pharmacy> all = Pharmacy.getPharmacies();\n for ( final Pharmacy pharmacy : all ) {\n pharmacy.nullPrescriptions();\n }\n return all;\n }", "public java.util.List<viaggi.Pacchetto> getPacchetti();", "@Override\n\tpublic List<Patientstreatments> getallpatienttreat() {\n\t\treturn patreatrep.findAll();\n\t}", "@GetMapping ( BASE_PATH + \"/pharmacies/state/{state}\" )\n public List<Pharmacy> getPharmacies ( @PathVariable ( \"state\" ) final String state ) {\n final List<Pharmacy> all = Pharmacy.getAllinState( state );\n for ( final Pharmacy pharmacy : all ) {\n pharmacy.nullPrescriptions();\n }\n return all;\n }", "public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultList();\n\n\t\treturn retorno;\n\n\t}", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "public List<Poubelle> getLesPoubelles() {\r\n\t\treturn lesPoubelles;\r\n\t}", "public List<Poruke> getAllPoruke(){\r\n return porukeBeanLocal.getAllPoruke();\r\n }", "Toy[] getToys() {\r\n\r\n\t\treturn this.toys;\r\n\t}", "public abstract DtPropuesta[] getPropuestasPopulares();", "public Collection<VirtualPet> pets() {\n\t\treturn shelterPets.values();\n\t}", "@Override\n\tpublic List<Pais> findAll() {\n\t\treturn (List<Pais>)paisRepository.findAll();\n\t}", "public ArrayList<PlayStationTrophy> getGameTrophies() {\n\t\treturn gameTrophies;\n\t}", "@Override\r\n\tpublic List<Prize> findAll() {\n\t\treturn prizeDao.findAll();\r\n\t}", "public List<Pizza> getPizzas(){\n return new ArrayList<>(pizzas);\n }", "@Override\r\n\tpublic List<Gjjtqyyb> findtqyy() {\n\t\treturn tqyydao.findall();\r\n\t}", "@Override\n public List<Piscine> afficherPiscines() {\n return piscineRepo.findAll();\n }", "public Weet[] getWeets() {\n return array.getWeetsFromStore();\n //return tree.toArray();\n }", "public Match[] getMale32Winners() {\n return thirt;\n }", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "public Integer getTrophies()\n\t{\n\t\treturn trophies;\n\t}", "private void getPTs(){\n mPyTs = estudioAdapter.getListaPesoyTallasSinEnviar();\n //ca.close();\n }", "public ArrayList<MusicalPhrase> getPhrases() {\n ArrayList<MusicalPhrase> copy = new ArrayList<MusicalPhrase>(this.phrases.size());\n for (MusicalPhrase m : this.phrases) \n copy.add(m.clone());\n return copy;\n }", "public Hai[] getHais() {\n\t\treturn m_hais;\n\t}", "@Override\n public List<Patente> getAllPatente() {\n return this.getDaoPatente().takeAll();\n }", "public static List<Sintoma> getSintomas() {\n return sintomas;\n }", "private static List<PotionInfo> getPotionsManual()\n\t{\n\t\tArrayList<PotionInfo> potionsManual = new ArrayList<>();\n\n\t\tpotionsManual.add(PotionInfo.PYGMY_OIL());\n\t\tpotionsManual.add(PotionInfo.FLASK_OF_PURE_MOJO());\n\t\tpotionsManual.add(PotionInfo.LEZNUPARS_DRAUGHT());\n\t\tpotionsManual.add(PotionInfo.GURUS_ELIXIR());\n\n\t\treturn potionsManual;\n\t}", "public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "public void getAngajati() {\n\t\tList<Angajat> angajatiWithSalary = angajatOperations.getAngajatiBySalaryCondition();\n\t\tangajatOperations.printListOfAngajati(angajatiWithSalary);\n\t}", "public ArrayList<Pokemon> getAllPokemon(){\n\t\treturn caughtPokemon; \n\t}", "public static HashSet<Pregunta> getPreguntas() {\n return preguntas;\n }", "public void ShowHypo(){\n for ( SlotHypo sh : slot_hypos ){\n System.out.print(sh.name + \" {\");\n for ( ValueHypo vh : sh.value_hypos ){\n System.out.print(vh.name + \" \");\n }\n System.out.print( \"}\");\n }\n System.out.println();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "public ArrayList<DetailModel> getPhonesFromFavorite(){\n\n return null;\n }", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "@Override\n\tpublic Iterable<Pessoa> findAll() {\n\t\treturn null;\n\t}", "public Match[] getFemale32Winners() {\n return wthirt;\n }", "public Profesor getProfesorAsig () {\n return ProfesorAsig;\n }", "public List<ProteinHit> getProteinList() {\r\n return proteinHits;\r\n }", "public SmallArrayBasedLongToDoubleMap[] getSocialProofs() {\n return socialProofs;\n }", "public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}", "public static List<CauHinhThuTienTet> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public Object getTotalTrophies() {\n\t\treturn this.totalTrophies;\n\t}", "public List<String> getAllputs() {\n return this.allputs;\n }", "@Override\r\n\tpublic List<Units> queryAllHx() {\n\t\treturn adi.queryAllHx();\r\n\t}", "public List<Phonenumber> getPhonenumbers() {\r\n\r\n if (this.phonenumbers == null) {\r\n\r\n this.phonenumbers = new ArrayList<Phonenumber>();\r\n\r\n }\r\n\r\n return this.phonenumbers;\r\n\r\n }", "@Override\n\tpublic List<Pais> findAllPaises() {\n\t\treturn getSession().createQuery(\"from Pais\").list();\n\t}", "public abstract Collection<Turtle> getAllTurtles();", "public QuerySet<Perfil> getPerfilSet() {\n QuerySet<Perfil> perfilList = new QuerySet<Perfil>();\n Perfil perfil = null;\n for (Privilegio privilegio : getPrivilegioSet()) {\n perfil = Perfil.objects.<Perfil>get(\"id\", privilegio.getPerfil().getId());\n perfil.getPermissoes();\n perfilList.add(perfil);\n }\n return perfilList;\n }", "public List<Integer> getTotGOAL () {\r\n\t\t\treturn dao.getTotGOAL();\r\n\t\t}", "public List<HashMap<String, Object>> PromoList() {\n\t\treturn sqlSession.selectList(\"main.PromoList\");\r\n\t}", "public String getPlaats() {\n\t\treturn plaats;\n\t}", "protected Kazan[] getKazans(){\n return kazans;\n }", "@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}", "@Override\n\tpublic List<Profession> getAll() {\n\t\treturn dao.findAll();\n\t}", "public abstract Map<String, Protein> getProteins();", "public List<String> q3() {\n\t\tList<String> top20 = jogadores.stream()\n\t\t\t\t.map(x-> x.getFullName())\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn top20.subList(0,20);\n\t}", "public String[] mo15790hp() {\n return (String[]) this.f3880Mw.mo15798ho().toArray(new String[0]);\n }", "public Match[] getFemaleQuartersWinners() {\n return wquart;\n }", "@Override\n\tpublic List<Parking> getAllParking() {\n\t\treturn parkingRepository.getAllParking();\n\t}", "public Match[] getFemale128Winners() {\n return whunna;\n }", "public List<Parcheggio> getListParcheggi() {\n return mListParcheggi;\n }", "public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }", "public List<String> mo15789ho() {\n return this.f3880Mw.mo15798ho();\n }", "List<Penerbit> listPen() {\n return dao.getAll(Penerbit.class);\n }", "VectorArray getPhsAHar();", "public List<Manuscript> showAllMyManuscripts() {\t\t\r\n\t\treturn myManuscripts;\r\n\t}", "public ArrayList<Angkot> getAllAngkot() {\n ArrayList<Angkot> angkotList = new ArrayList<Angkot>();\n \n // select all SQL query\n Cursor cursor = database.query(HelperAngkot.TABLE_NAME, allColumns, null, null, null, null, null);\n \n // pindah ke data paling pertama\n cursor.moveToFirst();\n // jika masih ada data, masukkan data barang ke daftar barang\n while (!cursor.isAfterLast()) {\n \tAngkot user = cursorToAngkot(cursor);\n \tangkotList.add(user);\n \tcursor.moveToNext();\n }\n // Make sure to close the cursor\n cursor.close();\n return angkotList;\n }", "@SuppressWarnings(\"unchecked\") //查询所有\n\tpublic List<PoInfo> querryAll(Page page) throws Exception {\n\t\treturn (List<PoInfo>) dao.findForList(\"PoInfoMapper.listAllPoInfo\", page);\n\t}", "public Set<Scope> zzasv() {\n if (this.f613zP == null) {\n return Collections.emptySet();\n }\n HashSet hashSet = new HashSet(this.f613zP.zzavp());\n Map zzavr = this.f613zP.zzavr();\n for (Api api : zzavr.keySet()) {\n if (!this.f600zA.f679Ay.containsKey(api.zzaqv())) {\n hashSet.addAll(((com.google.android.gms.common.internal.zzf.zza) zzavr.get(api)).f319jw);\n }\n }\n return hashSet;\n }", "@Override\n\tpublic Etape[] getAll() {\n\t\treturn null;\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/getpiatti\")\n\tpublic @ResponseBody\n\tList<Piatto> getAllPiatti(HttpServletRequest request,\n\t\t\tHttpServletResponse response, HttpSession session)\n\t\t\tthrows IOException {\n\t\ttry {\n\t\t\tlog.info(\"/getpiatti\");\n\t\t\tString token = getToken(request);\n\t\t\tBasicProfileService service = new BasicProfileService(\n\t\t\t\t\tprofileaddress);\n\t\t\tBasicProfile profile = service.getBasicProfile(token);\n\t\t\t// Long userId = Long.valueOf(profile.getUserId());\n\t\t\tif (profile != null) {\n\n\t\t\t\treturn piattoRepository.findAll();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n\t\t}\n\t\treturn null;\n\t}", "@Transactional\n\tpublic List<Partita> tutti() {\n\t\treturn (List<Partita>) partitaRepository.findAll();\n\t}", "@Override\n\tpublic Iterable<Profesores> listaProfesores() {\n\t\treturn profesoresRepositorio.findAll();\n\t}", "public @RequestMapping(\n\t\t\tvalue = \"/party/all\",\n\t\t\tmethod = GET,\n\t\t\tproduces = JSON\n\t) Party[] getAllParties() {\n\t\treturn partyService.getAllParties();\n\t}", "public Spider[] getSpiders() {\n\t\tZone[] habitat;\n\t\tList<Spider> spiders = new ArrayList<Spider>();\n\t\tfor (List<Pair<String, List<CVizZone>>> spInfoList : indMap.values()) {\n\t\t\tfor (Pair<String, List<CVizZone>> spInfo : spInfoList) {\n\t\t\t\thabitat = cvizZonesToICirclesZones(spInfo.snd);\n\t\t\t\tspiders.add(new Spider(spInfo.fst, habitat));\n\t\t\t}\n\t\t}\n\t\treturn spiders.toArray(new Spider[spiders.size()]);\n\t}", "public Set<DynamicEntity> getAllValuesOfvehicle() {\n return rawStreamAllValuesOfvehicle(emptyArray()).collect(Collectors.toSet());\n }", "public int[][] getHall() {\n return Sala;\n }", "@Override\r\n\tpublic List<Type> xia() {\n\t\treturn dao.xia();\r\n\t}", "public Double[] getFavAM() {\n return FavoritosAM;\r\n }", "public Webpage[] getFathers() {\t\n\t\tWebpage[] array = new Webpage[fathers.size()];\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = getWebpage(fathers.get(i));\n\t\t}\n\t\treturn array;\n\t}", "public List<quanhuyen> getQuanHuyenByThanhPhoid(int idtp) {\n List<quanhuyen> listQuanHuyen = new ArrayList<>();\n // Step 1: Establishing a Connection\n try (Connection connection = DBConnection.createConnection();\n PreparedStatement statement = connection.prepareStatement(getQuanHuyenByThanhphoid);) {\n statement.setInt(1, idtp);\n ResultSet resultSet = statement.executeQuery();\n\n while (resultSet.next()) {\n int id = resultSet.getInt(\"id\");\n String tenQH = resultSet.getString(\"ten\");\n int thanhphoid = resultSet.getInt(\"ThanhPhoid\");\n int trangthai = resultSet.getInt(\"trangthai\");\n listQuanHuyen.add(new quanhuyen(id, tenQH, thanhphoid, trangthai));\n }\n } catch (SQLException e) {\n printSQLException(e);\n }\n return listQuanHuyen;\n }", "public Purse[] getPurses() {\n return myPurses;\n }", "public Map<String, Planet> getPlanets(){\n\t\treturn galaxy;\n\t}", "@SuppressWarnings( {\"unchecked\"})\n\t\t\tString[] getStuff() { \n\t\t\t\treturn (String[]) getSeveral().toArray(new String[getSeveral().size()]);\n\t\t\t}", "@Override\n\tpublic Set<OWLEntity> getAllProperties() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getObjectPropertiesInSignature());\n\t\treturn result;\n\t}", "@Override\r\n\tpublic List<Pilot> getAllPilots() {\r\n\t\tList<Pilot> cloned = new ArrayList<>(pilots);\r\n\t\treturn cloned;\r\n\t}", "public Set<Integer> getAllValuesOfby() {\n return rawStreamAllValuesOfby(emptyArray()).collect(Collectors.toSet());\n }", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "@Override\r\n\tpublic List<Spot> queryAllSpot() {\n\t\treturn spotRepository.queryAllSpot();\r\n\t}", "public synchronized Crystal[] getGameCrystals() {\n\t\treturn InformationPresenter.getInstance().getGameCrystals();\n\t}", "@ModelAttribute(\"maquinistas\")\n\tpublic List<Personal> listMaquinistasAll() {\n\t\tList<Personal> lista = new ArrayList<>();\n\t\tPersonal estadoVerificacionInforme = new Personal();\n\t\testadoVerificacionInforme.setNombre(\"Seleccione uno:\");\n\t\tlista.add(estadoVerificacionInforme);\n\t\tlista.addAll(\n\t\t\t\tpersonalDAO.findPersonalByFilters(null, Constantes.CARGO_PERSONAL_MAQUINISTA.toString(), null, null));\n\t\treturn lista;\n\t}", "@GetMapping(\"projekat\")\n\tpublic Collection<Projekat> getProjekat() {\n\t\treturn projekatRepository.findAll();\n\t}", "public List<IHopPerspective> getPerspectives() {\n return new ArrayList<>( perspectivesMap.values() );\n }", "List<Prize> getPrizeList();", "public List<Movie> theaters() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "public Match[] getMaleQuartersWinners() {\n return quart;\n }", "public List<quanhuyen> getAllQuanHuyen() {\n List<quanhuyen> qhlists1 = new ArrayList<>();\n // Step 1: Establishing a Connection\n try (Connection connection = DBConnection.createConnection();\n PreparedStatement statement = connection.prepareStatement(getAll);) {\n\n ResultSet resultSet = statement.executeQuery();\n\n while (resultSet.next()) {\n int id = resultSet.getInt(\"id\");\n String tenQH = resultSet.getString(\"ten\");\n int tpid = resultSet.getInt(\"ThanhPhoid\");\n int trangthai = resultSet.getInt(\"trangthai\");\n qhlists1.add(new quanhuyen(id, tenQH, tpid, trangthai));\n }\n } catch (SQLException e) {\n printSQLException(e);\n }\n return qhlists1;\n }", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}" ]
[ "0.68293554", "0.60033923", "0.5847399", "0.5841154", "0.5764852", "0.5758176", "0.5563781", "0.5563497", "0.5562544", "0.5524742", "0.54953206", "0.54941744", "0.5493823", "0.5488232", "0.5472547", "0.5442824", "0.54425395", "0.54359674", "0.542558", "0.54102755", "0.540408", "0.5391361", "0.5380981", "0.5372139", "0.53719133", "0.5365144", "0.53642374", "0.53598905", "0.5359262", "0.5351223", "0.5349921", "0.5345226", "0.5336952", "0.5335776", "0.53355837", "0.5334125", "0.5330444", "0.5326483", "0.53188854", "0.53105325", "0.53095126", "0.5289321", "0.5279388", "0.52755857", "0.5275462", "0.5272133", "0.5271019", "0.52584183", "0.5257892", "0.52405614", "0.5239026", "0.523885", "0.5230703", "0.52236134", "0.5208505", "0.52054656", "0.5202037", "0.5187924", "0.5183585", "0.5182947", "0.5174478", "0.51698256", "0.5167972", "0.51653737", "0.51652247", "0.5154125", "0.51449823", "0.51448846", "0.51410884", "0.5140841", "0.5138218", "0.51333874", "0.51270425", "0.512575", "0.512272", "0.5119471", "0.5117735", "0.51127285", "0.5112013", "0.5102835", "0.5099997", "0.50984526", "0.5097346", "0.509479", "0.5083569", "0.508293", "0.5082648", "0.508099", "0.5079137", "0.5076004", "0.5067555", "0.5062217", "0.50621855", "0.50586855", "0.50555784", "0.504703", "0.50449866", "0.5042154", "0.5039165", "0.5037584" ]
0.6463695
1
Returns a range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtilALL_POS), then the query will include the default ORDER BY logic from PhatVayModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
@Override public List<PhatVay> findAll(int start, int end) { return findAll(start, end, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_PHATVAY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_PHATVAY;\n\n\t\t\t\tif (pagination) {\n\t\t\t\t\tsql = sql.concat(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "public java.util.List<PlanoSaude> findAll(int start, int end);", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "public static List<CauHinhThuTienTet> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<Payments> query(Map<String, Object> filter, int start, int rows) {\n\t\tRowBounds rb = new RowBounds(start, rows);\n\n\t\treturn this.mapper.queryPage(filter, rb);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);", "@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}", "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "@RequestMapping(value = \"/allEndroit\")\n\tpublic List<Endroit> getAllEndroit() {\n\t\n\t\treturn endroitDAO.getAllEndroitList();\n\t}", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public static List<FoundObject> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "public Set<T> getRanges();", "@Override\n\tpublic List<Pais> findAll() {\n\t\treturn (List<Pais>)paisRepository.findAll();\n\t}", "@Override\n public List<FecetProrrogaOrden> findAll() {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" ORDER BY ID_PRORROGA_ORDEN\");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper());\n\n }", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);", "@GET\n\t@Path(\"all\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\treturn Response.ok(taxBusiness.getAllTaxes()).build();\n\n\t}", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "@Override\r\n public ProductosPuntoVenta[] findAll()\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" ORDER BY id_pdv\", null);\r\n }", "public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}", "@Override\r\n\tpublic List<Units> queryAllHx() {\n\t\treturn adi.queryAllHx();\r\n\t}", "@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "public static SortBuilder[] allInstances() {\n \t\treturn (SortBuilder[]) allInstances.toArray(new SortBuilder[allInstances.size()]);\n \t}", "@Override\n public List<Vehicle> findAll() {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "@Override\n\tpublic List<MedioPago> getall() {\n\t\treturn (List<MedioPago>) iMedioPagoDao.findAll();\t\t\n\t}", "public ArrayList<VtbObject> findAll() throws MappingException {\n\t\treturn null;\n\t}", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "@Override\r\n\tpublic List<Price> queryCheng(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryCheng(start,end);\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}", "@Override\n\tpublic List<Tourneys> getAllTourneys() {\n\t\tList<Tourneys>listOfTourneys = new ArrayList<>();\n\t\tString sql = \"select * from tournaments\";\n\t\t\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(results.next()) {\n\t\t\t\tTourneys tourney = mapRowToTourneys(results);\n\t\t\t\tlistOfTourneys.add(tourney);\n\t\t\t}\t\n\t\treturn listOfTourneys;\n\t}", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "@Override\r\n\tpublic List<AsxDataVO> findAll() {\n\t\treturn mongoTemplate.find(new Query(), AsxDataVO.class);\r\n\t}", "@Override\n\tpublic List<Approvatore> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "@Transactional\r\n\tpublic List<Trip> getPageTripByCondition(Integer start, Integer maxCount) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}", "public static Iterable<AnalyticsResults> getAllEvents(Date start, Date end) {\n\t\ttry {\n\t\t\treturn Common.query(\n\t\t\t\t\t\"{CALL GetAnalyticsForDateRange(?,?)}\",\n\t\t\t\t\tprocedure -> {\n\t\t\t\t\t\tprocedure.setDate(1, start);\n\t\t\t\t\t\tprocedure.setDate(2, end);\n\t\t\t\t\t},\n\t\t\t\t\tAnalyticsResults::listFromResults\n\t\t\t);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"GetAnalyticsForDateRange\");\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t}", "@Override\n\tpublic List<ApartmentListing> getApartments() {\n\t\treturn apartmentListingRepository.findAll();\n\t}", "@Override\n\tpublic List<Trainee> getAll() {\n\t\tQuery q=em.createQuery(\"select m from Trainee m\");\n\t\tList<Trainee> l=q.getResultList();\n\t\treturn l;\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "@Override\n\tpublic List<VcmsPortion> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\r\n\tpublic List<Spot> queryAllSpot() {\n\t\treturn spotRepository.queryAllSpot();\r\n\t}", "public List<OrdersCustom> queryAllOrders() {\n\t\treturn ordersMapper.queryAllOrders();\n\t}", "Collection<AssociationEnd> getAssociations();", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "public java.util.List<DataEntry> findAll(int start, int end);", "@Override\n\tpublic List<Answer> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "@Override\n\tpublic List<PersonelContract> GetAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}", "PagedIterable<ServiceEndpointPolicy> list();", "@Override\n\tpublic List<WxProcessDefinition> queryAll() {\n\t\tCriteriaBuilder cb = this.getCriteriaBuilder();\n\t\tCriteriaQuery<WxProcessDefinition> c = cb.createQuery(getEntityClass());\n\t\tRoot<WxProcessDefinition> root = c.from(getEntityClass());\n\t\tc.orderBy(cb.asc(root.get(\"index\")));\n\t\treturn super.query(c.select(root), null, null);\n\t}", "public List<Vacuna> findAll() {\n\t\treturn vacunaRepository.findAll();\n\t}", "public List<VariantDto> getAllVariants() {\n return variantRepository.findAll()\n .stream()\n .map(q -> mapper.toDto(q))\n .collect(Collectors.toList());\n }", "@Override\r\n public List<Anggota> getAll() {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *From Anggota\";\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return datas;\r\n\r\n }", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "@Override\r\n\tpublic List<Prize> findAll() {\n\t\treturn prizeDao.findAll();\r\n\t}", "public static List<Term> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public ObservableList<Part> getAllParts() { return allParts; }", "@Override\r\n\t@Transactional(readOnly = true)\r\n\tpublic List<PhieuDatHang> getAll(Class<PhieuDatHang> entityClass) {\n\t\treturn this.phieuDatHangDaoImpl.getAll(entityClass);\r\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultList();\n\n\t\treturn retorno;\n\n\t}", "public java.util.List<Todo> findAll(int start, int end);", "public List<SalePurchase> viewAllSPEntriesPaginated(int start, int limit) {\n\t\t//System.out.println(start + \" \" + limit);\n\t\tList<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "@Override\n\tpublic List<MetodoPagamento> findAllOcupados() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Pais> findAllPaises() {\n\t\treturn getSession().createQuery(\"from Pais\").list();\n\t}" ]
[ "0.7884219", "0.7064242", "0.6200922", "0.5872316", "0.5820836", "0.58108443", "0.56157243", "0.5566941", "0.5370274", "0.5313964", "0.52985406", "0.51552784", "0.51415557", "0.5140979", "0.5098434", "0.49564713", "0.491518", "0.48857257", "0.48703277", "0.48589244", "0.4831933", "0.47737402", "0.47368085", "0.47254667", "0.46982196", "0.4683045", "0.46790045", "0.46506068", "0.46409932", "0.46375614", "0.4637273", "0.4618609", "0.45968407", "0.458515", "0.45846578", "0.45735717", "0.4561829", "0.45610106", "0.45564643", "0.4544417", "0.4535072", "0.45293152", "0.4516512", "0.45113012", "0.45045674", "0.44935757", "0.4483979", "0.44634953", "0.4452549", "0.4447723", "0.44438297", "0.44400653", "0.44365725", "0.4435159", "0.44324085", "0.44217187", "0.44117054", "0.44101512", "0.44093916", "0.44050995", "0.43999246", "0.43990964", "0.4385522", "0.43670404", "0.4365657", "0.43639952", "0.4362639", "0.43552783", "0.43534493", "0.43526176", "0.43481725", "0.43470702", "0.43435505", "0.433352", "0.4331498", "0.4328294", "0.4322612", "0.43189448", "0.43135962", "0.43128756", "0.43118873", "0.42997235", "0.42932805", "0.42913884", "0.42905888", "0.4285838", "0.42713156", "0.4265226", "0.42646793", "0.42637914", "0.4261704", "0.42616084", "0.42590833", "0.42509574", "0.42439044", "0.4242222", "0.42386675", "0.4233419", "0.42282003", "0.422045" ]
0.70031965
2
Returns an ordered range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtilALL_POS), then the query will include the default ORDER BY logic from PhatVayModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
@Override public List<PhatVay> findAll( int start, int end, OrderByComparator<PhatVay> orderByComparator) { return findAll(start, end, orderByComparator, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_PHATVAY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_PHATVAY;\n\n\t\t\t\tif (pagination) {\n\t\t\t\t\tsql = sql.concat(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "@Override\n\tpublic List<PhatVay> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public java.util.List<PlanoSaude> findAll(int start, int end);", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public static List<CauHinhThuTienTet> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public List<OrdersCustom> queryAllOrders() {\n\t\treturn ordersMapper.queryAllOrders();\n\t}", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<Product> findByPriceBetweenOrderByPriceAsc(double from, double to);", "@Override\n\tpublic List<Payments> query(Map<String, Object> filter, int start, int rows) {\n\t\tRowBounds rb = new RowBounds(start, rows);\n\n\t\treturn this.mapper.queryPage(filter, rb);\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "PagedIterable<ServiceEndpointPolicy> list();", "public Set<T> getRanges();", "public static SortBuilder[] allInstances() {\n \t\treturn (SortBuilder[]) allInstances.toArray(new SortBuilder[allInstances.size()]);\n \t}", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "@Override\r\n\tpublic List<Product> findAllProductsByAscending() {\n\t\treturn productRepository.findAllProductsByAscending();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n public List<FecetProrrogaOrden> findAll() {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" ORDER BY ID_PRORROGA_ORDEN\");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper());\n\n }", "public List<Product> getPriceAscSortedProducts(){\n\t\treturn dao.getAllProducts();\n\t}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);", "public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<OperationArea> findAllBy(Pageable pageable);", "@NotNull\n EntityIterable asSortResult();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@RequestMapping(value = \"/allEndroit\")\n\tpublic List<Endroit> getAllEndroit() {\n\t\n\t\treturn endroitDAO.getAllEndroitList();\n\t}", "public java.util.List<Todo> findByCompanyId(\n\t\tlong companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "@Override\n\tpublic List<CsclPollsChoice> getCsclPollsChoices(int start, int end) {\n\t\treturn csclPollsChoicePersistence.findAll(start, end);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }", "public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "Collection<AssociationEnd> getAssociations();", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "@Override\r\n\tpublic List<Order> getAllOrders() {\n\t\treturn null;\r\n\t}", "public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public static List<FoundObject> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "public java.util.List<Todo> findByCompanyId(\n\t\tlong companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "@Override\n\tpublic List<Approvatore> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "Collection<AssociationEnd> getSpecifiedEnds();", "public java.util.List<ProductSpecificationMapping> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Category> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Category>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_CATEGORY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_CATEGORY;\n\n\t\t\t\tsql = sql.concat(CategoryModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Category>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n public List<Vehicle> findAll() {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "@Override\n public List<T> getResultList() {\n if (this.sortParameters != null) {\n for (QueryParameter parameter : this.sortParameters) {\n if (isSortAscending()) {\n sortBy(this.queryBuilder.asc(parameter));\n } else {\n sortBy(this.queryBuilder.desc(parameter));\n }\n }\n }\n\n List<T> result = new ArrayList<T>();\n\n try {\n Set<IdentityStore<?>> identityStores = this.storeSelector.getStoresForIdentityQuery(this.context, this.getIdentityType());\n AttributeStore<?> attributeStore = this.storeSelector.getStoreForAttributeOperation(context);\n\n for (IdentityStore<?> store : identityStores) {\n for (T identityType : store.fetchQueryResults(this.context, this)) {\n configureDefaultPartition(this.context, identityType, store, this.partitionManager);\n\n if (attributeStore != null) {\n attributeStore.loadAttributes(this.context, identityType);\n }\n\n result.add(identityType);\n }\n }\n } catch (Exception e) {\n throw MESSAGES.queryIdentityTypeFailed(this, e);\n }\n\n return result;\n }", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "public java.util.List<ProductSpecificationMapping> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);", "@Role(ADMIN)\n\t// Maps to the /api/order/all endpoint for GET requests\n\t@GetMapping(\"/all\")\n\t// This method can return every order in the database, but can be filtered and\n\t// paged by request parameters which is allowed by Predicate and Pageable.\n\t// Default page size is 20 and we set sort by createDate, descending order\n\tpublic ResponseEntity<Iterable<Order>> getOrders(@QuerydslPredicate(root = Order.class) Predicate predicate,\n\t\t\t@PageableDefault(sort = \"createDate\", direction = Sort.Direction.DESC) Pageable pageable) {\n\t\treturn ResponseEntity.ok(orderService.list(predicate, pageable));\n\t}", "public List<Order> getOrders() {\n\t\treturn repo.findAll();\n\t}", "public static List<Term> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid_C(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}", "@Override\r\n\tpublic List<Price> queryCheng(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryCheng(start,end);\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<ApartmentListing> getApartments() {\n\t\treturn apartmentListingRepository.findAll();\n\t}", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "@Override\n public List<OrderByExpression> resultsOrderedBy() {\n return null;\n }", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public List<AreaProp> getAllAreaProps() {\n List<AreaProp> areaProps = new ArrayList<AreaProp>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n areaProps = session.createCriteria(AreaProp.class).list();\n return areaProps;\n }", "@Transactional\r\n\tpublic List<Trip> getPageTripByCondition(Integer start, Integer maxCount) {\n\t\treturn null;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "@Override\r\n\tpublic List<PurchaseOrder> getAllPurchaseOrders() {\n\t\treturn ht.loadAll(PurchaseOrder.class);\r\n\t}", "public static List<Term> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid, start, end, orderByComparator);\n\t}", "public Set getPages () {\n return new TreeSet (allPages.values ());\n }" ]
[ "0.7092226", "0.6242734", "0.6224934", "0.6224507", "0.60269207", "0.5880553", "0.57416695", "0.56363803", "0.54473984", "0.53028345", "0.5232158", "0.5198078", "0.5176075", "0.5156205", "0.51544523", "0.51330924", "0.5030807", "0.4999579", "0.4981832", "0.49769086", "0.49721786", "0.496516", "0.49175224", "0.48478568", "0.4827039", "0.47540686", "0.47205955", "0.4688564", "0.46681663", "0.46408466", "0.46146774", "0.46099836", "0.45949528", "0.4566463", "0.44838864", "0.448006", "0.44752708", "0.4465283", "0.44595674", "0.44312856", "0.44098112", "0.44036868", "0.43958667", "0.4379151", "0.43631712", "0.43430147", "0.43262222", "0.43167722", "0.4315784", "0.4308708", "0.43003365", "0.42951232", "0.4289426", "0.42818484", "0.42713872", "0.42697147", "0.4257955", "0.42343894", "0.4227874", "0.42245325", "0.422395", "0.4222318", "0.42210212", "0.42183173", "0.42103043", "0.42093602", "0.42069635", "0.41943616", "0.4181484", "0.41693133", "0.41547734", "0.41482094", "0.4146875", "0.4135887", "0.41272855", "0.41193548", "0.41171938", "0.4116785", "0.4115888", "0.41068494", "0.41065866", "0.4085127", "0.40839142", "0.40830642", "0.40804008", "0.40770546", "0.40748543", "0.407435", "0.40741986", "0.40671617", "0.4067009", "0.40667945", "0.40624666", "0.40612066", "0.40556112", "0.40494072", "0.40486708", "0.40456694", "0.4039659", "0.40368438" ]
0.79423726
0
Returns an ordered range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtilALL_POS), then the query will include the default ORDER BY logic from PhatVayModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
@Override public List<PhatVay> findAll( int start, int end, OrderByComparator<PhatVay> orderByComparator, boolean retrieveFromCache) { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && (orderByComparator == null)) { pagination = false; finderPath = _finderPathWithoutPaginationFindAll; finderArgs = FINDER_ARGS_EMPTY; } else { finderPath = _finderPathWithPaginationFindAll; finderArgs = new Object[] {start, end, orderByComparator}; } List<PhatVay> list = null; if (retrieveFromCache) { list = (List<PhatVay>)finderCache.getResult( finderPath, finderArgs, this); } if (list == null) { StringBundler query = null; String sql = null; if (orderByComparator != null) { query = new StringBundler( 2 + (orderByComparator.getOrderByFields().length * 2)); query.append(_SQL_SELECT_PHATVAY); appendOrderByComparator( query, _ORDER_BY_ENTITY_ALIAS, orderByComparator); sql = query.toString(); } else { sql = _SQL_SELECT_PHATVAY; if (pagination) { sql = sql.concat(PhatVayModelImpl.ORDER_BY_JPQL); } } Session session = null; try { session = openSession(); Query q = session.createQuery(sql); if (!pagination) { list = (List<PhatVay>)QueryUtil.list( q, getDialect(), start, end, false); Collections.sort(list); list = Collections.unmodifiableList(list); } else { list = (List<PhatVay>)QueryUtil.list( q, getDialect(), start, end); } cacheResult(list); finderCache.putResult(finderPath, finderArgs, list); } catch (Exception e) { finderCache.removeResult(finderPath, finderArgs); throw processException(e); } finally { closeSession(session); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tpagination = false;\n\t\t\tfinderPath = _finderPathWithoutPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV};\n\t\t}\n\t\telse {\n\t\t\tfinderPath = _finderPathWithPaginationFindByMaCTV;\n\t\t\tfinderArgs = new Object[] {maCTV, start, end, orderByComparator};\n\t\t}\n\n\t\tList<PhatVay> list = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tlist = (List<PhatVay>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\n\t\t\tif ((list != null) && !list.isEmpty()) {\n\t\t\t\tfor (PhatVay phatVay : list) {\n\t\t\t\t\tif (!maCTV.equals(phatVay.getMaCTV())) {\n\t\t\t\t\t\tlist = null;\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t3 + (orderByComparator.getOrderByFields().length * 2));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery = new StringBundler(3);\n\t\t\t}\n\n\t\t\tquery.append(_SQL_SELECT_PHATVAY_WHERE);\n\n\t\t\tboolean bindMaCTV = false;\n\n\t\t\tif (maCTV.isEmpty()) {\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindMaCTV = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_MACTV_MACTV_2);\n\t\t\t}\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\t\t\t}\n\t\t\telse if (pagination) {\n\t\t\t\tquery.append(PhatVayModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindMaCTV) {\n\t\t\t\t\tqPos.add(maCTV);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end, false);\n\n\t\t\t\t\tCollections.sort(list);\n\n\t\t\t\t\tlist = Collections.unmodifiableList(list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist = (List<PhatVay>)QueryUtil.list(\n\t\t\t\t\t\tq, getDialect(), start, end);\n\t\t\t\t}\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);", "public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public java.util.List<PlanoSaude> findAll(int start, int end);", "@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}", "public static List<CauHinhThuTienTet> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public List<OrdersCustom> queryAllOrders() {\n\t\treturn ordersMapper.queryAllOrders();\n\t}", "public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<Product> findByPriceBetweenOrderByPriceAsc(double from, double to);", "@Override\n\tpublic List<Payments> query(Map<String, Object> filter, int start, int rows) {\n\t\tRowBounds rb = new RowBounds(start, rows);\n\n\t\treturn this.mapper.queryPage(filter, rb);\n\t}", "public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "PagedIterable<ServiceEndpointPolicy> list();", "public Set<T> getRanges();", "public static SortBuilder[] allInstances() {\n \t\treturn (SortBuilder[]) allInstances.toArray(new SortBuilder[allInstances.size()]);\n \t}", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "@Override\r\n\tpublic List<Product> findAllProductsByAscending() {\n\t\treturn productRepository.findAllProductsByAscending();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);", "@Override\n public List<FecetProrrogaOrden> findAll() {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" ORDER BY ID_PRORROGA_ORDEN\");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper());\n\n }", "public List<Product> getPriceAscSortedProducts(){\n\t\treturn dao.getAllProducts();\n\t}", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);", "public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "public java.util.List<CsclAppointeeMaster> findByisActive(\n\t\tBoolean isActive, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "List<OperationArea> findAllBy(Pageable pageable);", "@NotNull\n EntityIterable asSortResult();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@RequestMapping(value = \"/allEndroit\")\n\tpublic List<Endroit> getAllEndroit() {\n\t\n\t\treturn endroitDAO.getAllEndroitList();\n\t}", "public java.util.List<Todo> findByCompanyId(\n\t\tlong companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "@Override\n\tpublic List<CsclPollsChoice> getCsclPollsChoices(int start, int end) {\n\t\treturn csclPollsChoicePersistence.findAll(start, end);\n\t}", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}", "@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}", "DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}", "Collection<AssociationEnd> getAssociations();", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "@Override\r\n\tpublic List<Order> getAllOrders() {\n\t\treturn null;\r\n\t}", "public static List<FoundObject> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public List<Payment> viewAllPaymentsPaginated(int start, int limit) {\n\t\tList<Payment> list = new ArrayList<>(payments.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "@Override\n\tpublic List<Approvatore> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public java.util.List<Todo> findByCompanyId(\n\t\tlong companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "Collection<AssociationEnd> getSpecifiedEnds();", "public java.util.List<ProductSpecificationMapping> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);", "@Override\n\tpublic List<Category> findAll(\n\t\tint start, int end, OrderByComparator<Category> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Category> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Category>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_CATEGORY);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_CATEGORY;\n\n\t\t\t\tsql = sql.concat(CategoryModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Category>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n public List<Vehicle> findAll() {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "@Override\n public List<T> getResultList() {\n if (this.sortParameters != null) {\n for (QueryParameter parameter : this.sortParameters) {\n if (isSortAscending()) {\n sortBy(this.queryBuilder.asc(parameter));\n } else {\n sortBy(this.queryBuilder.desc(parameter));\n }\n }\n }\n\n List<T> result = new ArrayList<T>();\n\n try {\n Set<IdentityStore<?>> identityStores = this.storeSelector.getStoresForIdentityQuery(this.context, this.getIdentityType());\n AttributeStore<?> attributeStore = this.storeSelector.getStoreForAttributeOperation(context);\n\n for (IdentityStore<?> store : identityStores) {\n for (T identityType : store.fetchQueryResults(this.context, this)) {\n configureDefaultPartition(this.context, identityType, store, this.partitionManager);\n\n if (attributeStore != null) {\n attributeStore.loadAttributes(this.context, identityType);\n }\n\n result.add(identityType);\n }\n }\n } catch (Exception e) {\n throw MESSAGES.queryIdentityTypeFailed(this, e);\n }\n\n return result;\n }", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "@Role(ADMIN)\n\t// Maps to the /api/order/all endpoint for GET requests\n\t@GetMapping(\"/all\")\n\t// This method can return every order in the database, but can be filtered and\n\t// paged by request parameters which is allowed by Predicate and Pageable.\n\t// Default page size is 20 and we set sort by createDate, descending order\n\tpublic ResponseEntity<Iterable<Order>> getOrders(@QuerydslPredicate(root = Order.class) Predicate predicate,\n\t\t\t@PageableDefault(sort = \"createDate\", direction = Sort.Direction.DESC) Pageable pageable) {\n\t\treturn ResponseEntity.ok(orderService.list(predicate, pageable));\n\t}", "public java.util.List<ProductSpecificationMapping> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);", "public List<Order> getOrders() {\n\t\treturn repo.findAll();\n\t}", "public static List<Term> findByUuid_C(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid_C(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}", "@Override\r\n\tpublic List<Price> queryCheng(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryCheng(start,end);\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<ApartmentListing> getApartments() {\n\t\treturn apartmentListingRepository.findAll();\n\t}", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "@Override\n public List<OrderByExpression> resultsOrderedBy() {\n return null;\n }", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public List<AreaProp> getAllAreaProps() {\n List<AreaProp> areaProps = new ArrayList<AreaProp>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n areaProps = session.createCriteria(AreaProp.class).list();\n return areaProps;\n }", "@Transactional\r\n\tpublic List<Trip> getPageTripByCondition(Integer start, Integer maxCount) {\n\t\treturn null;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "@Override\r\n\tpublic List<PurchaseOrder> getAllPurchaseOrders() {\n\t\treturn ht.loadAll(PurchaseOrder.class);\r\n\t}", "public static List<Term> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid, start, end, orderByComparator);\n\t}", "public Set getPages () {\n return new TreeSet (allPages.values ());\n }" ]
[ "0.79418194", "0.62419534", "0.62278575", "0.6225944", "0.6026811", "0.5880536", "0.57416224", "0.5636876", "0.5446743", "0.53061366", "0.52317214", "0.51972383", "0.5176584", "0.51577467", "0.5154028", "0.5133458", "0.5031435", "0.4998764", "0.49817115", "0.49785525", "0.49737754", "0.49650544", "0.49172655", "0.4851468", "0.4827414", "0.47540092", "0.4723074", "0.46903124", "0.46714032", "0.46416366", "0.4618265", "0.46143702", "0.4595599", "0.45685798", "0.44859838", "0.447985", "0.4475724", "0.44693613", "0.4460289", "0.44323716", "0.4410732", "0.44066364", "0.4398659", "0.43785664", "0.43643522", "0.4347623", "0.43281308", "0.43196207", "0.4313961", "0.431138", "0.43018016", "0.4296829", "0.42904204", "0.4284708", "0.4275154", "0.42688367", "0.4257742", "0.4239209", "0.4228091", "0.4225964", "0.42251644", "0.42232683", "0.42227307", "0.42196548", "0.42134678", "0.4209463", "0.42091954", "0.41956392", "0.41825914", "0.41721302", "0.41585565", "0.41513285", "0.41473502", "0.4137422", "0.41292652", "0.4120311", "0.41200438", "0.41188046", "0.41177022", "0.41074508", "0.41072303", "0.40890756", "0.40861002", "0.40851197", "0.4083909", "0.4078402", "0.40777746", "0.40773472", "0.40746057", "0.4070261", "0.40696287", "0.40686765", "0.4065338", "0.40632385", "0.40575272", "0.40529516", "0.4052449", "0.40494806", "0.40403384", "0.40393233" ]
0.70927143
1
Removes all the phat vaies from the database.
@Override public void removeAll() { for (PhatVay phatVay : findAll()) { remove(phatVay); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }", "@After\n public void cleanDatabase() {\n\n databaseInstance.setTaxpayersArrayList(new ArrayList<Taxpayer>());\n }", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "public void clearDatabase(){\n\t\tem.createNativeQuery(\"DELETE FROM CAMINHO\").executeUpdate();\r\n\t\tem.createNativeQuery(\"DELETE FROM MAPA\").executeUpdate();\r\n\t\t\r\n\t\tlog.info(\"Limpou a base de dados\");\r\n\t\r\n\t}", "public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}", "public void DeleteAllRecordsInTable() {\n\n final List<Address> gndPlan = GetAllRecordsFromTable();\n for (int i = 0; i < gndPlan.size(); i++) {\n\n gndPlan.get(i).delete();\n //delete all item in table House\n }\n\n }", "public void clearDatabase();", "public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "public void deleteallCart() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_CART);\n db.close();\n }", "@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}", "private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }", "@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "public void deleteUpsos() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_UPSO, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all upso info from sqlite\");\n }", "public void deleteFromPoseOrder() { \n \ttry {\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(DeletePoses);\n\t\t\tthis.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.d(\"SQL Exception\", e.toString());\n\t\t}\n \t\n }", "public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }", "@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void deleteAll() {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Query query = session.createQuery(\"DELETE FROM Person \");\n query.executeUpdate();\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully deleted all persons.\");\n }\n catch (Exception e){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion of all persons failed\");\n }\n finally {\n session.close();\n }\n }", "public void deleteAllRealTestCode() {\n\n\t myDataBase.delete(\"tbl_TestCode\", \"TestCode\" + \" != ?\",\n\t new String[] { \"1\" });\n\t }", "@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}", "private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}", "@BeforeEach\n @AfterEach\n public void clearDatabase() {\n \taddressRepository.deleteAll();\n \tcartRepository.deleteAll();\n \tuserRepository.deleteAll();\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "public void deleteAllMappings() {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(TABLE_APP, null, null);\n\t\t\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\n\t}", "public void cleanAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.cleanPet();\n\t\t}\n\t}", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public static void deleteAll() {\n String sql = \"DELETE FROM articulo\";\n try(Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)){\n pstmt.executeUpdate();\n }\n catch(SQLException e) {\n System.out.println(\"Error al eliminar en la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n }", "public void removerAllPontosTuristicosFavoritosBD() {\n this.db.delete(TABLE_NAME, null, null);\n }", "public void deleteAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"delete from \" + TABLE_NAME);\n }", "public void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "@Override\n public void removeFromDb() {\n }", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "public void clearAllPilot() {\n\t\tpilotID.clear(); \n\t\tfirstName.clear(); \n\t\tlastName.clear(); \n\t\tdob.clear(); \n\t\temployeeNumber.clear(); \n\t\tdateOfHire.clear(); \n\t\tdateLeftCAF.clear(); \n\t}", "public void delete(){\n if (shx!=null) shx.delete();\n if (shp!=null) shp.delete();\n if (dbf!=null) dbf.delete();\n if (prj!=null) prj.delete();\n }", "private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }", "public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }", "@Override\r\n\tpublic void deleteAll() {\n\r\n\t}", "public void deleteAll() {\n\n\t}", "@After\n public void tearDown() {\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n }", "@After\n public void cleanup() {\n Ebean.deleteAll(userQuery.findList());\n Ebean.deleteAll(userOptionalQuery.findList());\n }", "public void deleteCarts() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_CART, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all cart info from sqlite\");\n }", "public void deleteAll() {\n repository.deleteAll();\n }", "@Override\n public void cleanUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createQuery(\"delete from User\").executeUpdate();\n tx.commit();\n System.out.println(\"HibCleaning users table\");\n session.close();\n\n }", "public void cleanProposition();", "@Override\n public void deleteAll() {\n String deleteAllQuery = \"DELETE FROM \" + getTableName();\n getJdbcTemplate().execute(deleteAllQuery);\n }", "public void clearPedAnnotations() {\n\t\tvarTable.getColumnModel().removeColumnsByClass(PedigreeVarAnnotation.class);\n\t}", "void deleteAll();", "void deleteAll();", "void deleteAll();", "@Override\n\tpublic void deleteAll() {\n\t\tmDB.execSQL(\"DROP TABLE EVENT\");\n\t}", "public void deleteDataInProgramTable() throws SQLException {\n\t\tdeleteDataInUserTable();\n\t\tdeleteDataInPeriodTable();\n\t\tdeleteData(\"group_stage\",\"STAGE_\"+idCondition);\n\t\tdeleteData(\"jp_group\",idCondition);\n\t\tdeleteData(\"program\",idCondition);\n\t}", "public void deleteAllOptset() {\n this.optionSet = new ArrayList<OptionSet>();\n }", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public void deleteAll() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME , null , null);\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}", "public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void deleteAll();", "public static void deleteAll() throws RocksDBException {\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n db.delete(iter.key());\n }\n\n iter.close();\n }", "public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }", "public void deleteAll()\n\t{\n\t}" ]
[ "0.6869754", "0.67675257", "0.671826", "0.6605795", "0.65668064", "0.6540335", "0.64411527", "0.64220786", "0.6340728", "0.63220125", "0.6236777", "0.620402", "0.6202475", "0.61810166", "0.6173593", "0.6143871", "0.6140097", "0.61220115", "0.6107383", "0.60850734", "0.60781235", "0.6064198", "0.60354453", "0.60352993", "0.60343426", "0.6012853", "0.60009855", "0.60009855", "0.60009855", "0.60009855", "0.5993217", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59906113", "0.59882045", "0.5981293", "0.5968743", "0.5957891", "0.5954442", "0.59492546", "0.59332204", "0.59332204", "0.59332204", "0.5927807", "0.5926389", "0.58943325", "0.5886857", "0.5874866", "0.58661014", "0.58441144", "0.5840367", "0.5840367", "0.5840367", "0.5835708", "0.5829596", "0.5826888", "0.5826888", "0.5826888", "0.5826888", "0.5826888", "0.5826888", "0.5826888", "0.5826888", "0.58200973", "0.5815413", "0.58145887", "0.5814336", "0.58034563", "0.5799356", "0.5789737", "0.5788412", "0.5788391", "0.57881606", "0.57864094", "0.5772372", "0.5769992", "0.57643396", "0.5755798", "0.5755798", "0.5755798", "0.57533646", "0.5750722", "0.574482", "0.57434267", "0.5741187", "0.5721489", "0.57200223", "0.57156396", "0.57083714", "0.57082844", "0.57049495", "0.5700725", "0.5699016" ]
0.7113697
0
Returns the number of phat vaies.
@Override public int countAll() { Long count = (Long)finderCache.getResult( _finderPathCountAll, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_PHATVAY); count = (Long)q.uniqueResult(); finderCache.putResult( _finderPathCountAll, FINDER_ARGS_EMPTY, count); } catch (Exception e) { finderCache.removeResult( _finderPathCountAll, FINDER_ARGS_EMPTY); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getProteinCount() {\r\n return proteinHits.size();\r\n }", "int numberOfPizzas() {\n return pizzas.size();\n }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int getNumPens(){\n return this.mFarm.getNumPens();\n }", "@Override\n\tpublic int getVanBanPhapQuiesCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBanPhapQuiesCount();\n\t}", "int getWpaCount();", "public abstract int getCntPoa();", "int getNoOfParties();", "public int getNumPaMethods(){\r\n\t\treturn classStat.getNPaM();\r\n\t}", "public int getNumberPeptides() {\n return numberPeptides;\n }", "public int totalNum(){\n return wp.size();\n }", "public int getNumProbes()\r\n\t{\r\n\t\treturn numProbes;\r\n\t}", "int getFaintedPokemonCount();", "public static int getNoOfHospitals(){\n return noOfHospitals;\n }", "public int numeroHojas(){\n\t int N=0, ni=0, nd=0;\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) ni = aux.numeroHojas();\n\t if ((aux=getHijoDer())!=null) nd = aux.numeroHojas();\n\t if ((aux=getHijoDer())==null && (aux=getHijoIzq())==null)N = 1;\n\t else N = ni + nd;\n\t }\n\t\treturn N;\n\t}", "public int numberOfPentagonalPyramids() {\r\n int listNumber = list.size();\r\n return listNumber;\r\n }", "int getPhoneCount();", "int getPhoneCount();", "public int getNumGruppoPacchetti();", "public int getNbVictoires()\r\n\t{\r\n\t\treturn this.nbVictoires;\r\n\t}", "public int getProtein_length() {\n return protein_length;\n }", "int getWifisCount();", "@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}", "public int get_nr_of_points() {\n return points_per_segment;\n }", "public Integer getNumberOfPrize() {\n return numberOfPrize;\n }", "public int getNumProMethods(){\r\n\t\treturn classStat.getNProM();\r\n\t}", "public int getPartyCount()\n\t{\n\t\tint r = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tr++;\n\t\treturn r;\n\t}", "@Override\r\n\tpublic int getNumberOfPilots() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn pilots.size();\r\n\t}", "int getNumberOfCavalry();", "public Integer getPrizecount() {\n return prizecount;\n }", "public int getNumberOfPepperoni() {\n return this.pepperoni;\n }", "int getPointsCount();", "public NM getNumberOfTPSPP() { \r\n\t\tNM retVal = this.getTypedField(34, 0);\r\n\t\treturn retVal;\r\n }", "public void mostrarNumeroTareasPendientes(){\n System.out.println(tareas.size());\n }", "public int getArmyCount() {\n\n return this.totArmyCount;\n }", "public final int getNbVie() {\n return nbVie;\n }", "public int getHats() {\n return totalHats;\n }", "public static int getNos() {\n\t\treturn numberOfStudents;\n\t}", "int getAoisCount();", "public int totalParties() {\n return numParties;\n }", "public int getNumeroTareasPendientes(){\n return tareas.size();\n }", "long getNumberOfPeptides(String experimentAccession);", "public int getNumTetrises() {\n\t\treturn numTetrises;\n\t}", "public int getNumberofAns()\n\t{\n\t\treturn numAns;\t\n\t}", "public int getNumberOfPeptidePerFraction() {\n return numberOfPeptidePerFraction;\n }", "public int GetPot_Count() {\n\t\treturn POT_COUNT;\n\t}", "public int NumTerms() throws Z3Exception\n {\n return Native.getPatternNumTerms(Context().nCtx(), NativeObject());\n }", "public int sizeOfGuardianArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(GUARDIAN$22);\n }\n }", "int sizeOfGuideArray();", "public int countOfGenerations ();", "public int count(){\r\n\t\tint sum = 0;\r\n for(Integer value: words.values()){\r\n sum += value;\r\n }\r\n return sum;\r\n\t}", "public int getPhoneCount() {\n return phone_.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}", "public String getNum_of_sat_test_takers() {\n return num_of_sat_test_takers;\n }", "public int getTrainingPhrasesCount() {\n if (trainingPhrasesBuilder_ == null) {\n return trainingPhrases_.size();\n } else {\n return trainingPhrasesBuilder_.getCount();\n }\n }", "public int getPennies()\n {\n\treturn pennies;\n }", "public int get_howmany() {\n return how_many;\n }", "public int mo7190a() {\n return this.f4621a.size();\n }", "public int getNbPoints() {\n return nbPoints;\n }", "@Override\n\tpublic int countPro() {\n\t\treturn productSubMapper.selectCountPro();\n\t}", "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}", "int getVarsCount();", "public Object getTotalTrophies() {\n\t\treturn this.totalTrophies;\n\t}", "public int q1() {\n\t\tSet<String> nacionalidade = jogadores.stream()\n\t\t\t\t.map(x->x.getNationality())\n\t\t\t\t.collect(Collectors.toSet());\n\n\t\treturn nacionalidade.size();\n\n\t}", "public int getSpineInstanceCount() {\n if (spineInstanceList == null) {\n return 0;\n }\n return spineInstanceList.size();\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 getNPoints() {\n\t\treturn points.size();\n\t}", "public int getNumberOfHam() {\n return this.ham;\n }", "static public int numberOfPersons() {\n return personMap.size();\n }", "public int getPredictionsCount() {\n if (predictionsBuilder_ == null) {\n return predictions_.size();\n } else {\n return predictionsBuilder_.getCount();\n }\n }", "int getPropsCount();", "public int size(){\n\t\treturn howMany; \n\t}", "public Integer getTrophies()\n\t{\n\t\treturn trophies;\n\t}", "public int getNbVar() {\n return nbVar;\n }", "public int getPeptidesNumber() {\n return peptidesNumber;\n }", "@java.lang.Override\n public int getFaintedPokemonCount() {\n return faintedPokemon_.size();\n }", "public int getNumeroVuelos() {\r\n\t\treturn vuelos.size();\r\n\t}", "int getNumberOfInfantry();", "public int getTriangleCount();", "public NM getPsl34_NumberOfTPSPP() { \r\n\t\tNM retVal = this.getTypedField(34, 0);\r\n\t\treturn retVal;\r\n }", "public int getNumQuestions() {\n\t\treturn noOfQuestions;\n\t}", "public Integer countMedicines();", "public byte getNumSkills()\r\n\t{\r\n\t\treturn lastSkill;\r\n\t}", "int getWayCount();", "public int getTotRuptures();", "public int ardiveis() {\n\t\tint result = 0;\n\t\tfor (EstadoAmbiente[] linha : this.quadricula) {\n\t\t\tfor (EstadoAmbiente ea : linha) {\n\t\t\t\tif(ea == EstadoAmbiente.CASA || ea == EstadoAmbiente.TERRENO){\n\t\t\t\t\tresult++;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public int getPhoneCount() {\n\t\t\treturn phone_.size();\n\t\t}", "public double getLastPhotonCount() {\r\n return photoncount;\r\n }", "public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public java.lang.Integer getNumTotBoletasVendidas() {\n\t\treturn numTotBoletasVendidas;\n\t}", "public double getPrize();", "public int getNumberOfSpectra() {\n return iPeptideIdentifications.size();\n }", "int getNumberOfAllQuestions();", "public static int size_count() {\n return (16 / 8);\n }", "int getInstrumentCount();", "public int getNumAyuAtracc();", "public int getVeinCount() {\n return veinCount;\n }", "int getCazuriCount();", "@Override\n\tpublic int countCase() {\n\t\treturn proSystemHeadMapper.selectCountCase()+proMultiMapper.selectCountMul()+proAppMapper.selectCountApp()+proItMapper.selectCountIt();\n\t}", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public int getFaintedPokemonCount() {\n if (faintedPokemonBuilder_ == null) {\n return faintedPokemon_.size();\n } else {\n return faintedPokemonBuilder_.getCount();\n }\n }" ]
[ "0.64938116", "0.63763374", "0.6347906", "0.6273096", "0.61955005", "0.6192964", "0.6108355", "0.6061004", "0.6058363", "0.60455704", "0.6044468", "0.6040801", "0.6020365", "0.6020357", "0.60187346", "0.60123", "0.5960616", "0.5960616", "0.59587735", "0.593819", "0.58688325", "0.58674717", "0.5863687", "0.58497196", "0.5843598", "0.58340573", "0.5833292", "0.58302087", "0.5825549", "0.5806934", "0.57956743", "0.57925713", "0.5791793", "0.57899195", "0.5773746", "0.5768074", "0.5765176", "0.57530135", "0.57415724", "0.57301706", "0.5729293", "0.57255477", "0.5712567", "0.5710374", "0.57010204", "0.5699027", "0.56889325", "0.568604", "0.5676642", "0.56719726", "0.5667435", "0.56661886", "0.5665235", "0.5662689", "0.5656208", "0.5654659", "0.5654367", "0.5651261", "0.5650645", "0.56415004", "0.5639866", "0.5630857", "0.5629147", "0.5613354", "0.5604114", "0.5599008", "0.55812323", "0.55786073", "0.5578594", "0.557797", "0.5570401", "0.55694807", "0.55669266", "0.55638295", "0.55633336", "0.55589753", "0.5556978", "0.5554533", "0.5551513", "0.5550117", "0.55498606", "0.55414337", "0.5539088", "0.5538654", "0.5536368", "0.5533771", "0.5532506", "0.55308276", "0.5526606", "0.55253786", "0.55224717", "0.5521765", "0.5520703", "0.55205953", "0.5516874", "0.5515021", "0.55141735", "0.5513938", "0.55051017", "0.5499401", "0.5489648" ]
0.0
-1
Initializes the phat vay persistence.
public void afterPropertiesSet() { _finderPathWithPaginationFindAll = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, PhatVayImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0]); _finderPathWithoutPaginationFindAll = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, PhatVayImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findAll", new String[0]); _finderPathCountAll = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, Long.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); _finderPathWithPaginationFindByMaCTV = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, PhatVayImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByMaCTV", new String[] { String.class.getName(), Integer.class.getName(), Integer.class.getName(), OrderByComparator.class.getName() }); _finderPathWithoutPaginationFindByMaCTV = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, PhatVayImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByMaCTV", new String[] {String.class.getName()}, PhatVayModelImpl.MACTV_COLUMN_BITMASK); _finderPathCountByMaCTV = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, Long.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByMaCTV", new String[] {String.class.getName()}); _finderPathFetchBySoKU = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, PhatVayImpl.class, FINDER_CLASS_NAME_ENTITY, "fetchBySoKU", new String[] {String.class.getName()}, PhatVayModelImpl.SOKU_COLUMN_BITMASK); _finderPathCountBySoKU = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, Long.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countBySoKU", new String[] {String.class.getName()}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n\t\t\t\t\t JDOHelper.getPersistenceManagerFactory(properties);\n\t\t\n//\t\tSystem.out.println (\"Setting persistent manager from \"+properties);\n\t\t\n\t\tthis.pm = pmf.getPersistenceManager();\n\t\t\n\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\tthis.pm.currentTransaction().commit();\n\t\t}\n\t\tthis.pm.currentTransaction().setOptimistic (false);\n//\t\tthis.pm.currentTransaction().begin();\n\t}", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "@PostConstruct\r\n\tpublic void init() {\n\t\tstockService.create(new Stock(\"PROD 1\", BigDecimal.ONE));\r\n\t\tstockService.create(new Stock(\"PROD 2\", BigDecimal.TEN));\r\n\t\tstockService.create(new Stock(\"PROD 3\", new BigDecimal(12.123)));\r\n\t}", "public Persistence() {}", "abstract void initPersistance();", "private void initClass() {\r\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\r\n secureMediaFileDb = MediaVaultLocalDb.getMediaVaultDatabaseInstance(this);\r\n mediaFileDuration = MediaFileDuration.getDatabaseInstance(this);\r\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public void initializeOnInstantiation() \n\t\t\t\tthrows PersistenceException{\n\n\t}", "public static void init(){\n\t\t\n\t\tif(!daoRol.existeRol(cliente.getNombre()))daoRol.save(cliente);\n\t\t\n\t\tif(!daoRol.existeRol(analista.getNombre()))daoRol.save(analista);\n\t\t\n\t\tif(!daoUsuario.existeUsuario(admin.getEmail(), admin.getMd5()))daoUsuario.save(admin);\n\t\t\n\t\t\n\t\tfor(TipoAccionPublicitaria t : TipoAccionPublicitaria.values()){\n\t\t\t\n\t\t\tif(daoPrecio.getCurrentPriceOf(t) == null){\n\t\t\t\tPrecioAccionPublicitaria p = new PrecioAccionPublicitaria();\n\t\t\t\tp.setCurrent(true);\n\t\t\t\tp.setFechaCreacion(DateTime.now());\n\t\t\t\tp.setMonto(\"0\");\n\t\t\t\tp.setObjetoValuable(t);\n\t\t\t\t\n\t\t\t\tdaoPrecio.save(p);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Before\n public void init() {\n theaterChainRepository.getMongoTemplate().save(savedTheaterChain);\n }", "public void init() {\r\n\t\tdbVersion = new DBVersion( getDefaultDatabase(), progress, upgradeFile.versionTableName, upgradeFile.logTableName );\r\n\t}", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}", "private void init() {\n if (!isInitiated) {\n //Voices use by freeTTS, we define where they are, currently in the java en_us.jar\n //add the package\n addToSystemesPropetites(this.configurator.getLocation());\n\n // The VoiceManager manages all the voices for FreeTTS.\n voiceManager = VoiceManager.getInstance();\n\n this.defaultVoice = voiceManager.getVoice(this.configurator.getName());\n\n configureVoice(this.defaultVoice);\n\n // Allocates the resources for the voice.\n this.defaultVoice.allocate();\n isInitiated = true;\n }\n }", "@Before\n\tpublic void init()\n\t{\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"persistenceUnit\");\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\tcacheManager = new CacheManagerDefaultImpl();\n\t\t((CacheManagerDefaultImpl) cacheManager).setEntityManager(entityManager);\n\t}", "@PostConstruct\n public void init() {\n try {\n String contentFile = PlatformUtils.fileToString(TALKS_FILE_PATH, getClass().getClassLoader());\n loadTalks(PlatformUtils.parseToJson(contentFile));\n } catch (IOException e) {\n logger.log(Level.WARNING, \"An error occurred while loading data\", e);\n }\n }", "@Before\n public void init() {\n \tcontract = CandidateContract.load(\n web3j,\n CREDENTIALS,\n new DefaultWasmGasProvider()\n );\n }", "private void initValets(){\n //valet in charge of getting movie database data\n mMovieValet = new MovieValet(this);\n //request favorite movie list from database\n mMovieValet.requestMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //valet in charge of getting poster refresh database data\n mRefreshValet = new RefreshValet(this);\n }", "private synchronized void initAtomStore() {\n if (atomStore != null) {\n return;\n }\n\n atomStore = new PersistedAtomStore(this);\n }", "private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }", "private void initTransactions() {\n\n\t transactions = ModelFactory.createDefaultModel();\n\t try\n\t {\n\t\t\ttransactions.read(new FileInputStream(\"transactions.ttl\"),null,\"TTL\");\n\t\t}\n\t catch (FileNotFoundException e) {\n\t \tSystem.out.println(\"Error creating tansactions model\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void initializeOnCreation() \n\t\t\t\tthrows PersistenceException{\n\n\t}", "public void preSaveInit() {\n persistentData.clear();\n for (int i = 0; i < getNumPoints(); i++) {\n persistentData.add(getPoint(i));\n }\n }", "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tvisitaSelecionada = new AgendamentoVisitas();\n\n\t}", "void smem_init_db() throws SoarException, SQLException, IOException\n {\n smem_init_db(false);\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }", "private void initializeStoreFromPersistedData() throws IOException\r\n {\r\n loadKeys();\r\n\r\n if (keyHash.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n else\r\n {\r\n final boolean isOk = checkKeyDataConsistency(false);\r\n if (!isOk)\r\n {\r\n keyHash.clear();\r\n keyFile.reset();\r\n dataFile.reset();\r\n log.warn(\"{0}: Corruption detected. Resetting data and keys files.\", logCacheName);\r\n }\r\n else\r\n {\r\n synchronized (this)\r\n {\r\n startupSize = keyHash.size();\r\n }\r\n }\r\n }\r\n }", "@PostConstruct\n public void init() {\n prevBatchTime = transients.now();\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void beginInitialization() {\n SQLiteDatabase db = this.helper.getWritableDatabase();\n db.beginTransaction();\n populateMeasurementVersionsCache(db);\n }", "public void initDatabase(){\n CovidOpener cpHelper = new CovidOpener(this);\n cdb = cpHelper.getWritableDatabase();\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "public void init() {\n\ttsp.init();\n }", "EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }", "@Override\n\tpublic void initParameters() {\n\t\ttransferDbData = new TransferDbData();\n\t}", "public static void initGenerateOfflineTestData(){\n dbInstance = Database.newInstance();\n initPlayer();\n initMatches();\n }", "@Override\n\tpublic PhatVay create(long phatVayId) {\n\t\tPhatVay phatVay = new PhatVayImpl();\n\n\t\tphatVay.setNew(true);\n\t\tphatVay.setPrimaryKey(phatVayId);\n\n\t\tphatVay.setCompanyId(companyProvider.getCompanyId());\n\n\t\treturn phatVay;\n\t}", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "public MarketDataManagerImpl()\n {\n instance = this;\n }", "@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)\n public void initialisePtuContainers() {\n LocalDateTime timestamp = DateTimeUtil.getCurrentDateTime();\n LocalDate period = timestamp.toLocalDate();\n int ptuIndex = PtuUtil.getPtuIndex(timestamp, config.getIntegerProperty(ConfigParam.PTU_DURATION));\n LOGGER.error(\"Initialising PTUs at startup, current PTU is {} {}\", period, ptuIndex);\n int updated = ptuContainerRepository.initialisePtuContainers(period, ptuIndex);\n LOGGER.debug(\"Updated {} PTUs\", updated);\n }", "@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t\tdao = new PressaoArterialDAO();\r\n\t}", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "@PostConstruct\n public void init() throws Exception {\n List<Merchant> merchantList = merchantDAO.findLatestMerchant(4);\n homeSuggestMerchantVO = new HomeSuggestMerchantVO();\n homeSuggestMerchantVO.setRecommendOfToday(merchantList.get(0));\n homeSuggestMerchantVO.setHottestOfWeek(merchantList.get(1));\n homeSuggestMerchantVO.setHighOfRank(merchantList.get(2));\n homeSuggestMerchantVO.setBestOfToday(merchantList.get(3));\n }", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "public void initVuforia() {\n\t\t/*\n\t\t * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.\n\t\t */\n\t\tVuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n\t\tparameters.vuforiaLicenseKey = VUFORIA_KEY;\n\t\tparameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n\n\t\t// Instantiate the Vuforia engine\n\t\tvuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n\t\t// Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n\t}", "public void initialize() {\n\n getStartUp();\n }", "@BeforeClass\n public static void before() {\n final EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"testpersistence\");\n jpa = new StandaloneJpaDao(factory.createEntityManager());\n handler = new QuotePaymentHandler(jpa);\n }", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "public void initialize() {\n\n // Calculate the average unit price.\n calculateAvgUnitPrice() ;\n\n // Calculate the realized profit/loss for this stock\n calculateRealizedProfit() ;\n\n this.itdValueCache = ScripITDValueCache.getInstance() ;\n this.eodValueCache = ScripEODValueCache.getInstance() ;\n }", "@PostConstruct\n\tpublic void init() throws IOException {\n\t\tfsService.parseFileAndBootstrapDb();\n\t}", "public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }", "public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "public void persist(Simulation simulation) throws IOException {\n Path directory = simulation.getProvLocation();\n Files.createDirectories(directory);\n String provLocation = directory.resolve(simulation.getName() + \".ttl\").toString();\n model.write(new FileOutputStream(provLocation, false), \"TURTLE\");\n // add to project-level provenance\n String projectName = WorkbenchManager.getInstance().getProjectName();\n String projectProvLocation = FileManager.getCurrentProjectDirectory()\n .resolve(projectName + \"Provenance.ttl\").toString();\n model.write(new FileOutputStream(projectProvLocation, true), \"TURTLE\");\n }", "public void init(){\n \n }", "@BeforeClass\n public static void setup() {\n // initialize the singleton of parking state\n ParkingState.getInstance();\n }", "@PostConstruct\n public void init() {\n KeyGenerator keyGen;\n try {\n int KEK_SIZE = 256;\n String KEK_ALGORITHM = \"AES\";\n\n keyGen = KeyGenerator.getInstance(KEK_ALGORITHM);\n keyGen.init(KEK_SIZE);\n\n SecretKey secretKey = keyGen.generateKey();\n byte[] encodedKey = secretKey.getEncoded();\n String baseKek = new String(Hex.encode(encodedKey));\n KeyDto key = new KeyDto(baseKek);\n keyValueOperations.put(KEK_STORAGE_PATH, key);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "public void init() {\n cupDataChangeListener = new CupDataChangeListener(dataBroker);\n }", "@BeforeClass\n\tpublic static void init() {\n\t\ttry {\n\t\t\tif (emf == null) {\n\t\t\t\temf = Persistence.createEntityManagerFactory(\"application\");\n\t\t\t\tif (em == null) {\n\t\t\t\t\tem = loadConfiguration(emf);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void init( ){\n\t filepath = getServletContext().getContextPath();\r\n\tappPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \r\n\t }", "public static synchronized void init(IDBDatabaseService db) {\n if (SPDB.db != null) throw new IllegalStateException(\"Database already set\");\n SPDB.db = db;\n }", "public void init() {\n\n\n verdiend = 133;\n\n verdeling = verdiend / 4;\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "public static void init() {\n\t\tdrive = Drive.getInstance();\n\t\toi = OI.getInstance();\n\t\tshooter = Shooter.getInstance();\n\t\tarmservo = ArmServo.getInstance();\n\t\t//pneumatic = Pneumatic.getInstance();\n\t\tarmMotor = ArmMotor.getInstance();\n\t\tramp = RampMotor.getInstance();\n\t\tif(shooter == null) {\n\t\t\tSystem.out.println(\"Shooter in NULL in init\");\n\t\t}\n\t\t\n\t}", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }", "@PostConstruct\n public void initialization() {\n init();\n //setQuestionEditMode(true); //need to initialize question fields\n //addCurrentQuestionsToView(); //initialize view of questions\n //setQuestionEditMode(false);\n }", "public void init() {\n // the config string contains just the asset store directory path\n //set baseDir?\n this.initialized = true;\n }", "public void init() {\n \n }", "protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "public static void init() {\n \n if(stock==null){\n stock=Analyser.stock;\n //for each stock, it price and the time\n// stoc\n// String[] listedCompanies = new NSELoader(20).getAllStocks();\n// \n// for (int i =0; i < listedCompanies.length; i++) {\n// \n// String stockName = listedCompanies[i];\n// float price = 0;\n// int time = 0;\n// ArrayList<String> value = new ArrayList<>();\n// String data = time + \":\" + price;// ':' is used as boundary token\n// value.add(data);\n// stock.put(stockName, value);\n// }\n \n\n }\n }", "private void initializeEngine() {\n engine.setDecayDelay(emotionalAgent.decayTimeMillis());\n\n // Get decay steps parameter from ADF if exists and set decay steps in engine\n engine.setDecaySteps(emotionalAgent.decayStepsToMin());\n\n // Set engine initialized\n engine.setInitialized(true);\n }", "@PostConstruct\n private void myInit() {\n freshRates = rm.getLastRates(FRESH_AMOUNT);\n }", "void initVuforia() {\n\n //Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "public void init() {\n log.info(\"initialization\");\n }", "@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}", "protected void init()\r\n\t{\n\t\tif (ConfigManager.getInstance().getIsCrossClassify() && WekaTool.dataStageOn)\r\n\t\t{\r\n\t\t\t//System.out.println(\"in init for data stage\");\r\n\t\t\tsrcDirUrl = ConfigManager.getInstance().getTrainPath();\r\n\t\t\tdestDirUrl = ConfigManager.getInstance().getTrainPath() +\r\n\t\t\t File.separator + \"output\";\r\n\t\t\t//System.out.println(\"srcDirUrl = \" + srcDirUrl);\r\n\t\t\t//System.out.println(\"destDirUrl = \" + destDirUrl);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//System.out.println(\"here, good\");\r\n\t\t\tsrcDirUrl = getSrcDirUrl();\r\n\t\t\tdestDirUrl = getDestDirUrl();\r\n\t\t}\r\n\t\tdatalibSVMUrl = getLibSVMDirUrl();\r\n\t\ttry {\r\n\t\t\tsrcDir = Utils.getDir(srcDirUrl);\r\n\t\t\tdestDir = Utils.getDir(destDirUrl);\r\n\t\t} catch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t}", "public void init() {}", "public void init() {}", "public void init()\r\n {\r\n m_active = false;\r\n m_entryTimes = new HashMap<String, Long>();\r\n m_tsm = BotAction.getBotAction().getTSM();\r\n m_tsm.setOperatorLevel(ER_LEVEL);\r\n registerSettings();\r\n m_tsm.addTSChangeListener(this);\r\n m_botAction.setPlayerPositionUpdating(500);\r\n }", "@Before\n\tpublic void init() {\n\t\tprofesseurServiceEmp = new ProfesseurServiceEmp();\n\t}", "public void init() {\r\n\r\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n\n TestHelper.loadConfigurations();\n TestHelper.executeDBScript(TestHelper.SCRIPT_FILL);\n\n generator = IDGeneratorFactory.getIDGenerator(\"phase_id_seq\");\n\n persistence =\n new InformixPhasePersistence(\n new DBConnectionFactoryImpl(TestHelper.CONNECTION_FACTORY_NAMESPACE), \"informix\", generator);\n persistence.setUserManualCommit(true);\n }", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "private void init() {\n }", "public void init_store() {\r\n /* init inventory dictionary*/ \r\n System.out.println(\"Initializing Store\");\r\n dailyRollInventory.put(\"Egg roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Jelly roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Pastry roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Sausage roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Spring roll\", MAX_ROLL_COUNT);\r\n\r\n /* init totalRollSales for the month */\r\n totalRollSales.put(\"Egg roll\", 0.0);\r\n totalRollSales.put(\"Jelly roll\", 0.0);\r\n totalRollSales.put(\"Pastry roll\", 0.0);\r\n totalRollSales.put(\"Sausage roll\", 0.0);\r\n totalRollSales.put(\"Spring roll\", 0.0);\r\n\r\n /* init totalCustomerSales for the month */\r\n totalCustomerSales.put(\"Casual\", 0.0);\r\n totalCustomerSales.put(\"Business\", 0.0);\r\n totalCustomerSales.put(\"Catering\", 0.0);\r\n\r\n /* init daily customer sales */\r\n dailyCustomerSales.put(\"Casual\", 0.0);\r\n dailyCustomerSales.put(\"Business\", 0.0);\r\n dailyCustomerSales.put(\"Catering\", 0.0);\r\n \r\n }", "private void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n //initialize either phone or webcam depending on field set during object initialization\n if(device == Device.Phone){\n parameters.cameraDirection = CameraDirection.BACK;\n }else{\n parameters.cameraName = hwMap.get(WebcamName.class, \"Webcam\");\n\n }\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "private void initStetho() {\n Stetho.initializeWithDefaults(this);\n }", "private void init() {\n\n\t}", "@PostConstruct\r\n\tpublic void init(){\r\n\t\tconta = new Conta();\r\n\t\tservice = new ContaService();\r\n\t\tconta.setDataAbertura(Calendar.getInstance());\r\n\t}" ]
[ "0.62696993", "0.58057827", "0.57270586", "0.5725348", "0.5631432", "0.56193095", "0.5617419", "0.5587635", "0.5558174", "0.5533792", "0.5521405", "0.55167764", "0.5484678", "0.5456748", "0.54374266", "0.53583574", "0.53570443", "0.5346109", "0.5332298", "0.531271", "0.53014916", "0.52992433", "0.5288026", "0.5283168", "0.5271636", "0.52618754", "0.52557325", "0.5249624", "0.5234768", "0.52317816", "0.52116", "0.5206823", "0.5197656", "0.51958674", "0.51957554", "0.51884776", "0.5172152", "0.5164447", "0.5103311", "0.51017946", "0.509793", "0.5092879", "0.5081874", "0.50793356", "0.5079305", "0.5063078", "0.5062", "0.5054942", "0.504421", "0.5039067", "0.5037298", "0.50363857", "0.503061", "0.50211096", "0.50148034", "0.50088763", "0.50068444", "0.49923563", "0.49921536", "0.49870336", "0.4986631", "0.4978769", "0.49724743", "0.49697402", "0.49666557", "0.4963974", "0.4961561", "0.49610043", "0.49555284", "0.49536186", "0.49513504", "0.494746", "0.49460888", "0.49443355", "0.4935016", "0.49347398", "0.49336913", "0.49330416", "0.49307853", "0.49242643", "0.49242586", "0.49228978", "0.4922747", "0.49226418", "0.49187136", "0.49145555", "0.4913298", "0.49069867", "0.4900345", "0.4900345", "0.48999363", "0.4898945", "0.4898894", "0.48988482", "0.48975956", "0.48935932", "0.48922655", "0.4888971", "0.4886159", "0.48777524", "0.48745605" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { searchByname(s.toString(), 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\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}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\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}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\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}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\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}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void afterTextChanged(Editable s) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\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}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\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}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { doSearch(name, count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\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}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\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}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JButton btnAdministrador = new JButton("Administrador"); btnAdministrador.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JFrame loginAdmin = new ventanaLoginAdmin(); loginAdmin.setVisible(true); } }); btnAdministrador.setBounds(10, 25, 144, 43); frame.getContentPane().add(btnAdministrador); JButton btnEmpleado = new JButton("Empleado"); btnEmpleado.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JFrame loginEmpleado = new ventanaLoginEmpleado(); loginEmpleado.setVisible(true); } }); btnEmpleado.setBounds(10, 83, 144, 43); frame.getContentPane().add(btnEmpleado); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "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}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "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}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "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}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "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}", "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 void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "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}", "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}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "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 initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Created by dell on 2016/4/7.
public interface RoomListModel { void getRoomListData(Callback<RoomEntity> callback, int count, int page, int groupId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "public void mo4359a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\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}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void memoria() {\n \n }", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void einkaufen() {\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}" ]
[ "0.60584104", "0.5909962", "0.5851624", "0.5807373", "0.5764642", "0.5757174", "0.5757174", "0.575214", "0.57295173", "0.5702051", "0.56773436", "0.5661785", "0.56371254", "0.56353235", "0.56316096", "0.5625739", "0.56206465", "0.55958974", "0.5594776", "0.5594723", "0.5583018", "0.55505943", "0.5541021", "0.55405104", "0.55405104", "0.55405104", "0.55405104", "0.55405104", "0.55369675", "0.55346197", "0.55340433", "0.55340433", "0.55328953", "0.5524026", "0.5516875", "0.5507149", "0.5493132", "0.5492778", "0.5489926", "0.54885626", "0.5481595", "0.54761356", "0.5466544", "0.5447881", "0.54337347", "0.54337347", "0.54337347", "0.54300153", "0.54300153", "0.54300153", "0.5426799", "0.54235196", "0.54235196", "0.54222697", "0.54222697", "0.54222697", "0.54006606", "0.54006606", "0.5398238", "0.5393215", "0.53831756", "0.53809464", "0.5379675", "0.5379675", "0.5379675", "0.5379675", "0.5379675", "0.5379675", "0.5379675", "0.5379364", "0.5379199", "0.5378377", "0.5378377", "0.5378377", "0.5378377", "0.5378377", "0.5378377", "0.5374623", "0.53702563", "0.5368098", "0.5367505", "0.5359572", "0.53553814", "0.5350528", "0.534009", "0.53384805", "0.53268415", "0.53250015", "0.53217304", "0.53198177", "0.5318345", "0.5300146", "0.52992463", "0.5296023", "0.5287726", "0.5271676", "0.5269206", "0.52641845", "0.5259439", "0.5252552", "0.5248324" ]
0.0
-1
totalSales totalCost / getter,setter
public int getProductId() { return productId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "@Override\n public double calcSalesFee() {\n return getCost() + getSalesPurchase();\n }", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "public double getTotal() {\n return totalCost;\n }", "public double getTotalCost() {\r\n return totalCost;\r\n }", "public float getTotalCost() {\n return this.totalCost;\n }", "public String getTotalCost() {\n return this.TotalCost;\n }", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "String getTotalCost() {\n return Double.toString(totalCost);\n }", "double getTotalCost();", "@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}", "public double getCost(){\n return cost;\n }", "public void setTotalCost(float totalCost) {\n this.totalCost = totalCost;\n }", "public Integer getSalesSum() {\n return salesSum;\n }", "public String getRealTotalCost() {\n return this.RealTotalCost;\n }", "public void setTotalCost(float totalCost)\r\n\t{\r\n\t\tthis.totalCost = totalCost;\r\n\t}", "public int getSalesPrice() {\n return salesPrice;\n }", "public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}", "public double getGrossSales() {\n return grossSales;\n}", "public void setTotalCost(String TotalCost) {\n this.TotalCost = TotalCost;\n }", "public double getCost() \n { \n return super.getCost() +22;\n }", "public Money getCost(){\r\n return this.cost;\r\n }", "public double getGrossSales() {\n return grossSales;\n }", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public double getSale()\n {\n return sale;\n }", "public int getCost(){\n return this.cost;\n }", "public Integer getSalesAmount() {\n return salesAmount;\n }", "public int salePrice(){\n return this.salePrice;\n }", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "public Integer getSales() {\n return sales;\n }", "public int getTotalSalesCount(){\n return totalSalesCount;\n }", "public double getCost() {\r\n return cost;\r\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "public void getCosts() {\n\t}", "public void addSales(double totalSales) {\n this.total_sales = totalSales;\n }", "public abstract double getCost();", "public double getCost()\r\n\t{\treturn this.cost;\t}", "public double calculateCost(Purchase purchase);", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "double getCost();", "double getCost();", "public double getSaleAmount() {\n return saleAmount;\n }", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "public BigDecimal getCost() {\r\n return cost;\r\n }", "public double getCost() {\n return price;\n }", "public int getNumSales(){\r\n return sales;\r\n }", "public int getCost()\n {\n return cost;\n }", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}", "public double getCosts();", "public Number getCost()\r\n {\r\n return (m_cost);\r\n }", "@Override\n public double getCost() {\n return cost;\n }", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public int getCost() {\n/* 69 */ return this.cost;\n/* */ }", "public BigDecimal getCost() {\n return this.cost;\n }", "public int getCost() {\n return cost;\n }", "public int getCost() {\n return cost;\n }", "@Override\n public String toString() {\n return super.toString() + \"\\nTotal sales: \" + this.total_sales;\n }", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "public void setSales(Integer sales) {\n this.sales = this.sales + sales;\n }", "public double getSalePrice() {\n return salePrice;\n }", "public int getSalePrice() {\n return salePrice;\n }", "public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}", "public int getCost() {\n return cost;\n }", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "public double getTotalPrice(){\n return totalPrice;\n }", "public int getCost() {\n \t\treturn cost;\n \t}", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "public String getCost() {\n return cost;\n }", "public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }", "public double getCost() {\n\t\treturn cost;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double getCost() {\r\n\t\t\r\n\t\tif (super.getSize() == \"Small\") { totalCost = 2.00; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Medium\") { totalCost = 2.50; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Large\") { totalCost = 3.00; }\r\n\t\t\r\n\t\treturn totalCost;\r\n\t}", "public double getTotal (){ \r\n return total;\r\n }", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "public double getTotal(){\n return total;\n }", "public double getCustomerPurchase() { return this.customerPurchase; }", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "@Pure\n\tdouble getCost();", "int getCost();", "int getCost();", "int getCost();", "public double getSalesTax() {\r\n return salesTax;\r\n }", "public ArrayList<RewardBean> getTotalCost() {\n/* 28 */ return this.totalCost;\n/* */ }", "@NotNull\n public BigDecimal getCost() {\n return cost;\n }", "float getTotalCost() throws SQLException;", "public double getCost() {\n\n\t\treturn cost;\n\t}", "public void setCost(double cost){\n this.cost = cost;\n }", "public double getTotal() {\r\n\r\n return getSubtotal() + getTax();\r\n }", "@Override\n public double getTotal() {\n return total;\n }", "public void total() {\n\t\t\n\t}", "public void setTotal(Double total);", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public double getGrossSales() {\r\n\t\treturn grossSales;\r\n\t}" ]
[ "0.78001344", "0.76263845", "0.7467948", "0.7336399", "0.7250377", "0.7230279", "0.71541166", "0.7147887", "0.7124933", "0.7123197", "0.71071184", "0.7094255", "0.707298", "0.7062023", "0.70561385", "0.7048174", "0.7039908", "0.7018195", "0.69902086", "0.6989429", "0.69795483", "0.6959143", "0.6941263", "0.6935953", "0.6923487", "0.6907916", "0.6893012", "0.6889993", "0.6880215", "0.68785447", "0.68710446", "0.68673694", "0.6861955", "0.68590903", "0.6850578", "0.6831927", "0.68186724", "0.68083763", "0.6804185", "0.68017536", "0.68017536", "0.6799212", "0.67930317", "0.67930317", "0.67839354", "0.678173", "0.6777964", "0.67714196", "0.6760716", "0.6756281", "0.6751398", "0.6746806", "0.67163634", "0.67128724", "0.670523", "0.66764414", "0.6672699", "0.6672699", "0.66710496", "0.6663451", "0.6653106", "0.6640931", "0.66305315", "0.6627571", "0.66135323", "0.66010636", "0.6600108", "0.65949285", "0.6592879", "0.6590361", "0.65832657", "0.65832657", "0.65832657", "0.65828496", "0.6581859", "0.65806556", "0.6566894", "0.6566894", "0.656646", "0.6565277", "0.656429", "0.65523875", "0.65268797", "0.65238184", "0.6517941", "0.65112394", "0.65112394", "0.65112394", "0.6511018", "0.6507602", "0.6503495", "0.64909595", "0.6481517", "0.64716315", "0.64618963", "0.6461641", "0.64592624", "0.6458411", "0.6457447", "0.64557236", "0.64524794" ]
0.0
-1
close search view on back button pressed
@Override public void onBackPressed() { if (!searchView.isIconified()) { searchView.setIconified(true); return; } super.onBackPressed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onBackPressed () {\n\t\tif (searchMode) {\n\t\t\ttoggleSearch();\n\t\t\treturn;\n\t\t}\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n if (Utils.isTablet(getApplicationContext())) {\n finish();\n } else {\n final Fragment fragment = getSupportFragmentManager().findFragmentByTag(FRAGMENT_TAG);\n\n if (fragment instanceof ListingItemFragment) {\n if (fragment.isAdded() && fragment.isVisible()) {\n getSupportFragmentManager().beginTransaction().remove(fragment).commit();\n changeActivityViewsVisibility(true);\n\n setTitle(getString(R.string.search_results_title));\n } else {\n finish();\n }\n\n } else if (fragment instanceof MapViewFragment) {\n getSupportFragmentManager().popBackStackImmediate();\n } else {\n finish();\n }\n\n }\n }", "public void onBackPressed() {\n if (!searchView.isIconified()) {\n searchView.setIconified(true);\n return;\n }\n super.onBackPressed();\n }", "@Override\n\tpublic void onBackPressed()\n\t{\n\t\tsuper.onBackPressed();\n\t\t// MainActivity.isReSearch = true;\n\t}", "@Override\n public void onBackPressed() {\n if (locationFound) {\n mEditSearch.setText(\"\");\n resetSearchAheadList();\n resetDoctorsList();\n } else {\n super.onBackPressed();\n }\n }", "protected void onSearchExit() {\n if ((mListContext != null) && mListContext.isSearch()) {\n mActivity.finish();\n } else {\n // Re show the search icon.\n mActivity.invalidateOptionsMenu();\n }\n }", "@Override\n\t\tpublic boolean onClose() {\n\t\t\tif (!TextUtils.isEmpty(mSearchView.getQuery())) {\n\t\t\t\tmSearchView.setQuery(null, true);\n\t\t\t}\n\t\t\tmOnSearchViewChangeListener.onSearchViewClose();\n\t\t\treturn true;\n\t\t}", "public void back_searchResult(View view){\n // Goes back to Login page\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n }", "@Override\n protected void onDestroy() {\n closeSearchView();\n super.onDestroy();\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tboolean callSuper = true;\n\n\t\tFraSearch search = (FraSearch) getSupportFragmentManager()\n\t\t\t\t.findFragmentByTag(FraSearch.TAG);\n\n\t\tif (search != null && search.isAdded() && !search.isDetached()\n\t\t\t\t&& !search.isRemoving() && search.isSearchVisible()) {\n\t\t\tsearch.hide();\n\t\t\tcallSuper = false;\n\t\t}\n\t\t\n\t\tFraMenu menu = (FraMenu) getSupportFragmentManager()\n\t\t\t\t.findFragmentByTag(FraMenu.TAG);\n\n\t\tif (menu != null && menu.isAdded() && !menu.isDetached()\n\t\t\t\t&& !menu.isRemoving() && menu.isFraMenuVisible()) {\n\t\t\tmenu.hide();\n\t\t\tcallSuper = false;\n\t\t}\n\n\t\t\n\t\tfinal RelativeLayout share = (RelativeLayout) findViewById(R.id.share);\n\n\t\tif (share != null && share.getVisibility() == View.VISIBLE) {\n\t\t\tshare.setVisibility(View.INVISIBLE);\n\t\t\tcallSuper = false;\n\t\t}\n\n\t\tfinal RelativeLayout font = (RelativeLayout) findViewById(R.id.font);\n\n\t\tif (font != null && font.getVisibility() == View.VISIBLE) {\n\t\t\tfont.setVisibility(View.INVISIBLE);\n\t\t\tcallSuper = false;\n\t\t}\n\t\t\n\t\tif (callSuper) {\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t}", "public boolean onBackPressed(boolean isSystemBackKey) {\n if (shouldShowSearchBar()) {\n exitSearchMode();\n return true;\n }\n return false;\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(search_bar_activity.this, MainActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }", "public void backClick(View view) {\n finish();\n }", "private void closeSearch() {\n if (mIsSearchMode && mSearchMenuItem != null) {\n SearchView searchView = (SearchView) mSearchMenuItem.getActionView();\n EditText editText = searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n if (editText.isFocused()) {\n editText.onEditorAction(EditorInfo.IME_ACTION_SEARCH);\n }\n }\n }", "@Override\n public void onBackPressed() {\n exitReveal();\n\n super.onBackPressed();\n }", "@Override\n public void onClick(View view) {\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(homesearchbar.getWindowToken(), 0);\n // launch_search(searchText.getText().toString());\n homecontainer.setVisibility(View.VISIBLE);\n homesearchbar.setVisibility(View.INVISIBLE);\n searchText.setText(\"\");\n }", "@Override\r\n\t\t\tpublic boolean onKey(DialogInterface dialog, int keyCode,\r\n\t\t\t\t\tKeyEvent arg2) {\n\t\t\t\tif (keyCode == KeyEvent.KEYCODE_BACK) {\r\n\t\t\t\t\tif (navigation.getVisibility() == View.GONE\r\n\t\t\t\t\t\t\t|| etSearch.getVisibility() == View.INVISIBLE) {\r\n\t\t\t\t\t\tnavigation.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\tetSearch.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\tbaseDialog.dismiss();\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false; // 默认返回 false\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onBackPressed() {\n showQuitDialog();\n }", "public void backPressed(View v){\n finish();\n }", "@OnClick({ R.id.scrim, R.id.searchback }) protected void dismiss() {\n searchBackContainer.animate()\n .translationX(searchBackDistanceX)\n .setDuration(600L)\n .setInterpolator(\n AnimationUtils.loadInterpolator(this, android.R.interpolator.fast_out_slow_in))\n .setListener(new AnimatorListenerAdapter() {\n @Override public void onAnimationEnd(Animator animation) {\n finishAfterTransition();\n }\n })\n .start();\n // transform from back icon to search icon\n AnimatedVectorDrawable backToSearch =\n (AnimatedVectorDrawable) ContextCompat.getDrawable(this, R.drawable.avd_back_to_search);\n searchBack.setImageDrawable(backToSearch);\n // clear the background else the touch ripple moves with the translation which looks bad\n searchBack.setBackground(null);\n backToSearch.start();\n // fade out the other search chrome\n searchView.animate()\n .alpha(0f)\n .setStartDelay(0L)\n .setDuration(120L)\n .setInterpolator(\n AnimationUtils.loadInterpolator(this, android.R.interpolator.fast_out_linear_in))\n .setListener(null)\n .start();\n searchBackground.animate()\n .alpha(0f)\n .setStartDelay(300L)\n .setDuration(160L)\n .setInterpolator(\n AnimationUtils.loadInterpolator(this, android.R.interpolator.fast_out_linear_in))\n .setListener(null)\n .start();\n if (searchToolbar.getZ() != 0f) {\n searchToolbar.animate()\n .z(0f)\n .setDuration(600L)\n .setInterpolator(\n AnimationUtils.loadInterpolator(this, android.R.interpolator.fast_out_linear_in))\n .start();\n }\n\n // if we're showing search results, circular hide them\n if (resultsContainer.getHeight() > 0) {\n Animator closeResults =\n ViewAnimationUtils.createCircularReveal(resultsContainer, searchIconCenterX, 0,\n (float) Math.hypot(searchIconCenterX, resultsContainer.getHeight()), 0f);\n closeResults.setDuration(500L);\n closeResults.setInterpolator(AnimationUtils.loadInterpolator(SearchActivity.this,\n android.R.interpolator.fast_out_slow_in));\n closeResults.addListener(new AnimatorListenerAdapter() {\n @Override public void onAnimationEnd(Animator animation) {\n resultsContainer.setVisibility(View.INVISIBLE);\n }\n });\n closeResults.start();\n }\n\n // fade out the scrim\n scrim.animate()\n .alpha(0f)\n .setDuration(400L)\n .setInterpolator(\n AnimationUtils.loadInterpolator(this, android.R.interpolator.fast_out_linear_in))\n .setListener(null)\n .start();\n }", "@Override\n public void onBackPressed() {\n this.finish();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "public void back() {\n Views.goBack();\n }", "public void back(View view) {\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tif (isLstVisible) { lst.setVisibility(View.INVISIBLE); isLstVisible = false; }\n\t\telse finish();\n\t}", "public void goBack(View view) {\n end();\n }", "@Override\n public void onBackPressed() {\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.main_container);\n if (drawerLayout.isDrawerOpen(GravityCompat.START)) {\n drawerLayout.closeDrawer(GravityCompat.START);\n } else if (fragment instanceof HomeFragment) {\n MainActivity.this.finish();\n System.exit(0);\n } else if (fragment instanceof DetailScreenFragment) { //from car detail screen to car list screen we make invisible share icon\n searchView.setVisibility(View.VISIBLE); // and visible navigation icon and search view\n ivNavigation.setVisibility(View.VISIBLE);\n ivNavigation.setOnClickListener(this);\n ivShare.setVisibility(View.GONE);\n homeFragment();\n }\n }", "@Override\r\n public void onClick(View view) {\r\n finish();\r\n onBackPressed();\r\n\r\n }", "@Override\n public void onClick(View view) {\n activity.searchAgain();\n }", "@Override\n public void onBackPressed() {\n\n finish();\n }", "@Override\n public void onSearchClosed() {\n closeSearch(toolbar, searchbox, activity);\n ((AppCompatActivity) activity).getSupportActionBar().setTitle(currentTitle);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\thideSoftKeyboard();\n\t}", "public void closeSearchView() {\n if (!isSearchViewOpen) {\n return;\n }\n\n if (suggestionsAdapter.getCount() == 0) {\n // Suggestions section is empty(collapsed)\n // just close the SearchBar\n closeSearchBar();\n } else {\n // Suggestions section is expanded\n // Clear text, values, and focus.\n // closeSearchBar should be called after Suggestions section is collapsed\n suggestionsAdapter.clearData();\n collapsingSuggestions = true;\n }\n }", "private void back(ActionEvent e){\r\n window.close();\r\n }", "@Override\n public void onClick(View view) {\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(gridsearchbar.getWindowToken(), 0);\n //launch_search(searchTextG.getText().toString());\n gridhomecontainer.setVisibility(View.VISIBLE);\n gridsearchbar.setVisibility(View.INVISIBLE);\n searchTextG.setText(\"\");\n }", "public void onSearchExit();", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tswitch(v.getId()){\r\n\t\t\tcase R.id.search_contact_title_back:\r\n\t\t\t\tsearch_contact.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "public void back(View view) {\r\n\t\tfinish();\r\n\t}", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n notifyOnFinishSearchDialog();\n hideSoftKeyboard();\n unbinder.unbind();\n }", "public void back_nowShowing(View view){\n finish();\n }", "public void goBack(View view){\n this.finish();\n }", "@Override\n public void onBackPressed() {\n Intent viewIntent = new Intent(this, ViewPatientDetails.class);\n setResult(RESULT_CANCELED, viewIntent);\n finish();\n }", "@Override\n public boolean onBackPressed() {\n /*if (openedLine < 0) {\n return false;\n } else {\n //closeDetail();\n return true;\n }*/\n getActivity().finish();\n return true;\n }", "public void goBack(View view){\n finish();\n }", "@Override public void onBackPressed() {\n boolean handled = container.onBackPressed();\n if (!handled) {\n finish();\n }\n }", "@Override\n public void onBackPressed() {\n leaveDialog(this);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onSearchClosed() {\n closeSearch();\n toolbar.setTitle(getResources().getString(R.string.app_name));\n }", "@Override\n public void onBackPressed() {\n finish();\n\n }", "public void goBack(View view) {\n this.finish();\n }", "void unsetSearchWindowEnd();", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void handleOnBackPressed() {\n getActivity().finish();\n }", "@Override\n public void onBackPressed() {\n if (isScanResultShowing()) {\n showScanner();\n return;\n }\n super.onBackPressed();\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \t((SearchActivity)getActivity()).CloseSearchActivity(); \n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n }", "@Override\n public void onBackPressed() {\n showEndShiftDialog();\n }", "@Override\n\tpublic void MyBack() {\n\t\tFindPasswordActivity.this.finish();\n\t}", "@Override\n public void onClick(View view) {\n dialog.dismiss();\n\n // onBackPressed();\n\n\n }", "@Override\n public void onBackPressed() {\n if (result != null && result.isDrawerOpen()) {\n result.closeDrawer();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n public void onBackPressed() {\n if (result != null && result.isDrawerOpen()) {\n result.closeDrawer();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tArticleLatestMoreDetailActivity.this.finish();\r\n\t\tsuper.onBackPressed();\r\n\t}", "public void onBackPressed(){\n finish();\n }", "@Override\n public void onBackPressed() {\n backToHome();\n }", "public void onBack(View v){\r\n finish();\r\n }", "public void disposeSearchView() {\r\n\t\tif(customerSearchView != null) {\r\n\t\t\tcustomerSearchView.setVisible(false);\r\n\t\t\tApplicationMaster.removeScreen(customerSearchView);\r\n\r\n\t\t\tcustomerSearchView.destroy();\r\n\t\t\tcustomerSearchView = null;\r\n\t\t} \r\n\t}", "@Override\n public void onBackPressed() {\n if (mCustomView != null) {\n hideCustomView();\n } else {\n //Otherwise, treat back press normally.\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "private void returnBack()\n {\n getActivity().onBackPressed();\n }", "@Override\n public void onBackPressed() {\n\n Intent intent = new Intent(Day_Picker_Activity.this, ShowWeather.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "@Override\n public void onBackPressed() {\n logBackPressed();\n finishOk();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tif (wv1.canGoBack()) {\n\t wv1.goBack();\n\t\t}else \n\t\t{\n\t\t\twv1.stopLoading();\n\t\t\twv1.clearCache(true);\n\t\t\tfinish();\n\t }\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tif (v == backBtn)\n\t\t\tfinish();\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tInputMethodManager imm0 = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n\t\timm0.hideSoftInputFromWindow(ivBack.getWindowToken(), 0);\r\n\t\tsuper.onBackPressed();\r\n\r\n//\t\tActivityManagerUtil.getActivityManager().finishActivity(this);\r\n//\t\tthis.overridePendingTransition(R.anim.back_left_into,\r\n//\t\t\t\tR.anim.back_right_out);\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}", "@Override\n public void onBackPressed() {\n \tshowDialog(DLG_BUTTONS);\n }", "@Override\n public void onClick(View v) {\n searchET.setText(\"\");\n //hide keyboard\n Utils.hideKeyboard(getActivity());\n }", "@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, WorkSpace.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"Close this app\", true);\n startActivity(intent);\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}" ]
[ "0.8017401", "0.76610905", "0.740825", "0.735967", "0.7312289", "0.7296476", "0.7250609", "0.7198068", "0.7185568", "0.70709807", "0.70475453", "0.7015709", "0.700947", "0.69814014", "0.6962381", "0.6933819", "0.69300765", "0.6883601", "0.6863068", "0.68595314", "0.68520033", "0.6849901", "0.6849901", "0.6842222", "0.68355453", "0.68345404", "0.68290114", "0.68209606", "0.6807986", "0.6807627", "0.6805922", "0.6804829", "0.6804747", "0.68031836", "0.67947227", "0.6791221", "0.6787695", "0.6780019", "0.67787105", "0.67787105", "0.67787105", "0.67787105", "0.67787105", "0.67787105", "0.67787105", "0.6758807", "0.6753911", "0.67497665", "0.671255", "0.6706247", "0.6690706", "0.66878814", "0.66843027", "0.6684254", "0.6681118", "0.6672773", "0.6672773", "0.666359", "0.6660514", "0.66541743", "0.6652336", "0.6647111", "0.663992", "0.663992", "0.663796", "0.6637004", "0.6634208", "0.66339326", "0.6624701", "0.6612147", "0.66019434", "0.6590321", "0.658822", "0.6588218", "0.6588218", "0.6579336", "0.6579336", "0.6579336", "0.6578097", "0.6577447", "0.6567664", "0.6564141", "0.65517014", "0.655165", "0.65507144", "0.6550587", "0.65487826", "0.65484875", "0.6542749", "0.65416086", "0.6540834", "0.6537536", "0.6537471", "0.65348774", "0.6532125", "0.6520655", "0.6519828", "0.6518833" ]
0.734145
6
TODO SENTAKU HA ITIDO NOMI & ACTION MINA NI HYOUJI(CLIENT KARA?) TODO action okuru& table de shori TODO atarasshii jouhou wo okuru & hyouji TOFU gewinner finden & zeigen(new Frame?)
public PokerFrame(Player player, GameState gameState) { this.player = player; this.gameState = gameState; String frameName = "Poker - Player " + player.getUsername(); frame = new JFrame(frameName); Container contentpane = frame.getContentPane(); frame.getContentPane().setPreferredSize(new Dimension(720, 450)); contentpane.add(mainPanel); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); setGame(); initListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclado de palabras que hay abajo \"\n\t\t\t\t\t\t+ \"\\n4. Si te equivocas, el ahorcado se ira completando \"\n\t\t\t\t\t\t+ \"\\n5. Tienes 10 intentos antes de que se complete el ahorcado \"\n\t\t\t\t\t\t+ \"\\n6. Puedes usar las pistas las cuales te descubriran una letra, tienes una pista por partida\"\n\t\t\t\t\t\t+ \"\\n7. al principio del juego puedes elegir hasta 5 vidas, cada vez que solicitas una pista perderas una vida \"\n\t\t\t\t\t\t+ \"\\n8. cada vez que pierdes la partida, perderas una vida \");\n\n\t\t\t}", "private static String processInquire(String content) {\n\t\tString myWaza = \"fold \\n\";\n\t\tString[] playerInfoFront = content.split(\"\\n\");\n\t\tBoolean isAllin = false;//前面是否有人allin\n\t\tint maxJetton = 80;\t\t\n\t\tint frontNum = playerInfoFront.length;//前面的人数,第一圈结束会把自己放到最后一行\n\t\tint nums = Player.getNums();//总人数\n\t\n\t\t//根据Inquire更新player的状态\n\t\tfor(int i = 0; i < frontNum - 1;i++){\n\t\t\tString[] onePlayer = playerInfoFront[i].split(\" \");\n\t\t\t//onePlayer[0]即Pid\n\t\t\t\n\t\t\tfor(int j = 0; j < nums; j++){\n\t\t\t\tif(onePlayer[0].equals(players[j].getPid() + \"\")){\n\t\t\t\t\tplayers[j].setJetton(Integer.parseInt(onePlayer[1]));\n\t\t\t\t\tplayers[j].setMoney(Integer.parseInt(onePlayer[2]));\n\t\t\t\t\tplayers[j].setBet(Integer.parseInt(onePlayer[3]));\n\t\t\t\t\tplayers[j].setAction(onePlayer[4]);\n\t\t\t\t\tif(onePlayer[4].equals(\"all_in \\n\")){\n\t\t\t\t\t\tisAllin = true;\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Integer.parseInt(onePlayer[1]) > maxJetton)\n\t\t\t\t\t\tmaxJetton = Integer.parseInt(onePlayer[1]);\n\t\t\t\t}\n\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\t\t\n\t\t\n\t\t\n\t\tif(Card.getNums() == 2){\n\t\t\t//pre-flop 0,1两张手牌\n\t\t\tmyWaza = actionBaseHold(cards, nums, players, maxJetton);\n\t\t}else if(Card.getNums() == 5){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//flop-round 0,1两张手牌 2,3,4三张翻牌\n\t\t\tmyWaza = actionBaseFlop(cards, nums, players, maxJetton);\n\t\t\t/*\n\t\t\tif(getWinRate() < 0.5){\n\t\t\t\tmyWaza = \"fold \\n\";\n\t\t\t}else if(getWinRate() >= 0.5 && getWinRate() < 0.8){\n\t\t\t\tmyWaza = \"call \\n\";\n\t\t\t}else{\n\t\t\t\tmyWaza = \"all_in \\n\";\n\t\t\t}*/\t\n\t\t}else if(Card.getNums() == 6){\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//turn-round 0,1两张手牌 2,3,4三张翻牌,5一张转牌\n\t\t}else{\n\t\t\tmyWaza = \"call \\n\";\n\t\t\t//river-found 0,1两张手牌 2,3,4三张翻牌,5一张转牌,6一张河牌\n\t\t}\n\t\t\n\t\treturn myWaza;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Think about how to use the key in robots hashtable\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tRobot.setRobotInUse(x.getRobotKey());\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tjl.setText(x.getName());\n\t \t \t\n\t \t \tvi.showVideo(x);\n\t \t \t\n\t \t \t\n\t\t\t\t\t}", "public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}", "public static void setButton(String nameOfButton,int x,int y,int width,int heigth, JFrame frame) {\r\n //tozi metod suzdava butonut s negovite parametri - ime,koordinati,razmeri,frame\r\n\t JButton Button = new JButton(nameOfButton);\r\n\t Button.setBounds(x, y, width, heigth);\r\n\t colorOfButton(153,204,255,Button); //izpolzvam metodite ot po-gore\r\n\t colorOfTextInButton(60,0,150,Button);\r\n\t frame.getContentPane().add(Button);\r\n Button.addActionListener(new ActionListener(){ \r\n \tpublic void actionPerformed(ActionEvent e){ \r\n\t frame.setVisible(false);\r\n\t if(nameOfButton == \"Action\") { //kogato imeto na butona suvpada sus Stringa \"Action\",to tova e nashiqt janr\r\n\t \t Genre action = new Genre(\"Action\", //chrez klasa Genre zadavam vseki buton kakuv nov prozorec shte otvori\r\n\t \t\t\t \"Black Panther (2018)\", //kakvi filmi shte sudurja vseki janr \r\n\t \t\t\t \"Avengers: Endgame (2019)\",\r\n\t \t\t\t \" Mission: Impossible - Fallout (2018)\",\r\n\t \t\t\t \"Mad Max: Fury Road (2015)\",\r\n\t \t\t\t \"Spider-Man: Into the Spider-Verse (2018)\", \"MoviesWindow.png\" //kakvo fonovo izobrajenie shte ima\r\n);\r\n\t\t \t\r\n\t\t \taction.displayWindow(); \r\n//chrez metoda showWindow(); ,koito vseki obekt ot klasa Genre ima, otvarqme sledvashtiq(posleden) prozorec\r\n\t\t \t\r\n\t\t \t\r\n\t }else if (nameOfButton == \"Comedy\") { //i taka za vsichki filmovi janri\r\n\t \t Genre comedy = new Genre(\"Comedy\",\r\n\t \t\t\t \"The General (1926)\",\r\n\t \t\t\t \"It Happened One Night (1934)\",\r\n\t \t\t\t \"Bridesmaids (2011)\",\r\n\t \t\t\t \"Eighth Grade (2018)\",\r\n\t \t\t\t \"We're the Millers (2013)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tcomedy.displayWindow();\r\n\t }else if (nameOfButton == \"Drama\") {\r\n\t \t Genre drama2 = new Genre(\"Drama\",\r\n\t \t\t\t \"Parasite (Gisaengchung) (2019)\",\r\n\t\t \t\t\t \" Moonlight (2016)\",\r\n\t\t \t\t\t \" A Star Is Born (2018)\",\r\n\t\t \t\t\t \" The Shape of Water (2017)\",\r\n\t\t \t\t\t \" Marriage Story (2019)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tdrama2.displayWindow();\r\n\t }else if (nameOfButton == \"Fantasy\") {\r\n\t \t Genre fantasy2 = new Genre(\"Fantasy\",\r\n\t \t\t\t \"The Lord of the Rings Trilogy\",\r\n\t \t\t\t \"Metropolis (2016)\",\r\n\t \t\t\t \"Gravity (2013)\",\r\n\t \t\t\t \" Pan's Labyrinth (2006)\",\r\n\t \t\t\t \"The Shape of Water (2017)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tfantasy2.displayWindow();\r\n\t }else if (nameOfButton == \"Horror\") {\r\n\t \t Genre horror = new Genre(\"Horror\",\r\n\t \t\t\t \" Host (2020)\",\r\n\t \t\t\t \" Saw (2004)\",\r\n\t \t\t\t \" The Birds (1963)\",\r\n\t \t\t\t \" Dawn of the Dead (1978)\",\r\n\t \t\t\t \" Shaun of the Dead (2004)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \thorror.displayWindow();\r\n\t }else if (nameOfButton == \"Romance\") {\r\n\t \tGenre romance2 = new Genre(\"Romance\",\r\n\t \t\t\t\"Titanic (1997)\",\r\n\t \t\t\t\"La La Land(2016)\",\r\n\t \t\t\t\"The Vow (2012)\",\r\n\t \t\t\t\"The Notebook (2004)\",\r\n\t \t\t\t\"Carol (2015)\",\"MoviesWindow.png\");\r\n\t \t\r\n\t \tromance2.displayWindow();\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t }else if (nameOfButton == \"Mystery\") {\r\n\t \t Genre mystery = new Genre(\"Mystery\",\r\n\t \t\t\t \" Knives Out (2019)\",\r\n\t \t\t\t \" The Girl With the Dragon Tattoo (2011)\",\r\n\t \t\t\t \" Before I Go to Sleep (2014)\",\r\n\t \t\t\t \" Kiss the Girls (1997)\",\r\n\t \t\t\t \" The Girl on the Train (2016)\",\"MoviesWindow.png\"\r\n\t \t\t\t );\r\n\t\t \t\r\n\t\t \tmystery.displayWindow();\r\n\t }\r\n\r\n \t}\r\n });\r\n\t}", "@Override\r\n\tpublic void action() {\n\t\tMessageTemplate mt=MessageTemplate.or(MessageTemplate.MatchContent(\"comida\"), MessageTemplate.MatchContent(\"bebida\"));\r\n ACLMessage msg = myAgent.receive(mt);\r\n if(msg!=null){\r\n \tif(msg.getContent().compareTo(\"comida\")==0){\r\n \t\tif(Comida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo hambre todavia\"); \r\n myAgent.send(reply);\r\n Comida=Comida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n \telse if(msg.getContent().compareTo(\"bebida\")==0){\r\n \t\tif(Bebida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo sed todavia\"); \r\n myAgent.send(reply);\r\n Bebida=Bebida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n }\r\n if (Comida==0 && Bebida==0){\r\n \tmyAgent.doDelete();\r\n }\r\n\t}", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\r\n\t\tSpielfigur[][] feld = game.gebeFeld();\r\n\t\tint i = position / 10;\r\n\t\tint j = position % 10;\r\n\t\tfeld[i][j] = player.einheitNeuwaehlen(feld[i][j], buttonname);\r\n\t\tframe.setVisible(false);\r\n\r\n\t}", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "@Override\r\n\t public void actionPerformed(ActionEvent event) {\n\t \t\t\tJOptionPane.showMessageDialog(gameFrame,\r\n\t \t\t\t regles,\"Règles du jeu\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \t\t\t\r\n\t }", "public final void h(int r13) {\n /*\n r12 = this;\n android.content.Intent r0 = new android.content.Intent\n java.lang.String r1 = \"com.cuatroochenta.miniland.PLAYER_ACTION\"\n r0.<init>(r1)\n java.lang.String r1 = \"EXTRA_KEY_PLAYER_STATUS_CODE\"\n r0.putExtra(r1, r13)\n java.lang.String r1 = r12.h\n java.lang.String r2 = \"EXTRA_KEY_PLAYLIST_TYPE\"\n r0.putExtra(r2, r1)\n boolean r1 = r12.f\n java.lang.String r2 = \"EXTRA_KEY_INFO_CURRENT_TRACK\"\n if (r1 == 0) goto L_0x0036\n int r1 = r12.f3936d\n if (r1 < 0) goto L_0x0036\n java.util.ArrayList<com.cuatroochenta.miniland.model.Song> r3 = r12.f3935c\n int r3 = r3.size()\n if (r1 >= r3) goto L_0x0036\n java.util.ArrayList<com.cuatroochenta.miniland.model.Song> r1 = r12.f3935c\n int r3 = r12.f3936d\n java.lang.Object r1 = r1.get(r3)\n com.cuatroochenta.miniland.model.Song r1 = (com.cuatroochenta.miniland.model.Song) r1\n java.util.ArrayList<com.cuatroochenta.miniland.model.Song> r3 = r12.f3934b\n int r1 = r3.indexOf(r1)\n goto L_0x0038\n L_0x0036:\n int r1 = r12.f3936d\n L_0x0038:\n r0.putExtra(r2, r1)\n boolean r1 = r12.f\n java.lang.String r2 = \"EXTRA_KEY_INFO_SHUFFLE_MODE\"\n r0.putExtra(r2, r1)\n boolean r1 = r12.f3937e\n java.lang.String r2 = \"EXTRA_KEY_INFO_IS_LOOP_MODE\"\n r0.putExtra(r2, r1)\n java.lang.String r1 = r12.c()\n java.lang.String r2 = \"EXTRA_KEY_INFO_CURRENT_SONG_NAME\"\n r0.putExtra(r2, r1)\n android.media.MediaPlayer r1 = r12.f3933a\n if (r1 == 0) goto L_0x0079\n int r1 = r1.getCurrentPosition()\n int r1 = r1 / 1000\n java.lang.String r2 = \"EXTRA_KEY_INFO_CURRENT_POSITION\"\n r0.putExtra(r2, r1)\n android.media.MediaPlayer r1 = r12.f3933a\n boolean r1 = r1.isPlaying()\n java.lang.String r2 = \"EXTRA_KEY_INFO_IS_PLAYING\"\n r0.putExtra(r2, r1)\n android.media.MediaPlayer r1 = r12.f3933a\n int r1 = r1.getDuration()\n int r1 = r1 / 1000\n java.lang.String r2 = \"EXTRA_KEY_INFO_TRACK_DURATION\"\n r0.putExtra(r2, r1)\n L_0x0079:\n android.os.CountDownTimer r1 = r12.i\n r2 = 0\n r3 = 1000(0x3e8, double:4.94E-321)\n java.lang.String r5 = \"EXTRA_KEY_INFO_COUNTDOWN_TIMEFINISH\"\n r6 = 1\n r7 = 0\n java.lang.String r9 = \"EXTRA_KEY_INFO_COUNTDOWN_STATUS\"\n if (r1 == 0) goto L_0x0098\n long r10 = r12.j\n int r1 = (r10 > r7 ? 1 : (r10 == r7 ? 0 : -1))\n if (r1 <= 0) goto L_0x0098\n r0.putExtra(r9, r2)\n long r7 = r12.j\n long r9 = java.lang.System.currentTimeMillis()\n long r7 = r7 - r9\n goto L_0x00a3\n L_0x0098:\n long r10 = r12.k\n int r1 = (r10 > r7 ? 1 : (r10 == r7 ? 0 : -1))\n if (r1 <= 0) goto L_0x00a9\n r0.putExtra(r9, r6)\n long r7 = r12.k\n L_0x00a3:\n long r7 = r7 / r3\n int r1 = (int) r7\n r0.putExtra(r5, r1)\n goto L_0x00ad\n L_0x00a9:\n r1 = 2\n r0.putExtra(r9, r1)\n L_0x00ad:\n com.sozpic.miniland.AppMiniland r1 = com.sozpic.miniland.AppMiniland.f()\n boolean r1 = r1.n()\n if (r1 == 0) goto L_0x00cf\n java.lang.Object[] r1 = new java.lang.Object[r6]\n java.lang.Integer r13 = java.lang.Integer.valueOf(r13)\n r1[r2] = r13\n java.lang.String r13 = \"PlayerService -> Send status %d to LocalBroadcast\"\n java.lang.String r13 = java.lang.String.format(r13, r1)\n a.c.a.f.e.b(r13)\n androidx.localbroadcastmanager.content.LocalBroadcastManager r13 = androidx.localbroadcastmanager.content.LocalBroadcastManager.getInstance(r12)\n r13.sendBroadcast(r0)\n L_0x00cf:\n r12.sendBroadcast(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuatroochenta.miniland.player.PlayerService.h(int):void\");\n }", "ReactionWindowInfo mo56162f();", "public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "static void pritlnSouSuoBiaoToWindow()\n {\n System.out.println(\"\");\n System.out.println(\"方向状态到状态路径表 outToATable\");\n \n String[]tableHeads=\n {\n \"编号\",\"矩阵\",\"0号\",\"1号\",\"2号\",\"3号\",\"4号\",\"5号\",\"6号\",\"7号\",\"8号\",\"9号\",\"10号\",\"11号\",\"12号\",\"13号\",\"14号\",\"15号\",\"16号\",\"17号\",\"18号\",\"19号\",\"20号\",\"21号\",\"22号\",\"23号\" \n }\n ;\n Vector tableHeadName=new Vector();\n \n for(int l=0;l<tableHeads.length;l++)\n {\n tableHeadName.add(tableHeads[l]);\n }\n \n \n Vector row=new Vector();\n //row.add(tableHeadName);\n for(int i=0;i<statusJuZhenList.size();i++)\n {\n //if(statusJuZhenList.size ()==24){System.out.println(\"24个状态\");}\n Vector cell=new Vector();\n \n cell.add(String.valueOf(i));\n \n int[][]intArray ;\n intArray=(int[][])(statusJuZhenList.get(i));\n String statusJuZhenToString=\"\" ;\n for(int j=0;j<3;j++)\n {\n statusJuZhenToString+=\"[ \" ;\n for(int k=0;k<3;k++)\n {\n statusJuZhenToString+=String.valueOf(intArray[k][j])+\",\" ;\n }\n statusJuZhenToString+=\" ],\" ;\n }\n cell.add(statusJuZhenToString);\n \n //public static Vector[][]souSuoBiao=new Vector[24][24];\n for(int j=0;j<statusJuZhenList.size();j++)\n {\n Vector luJingArray=(Vector)souSuoBiao[i][j];\n String iToJAllLuJing=luJingArray.toString();\n cell.add(iToJAllLuJing);\n }\n \n \n \n \n row.add(cell);\n }\n \n \n DefaultTableModel tableModel=new DefaultTableModel();\n tableModel.setDataVector(row,tableHeadName);\n \n \n MoFang.theMainFrame.totlePanel.table2.setModel(tableModel);\n MoFang.theMainFrame.totlePanel.table2.setGridColor(Color.cyan);\n \n \n }", "public void chooseAction(Match match, String nickname) {\n try {\n int choice;\n Boolean ok = true;\n System.out.println(\"Digita: \\n- 1 se vuoi posizionare un dado sul tuo schema; \\n- 2 se vuoi utilizzare una carta utensile; \\n- 3 se vuoi visualizzare le informazioni degli altri giocatori; \\n- 4 se vuoi terminare il tuo turno; \\n- 5 se vuoi uscire dalla partita.\");\n\n do {\n choice = scanner.nextInt();\n\n switch (choice) {\n\n case 5: {\n System.out.println(\"Sei sicuro che vuoi uscire dalla partita? Digita 0 se sei sicuro.\");\n choice = scanner.nextInt();\n if (choice==0) {\n System.out.println(\"Uscendo dalla partita...\");\n controller.stopPlayer();\n }\n break;\n }\n\n case 1: {\n handleUseDice(match, false);\n break;\n }\n\n case 2: {\n handleUseToolCard(match); //TODO: metodi per le carte utensili\n break;\n }\n\n case 3: {\n printOtherPlayersInfo(match, nickname);\n break;\n }\n\n case 4: {\n endTurn();\n break;\n }\n\n default: {\n ok = false;\n System.out.println(\"Scelta non valida\");\n break;\n }\n }\n } while (!ok);\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n System.out.println(\"Digita un carattere valido\");\n } catch (IndexOutOfBoundsException e) {\n } catch (InputMismatchException e) {\n }\n }", "public final void a(com.tencent.mm.ui.chatting.ad.a r23, int r24, com.tencent.mm.ui.chatting.ChattingUI.a r25, com.tencent.mm.storage.at r26, java.lang.String r27) {\n /*\n r22 = this;\n r19 = r23;\n r19 = (com.tencent.mm.ui.chatting.m) r19;\n r0 = r25;\n r1 = r22;\n r1.onG = r0;\n r25.ay(r26);\n r19.reset();\n r0 = r26;\n r0 = r0.field_content;\n r21 = r0;\n r25.aw(r26);\n r4 = 0;\n if (r21 == 0) goto L_0x1212;\n L_0x001c:\n r0 = r26;\n r4 = r0.field_reserved;\n r0 = r21;\n r4 = com.tencent.mm.q.a.a.B(r0, r4);\n r20 = r4;\n L_0x0028:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r0 = r25;\n r6 = r0.nQK;\n r8 = 0;\n r9 = 0;\n r10 = 0;\n r5 = r26;\n r7 = r24;\n r4.<init>(r5, r6, r7, r8, r9, r10);\n if (r20 == 0) goto L_0x02a4;\n L_0x003a:\n r0 = r20;\n r5 = r0.appId;\n r0 = r20;\n r6 = r0.bpy;\n r7 = com.tencent.mm.pluginsdk.model.app.g.bA(r5, r6);\n r0 = r19;\n r5 = r0.dtY;\n r0 = r20;\n r6 = r0.title;\n r5.setText(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r20;\n r6 = r0.description;\n r5.setText(r6);\n r0 = r19;\n r5 = r0.okC;\n r6 = 1;\n r5.setMaxLines(r6);\n r0 = r19;\n r5 = r0.dtY;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r8 = 2131689909; // 0x7f0f01b5 float:1.9008847E38 double:1.0531947516E-314;\n r6 = r6.getColor(r8);\n r5.setTextColor(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r8 = 2131689792; // 0x7f0f0140 float:1.900861E38 double:1.053194694E-314;\n r6 = r6.getColor(r8);\n r5.setTextColor(r6);\n r0 = r19;\n r5 = r0.okQ;\n r6 = 2130837939; // 0x7f0201b3 float:1.7280846E38 double:1.0527738225E-314;\n r5.setBackgroundResource(r6);\n r0 = r19;\n r5 = r0.okQ;\n r6 = 0;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r8 = r8.getResources();\n r9 = 2131493152; // 0x7f0c0120 float:1.8609776E38 double:1.0530975407E-314;\n r8 = r8.getDimensionPixelSize(r9);\n r9 = 0;\n r10 = 0;\n r5.setPadding(r6, r8, r9, r10);\n r0 = r19;\n r5 = r0.okd;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okO;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okS;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okT;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okG;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okF;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okD;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okA;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.olb;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okU;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okQ;\n r6 = 0;\n r5.setVisibility(r6);\n if (r7 == 0) goto L_0x0133;\n L_0x0123:\n r5 = r7.field_appName;\n if (r5 == 0) goto L_0x0133;\n L_0x0127:\n r5 = r7.field_appName;\n r5 = r5.trim();\n r5 = r5.length();\n if (r5 > 0) goto L_0x02e5;\n L_0x0133:\n r0 = r20;\n r5 = r0.appName;\n L_0x0137:\n r6 = 1;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r9 = 12;\n com.tencent.mm.bd.a.fromDPToPix(r8, r9);\n r0 = r20;\n r8 = r0.type;\n r9 = 20;\n if (r8 == r9) goto L_0x0158;\n L_0x014b:\n r8 = \"wxaf060266bfa9a35c\";\n r0 = r20;\n r9 = r0.appId;\n r8 = r8.equals(r9);\n if (r8 == 0) goto L_0x0160;\n L_0x0158:\n r6 = com.tencent.mm.pluginsdk.j.a.bmq();\n r6 = r6.aNM();\n L_0x0160:\n if (r6 == 0) goto L_0x02f8;\n L_0x0162:\n r0 = r20;\n r6 = r0.appId;\n if (r6 == 0) goto L_0x02f8;\n L_0x0168:\n r0 = r20;\n r6 = r0.appId;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x02f8;\n L_0x0172:\n r6 = com.tencent.mm.pluginsdk.model.app.g.bo(r5);\n if (r6 == 0) goto L_0x02f8;\n L_0x0178:\n r0 = r19;\n r6 = r0.fSs;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r5 = com.tencent.mm.pluginsdk.model.app.g.a(r8, r7, r5);\n r6.setText(r5);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r8 = 0;\n r9 = 0;\n r10 = 0;\n r5.setCompoundDrawables(r6, r8, r9, r10);\n r0 = r19;\n r5 = r0.okz;\n r6 = 0;\n r5.setVisibility(r6);\n if (r7 == 0) goto L_0x02e9;\n L_0x01ae:\n r5 = r7.bnk();\n if (r5 == 0) goto L_0x02e9;\n L_0x01b4:\n r0 = r19;\n r6 = r0.fSs;\n r9 = r7.field_packageName;\n r0 = r26;\n r10 = r0.field_msgSvrId;\n r5 = r25;\n r7 = r26;\n r8 = r20;\n com.tencent.mm.ui.chatting.ad.a(r5, r6, r7, r8, r9, r10);\n L_0x01c7:\n r0 = r19;\n r5 = r0.okz;\n r0 = r20;\n r6 = r0.appId;\n r0 = r25;\n com.tencent.mm.ui.chatting.ad.a(r0, r5, r6);\n L_0x01d4:\n r5 = 0;\n r0 = r19;\n r6 = r0.okd;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r22;\n r6 = r0.lVu;\n if (r6 == 0) goto L_0x0382;\n L_0x01e3:\n r6 = 0;\n r0 = r20;\n r7 = r0.type;\n r8 = 33;\n if (r7 == r8) goto L_0x0203;\n L_0x01ec:\n r6 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r7 = r0.field_imgPath;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r8 = com.tencent.mm.bd.a.getDensity(r8);\n r9 = 0;\n r6 = r6.a(r7, r8, r9);\n L_0x0203:\n if (r6 == 0) goto L_0x037f;\n L_0x0205:\n r7 = r6.isRecycled();\n if (r7 != 0) goto L_0x037f;\n L_0x020b:\n r0 = r19;\n r7 = r0.okd;\n r7.setImageBitmap(r6);\n L_0x0212:\n r0 = r20;\n r7 = r0.type;\n r8 = 3;\n if (r7 != r8) goto L_0x022f;\n L_0x0219:\n r0 = r19;\n r7 = r0.okQ;\n r7 = r7.getViewTreeObserver();\n r8 = new com.tencent.mm.ui.chatting.aw$1;\n r0 = r22;\n r1 = r19;\n r2 = r25;\n r8.<init>(r0, r1, r2, r6);\n r7.addOnPreDrawListener(r8);\n L_0x022f:\n r0 = r19;\n r6 = r0.okH;\n r7 = 0;\n r6.setOnClickListener(r7);\n r0 = r20;\n r6 = r0.type;\n switch(r6) {\n case 0: goto L_0x0ad2;\n case 1: goto L_0x023e;\n case 2: goto L_0x023e;\n case 3: goto L_0x0396;\n case 4: goto L_0x0559;\n case 5: goto L_0x05e8;\n case 6: goto L_0x04c4;\n case 7: goto L_0x0875;\n case 8: goto L_0x023e;\n case 9: goto L_0x023e;\n case 10: goto L_0x092a;\n case 11: goto L_0x023e;\n case 12: goto L_0x023e;\n case 13: goto L_0x09e5;\n case 14: goto L_0x023e;\n case 15: goto L_0x0b50;\n case 16: goto L_0x0df5;\n case 17: goto L_0x023e;\n case 18: goto L_0x023e;\n case 19: goto L_0x0f62;\n case 20: goto L_0x0a58;\n case 21: goto L_0x023e;\n case 22: goto L_0x023e;\n case 23: goto L_0x023e;\n case 24: goto L_0x0e88;\n case 25: goto L_0x0c06;\n case 26: goto L_0x0cba;\n case 27: goto L_0x0cba;\n case 28: goto L_0x023e;\n case 29: goto L_0x023e;\n case 30: goto L_0x023e;\n case 31: goto L_0x023e;\n case 32: goto L_0x023e;\n case 33: goto L_0x06da;\n case 34: goto L_0x1034;\n default: goto L_0x023e;\n };\n L_0x023e:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x11fb;\n L_0x0244:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x11fb;\n L_0x024e:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x0269:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0274:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x1206;\n L_0x028c:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x1206;\n L_0x0292:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n L_0x0299:\n r0 = r20;\n r5 = r0.cob;\n r0 = r19;\n r1 = r21;\n com.tencent.mm.ui.chatting.m.a(r0, r1, r5);\n L_0x02a4:\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n r0 = r19;\n r4 = r0.okP;\n r0 = r25;\n r5 = r0.onh;\n r5 = r5.oqh;\n r4.setOnClickListener(r5);\n r0 = r22;\n r4 = r0.lVu;\n if (r4 == 0) goto L_0x02cb;\n L_0x02be:\n r0 = r19;\n r4 = r0.okP;\n r0 = r25;\n r5 = r0.onh;\n r5 = r5.oqj;\n r4.setOnLongClickListener(r5);\n L_0x02cb:\n r0 = r25;\n r4 = r0.onh;\n r7 = r4.cyO;\n r0 = r25;\n r8 = r0.nQK;\n r0 = r25;\n r4 = r0.onh;\n r9 = r4.oqh;\n r4 = r24;\n r5 = r19;\n r6 = r26;\n com.tencent.mm.ui.chatting.ad.a(r4, r5, r6, r7, r8, r9);\n return;\n L_0x02e5:\n r5 = r7.field_appName;\n goto L_0x0137;\n L_0x02e9:\n r0 = r19;\n r5 = r0.fSs;\n r0 = r20;\n r6 = r0.appId;\n r0 = r25;\n com.tencent.mm.ui.chatting.ad.a(r0, r5, r6);\n goto L_0x01c7;\n L_0x02f8:\n r0 = r20;\n r5 = r0.type;\n r6 = 24;\n if (r5 != r6) goto L_0x032d;\n L_0x0300:\n r0 = r19;\n r5 = r0.fSs;\n r6 = com.tencent.mm.sdk.platformtools.aa.getContext();\n r7 = 2131232638; // 0x7f08077e float:1.808139E38 double:1.0529688297E-314;\n r6 = r6.getString(r7);\n r5.setText(r6);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okz;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x01d4;\n L_0x032d:\n r0 = r20;\n r5 = r0.type;\n r6 = 19;\n if (r5 != r6) goto L_0x0362;\n L_0x0335:\n r0 = r19;\n r5 = r0.fSs;\n r6 = com.tencent.mm.sdk.platformtools.aa.getContext();\n r7 = 2131231816; // 0x7f080448 float:1.8079724E38 double:1.0529684236E-314;\n r6 = r6.getString(r7);\n r5.setText(r6);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okz;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x01d4;\n L_0x0362:\n r0 = r19;\n r5 = r0.okB;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okz;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x01d4;\n L_0x037f:\n r5 = 1;\n goto L_0x0212;\n L_0x0382:\n r0 = r19;\n r6 = r0.okd;\n r7 = r25.getResources();\n r8 = 2130838790; // 0x7f020506 float:1.7282572E38 double:1.052774243E-314;\n r7 = android.graphics.BitmapFactory.decodeResource(r7, r8);\n r6.setImageBitmap(r7);\n goto L_0x022f;\n L_0x0396:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0486;\n L_0x039c:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0486;\n L_0x03a6:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131690127; // 0x7f0f028f float:1.9009289E38 double:1.0531948593E-314;\n r7 = r7.getColor(r8);\n r6.setTextColor(r7);\n L_0x03c6:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131690127; // 0x7f0f028f float:1.9009289E38 double:1.0531948593E-314;\n r7 = r7.getColor(r8);\n r6.setTextColor(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r23;\n r6 = r0.onE;\n r0 = r26;\n r8 = r0.field_msgId;\n r6 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));\n if (r6 != 0) goto L_0x0491;\n L_0x0413:\n r0 = r19;\n r6 = r0.okH;\n r7 = 2130838733; // 0x7f0204cd float:1.7282457E38 double:1.052774215E-314;\n r6.setImageResource(r7);\n L_0x041d:\n r6 = new com.tencent.mm.ui.chatting.cp$b;\n r6.<init>();\n r0 = r26;\n r8 = r0.field_msgId;\n r6.bao = r8;\n r0 = r26;\n r7 = r0.field_content;\n r6.blq = r7;\n r0 = r26;\n r7 = r0.field_imgPath;\n r6.bhr = r7;\n r0 = r19;\n r7 = r0.okH;\n r7.setTag(r6);\n r0 = r19;\n r6 = r0.okH;\n r0 = r25;\n r7 = r0.onh;\n r7 = r7.oqp;\n r6.setOnClickListener(r7);\n if (r5 == 0) goto L_0x046f;\n L_0x044a:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x0465;\n L_0x045f:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x049c;\n L_0x0465:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165232; // 0x7f070030 float:1.7944675E38 double:1.0529355267E-314;\n r5.setImageResource(r6);\n L_0x046f:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x04a4;\n L_0x0475:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x047b:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0486:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x03c6;\n L_0x0491:\n r0 = r19;\n r6 = r0.okH;\n r7 = 2130838735; // 0x7f0204cf float:1.728246E38 double:1.052774216E-314;\n r6.setImageResource(r7);\n goto L_0x041d;\n L_0x049c:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x046f;\n L_0x04a4:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x04aa:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x04b9:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x04c4:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x054f;\n L_0x04ca:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x054f;\n L_0x04d4:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r7 = 2;\n r6.setMaxLines(r7);\n L_0x04e4:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r0 = r20;\n r7 = r0.cob;\n r8 = (long) r7;\n r7 = com.tencent.mm.sdk.platformtools.be.aw(r8);\n r6.setText(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n r6 = 0;\n r6 = java.lang.Boolean.valueOf(r6);\n r0 = r20;\n r7 = r0.aXa;\n r0 = r20;\n r8 = r0.title;\n r0 = r19;\n r1 = r26;\n com.tencent.mm.ui.chatting.m.a(r0, r6, r1, r7, r8);\n if (r5 == 0) goto L_0x0299;\n L_0x0534:\n r0 = r20;\n r5 = r0.coc;\n r5 = com.tencent.mm.sdk.platformtools.be.KY(r5);\n if (r5 != 0) goto L_0x1206;\n L_0x053e:\n r0 = r19;\n r5 = r0.okd;\n r0 = r20;\n r6 = r0.coc;\n r6 = com.tencent.mm.pluginsdk.model.p.Gt(r6);\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x054f:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x04e4;\n L_0x0559:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x05d6;\n L_0x055f:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x05d6;\n L_0x0569:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n L_0x0571:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 2130839370; // 0x7f02074a float:1.7283749E38 double:1.0527745295E-314;\n r6.setImageResource(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x05a6:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x05c1;\n L_0x05bb:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x05e0;\n L_0x05c1:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165244; // 0x7f07003c float:1.79447E38 double:1.0529355327E-314;\n r5.setImageResource(r6);\n L_0x05cb:\n r0 = r19;\n r5 = r0.okH;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x05d6:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0571;\n L_0x05e0:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x05cb;\n L_0x05e8:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x068c;\n L_0x05f7:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x068c;\n L_0x0601:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x061c:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 3;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x066a;\n L_0x0637:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 != 0) goto L_0x06a1;\n L_0x064c:\n r5 = new com.tencent.mm.pluginsdk.model.r;\n r0 = r20;\n r6 = r0.thumburl;\n r0 = r26;\n r7 = r0.field_type;\n r8 = \"@S\";\n r9 = 0;\n r5.<init>(r6, r7, r8, r9);\n r5 = com.tencent.mm.platformtools.j.a(r5);\n if (r5 == 0) goto L_0x0696;\n L_0x0663:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n L_0x066a:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x06ba;\n L_0x0670:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0681:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x068c:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x061c;\n L_0x0696:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x066a;\n L_0x06a1:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x06b2;\n L_0x06a7:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x066a;\n L_0x06b2:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x066a;\n L_0x06ba:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x06c0:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x06cf:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x06da:\n r6 = new com.tencent.mm.e.a.m;\n r6.<init>();\n r5 = r6.aWJ;\n r0 = r20;\n r7 = r0.cqp;\n r5.aWH = r7;\n r5 = com.tencent.mm.sdk.c.a.nhr;\n r5.z(r6);\n r5 = r6.aWK;\n r5 = r5.aWL;\n if (r5 == 0) goto L_0x0729;\n L_0x06f2:\n r5 = r6.aWK;\n r5 = r5.appName;\n L_0x06f6:\n r7 = r6.aWK;\n r7 = r7.aWL;\n if (r7 == 0) goto L_0x072e;\n L_0x06fc:\n r6 = r6.aWK;\n r6 = r6.aWM;\n L_0x0700:\n r0 = r20;\n r7 = r0.cqr;\n switch(r7) {\n case 1: goto L_0x0821;\n case 2: goto L_0x0733;\n default: goto L_0x0707;\n };\n L_0x0707:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x0855;\n L_0x070d:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x071e:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0729:\n r0 = r20;\n r5 = r0.bnS;\n goto L_0x06f6;\n L_0x072e:\n r0 = r20;\n r6 = r0.cqv;\n goto L_0x0700;\n L_0x0733:\n r0 = r19;\n r7 = r0.okQ;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.olb;\n r8 = 0;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.okU;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r8 = r0.okX;\n r0 = r20;\n r7 = r0.description;\n r7 = android.text.TextUtils.isEmpty(r7);\n if (r7 == 0) goto L_0x07e3;\n L_0x075b:\n r7 = 8;\n L_0x075d:\n r8.setVisibility(r7);\n r0 = r19;\n r7 = r0.old;\n r0 = r20;\n r8 = r0.title;\n r7.setText(r8);\n r0 = r19;\n r7 = r0.okX;\n r0 = r20;\n r8 = r0.description;\n r7.setText(r8);\n r0 = r19;\n r7 = r0.okZ;\n r7.setText(r5);\n r0 = r20;\n r5 = r0.cqt;\n switch(r5) {\n case 1: goto L_0x07e6;\n case 2: goto L_0x0803;\n default: goto L_0x0784;\n };\n L_0x0784:\n r0 = r19;\n r5 = r0.okY;\n r7 = 0;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.okZ;\n r7 = 0;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.ola;\n r7 = 2131230936; // 0x7f0800d8 float:1.8077939E38 double:1.052967989E-314;\n r5.setText(r7);\n L_0x079e:\n r5 = com.tencent.mm.ae.n.GL();\n r0 = r19;\n r7 = r0.okY;\n r0 = r22;\n r8 = r0.onQ;\n r5.a(r6, r7, r8);\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r7 = 1;\n r7 = r5.x(r6, r7);\n r0 = r19;\n r5 = r0.olc;\n r6 = 0;\n r5.setImageBitmap(r6);\n r5 = com.tencent.mm.t.a.b.AL();\n r0 = r19;\n r6 = r0.olc;\n r8 = new java.lang.StringBuilder;\n r9 = \"file://\";\n r8.<init>(r9);\n r7 = r8.append(r7);\n r7 = r7.toString();\n r8 = 0;\n r9 = 0;\n r10 = com.tencent.mm.ui.chatting.m.a.fVO;\n r5.a(r6, r7, r8, r9, r10);\n goto L_0x0707;\n L_0x07e3:\n r7 = 0;\n goto L_0x075d;\n L_0x07e6:\n r0 = r19;\n r5 = r0.okY;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.okZ;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.ola;\n r7 = 2131230999; // 0x7f080117 float:1.8078067E38 double:1.05296802E-314;\n r5.setText(r7);\n goto L_0x079e;\n L_0x0803:\n r0 = r19;\n r5 = r0.okY;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.okZ;\n r7 = 8;\n r5.setVisibility(r7);\n r0 = r19;\n r5 = r0.ola;\n r7 = 2131230998; // 0x7f080116 float:1.8078065E38 double:1.0529680195E-314;\n r5.setText(r7);\n goto L_0x079e;\n L_0x0821:\n r0 = r19;\n r7 = r0.okQ;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.olb;\n r8 = 8;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.okU;\n r8 = 0;\n r7.setVisibility(r8);\n r0 = r19;\n r7 = r0.okW;\n r7.setText(r5);\n r5 = com.tencent.mm.t.a.b.AL();\n r0 = r19;\n r7 = r0.okV;\n r8 = com.tencent.mm.t.a.a.AK();\n r9 = com.tencent.mm.t.a.c.cxH;\n r5.a(r7, r6, r8, r9);\n goto L_0x0707;\n L_0x0855:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x085b:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x086a:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0875:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x08f8;\n L_0x0884:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x08f8;\n L_0x088e:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x08a1:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 3;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x08e1;\n L_0x08bc:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x08d7;\n L_0x08d1:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x0902;\n L_0x08d7:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n L_0x08e1:\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x090a;\n L_0x08e7:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x08ed:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x08f8:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x08a1;\n L_0x0902:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x08e1;\n L_0x090a:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0910:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x091f:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x092a:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.cox;\n r7 = 1;\n if (r6 != r7) goto L_0x09a8;\n L_0x0939:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234775; // 0x7f080fd7 float:1.8085725E38 double:1.0529698855E-314;\n r6.setText(r7);\n L_0x0943:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0966;\n L_0x0949:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0966;\n L_0x0953:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x0966:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0981:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x09d9;\n L_0x0999:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x09d9;\n L_0x099f:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x09a8:\n r0 = r20;\n r6 = r0.cox;\n r7 = 2;\n if (r6 != r7) goto L_0x09ba;\n L_0x09af:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234777; // 0x7f080fd9 float:1.808573E38 double:1.0529698865E-314;\n r6.setText(r7);\n goto L_0x0943;\n L_0x09ba:\n r0 = r20;\n r6 = r0.cox;\n r7 = 3;\n if (r6 != r7) goto L_0x09cd;\n L_0x09c1:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234776; // 0x7f080fd8 float:1.8085727E38 double:1.052969886E-314;\n r6.setText(r7);\n goto L_0x0943;\n L_0x09cd:\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131234778; // 0x7f080fda float:1.8085731E38 double:1.052969887E-314;\n r6.setText(r7);\n goto L_0x0943;\n L_0x09d9:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x09e5:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 2131233764; // 0x7f080be4 float:1.8083675E38 double:1.052969386E-314;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0a25:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x0a4c;\n L_0x0a3d:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x0a4c;\n L_0x0a43:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0a4c:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0a58:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0a84;\n L_0x0a5e:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0a84;\n L_0x0a68:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n L_0x0a84:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0a9f:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x0ac6;\n L_0x0ab7:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x0ac6;\n L_0x0abd:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0ac6:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0ad2:\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0b3d;\n L_0x0ad8:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0b3d;\n L_0x0ae2:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n L_0x0aea:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 2;\n r6.setMaxLines(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0b16:\n r0 = r20;\n r5 = r0.appId;\n r6 = 1;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = com.tencent.mm.pluginsdk.model.app.g.b(r5, r6, r7);\n if (r5 == 0) goto L_0x0b31;\n L_0x0b2b:\n r6 = r5.isRecycled();\n if (r6 == 0) goto L_0x0b47;\n L_0x0b31:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0b3d:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0aea;\n L_0x0b47:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0b50:\n r0 = r20;\n r4 = r0.title;\n if (r4 == 0) goto L_0x0bf3;\n L_0x0b56:\n r0 = r20;\n r4 = r0.title;\n r4 = r4.length();\n if (r4 <= 0) goto L_0x0bf3;\n L_0x0b60:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 0;\n r4.setVisibility(r6);\n L_0x0b68:\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 0;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okC;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okH;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okD;\n r6 = 4;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 2;\n r4.setMaxLines(r6);\n if (r5 == 0) goto L_0x0bbc;\n L_0x0b94:\n r4 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r5 = r0.field_imgPath;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = com.tencent.mm.bd.a.getDensity(r6);\n r4 = r4.a(r5, r6);\n if (r4 == 0) goto L_0x0bb2;\n L_0x0bac:\n r5 = r4.isRecycled();\n if (r5 == 0) goto L_0x0bfe;\n L_0x0bb2:\n r0 = r19;\n r4 = r0.okd;\n r5 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r4.setImageResource(r5);\n L_0x0bbc:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r6 = 0;\n r8 = \"\";\n r9 = 8;\n r10 = 0;\n r11 = r25.bFU();\n r0 = r20;\n r12 = r0.bnR;\n r0 = r20;\n r13 = r0.bnS;\n r0 = r20;\n r14 = r0.title;\n r0 = r20;\n r15 = r0.coF;\n r0 = r20;\n r0 = r0.url;\n r16 = r0;\n r17 = 0;\n r18 = 0;\n r5 = r26;\n r7 = r24;\n r4.<init>(r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18);\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n goto L_0x0299;\n L_0x0bf3:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 8;\n r4.setVisibility(r6);\n goto L_0x0b68;\n L_0x0bfe:\n r0 = r19;\n r5 = r0.okd;\n r5.setImageBitmap(r4);\n goto L_0x0bbc;\n L_0x0c06:\n r0 = r20;\n r4 = r0.title;\n if (r4 == 0) goto L_0x0ca7;\n L_0x0c0c:\n r0 = r20;\n r4 = r0.title;\n r4 = r4.length();\n if (r4 <= 0) goto L_0x0ca7;\n L_0x0c16:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 0;\n r4.setVisibility(r6);\n L_0x0c1e:\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 0;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okC;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okH;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okD;\n r6 = 4;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 2;\n r4.setMaxLines(r6);\n if (r5 == 0) goto L_0x0c72;\n L_0x0c4a:\n r4 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r5 = r0.field_imgPath;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = com.tencent.mm.bd.a.getDensity(r6);\n r4 = r4.a(r5, r6);\n if (r4 == 0) goto L_0x0c68;\n L_0x0c62:\n r5 = r4.isRecycled();\n if (r5 == 0) goto L_0x0cb2;\n L_0x0c68:\n r0 = r19;\n r4 = r0.okd;\n r5 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r4.setImageResource(r5);\n L_0x0c72:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r7 = \"\";\n r8 = r25.bFU();\n r0 = r20;\n r9 = r0.bnR;\n r0 = r20;\n r10 = r0.bnS;\n r0 = r20;\n r11 = r0.title;\n r0 = r20;\n r12 = r0.cqd;\n r0 = r20;\n r13 = r0.designerName;\n r0 = r20;\n r14 = r0.designerRediretctUrl;\n r0 = r20;\n r15 = r0.url;\n r5 = r26;\n r6 = r24;\n r4.<init>(r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15);\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n goto L_0x0299;\n L_0x0ca7:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 8;\n r4.setVisibility(r6);\n goto L_0x0c1e;\n L_0x0cb2:\n r0 = r19;\n r5 = r0.okd;\n r5.setImageBitmap(r4);\n goto L_0x0c72;\n L_0x0cba:\n r0 = r20;\n r4 = r0.title;\n if (r4 == 0) goto L_0x0d7b;\n L_0x0cc0:\n r0 = r20;\n r4 = r0.title;\n r4 = r4.length();\n if (r4 <= 0) goto L_0x0d7b;\n L_0x0cca:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 0;\n r4.setVisibility(r6);\n L_0x0cd2:\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 0;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okC;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okH;\n r6 = 8;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.okD;\n r6 = 4;\n r4.setVisibility(r6);\n r0 = r19;\n r4 = r0.dtZ;\n r6 = 2;\n r4.setMaxLines(r6);\n if (r5 == 0) goto L_0x0d17;\n L_0x0cfe:\n r0 = r26;\n r4 = r0.field_imgPath;\n r4 = com.tencent.mm.sdk.platformtools.be.kS(r4);\n if (r4 == 0) goto L_0x0d86;\n L_0x0d08:\n r4 = com.tencent.mm.ae.n.GL();\n r0 = r20;\n r5 = r0.thumburl;\n r0 = r19;\n r6 = r0.okd;\n r4.a(r5, r6);\n L_0x0d17:\n r4 = new com.tencent.mm.ui.chatting.dl;\n r4.<init>();\n r0 = r26;\n r4.bmk = r0;\n r5 = 0;\n r4.nQK = r5;\n r0 = r24;\n r4.position = r0;\n r5 = 0;\n r4.oxP = r5;\n r5 = r25.bFU();\n r4.title = r5;\n r0 = r20;\n r5 = r0.bnR;\n r4.bnR = r5;\n r0 = r20;\n r5 = r0.bnS;\n r4.bnS = r5;\n r0 = r20;\n r5 = r0.title;\n r4.oxQ = r5;\n r0 = r20;\n r5 = r0.type;\n r6 = 26;\n if (r5 != r6) goto L_0x0db9;\n L_0x0d4a:\n r5 = 12;\n r4.eKg = r5;\n r0 = r20;\n r5 = r0.tid;\n r4.tid = r5;\n r0 = r20;\n r5 = r0.cqe;\n r4.cqe = r5;\n r0 = r20;\n r5 = r0.desc;\n r4.desc = r5;\n r0 = r20;\n r5 = r0.iconUrl;\n r4.iconUrl = r5;\n r0 = r20;\n r5 = r0.secondUrl;\n r4.secondUrl = r5;\n r0 = r20;\n r5 = r0.pageType;\n r4.pageType = r5;\n L_0x0d72:\n r0 = r19;\n r5 = r0.okP;\n r5.setTag(r4);\n goto L_0x0299;\n L_0x0d7b:\n r0 = r19;\n r4 = r0.dtY;\n r6 = 8;\n r4.setVisibility(r6);\n goto L_0x0cd2;\n L_0x0d86:\n r4 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r5 = r0.field_imgPath;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = com.tencent.mm.bd.a.getDensity(r6);\n r4 = r4.a(r5, r6);\n if (r4 == 0) goto L_0x0da4;\n L_0x0d9e:\n r5 = r4.isRecycled();\n if (r5 == 0) goto L_0x0db0;\n L_0x0da4:\n r0 = r19;\n r4 = r0.okd;\n r5 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r4.setImageResource(r5);\n goto L_0x0d17;\n L_0x0db0:\n r0 = r19;\n r5 = r0.okd;\n r5.setImageBitmap(r4);\n goto L_0x0d17;\n L_0x0db9:\n r0 = r20;\n r5 = r0.type;\n r6 = 27;\n if (r5 != r6) goto L_0x0dea;\n L_0x0dc1:\n r5 = 13;\n r4.eKg = r5;\n r0 = r20;\n r5 = r0.tid;\n r4.tid = r5;\n r0 = r20;\n r5 = r0.cqe;\n r4.cqe = r5;\n r0 = r20;\n r5 = r0.desc;\n r4.desc = r5;\n r0 = r20;\n r5 = r0.iconUrl;\n r4.iconUrl = r5;\n r0 = r20;\n r5 = r0.secondUrl;\n r4.secondUrl = r5;\n r0 = r20;\n r5 = r0.pageType;\n r4.pageType = r5;\n goto L_0x0d72;\n L_0x0dea:\n r5 = \"MicroMsg.ChattingItemAppMsgTo\";\n r6 = \"unknow view type\";\n com.tencent.mm.sdk.platformtools.v.i(r5, r6);\n goto L_0x0d72;\n L_0x0df5:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.dtY;\n r0 = r20;\n r7 = r0.description;\n r6.setText(r7);\n r0 = r19;\n r6 = r0.dtZ;\n r0 = r20;\n r7 = r0.cpn;\n r6.setText(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0e72;\n L_0x0e19:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0e72;\n L_0x0e23:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r20;\n r7 = r0.title;\n r6.setText(r7);\n L_0x0e36:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0299;\n L_0x0e51:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r5 = r5.a(r6, r7);\n if (r5 == 0) goto L_0x0e7c;\n L_0x0e69:\n r0 = r19;\n r6 = r0.okd;\n r6.setImageBitmap(r5);\n goto L_0x0299;\n L_0x0e72:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0e36;\n L_0x0e7c:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2131165247; // 0x7f07003f float:1.7944706E38 double:1.052935534E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x0e88:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x0f1a;\n L_0x0e9f:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x0f1a;\n L_0x0ea9:\n r0 = r19;\n r6 = r0.okC;\n r0 = r19;\n r7 = r0.okC;\n r7 = r7.getContext();\n r0 = r20;\n r8 = r0.title;\n r0 = r19;\n r9 = r0.okC;\n r9 = r9.getTextSize();\n r9 = (int) r9;\n r7 = com.tencent.mm.pluginsdk.ui.d.e.a(r7, r8, r9);\n r6.setText(r7);\n L_0x0ec9:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 3;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0eed;\n L_0x0ee4:\n r0 = r19;\n r6 = r0.okd;\n r7 = 8;\n r6.setVisibility(r7);\n L_0x0eed:\n r0 = r25;\n r1 = r19;\n r2 = r20;\n r3 = r26;\n com.tencent.mm.ui.chatting.m.a(r0, r1, r2, r3, r5);\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x0f42;\n L_0x0efe:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0f0f:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0f1a:\n r0 = r19;\n r6 = r0.okC;\n r0 = r19;\n r7 = r0.okC;\n r7 = r7.getContext();\n r8 = com.tencent.mm.sdk.platformtools.aa.getContext();\n r9 = 2131232755; // 0x7f0807f3 float:1.8081628E38 double:1.0529688875E-314;\n r8 = r8.getString(r9);\n r0 = r19;\n r9 = r0.okC;\n r9 = r9.getTextSize();\n r9 = (int) r9;\n r7 = com.tencent.mm.pluginsdk.ui.d.e.a(r7, r8, r9);\n r6.setText(r7);\n goto L_0x0ec9;\n L_0x0f42:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0f48:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x0f57:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x0f62:\n r0 = r19;\n r6 = r0.dtY;\n r7 = 8;\n r6.setVisibility(r7);\n r0 = r20;\n r6 = r0.title;\n if (r6 == 0) goto L_0x100a;\n L_0x0f71:\n r0 = r20;\n r6 = r0.title;\n r6 = r6.length();\n if (r6 <= 0) goto L_0x100a;\n L_0x0f7b:\n r0 = r19;\n r6 = r0.okC;\n r7 = 0;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okC;\n r7 = 2;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okC;\n r0 = r19;\n r7 = r0.okC;\n r7 = r7.getContext();\n r0 = r20;\n r8 = r0.title;\n r0 = r19;\n r9 = r0.okC;\n r9 = r9.getTextSize();\n r9 = (int) r9;\n r7 = com.tencent.mm.pluginsdk.ui.d.e.a(r7, r8, r9);\n r6.setText(r7);\n L_0x0fab:\n r0 = r19;\n r6 = r0.dtZ;\n r7 = 4;\n r6.setMaxLines(r7);\n r0 = r19;\n r6 = r0.okD;\n r7 = 4;\n r6.setVisibility(r7);\n r0 = r19;\n r6 = r0.okH;\n r7 = 8;\n r6.setVisibility(r7);\n if (r5 == 0) goto L_0x0fcf;\n L_0x0fc6:\n r0 = r19;\n r6 = r0.okd;\n r7 = 8;\n r6.setVisibility(r7);\n L_0x0fcf:\n r0 = r19;\n r1 = r20;\n com.tencent.mm.ui.chatting.m.a(r0, r1, r5);\n r0 = r19;\n r5 = r0.okd;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okO;\n r6 = 8;\n r5.setVisibility(r6);\n r5 = com.tencent.mm.ui.chatting.ad.bEA();\n if (r5 == 0) goto L_0x1014;\n L_0x0fee:\n r0 = r25;\n r5 = r0.onh;\n r0 = r19;\n r1 = r26;\n a(r0, r5, r1);\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x0fff:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x100a:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0fab;\n L_0x1014:\n r0 = r19;\n r5 = r0.ieT;\n if (r5 == 0) goto L_0x0299;\n L_0x101a:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r26;\n r5 = r0.field_status;\n r6 = 2;\n if (r5 < r6) goto L_0x0299;\n L_0x1029:\n r0 = r19;\n r5 = r0.ieT;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x0299;\n L_0x1034:\n r0 = r20;\n r5 = r0.title;\n if (r5 == 0) goto L_0x119e;\n L_0x103a:\n r0 = r20;\n r5 = r0.title;\n r5 = r5.length();\n if (r5 <= 0) goto L_0x119e;\n L_0x1044:\n r0 = r19;\n r5 = r0.dtY;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r20;\n r5 = r0.cpw;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x1184;\n L_0x1056:\n r0 = r20;\n r5 = r0.cpw;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x116a;\n L_0x1060:\n r0 = r19;\n r5 = r0.dtY;\n r0 = r20;\n r6 = r0.cpw;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131689547; // 0x7f0f004b float:1.9008112E38 double:1.053194573E-314;\n r7 = r7.getColor(r8);\n r6 = com.tencent.mm.sdk.platformtools.be.am(r6, r7);\n r5.setTextColor(r6);\n L_0x1080:\n r0 = r19;\n r5 = r0.dtZ;\n r6 = 2;\n r5.setMaxLines(r6);\n r0 = r19;\n r5 = r0.dtZ;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r20;\n r5 = r0.cpx;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x11a9;\n L_0x109a:\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r20;\n r6 = r0.cpx;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = r7.getResources();\n r8 = 2131689769; // 0x7f0f0129 float:1.9008563E38 double:1.0531946825E-314;\n r7 = r7.getColor(r8);\n r6 = com.tencent.mm.sdk.platformtools.be.am(r6, r7);\n r5.setTextColor(r6);\n L_0x10ba:\n r0 = r19;\n r5 = r0.okC;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okD;\n r6 = 4;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okH;\n r6 = 8;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.okB;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r19;\n r5 = r0.fSs;\n r6 = 0;\n r5.setVisibility(r6);\n r0 = r20;\n r5 = r0.cps;\n r5 = com.tencent.mm.sdk.platformtools.be.kS(r5);\n if (r5 != 0) goto L_0x11c3;\n L_0x10ee:\n r0 = r19;\n r5 = r0.fSs;\n r0 = r20;\n r6 = r0.cps;\n r5.setText(r6);\n L_0x10f9:\n r0 = r22;\n r5 = r0.lVu;\n if (r5 == 0) goto L_0x11e7;\n L_0x10ff:\n r5 = com.tencent.mm.ae.n.GH();\n r0 = r26;\n r6 = r0.field_imgPath;\n r0 = r25;\n r7 = r0.nDR;\n r7 = r7.nEl;\n r7 = com.tencent.mm.bd.a.getDensity(r7);\n r8 = 0;\n r5 = r5.a(r6, r7, r8);\n if (r5 == 0) goto L_0x1131;\n L_0x1118:\n r6 = r5.isRecycled();\n if (r6 != 0) goto L_0x1131;\n L_0x111e:\n r6 = 0;\n r7 = r5.getWidth();\n r7 = r7 / 2;\n r7 = (float) r7;\n r6 = com.tencent.mm.sdk.platformtools.d.a(r5, r6, r7);\n r0 = r19;\n r7 = r0.okd;\n r7.setImageBitmap(r6);\n L_0x1131:\n r0 = r20;\n r6 = r0.cpv;\n r6 = com.tencent.mm.sdk.platformtools.be.kS(r6);\n if (r6 != 0) goto L_0x11cf;\n L_0x113b:\n r5 = com.tencent.mm.ae.n.GL();\n r0 = r20;\n r6 = r0.cpv;\n r7 = new android.widget.ImageView;\n r0 = r25;\n r8 = r0.nDR;\n r8 = r8.nEl;\n r7.<init>(r8);\n r8 = new com.tencent.mm.ae.a.a.c$a;\n r8.<init>();\n r9 = 1;\n r8.cPs = r9;\n r8 = r8.GU();\n r9 = new com.tencent.mm.ui.chatting.aw$2;\n r0 = r22;\n r1 = r19;\n r2 = r25;\n r9.<init>(r0, r1, r2);\n r5.a(r6, r7, r8, r9);\n goto L_0x0299;\n L_0x116a:\n r0 = r19;\n r5 = r0.dtY;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r7 = 2131689547; // 0x7f0f004b float:1.9008112E38 double:1.053194573E-314;\n r6 = r6.getColor(r7);\n r5.setTextColor(r6);\n goto L_0x1080;\n L_0x1184:\n r0 = r19;\n r5 = r0.dtY;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r7 = 2131689547; // 0x7f0f004b float:1.9008112E38 double:1.053194573E-314;\n r6 = r6.getColor(r7);\n r5.setTextColor(r6);\n goto L_0x1080;\n L_0x119e:\n r0 = r19;\n r5 = r0.dtY;\n r6 = 8;\n r5.setVisibility(r6);\n goto L_0x1080;\n L_0x11a9:\n r0 = r19;\n r5 = r0.dtZ;\n r0 = r25;\n r6 = r0.nDR;\n r6 = r6.nEl;\n r6 = r6.getResources();\n r7 = 2131689769; // 0x7f0f0129 float:1.9008563E38 double:1.0531946825E-314;\n r6 = r6.getColor(r7);\n r5.setTextColor(r6);\n goto L_0x10ba;\n L_0x11c3:\n r0 = r19;\n r5 = r0.fSs;\n r6 = 2131231814; // 0x7f080446 float:1.807972E38 double:1.0529684226E-314;\n r5.setText(r6);\n goto L_0x10f9;\n L_0x11cf:\n r0 = r19;\n r6 = r0.okQ;\n r6 = r6.getViewTreeObserver();\n r7 = new com.tencent.mm.ui.chatting.aw$3;\n r0 = r22;\n r1 = r19;\n r2 = r25;\n r7.<init>(r0, r1, r2, r5);\n r6.addOnPreDrawListener(r7);\n goto L_0x0299;\n L_0x11e7:\n r0 = r19;\n r5 = r0.okd;\n r6 = r25.getResources();\n r7 = 2130838790; // 0x7f020506 float:1.7282572E38 double:1.052774243E-314;\n r6 = android.graphics.BitmapFactory.decodeResource(r6, r7);\n r5.setImageBitmap(r6);\n goto L_0x0299;\n L_0x11fb:\n r0 = r19;\n r6 = r0.okC;\n r7 = 8;\n r6.setVisibility(r7);\n goto L_0x0269;\n L_0x1206:\n r0 = r19;\n r5 = r0.okd;\n r6 = 2130837666; // 0x7f0200a2 float:1.7280293E38 double:1.0527736876E-314;\n r5.setImageResource(r6);\n goto L_0x0299;\n L_0x1212:\n r20 = r4;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.ui.chatting.aw.a(com.tencent.mm.ui.chatting.ad$a, int, com.tencent.mm.ui.chatting.ChattingUI$a, com.tencent.mm.storage.at, java.lang.String):void\");\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e) {\n\t\tif (i1_1 == e.getSource ()){\n\t\t\t첫번째 = new 첫번째과제 ();\n\t\t\t첫번째.main (null);\n\t\t}\n\t\t\n\t\telse if (i2_1 == e.getSource ()){\n\t\t\t두번째_1 = new 메인2_1 ();\n\t\t\t두번째_1.main (null);\n\t\t}\n\t\t\n\t\telse if (i2_2 == e.getSource ()){\n\t\t\t두번째_2 = new 메인2_2 ();\n\t\t\t두번째_2.main (null);\n\t\t}\n\t\t\n\t\telse if (i3_1 == e.getSource ()){\n\t\t\t세번째_1 = new 메인3_1 ();\n\t\t\t세번째_1.main (null);\n\t\t}\n\t\t\n\t\telse if (i3_2 == e.getSource()){\n\t\t\t세번째_2 = new 메인3_2 ();\n\t\t\t세번째_2.main (null);\n\t\t}\n\t\t\n\t\telse if (i4_1 == e.getSource ()){\n\t\t\t네번째_1 = new 메인4_1 ();\n\t\t\t네번째_1.main (null);\n\t\t}\n\t\t\n\t\telse if (i4_2 == e.getSource ()){\n\t\t\t네번째_2 = new 메인4_2 ();\n\t\t\t네번째_2.main (null);\n\t\t}\n\t\t\n\t\telse if (i5_1 == e.getSource ()){\n\t\t\t다섯번째 = new 메인5 ();\n\t\t\t다섯번째.main (null);\n\t\t}\n\t\t\n\t\telse if (i6_1 == e.getSource ()){\n\t\t\t여섯번째 = new 메인6 ();\n\t\t}\n\t\t\t\n\t\taddWindowListener (new WindowAdapter () {\n\t public void windowClosing (WindowEvent we) {\n\t dispose ();\n\t }\n\t\t});\n\t}", "String get_MsgFrame(ClientSession csptr) {\n fromID = csptr.getMyID();\n String msgFrame;\n if (mtype == MsgType.GREET) {\n msgFrame = \"\\33[39m[\" + fromID + \"] enters to the Chat.\";\n\n } else if (mtype == MsgType.BYE) {\n msgFrame = \"\\33[39m[\" + fromID + \"] exits from the Chat.\";\n } else if (mtype == MsgType.WHISP) {\n int cur = msgBuffer.indexOf(\" \");\n System.out.println(\"cur: \"+cur);\n msgFrame = csptr.getColorFrame() + \"[DM_\" + fromID + \"] \" + msgBuffer.substring(cur+1);\n } else if (mtype == MsgType.BROAD) {\n msgFrame = csptr.getColorFrame() + \"[\" + fromID + \"] \" + msgBuffer;\n } else {\n msgFrame = \"\";\n }\n return msgFrame;\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t// FireEvent sign = new FireEvent(j);\n\t\t\tSystem.out.println(diceResult + \" a\" + \"a's locaton:\"\n\t\t\t\t\t+ a.getLocation());\n\n\t\t\tif (conPlay % 2 == 0) {\n\t\t\t\tAIplay = false;\n\t\t\t\t// 用了转向卡时\n\t\t\t\tif (a.getDirection() == 1) {\n\t\t\t\t\tif (con2 >= diceResult) {\n\t\t\t\t\t\ttimer2.stop();\n\t\t\t\t\t\ta.setLocation(-diceResult);\n\t\t\t\t\t\tAIFireEvent sign = new AIFireEvent(a.getLocation(), a,\n\t\t\t\t\t\t\t\tb, AIplay);\n\t\t\t\t\t\tSystem.out.println(\"a.Position \" + a.getLocation());\n\t\t\t\t\t\tsign.setVisible(true);\n\t\t\t\t\t\tconPlay++;\n\t\t\t\t\t\tcon2 = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tplayerAIcon.setBounds(p[i_f][0], p[i][1], p[i][2],\n\t\t\t\t\t\t\t\tp[i][3]);\n\t\t\t\t\t\ti_f--;\n\t\t\t\t\t\tif (i_f >= 38)\n\t\t\t\t\t\t\ti_f = i_f % 38;\n\t\t\t\t\t\tif (i_f < 0)\n\t\t\t\t\t\t\ti_f = i_f + 38;\n\t\t\t\t\t\tcon2++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// 没有用转向卡\n\t\t\t\telse {\n\t\t\t\t\tif (con2 >= diceResult) {\n\t\t\t\t\t\ttimer2.stop();\n\t\t\t\t\t\ta.setLocation(diceResult);\n\t\t\t\t\t\tAIFireEvent sign = new AIFireEvent(a.getLocation(), a,\n\t\t\t\t\t\t\t\tb, AIplay);\n\t\t\t\t\t\tSystem.out.println(\"a.Position \" + a.getLocation());\n\t\t\t\t\t\tsign.setVisible(true);\n\t\t\t\t\t\tconPlay++;\n\t\t\t\t\t\tcon2 = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tplayerAIcon.setBounds(p[i][0], p[i][1], p[i][2],\n\t\t\t\t\t\t\t\tp[i][3]);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tif (i >= 38)\n\t\t\t\t\t\t\ti = i % 38;\n\t\t\t\t\t\tcon2++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} // 玩家b的操作\n\t\t\telse {\n\t\t\t\tAIplay = true;\n\t\t\t\t// 没有使用转向卡\n\t\t\t\tif (b.getDirection() == 0) {\n\t\t\t\t\tif (con2 >= diceResult) {\n\t\t\t\t\t\ttimer2.stop();\n\t\t\t\t\t\tb.setLocation(diceResult);\n\t\t\t\t\t\tAIFireEvent sign = new AIFireEvent(\n\t\t\t\t\t\t\t\t(b.getLocation() + 19) % 38, b, a, AIplay);\n\t\t\t\t\t\tSystem.out.println(\"b.Position \"\n\t\t\t\t\t\t\t\t+ (int) ((b.getLocation() + 19)) % 38);\n\t\t\t\t\t\tsign.setVisible(true);\n\t\t\t\t\t\tconPlay++;\n\t\t\t\t\t\tcon2 = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (i2 >= 38)\n\t\t\t\t\t\t\ti2 = i2 % 38;\n\t\t\t\t\t\tplayerBIcon.setBounds(p[i2][0], p[i2][1], p[i2][2],\n\t\t\t\t\t\t\t\tp[i2][3]);\n\t\t\t\t\t\ti2++;\n\t\t\t\t\t\t// if (i2 >= 38)\n\t\t\t\t\t\t// i2 = i2 % 38;\n\t\t\t\t\t\tcon2++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\tif (b.getDirection() == 1) {\n\n\t\t\t\t\tif (con2 >= diceResult) {\n\t\t\t\t\t\ttimer2.stop();\n\t\t\t\t\t\tb.setLocation(-diceResult);\n\t\t\t\t\t\tAIFireEvent sign = new AIFireEvent(\n\t\t\t\t\t\t\t\t(b.getLocation() + 19) % 38, b, a, AIplay);\n\t\t\t\t\t\tSystem.out.println(\"b.Position \"\n\t\t\t\t\t\t\t\t+ (int) ((b.getLocation() + 19)) % 38);\n\t\t\t\t\t\tsign.setVisible(true);\n\t\t\t\t\t\tconPlay++;\n\t\t\t\t\t\tcon2 = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tplayerBIcon.setBounds(p[i2_f][0], p[i2_f][1],\n\t\t\t\t\t\t\t\tp[i2_f][2], p[i2_f][3]);\n\t\t\t\t\t\ti2_f--;\n\t\t\t\t\t\tif (i2_f >= 38)\n\t\t\t\t\t\t\ti2_f = i2_f % 38;\n\t\t\t\t\t\tif (i2_f < 0)\n\t\t\t\t\t\t\ti2_f = i2_f + 38;\n\t\t\t\t\t\tcon2++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void actionPerformed(ActionEvent e) {\r\n String oznam = \"\";\r\n int pozicia;\r\n switch (cisloAkcie(e.getActionCommand())) {\r\n case 1: //------------------------------------- Pridanie zvierata --\r\n Zivocich zviera = vytvorZivocicha();\r\n oznam = (zoo.pridajZivocicha(zviera))\r\n ? \"Vlozeny zivocich: \" + zviera // podarilo sa\r\n : \"ZOO je uz plna!\"; // nepodarilo\r\n break;\r\n case 2: //--------------------------- Generovanie viacero zvierat --\r\n int poc = 5 + generator.nextInt(6);\r\n poc = generujViacZvierat(poc);\r\n oznam = poc > 0 ? \"Bolo pridanych \"+ poc + \" zvierat\"\r\n : \"ZOO je uz plna!\";\r\n break;\r\n case 3: //---------------------------------- Odstranenie zvierata --\r\n pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\") - 1;\r\n oznam = \"Zviera c. \" + (pozicia + 1);\r\n oznam += (zoo.odstranZivocicha(pozicia) != null) \r\n ? \" bolo vymazane\"\r\n : \" nebolo najdene\";\r\n break;\r\n case 5: //------------------------------------ Prepravne vozidlo --\r\n zoo.setPracovneVozidlo();\r\n oznam = \"Kamion bol pristaveny ako pracovne vozidlo\";\r\n break;\r\n case 6: //--------------------------------- Ulozenie ZOO na disk --\r\n try {\r\n Subor.zapisObj(fileName, zoo);\r\n oznam = \"ZOO bolo ulozene na disk do suboru: \" + fileName;\r\n } catch (IOException exIO) {\r\n oznam = \"Chyba pri zapise ZOO na disk\\n\\t\\t\" + exIO;\r\n }\r\n break;\r\n case 7: //---------------------------------- Citanie ZOO z disku --\r\n try {\r\n zoo = (ZOO) Subor.citajObj(fileName);\r\n oznam = \"ZOO bolo precitane z disku\";\r\n } catch (FileNotFoundException exFNF) {\r\n oznam = \"Subor [\" + fileName + \"] som nenasiel\";\r\n } catch (IOException exIO) {\r\n oznam = \"Chyba pri citani ZOO z disku\\n\\t\\t\" + exIO;\r\n } catch (ClassNotFoundException exCNF) {\r\n oznam = \"Chyba pri citani ZOO z disku\\n\\t\\t\" + exCNF;\r\n }\r\n break;\r\n case 8: //------------------------ Nalozenie zvierata na vozidlo --\r\n oznam = nalozZvieraNaVozidlo();\r\n break;\r\n case 9: //-------------------------- Vylozenie zvierata z vozidla --\r\n oznam = vylozZvieraZVozidla();\r\n break;\r\n\r\n default: //------------------------------------ Akcia mimo rozsah --\r\n oznam = \"Tlacitko [\" +e.getActionCommand() + \"] este nenaprogramovane\";\r\n break;\r\n }\r\n\r\n txtaVystupy.setText(zoo.toString()); // info o ZOO\r\n txtaSprava.setText(\"\\t* Sprava *\\t\" + oznam); // sprava o vykonanej akcii\r\n }", "public static String _imglarvas_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 211;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 212;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 213;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 214;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 215;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 216;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 217;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 218;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 219;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 220;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 221;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 222;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 223;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 224;BA.debugLine=\"lblEstadio.Visible = False\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 226;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 227;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 228;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 230;BA.debugLine=\"panelPopUps_2.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_2.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 231;BA.debugLine=\"panelPopUps_2.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_2.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 233;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"\\\"\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 234;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 235;BA.debugLine=\"imgPopUp.RemoveView\";\nmostCurrent._imgpopup.RemoveView();\n //BA.debugLineNum = 236;BA.debugLine=\"imgPopUp.Initialize(\\\"\\\")\";\nmostCurrent._imgpopup.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 237;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets, \\\"mos\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_larvaFoto.png\").getObject()));\n //BA.debugLineNum = 238;BA.debugLine=\"imgPopUp.Gravity = Gravity.FILL\";\nmostCurrent._imgpopup.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.FILL);\n //BA.debugLineNum = 239;BA.debugLine=\"btnCerrarPopUp.RemoveView\";\nmostCurrent._btncerrarpopup.RemoveView();\n //BA.debugLineNum = 240;BA.debugLine=\"btnCerrarPopUp.Initialize(\\\"btnCerrarPopUp_Larvas\\\"\";\nmostCurrent._btncerrarpopup.Initialize(mostCurrent.activityBA,\"btnCerrarPopUp_Larvas\");\n //BA.debugLineNum = 241;BA.debugLine=\"btnCerrarPopUp.Typeface = Typeface.FONTAWESOME\";\nmostCurrent._btncerrarpopup.setTypeface(anywheresoftware.b4a.keywords.Common.Typeface.getFONTAWESOME());\n //BA.debugLineNum = 242;BA.debugLine=\"btnCerrarPopUp.Text = \\\"\\\"\";\nmostCurrent._btncerrarpopup.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 243;BA.debugLine=\"btnCerrarPopUp.TextSize = 30\";\nmostCurrent._btncerrarpopup.setTextSize((float) (30));\n //BA.debugLineNum = 244;BA.debugLine=\"btnCerrarPopUp.Color = Colors.ARGB(150,255,255,25\";\nmostCurrent._btncerrarpopup.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (150),(int) (255),(int) (255),(int) (255)));\n //BA.debugLineNum = 245;BA.debugLine=\"btnCerrarPopUp.TextColor = Colors.ARGB(255,255,11\";\nmostCurrent._btncerrarpopup.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (255),(int) (255),(int) (117),(int) (117)));\n //BA.debugLineNum = 246;BA.debugLine=\"panelPopUps_2.AddView(imgPopUp, 0%x, 0%y, 70%x, 7\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._imgpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 247;BA.debugLine=\"panelPopUps_2.AddView(btnCerrarPopUp, 56%x, 0%y,\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._btncerrarpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (56),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 248;BA.debugLine=\"Activity.AddView(panelPopUps_2, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_2.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 249;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void actionPerformed(ActionEvent e) {\n JButton btnClicked = (JButton)e.getSource();\n \n if(btnClicked.equals(btnBack)){\n System.out.println(\"back\");\n try {\n login= new MainLogin();\n ql= new Frame_NV_Quan_Ly(login);\n GDChonTK = new Frame_Chon_Thong_Ke(ql);\n setVisible(false);\n GDChonTK.setVisible(true);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ThongKeSPFrame.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ThongKeSPFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n if(btnClicked.equals(btnTKe)){\n try {\n btnTKeClick();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ThongKeSPFrame.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ThongKeSPFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n return;\n }\n if(listOtp.size()>0){\n for(int i=0; i<listOtp.size(); i++)\n if(btnClicked.equals(listOtp.get(i))){\n try {\n btnTKeClick(i);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ThongKeSPFrame.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ThongKeSPFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return;\n }\n }\n \n }", "public void mostrarTurnos(String act, String sig);", "public static void main(String[] args) throws IOException, InterruptedException { HttpGet getIndex = new HttpGet(\"http://www.moswar.ru/\");\n//\n// HttpResponse indexResponse = client.execute(getIndex);\n//\n// System.out.println(indexResponse.getStatusLine());\n// System.out.println(indexResponse.toString());\n//\n//\n\n JSONObject data;\n\n login(\"sensej_sanjok@inbox.lv\",\"`1\");\n\n index();\n\n blackJackIndex();\n\n data = newBet(Bet.random());\n\n\n String mySumm = null;\n String myHand = getMyHand(data);\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n String dealerHand = getDealerHand(data);\n\n int i = 0;\n\n all:\n while(i < 100){\n //TODO if \"check\" right or left winner or looser - new game - alternative - check if > 21 then new game\n if (mySumm != null && Integer.parseInt(mySumm) > 17){\n ++i;\n if (Integer.parseInt(mySumm) <= 21)\n endGame(stand());\n else System.out.println(\"Dealer WIN\");\n data = newBet(Bet.random());\n myHand = getMyHand(data);\n mySumm = null;\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n dealerHand = getDealerHand(data);\n }\n else{\n switch (Answer.getTurn(myHand, dealerHand)){\n case \"S\": //STAND\n ++i;\n endGame(stand());\n\n// break all;\n data = newBet(Bet.random());\n myHand = getMyHand(data);\n mySumm = null;\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n dealerHand = getDealerHand(data);\n break;\n case \"H\": //HIT\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n break;\n case \"D\": //DOUBLE\n //TODO check if can double\n if (checkDouble(data)){\n data = doubleBet();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n }else{\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n }\n break;\n case \"P\": //SPLIT\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n break;\n default:\n break;\n }\n\n }\n }\n\n client.getConnectionManager().shutdown();\n out.close();\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (cbbChooseTime.getSelectedIndex() == 0 || dateChooser.getDate() == null) {\n\t\t\t\tJOptionPane.showMessageDialog(getPanel(), \"Hãy đảm bảo đã chọn đủ ngày và giờ.\\n\");\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\t\tif (listButtonYard.get(i).getButton().getText().equals(e.getActionCommand())) {// sân đã được bấm\n\t\t\t\t\t\tif (listButtonYard.get(i).getStatus() == 2) {// nếu sân bị vô hiệu hoá\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(getPanel(), \"Sân tạm thời không phục vụ.\\n\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (listButtonYard.get(i).getStatus() == 0) {// nếu sân vẫn chưa ai đặt thì...\n\t\t\t\t\t\t\t\tFillPhone fillPhone = new FillPhone(listButtonYard.get(i), dateChooser.getDate(),\n\t\t\t\t\t\t\t\t\t\t((Time) cbbChooseTime.getSelectedItem()).getIdTime());\n\t\t\t\t\t\t\t\tfillPhone.setVisible(true);\n\t\t\t\t\t\t\t} else if (listButtonYard.get(i).getStatus() == 1) {\n\t\t\t\t\t\t\t\tint idYard = 0;\n\t\t\t\t\t\t\t\tswitch (e.getActionCommand()) {\n\t\t\t\t\t\t\t\tcase \"Sân 5A\":\n\t\t\t\t\t\t\t\t\tidYard = 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 5B\":\n\t\t\t\t\t\t\t\t\tidYard = 2;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 5C\":\n\t\t\t\t\t\t\t\t\tidYard = 3;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 5D\":\n\t\t\t\t\t\t\t\t\tidYard = 4;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 5E\":\n\t\t\t\t\t\t\t\t\tidYard = 5;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 5F\":\n\t\t\t\t\t\t\t\t\tidYard = 6;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 7A\":\n\t\t\t\t\t\t\t\t\tidYard = 7;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"Sân 7B\":\n\t\t\t\t\t\t\t\t\tidYard = 8;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tOrder order = OrderService.getInstance().getOrderByTime_Date_Yard(\n\t\t\t\t\t\t\t\t\t\t((Time) cbbChooseTime.getSelectedItem()).getIdTime(), idYard,\n\t\t\t\t\t\t\t\t\t\tdateChooser.getDate());\n\t\t\t\t\t\t\t\tint a = JOptionPane.showConfirmDialog(getPanel(), \"Bạn chắc chắn muốn huỷ sân?\\n\"\n\t\t\t\t\t\t\t\t\t\t+ CustomerService.getInstance().checkID(order.getIdCustomer()).toString());\n\t\t\t\t\t\t\t\tif (a == JOptionPane.YES_OPTION) {\n\t\t\t\t\t\t\t\t\tOrderService.getInstance().deleteOrder(order.getIdOrder());\n\t\t\t\t\t\t\t\t\tList<Yard> listYard = YardService.getInstance().getAllYard();\n\t\t\t\t\t\t\t\t\tif(listYard.get(i).getStatus() == 0) {\n\t\t\t\t\t\t\t\t\t\tlistButtonYard.get(i).setStatus(2);//set trạng thái không cho đặt sân\n\t\t\t\t\t\t\t\t\t\tlistButtonYard.get(i).getButton().setBackground(new Color(255,0,0));\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tlistButtonYard.get(i).setStatus(0);\n\t\t\t\t\t\t\t\t\t\tlistButtonYard.get(i).getButton().setBackground(Color.ORANGE);\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}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static String _btnmosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 75;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Mosquito\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Mosquito\",mostCurrent.activityBA);\n //BA.debugLineNum = 76;BA.debugLine=\"scrollExtraMosquito.Panel.LoadLayout(\\\"lay_mosquit\";\nmostCurrent._scrollextramosquito.getPanel().LoadLayout(\"lay_mosquito_Paneles\",mostCurrent.activityBA);\n //BA.debugLineNum = 77;BA.debugLine=\"scrollExtraMosquito.Panel.Width = 600dip\";\nmostCurrent._scrollextramosquito.getPanel().setWidth(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (600)));\n //BA.debugLineNum = 78;BA.debugLine=\"scrollExtraMosquito.FullScroll(True)\";\nmostCurrent._scrollextramosquito.FullScroll(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 79;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPatas, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpatas,anywheresoftware.b4a.keywords.Common.Colors.Yellow);\n //BA.debugLineNum = 80;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butColor, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butcolor,anywheresoftware.b4a.keywords.Common.Colors.Yellow);\n //BA.debugLineNum = 81;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void actionPerformed (ActionEvent e) {\n\t \t\tJOptionPane.showMessageDialog(frame3,\n\t \t\t\t \"Player 1 is blue \\n\"\n\t \t\t\t \t\t+ \"Player 2 is red \\n\"\n\t \t\t\t \t\t+ \"Player 3 is green \\n\"\n\t \t\t\t \t\t+ \"Player 4 is yellow \\n\"\n\t \t\t\t \t\t+ \"A Warrior's token is a circle. Range:1, Move:3\\n\"\n\t \t\t\t \t\t+ \"A Ranger's token is a square. Range:4, Move:5\\n\"\n\t \t\t\t \t\t+ \"A Rogue's token is a triangle. Range:1, Move:6\\n\"\n\t \t\t\t \t\t+ \"A healer's token is a star. Range:3, Move:4\\n\"\n\t \t\t\t \t\t+ \"A Damage Mage's token is a pentagon. Range:3, Move:4\\n\", \n\t \t\t\t \"Key\",\n\t \t\t\t JOptionPane.PLAIN_MESSAGE);\n\t \t}", "private void suarez() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -10;\n\t\tint yInit = 8;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit*selfPerception.getSide().value());\n\t\twhile (commander.isActive()) {\n\t\t\t\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\t//state = State.FOLLOW;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == host) {\n\t\t\tSystem.out.println(\"Någon har klickat på 'Host'\"); //Kommentar för White box-testning - Julian Hultgren\n\t\t\tGameClient gc = new GameClient();\n\t\t\tClientFrame gf = new ClientFrame(gc);\n\t\t\tServerFrame sf = new ServerFrame();\n\t\t\tframe.dispose();\n\t\t}\n\t\tif(e.getSource() == join) {\n\t\t\tSystem.out.println(\"Någon har klickat på 'Join'\"); //Kommentar för White box-testning - Julian Hultgren\n\t\t\tGameClient gc = new GameClient();\n\t\t\tClientFrame gf = new ClientFrame(gc);\n\t\t\tframe.dispose();\n\t\t}\n\t\tif(e.getSource() == quit) {\n\t\t\tSystem.out.println(\"Någon har klickat på 'Quit'\"); //Kommentar för White box-testning - Julian Hultgren\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tif(e.getSource() == help) {\n\t\t\tnew Rules().showRules();\n\t\t}\n\t}", "private void tbupdateActionPerformed(java.awt.event.ActionEvent evt) {\n LayDuLieuTrongMang();\n frame2();\n \n \n }", "public static void setupSouSuoBiaoDiGui(int status,int shenDu,int hang,Vector luJing)\n {\n \n \n \n for(int nextstatusXiaBiao=0;nextstatusXiaBiao<9;nextstatusXiaBiao++)\n {\n Vector[]newluJing=new Vector[9];\n newluJing[nextstatusXiaBiao]=(Vector)(luJing.clone());\n newluJing[nextstatusXiaBiao].add(String.valueOf(nextstatusXiaBiao));\n \n int[]nextStatusArray=(int[])(bianHuanTable.get(status));\n int nextstatus=nextStatusArray[nextstatusXiaBiao];\n //\n //===============================================\n \n if(souSuoBiao[hang][nextstatus].size()==0)\n {\n //souSuoBiao[hang][nextstatus].remove (0);\n souSuoBiao[hang][nextstatus].add(0,String.valueOf(shenDu));\n souSuoBiao[hang][nextstatus].add(1,newluJing[nextstatusXiaBiao]);\n \n \n souSuoBiaoFeiNullGeShu++;\n //MyPrintln.println(\"共计:\"+String.valueOf (souSuoBiaoFeiNullGeShu));\n \n }\n \n else \n {\n //按序放到正确位置\n \n //souSuoBiao[hang][nextstatus].add(String.valueOf(shenDu));\n //souSuoBiao[hang][nextstatus].add(newluJing[nextstatusXiaBiao]);\n ///=======\n int i1 ;\n for(i1=0;i1<souSuoBiao[hang][nextstatus].size();i1+=2)\n {\n String oldshenDu=(String)(souSuoBiao[hang][nextstatus].get(i1));\n if(shenDu<Integer.parseInt(oldshenDu))\n {\n break ;\n }\n }\n //--------\n souSuoBiao[hang][nextstatus].add(i1,String.valueOf(shenDu));\n souSuoBiao[hang][nextstatus].add(i1+1,newluJing[nextstatusXiaBiao]);\n \n //======\n \n \n //oldshenDu.\n }\n \n \n \n }\n //=======================================\n //将调用和条件改变位置到上面,则是深度优先\n //=====================================\n \n shenDu++;\n \n if((souSuoType.compareTo(\"shenDuControlGetAll\")==0&&shenDu<=shenDuControl)\n ||(souSuoType.compareTo(\"short\")==0&&souSuoBiaoHangFull(hang)!=1)\n )\n //if(souSuoBiaoHangFull(hang)!=1)//行满则返回\n //该条件是得到最短路径的方法。只得到一个。如果采用广度优先搜索,那么第一个结果就是需要的结果\n /// if(shenDu<=2)//该条件是得到所有3步内的方法,最短的自动放到最前面\n {\n //int[]nextStatusArray=bianHuanTable.get(status);\n for(int nextstatusXiaBiao=0;nextstatusXiaBiao<9;nextstatusXiaBiao++)\n {\n Vector[]newluJing=new Vector[9];\n newluJing[nextstatusXiaBiao]=(Vector)(luJing.clone());\n newluJing[nextstatusXiaBiao].add(String.valueOf(nextstatusXiaBiao));\n \n int[]nextStatusArray=(int[])(bianHuanTable.get(status));\n int nextstatus=nextStatusArray[nextstatusXiaBiao];\n //===============\n // souSuoBiao[status][nextstatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[status][nextstatus].add(String.valueOf(1));\n //---------------------\n // int[]lastStatusArray=bianHuanTable.get(nextstatus);\n // for(int laststatusXiaBiao=0;laststatusXiaBiao<9;laststatusXiaBiao++)\n // {\n // int laststatus=lastStatusArray[lastXiaBiao];\n //----------\n \n // souSuoBiao[status][laststatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[status][laststatus].add(String.valueOf(laststatusXiaBiao));\n // souSuoBiao[status][laststatus].add((2));\n \n //----------\n //}\n //\n // if(souSuoBiao[hang][nextstatus].size()==0)\n // {\n // souSuoBiao[hang][nextstatus].add(String.valueOf(nextstatusXiaBiao));\n // souSuoBiao[hang][nextstatus].add(String.valueOf(++shenDu));\n // souSuoBiaoFeiNullGeShu++;\n // MyPrintln.println(\"共计:\"+String.valueOf (souSuoBiaoFeiNullGeShu));\n // }\n //\n \n \n setupSouSuoBiaoDiGui(nextstatus,shenDu,hang,newluJing[nextstatusXiaBiao]);\n \n //=====================\n \n }\n }\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject o = e.getSource();\n\t\tif(o.equals(btnSua))\n\t\t{\n\t\t\tif(btnSua.getText().equalsIgnoreCase(\"Sửa\"))\n\t\t\t{\n\t\t\t\tmoikhoatextfield(true);\n\t\t\t\tnaolopkhachhangtrvaotextfield();\n\t\t\t\tmoikhoacontrol(false);\n\t\t\t\tbtnluu.setEnabled(true);\n\t\t\t\tbtnSua.setEnabled(true);\n\t\t\t\tbtnSua.setText(\"Hủy\");\n\t\t\t\ttxtmakhhm.setEditable(false);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(btnSua.getText().equalsIgnoreCase(\"Hủy\"))\n\t\t\t\t{\n\t\t\t\t\tmoikhoacontrol(true);\n\t\t\t\t\tmoikhoatextfield(false);\n\t\t\t\t\tbtnSua.setText(\"Sửa\");\n\t\t\t\t\tbtnluu.setEnabled(false);\n\t\t\t\t\tnaolopkhachhangtrvaotextfield();\n\t\t\t\t\txoatrangactrtion();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(o.equals(btnluu))\n\t\t{\n\t\t\tif(btnSua.getText().equalsIgnoreCase(\"Hủy\"))\n\t\t\t{\n\t\t\t\tint row=table.getSelectedRow();\n\t\t\t\tif(row>=0)\n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(dskhtr.update(txtmakhhm.getText(),jdcNgaytra.getDate(),txtTinhtrang.getText(),txtGhichu.getText())) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttable.setValueAt( ((JTextField)jdcNgaytra.getDateEditor().getUiComponent()).getText(), row,5);\n\t\t\t\t\t\t\ttable.setValueAt(txtTinhtrang.getText(),row,6);\n\t\t\t\t\t\t\ttable.setValueAt(txtGhichu.getText(), row,7);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmoikhoatextfield(false);\n\t\t\t\t\t\t\tmoikhoacontrol(true);\n\t\t\t\t\t\t\tbtnluu.setEnabled(false);\n\t\t\t\t\t\t\tbtnSua.setText(\"Sửa\");\n\t\t\t\t\t\t\txoatrangactrtion();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n//\t\t\t\t\tmoikhoatextfield(false);\n//\t\t\t\t\tmoikhoacontrol(true);\n//\t\t\t\t\tbtnluu.setEnabled(false);\n//\t\t\t\t\tbtnSua.setText(\"Sửa\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}\n\t\telse if(o.equals(btnxoa))\n\t\t{\n\t\t\tint row=table.getSelectedRow();\n\t\t\tif(row>=0)\n\t\t\t{\n\t\t\t\tString makhm=(String) table.getValueAt(row, 0);\n\t\t\t\tint hoinhac=JOptionPane.showConfirmDialog(this,\"Bạn Có Chắc chắn xóa không\",\"chú ý\",JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(hoinhac==JOptionPane.YES_OPTION)\n\t\t\t\t\tif(dskhtr.delete(makhm))\n\t\t\t\t\t{\n\t\t\t\t\t\ttableModel.removeRow(row);\n\t\t\t\t\t\txoatrangactrtion();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(o.equals(btnThoat)) {\n\t\t\tAppThueSach2 atcd2 = new AppThueSach2();\n\t\t\tatcd2.main(null);\n\t\t\tsetVisible(false);\n\t\t}\n\t\tif(o.equals(btnTim))\n\t\t{\n\t\t\ttimkhachhangtra app=new timkhachhangtra();\n\t\t\tapp.main(null);\n\t\t\tsetVisible(false);\n\t\t}\n\t\t\n\t}", "public void NPCCreation(){\r\n\t\t\r\n\t\t//Unicorn\r\n\t\tDialogueManager dialogueManagerUnicorn = new DialogueManager(new DialogueStage(\"Snif snif\"));\r\n\t\tdialogueManagerUnicorn .addDialogueStage(new DialogueStage(\"someone stole my horne\"));\r\n\t\tdialogueManagerUnicorn .addDialogueStage(new DialogueStage(\"I was quietly floundering in the water when a pervert, sadistic and psychopath\\n\"\r\n\t\t\t\t+ \"took my beautiful, sumptuous, flamboyant horn !\"));\r\n\t\tdialogueManagerUnicorn .addDialogueStage(new DialogueStage(\"Please, find it for me !!\"));\r\n\t\tunicornSentences.add(dialogueManagerUnicorn );\r\n\t\tunicorn = new NPC(\"Coro\", \"The castle guardian\", unicornSentences);\r\n\t\t\r\n\t\t//Otis\r\n\t\tDialogueManager dialogueManagerOtis = new DialogueManager(new DialogueStage(\"Snif snif\"));\r\n\t\tdialogueManagerOtis.addDialogueStage(new DialogueStage(\"Mais, vous savez, moi je ne crois pas \\n\"\r\n\t\t\t\t+ \"qu'il y ait de bonne ou de mauvaise situation.\\n\"\r\n\t\t\t\t+ \" Moi, si je devais resumer ma vie aujourd\\'hui \\n\"\r\n\t\t\t\t+ \"avec vous, je dirais que c\\'est d\\'abord des \\n\"\r\n\t\t\t\t+ \"rencontres, des gens qui m\\'ont tendu la main, \\n\"\r\n\t\t\t\t+ \"peut-etre a un moment ou je ne pouvais pas, ou \\n\"\r\n\t\t\t\t+ \"j\\'etais seul chez moi et c\\'est assez curieux \\n\"\r\n\t\t\t\t+ \"de se dire que les hasards, les rencontres forgent \\n\"\r\n\t\t\t\t+ \" une destinee... Parce que quand on a le gout \\n\"\r\n\t\t\t\t+ \"de la chose, quand on a le gout de la chose bien \\n\"\r\n\t\t\t\t+ \"faite, le beau geste, parfois on ne trouve pas \\n\"\r\n\t\t\t\t+ \"l\\'interlocuteur en face, je dirais, le miroir \\n\"\r\n\t\t\t\t+ \"qui vous aide a avancer. Or, ce n\\'est pas mon \\n\"\r\n\t\t\t\t+ \"cas, comme je le disais la, puisque moi au contraire,\\n\"\r\n\t\t\t\t+ \" j\\'ai pu ; et je dis merci a la vie, je lui dis merci,\\n\"\r\n\t\t\t\t+ \" je chante la vie, je danse la vie... Je ne suis qu\\'amour ! \\n\"\r\n\t\t\t\t+ \"Et finalement, quand beaucoup de gens aujourd\\'hui me disent \\n\"\r\n\t\t\t\t+ \"\\\"Mais comment fais-tu pour avoir cette humanite ?\\\",\\n\"\r\n\t\t\t\t+ \" eh ben je leur reponds tres simplement, je leur dis\\n\"\r\n\t\t\t\t+ \" que c\\'est ce gout de l\\'amour, ce gout donc qui\\n\"\r\n\t\t\t\t+ \" m\\'a pousse aujourd\\'hui a entreprendre une\\n\"\r\n\t\t\t\t+ \" construction mecanique, mais demain, qui sait, \\n\"\r\n\t\t\t\t+ \"peut-etre seulement a me mettre au service de la communaute,\\n\"\r\n\t\t\t\t+ \" a faire le don, le don de soi...\"));\r\n\t\totisSentences.add(dialogueManagerOtis);\r\n\t\totis = new NPC(\"Otis\",\" Villager who gives the purpose of the game and the sense of life\", otisSentences);\r\n\t\t\r\n\t\t//In the banquet hall\r\n\t\t\r\n\t\t//Guest\r\n\t\tDialogueManager dialogueManagerGuest = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerGuest.addDialogueStage(new DialogueStage(\"someone stole my horne\"));\r\n\t\tdialogueManagerGuest .addDialogueStage(new DialogueStage(\"I am very honored to see the savior of our dear unicorn!\"));\r\n\t\tdialogueManagerGuest .addDialogueStage(new DialogueStageChoice(\"Do you want to see the queen ?\",new ArrayList<>(Arrays.asList(\"yes\",\"no\")),0));\r\n\r\n\t\tDialogueManager dialogueManagerGuest2 = new DialogueManager(new DialogueStageGiveObject(\"Here i have the 'laisser-passer A38', it can help you in your quest. \\n\"\r\n\t\t\t\t+ \"Good Luck\",new ItemCreation().getA38()));\r\n\t\tguestSentences.add(dialogueManagerGuest);\r\n\t\tguestSentences.add(dialogueManagerGuest2);\r\n\t\tguest = new NPC(\"Coro\", \"The castle guardian\", guestSentences);\r\n\r\n///////************* A REFAIRE *******************\r\n\r\n\t\t//villager 1\r\n\t\tDialogueManager dialogueManagerVillager1 = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerVillager1.addDialogueStage(new DialogueStage(\"Go see my friend Otis in the courtyard, he will gives you the meaning of this game\"));\r\n\t\tvillager1Sentences.add(dialogueManagerVillager1);\r\n\t\tvillager1 = new NPC(\"Edwin\", \"Villager : Lets get the sense of the game\", villager1Sentences);\r\n\r\n\r\n\r\n\t\t//villager 2\r\n\t\tDialogueManager dialogueManagerVillager2 = new DialogueManager(new DialogueStage(\"I saw someone go in the stable,\"));\r\n\t\tdialogueManagerVillager2.addDialogueStage(new DialogueStage(\"I saw someone go in the stable,\\n\"\r\n\t\t\t\t+ \"he seemed hurried \\n\"\r\n\t\t\t\t+ \"and suspect. Have you seen my... \\n\"\r\n\t\t\t\t+ \"spoon ?\"));\r\n\t\tvillager2Sentences.add(dialogueManagerVillager2);\r\n\t\tvillager2 = new NPC(\"Theodore\", \"Villager : Gives an indication of the thief\", villager2Sentences);\r\n\r\n\t\t//villager 3\r\n\t\tDialogueManager dialogueManagerVillager3 = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerVillager3.addDialogueStage(new DialogueStage(\"Such a nice banquet, it is the season of the berries, what to cook...\"));\r\n\t\tvillager3Sentences.add(dialogueManagerVillager3);\r\n\t\tvillager3 = new NPC(\"Brunissen\", \"Villager : Gives a hint for the next steps\", villager3Sentences);\r\n\r\n\t\t//villager 4\r\n\t\tDialogueManager dialogueManagerVillager4 = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerVillager4.addDialogueStage(new DialogueStage(\"I guess the stable is closed. The Queen may have the key\"));\r\n\t\tvillager4Sentences.add(dialogueManagerVillager4);\r\n\t\tvillager4 = new NPC(\"Adelaide\", \"Give an indication for next steps\", villager4Sentences);\r\n\r\n\t\t\r\n\t\t//In the vestibule\r\n\r\n\t\t//guard 1\r\n\t\tDialogueManager dialogueManagerGuard1 = new DialogueManager(new DialogueStage(\"Do you want to see the queen ? \\n\"));\r\n\t\tdialogueManagerGuard1.addDialogueStage(new DialogueStage(\"someone stole my horne\"));\r\n\t\tdialogueManagerGuard1 .addDialogueStage(new DialogueStageChoice(\"Do you have the 'laisser-passer A38' ?\",new ArrayList<>(Arrays.asList(\"yes\",\"no\")),0));\r\n\t\tDialogueManager dialogueManagerGuard12 = new DialogueManager (new DialogueStage(\"Go , but we keep an eye on you !\"));\r\n\t\tDialogueManager dialogueManagerGuard13 = new DialogueManager(new DialogueStageExitJail(\"And you think that we will let you pass without authorization!\\n\"\r\n\t\t\t\t+ \"Go in jail, beggar !\",new Exit(roomCr.getAllRooms().get(6),roomCr.getAllRooms().get(7))));\r\n\t\tguard1Sentences.add(dialogueManagerGuard1);\r\n\t\tguard1Sentences.add(dialogueManagerGuard12);\r\n\t\tguard1Sentences.add(dialogueManagerGuard13);\r\n\t\tguard1 = new NPC(\"Alphonse\", \"Protects the queen from people who bother her\", guard1Sentences);\r\n\r\n\r\n\t\t// guard 2\r\n\t\tDialogueManager dialogueManagerGuard2 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tguard2Sentences.add(dialogueManagerGuard2);\r\n\t\tguard2 = new NPC(\"Amori\", \"Monitors all the actions of passers-by \", guard2Sentences);\r\n\r\n\t\t// guard 3\r\n\t\tDialogueManager dialogueManagerGuard3 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tguard3Sentences.add(dialogueManagerGuard3);\r\n\t\tguard3 = new NPC(\"Amora\", \"Monitors all the actions of passers-by \", guard2Sentences);\r\n\r\n\t\t//guard 4\r\n\t\tDialogueManager dialogueManagerGuard4 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tguard4Sentences.add(dialogueManagerGuard4);\r\n\t\tguard4 = new NPC(\"granola\", \"Monitors all the actions of passers-by \", guard2Sentences);\r\n\r\n\t\t//In the throne hall\r\n\t\tDialogueManager dialogueManagerThroneGuard1 = new DialogueManager(new DialogueStage(\"The murderer, he wanted to kill our queen with raspberry !!\\n\"));\r\n\t\tDialogueManager dialogueManagerThroneGuard12 =new DialogueManager (new DialogueStageExitJail(\"Cassius, send up this man in jail !\",new Exit(roomCr.getAllRooms().get(6),roomCr.getAllRooms().get(7))));\r\n\t\tthroneGuard1Sentences.add(dialogueManagerThroneGuard1);\r\n\t\tthroneGuard1Sentences.add(dialogueManagerThroneGuard12);\r\n\t\tthroneGuard1 = new NPC(\"Boniface\", \"Be careful of what you do ...\", throneGuard1Sentences);\r\n\r\n\t\t//throneGuard 2\r\n\t\tDialogueManager dialogueManagerThroneGuard2 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tthroneGuard2Sentences.add(dialogueManagerThroneGuard2);\r\n\t\tthroneGuard2 = new NPC(\"Cassius\", \"Monitors all the actions of passers-by \", throneGuard2Sentences);\r\n\r\n\r\n\t\t//queenCounsel\r\n\t\tDialogueManager dialogueManagerCounsel1 = new DialogueManager(new DialogueStage(\"The queen is very hungry, she will not talk so much without \\n\"\r\n\t\t\t\t+ \"her favorite cake\"));\r\n\t\tDialogueManager dialogueManagerCounsel2 = new DialogueManager(new DialogueStage(\"Very disturbing events are taking place in the kingdom. \\n\"\r\n\t\t\t\t+ \"Only the unicorn can save us ! \"));\r\n\t\tqueenCounselSentences.add(dialogueManagerCounsel1);\r\n\t\tqueenCounselSentences.add(dialogueManagerCounsel2);\r\n\t\tqueenCounsel = new NPC(\"Bertille\", \"She advises on what the queen likes eat\", queenCounselSentences);\r\n\r\n\t\t//Queen\r\n\t\tDialogueManager dialogueManagerQueen1 = new DialogueManager(new DialogueStage(\"I love blueberries\"));\r\n\t\tDialogueManager dialogueManagerQueen2 = new DialogueManager(new DialogueStage(\"No, no !! How dare you !\\n\"\r\n\t\t\t\t+ \"Are you not tired of giving me raspberry \\n\"\r\n\t\t\t\t+ \"I can not bear that name! \\n\"\r\n\t\t\t\t+ \"I will show you how a queen dies,\\n\"\r\n\t\t\t\t+ \"I will show you the direction of the JAIL\"));\r\n\t\tDialogueManager dialogueManagerQueen3 = new DialogueManager(new DialogueStage(\"OOOOh a blueberries cake, my favorite flavour ! \\n\"\r\n\t\t\t\t+ \"Take ,brave knight, the key of the stable. \\n\"\r\n\t\t\t\t+ \"But quickly, the thief is leaving !\"));\r\n\t\tqueenSentences.add(dialogueManagerQueen1);\r\n\t\tqueenSentences.add(dialogueManagerQueen2);\r\n\t\tqueenSentences.add(dialogueManagerQueen3);\r\n\t\tqueen = new NPC(\"Bertille\", \"She advises on what the queen likes eat\", queenSentences);\r\n\r\n\t\t//kitchenHelp\r\n\t\tDialogueManager dialogueManagerKitchenHelp1= new DialogueManager(new DialogueStage(\"You have nothing to do here ! Get out\"));\r\n\t\tDialogueManager dialogueManagerKitchenHelp2= new DialogueManager(new DialogueStage(\"Do you want a cake for the queen ? \\n\"\r\n\t\t\t\t+ \"I need : eggs, flour, raspberries, sugar, white chocolate\"));\r\n\t\tDialogueManager dialogueManagerKitchenHelp3= new DialogueManager(new DialogueStage(\"Ah finally someone helpful in this kitchen ! \\n\"\r\n\t\t\t\t+ \"Here is the muffin of the queen !\"));\r\n\t\tkitchenHelpSentences.add(dialogueManagerKitchenHelp1);\r\n\t\tkitchenHelpSentences.add(dialogueManagerKitchenHelp2);\r\n\t\tkitchenHelpSentences.add(dialogueManagerKitchenHelp3);\r\n\t\tkitchenHelp = new NPC(\"Linguini\", \"He is a kitchen helper\", kitchenHelpSentences);\r\n\r\n\t\t//kitchenChef\r\n\t\tDialogueManager dialogueManagerKitchenChef1= new DialogueManager(new DialogueStage(\"You have nothing to do here ! Get out\"));\r\n\t\tDialogueManager dialogueManagerKitchenChef2= new DialogueManager(new DialogueStage(\"Do you want a cake for the queen ? \\n\"\r\n\t\t\t\t+ \"I need : eggs, flour, blueberries, sugar, white chocolate\"));\r\n\t\tDialogueManager dialogueManagerKitchenChef3= new DialogueManager(new DialogueStage(\"Ah finally someone helpful in this kitchen ! \\n\"\r\n\t\t\t\t+ \"Here is the muffin of the queen !\"));\r\n\t\tkitchenChefSentences.add(dialogueManagerKitchenChef1);\r\n\t\tkitchenChefSentences.add(dialogueManagerKitchenChef2);\r\n\t\tkitchenChefSentences.add(dialogueManagerKitchenChef3);\r\n\t\tkitchenChef = new NPC(\"Gusto\", \"He is a kitchen chef\", kitchenChefSentences);\r\n\r\n\t\t//saucier\r\n\t\tDialogueManager dialogueManagerSaucier1= new DialogueManager(new DialogueStage(\"You have nothing to do here ! Get out\"));\r\n\t\tDialogueManager dialogueManagerSaucier2= new DialogueManager(new DialogueStage(\"What do you want? \\n\"\r\n\t\t\t\t+ \"Do I look like someone who makes cakes ? \\n\"\r\n\t\t\t\t+ \"I am a 'saucier' chef, I'm the one who takes care of sauces.\\n\"\r\n\t\t\t\t+ \"Do I look like someone who makes muffins ? \\n\"\r\n\t\t\t\t+ \"Nobody respects people like me ...\\n\"\r\n\t\t\t\t+ \"I am the best saucier ever !!\"));\r\n\t\tsaucierSentences.add(dialogueManagerSaucier1);\r\n\t\tsaucierSentences.add(dialogueManagerSaucier2);\r\n\t\tkitchenHelp = new NPC(\"Linguini\", \"He is a kitchen helper\", saucierSentences);\r\n\r\n\t\t//thief\r\n\t\tDialogueManager dialogueManagerThief1= new DialogueManager(new DialogueStage(\"Do you want to get back your corn ? \\n \"\r\n\t\t\t\t+ \"come with me they are totally crazy in this castle \\n\"\r\n\t\t\t\t+ \"I will give a lot of money with this corn \\n\"\r\n\t\t\t\t+ \"people loves corns of unicorn\"));\r\n\t\tdialogueManagerThief1 .addDialogueStage(new DialogueStageChoice(\"So you come with me to live a king's life, or you stay here in a crap life ?\",new ArrayList<>(Arrays.asList(\"yes\",\"no\")),0));\r\n\t\tDialogueManager dialogueManagerThief2= new DialogueManager(new DialogueStage(\"come on bro ! on horseback !\"));\r\n\t\tDialogueManager dialogueManagerThief3= new DialogueManager(new DialogueStage(\"Stop it ! take your stupid corn and get out of my sight\"));\r\n\t\tthiefSentences.add(dialogueManagerThief1);\r\n\t\tthiefSentences.add(dialogueManagerThief2);\r\n\t\tthiefSentences.add(dialogueManagerThief3);\r\n\t\tthief = new NPC(\"Gusto\", \"He is a kitchen chef\", thiefSentences);\r\n\r\n\t\t//blueberryChest\r\n\t\tDialogueManager dialogueManagerBlueberryChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"As soon as I am called, I do not exist anymore. Who am I ?\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerBlueberryChest2= new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerBlueberryChest3= new DialogueManager (new DialogueStageGiveObject(\"Congratulations, take the bluberries !\",new ItemCreation().getBlueberry()));\r\n\t\tblueberryChestSentences.add(dialogueManagerBlueberryChest1);\r\n\t\tblueberryChestSentences.add(dialogueManagerBlueberryChest2);\r\n\t\tblueberryChestSentences.add(dialogueManagerBlueberryChest3);\r\n\t\tblueberryChest = new NPC(\"Coffre 1\", \"locked chest\", blueberryChestSentences);\r\n\r\n\t\t//raspberryChest\r\n\t\tDialogueManager dialogueManagerRaspberryChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"What is this thing that lengthens in the hands,\\n\"\r\n\t\t\t\t+ \" When it is passed between the breasts and when it is inserted into a slot?\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerRaspberryChest2= new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerRaspberryChest3= new DialogueManager (new DialogueStageGiveObject(\"Congratulations, take the raspberries !\",new ItemCreation().getRaspberry()));\r\n\t\traspberryChestSentences.add(dialogueManagerRaspberryChest1);\r\n\t\traspberryChestSentences.add(dialogueManagerRaspberryChest2);\r\n\t\traspberryChestSentences.add(dialogueManagerRaspberryChest3);\r\n\t\traspberryChest = new NPC(\"Coffre 2\", \"locked chest\", raspberryChestSentences);\r\n\r\n\r\n\t\tDialogueManager dialogueManagerEmptyChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"Find what it may be : \\n\"\r\n\t\t\t\t+ \"It is better than god \\n\"\r\n\t\t\t\t+ \"It is worst than devil\\n\"\r\n\t\t\t\t+ \"Poor people have it.\\n\"\r\n\t\t\t\t+ \"Rich people needs it\\n\"\r\n\t\t\t\t+ \"If we eat it, we die .\\n\"\r\n\t\t\t\t+ \"It is faster than the light\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerEmptyChest2 = new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerEmptyChest3 = new DialogueManager(new DialogueStage(\"Congratulation, you get the solution\"));\r\n\t\temptyChestSentences.add(dialogueManagerEmptyChest1);\r\n\t\temptyChestSentences.add(dialogueManagerEmptyChest2);\r\n\t\temptyChestSentences.add(dialogueManagerEmptyChest3);\r\n\t\temptyChest = new NPC(\"Coffre 3\", \"locked chest\", emptyChestSentences);\r\n\r\n\t\tDialogueManager dialogueManagerwhiteChocolateChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"The bigger I am, the less you see me. Who am I ?\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerwhiteChocolateChest2 = new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerwhiteChocolateChest3 = new DialogueManager(new DialogueStageGiveObject(\"Congratulation, take the white chocolate\",new ItemCreation().getWhiteChocolate()));\r\n\t\twhiteChocolateChestSentences.add(dialogueManagerwhiteChocolateChest1);\r\n\t\twhiteChocolateChestSentences.add(dialogueManagerwhiteChocolateChest2);\r\n\t\twhiteChocolateChestSentences.add(dialogueManagerwhiteChocolateChest3);\r\n\t\twhiteChocolateChest = new NPC(\"Coffre 4\", \"locked chest\", whiteChocolateChestSentences);\r\n\t\t}", "public void _WWWFORMB() {\n if (mOp.Equal(m$.var(\"YBUTT\").get(),\"\")) {\n return;\n }\n //<< NEW YPRINT,YQ,YTARGET,blnButtons,newForm,strPic,idType,oldYBACK,idYLFN\n mVar YPRINT = m$.var(\"YPRINT\");\n mVar YQ = m$.var(\"YQ\");\n mVar YTARGET = m$.var(\"YTARGET\");\n mVar blnButtons = m$.var(\"blnButtons\");\n mVar newForm = m$.var(\"newForm\");\n mVar strPic = m$.var(\"strPic\");\n mVar idType = m$.var(\"idType\");\n mVar oldYBACK = m$.var(\"oldYBACK\");\n mVar idYLFN = m$.var(\"idYLFN\");\n m$.newVar(YPRINT,YQ,YTARGET,blnButtons,newForm,strPic,idType,oldYBACK,idYLFN);\n //<< \n //<< set blnButtons = $$$WWW120PicturesAsButtons($get(YVOR))\n blnButtons.set(include.WWWConst.$$$WWW120PicturesAsButtons(m$,m$.Fnc.$get(m$.var(\"YVOR\"))));\n //<< set idYLFN = $get(YLFN)\n idYLFN.set(m$.Fnc.$get(m$.var(\"YLFN\")));\n //<< \n //<< ;IF YBEDBER=1 WRITE YCR,YCR,\"<!-- ************************* EXTRA BUTTON (WWWFORMB) ************************* -->\",YCR,YCR\n //<< \n //<< SET YBUTT=$TRANSLATE(YBUTT,\";\",\",\")\n mVar YBUTT = m$.var(\"YBUTT\");\n YBUTT.set(m$.Fnc.$translate(m$.var(\"YBUTT\").get(),\";\",\",\"));\n //<< \n //<< ;---------------------------------------\n //<< ; YA = Button Record\n //<< ; YVOR = Form Definition\n //<< ;---------------------------------------\n //<< \n //<< set oldYBACK = YBACK\n oldYBACK.set(m$.var(\"YBACK\").get());\n //<< \n //<< for YI=1:1 {\n mVar YI = m$.var(\"YI\");\n for (YI.set(1);(true);YI.set(mOp.Add(YI.get(),1))) {\n //<< quit:$PIECE(YBUTT,\",\",YI)=\"\"\n if (mOp.Equal(m$.Fnc.$piece(YBUTT.get(),\",\",YI.get()),\"\")) {\n break;\n }\n //<< \n //<< set YLFN = $piece(YBUTT,\",\",YI) ;NÄCHSTER BUTTEN\n mVar YLFN = m$.var(\"YLFN\");\n YLFN.set(m$.Fnc.$piece(YBUTT.get(),\",\",YI.get()));\n //<< set YA = $get(^WWW124(0,YFORM,SPRACHE,YLFN,1))\n mVar YA = m$.var(\"YA\");\n YA.set(m$.Fnc.$get(m$.var(\"^WWW124\",0,m$.var(\"YFORM\").get(),m$.var(\"SPRACHE\").get(),YLFN.get(),1)));\n //<< continue:YA=\"\"\n if (mOp.Equal(YA.get(),\"\")) {\n continue;\n }\n //<< \n //<< set YBACK = oldYBACK\n mVar YBACK = m$.var(\"YBACK\");\n YBACK.set(oldYBACK.get());\n //<< if $EXTRACT($$$WWW124TargetFrameName(YA))=\"@\" set YBACK=\"\" ;TYBD;OHNE YBACK ;without\n if (mOp.Equal(m$.Fnc.$extract(include.WWWConst.$$$WWW124TargetFrameName(m$,YA)),\"@\")) {\n YBACK.set(\"\");\n }\n //<< \n //<< set strPic = $$$WWW124PictureFileOnButton(YA)\n strPic.set(include.WWWConst.$$$WWW124PictureFileOnButton(m$,YA));\n //<< if blnButtons && (strPic=\"\") {\n if (mOp.Logical(blnButtons.get()) && (mOp.Equal(strPic.get(),\"\"))) {\n //<< set strPic = $zconvert($extract($$^WWWUMLAU($$$WWW124ButtonDescription(YA),3)),\"L\")\n strPic.set(m$.Fnc.$zconvert(m$.Fnc.$extract(m$.fnc$(\"WWWUMLAU.main\",include.WWWConst.$$$WWW124ButtonDescription(m$,YA),3)),\"L\"));\n //<< if '$find(\"abcdefghijklmnopqrstuvwxyzöäüß@?1234567890\",strPic) SET strPic=\"x\"\n if (mOp.Not(m$.Fnc.$find(\"abcdefghijklmnopqrstuvwxyzöäüß@?1234567890\",strPic.get()))) {\n strPic.set(\"x\");\n }\n //<< set strPic = strPic_\".gif\" ;KEIN BUTTON ABER BUTTON ;no yet\n strPic.set(mOp.Concat(strPic.get(),\".gif\"));\n }\n //<< }\n //<< \n //<< set newForm = $$$WWW124NewFormOnClick(YA)\n newForm.set(include.WWWConst.$$$WWW124NewFormOnClick(m$,YA));\n //<< continue:$$Disabled(newForm,blnButtons,strPic,1,\"\",\"\",idYLFN) ;BR014409\n if (mOp.Logical(m$.fnc$(\"Disabled\",newForm.get(),blnButtons.get(),strPic.get(),1,\"\",\"\",idYLFN.get()))) {\n continue;\n }\n //<< continue:$$^WWWACCESS($$$WWW124Authorization1(YA),$$$WWW124Module1(YA))'=1 ;KEIN ZUGANG ;no\n if (mOp.NotEqual(m$.fnc$(\"WWWACCESS.main\",include.WWWConst.$$$WWW124Authorization1(m$,YA),include.WWWConst.$$$WWW124Module1(m$,YA)),1)) {\n continue;\n }\n //<< continue:$$DontShow()\n if (mOp.Logical(m$.fnc$(\"DontShow\"))) {\n continue;\n }\n //<< \n //<< if $$$WWW124AutomaticSUBMIT(YA) &&\n //<< (newForm'=\"\") &&\n //<< ($$$WWW124HyperEventOnClick(YA)'=\"\") &&\n //<< ($$$WWW124ExecuteOnClick(YA)=\"\") {\n if (mOp.Logical(include.WWWConst.$$$WWW124AutomaticSUBMIT(m$,YA)) && (mOp.NotEqual(newForm.get(),\"\")) && (mOp.NotEqual(include.WWWConst.$$$WWW124HyperEventOnClick(m$,YA),\"\")) && (mOp.Equal(include.WWWConst.$$$WWW124ExecuteOnClick(m$,YA),\"\"))) {\n //<< \n //<< set $$$WWW124ExecuteOnClick(YA)=\"SUBMIT\" ;AUTOSUBMIT\n include.WWWConst.$$$WWW124ExecuteOnClickSet(m$,YA,\"SUBMIT\");\n }\n //<< }\n //<< set YPRINT=\"\"\n YPRINT.set(\"\");\n //<< if $$$WWW124OutputWithWindowprint(YA)=$$$YES set YPRINT=$$$YES ;ZIEL DRUCKEN ;target print\n if (mOp.Equal(include.WWWConst.$$$WWW124OutputWithWindowprint(m$,YA),include.COMSYS.$$$YES(m$))) {\n YPRINT.set(include.COMSYS.$$$YES(m$));\n }\n //<< \n //<< set YTARGETF = $$$WWW124TargetFrameName(YA)\n mVar YTARGETF = m$.var(\"YTARGETF\");\n YTARGETF.set(include.WWWConst.$$$WWW124TargetFrameName(m$,YA));\n //<< if $extract(YTARGETF)=\"@\" set YTARGETF = @$extract(YTARGETF,2,99) ;FIS;26.09.03;ZIELTARGET AUS PARAMETER ;out of parameter\n if (mOp.Equal(m$.Fnc.$extract(YTARGETF.get()),\"@\")) {\n YTARGETF.set(m$.indirectVar(m$.Fnc.$extract(YTARGETF.get(),2,99)).get());\n }\n //<< set YTARGET = YTARGETF\n YTARGET.set(YTARGETF.get());\n //<< if $get(YVOR1)'=\"\" set YTARGET = $piece($$$WWW012TargetFrameName(YVOR1),\"/\",1)_YUSER\n if (mOp.NotEqual(m$.Fnc.$get(m$.var(\"YVOR1\")),\"\")) {\n YTARGET.set(mOp.Concat(m$.Fnc.$piece(include.WWWConst.$$$WWW012TargetFrameName(m$,m$.var(\"YVOR1\")),\"/\",1),m$.var(\"YUSER\").get()));\n }\n //<< \n //<< set YCONF1=\"\" ;VOR URL ;pre- URL\n mVar YCONF1 = m$.var(\"YCONF1\");\n YCONF1.set(\"\");\n //<< set YCONF2=\"\"\n mVar YCONF2 = m$.var(\"YCONF2\");\n YCONF2.set(\"\");\n //<< if $$$WWW124AcknowledgementTextBefore(YA)'=\"\" { ; FIXME : Internationalise\n if (mOp.NotEqual(include.WWWConst.$$$WWW124AcknowledgementTextBefore(m$,YA),\"\")) {\n //<< set YCONF1 = \"if (confirm('\"_$TRANSLATE($$$WWW124AcknowledgementTextBefore(YA),\"'\"\"\",\"´´\")_\"')) {\" ;FIS;31.01.05\n YCONF1.set(mOp.Concat(mOp.Concat(\"if (confirm('\",m$.Fnc.$translate(include.WWWConst.$$$WWW124AcknowledgementTextBefore(m$,YA),\"'\\\"\",\"´´\")),\"')) {\"));\n //<< set YCONF2 = \"}\"\n YCONF2.set(\"}\");\n }\n //<< }\n //<< \n //<< ;-----------------------------------\n //<< ; *** EXECUTE # ***\n //<< ;-----------------------------------\n //<< \n //<< if $$$WWW124SearchFunctionOnClick(YA)'=\"\" {\n if (mOp.NotEqual(include.WWWConst.$$$WWW124SearchFunctionOnClick(m$,YA),\"\")) {\n //<< set $$$WWW124DoNotPrepareHTML(YA)=0\n include.WWWConst.$$$WWW124DoNotPrepareHTMLSet(m$,YA,0);\n //<< set idType = $case(YART,\"M\":3,\"D\":2,\"P\":1,:\"\")\n idType.set(m$.Fnc.$case(m$.var(\"YART\").get(),\"M\",3,\"D\",2,\"P\",1,\"\"));\n //<< if idType'=\"\" {\n if (mOp.NotEqual(idType.get(),\"\")) {\n //<< set $$$WWW124ExecuteOnClick(YA) = \"D ^WWWSBU(\"_idType_\")\"\n include.WWWConst.$$$WWW124ExecuteOnClickSet(m$,YA,mOp.Concat(mOp.Concat(\"D ^WWWSBU(\",idType.get()),\")\"));\n }\n }\n //<< }\n //<< }\n //<< \n //<< if $$$WWW124HyperEventOnClick(YA)'=\"\" {\n if (mOp.NotEqual(include.WWWConst.$$$WWW124HyperEventOnClick(m$,YA),\"\")) {\n //<< do HYPER\n m$.Cmd.Do(\"HYPER\");\n }\n //<< \n //<< } elseif $$$WWW124ExecuteForManualLink(YA)'=\"\" {\n else if (mOp.NotEqual(include.WWWConst.$$$WWW124ExecuteForManualLink(m$,YA),\"\")) {\n //<< do MANU\n m$.Cmd.Do(\"MANU\");\n }\n //<< \n //<< } elseif $$$WWW124ChangeoversWithOnClick(YA)'=\"\" {\n else if (mOp.NotEqual(include.WWWConst.$$$WWW124ChangeoversWithOnClick(m$,YA),\"\")) {\n //<< do SEITE\n m$.Cmd.Do(\"SEITE\");\n }\n //<< \n //<< } else {\n else {\n //<< if $$$WWW124QueryOnClick(YA)'=\"\" set $$$WWW124ExecuteOnClick(YA)=\"QUERY,\"_$$$WWW124QueryOnClick(YA) ;QUERY AUFRUFEN\n if (mOp.NotEqual(include.WWWConst.$$$WWW124QueryOnClick(m$,YA),\"\")) {\n include.WWWConst.$$$WWW124ExecuteOnClickSet(m$,YA,mOp.Concat(\"QUERY,\",include.WWWConst.$$$WWW124QueryOnClick(m$,YA)));\n }\n //<< \n //<< if newForm'=\"\" {\n if (mOp.NotEqual(newForm.get(),\"\")) {\n //<< do NORM\n m$.Cmd.Do(\"NORM\");\n }\n //<< \n //<< } elseif ($$$WWW124ExecuteOnClick(YA)'=\"\") || ($$$WWW124FunctionJavaScriptOnClick(YA)'=\"\") {\n else if ((mOp.NotEqual(include.WWWConst.$$$WWW124ExecuteOnClick(m$,YA),\"\")) || (mOp.NotEqual(include.WWWConst.$$$WWW124FunctionJavaScriptOnClick(m$,YA),\"\"))) {\n //<< write \"<TD ALIGN='ABSTOP'>\" ;BR014771\n m$.Cmd.Write(\"<TD ALIGN='ABSTOP'>\");\n //<< do EXEC\n m$.Cmd.Do(\"EXEC\");\n //<< write \"</TD>\" ;BR014771\n m$.Cmd.Write(\"</TD>\");\n }\n //<< \n //<< } elseif $$$WWW124LinkWithexeOrHttp(YA)'=\"\" {\n else if (mOp.NotEqual(include.WWWConst.$$$WWW124LinkWithexeOrHttp(m$,YA),\"\")) {\n //<< do VERKN\n m$.Cmd.Do(\"VERKN\");\n }\n }\n }\n //<< }\n //<< }\n //<< }\n //<< \n //<< set YLFN=idYLFN ;BR014409\n mVar YLFN = m$.var(\"YLFN\");\n YLFN.set(idYLFN.get());\n //<< \n //<< QUIT\n return;\n }", "public boolean action(Event e, Object o){\n \n \n if(e.target==guardar){\n RandomAccessFile archi;\n \n try {\n \n File ff = new File (\"Notas.dat\"); \n \n if (ff.exists()== false){\n \n archi = new RandomAccessFile(\"Notas.dat\",\"rw\");\n \n }\n else{\n archi = new RandomAccessFile(\"Notas.dat\",\"rw\");\n archi.seek(archi.length());\n \n }\n \n String code = caja1.getText();\n int L1 = code.length();\n byte [ ]x1 = new byte [5];\n code.getBytes(0,L1,x1,0);\n \n String name = caja2.getText();\n int L2 = name.length();\n byte [ ]x2 = new byte [10];\n name.getBytes(0,L2,x2,0);\n \n int tipo=Integer.parseInt(caja3.getText());\n String pc=\"\";\n \n if (tipo==1) {\n pc=\"Computadores\";\n }else{\n if (tipo==2) {\n pc=\"Audiovisuales\";\n }else{\n if (tipo==3) {\n pc=\"Moviles\";\n }else{\n pc=\"No valido\";\n }\n }\n }\n \n int L3 = pc.length();\n byte [ ]x3 = new byte [13];\n pc.getBytes(0,L3,x3,0);\n \n \n archi.write(x1,0,5);\n archi.write(x2,0,10);\n archi.write(x3,0,13);\n \n caja1.setText(\"\");\n caja2.setText(\"\");\n caja3.setText(\"\");\n \n archi.close();\n return true;\n }//\n catch(IOException q){\n }\n \n return true;\n \n }\n if(e.target==buscar){ //Para mostrar los Datos y/o Resultados\n RandomAccessFile archi;\n try{\n \n archi = new RandomAccessFile(\"Notas.dat\",\"rw\");\n \n byte []h1 = new byte[5];\n byte []h2= new byte[10];\n byte []h3 = new byte[13];\n Datos.setText(\"\");\n \n archi.length();\n Datos.appendText(\" \"+\" ID dispositivo \"+\" Nombre del Dispositivo \"+\" Tipo de Dispositivo \"+\"\\n\");\n for(int i=0; i<archi.length()/28;i++){\n archi.seek(28*i);\n \n archi.read(h1,0,5);\n String id =new String(h1);\n \n archi.read(h2,0,10);\n String Name = new String(h2);\n \n archi.read(h3,0,13);\n String TP = new String(h3);\n \n Datos.appendText(\" \"+id);\n Datos.appendText(\" \"+Name);\n Datos.appendText(\" \"+TP);\n Datos.appendText(\"\\n\");\n }\n \n \n \n }\n catch(IOException q){}\n return true;\n }\n \n \n if(e.target==Limpiar){\n Datos.setText(\"\");\n return true;\n }\n return true;\n //Cierre del Public...\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n String matriz = \"ABCDEFGHIJLMNOPQRSTUVWXYZ\";\n Ejercicio1 c = new Ejercicio1();\n String retorno;\n String mensaje = JOptionPane.showInputDialog(\"Digite el mensaje\");\n// Convierte el mensaje a mayusculas\n mensaje = mensaje.toUpperCase();\n c.llenaMatriz(matriz);\n retorno = c.aTap(mensaje);\n JOptionPane.showMessageDialog(null, retorno);\n\n //Fin de la Primera parte del examen\n /*\n Inicio de la Segunda parte del examen\n */\n /*\n String[] lista = {\" auto \", \" pato \", \" palo \", \" poto \", \" amar \", \" amor \",\n \" loca \", \" loco \", \" polo \", \" poco \", \" poca \", \" rota \", \" roto \"};\n AdminPalabras admin = new AdminPalabras( lista );\n String[] letras = {\" escalopa \", \" automotor\", \" percatado\"};\n for(int i = 0; i < letras . length ; i ++) {\n int cont = admin .ContarPalabrasPosibles(letras [i ]);\n JOptionPane.showMessageDialog(null,letras [i] + \": \" + cont );\n }*/\n //Fin de la Segunda parte del Examen\n }", "public void actionPerformed (ActionEvent e) {\n \t\tJOptionPane.showMessageDialog(frame3,\n \t\t\t \"Player 1 is blue \\n\"\n \t\t\t \t\t+ \"Player 2 is red \\n\"\n \t\t\t \t\t+ \"Player 3 is green \\n\"\n \t\t\t \t\t+ \"Player 4 is yellow \\n\"\n \t\t\t \t\t+ \"A Warrior's token is a circle. Range:1, Move:3\\n\"\n \t\t\t \t\t+ \"A Ranger's token is a square. Range:4, Move:5\\n\"\n \t\t\t \t\t+ \"A Rogue's token is a triangle. Range:1, Move:6\\n\"\n \t\t\t \t\t+ \"A healer's token is a star. Range:3, Move:4\\n\"\n \t\t\t \t\t+ \"A Damage Mage's token is a pentagon. Range:3, Move:4\\n\", \n \t\t\t \"Key\",\n \t\t\t JOptionPane.PLAIN_MESSAGE);\n \t}", "public void cbDBGet()\n {\n if (!m_white.wasSuccess())\n return;\n \n String str = m_white.getResponse(); \n String cleaned = StringUtils.cleanWhiteSpace(str.trim());\n \n \tString[] pts = cleaned.split(\" \");\n \n HexColor winner = HexColor.get(pts[0].trim());\n m_statusbar.setMessage(winner + \" wins in \" + pts[1]);\n \n m_guiboard.clearMarks();\n \n Vector<HexPoint> proofset = new Vector<HexPoint>();\n \n int state = 0; \n \tfor (int i=2; i<pts.length; ++i) {\n if (pts[i].equals(\"Winning\")) {\n state = 1;\n continue;\n } else if (pts[i].equals(\"Losing\")) {\n state = 2;\n continue;\n }\n \t HexPoint point = HexPoint.get(pts[i].trim());\n \n if (state == 0) { // part of the proof\n proofset.add(point);\n if (m_guiboard.getColor(point) == HexColor.EMPTY)\n m_guiboard.setAlphaColor(point, Color.green);\n else\n m_guiboard.setAlphaColor(point, Color.red);\n } else if (state == 1) { // winning move\n m_guiboard.setText(point, pts[++i]);\n Color old = m_guiboard.getAlphaColor(point);\n \n // cyan if inside proof, magenta if outside; but that\n // probably cannot happen.\n if (proofset.contains(point))\n m_guiboard.setAlphaColor(point, Color.cyan);\n else \n m_guiboard.setAlphaColor(point, Color.magenta); \n \n } else if (state == 2) { // losing move\n \n // green if inside the proof, otherwise no color\n m_guiboard.setText(point, pts[++i]);\n }\n \t}\n \n \tm_guiboard.repaint();\n }", "public String thuchienAction(){\n\t\tXuatReport();\n\t\tresetFormB4135=null;\n\t\treturn \"B4160_Chonmenuxuattaptin\";\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\thid();\n\t\t\t\tfinal JDialog jDialog=new JDialog();\n\t\t\t\tjDialog.setTitle(\"修改选中书架\");\n\t\t\t\tjDialog.setLayout(null);\n\t\t\t\tjDialog.setSize(300, 220);\n\t\t\t\tJLabel ojJLabel=new JLabel(\"原书架名 \"+nodeText);\n\t\t\t\tojJLabel.setBounds(50, 30, 200, 20);\n\t\t\t\tJLabel jLabel=new JLabel(\"新书架名\");\n\t\t\t\tjLabel.setBounds(50, 70, 80, 20);\n\t\t\t\tfinal JTextArea jTextArea=new JTextArea();\n\t\t\t\tjTextArea.setBounds(120, 70, 100, 20);\n\t\t\t\tjTextArea.setBorder(BorderFactory.createMatteBorder (1,1,1,1, Color.gray));\n\t\t\t\tJButton confirm=new JButton(\"确认\");\n\t\t\t\tconfirm.setBounds(50, 120, 80, 20);\n\t\t\t\tJButton cancel=new JButton(\"取消\");\n\t\t\t\tcancel.setBounds(150, 120, 80, 20);\n\t\t\t\tjDialog.add(jTextArea);\n\t\t\t\tjDialog.add(jLabel);\n\t\t\t\tjDialog.add(ojJLabel);\n\t\t\t\tjDialog.add(confirm);\n\t\t\t\tjDialog.add(cancel);\n\t\t\t\tjDialog.setVisible(true);\n\t\t\t\tjDialog.setAlwaysOnTop(true);\n\t\t\t\tconfirm.addActionListener(new ActionListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t\tEditOnlineShelf editOnlineShelf=new EditOnlineShelf(nodeText,jTextArea.getText());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tcancel.addActionListener(new ActionListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void matchFrame();", "public void spustPosluchace() {\n newGameButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent arg0) {\n\n // posli komunikaci at zalozi hru\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }\n });\n\n gameConnectButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n int polozka = listHer.getSelectedIndex();\n if (polozka >= 0) {\n newGameButton.setEnabled(false);\n gameConnectButton.setEnabled(false);\n komunikace.connectToGame(polozka);\n }\n\n }\n });\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n komunikace.disconnect(\"f\");\n zalogujSkonci();\n }\n });\n\n }", "public void q2(int op)\n {\n if(op==1)\n {\n Ventana_Principal.arrow.setVisible(true);\n cambio();\n }else\n {\n if(opBebidad==1)\n {\n actualizarStockB(\"Coca-Cola\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Coca-Cola...!\");\n VentanaCC obj=new VentanaCC();\n obj.setVisible(true);\n\n }else\n if(opBebidad==2)\n {\n actualizarStockB(\"Sprite\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Sprite...!\");\n VentanaSprite obj=new VentanaSprite();\n obj.setVisible(true);\n\n }else\n if(opBebidad==3)\n {\n actualizarStockB(\"Fanta\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Fanta...!\");\n VentanaFanta obj=new VentanaFanta();\n obj.setVisible(true);\n }else\n if(opBebidad==4)\n {\n actualizarStockB(\"Pepsi\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Pepsi...!\");\n VentanaPepsi obj=new VentanaPepsi();\n obj.setVisible(true); \n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n updateJTables();\n if(Controller.flag<3)\n Controller.flag++;\n else{\n Controller.flag=0;\n }\n if(Controller.initialTurnCount>=4){\n \tDice.DiceClick=true;\n if(AdjacencyListRoads.roadKingDeterminer()!=-1){//if there is a road king\n if(Controller.lastRoadKing!=-1){//if last road king exists\n Controller.players[Controller.lastRoadKing].roadKing=false;\n Controller.players[Controller.lastRoadKing].score-=2;\n }\n Controller.lastRoadKing=AdjacencyListRoads.roadKingDeterminer();//set current road king as the last\n Controller.players[AdjacencyListRoads.roadKingDeterminer()].roadKing=true;\n Controller.players[AdjacencyListRoads.roadKingDeterminer()].score+=2;\n }\n }\n for(int i=0;i>4;i++) {\n \tif(Controller.players[i].score>=20) {\n \t\tJOptionPane.showMessageDialog(null, \"Player\"+(i+1)+\"is the winner!\");\n \t}\n }\n turn.setText(\"The current player is: \"+\"Player\"+String.valueOf(Controller.flag+1));\n }", "void fun() throws Ex\r\n{\r\nif(b[4].getText()==\"\" && (cp==5 || cp==2 || cp==1) && b[6].getText()==\"\" && b[7].getText()==\"\" && b[3].getText()==\"\" && b[0].getText()==\"\" )\r\n{\r\nb[6].setText(\"X\");\r\ns=s+\"s11\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==7 && b[6].getText()==\"X\" && b[0].getText()==\"\" )\r\n{\r\nb[0].setText(\"X\");\r\ns=s+\"s12\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(b[5].getText()==\"O\")\r\n\t{\r\n\tif(cp!=7 && cp!=5 && b[6].getText()==\"X\" && (b[0].getText()==\"\" || b[0].getText()==\"O\") && b[7].getText()==\"\")\r\n\t{\r\n\tb[7].setText(\"X\");\r\ns=s+\"s13\";\r\ntf1.setText(s);\r\nlost();\r\nthrow new Ex();\r\n\t}\r\n\t}\r\nif(b[2].getText()==\"O\")\r\n\t{\r\n\tif(cp!=7 && cp!=2 && b[6].getText()==\"X\" && b[0].getText()==\"\" && b[7].getText()==\"\")\r\n\t{\r\n\tb[7].setText(\"X\");\r\ns=s+\"s14\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\nif(b[1].getText()==\"O\")\r\n\t{\r\n\tif(cp!=7 && cp!=1 && b[6].getText()==\"X\" && b[7].getText()==\"\")\r\n\t{\r\n\tb[7].setText(\"X\");\r\ns=s+\"s15\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\nif(b[2].getText()==\"O\")\r\n\t{\r\n\tif(cp==0 && b[6].getText()==\"X\" && b[7].getText()==\"\")\r\n\t{\r\n\tb[7].setText(\"X\");\r\ns=s+\"s36\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\n\r\nif(cp==4 && b[6].getText()==\"X\" && b[0].getText()==\"X\" && b[3].getText()==\"\" && (b[5].getText()==\"O\" || b[2].getText()==\"O\" || b[1].getText()==\"O\") && b[7].getText()==\"O\" )\r\n{\r\nb[3].setText(\"X\");\r\ns=s+\"s16\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==3 && b[6].getText()==\"X\" && b[0].getText()==\"X\" && b[4].getText()==\"\" && (b[5].getText()==\"O\" || b[2].getText()==\"O\" || b[1].getText()==\"O\") && b[7].getText()==\"O\" )\r\n{\r\nb[4].setText(\"X\");\r\ns=s+\"s17\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\n\r\n\r\nif(b[4].getText()==\"\" && (cp==7 || cp==6 || cp==3) && b[2].getText()==\"\" && b[5].getText()==\"\" && b[1].getText()==\"\" && b[0].getText()==\"\" )\r\n{\r\nb[2].setText(\"X\");\r\ns=s+\"s18\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==5 && b[2].getText()==\"X\" && b[0].getText()==\"\" )\r\n{\r\nb[0].setText(\"X\");\r\ns=s+\"s19\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(b[7].getText()==\"O\")\r\n\t{\r\n\tif(cp!=5 && cp!=7 && b[2].getText()==\"X\" && b[5].getText()==\"\" )\r\n\t{\r\n\tb[5].setText(\"X\");\r\ns=s+\"s20\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\nif(b[6].getText()==\"O\")\r\n\t{\r\n\tif(cp!=5 && cp!=6 && b[2].getText()==\"X\" &&b[0].getText()==\"\" && b[5].getText()==\"\" )\r\n\t{\r\n\tb[5].setText(\"X\");\r\ns=s+\"s21\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\nif(b[3].getText()==\"O\")\r\n\t{\r\n\tif(cp!=5 && cp!=3 && b[2].getText()==\"X\" && b[5].getText()==\"\" )\r\n\t{\r\n\tb[5].setText(\"X\");\r\ns=s+\"s22\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\nif(b[6].getText()==\"O\")\r\n\t{\r\n\tif(cp==0 && b[2].getText()==\"X\" && b[5].getText()==\"\")\r\n\t{\r\n\tb[5].setText(\"X\");\r\ns=s+\"s37\";\r\ntf1.setText(s);\r\nlost();\r\n\t}\r\n\t}\r\nif(cp==4 && b[2].getText()==\"X\" && b[5].getText()==\"O\" && b[0].getText()==\"X\" && b[1].getText()==\"\" && (b[7].getText()==\"O\" || b[6].getText()==\"O\" || b[3].getText()==\"O\" ) )\r\n{\r\nb[1].setText(\"X\");\r\ns=s+\"s23\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==1 && b[2].getText()==\"X\" && b[5].getText()==\"O\" && b[0].getText()==\"X\" && b[4].getText()==\"\" && (b[7].getText()==\"O\" || b[6].getText()==\"O\" || b[3].getText()==\"O\" ) )\r\n{\r\nb[4].setText(\"X\");\r\ns=s+\"s24\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\n\r\n\r\nif(cp==0 && b[4].getText()==\"\" && b[6].getText()==\"\" && b[2].getText()==\"\" )\r\n{\r\nb[2].setText(\"X\");\r\ns=s+\"s25\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp!=5 && cp!=0 && b[2].getText()==\"X\" && b[0].getText()==\"O\" && b[5].getText()==\"\" )\r\n{\r\nb[5].setText(\"X\");\r\ns=s+\"s26\";\r\ntf1.setText(s);\r\nlost();\r\n} \r\nif(cp==5 && b[0].getText()==\"O\" && b[2].getText()==\"X\" && b[4].getText()==\"\" && b[6].getText()==\"\" )\r\n{\r\nb[6].setText(\"X\");\r\ns=s+\"s27\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif((cp==4 || cp==1 || cp==3) && b[7].getText()==\"\" && b[2].getText()==\"X\" && b[0].getText()==\"O\" && b[5].getText()==\"O\" && b[6].getText()==\"X\")\r\n{\r\nb[7].setText(\"X\");\r\ns=s+\"s28\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==7 && b[4].getText()==\"\" && b[2].getText()==\"X\" && b[0].getText()==\"O\" && b[5].getText()==\"O\" && b[6].getText()==\"X\")\r\n{\r\nb[4].setText(\"X\");\r\ns=s+\"s29\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\n\r\n\r\nif(cp==4 && b[6].getText()==\"\" && b[2].getText()==\"\" && b[0].getText()==\"\" )\r\n{\r\nb[0].setText(\"X\");\r\ns=s+\"s30\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==2 && b[0].getText()==\"X\" && b[6].getText()==\"\" )\r\n{\r\nb[6].setText(\"X\");\r\ns=s+\"s31\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==6 && b[0].getText()==\"X\" && b[2].getText()==\"\" )\r\n{\r\nb[2].setText(\"X\");\r\ns=s+\"s32\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==7 && b[4].getText()==\"O\" && b[0].getText()==\"X\" && b[2].getText()==\"O\" && b[6].getText()==\"X\" && b[3].getText()==\"\" )\r\n{\r\nb[3].setText(\"X\");\r\ns=s+\"s33\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif(cp==5 && b[4].getText()==\"O\" && b[0].getText()==\"X\" && b[2].getText()==\"X\" && b[6].getText()==\"O\" && b[1].getText()==\"\" )\r\n{\r\nb[1].setText(\"X\");\r\ns=s+\"s34\";\r\ntf1.setText(s);\r\nlost();\r\n}\t\r\nif((cp==1 ||cp==3 ||cp==5 ) && b[4].getText()==\"O\" && b[0].getText()==\"X\" && b[2].getText()==\"O\" && b[6].getText()==\"X\" && b[7].getText()==\"\" )\r\n{\r\nb[7].setText(\"X\");\r\ns=s+\"s38\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\nif((cp==1 ||cp==3 ||cp==7 ) && b[4].getText()==\"O\" && b[0].getText()==\"X\" && b[2].getText()==\"X\" && b[6].getText()==\"O\" && b[5].getText()==\"\" )\r\n{\r\nb[5].setText(\"X\");\r\ns=s+\"s39\";\r\ntf1.setText(s);\r\nlost();\r\n}\r\n\r\nif( b[4].getText()==\"O\" && b[0].getText()==\"X\" && b[2].getText()==\"\" && b[5].getText()==\"\" && b[3].getText()==\"\" && b[6].getText()==\"\" )\r\n{\r\n\tif(cp==1)\r\n\t{\tb[7].setText(\"X\");\r\n\ts=s+\"s40\";\r\n\ttf1.setText(s);\r\nlost();\r\n\t}\r\n\tif(cp==7)\r\n\t{\tb[1].setText(\"X\");\t\r\n\ts=s+\"s41\";\r\n\ttf1.setText(s);\r\nlost();\r\n\t}\r\n}\r\nif( b[4].getText()==\"O\" && b[0].getText()==\"X\" && b[2].getText()==\"\" && b[1].getText()==\"\" && b[7].getText()==\"\" && b[6].getText()==\"\" )\r\n{\r\n\tif(cp==5)\r\n\t{\tb[3].setText(\"X\");\r\n\ts=s+\"s42\";\r\n\ttf1.setText(s);\r\nlost();\r\n\t}\r\n\tif(cp==3)\r\n\t{\tb[5].setText(\"X\");\t\r\n\ts=s+\"s43\";\r\n\ttf1.setText(s);\r\nlost();\r\n\t}\r\n}\r\n\r\nif( b[4].getText()==\"O\" && b[0].getText()==\"X\" && ((b[1].getText()==\"O\" && b[2].getText()==\"X\") || (b[1].getText()==\"X\" && b[2].getText()==\"O\")) )\r\n{\r\n\tif(cp==3)\r\n\t{\tb[5].setText(\"X\");\r\n\ts=s+\"s44\";\r\n\ttf1.setText(s);\r\nlost();\r\nif(l1.getText()!=\"<html><FONT COLOR=RED FONT SIZE=5>You Lost</FONT></html>\")\r\n{\tl1.setText(\"<html><FONT COLOR=RED FONT SIZE=5>Tie</FONT></html>\");\t}\r\n\t}\r\n\tif(cp==5)\r\n\t{\tb[3].setText(\"X\");\t\r\n\ts=s+\"s45\";\r\n\ttf1.setText(s);\r\nlost();\r\nif(l1.getText()!=\"<html><FONT COLOR=RED FONT SIZE=5>You Lost</FONT></html>\")\r\n{\tl1.setText(\"<html><FONT COLOR=RED FONT SIZE=5>Tie</FONT></html>\");\t}\r\n\t}\r\n}\t\r\nif( b[4].getText()==\"O\" && b[0].getText()==\"X\" && ((b[5].getText()==\"O\" && b[2].getText()==\"X\") || (b[5].getText()==\"X\" && b[2].getText()==\"O\")) )\r\n{\r\n\tif(cp==1)\r\n\t{\tb[7].setText(\"X\");\r\n\ts=s+\"s46\";\r\n\ttf1.setText(s);\r\nlost();\r\nif(l1.getText()!=\"<html><FONT COLOR=RED FONT SIZE=5>You Lost</FONT></html>\")\r\n{\tl1.setText(\"<html><FONT COLOR=RED FONT SIZE=5>Tie</FONT></html>\");\t}\r\n\t}\r\n\tif(cp==7)\r\n\t{\tb[1].setText(\"X\");\t\r\n\ts=s+\"s47\";\r\n\ttf1.setText(s);\r\nlost();\r\nif(l1.getText()!=\"<html><FONT COLOR=RED FONT SIZE=5>You Lost</FONT></html>\")\r\n{\tl1.setText(\"<html><FONT COLOR=RED FONT SIZE=5>Tie</FONT></html>\");\t}\r\n\t}\r\n}\t\r\n\r\n}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==mf.b1)\r\n\t\t{\r\n\t\t\tcp.card.show(cp, \"FF\");\r\n\t\t}\r\n\t\telse if(e.getSource()==mf.b2)\r\n\t\t{\r\n\t\t\tcp.card.show(cp, \"LF\");\r\n\t\t}\r\n\t\telse if(e.getSource()==mf.b5)\r\n\t\t{\r\n\t\t\tcp.card.show(cp, \"NF\");\r\n\t\t}\r\n\t\telse if(e.getSource()==df.b2)\r\n\t\t{\r\n\t\t\tcp.card.show(cp, \"FF\");\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.ff.b1)// 이전버튼\r\n\t\t{\r\n\t\t\tif(curpage>1)\r\n\t\t\t{\r\n\t\t\t\tcurpage--;\r\n\t\t\t\tcp.ff.p.removeAll();// JPanel의 모든 기능을 삭제\r\n\t\t\t\tcp.ff.moviePrint(curpage);\r\n\t\t\t\tcp.ff.repaint();\r\n\t\t\t\tcp.ff.p.validate();//JPanel의 원래 기능을 재배치\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.ff.b2)// 다음버튼\r\n\t\t{\r\n\t\t\tif(curpage<totalpage)\r\n\t\t\t{\r\n\t\t\t\tcurpage++;\r\n\t\t\t\tcp.ff.p.removeAll();\r\n\t\t\t\tcp.ff.moviePrint(curpage);\r\n\t\t\t\tcp.ff.repaint();\r\n\t\t\t\tcp.ff.p.validate();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.lf.b1)\r\n\t\t{\r\n\t\t\tcp.lf.movieAllData(1);\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.lf.b2)\r\n\t\t{\r\n\t\t\tcp.lf.movieAllData(2);\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.lf.b3)\r\n\t\t{\r\n\t\t\tcp.lf.movieAllData(3);\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.lf.b4)\r\n\t\t{\r\n\t\t\tcp.lf.movieAllData(4);\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.lf.b5)\r\n\t\t{\r\n\t\t\tcp.lf.movieAllData(5);\r\n\t\t}\r\n\t\telse if(e.getSource()==cp.lf.b6 || e.getSource()==cp.lf.tf)\r\n\t\t{\r\n\t\t\t// 1. 입력된 값 읽기\r\n\t\t\tString ss=cp.lf.tf.getText();\r\n\t\t\tif(ss.length()<1)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"검색어를 입력하세요\");\r\n\t\t\t\tcp.lf.tf.requestFocus();\r\n\t\t\t\treturn; // 메소드 종료 \r\n\t\t\t}\r\n\t\t\tcp.lf.movieFindData(ss);\r\n\t\t}\r\n\t\t\r\n\t\telse if(e.getSource()==login.b1)\r\n\t\t{\r\n\t\t\tString id=login.tf1.getText();\r\n\t\t\tif(id.length()<1)// ID가 입력하지 않을 경우\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"아이디를 입력하세요\");\r\n\t\t\t\tlogin.tf1.requestFocus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString name=login.tf2.getText();\r\n\t\t\tif(name.length()<1)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"대화명을 입력하세요\");\r\n\t\t\t\tlogin.tf2.requestFocus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sex=\"\";\r\n\t\t\tif(login.rb1.isSelected())\r\n\t\t\t\tsex=\"남자\";\r\n\t\t\telse\r\n\t\t\t\tsex=\"여자\";\r\n\t\t\t\r\n\t\t\t// 서버로 입력받은 데이터 전송 \r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// 연결 => 서버에 대한 정보를 가지고 있다 \r\n\t\t\t\ts=new Socket(\"localhost\",3355);\r\n\t\t\t\t// 송수신 위치 확인\r\n\t\t\t\tin=new BufferedReader(new InputStreamReader(s.getInputStream()));\r\n\t\t\t\tout=s.getOutputStream();\r\n\t\t\t\t\r\n\t\t\t\t// 로그인 요청 (서버로 전송되는 부분)\r\n\t\t\t\tout.write((Function.LOGIN+\"|\"+id+\"|\"+name+\"|\"+sex+\"\\n\").getBytes());\r\n\t\t\t}catch(Exception ex){}\r\n\t\t\t \r\n\t\t\t //서버에서 전송하는 데이터를 읽어서 출력 \r\n\t\t\t new Thread(this).start();\r\n\t\t\t // run()의 위치 확인 ==> 자신의 클래스안에 존재 => (this)\r\n\t\t}\r\n\t\telse if(e.getSource()==login.b2)\r\n\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\telse if(e.getSource()==cf.tf)// 채팅 \r\n\t\t{\r\n\t\t\tString color=cf.box.getSelectedItem().toString();\r\n\t\t\tString msg=cf.tf.getText();\r\n\t\t\tif(msg.length()<1)\r\n\t\t\t\treturn;\r\n\t\t\t// 데이터를 서버로 전송 \r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tout.write((Function.CHAT+\"|\"+msg+\"|\"+color+\"\\n\").getBytes());\r\n\t\t\t}catch(Exception ex){}\r\n\t\t\t\r\n\t\t\t cf.tf.setText(\"\");\r\n\t\t}\r\n\t\telse if(e.getSource()==mf.b7)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tout.write((Function.EXIT+\"|\\n\").getBytes());\r\n\t\t\t}catch(Exception ex) {}\r\n\t\t}\r\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n gui.activateTerrains(false);\n\n if (gui.getGUIState() == GUIState.MOVESHEEPFROM) {\n gui.activateTerrains(true);\n gui.setGUIState(GUIState.MOVESHEEPSELECTION);\n gui.activateSheepSelection(true, terrain);\n gui.getLAction2().setText(\"Seleziona quale ovino si vuole muovere\");\n } else if (gui.getGUIState() == GUIState.KILLSHEEP) {\n gui.setGUIState(GUIState.KILLSHEEPSELECTION);\n gui.activateSheepSelection(true, terrain);\n gui.getLAction2().setText(\"Seleziona quale ovino vuoi abbatere\");\n } else if (gui.getGUIState() == GUIState.JOINSHEEPS) {\n gui.setGUIState(GUIState.KILLSHEEPSELECTION);\n gui.sendJoinSheeps(terrain);\n } else if (gui.getGUIState() == GUIState.MOVESHEEPTO) {\n gui.activateDropDown(false);\n gui.setGUIState(GUIState.WAITINGFOROTHERPLAYER);\n gui.sendMoveSheep(terrain);\n }\n\n }", "public final void mo75312aj() {\n super.mo75312aj();\n if (this.f77593aS != null && this.f77546j != null && C25352e.m83221d(this.f77546j)) {\n C24961b e = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play_break\").mo65283e(\"video\");\n C43222g gVar = this.f77593aS;\n C7573i.m23582a((Object) gVar, \"mPlayer\");\n C24961b a = e.mo65255a(gVar.mo104915n());\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n a.mo65271b((long) video.getVideoLength()).mo65270a(mo75261ab());\n }\n }", "private static void FirstUmpieRevire() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tif(arg0.getSource().equals(jB[0])) {\r\n\t\t\t\t\t\tString sql=\"\";\r\n\t\t\t\t\t\tif(genre.getSelectedIndex()!=0)\r\n\t\t\t\t\t\t\tsql=\" and genre='\"+genre.getSelectedItem()+\"'\";\r\n\t\t\t\t\t\taddRow(dTM,\"select album, music_no, title, singer, genre, date from music where title like '%\"+text.getText()+\"%'\"+sql);\r\n\t\t\t\t\t\tif(dTM.getRowCount()==0) {\r\n\t\t\t\t\t\t\terr_msg(\"검색된 항목이 없습니다.\");\r\n\t\t\t\t\t\t\taddRow(dTM, \"select album, music_no, title, singer, genre, date from music\");\r\n\t\t\t\t\t\t\tgenre.setSelectedIndex(0);\r\n\t\t\t\t\t\t\ttext.setText(\"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tupdateTable(dTM, jT);\r\n\t\t\t\t\t\tsetWest();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(arg0.getSource().equals(jB[1])) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\tint row=jT.getSelectedRow();\r\n\t\t\t\t\t\tnew OneLine(new Object[] {jT.getValueAt(row, 2), jT.getValueAt(row, 3), jT.getValueAt(row, 1)}).addWindowListener(new Before(thisForm));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(arg0.getSource().equals(jB[2])) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tint row=jT.getSelectedRow();\r\n\t\t\t\t\t\t\tResultSet rs=DB.stmt.executeQuery(\"select * from rating where kinds=1 and music_r=\"+jT.getValueAt(row, 1)+\" and member_r='\"+DB.ID+\"'\");\r\n\t\t\t\t\t\t\tif(rs.next())\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(MainFrame.POINT==-1) {\r\n\t\t\t\t\t\t\tif(con_msg(\"구매를 하시려면 로그인을 해주세요.\", \"구매\")) {\r\n\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint row=jT.getSelectedRow();\r\n\t\t\t\t\t\tif(con_msg(\"제목 : \"+jT.getValueAt(row, 2)+\"를 구매하시겠습니까?\", \"구매 확인\")) {\r\n\t\t\t\t\t\t\tif(MainFrame.POINT==0) {\r\n\t\t\t\t\t\t\t\tif(con_msg(\"포인트가 부족합니다.\\n포인트를 충전하시겠습니까?\", \"포인트 부족\")) {\r\n\t\t\t\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t\t\t\tnew Pay().addWindowListener(new Before(thisForm));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tDB.stmt.execute(\"insert into rating values(\"+jT.getValueAt(row, 1)+\", '\"+DB.ID+\"', 1, '')\");\r\n\t\t\t\t\t\t\t\tDB.stmt.execute(\"update music set album=album+1 where music_no=\"+jT.getValueAt(row, 1));\r\n\t\t\t\t\t\t\t\tDB.stmt.execute(\"update member set point=point-100 where id='\"+DB.ID+\"'\");\r\n\t\t\t\t\t\t\t\tMainFrame.POINT-=100;\r\n\t\t\t\t\t\t\t\tMainFrame.PJL.setText(\"잔여포인트 : \"+MainFrame.POINT);\r\n\t\t\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tupdateTable(dTM, jT);\r\n\t\t\t\t\t\tsetWest();\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tframe.wartoscMediany.setText(\"= \" + frame.policzMediane());\n\t\tString text = \"Zbior liczb: \";\n\t\tfor(int i = 0; i < frame.liczby.size(); i++) {\n\t\t\ttext = text + frame.liczby.get(i) + \" \";\n\t\t}\n\t\tframe.wypisaneLiczby.setText(text);\n\t\t\n\n\t}", "public void mousePressed(MouseEvent event) { \n\t\t\t\t\n\t\tswitch(imgName) // Exécute une action différente en fonction du nom du bouton\n\t\t{\n\t\t\tcase \"endTurn\":\n\t\t\t\tGUI.getPlayer().setRoundCompleted(true);\n\t\t\t\tbreak;\n\t\t\tcase \"roads\":\n\t\t\t\tif(GUI.getPlayer().getNbRoad() > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!this.isSelected) \n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\t\tBoardView.setAction(6);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t\t\tBoardView.setAction(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"bonusTools\":\n\t\t\tcase \"bonusDefense\":\n\t\t\t\tif(GUI.getPlayer().getDiceBonus() == 5)\n\t\t\t\t{\n\t\t\t\t\tif(imgName == \"bonusTools\")\n\t\t\t\t\t\tGUI.getPlayer().setNbBonus(0, GUI.getPlayer().getNbBonus(0) + 1);\n\t\t\t\t\telse\n\t\t\t\t\t\tGUI.getPlayer().setNbBonus(1, GUI.getPlayer().getNbBonus(1) + 1);\n\t\t\t\t\t\n\t\t\t\t\tGUI.getPlayer().setDiceBonus(0);\n\t\t\t\t}\n\t\t\t\telse if(GUI.getPlayer().getNbBonus((imgName == \"bonusTools\") ? 0 : 1) > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!this.isSelected) \n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(true);\n\t\t\t\t\t\tif(imgName == \"bonusTools\")\n\t\t\t\t\t\t\tBoardView.setAction(7);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tBoardView.setAction(8);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t\t\tBoardView.setAction(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"hand\":\n\t\t\t\tif(!this.isSelected) \n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\tGUI.getDrawHandView().display();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(GUI.getPlayer().getActions().size() >= GUI.getPlayer().getNbActionsAllowed() && !GameManager.devMode)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tif(!this.isSelected)\n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\t\n\t\t\t\t\tswitch(imgName)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase \"tile\":\n\t\t\t\t\t\t\tGUI.getDrawTileView().display();\n\t\t\t\t\t\t\tBoardView.setAction(1);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"road\":\n\t\t\t\t\t\t\tGUI.getPlayer().setNbRoad(GUI.getPlayer().getNbRoad() + 1);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"monster\":\n\t\t\t\t\t\t\tBoardView.setAction(3);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(3);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"architect\":\n\t\t\t\t\t\t\tBoardView.setAction(4);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(4);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"goal\":\n\t\t\t\t\t\t\tGUI.getDrawGoalView().display();\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(5);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!GameManager.devMode)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(GUI.getPlayer().getDiceBonus() != 3)\n\t\t\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(GUI.getPlayer().getActions().size() > 1)\n\t\t\t\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthis.setSelected(false);\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tintYr = jcbYr.getSelectedIndex();\n\t\t\t\tintMt = jcbMt.getSelectedIndex();\n\t\t\t\tintDy = jcbDy.getSelectedIndex();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"我是卖报的小行家\");\n\t\t\t\tString tempA ;\n\t\t\t\tString tempB ;\n\t\t\t\tif(intMt+1<10) tempA= \"0\";\n\t\t\t\telse tempA = \"\";\n\t\t\t\tif(intDy+1<10) tempB= \"0\";\n\t\t\t\telse tempB = \"\";\n\t\t\t\tFileDownload FD = new FileDownload();\n\t\t\t\tboolean temp = FD.handler(\"\"+(intYr+2000),tempA+(intMt+1),tempB+(intDy+1));\n\t\t\t\tif(temp)JOptionPane.showMessageDialog(null, \" FTP下载成功 \", \"FTP下载结果 \", JOptionPane.OK_OPTION);\n\t\t\t\telse JOptionPane.showMessageDialog(null, \" FTP下载失败 \", \" FTP下载结果 \", JOptionPane.OK_OPTION);\n\t\t\t\tFD = null;\n\t\t\t\tSystem.gc();\n\t\t\t\tJFrame mainF = new DB_activity(); \n\t\t\t\tdispose();\n\t\t\t}", "abstract void botonAyuda_actionPerformed(ActionEvent e);", "public void actionPerformed(ActionEvent paramActionEvent) {\n\n\t\t//MENU PRINCIPAL//\n\t\tif(paramActionEvent.getSource() == this.fenetre.getMenuPrincipal().getNouvellePartie()) {\n\t\t\tswitchTo(\"new1\");\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getMenuPrincipal().getCharger()) {\n\t\t\tswitchTo(\"charger\");\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getMenuPrincipal().getRegle()) {\n\t\t\ttry {\n\t\t\t\tDesktop desktop = Desktop.getDesktop();\n\t\t\t\tFile file = new File(\"../data/files/regles.pdf\");\n\t\t\t\tdesktop.open(file);\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getMenuPrincipal().getQuitter()) {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t//NOUVELLE PARTIE 1//\n\t\tif(paramActionEvent.getSource() == this.fenetre.getNouvellePartie().getRetour()) {\n\t\t\tswitchTo(\"menu\");\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getNouvellePartie().getSuivant()) {\n\t\t\tthis.fenetre.getChoixOrdi().updateButton(this.fenetre.getNouvellePartie().getNbPlayer(), this);\n\t\t\tswitchTo(\"new2\");\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getNouvellePartie().getDeuxJoueur()) {\n\t\t\tthis.fenetre.getNouvellePartie().getDeuxJoueur().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\t\t\tthis.fenetre.getNouvellePartie().getTroisJoueur().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getNouvellePartie().getQuatreJoueur().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\n\t\t\tthis.fenetre.getNouvellePartie().getDeuxJoueur().setForeground(Color.RED);\n\t\t\tthis.fenetre.getNouvellePartie().getTroisJoueur().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getNouvellePartie().getQuatreJoueur().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getNouvellePartie().setNbPlayer(2);\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getNouvellePartie().getTroisJoueur()) {\n\t\t\tthis.fenetre.getNouvellePartie().getDeuxJoueur().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getNouvellePartie().getTroisJoueur().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\t\t\tthis.fenetre.getNouvellePartie().getQuatreJoueur().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\n\t\t\tthis.fenetre.getNouvellePartie().getDeuxJoueur().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getNouvellePartie().getTroisJoueur().setForeground(Color.RED);\n\t\t\tthis.fenetre.getNouvellePartie().getQuatreJoueur().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getNouvellePartie().setNbPlayer(3);\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getNouvellePartie().getQuatreJoueur()) {\n\t\t\tthis.fenetre.getNouvellePartie().getDeuxJoueur().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getNouvellePartie().getTroisJoueur().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getNouvellePartie().getQuatreJoueur().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\n\t\t\tthis.fenetre.getNouvellePartie().getDeuxJoueur().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getNouvellePartie().getTroisJoueur().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getNouvellePartie().getQuatreJoueur().setForeground(Color.RED);\n\t\t\tthis.fenetre.getNouvellePartie().setNbPlayer(4);\n\t\t}\n\n\t\t//NOUVELLE PARTIE 2//\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChoixOrdi().getRetour()) {\n\t\t\tswitchTo(\"new1\");\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChoixOrdi().getCreer()) {\n\t\t\tthis.fenetre.dispose();\n\t\t\tint nbp = this.fenetre.getNouvellePartie().getNbPlayer();\n\t\t\tint nbo = this.fenetre.getChoixOrdi().getNbOrdi();\n\t\t\tMode mode = Mode.valueOf(\"H\".repeat(nbp-nbo)+\"A\".repeat(nbo));\n\t\t\tGame game = new Game(\"P1\",\"P2\",\"P3\",\"P4\",mode, UI.GUI);\n\t\t}\n\t\t\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChoixOrdi().getZeroOrdi()) {\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setForeground(Color.RED);\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().setNbOrdi(0);\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChoixOrdi().getUnOrdi()) {\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setForeground(Color.RED);\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().setNbOrdi(1);\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChoixOrdi().getDeuxOrdi()) {\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setForeground(Color.RED);\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().setNbOrdi(2);\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChoixOrdi().getTroisOrdi()) {\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setBorder(BorderFactory.createLineBorder(Color.WHITE, 4));\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setBorder(BorderFactory.createLineBorder(Color.RED, 4));\n\n\t\t\tthis.fenetre.getChoixOrdi().getZeroOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getUnOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getDeuxOrdi().setForeground(Color.WHITE);\n\t\t\tthis.fenetre.getChoixOrdi().getTroisOrdi().setForeground(Color.RED);\n\t\t\tthis.fenetre.getChoixOrdi().setNbOrdi(3);\n\t\t}\n\n\t\t//CHARGER MENU//\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChargerPartie().getRetour()) {\n\t\t\tswitchTo(\"menu\");\n\t\t}\n\t\tif(paramActionEvent.getSource() == this.fenetre.getChargerPartie().getCreer()) {\n\t\t\tswitchTo(\"menu\");\n\t\t}\n\t}", "private static boolean poserTapis(){\n\t\tSystem.out.println(\"Choisisser une premiere case pour poser la premiere partie du tapis\");\n\t\tint premiereCaseTapis = console.obtenirDirection();\n\t\tint direction = premiereCaseTapis;\n\t\tint posXTapis = 0, posYTapis = 0;\n\n\t\t//Pose du premier carre de tapis\n\t\ttry{\n\t\t\tif(premiereCaseTapis == 1){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-2][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-2;\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 2){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion();\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 3){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()-2].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-2;\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion();\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\treturn false;\n\t\t}\n\n\n\n\n\t\tconsole.afficherJeu();\n\t\tSystem.out.println(\"Choisissez la deuxieme case\");\n\n\t\t//Pose du second petit carre de tapis\n\t\twhile(true){\n\t\t\tint d = console.obtenirDirection();\n\t\t\t//pour ne pas faire de demi tour ou erreur de d\n\t\t\tif(direction == 1 && d == 2 || direction == 2 && d == 1 || direction == 3 && d == 4 || direction == 4 && d == 3 || d<1 || d>4){\n\t\t\t\tconsole.afficherImpossibleChoisirDirection();\n\t\t\t} else {\n\t\t\t\ttry{\n\t\t\t\t\tif(d == 1){\n\t\t\t\t\t\tjeu.cases[posXTapis-1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 2){\n\t\t\t\t\t\tjeu.cases[posXTapis+1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 3){\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis-1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis+1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tjeu.getJoueurs()[tour-1].useTapis();\n\t\treturn true;\n\n\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t ctrl.setJogadores(2);\r\n\t\t\t\t\t t.criaPinos();\r\n\t\t\t\t\t m.atualizaBotoess(ctrl,t,men);\r\n\t\t\t\t }", "public static String _butpatas_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 85;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 87;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 88;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 89;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 91;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 92;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 94;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"Se pueden ver rayas\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"Se pueden ver rayas blancas en sus patas\"));\n //BA.debugLineNum = 95;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Grande.png\").getObject()));\n //BA.debugLineNum = 96;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 97;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 98;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void btndanhsachbandocActionPerformed(java.awt.event.ActionEvent evt) {\n showDuLieu();\n }", "private static Vertex frameHandle(Graph g, ArrayList<Integer> haveyouseen, int i, Vertex Begin) {\n\t\tVertex vertex;\n\t\tif (haveyouseen.contains(i * (-1)) == false) {\n\t\t\tvertex = new Vertex(i * -1, \"Frame \" + i, false);\n\t\t\tg.addVertex(vertex);\n\t\t\thaveyouseen.add(i * -1);\n\t\t\tmakeConnection(g, counter--, Begin, vertex, \"Frame \");\n\t\t\tcounter--;\n\t\t} else {\n\t\t\tvertex = g.vertices.get(i * -1);\n\t\t}\n\t\treturn vertex;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand() == \"查询\") {\n //String order = e.getActionCommand();\n try {\n new Inquiry(username);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"存款\") {\n new SaveMoney(username);\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"取款\") {\n new DrawMoney(username);\n } else if (e.getActionCommand() == \"转账\") {\n new Transfer(username);\n } else if (e.getActionCommand() == \"改密\") {\n new Modify(username);\n }\n else if (e.getActionCommand() == \"查询记录\") {\n new Test1();\n }\n else if (e.getActionCommand() == \"退卡\") {\n new Menu();\n // System.exit(0);\n }\n\n }", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "private void tbnthemActionPerformed(java.awt.event.ActionEvent evt) {\n \n if(PrimaryKeyMa()== true)\n \n { \n if(cboloai.getSelectedIndex() == 0 ) \n {\n \n try {\n danhsach.themGV( new GVCoHuu( ChuyenStringSangDate(tfngayvao.getText()) , Double.parseDouble(tfluongcb.getText()) , tfma.getText().trim(),tften.getText().trim(), Integer.parseInt(tfsogio.getText()), gt) );\n } catch (ParseException ex) {\n Logger.getLogger(GiaoDien.class.getName()).log(Level.SEVERE, null, ex);\n }\n } \n else {\n danhsach.themGV( new GVThinhGiang( tfmahopdong.getText().trim() , tfma.getText().trim(),tften.getText().trim() , Integer.parseInt(tfsogio.getText()), gt));\n } \n lberrorma.setText(null);\n RemoveAllTable();\n napDulieu();\n Refresh();\n EnabledXoa();\n }else {\n tfma.setText(null);\n lberrorma.setText(\"Mã đã tồn tại !\");\n }\n \n }", "public PapegaaiDialoog(JFrame frame, boolean isModal) {\n super(frame, true);\n this.setLayout(new GridLayout(4, 2));\n setTitle(\"Voeg papegaai toe\");\n setSize(400, 120);\n //standaard invulling velden\n naamVogel = \"\";\n ringnummer = 0;\n kooinummer = 0;\n //buttons and fields\n Naam = new JLabel(\"Naam: \");\n this.add(Naam);\n RingNummer = new JLabel(\"Ringnummer: \");\n nV = new JTextField();\n this.add(nV);\n this.add(RingNummer);\n rnV = new JTextField();\n this.add(rnV);\n KooiNummer = new JLabel(\"Kooinummer (1 tot 10): \");\n this.add(KooiNummer);\n knV = new JTextField();\n this.add(knV);\n cancel = new JButton(\"Cancel\");\n this.add(cancel);\n cancel.addActionListener(this);\n ok = new JButton(\"OK\");\n this.add(ok);\n ok.addActionListener(this);\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (!Window.Linksign) {\n\t\t\tif (BeganSign == 0) {\n\t\t\t\tBeganSign = 1;\n\t\t\t\taccept.append(\"已准备\\n\");\n\t\t\t\tWindow.f3listener.F3();\n\t\t\t\tbattleSend.Mistake = 0;\n\t\t\t} else {\n\t\t\t\tBeganSign = 0;\n\t\t\t\taccept.append(\"取消准备\\n\");\n\t\t\t\tsendText.setText(\"\");\n\t\t\t\tsendText.setEditable(false);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tout = new DataOutputStream(client.socket.getOutputStream());\n\t\t\t\tString message = \"%\" + BeganSign + \"%\" + sendText.getText()\n\t\t\t\t\t\t+ \"%\" + RegexText.duan1 + \"#\" + Window.wenben.getText()\n\t\t\t\t\t\t+ \"%0\" + \"%\" + Login.zhanghao.getText();\n\t\t\t\tQQZaiwenListener.wenbenstr = Window.wenben.getText();\n\t\t\t\tout.writeUTF(message);// 向服务器发送信息\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\taccept.append(\"请先加入一个房间\\n\");\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\tif (counter < getTurns() && counterAircrafts < getAircrafts()) {\r\n\t\t\t\t\tif(counterTurnsP < Desks[0][counter].getTurn()) {\r\n\t\t\t\t\t\tcounterTurnsP++;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tcounterAircrafts++;\r\n\t\t\t\t\tcounterPassenger++;\r\n\t\t\t\t\tcounterDocs++;\r\n\t\t\t\t\tcounterTurnsA++ ;\r\n\t\t\t\t\tcreateAircrafts(counterAircrafts);\r\n\t\t\t\t\tSystem.out.println(\"***********Turn: \" + counter + \"*****************\");\r\n\t\t\t\t\tshowInfo();\r\n\t\t\t\t\tshowDesks();\r\n\t\t\t\t\tshowStations();\r\n\t\t\t\t\tshowLuggage();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tTxtArea.append(\"\\n\\tTURNOS FINALIZADOS\\n\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "private void ziehenButtonActionPerformed(ActionEvent evt) {\n\t\treportTextArea.setText(bigKingsCup.karteZiehenUndAuswerten());\n\t\t\n\t\tif (reportTextArea.getText().contains(\"QUESTIONMASTER\")) {\n\t\t\tquestionMasterLabel.setText(\"Question Master ist: \" + bigKingsCup.getSpieler().getAktuellerSpieler());\n\t\t}\n\t\telse if(reportTextArea.getText().contains(\"KLOKARTE\")) {\n\t\t\tklokarteEntfernenButton.setVisible(true);\n\t\t\tklokartenBesitzer.add(bigKingsCup.getSpieler().getAktuellerSpieler());\n\t\t\tklokarteLabel.setText(\"Im Besitz einer Klokarte: \");\n\t\t\tfor (int i = 0; i < klokartenBesitzer.size(); i++) {\n\t\t\t\tklokarteLabel.setText(klokarteLabel.getText() + klokartenBesitzer.get(i) + \", \");\n\t\t\t}\n\t\t\tklokarteLabel.setText(klokarteLabel.getText().substring(0, (klokarteLabel.getText().length() - 2)));\n\t\t}\n\t\telse if(reportTextArea.getText().contains(\"DAUMENMASTER\")) {\n\t\t\tdaumenMasterLabel.setText(\"Daumen Master ist: \" + bigKingsCup.getSpieler().getAktuellerSpieler());\n\t\t}\n\t\telse if(reportTextArea.getText().contains(\"KING'S CUP\")) {\n\t\t\tfuellstandProgressBar.setValue(fuellstandProgressBar.getValue() + 25);\n\t\t\tif(fuellstandProgressBar.getValue() == 100) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ja \" + bigKingsCup.getSpieler().getAktuellerSpieler() + \n\t\t\t\t\t\t\", es wurden alle Kaenige gezogen... UND JETZT TRINK!!!\");\n\t\t\t}\n\t\t}\n\t\telse if(reportTextArea.getText().contains(\"Alle Karten wurden gezogen, Deck wird neu gemischt\")) {\n\t\t\tfuellstandProgressBar.setValue(0);\n\t\t}\n\t\t\n\t\tbigKingsCup.getSpieler().incrementAktuellerSpieler();\n\t\t\n\t\t//Grafik laden\n\t\timg = bigKingsCup.aktuelleKarteGrafikLaden(0);\n\t\t//Grafik anzeigen bzw.erneuern\n\t\tpainter.setImg(img);\n\t\trepaint();\n\t}", "private void ustvariOknoInPlosco(final int wOkno, final int hOkno) {\n\n // Swingove komponente lahko izdelujemo in posodabljamo samo takrat,\n // ko te\"ce dogodkovna nit (EDT). Metoda invokeLater po\"caka, da ta\n // nit pride na vrsto. Ko se to zgodi, izvede metodo run objekta tipa\n // Runnable, ki ga prejme kot parameter.\n\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n // izdelaj okno\n JFrame okno = new JFrame(\"Piramida\");\n okno.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // okno postavi na sredino zaslona\n Dimension dZaslon = Toolkit.getDefaultToolkit().getScreenSize();\n int xOkno = (dZaslon.width - wOkno) / 2;\n int yOkno = (dZaslon.height - hOkno) / 2;\n okno.setBounds(xOkno, yOkno, wOkno, hOkno);\n\n // izdelaj plo\"s\"co in jo poka\"zi na okno\n okno.setLayout(new BorderLayout());\n JPanel risalnaPlosca = OsnovaZaRisanje.this.new RisalnaPlosca();\n okno.add(risalnaPlosca, BorderLayout.CENTER);\n\n // prika\"zi okno\n okno.setVisible(true);\n }\n });\n }", "public String f9action() throws Exception {\r\n\t\tString query = \" SELECT QUES_NAME , QUES_TYPE,QUES_CODE FROM HRMS_QUES \" \r\n\t\t\t\t\t+\" ORDER BY upper(QUES_NAME) \";\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * \t\tSET THE HEADER NAMES OF TABLE WHICH IS DISPLAYED IN POP-UP WINDOW.\t\t * \r\n\t\t */ \r\n\t\tString[] headers={ getMessage(\"questionname\")};\r\n\t\t\r\n\t\tString[] headerWidth={ \"100\"};\r\n\t\t\r\n\t\t/**\r\n\t\t * \t\t-SET THE FIELDNAMES INTO WHICH THE VALUES ARE BEING POPULATED AFTER A ROW IS SELECTED.\r\n\t\t * \t\t-USEFULL IN CASES WHERE SUBMIT FLAG IS 'false'\r\n\t\t * \t\t-PARENT FORM WILL SHOW THE VALUES IN THE FILDS CORRSPONDING TO COLUMN INDEX.\r\n\t\t * \t\tNOTE: LENGHT OF COLUMN INDEX MUST BE SAME AS THE LENGTH OF FIELDNAMES\t\t \r\n\t\t * */ \t\r\n\t\t\r\n\t\tString[] fieldNames={\"quesName\",\"quesType\",\"quesCode\"};\r\n\t\t\r\n\t\t/**\r\n\t\t * \t \tSET THE COLUMN INDEX\r\n\t\t * \t\tE.G. SUPPOSE THE POP-UP SHOWS 4 COLUMNS, BUT ON CLICKING A ROW\r\n\t\t * \t\t\tONLY SECOND AND FORTH COLUMN VALUES NEED TO BE SHOWN IN THE PARENT WINDOW FIELDS\r\n\t\t * \t\t\tTHEN THE COLUMN INDEX CAN BE {1,3}\r\n\t\t * \t\t\r\n\t\t * \t\tNOTE: COLUMN NUMBERS STARTS WITH 0\t\t \t\r\n\t\t * \r\n\t\t */ \r\n\t\tint[] columnIndex={0,1,2};\r\n\t\t\r\n\t\t/**\r\n\t\t * \t\tWHEN SET TO 'true' WILL SUBMIT THE FORM\r\n\t\t * \r\n\t\t */\r\n\t\tString submitFlag = \"true\";\r\n\t\t\r\n\t\t/**\t\t \r\n\t\t * \t\tIF THE 'submitFlag' IS 'true' , THE FORM WILL SUBMIT AND CALL FOLLOWING METHOD IN THE ACTION * \r\n\t\t * \t\tNAMING CONVENSTION: <NAME OF ACTION>_<METHOD TO CALL>.action\r\n\t\t */\r\n\t\tString submitToMethod=\"QuestionnaireMaster_showRecord.action\";\r\n\t\t\r\n\t\t/**\r\n\t\t * \t\tCALL THIS METHOD AFTER ALL PARAMETERS ARE DEFINED\t\t * \r\n\t\t */\r\n\t\t\r\n\t\tsetF9Window(query,headers,headerWidth,fieldNames,columnIndex,submitFlag,submitToMethod);\r\n\t\t\r\n\t\treturn \"f9page\";\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n Document doc = Jsoup.parse(adsDetailText.getText());\n Elements adsText = doc.getElementsByTag(\"font\");\n String[] desSession = adsText.text().split(\" \");\n Double price = Double.valueOf(desSession[1]);\n String type = desSession[2];\n // write reward to local file\n// writeLeftCoin(Arith.add(leftToken,Double.valueOf(price)));\n String adsPaybackType;\n String testAdsAdress;\n String testApAdress;\n switch (type) {\n case \"积分\": {\n adsPaybackType = \"WatchAdvToken\";\n testAdsAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ffbb\";\n testApAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff33\";\n // add token to green area\n changeGreenLabel(\"token\",\"ads\",price,true,false,\"看广告\");\n }\n break;\n case \"代币\": {\n adsPaybackType = \"WatchAdvCoin\";\n testAdsAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ffcc\";\n testApAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff44\";\n // add coin to green area\n changeGreenLabel(\"coin\",\"ads\",price,true,false,\"看广告\");\n }\n break;\n default:\n System.out.println(\"[ERROR] Unknown reward type!\");return;\n }\n adsDetailPane.setVisible(false);\n adsContainer.setVisible(true);\n // sync reward to blockchain\n new Thread(() -> {\n int tryout = 3;\n boolean isSuccess = false;\n while(tryout > 0) {\n try {\n ArrayList<String> syncCmd = new ArrayList<>();\n syncCmd.add(\"node\");\n syncCmd.add(rootPath.concat(\"/js_contact_chain/client.js\"));\n syncCmd.add(adsPaybackType);\n syncCmd.add(\"0x01c96e4d9be1f4aef473dc5dcf13d8bd1d4133cd\");\n syncCmd.add(\"e16a1130062b37f038b9df02f134d7ddd9009c54c62bd92d4ed42c0dba1189a8\");\n syncCmd.add(testAdsAdress);\n syncCmd.add(testApAdress);\n ProcessBuilder syncRewardPB = new ProcessBuilder(syncCmd);\n Process syncRewardPS = syncRewardPB.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(syncRewardPS.getInputStream()));\n String line;\n System.out.println(\"========== get reward by watching ads ==========\");\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n if (line.contains(\"status: true\")) {\n isSuccess = true;\n }\n }\n if (isSuccess) {\n break;\n }\n System.out.println(\"[ERROR] Transaction failed! Get payback failed!\");\n syncRewardPS.waitFor();\n sleep(500);\n } catch (IOException|InterruptedException ex) {\n System.out.println(ex.getMessage());\n }\n tryout--;\n }\n switch (type) {\n case \"积分\":\n changeGreenLabel(\"token\",\"ads\",-price,false,isSuccess,\"看广告\");\n break;\n case \"代币\":\n changeGreenLabel(\"coin\",\"ads\",-price,false,isSuccess,\"看广告\");\n break;\n default:\n System.out.println(\"[ERROR] Unknown advertisement type\");\n }\n }).start();\n }", "public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\\n- U pour Duel\\n- D pour Defense\");\n choixModeJeu = Console.saisieListeDeChoix(\"C|U|D\");\n }", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tString info=5+\" \"+name;\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t//send exit info to server\r\n\t\t\t\t\t\ttoServer.writeUTF(info);\r\n\t\t\t\t\t\ttoServer.flush();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//get return tips from server\r\n\t\t\t\t\t\tinfo=fromServer.readUTF();\r\n\t\t\t\t\t\thandle.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.err.println(ex);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void actionPerformed(ActionEvent ae) {\n /* dar in switch Objecti ke method ra farakhani karde ast, shenasaei mishavad*/\n switch (sel){\n case 1:// in case marbut be menuye NEW mibashad.\n if(saved){\n askingResult=JOptionPane.showConfirmDialog(null, \"You Have Saved Your Data Befor.\"+\n \"\\n\"+\"Are you sure to Have New One?\", \"New\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(askingResult==JOptionPane.YES_OPTION){\n dispose();// ba estefade az in dastur, panjereye jari baste mishawad.\n namC++;// tedade panjere haye jadid ezafe mishawad.\n new SpreadSheet();// panjereye jadid sakhte mishawad.\n setSaved();\n savingCounter=0;\n }\n }// payane if(saved).\n else{// agar barname az gabl, zakhire nashode bashad, dasturate zir ejra mishawad.\n askingResult=JOptionPane.showConfirmDialog(null, \"You Have Not Saved Your Data Befor.\"+\n \"\\n\"+\"Do you Want to Save Your Data?\", \"Save\",\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(askingResult==JOptionPane.YES_OPTION){\n new AL(3).actionPerformed(null);// agar yes entekhab shawd, bayad zakhire gardad.\n dispose();\n namC++;\n new SpreadSheet();\n setSaved();\n savingCounter=0;\n }\n else if(askingResult==JOptionPane.NO_OPTION){\n dispose();\n namC++;\n new SpreadSheet();\n setSaved();\n savingCounter=0;\n }\n }// payane else(saved).\n break;// payane case NEW.\n case 2:// in case marbut be Menuye OPEN ast.\n isOpenable=true;\n if(saved){// waziyate zakhireiye barname , barresi mishawad.\n try {\n\n o.open();\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null,\n \"InCorrect FileName!!!\"+\"\\n\"+\"try again.\",\n \"Error\" ,JOptionPane.WARNING_MESSAGE);\n isOpenable=false;\n }\n }// payane if(saved).\n else{\n askingResult=JOptionPane.showConfirmDialog(null, \"You Have Not Saved Your Data Befor.\"+\n \"\\n\"+\"Do you Want to Save Your Data?\", \"Save\",\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(askingResult==JOptionPane.YES_OPTION){\n try {\n new AL(3).actionPerformed(null);// barname zakhire mishawad.\n o.open();\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null,\n \"InCorrect FileName!!!\"+\"\\n\"+\"try again.\",\n \"Error\" ,JOptionPane.WARNING_MESSAGE);\n isOpenable=false;\n }\n }\n else if(askingResult==JOptionPane.NO_OPTION){\n try {\n o.open();\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null,\n \"InCorrect FileName!!!\"+\"\\n\"+\"try again.\",\n \"Error\" ,JOptionPane.WARNING_MESSAGE);\n isOpenable=false;\n }\n }\n }// payane else(saved).\n break;// payane case OPEN.\n case 3:// in case marbut be SAVE ast.\n if(savingCounter<=1){// bayad tedade dafa'ate zakhire saziye barname barresi shawd-\n try { //-bein surat ke agar barname az gabl zakhire shode bashad-\n o.savingAs();//-digar lazem nis ba esme jadid zakhire shawad wa bayad-\n } catch (IOException ex) {//- dar makane gabl, save shawad.\n Logger.getLogger(SpreadSheet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n else\n {\n try {\n o.justSave();\n } catch (IOException ex) {\n Logger.getLogger(SpreadSheet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n break;// payane case SAVE.\n case 4:// case Marbut be SAVEas.\n try {\n o.savingAs();\n } catch (IOException ex) {\n Logger.getLogger(SpreadSheet.class.getName()).log(Level.SEVERE, null, ex);\n }\n break;// payane case SAVE AS.\n case 5:// case marbut be EXIT.\n if(saved){// agar barname zakhire nashode bashad, behtar ast, zakhire shawad.\n System.exit(0);\n }\n else{\n askingResult=JOptionPane.showConfirmDialog(null, \"You Have Not Saved Your Data Befor.\"+\n \"\\n\"+\"Do you Want to Save Your Data?\", \"Save\",\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(askingResult==JOptionPane.YES_OPTION){\n new AL(3).actionPerformed(null);\n System.exit(0);\n }\n else if(askingResult==JOptionPane.NO_OPTION){\n System.exit(0);\n }\n }\n break;// payane case EXIT.\n case 6:// case 6 wa 7 wa 8, marbut be menoye EDIT ast.\n if(isEditing) // dar Surati ke range khane zard bashad-\n jtf[txp1][txp2].cut();// -matne entekhab shode, be ClipBoard, Cut mishawad\n break;\n case 7:\n if(isEditing) // dar Surati ke range khane zard bashad-\n jtf[txp1][txp2].copy();// -matne entekhab shode, be ClipBoard, Copy mishawad\n break;\n case 8:\n if(isEditing){ // dar Surati ke range khane zard bashad-\n jtf[txp1][txp2].paste();// -matn az ClipBoard, Paste mishawad\n if(jtf[txp1][txp2].getBackground()==Color.yellow){ // -darSurate Fa'al Budan-\n jtf[txp1][txp2].setEnabled(true); // -angah akharin khane fa'al shode-\n jtf[txp1][txp2].grabFocus(); // -nabayad gere fa'al gardad.\n setNotSaved();\n }\n }\n break;\n case 9:// case 9 , 10 , 11 , 12 wa 13, marbut be menuye FUNCTION ast.\n if(isSelected){// note: in case ha fagat barruye khanehaye Entkhab shode, emal mishawand.\n o.convertToDigit();// note: khane ha, ebteda bayad be ADAD tabdil shawand.\n JOptionPane.showMessageDialog(null, \"The Maximum Number = \"+o.getMax()\n ,\"Maximum\",JOptionPane.INFORMATION_MESSAGE);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\n \"Please Select One or More Cells!!!\"+\"\\n\"+\n \"To Select Whole Cells, Press Ctrl+A or Select all in EditMenu.\",\n \"No Selected Cells\" ,JOptionPane.WARNING_MESSAGE);\n }\n break;\n case 10:// case MIN\n if(isSelected){\n o.convertToDigit();\n JOptionPane.showMessageDialog(null, \"The Minimum Number = \"+o.getMin()\n ,\"Minimum\",JOptionPane.INFORMATION_MESSAGE);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\n \"Please Select One or More Cells!!!\"+\"\\n\"+\n \"To Select Whole Cells, Press Ctrl+A or Select all in EditMenu.\",\n \"No Selected Cells\" ,JOptionPane.WARNING_MESSAGE);\n }\n break;\n case 11:// case SUM\n if(isSelected){\n o.convertToDigit();\n JOptionPane.showMessageDialog(null, \"Sum of Numbers = \"+\n o.getSum(),\"Sum\",JOptionPane.INFORMATION_MESSAGE);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\n \"Please Select One or More Cells!!!\"+\"\\n\"+\n \"To Select Whole Cells, Press Ctrl+A or Select all in EditMenu.\",\n \"No Selected Cells\" ,JOptionPane.WARNING_MESSAGE);\n }\n break;\n case 12:// case AVERAGE\n if(isSelected){\n o.convertToDigit();\n ave=(double)o.getSum()/index;\n JOptionPane.showMessageDialog(null, \"the Computation of Numbers = \"+index+\"\\n\"+\n \"Average of Numbers = \"+ave\n ,\"Average\",JOptionPane.INFORMATION_MESSAGE);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\n \"Please Select One or More Cells!!!\"+\"\\n\"+\n \"To Select Whole Cells, Press Ctrl+A or Select all in EditMenu.\",\n \"No Selected Cells\" ,JOptionPane.WARNING_MESSAGE);\n }\n break;\n case 13:// case COUNTER\n if(isSelected){\n o.convertToDigit();\n o.getCounter();\n JOptionPane.showMessageDialog(null,\n \"the Computation of Empty Cells = \"+emptyCellCounter+// tedade khanehaye khali.\n \"\\n\"+\"the Computation of non-Empty Cells = \"+(780-emptyCellCounter)+// tedade khanehaye por\n \"\\n\"+\"the Computation of Selected Cells Characters = \"+sCellCharCounter+// tedade horufe khanehaye entekhab shode\n \"\\n\"+\"the Computation of Whole Used Characters = \"+ charCounter+// tedade kole horuf\n \"\\n\"+\"the Computation of Numeral Cells = \"+index+// tedade khanehaye adadi\n \"\\n\"+\"the Computation of Selected Cells = \"+ selectedCellCounter+// tedade khanehaye entekhab shode\n \"\\n\"+\"the Computation of UnSelected Cells = \"+ (780 - selectedCellCounter)+// tedade khanehaye geyre fa'al\n \"\\n\"+\"the Computation of Whole Cells = \"+(780),// tedade kole kaneha.\n \"Counter\", JOptionPane.INFORMATION_MESSAGE);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\n \"Please Select One or More Cells!!!\"+\"\\n\"+\n \"To Select Whole Cells, Press Ctrl+A or Select all in EditMenu.\",\n \"No Selected Cells\" ,JOptionPane.WARNING_MESSAGE);\n }\n break;// payane case Function.\n case 14:// in case marbut be gozineye Select All ast.\n for(int i=0;i<30;i++)\n for(int j=0;j<26;j++){\n jtf[i][j].setBackground(Color.blue);\n jtf[i][j].setEnabled(false);\n jp.grabFocus();\n setSelected();\n setNotEdit();\n cellSelCounter=2;\n }\n break;\n }// payane Switch Case.\n }", "@Override\r\n public void handle(final ActionEvent e) {\n if (e.getSource() == b0) {\r\n ljumlahuang.appendText(\"0\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b1) {\r\n ljumlahuang.appendText(\"1\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b2) {\r\n ljumlahuang.appendText(\"2\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b3) {\r\n ljumlahuang.appendText(\"3\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b4) {\r\n ljumlahuang.appendText(\"4\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b5) {\r\n ljumlahuang.appendText(\"5\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b6) {\r\n ljumlahuang.appendText(\"6\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b7) {\r\n ljumlahuang.appendText(\"7\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b8) {\r\n ljumlahuang.appendText(\"8\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == b9) {\r\n ljumlahuang.appendText(\"9\");\r\n rawkalkulasi();\r\n } else if (e.getSource() == bc) {\r\n ljumlahuang.setText(ljumlahuang.getText().substring(0, ljumlahuang.getText().length() - 1));\r\n rawkalkulasi();\r\n }\r\n }", "public ConfirmStationsFrame(String args[]) {\n\n getParms(args);\n\n // Main container //\n Container con = new Container();\n\n // create table for fix number & profile number\n DynamicTable mainTab = new DynamicTable(0);\n mainTab.setFrame(ITableFrame.VOLD);\n mainTab.setRules(ITableRules.NONE);\n mainTab.setBorder(0);\n mainTab.setCenter();\n\n DynamicTable headTab = new DynamicTable(0);\n headTab.setFrame(ITableFrame.VOLD);\n headTab.setRules(ITableRules.NONE);\n headTab.setBorder(0);\n headTab.setCenter();\n\n DynamicTable tab = new DynamicTable(0);\n tab.setFrame(ITableFrame.VOLD);\n tab.setRules(ITableRules.NONE);\n tab.setBorder(0);\n tab.setCenter();\n\n TableRow row = new TableRow();\n\n\n // Create sub table //\n DynamicTable subTab = new DynamicTable(2);\n subTab.setFrame(ITableFrame.VOLD);\n subTab.setRules(ITableRules.NONE);\n subTab.setBorder(0);\n subTab.setCenter();\n\n headTab.addRow(ec.crSpanColsRow(\"Add / Maintain Stations\",\n 2,true, \"blue\", IHAlign.CENTER, \"+2\"));\n headTab.addRow(ec.crSpanColsRow(\"&nbsp;\",2));\n\n\n if (dbg) System.out.println(\"<br> st action : \" + action);\n if (action.equals(\"Insert\")) {\n\n checkClient();\n\n if (dbg) System.out.println(\"<br>**Ins** clientCode : \" + clientCode);\n\n/*\n success = new WetStation(\n stationID ,\n latitude ,\n longitude ,\n name ,\n clientCode ,\n ).put();\n*/\n WetStation station = new WetStation(); // ub01\n station.setStationId (stationID); // ub01\n station.setLatitude (latitude); // ub01\n station.setLongitude (longitude); // ub01\n station.setName (name); // ub01\n station.setClientCode (clientCode); // ub01\n if (!\"\".equals(surveyID.trim())) // ub02\n station.setSurveyId(surveyID); // ub02\n success = station.put(); // ub01\n\n if (dbg) System.out.println(\"<br>sql = \" + station.getInsStr());\n if (dbg) System.out.println(\"<br>numRecs = \" + station.getNumRecords());\n if (dbg) System.out.println(\"<br>messages = \" + station.getMessages());\n\n //row = new TableRow();\n //row\n // .addCell(new TableHeaderCell(\"Station \" + name + \" has been succesfully inserted \"))\n // ;\n //mainTab.addRow(row);\n\n //row = new TableRow();\n //row\n // .addCell(new TableDataCell(new SimpleItem(\" \")))\n // ;\n //mainTab.addRow(row);\n if (station.getNumRecords() == 1) {\n tab.addRow(ec.crSpanColsRow(\n \"Station \"+name+\" has been succesfully inserted.\",2,true,\n \"green\",IHAlign.CENTER,\"+1\" ));\n } else {\n tab.addRow(ec.crSpanColsRow(\n \"Station \"+name+\" has NOT been succesfully inserted.\",2,true,\n \"red\",IHAlign.CENTER,\"+1\" ));\n tab.addRow(ec.crSpanColsRow(\n \"SQL error message: \" + station.getMessages(),2,true,\n \"red\",IHAlign.CENTER,\"+1\" ));\n } // if (station.getNumRecords() == 1)\n tab.addRow(ec.crSpanColsRow(\"&nbsp;\",2));\n\n\n } //if (action.equals(\"Insert\"))\n else if (action.equals(\"Update\")) {\n\n checkClient();\n\n if (dbg) System.out.println(\"<br>**Upd** clientCode : \" + clientCode);\n\n WetStation updStation = new WetStation(); // ub01\n updStation.setLatitude (latitude); // ub01\n updStation.setLongitude (longitude); // ub01\n updStation.setName (name); // ub01\n updStation.setClientCode (clientCode); // ub01\n if (!\"\".equals(surveyID.trim())) // ub02\n updStation.setSurveyId(surveyID); // ub02\n/*\n WetStation updStation = new WetStation(\n Tables.CHARNULL ,\n latitude ,\n longitude ,\n name ,\n clientCode\n );\n*/\n WetStation station = new WetStation(stationID);\n success = station.upd(updStation);\n\n if (dbg) System.out.println (\"<br>updated WetStation : success = \" + success);\n\n if (station.getNumRecords() == 1) {\n tab.addRow(ec.crSpanColsRow(\n \"Station \"+name+\" has been succesfully updated.\",2,true,\n \"green\",IHAlign.CENTER,\"+1\" ));\n } else {\n tab.addRow(ec.crSpanColsRow(\n \"Station \"+name+\" has NOT been succesfully updated.\",2,true,\n \"red\",IHAlign.CENTER,\"+1\" ));\n tab.addRow(ec.crSpanColsRow(\n \"SQL error message: \" + station.getMessages(),2,true,\n \"red\",IHAlign.CENTER,\"+1\" ));\n } // if (station.getNumRecords() == 1)\n tab.addRow(ec.crSpanColsRow(\"&nbsp;\",2));\n\n\n } //else if (action.equals(\"Update\"))\n\n row = new TableRow();\n row\n .addCell(new TableHeaderCell(\"Station Id : \").setHAlign(IHAlign.RIGHT))\n .addCell(new TableDataCell(new SimpleItem(stationID)))\n ;\n subTab.addRow(row);\n\n row = new TableRow();\n row\n .addCell(new TableHeaderCell(\"Latitude : \").setHAlign(IHAlign.RIGHT))\n .addCell(new TableDataCell(new SimpleItem(latitude)))\n ;\n subTab.addRow(row);\n\n row = new TableRow();\n row\n .addCell(new TableHeaderCell(\"Longitude : \").setHAlign(IHAlign.RIGHT))\n .addCell(new TableDataCell(new SimpleItem(longitude)))\n ;\n subTab.addRow(row);\n\n row = new TableRow();\n row\n .addCell(new TableHeaderCell(\"Name : \").setHAlign(IHAlign.RIGHT))\n .addCell(new TableDataCell(new SimpleItem(name)))\n ;\n subTab.addRow(row);\n\n row = new TableRow();\n row\n .addCell(new TableHeaderCell(\"Client Code : \").setHAlign(IHAlign.RIGHT))\n .addCell(new TableDataCell(new SimpleItem(clientCode)))\n ;\n subTab.addRow(row);\n\n row = new TableRow();\n row\n .addCell(new TableHeaderCell(\"SADCO Survey ID : \").setHAlign(IHAlign.RIGHT))// ub02\n .addCell(new TableDataCell(new SimpleItem(surveyID))) // ub02\n ;\n subTab.addRow(row);\n\n con\n .addItem(headTab)\n .addItem(mainTab)\n .addItem(subTab)\n .addItem(tab)\n ;\n addItem(con);\n\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n switch (e.getActionCommand()) {\r\n case ABRIR_NOTICIAS:\r\n wdwNoticias w = new wdwNoticias(gln);\r\n w.setVisible(true);\r\n this.dispose();\r\n break;\r\n case ABRIR_CLASIFICACION:\r\n wdwClasificacion c = new wdwClasificacion(gln);\r\n c.setVisible(true);\r\n this.dispose();\r\n break;\r\n case ABRIR_JORNADA:\r\n \twdwJornadas wj=new wdwJornadas(gln);\r\n \twj.setVisible(true);\r\n \tthis.dispose();\r\n break;\r\n\r\n case INSERTAR_JUGADOR:\r\n wdwJugador j = new wdwJugador(gln);\r\n j.setVisible(true);\r\n this.dispose();\r\n break;\r\n case INSERTAR_EQUIPO:\r\n wdwEquipo eq = new wdwEquipo(gln);\r\n eq.setVisible(true);\r\n this.dispose();\r\n break;\r\n case INSERTAR_POSICION:\r\n wdwPosicion p = new wdwPosicion(gln);\r\n p.setVisible(true);\r\n this.dispose();\r\n break;\r\n case INSERTAR_ESTADO:\r\n wdwEstado es = new wdwEstado(gln);\r\n es.setVisible(true);\r\n this.dispose();\r\n break;\r\n case INSERTAR_CAMPO:\r\n wdwCampo ca = new wdwCampo(gln);\r\n ca.setVisible(true);\r\n this.dispose();\r\n break;\r\n case INSERTAR_TEMPORADA:\r\n try {\r\n gln.anadirTemporada();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } catch (EquiposInsuficientesException ex) {\r\n JOptionPane.showMessageDialog(this,ex.getMessage());\r\n }\r\n break;\r\n case CERRAR_SESION:\r\n wdwRegistrarUsuario ru = new wdwRegistrarUsuario(gln);\r\n ru.setVisible(true);\r\n this.dispose();\r\n break;\r\n case CAMBIAR_EQUIPO_FAV:\r\n updateEquipoFav ef = new updateEquipoFav(gln);\r\n ef.setVisible(true);\r\n this.dispose();\r\n break;\r\n case DATOS_PERSONALES:\r\n wdwDatosPersonales dp = new wdwDatosPersonales(gln);\r\n dp.setVisible(true);\r\n this.dispose();\r\n break;\r\n\r\n\r\n }\r\n }", "@Override\n public void setNewAction(Mossa.Action action) {\n jumpMove.setDisable(false);\n Platform.runLater(() -> {\n submitAction.setDisable(true);\n\n });\n switch (action) {\n case BUILD:\n lightBuild();\n if (!inTurno) {\n lightMyPawns();\n inTurno = true;\n firstAction = true;\n } else {\n c = table.getTableCell(table.getXYPawn(getID(), currentPawn, true),\n table.getXYPawn(getID(), currentPawn, false));\n firstAction = false;\n lightAvailable(c, bt[table.getXYPawn(getID(), currentPawn, true)][table.getXYPawn(getID(), currentPawn, false)]);\n\n }\n currentMove = new Mossa();\n currentMove.setAction(action);\n\n break;\n case MOVE:\n lightMove();\n currentMove = new Mossa();\n currentMove.setAction(action);\n if (!inTurno) {\n effetto = true;\n lightMyPawns();\n inTurno = true;\n firstAction = true;\n } else {\n firstAction = false;\n c = table.getTableCell(table.getXYPawn(getID(), currentPawn, true),\n table.getXYPawn(getID(), currentPawn, false));\n lightAvailable(c, bt[table.getXYPawn(getID(), currentPawn, true)][table.getXYPawn(getID(), currentPawn, false)]);//prima era true\n\n }\n }\n }", "void accept(String w[][]){\r\n for (int i = 0; i < 20; i++) {\r\n b_pos[i] = -1;\r\n s_pos[i] = -1;\r\n }\r\n\r\n // board 4x4\r\n for(int i = 0; i < 5 ; ++i){\r\n for (int j = 0; j < 5; j++) {\r\n w[i][j]=\"\"; // W = world\r\n }\r\n }\r\n\r\n int count = 1;\r\n System.out.println(\"\\n\\n ~~~~~~~~~~~ Wumpus World Problem ~~~~~~~~~~~~\\n\\n\");\r\n\r\n System.out.println(\"Posisi Sebagai Berikut\");\r\n\r\n //memebuat peta\r\n for (int i = 1; i <= 4; i++) {\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n System.out.print(\"|\\t\"); // \\t = tab\r\n\r\n for (int j = 1; j <= 4; j++) {\r\n System.out.print((count++)+\"\\t|\\t\");\r\n }\r\n }\r\n\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n System.out.println(\"\\nAgent Mulai dari 13 (1,1)\");\r\n w[4][1]=\"A\";\r\n System.out.println(\"Masukkan banyak lubang\");\r\n jumlah_lubang = scan.nextInt();\r\n pos = new int[jumlah_lubang];\r\n System.out.println(\"\\nMasukkan Posisi dari pit.\" +\r\n \"\\nDengan syarat sebagai berikut:\" +\r\n \"\\n1. Posisi pit tidak boleh sama dengan agent\" +\r\n \"\\n2. Posisi pit tidak boleh sama dengan Wumpus\" +\r\n \"\\n3. Posisi pit tidak boleh sama dengan gold\");\r\n System.out.println(\"\\nMasukkan posisi pit\");\r\n for (int i = 0; i < jumlah_lubang; i++) {\r\n pos[i] = scan.nextInt(); // insert posisi pits ke board\r\n show_sense(pos[i],1,w);\r\n }\r\n\r\n //get Wumpus position\r\n System.out.println(\"\\nMasukkan posisi dari Wumpus\");\r\n pos_wumpus = scan.nextInt();\r\n show_sense(pos_wumpus,2,w);\r\n\r\n //get gold position\r\n System.out.println(\"\\nMasukkan posisi Gold\");\r\n gold_post = scan.nextInt();\r\n\r\n // Insert Pit, Gold, Wumpus\r\n insert(w);\r\n \r\n }", "public final String[] mo24226W(C7620bi c7620bi) {\n int i = 1;\n AppMethodBeat.m2504i(113302);\n String[] strArr = new String[2];\n String str = c7620bi.field_content;\n if (C5046bo.isNullOrNil(str)) {\n strArr[0] = \"\";\n strArr[1] = \"\";\n AppMethodBeat.m2505o(113302);\n return strArr;\n }\n int i2;\n String str2;\n if (c7620bi.field_isSend == 0) {\n i2 = 1;\n } else {\n i2 = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i2 != 0) {\n i2 = C1829bf.m3761ox(str);\n if (i2 != -1) {\n str = str.substring(i2 + 1).trim();\n }\n }\n C5136b Ro = ((C6982j) C1720g.m3528K(C6982j.class)).bOr().mo15261Ro(str);\n if (Ro.dua()) {\n str = Ro.label;\n str2 = Ro.eUu;\n strArr[0] = str;\n strArr[1] = str2;\n } else {\n strArr[0] = Ro.label;\n strArr[1] = \"\";\n }\n if (C5046bo.isNullOrNil(strArr[0]) && C5046bo.isNullOrNil(strArr[1])) {\n C4990ab.m7416i(\"MicroMsg.LocationServer\", \"pull from sever\");\n long j = c7620bi.field_msgId;\n if (!(this.nJC == null || this.nJC.contains(Long.valueOf(j)))) {\n str2 = c7620bi.field_content;\n if (c7620bi.field_isSend != 0) {\n i = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i != 0) {\n i = C1829bf.m3761ox(str2);\n if (i != -1) {\n str2 = str2.substring(i + 1).trim();\n }\n }\n Ro = C5136b.apD(str2);\n this.nJC.add(Long.valueOf(j));\n C18657c.agw().mo33924a(Ro.nJu, Ro.nJv, this.nJD, Long.valueOf(c7620bi.field_msgId));\n }\n }\n AppMethodBeat.m2505o(113302);\n return strArr;\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tObject o = arg0.getSource();\n\t\t\n\t\tif(o.equals(btnXoaLPT)){ //Xoa phieu nhap\n\t\t\tint row = table.getSelectedRow();\n\t\t\tif(row >= 0){\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog(this, \"Bạn có muốn xóa phiếu xuất này?\", \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Title on Box\", \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialogButton);\n\t\t\t\tif(dialogResult == 0) {\n\t\t\t\t\tString mapx = (String) table.getValueAt(row, 0);\n\n\t\t\t\t\tif(pxBAL.delete(mapx)){\n\t\t\t\t\t\tdataModel.removeRow(row);\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"xóa thành công!\");\n\t\t\t\t\t}else\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Phiếu xuất này không xóa được\");\n\t\t\t\t}\n\t\t\t}else\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Hãy chọn phiếu xuất để xóa!\");\n\t\t}else if(o.equals(btnThemLPT)){ //them thong tin phieu nhap\n\t\t\tframe.dispose();\n\t\t\tNhanVien_AddPhieuXuat_Form ql_AddLPT = new NhanVien_AddPhieuXuat_Form(get_Login_Text);\n\t\t\tql_AddLPT.frm.setVisible(true);\n\t\t}else if(o.equals(btnSuaLPT)){ //Sua thong tin phieu nhap\n\t\t\tint row = table.getSelectedRow();\n\t\t\tif(row>=0){\n\t\t\t\tframe.dispose();\n\t\t\t\tString maPX =\t(String) table.getValueAt(row, 0);\n\t\t\t\tNhanVien_UpdatePhieuXuat_Form ql_UpdatLPT = new NhanVien_UpdatePhieuXuat_Form(get_Login_Text,maPX);\n\t\t\t\tql_UpdatLPT.frame.setVisible(true);\t\t\t\t\n\t\t\t}else\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Hãy chọn phiếu xuất để sửa!\");\n\t\t}else if(o.equals(btnXuatExcel)){ // Xuat Excel\n\t\t\tUI_Helpers.exportToExcel(\"PhieuXuat\");\n\t\t}else if(o.equals(btnDangXuat)){ // Dang Xuat\n\t\t\tUI_Helpers.DangXuat(frame);\n\t\t}else if(o.equals(btnQuayLai)){ // Quay lai\n\t\t\tframe.dispose();\n\t\t\tNhanVien_Form_Main frmMain = new NhanVien_Form_Main(get_Login_Text);\n\t\t\tfrmMain.frame.setVisible(true);\n\t\t}\n\n\t}", "public static String _butpaso1_click() throws Exception{\nif (mostCurrent._imgmosquito.getVisible()==anywheresoftware.b4a.keywords.Common.True) { \n //BA.debugLineNum = 134;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 135;BA.debugLine=\"TimerAnimacion.Initialize(\\\"TimerAnimacion\\\", 10)\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.Initialize(processBA,\"TimerAnimacion\",(long) (10));\n //BA.debugLineNum = 136;BA.debugLine=\"TimerAnimacion.Enabled = True\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n }else {\n //BA.debugLineNum = 138;BA.debugLine=\"imgMosquito1.Left = -60dip\";\nmostCurrent._imgmosquito1.setLeft((int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (60))));\n //BA.debugLineNum = 139;BA.debugLine=\"imgMosquito1.Top = 50dip\";\nmostCurrent._imgmosquito1.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 140;BA.debugLine=\"imgMosquito1.Visible = True\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 141;BA.debugLine=\"TimerAnimacionEntrada.Initialize(\\\"TimerAnimacion\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.Initialize(processBA,\"TimerAnimacion_Entrada\",(long) (10));\n //BA.debugLineNum = 142;BA.debugLine=\"TimerAnimacionEntrada.Enabled = True\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n };\n //BA.debugLineNum = 149;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getAircraftSn(new DJIExecuteStringResultCallback(){\r\n\r\n @Override\r\n public void onResult(String result)\r\n {\r\n // TODO Auto-generated method stub\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"SN = \"+result));\r\n }\r\n \r\n });\r\n }", "public boolean whatNow (String action, player friday, player you){ // Method which will allow the ia to choose his action\n\t\tString testAction = \"Tank\"; // Create a String we will use a lot to test other string\n\t\tint actionIa; // If the ia is a Tank, forbid him to use his special attack. The purpose is to prevent him from useless turns\n\t\tif (friday.getName().equals(testAction)){ // If the name of the ia's class is Tank\n\t\t\t actionIa = (int)(Math.random() * 2); // His random will be between 0 or 1\n\t\t}\n\t\t\n\t\telse {\n\t\t\t actionIa = (int)(Math.random() * 3); // Else, his random will be between 0, 1 and 2\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Will be use to test if you attacked\n\t\t\n\t\t\n\t\tswitch (actionIa){ // Test ia's action\n\t\t\tcase 0: // 0, the enemy attack\n\t\t\t\tfriday.setSprite(\"attack\");\n\t\t\t\tSystem.out.println(\"The enemy attack\\n\"); // Warns the user\n\t\t\t\ttestAction = \"block\"; // Will be use to test if you block\n\t\t\t\tif (action.equals(testAction)){ // If you block\n\t\t\t\t\tSystem.out.println(\"You blocked the enemy's attack.\"); // Warns the user\n\t\t\t\t\tyou.setHp(you.getHp() - you.getDp()); // You loose as much hp as your dp\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tyou.setHp(you.getHp() - friday.getAp()); // Else, you loose as much hp as your enemy's ap\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1: // 1, the enemy block\n\t\t\t\tfriday.setSprite(\"block\");\n\t\t\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\t\t\tfriday.setHp(friday.getHp() - friday.getDp()); // The enemy loose as much hp as his dp\n\t\t\t\t\taction = \"\"; // Prevent you from attack a second time\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The enemy blocked your attack\\n\"); // Warns the user\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2: // 2, the enemy use his special power if he isn't a tank\n\t\t\t\tfriday.setSprite(\"special\");\n\t\t\t\tSystem.out.println(\"The enemy uses his special power.\"); // Warns the user\n\t\t\t\tfriday.special(); // Execute ia's special attack\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Reset testAction\n\t\t\n\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\tfriday.setHp(friday.getHp() - you.getAp()); // The enemy loose as much hp as your ap\n\t\t} // Nota Bene : if the enemy blocked your attack, this won't be executed because 'action = \"\";'\n\t\t\n\t\tSystem.out.println(\"You have \" + you.getHp() + \" HP left.\"); // Warns the user\n\t\tSystem.out.println(\"The ennemy have \" + friday.getHp() + \" HP left.\\n\"); // Warns the user\n\t\t\n\t\tif(you.getHp() <= 0){ // If you or the ia has no hp left, warn the system that the fight is over by setting 'end' on true and tell who died\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You died!\");\n\t\t\tyou.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse if(friday.getHp() <= 0){\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You killed the ennemy!\");\n\t\t\tfriday.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse { // Else, it just asks you what you want to do\n\t\t\tSystem.out.println(\"What do you want to do, attack, block or use your special power ?\"); // Asks what you want to do\n\t\t}\n\t\treturn end;\n\t}", "public AgentAction getNextMove(GameTile [][] visibleMap) {\r\n\t\t//Possible things to add to your moves\r\n//\t\tnextMove = AgentAction.doNothing;\r\n//\t\tnextMove = AgentAction.moveDown;\r\n//\t\tnextMove = AgentAction.moveUp;\r\n//\t\tnextMove = AgentAction.moveUp;\r\n//\t\tnextMove = AgentAction.moveLeft;\r\n//\t\tnextMove = AgentAction.pickupSomething;\r\n//\t\tnextMove = AgentAction.declareVictory;\r\n//\r\n//\t\tnextMove = AgentAction.shootArrowNorth;\r\n//\t\tnextMove = AgentAction.shootArrowSouth;\r\n//\t\tnextMove = AgentAction.shootArrowEast;\r\n//\t\tnextMove = AgentAction.shootArrowWest;\r\n//\t\tnextMove = AgentAction.quit\r\n\t\t\r\n\t\t\r\n\r\n\t\t//Ideally you would remove all this code, but I left it in so the keylistener would work\r\n\t\tif(keyboardPlayOnly) {\r\n\t\t\tif(nextMove == null) {\r\n\t\t\t\treturn AgentAction.doNothing;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tAgentAction tmp = nextMove;\r\n\t\t\t\tnextMove = null;\r\n\t\t\t\treturn tmp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//This code plays 5 \"games\" and then quits\r\n\t\t\t//Just does random things\r\n\t\t\tif(numGamesPlayed > 19) {\r\n\t\t\t\treturn AgentAction.quit;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(nextMoves.isEmpty()) {\r\n\t\t\t\t\tsetStartingPosition(visibleMap);\r\n//\t\t\t\t\tfindWumpus(visibleMap);\r\n//\t\t\t\t\tfindWumpus(visibleMap);\r\n//\t\t\t\t\tWumpusState currentState = huntTheWumpus(visibleMap);\r\n//\t\t\t\t\tSystem.out.println(wumpusHunted);\r\n//\t\t\t\t\tif(wumpusHunted) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\t\taddToNextMoves(currentState);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//this is the code to collect the gold\r\n//\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\tcurrentState = findTheGold(currentState);\r\n//\t\t\t\t\tif(currentState.getGoldCollected()) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\t\taddToNextMoves(currentState);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tif(!goldCollected) {\r\n\t\t\t\t\t\twellItsDarkNow(visibleMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(goldCollected) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n\t\t\t\t\t\taddToNextMoves(visibleMap);\r\n//\t\t\t\t\t\tgoldCollected = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif(!nextMoves.isEmpty()) {\r\n\t\t\t\t\tSystem.out.println(nextMoves.peek());\r\n\t\t\t\t\tsetNextMove(nextMoves.remove());\r\n//\t\t\t\t\tSystem.out.println(nextMove);\r\n//\t\t\t\t\treturn nextMove;\r\n\t\t\t\t}\r\n\t\t\t\treturn nextMove;\r\n//\t\t\t\tcurrentNumMoves++;\r\n//\t\t\t\tif(currentNumMoves < 20) {\r\n//\t\t\t\t\treturn AgentAction.randomAction();\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\treturn AgentAction.declareVictory;\r\n//\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {\n\trefreshTableMhs();\n\tfungsi.loncatCard(jPanel1, \"mahasiswa\");\n }", "abstract void boton1Jugador_actionPerformed(ActionEvent e);", "public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }", "public static String _btncerrarpopup_huevos_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 410;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 411;BA.debugLine=\"butPaso1.Visible = False\";\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 412;BA.debugLine=\"butPaso2.Visible = True\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 413;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 414;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 415;BA.debugLine=\"lblLabelPaso1.Visible = True\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 416;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 417;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 418;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 419;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 420;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 421;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 422;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 423;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 424;BA.debugLine=\"imgMosquito1.Visible = True\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 425;BA.debugLine=\"imgHuevos.Visible = True\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 426;BA.debugLine=\"lblEstadio.Visible = True\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 428;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private String menorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoIzq().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn menorTurno(a.hijoIzq());\n\t}", "private static void cajas() {\n\t\t\n\t}", "public final void cZO() {\n AppMethodBeat.i(7673);\n Bundle bundle = new Bundle();\n bundle.putLong(\"msg_id\", cZv().getIntent().getLongExtra(\"msg_id\", Long.MIN_VALUE));\n bundle.putString(\"sns_local_id\", cZv().getIntent().getStringExtra(\"sns_local_id\"));\n bundle.putInt(\"news_svr_id\", cZv().getIntent().getIntExtra(\"news_svr_id\", 0));\n bundle.putString(\"news_svr_tweetid\", cZv().getIntent().getStringExtra(\"news_svr_tweetid\"));\n bundle.putInt(\"message_index\", cZv().getIntent().getIntExtra(\"message_index\", 0));\n bundle.putString(\"rawUrl\", cZv().cOG);\n if (!bo.isNullOrNil(cZv().cOG) && cZv().cOG.endsWith(\"#rd\")) {\n String substring = cZv().cOG.substring(0, cZv().cOG.length() - 3);\n if (!(bo.isNullOrNil(cZv().uxh) || cZv().uxh.startsWith(substring))) {\n bundle.putString(\"rawUrl\", cZv().uxh);\n bundle.putLong(\"msg_id\", Long.MIN_VALUE);\n }\n } else if (!(bo.isNullOrNil(cZv().uxh) || cZv().uxh.startsWith(cZv().cOG))) {\n bundle.putString(\"rawUrl\", cZv().uxh);\n bundle.putLong(\"msg_id\", Long.MIN_VALUE);\n }\n Intent intent = cZv().getIntent();\n if (intent != null) {\n bundle.putString(\"preChatName\", intent.getStringExtra(\"preChatName\"));\n bundle.putInt(\"preMsgIndex\", intent.getIntExtra(\"preMsgIndex\", 0));\n bundle.putString(\"prePublishId\", intent.getStringExtra(\"prePublishId\"));\n bundle.putString(\"preUsername\", intent.getStringExtra(\"preUsername\"));\n }\n try {\n com.tencent.mm.plugin.webview.stub.b Z = cZv().icy.Z(bundle);\n if (Z.cYV()) {\n cZv().uhz.bJ(\"sendAppMessage\", false);\n com.tencent.mm.plugin.webview.ui.tools.jsapi.d dVar = cZv().uhz;\n HashMap cZP = cZP();\n if (dVar.ready) {\n Bundle JL = dVar.JL(1);\n if (JL == null || !JL.getBoolean(\"WebViewShare_reslut\", false)) {\n cZP = new HashMap();\n cZP.put(\"scene\", \"favorite\");\n dVar.uFo.evaluateJavascript(\"javascript:WeixinJSBridge._handleMessageFromWeixin(\" + i.a.b(\"menu:share:appmessage\", cZP, dVar.uFv, dVar.uFw) + \")\", null);\n try {\n dVar.icy.L(\"scene\", \"favorite\", dVar.uqj);\n } catch (Exception e) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e.getMessage());\n }\n } else {\n try {\n dVar.icy.L(\"scene\", \"favorite\", dVar.uqj);\n } catch (Exception e2) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e2.getMessage());\n }\n dVar.h(JL, \"sendAppMessage\");\n }\n } else {\n try {\n dVar.icy.L(\"scene\", \"favorite\", dVar.uqj);\n dVar.h(dVar.aL(cZP), \"sendAppMessage\");\n } catch (Exception e22) {\n ab.w(\"MicroMsg.JsApiHandler\", \"jsapiBundlePutString, ex = \" + e22.getMessage());\n }\n }\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"on favorite simple url\");\n AppMethodBeat.o(7673);\n return;\n }\n com.tencent.mm.plugin.fav.ui.c.a(Z.getRet(), cZv(), cZv().mUw);\n if (Z.getRet() == 0) {\n Jo(1);\n AppMethodBeat.o(7673);\n return;\n }\n Jo(2);\n AppMethodBeat.o(7673);\n } catch (Exception e222) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"edw, favoriteUrl fail, ex = \" + e222.getMessage());\n AppMethodBeat.o(7673);\n }\n }", "@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(((this.loginChange.getState() && this.passChange.getState())&&(ancienLogin.getText().compareToIgnoreCase(\"\")==0 ||nouveauLogin.getText().compareToIgnoreCase(\"\")==0 ||ancienPass.getText().compareToIgnoreCase(\"\")==0 ||nouveauPass.getText().compareToIgnoreCase(\"\")==0 ))||( this.loginChange.getState()&& (ancienLogin.getText().compareToIgnoreCase(\"\")==0||this.nouveauLogin.getText().compareToIgnoreCase(\"\")==0) )||(this.passChange.getState() &&(ancienPass.getText().compareToIgnoreCase(\"\")==0 ||nouveauPass.getText().compareToIgnoreCase(\"\")==0 ||this.ancienLogin.getText().compareToIgnoreCase(\"\")==0) ) )\n\t\t\tinfo.setText(\"quelques champs sont vides!!\");\n\t\telse{\n\t\t\tString message=\"\";\n\t\tif(this.loginChange.getState() && this.passChange.getState())\n\t\t\tmessage=Protocole.ChangeId+\":LP:\"+this.ancienLogin.getText()+\":\"+this.nouveauLogin.getText()+\":\"+this.ancienPass.getText()+\":\"+this.nouveauPass.getText();\n\t\telse{\n\t\t\tif(this.loginChange.getState())\n\t\t\t\tmessage=Protocole.ChangeId+\":L:\"+this.ancienLogin.getText()+\":\"+this.nouveauLogin.getText();\n\t\t\telse if(this.passChange.getState()){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmessage=Protocole.ChangeId+\":P:\"+this.ancienLogin.getText().trim()+\":\"+this.ancienPass.getText()+\":\"+this.nouveauPass.getText();\n\t\t\t}\n\t\t}\n\t\tinfo.setText(\"envoi en cours...\");\n\t\t//envoi de message\n\t\tSocket messagerie;\n\t\ttry {\n\t\t\tmessagerie = new Socket(Config.IPserveur,Config.portServeur);\n\t\t\tBufferedReader messagerieLecture= new BufferedReader(\n\t\t\t\t\t new InputStreamReader(messagerie .getInputStream()));\n\t\t\t//String mes=CriptageB.CripterChaine(message,0);\n\t\t\tString mes=message;\n\t\t\t new PrintWriter(\n\t\t\t\t\t new BufferedWriter(\n\t\t\t\t\t new OutputStreamWriter(messagerie .getOutputStream())),\n\t\t\t\t\t true).println(mes);\n\t\t\t message=messagerieLecture.readLine();\n\t\t\t//message=DecriptageB.decripter(mes,0);\n\t\t\tmessagerie.close();\n\t\t\tif(message.compareToIgnoreCase(\"SUCCESS_LP\")==0){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><body>votre login et mot de pass ont été bien modifiés:<br>votre nouveau Login:<h1>\"+this.nouveauLogin.getText()+\"</h1><br>nouveau pass:<h1>\"+this.nouveauPass.getText()+\"</h1><br>les notifications seront prises en comptes à la prochaine conexion<br><br>merci!</body></html>\");\n\t\t\tthis.login=this.nouveauLogin.getText().trim();\n\t\t\t\tsetVisible(false);\n\t\t\t}\n\t\t\telse if(message.compareToIgnoreCase(\"SUCCESS_P\")==0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><body>votre mot de pas a été bien modifié<br>votre nouveau pass:<h1>\"+this.nouveauPass.getText()+\"</h1><br>les notifications seront prises en comptes à la prochaine conexion<br><br>merci!</body></html>\");\n\t\t\t\tsetVisible(false);\n\t\t\t}\n\t\t\telse if(message.compareToIgnoreCase(\"SUCCESS_L\")==0){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><body><h1>votre login a été bien modifié<br>votre nouveau login:<h1>\"+this.nouveauLogin.getText()+\"</h1><br>les notifications seront prises en comptes à la prochaine conexion<br>merci!</body></html>\");\n\t\t\t\tthis.login=this.nouveauLogin.getText().trim();\n\t\t\t\tsetVisible(false);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tinfo.setText(\"<html><body>erreur lors du traitement<br>veuillez bien <br>verifier vos informations <br></body> </html>\");\n\t\t\t\tthis.nouveauLogin.setText(\"\");\n\t\t\t\tthis.ancienLogin.setText(\"\");\n\t\t\t\tthis.nouveauPass.setText(\"\");\n\t\t\t\tthis.ancienPass.setText(\"\");\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tinfo.setText(\"erreur lors de l'envoi\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tinfo.setText(\"erreur lors de l'envoi\");\n\t\t}\n\t\t\n\t\t\n\t\t}\n\t}", "private void initialize() throws IOException {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 633, 594);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"RO提取玩家ID号\");\r\n\t\tlblNewLabel.setBounds(24, 102, 132, 29);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\r\n \t\t \r\n \t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setText(\"请输入玩家名称\");\r\n\t\ttextField_1.setBounds(170, 88, 283, 60);\r\n\t\tframe.getContentPane().add(textField_1);\r\n\t\t\r\n \t\t\r\n\t\tJButton btnNewButton = new JButton(\"提取礼包\");\r\n\t\t btnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString playName=textField_1.getText();\r\n\t\t\t\tString result = null;\r\n\t\t\t\tString codeList=\"FMT|MILKTEA|SUSU|JTKJZ|BIAOGE|CFCRAZY|GJWD|JLASX|DCK|CNBOY|RUOFENG|CPCDHL|WXS|qxd|CAOMEI|CHUNHEI|LFQ|SQLFR|7hao|SXZB|lexburner|NAI|SUFEI|XZJET|ADOU|NJXW|SJJ|XIAOXIAO|DBJ\";\r\n\t\t\t\tString code[] = codeList.split(\"\\\\|\");\r\n\t\t\t\tString name;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tname = java.net.URLEncoder.encode(playName, \"utf-8\");\r\n\t\t\t\tfor (String c : code){\r\n\t\t\t\t\t StringBuffer params = new StringBuffer();\r\n\t\t\t\t\t params.append(\"callback=Query1102009803182119503617_\"+System.currentTimeMillis());\r\n\t\t\t\t\t params.append(\"&\");\r\n\t\t\t\t\t params.append(\"name=\"+name);\r\n\t\t\t\t\t params.append(\"&\");\r\n\t\t\t\t\t params.append(\"code=\"+c);\r\n\t\t\t\t\t params.append(\"&\");\r\n\t\t\t\t\t params.append(\"_=\"+System.currentTimeMillis());\r\n\t\t\t\t\t executor.execute(new Runnable() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tString abc = post(params);\r\n\t\t\t\t\t\t\ttextPane.append(abc+\"\\n\\r\");\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t });\r\n\t\t\t\t\t\t\r\n\t\t\t\t}} catch (UnsupportedEncodingException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} \r\n\t\t\t\t\r\n\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(222, 453, 126, 36);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tlabel = new JLabel(\"礼包类型\");\r\n\t\tlabel.setBounds(50, 210, 106, 18);\r\n\t\tframe.getContentPane().add(label);\r\n\t\t\r\n\t\tJComboBox comboBox = new JComboBox();\r\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"RO集合礼包1\"}));\r\n\t\tcomboBox.setSelectedIndex(0);\r\n\t\tcomboBox.setBounds(170, 195, 283, 50);\r\n\t\tframe.getContentPane().add(comboBox);\r\n\t\t\r\n\t\ttextPane = new JTextArea();\r\n \t\ttextPane.setBounds(66, 258, 410, 158);\r\n \t\ttextPane.setLineWrap(true);\r\n \t\tframe.getContentPane().add(textPane);\r\n\t\t\r\n\t}" ]
[ "0.6029184", "0.58498776", "0.5822632", "0.57730955", "0.5772579", "0.57543343", "0.56783056", "0.5663574", "0.5661997", "0.56585664", "0.56470114", "0.56201494", "0.5594234", "0.5593071", "0.5579733", "0.55659294", "0.55614513", "0.5558969", "0.5556825", "0.5555765", "0.55532336", "0.5547417", "0.5541893", "0.5518206", "0.5516091", "0.55130386", "0.5510497", "0.55096877", "0.5492526", "0.54819095", "0.5474397", "0.5465304", "0.5447623", "0.54424036", "0.5440059", "0.54372066", "0.5436032", "0.54352695", "0.5432801", "0.5432395", "0.54273957", "0.5426352", "0.54235315", "0.542179", "0.5420375", "0.5419759", "0.5416812", "0.5415725", "0.5399341", "0.5393881", "0.5389767", "0.53891325", "0.5384564", "0.53812665", "0.5380533", "0.53783697", "0.53749186", "0.5357519", "0.53563845", "0.53550833", "0.5354858", "0.53542227", "0.5351793", "0.5350663", "0.5349913", "0.5345828", "0.5345479", "0.53445387", "0.53442425", "0.5340201", "0.5340019", "0.5338881", "0.5338128", "0.5336985", "0.5331066", "0.53294337", "0.5327939", "0.5327909", "0.53263056", "0.5320396", "0.5320268", "0.5319026", "0.5313321", "0.5311253", "0.53093636", "0.53054225", "0.5298541", "0.5298287", "0.52944845", "0.5293834", "0.52883554", "0.5284775", "0.52846134", "0.52837723", "0.52798194", "0.5277027", "0.5275666", "0.5274981", "0.5270991", "0.5270108", "0.52692" ]
0.0
-1
This deal with HiDPI, EMulGL and Windows+AWT
protected void configureScaler(Chart chart) { // This allows dealing with a difference // between emulgl and native // TODO : https://github.com/jzy3d/jzy3d-api/issues/304 scaled = !chart.getCanvas().isNative(); // This allows dealing with a difference // between Win+AWT and the other cases when // using HiDPI monitors // https://github.com/jzy3d/jzy3d-api/issues/101 IPainter painter = chart.getPainter(); if(painter.getOS().isWindows() && painter.getWindowingToolkit().isAWT()) { scaled = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract float getXdpi();", "protected byte desiredWinScale() { return 9; }", "public abstract float getYdpi();", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < main_panel_width\r\n \t\t\t&& scn_image.getHeight() < main_panel_height){\r\n \t\t\tscn_font_size++;\r\n \t\t} else {\r\n \t\t scn_font_size--;\r\n \t\t break;\r\n \t\t}\r\n \t} \t\r\n \tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \tcalc_screen_size();\r\n start_scn_updates();\r\n }", "private static void initUsableDisplaySizes() {\n\t\t// Optimized display dimensions for display resolutions\n\t\tdisplaySizes.add(new Dimension(640, 480)); // Smaller 4:3 (1024x768 and smaller)\n\t\tdisplaySizes.add(new Dimension(800, 600)); // Larger 4:3 (1280x1024)\n\t\tdisplaySizes.add(new Dimension(864, 486)); // Larger 16:9 (1366x768 and larger)\n\t}", "int getHorizontalResolution();", "public interface User32 extends StdCallLibrary{\n\n\tUser32 INSTANCE = (User32) Native.loadLibrary(\"User32\", User32.class);\n\n\tint SM_CXSCREEN = 0;\n\tint SM_CYSCREEN = 1;\n\n\tint GetSystemMetrics(int nIndex);\n\n\tint SPI_GETWORKAREA = 48;\n\n\tint SystemParametersInfoW(int uiAction, int uiParam, RECT pvParam, int fWinIni);\n\n\tPointer GetForegroundWindow();\n\n\tint GW_HWNDFIRST = 0;\n\tint GW_HWNDNEXT = 2;\n\n\tPointer GetWindow(Pointer hWnd, int uCmd);\n\n\tint IsWindow(Pointer hWnd);\n\tint IsWindowVisible(Pointer hWnd);\n\n\tint GWL_STYLE = -16;\n\tint GWL_EXSTYLE = -20;\n\n\tint GetWindowLongW(Pointer hWnd, int nIndex);\n\tint SetWindowLongW(Pointer hWnd, int nIndex, int dwNewLong);\n\n\tint WS_MAXIMIZE = 0x01000000;\n\tint WS_EX_LAYERED = 0x00080000;\n\n\tint IsIconic(Pointer hWnd);\n\n\tint GetWindowTextW(Pointer hWnd, char[] lpString, int nMaxCount);\n\tint GetClassNameW(Pointer hWnd, char[] lpString, int nMaxCount);\n\n\tint GetWindowRect(Pointer hWnd, RECT lpRect);\n\n\tint ERROR = 0;\n\n\tint GetWindowRgn(Pointer hWnd, Pointer hRgn);\n\n\tint MoveWindow(Pointer hWnd, int X, int Y, int nWidth, int nHeight, int bRepaint);\n\n\tint BringWindowToTop(Pointer hWnd);\n\n\tPointer GetDC(Pointer hWnd);\n\tint ReleaseDC(Pointer hWnd, Pointer hDC);\n\n\tint ULW_ALPHA = 2;\n\n\tint UpdateLayeredWindow(Pointer hWnd, Pointer hdcDst,\n POINT pptDst, SIZE psize,\n Pointer hdcSrc, POINT pptSrc, int crKey,\n BLENDFUNCTION pblend, int dwFlags);\n\n interface WNDENUMPROC extends StdCallCallback {\n /** Return whether to continue enumeration. */\n boolean callback(Pointer hWnd, Pointer arg);\n }\n\n boolean EnumWindows(WNDENUMPROC lpEnumFunc, Pointer arg);\n\n}", "public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n\t\tGLES20.glViewport(0, 0, width, height);\n\t\tLog.d(\"ShelXle.Droid Screen Size\", width + \" \" + height);\n\t\tpixh = height;\n\t\tpixw = width;\n\t\tfpsscal = 350.0f / Math.min(width, height);\n\t\tfpsMat[0] = -fpsscal;\n\t\tfpsMat[12] = 1.0f - fpsscal;\n\t\tfpsMat3[0] = -fpsscal*1.24f;\n\t\tfpsMat3[12] = 1.0f - fpsscal*1.24f;\n\n\t\tfpsMat4[0] = -fpsscal*1.26f;\n\t\tfpsMat4[12] = 1.0f - fpsscal*1.26f;\n\t\tfpsMat2[0] = -0.25f * fpsscal;\n\t\tLog.d(\"ShelXle.Droid FPS text scaling \", fpsscal + \" \");\n\t\tfloat ratio = (float) width / height;\n\t\tfloat fh = (float) Math.tan(29.0 / 360.0 * 3.14159265358979) * 5.0f;\n\t\tfloat fw = fh * ratio;\n\t\tMatrix.frustumM(proj, 0, -fw, fw, -fh, fh, 5.0f, 800.0f);\n\t\tMatrix.setLookAtM(mv, 0, 0.0f, 200f, 0f, 0f, 0.0f, 0.0f, 0.0f, 00f, 1f);\n\t\tMatrix.multiplyMM(pmv1, 0, proj, 0, mv, 0);\n\t\tSystem.arraycopy(pmv1, 0, proj, 0, 16);\n\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t/*\n\t\t * if (f!=null){ f.write(proj); f.write(proj);\n\t\t * \n\t\t * }\n\t\t */\n\t\t// Matrix.setIdentityM(proj,0);\n\t\t// Matrix.perspectiveM(proj, 0, 29.0f,ratio,5.0f,800.0f);\n\n\t}", "public void setup( int width, int height, boolean mipMapping, InputHandler inputHandlerParent ) {\n reconstruct( null, null, null, null );\n if ( inputHandlerParent != null ) {\n inputHandlerParent.addToAttachedHandlers( inputHandler );\n }\n\n if ( initialized ) {\n throw new IllegalStateException( \"may be called only once\" );\n }\n initialize( powerOf2SizeIfNeeded( width, mipMapping ), powerOf2SizeIfNeeded( height, mipMapping ) );\n\n this.width = powerOf2SizeIfNeeded( width, mipMapping );\n this.height = powerOf2SizeIfNeeded( height, mipMapping );\n setModelBound( new OrientedBoundingBox() );\n updateModelBound();\n\n desktop.setPreferredSize( new Dimension( width, height ) );\n desktopWidth = width;\n desktopHeight = height;\n awtWindow.pack();\n\n TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();\n ts.setCorrection( TextureState.CM_PERSPECTIVE );\n texture = new Texture();\n texture.setFilter( Texture.FM_LINEAR );\n texture.setMipmapState( mipMapping ? Texture.MM_LINEAR_LINEAR : Texture.MM_LINEAR );\n texture.setWrap( Texture.WM_WRAP_S_WRAP_T );\n\n graphics = ImageGraphics.createInstance( this.width, this.height, mipMapping ? 2 : 0 );\n enableAntiAlias( graphics );\n graphics.translate( ( this.width - width ) * 0.5f, ( this.height - height ) * 0.5f );\n texture.setImage( graphics.getImage() );\n\n texture.setScale( new Vector3f( 1, -1, 1 ) );\n ts.setTexture( texture );\n ts.apply();\n this.setRenderState( ts );\n\n AlphaState alpha = DisplaySystem.getDisplaySystem().getRenderer().createAlphaState();\n alpha.setEnabled( true );\n alpha.setBlendEnabled( true );\n alpha.setSrcFunction( AlphaState.SB_SRC_ALPHA );\n alpha.setDstFunction( AlphaState.DB_ONE_MINUS_SRC_ALPHA );\n alpha.setTestEnabled( true );\n alpha.setTestFunction( AlphaState.TF_GREATER );\n this.setRenderState( alpha );\n\n// Toolkit.getDefaultToolkit().addAWTEventListener( new AWTEventListener() {\n// public void eventDispatched( AWTEvent event ) {\n// if ( isShowingJFrame() ) {\n// logger.info( event );\n// }\n// }\n// }, 0xFFFFFFFFFFFFFFFFl );\n\n xUpdateAction = new XUpdateAction();\n yUpdateAction = new YUpdateAction();\n wheelUpdateAction = new WheelUpdateAction();\n wheelUpdateAction.setSpeed( AWTMouseInput.WHEEL_AMP );\n allButtonsUpdateAction = new ButtonAction( InputHandler.BUTTON_ALL );\n keyUpdateAction = new KeyUpdateAction();\n\n setupDefaultInputBindings();\n\n if ( desktopsUsed == 0 ) {\n PopupFactory.setSharedInstance( new MyPopupFactory() );\n }\n desktopsUsed++;\n\n SwingUtilities.invokeLater( new Runnable() {\n public void run() {\n JMEDesktop.this.setFocusOwner( desktop );\n }\n } );\n\n initialized = true;\n\n setSynchronizingThreadsOnUpdate( true );\n }", "short getHResolution();", "private void setupRenderingHints() {\n argoRenderingHints = new RenderingHints(null);\n\n argoRenderingHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\n if (Configuration.getBoolean(Argo.KEY_SMOOTH_EDGES, false)) {\n argoRenderingHints.put(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_QUALITY);\n argoRenderingHints.put(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n argoRenderingHints.put(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n } else {\n argoRenderingHints.put(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_SPEED);\n argoRenderingHints.put(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_OFF);\n argoRenderingHints.put(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n }\n }", "@Override\n protected float calculateSpeedPerPixel\n (DisplayMetrics displayMetrics) {\n return MILLISECONDS_PER_INCH/displayMetrics.densityDpi;\n }", "@Override\r\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) \r\n\t{\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\r\n\t\tSystem.out.println(\"Screen Mesure: \"+getMeasuredWidth()+\" \"+getMeasuredHeight());\r\n\t\twindowW = getMeasuredWidth();\r\n\t\twindowH = getMeasuredHeight();\r\n\t \r\n\t \r\n\t}", "public void graphicalSettings(int ps, int tw, int th) {\n\n setZoom(ps);\n T_WIDTH = tw;\n T_HEIGHT = th;\n\n SCREEN_WIDTH = T_WIDTH * P_SCALE + EMBOSS;\n SCREEN_HEIGHT = T_HEIGHT * P_SCALE + EMBOSS;\n }", "public interface Render2DProvider {\n /*---------------------------------------Static params-------------------------------------------------------------*/\n public enum STYLE {\n COLOR, GRADIENT\n }\n\n public enum CAP {BUTT, ROUND, SQUARE}\n\n public enum JOIN {ROUND, BEVEL, MITER}\n\n public enum TEXT_ALIGN {START, END, LEFT, RIGHT, CENTER}\n\n public enum TEXT_BASELINE {TOP, HANGING, MIDDLE, ALPHABETIC, IDEOGRAPHIC, BOTTOM}\n\n\n /*---------------------------------------Screen details-------------------------------------------------------------*/\n\n /**\n * Returns the current screen width.\n *\n * @return screen width.\n */\n public int getScreenWidth();\n\n /**\n * Returns the current screen height.\n *\n * @return screen height.\n */\n public int getScreenHeight();\n\n /**\n * Converts the formatted length string into the corresponding dimension in pixels. The formatted string includes\n * a number and a suffix, which can be one of the fallowing : px for pixels, % for percent fallowed by w or h (w\n * for a percentage based of the width of the screen and h for a percentage based on the height on the screen).\n *\n * @param dimension a formatted string representing the dimension to be converted.\n * @return the dimension converted to pixels. If the formatted string contains errors , then the function\n * will return -1.\n */\n public int convertDimension(String dimension);\n\n /**\n * Converts the given color formatted as a string, into a {@link Color} object. The formatted string can be one of\n * two types:\n * <ul>\n * <li>\n * A color comprised of a # symbol fallowed by four pairs of hexadecimal numbers, which represent,\n * in order : red, green, blue, and alpha. For example #A000007F results in a dark semitransparent red.\n * </li>\n * <li>\n * A color comprised of a function call to rgba(...) which takes 4 params, all numbers between 0 and 255,\n * representing , in order : red, green , blue and alpha. For example rgba(160, 0, 0, 127) yelds the\n * same color as before.\n * </li>\n * <li>\n * A color comprised of a function call to rgb(...) which takes 3 params, all numbers between 0 and 255,\n * representing , in order : red, green and blue. For example rgb(160, 0, 0) yields the same color as before,\n * except it is now fully opaque. The value of alpha is considered to be fully opaque.\n * </li>\n * </ul>\n *\n * @param color the color formatted as a string.\n * @return the corresponding {@link Color} object.\n */\n public Color convertColor(String color);\n\n /**\n * Returns the given string's width when drawn, using the current text metrics.\n *\n * @param text which text to calculate it's dimension.\n * @return the width of the string as it will be rendered on the screen.\n */\n public int getStringWidth(String text);\n\n /*---------------------------------------Drawing style-------------------------------------------------------------*/\n\n\n /**\n * Sets the active fille color.\n *\n * @param color the color to use for future drawings.\n */\n public void setFillColor(Color color);\n\n /**\n * Sets the active fill gradient.\n */\n public void setFillGradient(Gradient gradient);\n\n /**\n * Sets the active stroke color.\n *\n * @param color the color to use for future drawings.\n */\n public void setStrokeColor(Color color);\n\n /**\n * Sets the active stroke gradient.\n */\n public void setStrokeGradient(Gradient gradient);\n\n\n /**\n * Sets the active drawing color for filled shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setFillStyle(STYLE style);\n\n /**\n * Sets the active drawing color for stroked shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setStrokeStyle(STYLE style);\n\n /**\n * Cap style for line drawings.\n *\n * @param cap cap style (butt, round or square endings).\n */\n public void setDrawingCap(CAP cap);\n\n /**\n * Sets the type of join used for line only drawings.\n *\n * @param join the type of line join(round, bevel or miter). Miter size can be set using the setMiterLimit function.\n */\n public void setDrawingJoin(JOIN join);\n\n /**\n * Sets the miter limit when the join type is miter.\n *\n * @param limit miter limit.\n */\n public void setMiterLimit(float limit);\n\n /**\n * Sets the line width when drawing only with lines.\n *\n * @param lineWidth line width.\n */\n public void setLineWidth(float lineWidth);\n\n /**\n * Sets the font for when drawing / stroking text.\n *\n * @param font which font to use given\n */\n public void setTextFont(Font font);\n\n /**\n * Sets which text align to use when drawing strings.\n *\n * @param align\n */\n public void setTextAlign(TEXT_ALIGN align);\n\n /**\n * Sets which baseline to use when drawing strings.\n *\n * @param baseline\n */\n public void setTextBaseline(TEXT_BASELINE baseline);\n\n /**\n * Sets the current drawing alpha. All subsequent drawing operations will be affected by this alpha value.\n *\n * @param alpha a value between 0 and 1 representing drawing alpha.\n */\n public void setAlpha(float alpha);\n\n /**\n * Returns the current drawing alpha.\n *\n * @return the current drawing alpha.\n */\n public float getAlpha();\n\n /*---------------------------------------General drawing-----------------------------------------------------------*/\n\n /**\n * Begins the drawing cycle. Useful for double buffering and predrawing techniques.\n */\n public void beginDrawing();\n\n /**\n * Ends the current drawing cycle. Useful for flushing the double buffer to the screen.\n */\n public void endDrawing();\n\n /**\n * This method saves all the current params for the drawing api (like color, clipping area etc). This method\n * should be called before setting custom drawing params.\n */\n public void pushState();\n\n /**\n * This method restores current drawing params (like color, fill styles etc.). This method should be called\n * after setting cutom params for drawing.\n */\n public void popState();\n\n /**\n * Clear the entire screen using a complete transparent black.\n */\n public void clearAll();\n\n /**\n * Clear only a portion of the screen using a complete transparent black.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void clearRect(int x, int y, float width, float height);\n\n /**\n * Sets clipping area for future drawing. Any drawings outside this rectangle will not be rendered.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void setRectangleClip(int x, int y, float width, float height);\n\n /**\n * Sets the clipping area for future drawings in the shape of a rounded rectangle.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n * @param radius the radius of the rounded rectangle.\n */\n public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);\n\n /**\n * Sets the clipping area for future drawings in the shape of a circle.\n *\n * @param x the x coordinate for the center of the circle.\n * @param y the y coordinate for the center of the circle.\n * @param radius the radius of the circle.\n */\n public void setCircleClip(int x, int y, int radius);\n\n /**\n * Removes clipping area. Has the same affect as calling {@link Render2DProvider#setRectangleClip(int, int, float, float)}\n * with a rectangle described by coordinates (0, 0) and dimensions (\n * {@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth(),\n * ({@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth()}}\n */\n public void removeClip();\n\n /*-------------------------------------Drawing Transform------------------------------------------------------------*/\n\n /**\n * Translates the origin of future drawing on the screen.\n *\n * @param x amount on the x axis to translate.\n * @param y amount on the y axis to translate.\n */\n public void translate(float x, float y);\n\n /**\n * Rotates the drawing api which will affect all future drawings.\n *\n * @param angle the amount to rotate in radians.\n */\n public void rotate(float angle);\n\n /**\n * Scales the drawing api which will affect all future drawings.\n *\n * @param x amount on the x axis to scale.\n * @param y amount on the y axis to scale.\n */\n public void scale(float x, float y);\n\n /**\n * Adds the given values to the transform of the drawing api, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void transform(float a11, float a12, float a21, float a22, float x, float y);\n\n /**\n * Sets the transform of the drawing api to the given values, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void setTransform(float a11, float a12, float a21, float a22, float x, float y);\n /*---------------------------------------Shape drawing ------------------------------------------------------------*/\n\n /**\n * Fills a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void fillRectangle(int x, int y, int width, int height);\n\n /**\n * Fills a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void fillRectangle(RectangleShape rectangle);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void fillRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to fill.\n * @param radius the radius of the corners.\n */\n public void fillRoundRectangle(RectangleShape rectangle, int radius);\n\n\n /**\n * Strokes a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void strokeRectangle(int x, int y, int width, int height);\n\n /**\n * Strokes a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void strokeRectangle(RectangleShape rectangle);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void strokeRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to stroke.\n * @param radius the radius of the corners.\n */\n public void strokeRoundRectangle(RectangleShape rectangle, int radius);\n\n /**\n * Fills an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void fillArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Strokes an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void strokeArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Creates a filled shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void fillShape(Shape shape);\n\n /**\n * Creates a stroked shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void strokeShape(Shape shape);\n\n /**\n * Draws the given shape using the current fill and stroke color. This uses the shapes own \"filled\" and \"stroked\"\n * params to determine whether or not it should be filled and / or stroked.\n *\n * @param shape which shape to draw.\n */\n public void drawShape(Shape shape);\n\n /*-------------------------------------------Text Drawing ---------------------------------------------------------*/\n\n /**\n * Draws the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to draw.\n */\n public void fillString(float x, float y, String text);\n\n /**\n * Strokes the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to stroke.\n */\n public void strokeString(float x, float y, String text);\n\n /*---------------------------------------------ImageResource Drawing-------------------------------------------------------*/\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will retain it's dimensions when drawn.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY);\n\n /**\n * Draw the specified imageResource to the canvas. The source imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight);\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will be cropped using a rectangle described the the parameters:\n * sourceX, sourceY, sourceWidth and sourceHeight. The cropped imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n * @param sourceX the x coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceY the y coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceWidth the width of the rectangle which will crop the source imageResource.\n * @param sourceHeight the height of the rectangle which will crop the source imageResource.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight,\n float sourceX, float sourceY, float sourceWidth, float sourceHeight);\n\n\n}", "public void updateBaseDisplayMetrics(int baseWidth, int baseHeight, int baseDensity) {\n int i;\n if (baseDensity == 0) {\n Slog.e(TAG, \"density is 0\", new Exception());\n }\n if (HwActivityTaskManager.isCastDisplay(getDisplay().getUniqueId(), \"padCast\")) {\n DisplayContent defaultDisplayContent = this.mWmService.getDefaultDisplayContentLocked();\n int defaultDisplayWidth = 0;\n int defaultDisplayHeight = 0;\n if (defaultDisplayContent != null) {\n defaultDisplayWidth = defaultDisplayContent.mBaseDisplayWidth;\n defaultDisplayHeight = defaultDisplayContent.mBaseDisplayHeight;\n }\n float defaultRatio2 = 0.0f;\n float baseRatio = baseWidth != 0 ? ((float) baseHeight) / ((float) baseWidth) : 0.0f;\n float defaultRatio1 = defaultDisplayWidth != 0 ? ((float) defaultDisplayHeight) / ((float) defaultDisplayWidth) : 0.0f;\n if (defaultDisplayHeight != 0) {\n defaultRatio2 = ((float) defaultDisplayWidth) / ((float) defaultDisplayHeight);\n }\n if (Math.abs(baseRatio - defaultRatio1) <= 0.001f || Math.abs(baseRatio - defaultRatio2) <= 0.001f) {\n this.mRotation = 0;\n } else {\n baseWidth = baseHeight;\n baseHeight = baseWidth;\n this.mRotation = 1;\n }\n }\n this.mBaseDisplayWidth = baseWidth;\n this.mBaseDisplayHeight = baseHeight;\n this.mBaseDisplayDensity = baseDensity;\n int i2 = this.mMaxUiWidth;\n if (i2 > 0 && (i = this.mBaseDisplayWidth) > i2) {\n this.mBaseDisplayHeight = (this.mBaseDisplayHeight * i2) / i;\n this.mBaseDisplayDensity = (this.mBaseDisplayDensity * i2) / i;\n this.mBaseDisplayWidth = i2;\n if (WindowManagerDebugConfig.DEBUG_DISPLAY) {\n Slog.v(TAG, \"Applying config restraints:\" + this.mBaseDisplayWidth + \"x\" + this.mBaseDisplayHeight + \" at density:\" + this.mBaseDisplayDensity + \" on display:\" + getDisplayId());\n }\n }\n this.mBaseDisplayRect.set(0, 0, this.mBaseDisplayWidth, this.mBaseDisplayHeight);\n updateBounds();\n this.mDisplayCutoutCache.clearCacheTable();\n }", "void setHResolution(short resolution);", "public static double getDisplayDpi() {\n\t\treturn javafx.stage.Screen.getPrimary().getDpi();\n\t}", "protected abstract void narisi(Graphics2D g, double wPlatno, double hPlatno);", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "int getVerticalResolution();", "public abstract GraphicsDevice getDefaultScreenDevice();", "private void m13085a() {\n DisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n this.f12281d = new Paint();\n this.f12281d.setColor(this.f12278a);\n this.f12281d.setAntiAlias(true);\n this.f12281d.setTextSize(displayMetrics.scaledDensity * ((float) this.f12279b));\n }", "public native void updateRendering(int width, int height);", "public native void updateRendering(int width, int height);", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n // 取得裝置螢幕的寬和高\n Display defDisp = getWindowManager().getDefaultDisplay();\n int dispWidth = defDisp.getWidth();\n int dispHeight = defDisp.getHeight();\n String s;\n if (dispWidth > dispHeight)\n \ts = \"橫向螢幕\";\n else if (dispWidth < dispHeight)\n \ts = \"直式螢幕\";\n else\n \ts = \"正方形螢幕\";\n Toast.makeText(Main.this, s + System.getProperty(\"line.separator\") + \"w = \" + dispWidth + \" h = \" + dispHeight, \n \t\tToast.LENGTH_LONG)\n\t\t\t.show();\n\n // 顯示程式可用區域的寬和高\n Toast.makeText(Main.this, \"appw = \" + MyLayout.appWindowWidth + \" apph = \" + MyLayout.appWindowHeight, \n \t\tToast.LENGTH_LONG)\n\t\t\t.show();\n\n\t\t// 取得裝置螢幕的實際解析度\n DisplayMetrics dm = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(dm);\n // 也可以利用dm.heightPixels和dm.widthPixels取得螢幕的寬和高\n\t\tToast.makeText(Main.this, \"水平dpi = \" + dm.xdpi + \" 垂直dpi = \" + dm.ydpi, \n \t\tToast.LENGTH_LONG)\n\t\t\t.show();\n\n\t\t// 取得裝置螢幕的解析度分類\n int screenSizeClass = dm.densityDpi;\n\t\tswitch(screenSizeClass){\n\t\tcase DisplayMetrics.DENSITY_LOW:\n\t\t\tToast.makeText(Main.this, \"low density\", \n\t \t\tToast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\tbreak;\n\t\tcase DisplayMetrics.DENSITY_MEDIUM:\n\t\t\tToast.makeText(Main.this, \"medium density\", \n\t \t\tToast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\tbreak;\n\t\tcase DisplayMetrics.DENSITY_HIGH:\n\t\t\tToast.makeText(Main.this, \"high density\", \n\t \t\tToast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\tbreak;\n\t\tcase DisplayMetrics.DENSITY_XHIGH:\n\t\t\tToast.makeText(Main.this, \"x-high density\", \n\t \t\tToast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\tbreak;\n\t\t}\n }", "public native void createRenderWindow(final int width, final int height, final long handle);", "int wkhtmltoimage_init(int use_graphics);", "private void initLowLevelGraphics(RandomAccessStream out, int width,\n\t\t\tint height) throws IOException {\n\t\tout.setLength(0);\n\t\tobjects = new ArrayList();\n\t\tmeta = new PlaceableMetaHeader();\n\t\thead = new WindowsMetaHeader();\n\t\t/* unsigned char s[]= { 0xD7, 0xCD, 0xC6, 0x9A}; */\n\t\t/* Aldus Placeable file data */\n\t\tmeta.Key = (0x9AC6CDD7); /* Always this value */\n\t\tmeta.Handle = (0); /* always 0 */\n\t\tmeta.Left = 0; /* coordinate in twips (1/1440 inc) */\n\t\tmeta.Top = 0;\n\t\tmeta.Right = width;\n\t\tmeta.Bottom = height;\n\t\tmeta.Inch = (1440); /* metafile units per inch */\n\t\tmeta.Reserved = (0);\n\t\tmeta.Checksum = (0);\n\t\t/* Plain Metafile part */\n\t\thead.FileType = (1);\n\t\thead.HeaderSize = (9);\n\t\thead.Version = (0x0300);\n\t\thead.FileSize = (9);\n\t\thead.NumOfObjects = (0);\n\t\thead.MaxRecordSize = (0);\n\t\thead.NumOfParams = (0);\n\t\t/* administrative part */\n\t\tthis.out = out;\n\t\t// NOTE : create the object table.\n\n\t\t/* Ok. Now, we write the header */\n\t\twriteHEADER();\n\t\t/* Good. Now, commands can be written to the file */\n\t}", "public void SetResolution() {\r\n DisplayMetrics displayMetrics = new DisplayMetrics();\r\n WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);\r\n wm.getDefaultDisplay().getMetrics(displayMetrics);\r\n this.ScreenWidth = displayMetrics.widthPixels;\r\n this.ScreenHeight = displayMetrics.heightPixels;\r\n }", "public float calculateSpeedPerPixel(DisplayMetrics displayMetrics) {\n return 100.0f / ((float) displayMetrics.densityDpi);\n }", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "private void setup2DGraphics() {\n\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\t\tGL11.glOrtho(0, width, 0, height, 1, -1);\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "public void configureDisplayPolicy() {\n int longSize;\n int shortSize;\n if (this.mBaseDisplayDensity == 0) {\n Slog.e(TAG, \"density is 0\");\n return;\n }\n int width = this.mBaseDisplayWidth;\n int height = this.mBaseDisplayHeight;\n if (width > height) {\n shortSize = height;\n longSize = width;\n } else {\n shortSize = width;\n longSize = height;\n }\n int i = this.mBaseDisplayDensity;\n this.mDisplayPolicy.updateConfigurationAndScreenSizeDependentBehaviors();\n this.mDisplayRotation.configure(width, height, (shortSize * 160) / i, (longSize * 160) / i);\n DisplayFrames displayFrames = this.mDisplayFrames;\n DisplayInfo displayInfo = this.mDisplayInfo;\n displayFrames.onDisplayInfoUpdated(displayInfo, calculateDisplayCutoutForRotation(displayInfo.rotation));\n this.mIgnoreRotationForApps = isNonDecorDisplayCloseToSquare(0, width, height);\n }", "private void initDisplay() throws LWJGLException {\n\n\t\tDisplay.setDisplayMode(Display.getDesktopDisplayMode());\n\t\tDisplay.setFullscreen(true);\n\t\twidth = Display.getDisplayMode().getWidth();\n\t\theight = Display.getDisplayMode().getHeight();\n\t\tDisplay.create();\n\t\tDisplay.setVSyncEnabled(true);\n\t}", "static void renderScreenImage(JmolViewer viewer, Object g, Object size) {\n /**\n * @j2sNative\n * \n */\n {\n System.out.println(\"\" + viewer + g + size);\n }\n }", "private static native void setImagesize_0(long nativeObj, int W, int H);", "public native double getXResolution() throws MagickException;", "public void settings() { size(1200, 800); }", "private void m12811c(Map<String, String> map) {\n Rect rect = new Rect();\n this.f10118e.getGlobalVisibleRect(rect);\n map.put(\"pt\", String.valueOf(rect.top));\n map.put(\"pl\", String.valueOf(rect.left));\n map.put(\"ph\", String.valueOf(this.f10118e.getMeasuredHeight()));\n map.put(\"pw\", String.valueOf(this.f10118e.getMeasuredWidth()));\n WindowManager windowManager = (WindowManager) this.f10116c.getSystemService(\"window\");\n DisplayMetrics displayMetrics = new DisplayMetrics();\n windowManager.getDefaultDisplay().getMetrics(displayMetrics);\n map.put(\"vph\", String.valueOf(displayMetrics.heightPixels));\n map.put(\"vpw\", String.valueOf(displayMetrics.widthPixels));\n }", "public int getDisplayWidth() {\n return isHiRes() ? 640 : 320;\n }", "void setHorizontalResolution(int horizontalResolution);", "@Override\n\tpublic void doPaint(Matrix m) {\n\t\tSystem.out.println(\"在windows操作系统中显示图像\");\n\t}", "private void m8132a() {\n this.f6227a.setScaleType(ScaleType.FIT_XY);\n addView(this.f6227a, new LayoutParams(-2, -2));\n C2322j.m9044a(this.f6227a, C2322j.INTERNAL_AD_MEDIA);\n }", "public native double getYResolution() throws MagickException;", "@Override\r\n public void renderScreenImage(Object context, Object size) {\r\n\t\tDisplay.renderScreenImage(vwr, context, size);\r\n\t}", "com.microsoft.schemas.office.x2006.digsig.STPositiveInteger xgetHorizontalResolution();", "public static void disposeGraphicsConfig(long paramLong) {\n/* 119 */ D3DRenderQueue d3DRenderQueue = getInstance();\n/* 120 */ d3DRenderQueue.lock();\n/* */ \n/* */ try {\n/* 123 */ RenderBuffer renderBuffer = d3DRenderQueue.getBuffer();\n/* 124 */ d3DRenderQueue.ensureCapacityAndAlignment(12, 4);\n/* 125 */ renderBuffer.putInt(74);\n/* 126 */ renderBuffer.putLong(paramLong);\n/* */ \n/* */ \n/* 129 */ d3DRenderQueue.flushNow();\n/* */ } finally {\n/* 131 */ d3DRenderQueue.unlock();\n/* */ } \n/* */ }", "@Override\n protected void onMeasure(int w, int h) {\n w = MeasureSpec.getSize(w);\n h = MeasureSpec.getSize(h);\n// Log.d(\"surfMeasure\", w + \" \" + h);\n\n int oldH = h, oldW = w;\n\n if (w >= 0 && h >= 0) {\n\n if (h == 0 || !fullScreenDisplay || w / ((double) h) <= 16 / 9.0) {\n h = (int) (w * 9 / 16.0);\n } else {\n w = (int) (h * 16 / 9.0);\n }\n if (fullScreen) {\n setX((oldW - w) / 2);\n setY((oldH - h) / 2);\n }\n// Display.this.setLayoutParams(new LinearLayout.LayoutParams(w, h));\n }\n\n updateSizes(w, h);\n\n// Log.d(\"si\", w + \" \" + h);\n\n\n setMeasuredDimension(w, h);\n Display.this.setMeasuredDimension(w, h);\n\n// super.onMeasure(w, h);\n// ViewGroup.LayoutParams lp = getLayoutParams();\n// lp.width = w;\n// lp.height = h;\n// this.setLayoutParams(lp);\n// setMinimumWidth(w);\n// setMinimumHeight(h);\n\n }", "private static native long createSuperpixelLSC_0(long image_nativeObj, int region_size, float ratio);", "public GraphicsDevice getScreen();", "public native void setUnits(int resolutionType) throws MagickException;", "private void renderUI()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile image = new File(BASE_DIREC + \"foreground.png\");\n\t\t\tforeground = ImageResizer.resizeImage(ImageIO.read(image), scale * BASE_SCALE);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// System.err.println(ioe);\n\t\t\t// Oh well\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tFile image = new File(BASE_DIREC + \"continue.png\");\n\t\t\tcontinueImage = ImageResizer.resizeImage(ImageIO.read(image), scale * BASE_SCALE);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// System.err.println(ioe);\n\t\t\t// Oh well\n\t\t}\n\t}", "public static void setImagesSizeWithDpi(int deviceDPI){\n switch (deviceDPI){\n case DisplayMetrics.DENSITY_XHIGH:\n POSTER_SIZE = \"w342\";\n BACKDROP_SIZE = \"w780\";\n break;\n case DisplayMetrics.DENSITY_XXHIGH:\n POSTER_SIZE = \"w500\";\n BACKDROP_SIZE = \"w1000\";\n break;\n case DisplayMetrics.DENSITY_XXXHIGH:\n POSTER_SIZE = \"w780\";\n BACKDROP_SIZE = \"w1920\";\n break;\n default:\n POSTER_SIZE = \"w185\";\n BACKDROP_SIZE = \"w500\";\n break;\n }\n }", "@Override\r\n\tpublic void onSurfaceChanged(GL10 gl, int width, int height) {\n\t\tLog.d(TAG, \"onSurfacechanged\");\r\n\t\tif (height == 0) height = 1; // To prevent divide by zero\r\n\t float aspect = (float)width / height;\r\n\t \r\n\t // Set the viewport (display area) to cover the entire window\r\n\t gl.glViewport(0, 0, width, height);\r\n\t \r\n\t // Setup perspective projection, with aspect ratio matches viewport\r\n\t gl.glMatrixMode(GL10.GL_PROJECTION); // Select projection matrix\r\n\t gl.glLoadIdentity(); // Reset projection matrix\r\n\t // Use perspective projection\r\n\t GLU.gluPerspective(gl, 45, aspect, 0.1f, 100.f);\r\n\t \r\n\t gl.glMatrixMode(GL10.GL_MODELVIEW); // Select model-view matrix\r\n\t gl.glLoadIdentity(); // Reset\r\n\t \r\n\t // You OpenGL|ES display re-sizing code here\r\n\t // ......\r\n\t}", "public void paintComponent(Graphics g1){\n Graphics2D g = (Graphics2D)g1;\n g.setFont(font);\n super.paintComponent(g);\n\t\tsetBackground(Color.WHITE);\n if (Window.isStretched()) g.drawImage(buffered, 0,0,Window.getWidth(),Window.getHeight(),this);\n else{ //for exact proportion\n double ratio = ((double)Window.getOriginalWidth()/(double)Window.getOriginalHeight());\n g.drawImage(buffered,\n /*x1*/ (Window.getWidth()/2)-((int)(Window.getHeight()*ratio)/2),\n /*y1*/ 0,\n /*x2*/ (int)(Window.getHeight()*ratio),\n /*y2*/ Window.getHeight(), this);\n }\n Window.updateSize(); //Window.jf\n doubleBuffer();\n\t}", "public void setTargetResolution(int w, int h) {\n captureW = w;\n captureH = h;\n }", "int wkhtmltoimage_extended_qt();", "DeviceProfile(Context context, InvariantDeviceProfile inv, Info info, WindowBounds windowBounds,\n boolean isMultiWindowMode, boolean transposeLayoutWithOrientation,\n boolean useTwoPanels) {\n\n this.inv = inv;\n this.isLandscape = windowBounds.isLandscape();\n this.isMultiWindowMode = isMultiWindowMode;\n this.transposeLayoutWithOrientation = transposeLayoutWithOrientation;\n windowX = windowBounds.bounds.left;\n windowY = windowBounds.bounds.top;\n\n isScalableGrid = inv.isScalable && !isVerticalBarLayout() && !isMultiWindowMode;\n\n // Determine sizes.\n widthPx = windowBounds.bounds.width();\n heightPx = windowBounds.bounds.height();\n availableWidthPx = windowBounds.availableSize.x;\n availableHeightPx = windowBounds.availableSize.y;\n\n mInfo = info;\n isTablet = info.isTablet(windowBounds);\n isPhone = !isTablet;\n isTwoPanels = isTablet && useTwoPanels;\n\n aspectRatio = ((float) Math.max(widthPx, heightPx)) / Math.min(widthPx, heightPx);\n boolean isTallDevice = Float.compare(aspectRatio, TALL_DEVICE_ASPECT_RATIO_THRESHOLD) >= 0;\n\n // Some more constants\n context = getContext(context, info, isVerticalBarLayout()\n ? Configuration.ORIENTATION_LANDSCAPE\n : Configuration.ORIENTATION_PORTRAIT);\n mMetrics = context.getResources().getDisplayMetrics();\n final Resources res = context.getResources();\n\n if (isTwoPanels) {\n if (isLandscape) {\n mTypeIndex = InvariantDeviceProfile.INDEX_TWO_PANEL_LANDSCAPE;\n } else {\n mTypeIndex = InvariantDeviceProfile.INDEX_TWO_PANEL_PORTRAIT;\n }\n } else {\n if (isLandscape) {\n mTypeIndex = InvariantDeviceProfile.INDEX_LANDSCAPE;\n } else {\n mTypeIndex = InvariantDeviceProfile.INDEX_DEFAULT;\n }\n }\n\n hotseatQsbHeight = res.getDimensionPixelSize(R.dimen.qsb_widget_height);\n boolean isTaskBarEnabled = LineageSettings.System.getInt(context.getContentResolver(),\n LineageSettings.System.ENABLE_TASKBAR, isTablet ? 1 : 0) == 1;\n isTaskbarPresent = isTaskBarEnabled && ApiWrapper.TASKBAR_DRAWN_IN_PROCESS\n && FeatureFlags.ENABLE_TASKBAR.get();\n if (isTaskbarPresent) {\n taskbarSize = res.getDimensionPixelSize(R.dimen.taskbar_size);\n }\n\n edgeMarginPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin);\n\n desiredWorkspaceHorizontalMarginPx = getHorizontalMarginPx(inv, res);\n desiredWorkspaceHorizontalMarginOriginalPx = desiredWorkspaceHorizontalMarginPx;\n\n allAppsOpenVerticalTranslate = res.getDimensionPixelSize(\n R.dimen.all_apps_open_vertical_translate);\n\n folderLabelTextScale = res.getFloat(R.dimen.folder_label_text_scale);\n folderContentPaddingLeftRight =\n res.getDimensionPixelSize(R.dimen.folder_content_padding_left_right);\n folderContentPaddingTop = res.getDimensionPixelSize(R.dimen.folder_content_padding_top);\n\n cellLayoutBorderSpacePx = getCellLayoutBorderSpace(inv);\n allAppsCellSpacePx = new Point(\n pxFromDp(inv.borderSpaces[InvariantDeviceProfile.INDEX_ALL_APPS].x, mMetrics, 1f),\n pxFromDp(inv.borderSpaces[InvariantDeviceProfile.INDEX_ALL_APPS].y, mMetrics, 1f));\n cellLayoutBorderSpaceOriginalPx = new Point(cellLayoutBorderSpacePx);\n folderCellLayoutBorderSpaceOriginalPx = pxFromDp(inv.folderBorderSpace, mMetrics, 1f);\n folderCellLayoutBorderSpacePx = new Point(folderCellLayoutBorderSpaceOriginalPx,\n folderCellLayoutBorderSpaceOriginalPx);\n\n int cellLayoutPaddingLeftRightMultiplier = !isVerticalBarLayout() && isTablet\n ? PORTRAIT_TABLET_LEFT_RIGHT_PADDING_MULTIPLIER : 1;\n int cellLayoutPadding = isScalableGrid\n ? 0\n : res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_layout_padding);\n\n if (isTwoPanels) {\n cellLayoutPaddingLeftRightPx = 0;\n cellLayoutBottomPaddingPx = 0;\n } else if (isLandscape) {\n cellLayoutPaddingLeftRightPx = 0;\n cellLayoutBottomPaddingPx = cellLayoutPadding;\n } else {\n cellLayoutPaddingLeftRightPx = cellLayoutPaddingLeftRightMultiplier * cellLayoutPadding;\n cellLayoutBottomPaddingPx = 0;\n }\n\n workspacePageIndicatorHeight = res.getDimensionPixelSize(\n R.dimen.workspace_page_indicator_height);\n mWorkspacePageIndicatorOverlapWorkspace =\n res.getDimensionPixelSize(R.dimen.workspace_page_indicator_overlap_workspace);\n\n iconDrawablePaddingOriginalPx =\n res.getDimensionPixelSize(R.dimen.dynamic_grid_icon_drawable_padding);\n\n dropTargetBarSizePx = res.getDimensionPixelSize(R.dimen.dynamic_grid_drop_target_size);\n dropTargetDragPaddingPx = res.getDimensionPixelSize(R.dimen.drop_target_drag_padding);\n dropTargetTextSizePx = res.getDimensionPixelSize(R.dimen.drop_target_text_size);\n\n workspaceSpringLoadedBottomSpace =\n res.getDimensionPixelSize(R.dimen.dynamic_grid_min_spring_loaded_space);\n\n workspaceCellPaddingXPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_padding_x);\n\n numShownHotseatIcons =\n isTwoPanels ? inv.numDatabaseHotseatIcons : inv.numShownHotseatIcons;\n numShownAllAppsColumns =\n isTwoPanels ? inv.numDatabaseAllAppsColumns : inv.numAllAppsColumns;\n hotseatBarSizeExtraSpacePx = 0;\n hotseatBarTopPaddingPx =\n res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_top_padding);\n hotseatBarBottomPaddingPx = (isTallDevice ? 0\n : res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_bottom_non_tall_padding))\n + res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_bottom_padding);\n hotseatBarSidePaddingEndPx =\n res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_side_padding);\n // Add a bit of space between nav bar and hotseat in vertical bar layout.\n hotseatBarSidePaddingStartPx = isVerticalBarLayout() ? workspacePageIndicatorHeight : 0;\n hotseatExtraVerticalSize =\n res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_extra_vertical_size);\n updateHotseatIconSize(\n pxFromDp(inv.iconSize[InvariantDeviceProfile.INDEX_DEFAULT], mMetrics, 1f));\n\n qsbBottomMarginOriginalPx = isScalableGrid\n ? res.getDimensionPixelSize(R.dimen.scalable_grid_qsb_bottom_margin)\n : 0;\n\n overviewShowAsGrid = isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get();\n overviewTaskMarginPx = overviewShowAsGrid\n ? res.getDimensionPixelSize(R.dimen.overview_task_margin_focused)\n : res.getDimensionPixelSize(R.dimen.overview_task_margin);\n overviewTaskMarginGridPx = res.getDimensionPixelSize(R.dimen.overview_task_margin_grid);\n overviewTaskIconSizePx = res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_size);\n overviewTaskIconDrawableSizePx =\n res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_drawable_size);\n overviewTaskIconDrawableSizeGridPx =\n res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_drawable_size_grid);\n overviewTaskThumbnailTopMarginPx = overviewTaskIconSizePx + overviewTaskMarginPx * 2;\n if (overviewShowAsGrid) {\n if (isLandscape) {\n overviewActionsTopMarginGesturePx = res.getDimensionPixelSize(\n R.dimen.overview_actions_top_margin_gesture_grid_landscape);\n overviewActionsBottomMarginGesturePx = res.getDimensionPixelSize(\n R.dimen.overview_actions_bottom_margin_gesture_grid_landscape);\n overviewPageSpacing = res.getDimensionPixelSize(\n R.dimen.overview_page_spacing_grid_landscape);\n } else {\n overviewActionsTopMarginGesturePx = res.getDimensionPixelSize(\n R.dimen.overview_actions_top_margin_gesture_grid_portrait);\n overviewActionsBottomMarginGesturePx = res.getDimensionPixelSize(\n R.dimen.overview_actions_bottom_margin_gesture_grid_portrait);\n overviewPageSpacing = res.getDimensionPixelSize(\n R.dimen.overview_page_spacing_grid_portrait);\n }\n overviewActionsButtonSpacing = res.getDimensionPixelSize(\n R.dimen.overview_actions_button_spacing_grid);\n } else {\n overviewActionsTopMarginGesturePx = res.getDimensionPixelSize(\n R.dimen.overview_actions_margin_gesture);\n overviewActionsBottomMarginGesturePx = overviewActionsTopMarginGesturePx;\n overviewActionsButtonSpacing = res.getDimensionPixelSize(\n R.dimen.overview_actions_button_spacing);\n overviewPageSpacing = res.getDimensionPixelSize(R.dimen.overview_page_spacing);\n }\n overviewActionsMarginThreeButtonPx = res.getDimensionPixelSize(\n R.dimen.overview_actions_margin_three_button);\n // Grid task's top margin is only overviewTaskIconSizePx + overviewTaskMarginGridPx, but\n // overviewTaskThumbnailTopMarginPx is applied to all TaskThumbnailView, so exclude the\n // extra margin when calculating row spacing.\n int extraTopMargin = overviewTaskThumbnailTopMarginPx - overviewTaskIconSizePx\n - overviewTaskMarginGridPx;\n overviewRowSpacing = res.getDimensionPixelSize(R.dimen.overview_grid_row_spacing)\n - extraTopMargin;\n overviewGridSideMargin = isLandscape\n ? res.getDimensionPixelSize(R.dimen.overview_grid_side_margin_landscape)\n : res.getDimensionPixelSize(R.dimen.overview_grid_side_margin_portrait);\n\n // Calculate all of the remaining variables.\n extraSpace = updateAvailableDimensions(res);\n\n // Now that we have all of the variables calculated, we can tune certain sizes.\n if (isScalableGrid && inv.devicePaddings != null) {\n // Paddings were created assuming no scaling, so we first unscale the extra space.\n int unscaledExtraSpace = (int) (extraSpace / cellScaleToFit);\n DevicePadding padding = inv.devicePaddings.getDevicePadding(unscaledExtraSpace);\n\n int paddingWorkspaceTop = padding.getWorkspaceTopPadding(unscaledExtraSpace);\n int paddingWorkspaceBottom = padding.getWorkspaceBottomPadding(unscaledExtraSpace);\n int paddingHotseatBottom = padding.getHotseatBottomPadding(unscaledExtraSpace);\n\n workspaceTopPadding = Math.round(paddingWorkspaceTop * cellScaleToFit);\n workspaceBottomPadding = Math.round(paddingWorkspaceBottom * cellScaleToFit);\n extraHotseatBottomPadding = Math.round(paddingHotseatBottom * cellScaleToFit);\n\n hotseatBarSizePx += extraHotseatBottomPadding;\n\n qsbBottomMarginPx = Math.round(qsbBottomMarginOriginalPx * cellScaleToFit);\n } else if (!isVerticalBarLayout() && isPhone && isTallDevice) {\n // We increase the hotseat size when there is extra space.\n\n if (Float.compare(aspectRatio, TALLER_DEVICE_ASPECT_RATIO_THRESHOLD) >= 0\n && extraSpace >= Utilities.dpToPx(TALL_DEVICE_EXTRA_SPACE_THRESHOLD_DP)) {\n // For taller devices, we will take a piece of the extra space from each row,\n // and add it to the space above and below the hotseat.\n\n // For devices with more extra space, we take a larger piece from each cell.\n int piece = extraSpace < Utilities.dpToPx(TALL_DEVICE_MORE_EXTRA_SPACE_THRESHOLD_DP)\n ? 7 : 5;\n\n int extraSpace = ((getCellSize().y - iconSizePx - iconDrawablePaddingPx * 2)\n * inv.numRows) / piece;\n\n workspaceTopPadding = extraSpace / 8;\n int halfLeftOver = (extraSpace - workspaceTopPadding) / 2;\n hotseatBarTopPaddingPx += halfLeftOver;\n hotseatBarSizeExtraSpacePx = halfLeftOver;\n } else {\n // ie. For a display with a large aspect ratio, we can keep the icons on the\n // workspace in portrait mode closer together by adding more height to the hotseat.\n // Note: This calculation was created after noticing a pattern in the design spec.\n hotseatBarSizeExtraSpacePx = getCellSize().y - iconSizePx\n - iconDrawablePaddingPx * 2 - workspacePageIndicatorHeight;\n }\n\n updateHotseatIconSize(iconSizePx);\n\n // Recalculate the available dimensions using the new hotseat size.\n updateAvailableDimensions(res);\n }\n updateWorkspacePadding();\n\n flingToDeleteThresholdVelocity = res.getDimensionPixelSize(\n R.dimen.drag_flingToDeleteMinVelocity);\n\n // This is done last, after iconSizePx is calculated above.\n Path dotPath = GraphicsUtils.getShapePath(DEFAULT_DOT_SIZE);\n mDotRendererWorkSpace = new DotRenderer(iconSizePx, dotPath, DEFAULT_DOT_SIZE);\n mDotRendererAllApps = iconSizePx == allAppsIconSizePx ? mDotRendererWorkSpace :\n new DotRenderer(allAppsIconSizePx, dotPath, DEFAULT_DOT_SIZE);\n }", "public void onMeasure(int r12, int r13) {\n /*\n r11 = this;\n super.onMeasure(r12, r13);\n r12 = r11.videoAspectRatio;\n r13 = 0;\n r12 = (r12 > r13 ? 1 : (r12 == r13 ? 0 : -1));\n if (r12 > 0) goto L_0x000b;\n L_0x000a:\n return;\n L_0x000b:\n r12 = r11.getMeasuredWidth();\n r0 = r11.getMeasuredHeight();\n r1 = (float) r12;\n r2 = (float) r0;\n r3 = r1 / r2;\n r4 = r11.videoAspectRatio;\n r4 = r4 / r3;\n r5 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r4 = r4 - r5;\n r6 = java.lang.Math.abs(r4);\n r7 = 1008981770; // 0x3c23d70a float:0.01 double:4.9850323E-315;\n r8 = 0;\n r6 = (r6 > r7 ? 1 : (r6 == r7 ? 0 : -1));\n if (r6 > 0) goto L_0x0031;\n L_0x0029:\n r12 = r11.aspectRatioUpdateDispatcher;\n r13 = r11.videoAspectRatio;\n r12.scheduleUpdate(r13, r3, r8);\n return;\n L_0x0031:\n r6 = r11.resizeMode;\n r7 = 2;\n r9 = 1;\n if (r6 == 0) goto L_0x0061;\n L_0x0037:\n if (r6 == r9) goto L_0x005c;\n L_0x0039:\n if (r6 == r7) goto L_0x0056;\n L_0x003b:\n r10 = 3;\n if (r6 == r10) goto L_0x004c;\n L_0x003e:\n r10 = 4;\n if (r6 == r10) goto L_0x0042;\n L_0x0041:\n goto L_0x006b;\n L_0x0042:\n r13 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1));\n if (r13 <= 0) goto L_0x0049;\n L_0x0046:\n r12 = r11.videoAspectRatio;\n goto L_0x0058;\n L_0x0049:\n r13 = r11.videoAspectRatio;\n goto L_0x005e;\n L_0x004c:\n r13 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1));\n if (r13 > 0) goto L_0x0053;\n L_0x0050:\n r13 = r11.videoAspectRatio;\n goto L_0x005e;\n L_0x0053:\n r12 = r11.videoAspectRatio;\n goto L_0x0058;\n L_0x0056:\n r12 = r11.videoAspectRatio;\n L_0x0058:\n r2 = r2 * r12;\n r12 = (int) r2;\n goto L_0x006b;\n L_0x005c:\n r13 = r11.videoAspectRatio;\n L_0x005e:\n r1 = r1 / r13;\n r0 = (int) r1;\n goto L_0x006b;\n L_0x0061:\n r13 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1));\n if (r13 <= 0) goto L_0x0068;\n L_0x0065:\n r13 = r11.videoAspectRatio;\n goto L_0x005e;\n L_0x0068:\n r12 = r11.videoAspectRatio;\n goto L_0x0058;\n L_0x006b:\n r13 = r11.aspectRatioUpdateDispatcher;\n r1 = r11.videoAspectRatio;\n r13.scheduleUpdate(r1, r3, r9);\n r13 = 1073741824; // 0x40000000 float:2.0 double:5.304989477E-315;\n r12 = android.view.View.MeasureSpec.makeMeasureSpec(r12, r13);\n r13 = android.view.View.MeasureSpec.makeMeasureSpec(r0, r13);\n super.onMeasure(r12, r13);\n r12 = r11.getChildCount();\n L_0x0083:\n if (r8 >= r12) goto L_0x00cc;\n L_0x0085:\n r13 = r11.getChildAt(r8);\n r0 = r13 instanceof android.view.TextureView;\n if (r0 == 0) goto L_0x00c9;\n L_0x008d:\n r12 = r11.matrix;\n r12.reset();\n r12 = r11.getWidth();\n r12 = r12 / r7;\n r0 = r11.getHeight();\n r0 = r0 / r7;\n r1 = r11.matrix;\n r2 = r11.rotation;\n r2 = (float) r2;\n r12 = (float) r12;\n r0 = (float) r0;\n r1.postRotate(r2, r12, r0);\n r1 = r11.rotation;\n r2 = 90;\n if (r1 == r2) goto L_0x00b0;\n L_0x00ac:\n r2 = 270; // 0x10e float:3.78E-43 double:1.334E-321;\n if (r1 != r2) goto L_0x00c1;\n L_0x00b0:\n r1 = r11.getHeight();\n r1 = (float) r1;\n r2 = r11.getWidth();\n r2 = (float) r2;\n r1 = r1 / r2;\n r2 = r11.matrix;\n r5 = r5 / r1;\n r2.postScale(r5, r1, r12, r0);\n L_0x00c1:\n r13 = (android.view.TextureView) r13;\n r12 = r11.matrix;\n r13.setTransform(r12);\n goto L_0x00cc;\n L_0x00c9:\n r8 = r8 + 1;\n goto L_0x0083;\n L_0x00cc:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.p003ui.AspectRatioFrameLayout.onMeasure(int, int):void\");\n }", "public void computeScreenConfiguration(Configuration config) {\n int i;\n int i2;\n int i3;\n boolean rotated;\n int i4;\n DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode, config);\n calculateBounds(displayInfo, this.mTmpBounds);\n config.windowConfiguration.setBounds(this.mTmpBounds);\n int dw = displayInfo.logicalWidth;\n int dh = displayInfo.logicalHeight;\n config.orientation = dw <= dh ? 1 : 2;\n config.windowConfiguration.setWindowingMode(getWindowingMode());\n config.windowConfiguration.setDisplayWindowingMode(getWindowingMode());\n config.windowConfiguration.setRotation(displayInfo.rotation);\n float density = this.mDisplayMetrics.density;\n config.screenWidthDp = (int) (((float) this.mDisplayPolicy.getConfigDisplayWidth(dw, dh, displayInfo.rotation, config.uiMode, displayInfo.displayCutout)) / density);\n config.screenHeightDp = (int) (((float) this.mDisplayPolicy.getConfigDisplayHeight(dw, dh, displayInfo.rotation, config.uiMode, displayInfo.displayCutout)) / density);\n this.mDisplayPolicy.getNonDecorInsetsLw(displayInfo.rotation, dw, dh, displayInfo.displayCutout, this.mTmpRect);\n int leftInset = this.mTmpRect.left;\n int topInset = this.mTmpRect.top;\n config.windowConfiguration.setAppBounds(leftInset, topInset, displayInfo.appWidth + leftInset, displayInfo.appHeight + topInset);\n boolean rotated2 = displayInfo.rotation == 1 || displayInfo.rotation == 3;\n int i5 = config.screenLayout & -769;\n if ((displayInfo.flags & 16) != 0) {\n i = 512;\n } else {\n i = 256;\n }\n config.screenLayout = i5 | i;\n config.compatScreenWidthDp = (int) (((float) config.screenWidthDp) / this.mCompatibleScreenScale);\n config.compatScreenHeightDp = (int) (((float) config.screenHeightDp) / this.mCompatibleScreenScale);\n config.compatSmallestScreenWidthDp = computeCompatSmallestWidth(rotated2, config.uiMode, dw, dh, displayInfo.displayCutout);\n config.densityDpi = displayInfo.logicalDensityDpi;\n if (!displayInfo.isHdr() || !this.mWmService.hasHdrSupport()) {\n i2 = 4;\n } else {\n i2 = 8;\n }\n if (!displayInfo.isWideColorGamut() || !this.mWmService.hasWideColorGamutSupport()) {\n i3 = 1;\n } else {\n i3 = 2;\n }\n config.colorMode = i2 | i3;\n config.touchscreen = 1;\n config.keyboard = 1;\n config.navigation = 1;\n int keyboardPresence = 0;\n int navigationPresence = 0;\n InputDevice[] devices = this.mWmService.mInputManager.getInputDevices();\n int len = devices != null ? devices.length : 0;\n int i6 = 0;\n while (i6 < len) {\n InputDevice device = devices[i6];\n if (device.isVirtual()) {\n rotated = rotated2;\n } else {\n rotated = rotated2;\n if (this.mWmService.mInputManager.canDispatchToDisplay(device.getId(), displayInfo.type == 5 ? 0 : this.mDisplayId)) {\n int sources = device.getSources();\n int presenceFlag = device.isExternal() ? 2 : 1;\n if (!this.mWmService.mIsTouchDevice) {\n config.touchscreen = 1;\n } else if ((sources & 4098) == 4098) {\n config.touchscreen = 3;\n }\n if ((sources & 65540) == 65540) {\n config.navigation = 3;\n navigationPresence |= presenceFlag;\n i4 = 2;\n } else if ((sources & 513) == 513 && config.navigation == 1) {\n i4 = 2;\n config.navigation = 2;\n navigationPresence |= presenceFlag;\n } else {\n i4 = 2;\n }\n if (device.getKeyboardType() == i4) {\n config.keyboard = i4;\n keyboardPresence |= presenceFlag;\n }\n }\n }\n i6++;\n rotated2 = rotated;\n }\n if (config.navigation == 1 && this.mWmService.mHasPermanentDpad) {\n config.navigation = 2;\n navigationPresence |= 1;\n }\n boolean hardKeyboardAvailable = config.keyboard != 1;\n if (hardKeyboardAvailable != this.mWmService.mHardKeyboardAvailable) {\n this.mWmService.mHardKeyboardAvailable = hardKeyboardAvailable;\n this.mWmService.mH.removeMessages(22);\n this.mWmService.mH.sendEmptyMessage(22);\n }\n this.mDisplayPolicy.updateConfigurationAndScreenSizeDependentBehaviors();\n config.keyboardHidden = 1;\n config.hardKeyboardHidden = 1;\n config.navigationHidden = 1;\n this.mWmService.mPolicy.adjustConfigurationLw(config, keyboardPresence, navigationPresence);\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n drawCanvas = new Canvas(canvasBitmap);\n }", "public int getDisplayHeight()\n {\n if ( amiga.isPAL() ) {\n return isInterlaced() ? 512 : 256;\n }\n return isInterlaced() ? 400 : 200;\n }", "private void createCanvasAndFrame(){\n image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n canvas = new Canvas();\n Dimension dimension = new Dimension((int)(width*scale), (int)(height*scale));\n canvas.setPreferredSize(dimension);\n canvas.setMaximumSize(dimension);\n canvas.setMinimumSize(dimension);\n\n frame = new JFrame(title);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n frame.add(canvas, BorderLayout.CENTER);\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setResizable(false);\n frame.setVisible(true);\n\n canvas.createBufferStrategy(2);\n bufferStrategy = canvas.getBufferStrategy();\n graphics = bufferStrategy.getDrawGraphics();\n }", "@Override\n public void settings() {\n size(800, 800, P3D);\n }", "@Override\n\tprotected void setupWindow(RenderSystem renderSystem, GraphicsEnvironment graphicsEnvironment) {\n\t\tif (BUILD_STATE.equalsIgnoreCase(\"release\")) {\n\t\t\tDisplaySettingsDialog displaySettingsDialogue = new DisplaySettingsDialog(\n\t\t\t\t\tgraphicsEnvironment.getDefaultScreenDevice());\n\t\t\tdisplaySettingsDialogue.showIt();\n\t\t\trenderWindow = renderSystem.createRenderWindow(displaySettingsDialogue.getSelectedDisplayMode(),\n\t\t\t\t\tdisplaySettingsDialogue.isFullScreenModeSelected());\n\t\t\trenderWindow.setTitle(\"The Most Dangerous Game | Saechao Lucas/Nhat Doan A3\");\n\t\t} else if (BUILD_STATE.equalsIgnoreCase(\"test\")) {\n\t\t\tint displayHeight = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()\n\t\t\t\t\t.getDisplayMode().getHeight();\n\t\t\tint displayWidth = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()\n\t\t\t\t\t.getDisplayMode().getWidth();\n\t\t\tif (displayHeight > 1920 && displayWidth > 1080)\n\t\t\t\trenderWindow = renderSystem.createRenderWindow(new DisplayMode(1920, 1080, 24, 60), false);\n\t\t\telse\n\t\t\t\trenderWindow = renderSystem.createRenderWindow(new DisplayMode(1280, 720, 24, 60), false);\n\t\t}\n\t}", "Component createComponent(Component paramComponent) {\n/* 212 */ if (GraphicsEnvironment.isHeadless())\n/* */ {\n/* 214 */ return null;\n/* */ }\n/* 216 */ return new HeavyWeightWindow(getParentWindow(paramComponent));\n/* */ }", "public void updateRenderRect() {\n int i = 0;\n if (this.mTargetRatio == 2) {\n this.mTx = this.mRenderWidth == 0 ? 0 : (this.mRenderOffsetX * this.mSurfaceWidth) / this.mRenderWidth;\n int i2 = (this.mSurfaceHeight - this.mSurfaceWidth) / 2;\n if (this.mRenderHeight != 0) {\n i = (this.mRenderOffsetY * this.mSurfaceHeight) / this.mRenderHeight;\n }\n this.mTy = i2 + i;\n this.mTwidth = this.mSurfaceWidth;\n this.mTheight = this.mSurfaceWidth;\n this.mRenderLayoutRect.set(this.mRenderOffsetX, ((this.mRenderHeight - this.mRenderWidth) / 2) + this.mRenderOffsetY, this.mRenderWidth + this.mRenderOffsetX, ((this.mRenderHeight - this.mRenderWidth) / 2) + this.mRenderOffsetY + this.mRenderWidth);\n return;\n }\n this.mTx = this.mRenderWidth == 0 ? 0 : (this.mRenderOffsetX * this.mSurfaceWidth) / this.mRenderWidth;\n this.mTy = this.mRenderHeight == 0 ? 0 : (this.mRenderOffsetY * this.mSurfaceHeight) / this.mRenderHeight;\n this.mTwidth = this.mSurfaceWidth;\n this.mTheight = this.mSurfaceHeight;\n this.mRenderLayoutRect.set(0, 0, this.mRenderWidth, this.mRenderHeight);\n }", "public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }", "protected void createWindow(int depth, int width, int type, boolean gui,\r\n\t\t\tint monoAttr, int colorAttr, int ul, int upper, int ur, int left,\r\n\t\t\tint right, int ll, int bottom, int lr) {\r\n\r\n\t int lastPos = screen52.getLastPos();\r\n\t int numCols = screen52.getColumns();\r\n\r\n\t\tint c = screen52.getCol(lastPos);\r\n\t\tint w = 0;\r\n\t\twidth++;\r\n\r\n\t\tw = width;\r\n\t\tchar initChar = Screen5250.initChar;\r\n\t\tint initAttr = Screen5250.initAttr;\r\n\r\n\t\t// set leading attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t\t// set upper left\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ul, colorAttr, UPPER_LEFT, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ul, colorAttr, false);\r\n\t\t}\r\n\r\n\t\t// draw top row\r\n\t\twhile (w-- >= 0) {\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) upper, colorAttr, UPPER,false);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) upper, colorAttr, false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set upper right\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ur, colorAttr, UPPER_RIGHT, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ur, colorAttr, false);\r\n\r\n\t\t}\r\n\r\n\t\t// set ending attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t\tlastPos = ((screen52.getRow(lastPos) + 1) * numCols) + c;\r\n\t\tscreen52.goto_XY(lastPos);\r\n\r\n\t\t// now handle body of window\r\n\t\twhile (depth-- > 0) {\r\n\r\n\t\t\t// set leading attribute byte\r\n\t\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\t\t\t// set left\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) left, colorAttr, GUI_LEFT, false);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) left, colorAttr, false);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tw = width - 2;\r\n\t\t screen52.setScreenCharAndAttr(initChar, initAttr, NO_GUI, true);\r\n\t\t\t// fill it in\r\n\t\t\twhile (w-- >= 0) {\r\n//\t\t\t if (!planes.isUseGui(screen52.getLastPos()))\r\n\t\t\t screen52.setScreenCharAndAttr(initChar, initAttr, NO_GUI, false);\r\n\t\t\t}\r\n\t\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, NO_GUI, true);\r\n\r\n\t\t\t// set right\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) right, colorAttr, GUI_RIGHT, false);\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) right, colorAttr, false);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t\t\tlastPos = ((screen52.getRow(lastPos) + 1) * numCols) + c;\r\n\t\t\tscreen52.goto_XY(lastPos);\r\n\t\t}\r\n\r\n\t\t// set leading attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ll, colorAttr, LOWER_LEFT, false);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) ll, colorAttr, false);\r\n\r\n\t\t}\r\n\t\tw = width;\r\n\r\n\t\t// draw bottom row\r\n\t\twhile (w-- >= 0) {\r\n\t\t\tif (gui) {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) bottom, colorAttr, BOTTOM, false);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscreen52.setScreenCharAndAttr((char) bottom, colorAttr, false);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set lower right\r\n\t\tif (gui) {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) lr, colorAttr, LOWER_RIGHT, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tscreen52.setScreenCharAndAttr((char) lr, colorAttr, false);\r\n\t\t}\r\n\r\n\t\t// set ending attribute byte\r\n\t\tscreen52.setScreenCharAndAttr(initChar, initAttr, true);\r\n\r\n\t}", "short getVResolution();", "public static String m575e(Context context) {\r\n try {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n return Integer.toString(displayMetrics.widthPixels) + \"*\" + Integer.toString(displayMetrics.heightPixels);\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public abstract void windowResized();", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n //initialize canvas background\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n canvas = new Canvas(canvasBitmap);\n }", "static int[] getResolution ()\n\t{\n\t\t//get the Toolkit of this instance\n\t\tToolkit tk = Toolkit.getDefaultToolkit ();\n\t\t\n\t\t//get the screen size as Dimension object\n\t\tDimension resolution = tk.getScreenSize ();\n\n\t\tint[] rez = new int[2];\n\n\t\t//extract integers from that Dimension object\n\t\trez[0] = new Double (resolution.getWidth ()).intValue ();\n\t\trez[1] = new Double (resolution.getHeight ()).intValue ();\n\n\t\treturn rez;\n\t}", "@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}", "public native int getUnits() throws MagickException;", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "private static void getRealSize(Display Pdisplay,Point Ppoint) //~vam6I~//~1am3I~//~va54I~\r\n { //~vam6I~//~1am3I~//~va54I~\r\n\t\tif (Dump.Y) Dump.println(\"Utils.getRealSize apiLevel=\"+Build.VERSION.SDK_INT);//~vam6I~//~1am3I~//~va54I~//~va56R~\r\n\t\tif (Build.VERSION.SDK_INT>=31) //Navigationbar can be hidden//~vam6I~//~1am3I~//~va54I~\r\n\t\t getRealSize_from31(Pdisplay,Ppoint); //~vam6I~//~1am3I~//~va54I~\r\n else //~vam6I~//~1am3I~//~va54I~\r\n\t\t getRealSize_19To30(Pdisplay,Ppoint); //~vam6I~//~1am3I~//~va54I~\r\n\t\tif (Dump.Y) Dump.println(\"Utils.getRealSize exit point=\"+Ppoint);//~vam6I~//~1am3I~//~va54I~//~va56R~\r\n }", "private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }", "private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }", "void fixScreenSize(int nLocations) {\n dotSize = (width - 2 * margin) / sqrt(nLocations);\n if (dotSize < 1) {\n dotSize = 2;\n }\n }", "public void setupOpenGL() {\n try {\n PixelFormat pixelFormat = new PixelFormat();\n ContextAttribs contextAtrributes = new ContextAttribs(3, 2)\n .withForwardCompatible(true)\n .withProfileCore(true);\n\n DisplayMode displayMode = new DisplayMode(WIDTH, HEIGHT);\n Display.setDisplayMode(displayMode);\n Display.setTitle(WINDOW_TITLE);\n Display.create(pixelFormat, contextAtrributes);\n\n GL11.glEnable(GL11.GL_DEPTH_TEST);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n } catch (LWJGLException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Setup an XNA like background color\n GL11.glClearColor(0.4f, 0.6f, 0.9f, 0f);\n\n // Map the internal OpenGL coordinate system to the entire screen\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n\n this.exitOnGLError(\"Error in setupOpenGL\");\n }", "protected double getImplScaleFactor(ImageOrientation orientation) {\n\treturn 1.0;\n }", "@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n if (height == 0) height = 1; // To prevent divide by zero\n float aspect = (float)width / height;\n \n // Set the viewport (display area) to cover the entire window\n gl.glViewport(0, 0, width, height);\n \n // Setup perspective projection, with aspect ratio matches viewport\n gl.glMatrixMode(GL10.GL_PROJECTION); // Select projection matrix\n gl.glLoadIdentity(); // Reset projection matrix\n // Use perspective projection\n GLU.gluPerspective(gl, 45, aspect, 0.1f, 100.f);\n \n gl.glMatrixMode(GL10.GL_MODELVIEW); // Select model-view matrix\n gl.glLoadIdentity(); // Reset\n \n // You OpenGL|ES display re-sizing code here\n // ......\n }", "@Override\n protected Void doInBackground(Void... params) {\n suResult = Shell.SU.run(new String[] {\n \"wm density 640\"\n });\n return null;\n }", "public abstract void Draw(Graphics2D g, double zoomFactor);", "public abstract void Draw(Graphics2D g, double zoomFactor);", "public abstract int getDisplayWidth();", "public boolean hasCrappyOpengl();", "protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n\n //create Bitmap of certain w,h\n bitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n\n //apply bitmap to graphic to start drawing.\n canvas = new Canvas(bitmap);\n }", "private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }", "private void drawBox(Graphics window, int hsBtoRGB, int x, int y) {\n\t\t\n\t}", "public void settings() {\n size(640, 384);\n }", "private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n if (pianoBitmap != null) {\n pianoBitmap.recycle(); // mark the bitmap as dead\n }\n pianoWidth = w;\n pianoHeight = h;\n pianoBitmap = Bitmap.createBitmap(pianoWidth, pianoHeight, Bitmap.Config.ARGB_8888);\n pianoCanvas.setBitmap(pianoBitmap);\n this.createShapes();\n this.drawOnBitmap();\n // Inform the user about the key combination to access the menu\n // (because the keyboard takes up the whole screen)\n String text = \"Vol\" + \"\\u2191\" + \"+\" + \"Vol\" + \"\\u2193\" + \" \" + \"\\u2192\" + \" menu\";\n// Toast.makeText(getContext().getApplicationContext(), text, Toast.LENGTH_LONG).show();\n }", "com.microsoft.schemas.office.x2006.digsig.STPositiveInteger xgetVerticalResolution();", "private static Rect m36202b(Rect rect, DisplayMetrics displayMetrics) {\n float f = displayMetrics.density;\n if (f == 0.0f) {\n return rect;\n }\n return new Rect(Math.round(((float) rect.left) / f), Math.round(((float) rect.top) / f), Math.round(((float) rect.right) / f), Math.round(((float) rect.bottom) / f));\n }", "short getPaperSize();" ]
[ "0.62984544", "0.61609054", "0.6088045", "0.6036773", "0.5901228", "0.5742945", "0.57113206", "0.5707011", "0.5669265", "0.564593", "0.56147796", "0.55819345", "0.55640036", "0.5486404", "0.548453", "0.54323435", "0.5427923", "0.54238045", "0.54094106", "0.5408877", "0.538249", "0.5380204", "0.53771377", "0.53686494", "0.5333557", "0.5333557", "0.532157", "0.5312581", "0.52995616", "0.52933717", "0.5291817", "0.5283937", "0.5283825", "0.52772707", "0.5270595", "0.52615666", "0.5255558", "0.52551204", "0.5253166", "0.5252778", "0.52454686", "0.5238506", "0.52263707", "0.52155614", "0.5209195", "0.5197519", "0.51935345", "0.5192243", "0.5188492", "0.5178554", "0.51782227", "0.51769674", "0.5172562", "0.51594025", "0.5152007", "0.5148492", "0.51403755", "0.5127457", "0.51260346", "0.5120581", "0.51162434", "0.51025903", "0.51014656", "0.5092706", "0.5086667", "0.50806254", "0.50728935", "0.50648874", "0.5056184", "0.50537735", "0.50477713", "0.50473285", "0.50468796", "0.50442606", "0.50428545", "0.50365686", "0.502579", "0.50230813", "0.50173396", "0.5014314", "0.50140405", "0.50059146", "0.5003192", "0.5001872", "0.50013375", "0.49998832", "0.49932724", "0.4989951", "0.4989951", "0.49878922", "0.49861136", "0.49826872", "0.498243", "0.49756527", "0.49724963", "0.49596727", "0.49540773", "0.4951808", "0.49509236", "0.49425235" ]
0.49916616
87
Get the rate limiter to only consider mouse events at a given rate. Mainly useful for EmulGL to deal with liveness effect.
public RateLimiter getRateLimiter() { return rateLimiter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getHitRate();", "double getHitRate();", "public Point2D getMouseSpeed() {\n\t\treturn Lel.coreEngine.panelVectorToWorld(input.getMouseSpeed());\n\t}", "@Override\n double getThrottleInput(HumanInput humanInput) {\n return Util.applyInputCurve(\n throttleSmoother.getSmoothedValue(humanInput.getGamePad().ls().getVertical()), .75, 6\n );\n }", "public Double throttleRate() {\n return this.throttleRate;\n }", "void update(float interval, MouseInput mouseInput, Window window) throws Exception;", "public double DrivetrainLimiterWithTimeScale(){\n\t\tif (this.GetAverageTotalCurrent() > this.drivetrainCurrentLimit){\n\t\t\tpresentTime = Timer.getFPGATimestamp();\n\t\t\ttimeError = Math.abs(presentTime - startTime);\n\t\t\t\n\t\t\tcurrentError = Math.abs(this.GetAverageTotalCurrent() - this.drivetrainCurrentLimit);\n\t\t\tlimiter = 1 - (currentError * cKp) - (timeError * tKp);\n\t\t}\n\t\telse{\n\t\t\tstartTime = Timer.getFPGATimestamp();\n\t\t\tlimiter = 1;\n\t\t}\n\t\t\n\t\treturn limiter;\n\t\t\n\t}", "public FXImageSink requestFrameRate(double rate) {\n requestRate = (int) Math.round(rate);\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }", "private float getRefreshRate() {\n return 1;\n }", "double getRate();", "public Point2D getUIMouseSpeed() {\n\t\treturn Lel.coreEngine.panelVectorToGame(input.getMouseSpeed());\n\t}", "public abstract boolean isRateLimit();", "public synchronized static SpeedSliderListener getInstance()\n {\n if (instance == null)\n instance = new SpeedSliderListener();\n return instance;\n }", "void requestRateLimited();", "public RateLimiter getRateLimiter() {\n return rateLimiter;\n }", "public double getThrottle() {\n \treturn Math.abs(throttle.getY()) > DEADZONE ? throttle.getY() : 0;\n }", "public float getFrameRate() { return 1000f/_interval; }", "float getVideoCaptureRateFactor();", "@Override\n public double getMiterLimit() {\n return graphicsEnvironmentImpl.getMiterLimit(canvas);\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (getChart().getView().is2D()) {\n return;\n }\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n stopThreadController();\n float factor = 1 + (e.getWheelRotation() / 10.0f);\n zoomZ(factor);\n }", "float getMainUtteranceDynamicGain();", "public int getSamplingRate( ) {\r\n return samplingRate;\r\n }", "private void setCaptureRate(float captureRate) {\n float minDiff = Float.MAX_VALUE;\n int bestMatch = 0;\n for (int i = 0; i < frameRateList.size(); i++) {\n final float inListInterval = frameRateList.get(i);\n final float diff = Math.abs(inListInterval - captureRate);\n if (diff < minDiff) {\n minDiff = diff;\n bestMatch = i;\n }\n }\n numberPicker.setValue(bestMatch);\n }", "public int getPollInterval();", "public void setLimitUsageRate(java.lang.Double limitUsageRate) {\n this.limitUsageRate = limitUsageRate;\n }", "public int getSamplingRate() {\n return samplingRate;\n }", "public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}", "public Double getMouse10()\n {\n return this.mouse10;\n }", "public java.lang.Double getLimitUsageRate() {\n return limitUsageRate;\n }", "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "Limits limits();", "public float getSampleRate();", "float getPreGain();", "public EpochTimer(int rate) {\n\tThread t = new Thread(this);\n\n\tsleepMs = 1000 / rate;\n\tint sleepLeftover = 1000 - (sleepMs * rate);\n\tsleepExtraEvery = rate / sleepLeftover; \n\n\tthis.rate = rate;\n\n\tt.start();\n\t\n }", "private int getEnemyGunFireRate()\n\t{\n\t\tfloat rate = 115 - (GameState._playerScore * .2f);\n\t\tif (rate < 20)\n\t\t{\n\t\t\trate = 20;\n\t\t}\n\t\treturn (int)rate;\n\t}", "public float maxSpeed();", "public boolean adaptiveRateControlEnabled();", "public void setRate(int rate) { this.rate = rate; }", "int getMaxCooldown();", "public void setRate();", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "public void updateSystemGestureExclusionLimit() {\n this.mSystemGestureExclusionLimit = (this.mWmService.mSystemGestureExclusionLimitDp * this.mDisplayMetrics.densityDpi) / 160;\n updateSystemGestureExclusion();\n }", "void onToggleSpeedSlider(Canvas canvas);", "public void activateUncontrolledMoves() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n actualPoint = new Point();\n actualPoint.x = 0;\n actualPoint.y = 0;\n final int maxX = wheel.getBounds().width(); //This represent the max X possible coord on the wheel\n final int maxY = wheel.getBounds().height();\n int timeBtwnMvmnts = 5000; //Time between each new movement\n while (true) {\n\n try {\n Thread.sleep(timeBtwnMvmnts);//Waiting for the next movement\n } catch (InterruptedException e) {\n\n }\n if (isUncontrolledActivated) { //If is activated continue\n double userCurrentSnap = USER_CURRENT_BREATH_RATE; //Snapshot to the current BR\n\n //Getting the percent of excess according to the max ideal breathing rate and the max posible rate (20)\n //Consider 6-8, MAX_IDEAL_BREATH_RATE (8) will be the max\n double referenceDistance = MAX_BREATH_RATE - MAX_IDEAL_BREATH_RATE;\n double myRateExcess = userCurrentSnap - MAX_IDEAL_BREATH_RATE;\n double relationPreferedActual = myRateExcess / referenceDistance;\n double percentOfExcess = relationPreferedActual * 100;\n\n Random r = new Random();\n\n //Probability of appearance of each special move\n if (percentOfExcess <= 40 && percentOfExcess > 10) { //A little error margin to make it easier. Nets to be 10% excess\n //Boost, stop, roll , inverted. probabilities (70,16,10,4)\n int diceRolled = r.nextInt(100); //This works as the \"probability\"\n if (diceRolled < 4) {// 4% inverted\n /*Enable inverted controlling. Determine how much time is this going to last.\n Not more than the time between each movement.*/\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 4 && diceRolled < 14) { // 10% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 14 && diceRolled < 30) { // 16% stop\n uncStop();\n } else if (diceRolled >= 30 && diceRolled < 100) { // 70% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 8000;\n } else if (percentOfExcess <= 60 && percentOfExcess > 10) {\n //Boost, stop, roll , inverted. probabilities (45,30,15,10)\n int diceRolled = r.nextInt(100);\n if (diceRolled < 10) {// 10% inverted\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 10 && diceRolled < 25) { // 15% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 25 && diceRolled < 55) { // 30% stop\n uncStop();\n } else if (diceRolled >= 55 && diceRolled < 100) { // 45% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 6700;\n } else if (percentOfExcess > 10) {//Percent > 60\n //Boost, stop, roll , inverted. probabilities (5,10,25,60)\n int diceRolled = r.nextInt(100);\n if (diceRolled < 60) {// 60% inverted\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 60 && diceRolled < 85) { // 25% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 85 && diceRolled < 95) { // 10% stop\n uncStop();\n } else if (diceRolled >= 95 && diceRolled < 100) { // 5% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 5000;\n }\n\n } else {\n break;\n }\n }\n }\n }).start();\n }", "RecordHandler(Looper looper) {\n super(looper);\n if (DEBUG)\n MLog.d(TAG, \"RecordHandler() mPollRate: \" + mPollRate);\n }", "public Double getMouse5()\n {\n return this.mouse5;\n }", "Duration getDefaultPollInterval();", "public PVector seekMouse(PVector target)\n\t{\n\t\tPVector desired = PVector.sub(target, location);\n\t\tfloat d = desired.mag();\n\t\tdesired.normalize();\n\n\t\tif (d < 100)\n\t\t{\n\t\t\tfloat m = PApplet.map(d, 0, 100, 0, maxspeed);\n\t\t\tdesired.mult(m);\n\t\t} else\n\t\t{\n\t\t\tdesired.mult(maxspeed);\n\t\t}\n\n\t\tPVector steer = PVector.sub(desired, velocity);\n\t\tsteer.limit(maxforce);\n\t\treturn steer;\n\t}", "public void run() {\n int tempRate;\n long frameTimeNanos = OppoRampAnimator.this.mChoreographer.getFrameTimeNanos();\n float timeDelta = ((float) (frameTimeNanos - OppoRampAnimator.this.mLastFrameTimeNanos)) * 1.0E-9f;\n OppoRampAnimator.this.mLastFrameTimeNanos = frameTimeNanos;\n OppoRampAnimator.access$208();\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n int i = 300;\n if (4 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i2 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i2 + i;\n } else if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i3 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i3 + i;\n } else if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i4 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i4 + i;\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n OppoBrightUtils unused = OppoRampAnimator.this.mOppoBrightUtils;\n float scale = OppoBrightUtils.mBrightnessNoAnimation ? 0.0f : ValueAnimator.getDurationScale();\n if (scale == OppoBrightUtils.MIN_LUX_LIMITI) {\n OppoRampAnimator oppoRampAnimator = OppoRampAnimator.this;\n oppoRampAnimator.mAnimatedValue = (float) oppoRampAnimator.mTargetValue;\n } else {\n float amount = OppoRampAnimator.this.caculateAmount((((float) tempRate) * timeDelta) / scale);\n float amountScaleFor4096 = 1.0f;\n OppoBrightUtils unused2 = OppoRampAnimator.this.mOppoBrightUtils;\n int i5 = OppoBrightUtils.mBrightnessBitsConfig;\n OppoBrightUtils unused3 = OppoRampAnimator.this.mOppoBrightUtils;\n if (i5 == 4) {\n amountScaleFor4096 = 2.0f;\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isAIBrightnessOpen()) {\n OppoBrightUtils unused4 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness && OppoRampAnimator.this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST && !DisplayPowerController.mScreenDimQuicklyDark) {\n OppoBrightUtils unused5 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mReduceBrightnessAnimating) {\n amount = amountScaleFor4096 * OppoRampAnimator.this.mOppoBrightUtils.getAIBrightnessHelper().getNextChange(OppoRampAnimator.this.mTargetValue, OppoRampAnimator.this.mAnimatedValue, timeDelta);\n }\n }\n }\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator oppoRampAnimator2 = OppoRampAnimator.this;\n oppoRampAnimator2.mAnimatedValue = Math.min(oppoRampAnimator2.mAnimatedValue + amount, (float) OppoRampAnimator.this.mTargetValue);\n } else {\n OppoBrightUtils unused6 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseAutoBrightness && amount < 10.0f) {\n amount = (float) (OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST / 60);\n }\n OppoRampAnimator oppoRampAnimator3 = OppoRampAnimator.this;\n oppoRampAnimator3.mAnimatedValue = Math.max(oppoRampAnimator3.mAnimatedValue - amount, (float) OppoRampAnimator.this.mTargetValue);\n }\n }\n int oldCurrentValue = OppoRampAnimator.this.mCurrentValue;\n OppoRampAnimator oppoRampAnimator4 = OppoRampAnimator.this;\n oppoRampAnimator4.mCurrentValue = Math.round(oppoRampAnimator4.mAnimatedValue);\n if (oldCurrentValue != OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator.this.mProperty.setValue(OppoRampAnimator.this.mObject, OppoRampAnimator.this.mCurrentValue);\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isSunnyBrightnessSupport()) {\n OppoRampAnimator.this.mOppoBrightUtils.setCurrentBrightnessRealValue(OppoRampAnimator.this.mCurrentValue);\n }\n if ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue >= OppoRampAnimator.this.mCurrentValue || OppoAutomaticBrightnessController.mProximityNear) && ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue <= OppoRampAnimator.this.mCurrentValue) && (!OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue))) {\n OppoBrightUtils unused7 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue) {\n int unused8 = OppoRampAnimator.mAnimationFrameCount = 0;\n OppoRampAnimator.this.mAnimating = false;\n if (OppoRampAnimator.this.mListener != null) {\n OppoRampAnimator.this.mListener.onAnimationEnd();\n OppoBrightUtils unused9 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mUseWindowBrightness = false;\n OppoBrightUtils unused10 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mCameraUseAdjustmentSetting = false;\n return;\n }\n return;\n }\n }\n OppoRampAnimator.this.postAnimationCallback();\n }", "public void updateRate(double r){\r\n rate *= r;\r\n }", "public interface ReactiveRateLimiter {\n\n Observable<Boolean> overLimitReactive(String key);\n\n Observable<Boolean> overLimitReactive(String key, int weight);\n\n Observable<Boolean> resetLimitReactive(String key);\n}", "public double getSlowToFire();", "public void SpeedControl(long iDasherX, long iDasherY, double dFrameRate) {}", "public JSlider getFramesPerWavelengthSlider() {\n return framesPerWavelength;\n }", "float getPostGain();", "@Nonnull\n @CheckReturnValue\n public static RateLimiter directLimiter() {\n return DirectLimiter.INSTANCE;\n }", "@Bean(name = StreamSpanReporter.POLLER)\r\n\tPollerMetadata customPoller() {\r\n\t\tPollerMetadata poller = new PollerMetadata();\r\n\t\tpoller.setMaxMessagesPerPoll(500);\r\n\t\tpoller.setTrigger(new PeriodicTrigger(5000L));\r\n\t\treturn poller;\r\n\t}", "double getPWMRate();", "public DistanceMouseMode(boolean consumeEvents) {\n super(modeID, consumeEvents);\n // if you really want to change the cursor shape\n // setModeCursor(cursor.getPredefinedCursor(cursor.CROSSHAIR_CURSOR));\n }", "double getMinTimerTrig();", "private JSlider getSliderThreadsPerScan() {\n if (sliderThreadsPerScan == null) {\n sliderThreadsPerScan = new JSlider();\n sliderThreadsPerScan.setMaximum(Constant.MAX_THREADS_PER_SCAN);\n sliderThreadsPerScan.setMinimum(0);\n sliderThreadsPerScan.setValue(1);\n sliderThreadsPerScan.setPaintTicks(true);\n sliderThreadsPerScan.setPaintLabels(true);\n sliderThreadsPerScan.setMinorTickSpacing(1);\n sliderThreadsPerScan.setMajorTickSpacing(5);\n sliderThreadsPerScan.setSnapToTicks(true);\n sliderThreadsPerScan.setPaintTrack(true);\n sliderThreadsPerScan.addChangeListener(\n new ChangeListener() {\n @Override\n public void stateChanged(ChangeEvent e) {\n // If the minimum is set to 1 then the ticks are at 6, 11 etc\n // But we dont want to support 0 threads, hence this hack\n if (getSliderThreadsPerScan().getValue() == 0) {\n getSliderThreadsPerScan().setValue(1);\n }\n setLabelThreadsPerScanValue(getSliderThreadsPerScan().getValue());\n }\n });\n }\n return sliderThreadsPerScan;\n }", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "Integer networkTickRate();", "RampDownTimer getRampDownTimer();", "T getMouse();", "int getMaxTicksLimit();", "public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }", "protected long getLabelPollRate() {\r\n\t\treturn DEFAULT_POLL_RATE;\r\n\t}", "private ChangeListener createMinListener()\r\n\t\t{\r\n\t\treturn new ChangeListener()\r\n\t\t\t{\r\n\r\n\t\t\t//called when the min spinner value is changed\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t\t{\r\n\t\t\t\tint spinMinValue = (int)spinMin.getValue();\r\n\t\t\t\tint spinMaxValue = (int)spinMax.getValue();\r\n\r\n\t\t\t\tif (spinMinValue >= spinMaxValue) { // verify if the min spin goes upper the max limit and adjust the value if necessary\r\n\t\t\t\t\tif (++spinMaxValue > max)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tspinMin.setValue(spinMinValue = (spinMaxValue=max)-1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tspinMax.setValue(spinMaxValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (spinMaxValue > spinMinValue) // verify intervals are correct\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdiceBuilder.setInterval(spinMinValue, spinMaxValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t};\r\n\t\t}", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public double getFirstThrottle() {\n return getThrottle(firstStick);\n }", "public float getRate(){\r\n return rate;\r\n }", "public double getCurrentSpeed();", "void setMaxCooldown(int maxCooldown);", "public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }", "public void setStarvationRate ( int ticks ) {\n\t\texecute ( handle -> handle.setStarvationRate ( ticks ) );\n\t}", "private void configureRateLimiterForStatusPanel() {\n if (rateLimiter == null || rateLimiterTableModel == null) {\n return;\n }\n rateLimiter.setObserver(\n limiter -> {\n if ((System.currentTimeMillis() - rateLimiterLastUpdate.get()) > 1000) {\n rateLimiterLastUpdate.set(System.currentTimeMillis());\n SwingUtilities.invokeLater(() -> rateLimiterTableModel.update(limiter));\n }\n });\n }", "@Override\n public double getEngineSound() {\n return decoratedEngine.getEngineSound() * .6;\n }", "public TorqueSlewLimiter(final double limit) {\n this.limitAsc = limit;\n this.limitDesc = limit;\n }", "public float getAttackCooldown ( ) {\n\t\treturn extract ( handle -> handle.getAttackCooldown ( ) );\n\t}", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "double getSpeed();", "void enableAnalog(double minPressurePSI, double maxPressurePSI);", "int getMaximumDelay();", "public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}", "public void setSpeedLimit(int speedLim) {\n \tthis.currentSpeedLimit = trkMdl.getBlock(this.lineColor,this.currentBlock).getSpeedLimit();\n }", "int getSmpRate();", "public Object getOnmousemove() {\r\n\t\treturn getOnMouseMove();\r\n\t}", "protected EventHandler<MouseEvent> disableRotation() {\n EventHandler<MouseEvent> mouseLocationHandler = new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) { \n rotationIsValide = false;\n event.consume();\n }\n };\n return mouseLocationHandler;\n }", "public DistanceMouseMode(String name, boolean consumeEvents) {\n super(name, consumeEvents);\n // if you really want to change the cursor shape\n // setModeCursor(cursor.getPredefinedCursor(cursor.CROSSHAIR_CURSOR));\n }", "private SpeedSliderListener()\n {\n }", "public void setSelectionLimiter(Limiter limiter)\n {\n\tthis.selectionLimiter = limiter;\n }", "public double curSwing(){\r\n return swingGyro.getAngle();\r\n }", "protected boolean canSampleAlongCurve() { return false; }", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();" ]
[ "0.60063493", "0.60063493", "0.5380746", "0.5168542", "0.51009274", "0.5096678", "0.50787246", "0.50729454", "0.5068398", "0.49887598", "0.49772716", "0.49411672", "0.49410447", "0.49254078", "0.4921157", "0.48938927", "0.48703954", "0.48028788", "0.48014587", "0.47786278", "0.4753815", "0.47507793", "0.47494876", "0.4735623", "0.47206655", "0.47200108", "0.4715994", "0.47153232", "0.47109428", "0.4702339", "0.46925953", "0.4686366", "0.4685373", "0.4678858", "0.46740577", "0.46702707", "0.46602985", "0.46516722", "0.4646197", "0.46411744", "0.46360812", "0.4621571", "0.4611757", "0.46024883", "0.45839033", "0.4578691", "0.45784238", "0.45666006", "0.45564902", "0.45524257", "0.45408747", "0.45324415", "0.453082", "0.45272344", "0.45204762", "0.45204294", "0.45084724", "0.45016092", "0.4494641", "0.44937384", "0.44886455", "0.44751048", "0.44723785", "0.44648358", "0.4455581", "0.4453818", "0.44495046", "0.4449333", "0.44479972", "0.4436666", "0.44291398", "0.4426665", "0.44257864", "0.44182947", "0.4418291", "0.4415937", "0.44124237", "0.44077963", "0.44049174", "0.44018817", "0.43992704", "0.4388831", "0.4384019", "0.4381657", "0.43815917", "0.4376031", "0.4374435", "0.43722555", "0.43659577", "0.4364339", "0.43635118", "0.43620178", "0.4348565", "0.4340983", "0.4333542", "0.4333542", "0.4333542", "0.4333542", "0.4333542", "0.4333542" ]
0.49342605
13
Provide a rate limiter to only consider mouse events at a given rate. Mainly useful for EmulGL to deal with liveness effect.
public void setRateLimiter(RateLimiter rateLimiter) { this.rateLimiter = rateLimiter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getHitRate();", "double getHitRate();", "void update(float interval, MouseInput mouseInput, Window window) throws Exception;", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (getChart().getView().is2D()) {\n return;\n }\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n stopThreadController();\n float factor = 1 + (e.getWheelRotation() / 10.0f);\n zoomZ(factor);\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}", "void requestRateLimited();", "public void activateUncontrolledMoves() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n actualPoint = new Point();\n actualPoint.x = 0;\n actualPoint.y = 0;\n final int maxX = wheel.getBounds().width(); //This represent the max X possible coord on the wheel\n final int maxY = wheel.getBounds().height();\n int timeBtwnMvmnts = 5000; //Time between each new movement\n while (true) {\n\n try {\n Thread.sleep(timeBtwnMvmnts);//Waiting for the next movement\n } catch (InterruptedException e) {\n\n }\n if (isUncontrolledActivated) { //If is activated continue\n double userCurrentSnap = USER_CURRENT_BREATH_RATE; //Snapshot to the current BR\n\n //Getting the percent of excess according to the max ideal breathing rate and the max posible rate (20)\n //Consider 6-8, MAX_IDEAL_BREATH_RATE (8) will be the max\n double referenceDistance = MAX_BREATH_RATE - MAX_IDEAL_BREATH_RATE;\n double myRateExcess = userCurrentSnap - MAX_IDEAL_BREATH_RATE;\n double relationPreferedActual = myRateExcess / referenceDistance;\n double percentOfExcess = relationPreferedActual * 100;\n\n Random r = new Random();\n\n //Probability of appearance of each special move\n if (percentOfExcess <= 40 && percentOfExcess > 10) { //A little error margin to make it easier. Nets to be 10% excess\n //Boost, stop, roll , inverted. probabilities (70,16,10,4)\n int diceRolled = r.nextInt(100); //This works as the \"probability\"\n if (diceRolled < 4) {// 4% inverted\n /*Enable inverted controlling. Determine how much time is this going to last.\n Not more than the time between each movement.*/\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 4 && diceRolled < 14) { // 10% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 14 && diceRolled < 30) { // 16% stop\n uncStop();\n } else if (diceRolled >= 30 && diceRolled < 100) { // 70% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 8000;\n } else if (percentOfExcess <= 60 && percentOfExcess > 10) {\n //Boost, stop, roll , inverted. probabilities (45,30,15,10)\n int diceRolled = r.nextInt(100);\n if (diceRolled < 10) {// 10% inverted\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 10 && diceRolled < 25) { // 15% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 25 && diceRolled < 55) { // 30% stop\n uncStop();\n } else if (diceRolled >= 55 && diceRolled < 100) { // 45% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 6700;\n } else if (percentOfExcess > 10) {//Percent > 60\n //Boost, stop, roll , inverted. probabilities (5,10,25,60)\n int diceRolled = r.nextInt(100);\n if (diceRolled < 60) {// 60% inverted\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 60 && diceRolled < 85) { // 25% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 85 && diceRolled < 95) { // 10% stop\n uncStop();\n } else if (diceRolled >= 95 && diceRolled < 100) { // 5% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 5000;\n }\n\n } else {\n break;\n }\n }\n }\n }).start();\n }", "public FXImageSink requestFrameRate(double rate) {\n requestRate = (int) Math.round(rate);\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }", "public abstract boolean isRateLimit();", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tJSlider slider = (JSlider) e.getSource();\n\t\t\t\tfastForward = true;\n\t\t\t\tcurrFrame = (int) ((e.getX() * 1.85 * 9) + startFrame);\n\t\t\t\tslider.setValue(currFrame);\n\t\t\t\tisAlreadyPlaying = false;\n\n\t\t\t\tvideoThread.interrupt();\n\t\t\t\tsoundThread.interrupt();\n\t\t\t\tplaySound.stop();\n\t\t\t\ttry {\n\t\t\t\t\tvideoThread.sleep(10);\n\t\t\t\t\tsoundThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsoundThread = null;\n\t\t\t\tvideoThread = null;\n\t\t\t\tplaySound.jump(currFrame);\n\n\t\t\t\tplayback();\n\t\t\t\t}\n\n\t\t\t}", "public void setLimitUsageRate(java.lang.Double limitUsageRate) {\n this.limitUsageRate = limitUsageRate;\n }", "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "@Override\n double getThrottleInput(HumanInput humanInput) {\n return Util.applyInputCurve(\n throttleSmoother.getSmoothedValue(humanInput.getGamePad().ls().getVertical()), .75, 6\n );\n }", "public void SpeedControl(long iDasherX, long iDasherY, double dFrameRate) {}", "public EpochTimer(int rate) {\n\tThread t = new Thread(this);\n\n\tsleepMs = 1000 / rate;\n\tint sleepLeftover = 1000 - (sleepMs * rate);\n\tsleepExtraEvery = rate / sleepLeftover; \n\n\tthis.rate = rate;\n\n\tt.start();\n\t\n }", "public Point2D getMouseSpeed() {\n\t\treturn Lel.coreEngine.panelVectorToWorld(input.getMouseSpeed());\n\t}", "void onToggleSpeedSlider(Canvas canvas);", "@Override\n public void onBuffering(int percent) {\n }", "public void setMaxFPS(int fps) {\n setFps(fps);\n repaintThread.setSleepTime(1000 / fps);\n }", "public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }", "public void throttleFilter() throws InvalidQueryException {\n }", "private void gameLoop() {\n float elapsedTime;\n float accumulator = 0f;\n float interval = 1.0f/TARGET_UPS;\n\n while(!window.shouldClose()) {\n elapsedTime = Math.min(0.25f, updateTimer.getElapsedTimeAndUpdate());\n accumulator += elapsedTime;\n\n //Get any input\n\n //Calculate updates in the scene\n while(accumulator >= interval) {\n update();\n accumulator -= interval;\n }\n\n interpolationFactor = accumulator/interval;\n render();\n\n if (!window.optionIsTurnedOn(Window.Options.ENABLE_VSYNC)) {\n sync();\n }\n }\n }", "public void player1_block_handle(int stuck_limit, float frameRate)\n {\n if (player1_blocked) // if player 1 is blocked then\n {\n if (p1_blk_esc_counter <= stuck_limit * frameRate) // if the counter is still less than 5 seconds worth frames\n {\n p1_blk_esc_counter++; // increment counter\n } else\n {\n player1_blocked = false; // unblock player 1\n p1_blk_esc_counter = 0; // reset counter\n }\n }\n }", "public void setStarvationRate ( int ticks ) {\n\t\texecute ( handle -> handle.setStarvationRate ( ticks ) );\n\t}", "public static void performanceCountEnable(int event) { }", "public void updateRate(double r){\r\n rate *= r;\r\n }", "void update(float speed, Point mousePoint) {\r\n\t\tz[1] = z[0];\r\n\t\tz[0] -= speed;\r\n\t\t\r\n\t\t// if the star moved past the screen, re-initialize it\r\n\t\tif (z[0] < 0)\r\n\t\t\tinit();\r\n\t\t\r\n\t\tselectionBox = makeSelectionBox();\r\n\t\tselected = selectionBox.contains(mousePoint);\r\n\t}", "void enableAnalog(double minPressurePSI, double maxPressurePSI);", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "private float getRefreshRate() {\n return 1;\n }", "void OnSpeedChanges(float speed);", "public float getFrameRate() { return 1000f/_interval; }", "Limits limits();", "protected boolean canSampleAlongCurve() { return false; }", "public void mouseMoved(RMShapeMouseEvent anEvent)\n{\n // If timer, restart\n if(RMShapeUtils.getHoverTimer()!=null && RMShapeUtils.getHoverTimer().getShape()==this)\n RMShapeUtils.getHoverTimer(anEvent);\n \n // Iterate over mouse motion listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseMoved(anEvent);\n}", "public double DrivetrainLimiterWithTimeScale(){\n\t\tif (this.GetAverageTotalCurrent() > this.drivetrainCurrentLimit){\n\t\t\tpresentTime = Timer.getFPGATimestamp();\n\t\t\ttimeError = Math.abs(presentTime - startTime);\n\t\t\t\n\t\t\tcurrentError = Math.abs(this.GetAverageTotalCurrent() - this.drivetrainCurrentLimit);\n\t\t\tlimiter = 1 - (currentError * cKp) - (timeError * tKp);\n\t\t}\n\t\telse{\n\t\t\tstartTime = Timer.getFPGATimestamp();\n\t\t\tlimiter = 1;\n\t\t}\n\t\t\n\t\treturn limiter;\n\t\t\n\t}", "public void run(){\n\t\tdouble target = 60.0;\n double nsPerTick = 1000000000.0 / target;\n long lastTime = System.nanoTime();\n long timer = System.currentTimeMillis();\n double unprocessed = 0.0;\n int fps = 0;\n int tps = 0;\n boolean canRender = false;\n \n while (running) {\n long now = System.nanoTime();\n unprocessed += (now - lastTime) / nsPerTick;\n lastTime = now;\n \n if(unprocessed >= 1.0){\n tick();\n unprocessed--;\n tps++;\n canRender = true;\n }else canRender = false;\n \n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n \n if(canRender){\n //render\n \trender();\n fps++;\n }\n \n if(System.currentTimeMillis() - 1000 > timer){\n timer += 1000;\n System.out.printf(\"FPS: %d | TPS: %d\\n\", fps, tps);\n fps = 0;\n tps = 0;\n }\n \n }\n \n System.exit(0);\n\t}", "public void setSpeedLimit(int speedLim) {\n \tthis.currentSpeedLimit = trkMdl.getBlock(this.lineColor,this.currentBlock).getSpeedLimit();\n }", "@Override\n public void run() {\n\n ui = new UI(this);\n\n addMouseWheelListener(UI.mouse.wheelControls);\n addMouseListener(UI.mouse.adapter);\n EventLoader.loadEvents(this);\n long beforeTime, timeDiff, sleep;\n\n UI.mouse.setShape(new Ellipse2D.Float(0, 0, 1, 1), true);\n Application.grid.reset(600, 600);\n // Application.grid.reset(600, 600);\n // Particle tracer = Application.grid.spawn(300, 300, Tracer.class);\n // tracer.vel = new Vector2D(2, 0);\n beforeTime = System.currentTimeMillis();\n\n while (true) {\n\n repaint();\n\n Application.grid.updateParticles();\n\n timeDiff = System.currentTimeMillis() - beforeTime;\n sleep = DELAY - timeDiff;\n\n if (sleep < 0) {\n sleep = 2;\n\n }\n\n fps = 1 / ((sleep + timeDiff) * 1e-3);\n\n try {\n Thread.sleep(sleep);\n } catch (InterruptedException e) {\n\n String msg = String.format(\"Thread interrupted: %s\", e.getMessage());\n\n JOptionPane.showMessageDialog(this, msg, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n beforeTime = System.currentTimeMillis();\n }\n }", "public void run() {\n int tempRate;\n long frameTimeNanos = OppoRampAnimator.this.mChoreographer.getFrameTimeNanos();\n float timeDelta = ((float) (frameTimeNanos - OppoRampAnimator.this.mLastFrameTimeNanos)) * 1.0E-9f;\n OppoRampAnimator.this.mLastFrameTimeNanos = frameTimeNanos;\n OppoRampAnimator.access$208();\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n int i = 300;\n if (4 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i2 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i2 + i;\n } else if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i3 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i3 + i;\n } else if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i4 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i4 + i;\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n OppoBrightUtils unused = OppoRampAnimator.this.mOppoBrightUtils;\n float scale = OppoBrightUtils.mBrightnessNoAnimation ? 0.0f : ValueAnimator.getDurationScale();\n if (scale == OppoBrightUtils.MIN_LUX_LIMITI) {\n OppoRampAnimator oppoRampAnimator = OppoRampAnimator.this;\n oppoRampAnimator.mAnimatedValue = (float) oppoRampAnimator.mTargetValue;\n } else {\n float amount = OppoRampAnimator.this.caculateAmount((((float) tempRate) * timeDelta) / scale);\n float amountScaleFor4096 = 1.0f;\n OppoBrightUtils unused2 = OppoRampAnimator.this.mOppoBrightUtils;\n int i5 = OppoBrightUtils.mBrightnessBitsConfig;\n OppoBrightUtils unused3 = OppoRampAnimator.this.mOppoBrightUtils;\n if (i5 == 4) {\n amountScaleFor4096 = 2.0f;\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isAIBrightnessOpen()) {\n OppoBrightUtils unused4 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness && OppoRampAnimator.this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST && !DisplayPowerController.mScreenDimQuicklyDark) {\n OppoBrightUtils unused5 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mReduceBrightnessAnimating) {\n amount = amountScaleFor4096 * OppoRampAnimator.this.mOppoBrightUtils.getAIBrightnessHelper().getNextChange(OppoRampAnimator.this.mTargetValue, OppoRampAnimator.this.mAnimatedValue, timeDelta);\n }\n }\n }\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator oppoRampAnimator2 = OppoRampAnimator.this;\n oppoRampAnimator2.mAnimatedValue = Math.min(oppoRampAnimator2.mAnimatedValue + amount, (float) OppoRampAnimator.this.mTargetValue);\n } else {\n OppoBrightUtils unused6 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseAutoBrightness && amount < 10.0f) {\n amount = (float) (OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST / 60);\n }\n OppoRampAnimator oppoRampAnimator3 = OppoRampAnimator.this;\n oppoRampAnimator3.mAnimatedValue = Math.max(oppoRampAnimator3.mAnimatedValue - amount, (float) OppoRampAnimator.this.mTargetValue);\n }\n }\n int oldCurrentValue = OppoRampAnimator.this.mCurrentValue;\n OppoRampAnimator oppoRampAnimator4 = OppoRampAnimator.this;\n oppoRampAnimator4.mCurrentValue = Math.round(oppoRampAnimator4.mAnimatedValue);\n if (oldCurrentValue != OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator.this.mProperty.setValue(OppoRampAnimator.this.mObject, OppoRampAnimator.this.mCurrentValue);\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isSunnyBrightnessSupport()) {\n OppoRampAnimator.this.mOppoBrightUtils.setCurrentBrightnessRealValue(OppoRampAnimator.this.mCurrentValue);\n }\n if ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue >= OppoRampAnimator.this.mCurrentValue || OppoAutomaticBrightnessController.mProximityNear) && ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue <= OppoRampAnimator.this.mCurrentValue) && (!OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue))) {\n OppoBrightUtils unused7 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue) {\n int unused8 = OppoRampAnimator.mAnimationFrameCount = 0;\n OppoRampAnimator.this.mAnimating = false;\n if (OppoRampAnimator.this.mListener != null) {\n OppoRampAnimator.this.mListener.onAnimationEnd();\n OppoBrightUtils unused9 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mUseWindowBrightness = false;\n OppoBrightUtils unused10 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mCameraUseAdjustmentSetting = false;\n return;\n }\n return;\n }\n }\n OppoRampAnimator.this.postAnimationCallback();\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (isMouse1Down) inspectModeEnabled = false;\n }", "private void accelerate()\n {\n if(accelX < maxAccelRate)\n {\n accelX += accelerationRate;\n }\n }", "public void setRate(int rate) { this.rate = rate; }", "RecordHandler(Looper looper) {\n super(looper);\n if (DEBUG)\n MLog.d(TAG, \"RecordHandler() mPollRate: \" + mPollRate);\n }", "void mouseReleased() {\n firing = false;\n}", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "public DistanceMouseMode(boolean consumeEvents) {\n super(modeID, consumeEvents);\n // if you really want to change the cursor shape\n // setModeCursor(cursor.getPredefinedCursor(cursor.CROSSHAIR_CURSOR));\n }", "private void limitScreenMovement() {\r\n\t\tif (x < counterLimit) {\r\n\t\t\tx = counterLimit;\r\n\t\t\tdx = 0;\r\n\t\t} else if (x >= 1) {\r\n\t\t\tMain.endGame();\r\n\t\t}\r\n\t}", "public interface ReactiveRateLimiter {\n\n Observable<Boolean> overLimitReactive(String key);\n\n Observable<Boolean> overLimitReactive(String key, int weight);\n\n Observable<Boolean> resetLimitReactive(String key);\n}", "void mouseMoved(double x, double y, MouseEvent e );", "public void updateSystemGestureExclusionLimit() {\n this.mSystemGestureExclusionLimit = (this.mWmService.mSystemGestureExclusionLimitDp * this.mDisplayMetrics.densityDpi) / 160;\n updateSystemGestureExclusion();\n }", "public abstract void update(MouseWheelEvent evt, int mode);", "private void setCaptureRate(float captureRate) {\n float minDiff = Float.MAX_VALUE;\n int bestMatch = 0;\n for (int i = 0; i < frameRateList.size(); i++) {\n final float inListInterval = frameRateList.get(i);\n final float diff = Math.abs(inListInterval - captureRate);\n if (diff < minDiff) {\n minDiff = diff;\n bestMatch = i;\n }\n }\n numberPicker.setValue(bestMatch);\n }", "public void mouseWheelMoved(MouseWheelEvent e) {\n double timeStep = TIME_STEP_MIN;\n if (e.isShiftDown()) {\n timeStep = TIME_STEP_MIN * 10;\n }\n if (e.getWheelRotation() > 0) {\n prevTime(timeStep);\n } else {\n nextTime(timeStep);\n }\n }", "private void configureRateLimiterForStatusPanel() {\n if (rateLimiter == null || rateLimiterTableModel == null) {\n return;\n }\n rateLimiter.setObserver(\n limiter -> {\n if ((System.currentTimeMillis() - rateLimiterLastUpdate.get()) > 1000) {\n rateLimiterLastUpdate.set(System.currentTimeMillis());\n SwingUtilities.invokeLater(() -> rateLimiterTableModel.update(limiter));\n }\n });\n }", "public void mouseMovements() throws InterruptedException{\n\t\t\r\n\t\tint intMouseX = (int)random(10,700);\r\n\t\tint intMouseY = (int)random(10,400);\r\n\t\tint randomMouse = (int)random(0,1000);\r\n\t\t\r\n\t\t// small movements\r\n\t\tif (randomMouse <= 400) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 300) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 375) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// medium movements\r\n\t\telse if (randomMouse <= 800) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 600) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 675) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// large movements\r\n\t\telse if (randomMouse <= 1000) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 950) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 990) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tlog(\"something went wrong with antiban mouse movement\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void mouseMovements() throws InterruptedException{\n\t\t\r\n\t\tint intMouseX = (int)random(10,700);\r\n\t\tint intMouseY = (int)random(10,400);\r\n\t\tint randomMouse = (int)random(0,1000);\r\n\t\t\r\n\t\t// small movements\r\n\t\tif (randomMouse <= 400) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 300) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 375) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(20,70)),(intMouseY + random(10,50)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// medium movements\r\n\t\telse if (randomMouse <= 800) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 600) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 675) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(100,200)),(intMouseY + random(100,200)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// large movements\r\n\t\telse if (randomMouse <= 1000) {\r\n\t\t\tgetMouse().move(intMouseX,intMouseY);\r\n\t\t\tsleep(random(100,300));\r\n\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\tsleep(random(100,300));\r\n\t\t\r\n\t\t\tif (randomMouse <= 950) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (randomMouse <= 990) {\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\tgetMouse().move((intMouseX + random(200,300)),(intMouseY + random(200,300)));\r\n\t\t\t\tsleep(random(100,300));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tlog(\"something went wrong with antiban mouse movement\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void setRate();", "void setMaxCooldown(int maxCooldown);", "public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}", "private SpeedSliderListener()\n {\n }", "public abstract void mouseWheel(MouseWheelEvent mouseWheelEvent);", "private static void OnMouseMove(Object sender, MouseEventArgs e)\r\n {\r\n // Un-vanish the cursor on any mouse move. \r\n _ShowCursor();\r\n }", "void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}", "@Override\n public void setup(){\n frameRate(60);\n noStroke();\n }", "public void player2_block_handle(int stuck_limit, float frameRate)\n {\n if (player2_blocked) // if player 2 is blocked then\n {\n if (p2_blk_esc_counter <= stuck_limit * frameRate) // if the counter is still less than 5 seconds worth frames\n {\n p2_blk_esc_counter++; // increment counter\n } else\n {\n player2_blocked = false; // unblock player 2\n p2_blk_esc_counter = 0; // reset counter\n }\n }\n }", "private synchronized void evaluateOverspeeding(long speedTimestamp) {\r\n\r\n\r\n long timeElapsedMillis = speedTimestamp - overspeedStartTimestamp;\r\n\r\n /**\r\n * If overspeeding is less than 10 seconds long, it's considered to be ok\r\n */\r\n if (timeElapsedMillis <= 10000 && !goodScoreUpdated && !mediumScoreUpdated && !badScoreUpdated) {\r\n scoreListener.onOverspeeding(ScoreType.GOOD);\r\n goodScoreUpdated = true;\r\n }\r\n /**\r\n * If overspeeding is between 10 and 30 seconds long, it will start altering the score\r\n */\r\n if (timeElapsedMillis > 10000 && timeElapsedMillis <= 30000 && !mediumScoreUpdated && !badScoreUpdated) {\r\n\r\n event.setScoreToMedium();\r\n scoreListener.onOverspeeding(ScoreType.MEDIUM);\r\n mediumScoreUpdated = true;\r\n }\r\n /**\r\n * If overspeeding is longer than 30 seconds, the score will be severely altered\r\n */\r\n if (timeElapsedMillis > 30000 && !badScoreUpdated) {\r\n event.setScoreToBad();\r\n badScoreUpdated = true;\r\n }\r\n }", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "@Override\n public void run() {\n while (threadFlag) {\n long startTime = System.currentTimeMillis();\n drawSelf();\n long endTime = System.currentTimeMillis();\n try {\n if (endTime - startTime < 500)\n Thread.sleep(500 - (endTime - startTime));\n } catch (InterruptedException err) {\n err.printStackTrace();\n }\n }\n }", "public TorqueSlewLimiter(final double limit) {\n this.limitAsc = limit;\n this.limitDesc = limit;\n }", "@Test\n public void testLowLimitEvent() throws Exception {\n it(\"monitor should set a low alarm when receiving simulated encoder low limit\");\n testLimitEvent(testLowLimitEvent, lowLimitAlarm);\n }", "void mousePressed() {\n firing = true;\n\n}", "public static void main(String[] args) {//this is a main method in this package\r\n\t\tScanner keyboard = new Scanner(System.in);//instantiating keyboard of Scanner class\r\n\t\tRandom rand = new Random();//instantiating radom of Random class\r\n\t\tint limit = 0, speed = 0;//this is a integer type variable named limit and speed.\r\n\t\t\r\n\t\tSystem.out.print(\"Set the speed limit, officer : \");//display \"Set the speed limit, officer : \" on the monitor.\r\n\t\tlimit = keyboard.nextInt();//set limit to integer variable from user.\r\n\t\tspeed = rand.nextInt(101);//set speed to integer variable from user.\r\n\t\t\r\n\t\tSpeedLimitter lim = new SpeedLimitter(limit, speed);//Instantiating lim of SpeeLimitter class that passes limit and speed as parameter.\r\n\t\t\r\n\t\tlim.warnSpeedLimit();//execute warnSpeedLimit in lim.\r\n\t\tkeyboard.close();//close keyboard.\r\n\r\n\t}", "public DistanceMouseMode(String name, boolean consumeEvents) {\n super(name, consumeEvents);\n // if you really want to change the cursor shape\n // setModeCursor(cursor.getPredefinedCursor(cursor.CROSSHAIR_CURSOR));\n }", "public void run(){\n this.requestFocus();\n long lastTime = System.nanoTime();\n double amountOfTicks = 60.0;\n double ns = 1000000000 / amountOfTicks;\n double delta = 0;\n long timer = System.currentTimeMillis();\n int frames = 0;\n\n while(isRunning){\n long now = System.nanoTime();\n delta += (now - lastTime) / ns;\n lastTime = now;\n while(delta >= 1){\n tick();\n delta--;\n }\n render();\n frames++;\n\n if(System.currentTimeMillis() - timer > 1000){\n timer += 1000;\n frames = 0;\n }\n }\n stop();\n }", "protected EventHandler<MouseEvent> disableRotation() {\n EventHandler<MouseEvent> mouseLocationHandler = new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) { \n rotationIsValide = false;\n event.consume();\n }\n };\n return mouseLocationHandler;\n }", "public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }", "public void setEventLimit(int eventLimit) {\n this.eventLimit = eventLimit;\n }", "@Override\n public native void mouseWheel(int wheelAmt);", "public abstract void mouseInput();", "public void setFrequency(float speed) { \n \tmouseJointDef.frequencyHz = speed; \n }", "private void setupFireRate(double fireRatePerSecond)\n\t\t{\n\t\tthis.startTime = 0;\n\t\tthis.fireDelay = 1 / fireRatePerSecond * 1000;\n\t\t}", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "private void reactMain_region_digitalwatch_Display_glowing_GlowDelay() {\n\t\tif (timeEvents[5]) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 5);\n\n\t\t\tsCIDisplay.operationCallback.unsetIndiglo();\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOff;\n\t\t} else {\n\t\t\tif (sCIButtons.topRightPressed) {\n\t\t\t\tnextStateIndex = 3;\n\t\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 5);\n\n\t\t\t\tsCIDisplay.operationCallback.setIndiglo();\n\n\t\t\t\tnextStateIndex = 3;\n\t\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOn;\n\t\t\t}\n\t\t}\n\t}", "public void updateGameMode2 (MouseEvent e)\n {\n if ((e.getX() >= 512 && e.getX() <= 836) && (e.getY() >= 161 && e.getY() <=520))\n twoPPressed = true;\n else if ((e.getX() >= 62 && e.getX() <= 386) && (e.getY() >= 161 && e.getY() <=520))\n onePPressed = true;\n }", "public void mousePressed() {\n if (mouseX > 250 && mouseX < 300 && mouseY > 45 && mouseY < 95) {\n // createWindows();\n // btnMakeWindow.setEnabled(false); createWindows();\n }\n\n if (mouseX > 20 && mouseX < 20+20 && mouseY > 20 && mouseY < 20+20) {\n button = !button;\n }\n if (mouseX > 250 && mouseX < 350 && mouseY > 20 && mouseY < 20+50) {\n\n }\n if (mouseX > 418 && mouseX < 473 && mouseY > 185 && mouseY < 204) {\n rgbEffects();\n }\n if (mouseX > 10 && mouseX < 49 && mouseY > 150 && mouseY < 169) {\n MyController1.getController(\"bar height\").setValue(50);\n MyController2.getController(\"width\").setValue(50);\n input.disableMonitoring();\n }\n if (mouseX > 395 && mouseX < 395+24 && mouseY > 285 && mouseY < 285+24) {\n\n JOptionPane.showMessageDialog(null, \"Audio Visualizer made by Debus Alexy\\nRaccourci clavier : Touche p ou P pour stopper le programme\\nTouche d ou D pour reset\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n if (mouseX > 180 && mouseX < 230 && mouseY > 152 && mouseY < 167) {\n javaColor = JColorChooser.showDialog(null, \"color picker\",Color.WHITE);\n\n\t\tif (javaColor!= null){\n\t\t BEAT = javaColor;\n rgbToHsv(BEAT);\n MyController1.getController(\"Saturation\").setValue((float)s);\n MyController1.getController(\"Brightness\").setValue((float)v);\n h-=90;\n if (h<0){\n h+=360;\n }\n MyController1.getController(\"Hue\").setValue((float)h);\n MyController1.getController(\"Hue\").setColorBackground(color(javaColor.getRed(),javaColor.getGreen(),javaColor.getBlue()));\n // MyController1.getController(\"Hue\").setColorValue(color(255-javaColor.getRed(),255-javaColor.getGreen(),255-javaColor.getBlue()));\n // mon_port.write(javaColor.getRed()+'g'+javaColor.getGreen()+'b'+javaColor.getBlue());\n \t}\n\t\telse {\n\t\t //default\n BEAT = Color.WHITE;\n\t\t}\n\n }\n\n if (mouseX > 430 && mouseX < 469 && mouseY > 290 && mouseY < 309) {\n leaving();\n }\n if (mouseX > 420 && mouseX < 450 && mouseY > 25 && mouseY < 35) {\n MyController1.getController(\"Play\").setValue(1);\n\n }else if (mouseX > 390 && mouseX < 400 && mouseY > 25 && mouseY < 35) {\n MyController1.getController(\"Play\").setValue(0);\n MyController1.getController(\"Beat pulse\").setValue(0);\n }\n\n if (mouseX > 400 && mouseX < 466 && mouseY > 20 && mouseY < 44) {\n buttonPlay = !buttonPlay;\n if (buttonPlay ==true){\n // mon_port.write('1');\n MyController1.getController(\"Play\").setImages(loadImage(\"On.png\"),loadImage(\"On.png\"),loadImage(\"On.png\"));\n }else{\n mon_port.write('0');\n MyController1.getController(\"Play\").setImages(loadImage(\"Off.png\"),loadImage(\"Off.png\"),loadImage(\"Off.png\"));\n }\n }\n}", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "public Double throttleRate() {\n return this.throttleRate;\n }", "public void onShutter() {\n \n }", "@Override\n public void onShutter() {\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (timerFlag) {\n sendInfo(\"heart\", (sim_flag ? bpm/sim_scale : bpm));\n timerFlag = false;\n\n HR_i++;\n if(HR_i>9) {\n HR_i = 0;\n over = true;\n }\n\n if (over)\n {\n HeartRateAvg = 0;\n for (int i=0;i<10;i++)\n {\n HeartRateAvg = HeartRateAvg + HeartRate[i];\n }\n HeartRateAvg = HeartRateAvg/10;\n if ((bpm>HeartRateAvg*1.3 || bpm<HeartRateAvg*0.7) && !sendAttackFlag && sendAttackFlagCnt>15)\n {\n sendInfo(\"attack\",0);\n sendAttackFlag = true;\n Toast.makeText(getApplicationContext(), \"HeartAttack\", Toast.LENGTH_SHORT).show();\n }\n sendAttackFlagCnt++;\n if (sendAttackFlag) {\n sendAttackFlagCnt++;\n if (sendAttackFlagCnt>10)\n {\n sendAttackFlagCnt=0;\n sendAttackFlag = false;\n }\n }\n }\n HeartRate[HR_i] = bpm;\n sendInfo (\"avg\", HeartRateAvg);\n }\n\n // Update the accelerometer\n if (flag) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n final float alpha = (float) 0.8;\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n linear_acceleration[0] = event.values[0] - gravity[0];\n linear_acceleration[1] = event.values[1] - gravity[1];\n linear_acceleration[2] = event.values[2] - gravity[2];\n\n totAcc = Math.sqrt(linear_acceleration[0] * linear_acceleration[0] +\n linear_acceleration[1] * linear_acceleration[1] +\n linear_acceleration[2] * linear_acceleration[2]);\n\n fallAcc = linear_acceleration[2];\n }\n\n // Update the heart rate\n if (event.sensor.getType() == Sensor.TYPE_HEART_RATE) {\n bpm = event.values[0];\n if (sim_flag)\n bpm = bpm/sim_scale;\n\n String message = String.valueOf ((int) bpm) + \" bpm\";\n heart.setText(message);\n }\n\n flag = false;\n\n FallCounter = ((totAcc > threshold) ? FallCounter + 1 : 0);\n\n if (FallCounter == 5 && !detected) {\n fallDetectionAction();\n }\n }\n }", "public void setMiterLimit(float limit);", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "public void testProcessMouseEvent_Stress() throws Exception {\n // the test start time.\n long startTime = System.currentTimeMillis();\n // run the test for RUN_TIMES times.\n for (int i = 0; i < StressTestsHelper.RUN_TIMES; i++) {\n\n MouseEvent event = new MouseEvent(lifelineSegment, 0, 0, 0, 0, 0, 0, false);\n this.lifelineSegment.processMouseEvent(event);\n }\n // output the time used.\n long endTime = System.currentTimeMillis();\n System.out.println(\"Run \" + StressTestsHelper.RUN_TIMES\n + \" LifeLine#processMouseEvent(MouseEvent e) method takes \" + (endTime - startTime) + \"ms\");\n\n }", "public void speedLimiter(int limit, int speed)\t//crate a speedLimiter method w/ integer arguments\r\n\t{\r\n\t\tthis.limit = limit;\t//properties of var. \"limit\" is equal to parameter double \"limit\"\r\n\t\tthis.speed = speed;\t//properties of var. \"speed\" is equal to parameter double \"speed\"\r\n\t}", "private boolean isAccelerating(SensorEvent event) {\n float gx = event.values[0] / SensorManager.GRAVITY_EARTH;\n float gy = event.values[1] / SensorManager.GRAVITY_EARTH;\n float gz = event.values[2] / SensorManager.GRAVITY_EARTH;\n double squareMagnitude = gx * gx + gy * gy + gz * gz;\n return squareMagnitude > SHAKE_THRESHOLD * SHAKE_THRESHOLD;\n }", "public boolean adaptiveRateControlEnabled();", "public void getNextRawSamples( double[] rawBuffer );" ]
[ "0.5861544", "0.5861544", "0.5628111", "0.528119", "0.51639754", "0.51164836", "0.50430965", "0.49950466", "0.4985133", "0.49289536", "0.491662", "0.49093744", "0.48969477", "0.48872405", "0.4881586", "0.48658693", "0.4863999", "0.48401985", "0.48375142", "0.4773468", "0.4768767", "0.47676337", "0.47668716", "0.47421217", "0.47362357", "0.47326988", "0.47215804", "0.47125778", "0.4706764", "0.47039324", "0.4684903", "0.46789217", "0.46694544", "0.46690512", "0.46627703", "0.46583468", "0.46580824", "0.46580783", "0.46351466", "0.46337867", "0.4632164", "0.4630443", "0.4628512", "0.46260625", "0.4618043", "0.46168497", "0.4609886", "0.46054867", "0.4583413", "0.45828217", "0.45770967", "0.4575948", "0.4575509", "0.45739707", "0.45683128", "0.4565289", "0.4545368", "0.4531348", "0.4531348", "0.45275483", "0.4517473", "0.4513034", "0.45126808", "0.4508472", "0.4506891", "0.4497817", "0.44965288", "0.44906747", "0.44893175", "0.4483629", "0.44829455", "0.44810358", "0.4476556", "0.447045", "0.44640544", "0.4456748", "0.44551474", "0.44508395", "0.4448412", "0.44478488", "0.44460645", "0.44444612", "0.4439218", "0.4433339", "0.44297916", "0.4428745", "0.4426781", "0.44221213", "0.4417834", "0.4415918", "0.44109055", "0.4399937", "0.43982494", "0.4397619", "0.43934426", "0.4392117", "0.4392043", "0.43888617", "0.43874288", "0.43830413" ]
0.45425034
57
Get the rendering settings of the mouse annotations (2D)
public MouseSelectionSettings getSelectionSettings() { return selectionSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RenderingHints getRenderingHints()\r\n\t{\r\n\t\treturn _g2.getRenderingHints();\r\n\t}", "public float[] getHitTexCoord();", "public Map<java.awt.RenderingHints.Key, ?> getImplementationHints() {\n return null;\n }", "int wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);", "private void setupRenderingHints() {\n argoRenderingHints = new RenderingHints(null);\n\n argoRenderingHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\n if (Configuration.getBoolean(Argo.KEY_SMOOTH_EDGES, false)) {\n argoRenderingHints.put(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_QUALITY);\n argoRenderingHints.put(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n argoRenderingHints.put(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n } else {\n argoRenderingHints.put(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_SPEED);\n argoRenderingHints.put(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_OFF);\n argoRenderingHints.put(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n }\n }", "public native int getRenderingIntent() throws MagickException;", "public Graphics2D getGraphics()\n \t{\n \t\tif(g2==null)\n \t\t{\n \t\t\tg2=getImage().createGraphics();\n \t\t\tboolean bAntiAlias;\n \t\t\ttry\n \t\t\t{\n \t\t\t\tbAntiAlias=getBoolean(\"antialias\");\n \t\t\t}\n \t\t\tcatch(OmDeveloperException e)\n \t\t\t{\n \t\t\t\tthrow new OmUnexpectedException(e);\n \t\t\t}\n \t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n \t\t\t\tbAntiAlias ? RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF);\n \t\t\tg2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n \t\t\t\tbAntiAlias ? RenderingHints.VALUE_TEXT_ANTIALIAS_ON : RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n \n \t\t\tdouble dZoom=getQuestion().getZoom();\n \t\t\tif(dZoom!=1.0) g2.scale(dZoom,dZoom);\n \t\t}\n \t\treturn g2;\n \t}", "public interface TeaserOverlaySettings {\n\n /**\n * @cm.template.api\n */\n boolean isEnabled();\n\n CMSettings getStyle();\n\n /**\n * @cm.template.api\n */\n int getPositionX();\n\n /**\n * @cm.template.api\n */\n int getPositionY();\n\n /**\n * @cm.template.api\n */\n int getWidth();\n}", "String getKbmouseTarget();", "int wkhtmltoimage_get_global_setting(PointerByReference settings, String name, ByteBuffer value, int vs);", "public ShapeAttributes getHighlightAttributes()\n {\n return highlightAttrs;\n }", "private Point2D mouseLocation() {\n return FXGL.getInput().getMousePositionWorld();\n\n }", "public interface Render2DProvider {\n /*---------------------------------------Static params-------------------------------------------------------------*/\n public enum STYLE {\n COLOR, GRADIENT\n }\n\n public enum CAP {BUTT, ROUND, SQUARE}\n\n public enum JOIN {ROUND, BEVEL, MITER}\n\n public enum TEXT_ALIGN {START, END, LEFT, RIGHT, CENTER}\n\n public enum TEXT_BASELINE {TOP, HANGING, MIDDLE, ALPHABETIC, IDEOGRAPHIC, BOTTOM}\n\n\n /*---------------------------------------Screen details-------------------------------------------------------------*/\n\n /**\n * Returns the current screen width.\n *\n * @return screen width.\n */\n public int getScreenWidth();\n\n /**\n * Returns the current screen height.\n *\n * @return screen height.\n */\n public int getScreenHeight();\n\n /**\n * Converts the formatted length string into the corresponding dimension in pixels. The formatted string includes\n * a number and a suffix, which can be one of the fallowing : px for pixels, % for percent fallowed by w or h (w\n * for a percentage based of the width of the screen and h for a percentage based on the height on the screen).\n *\n * @param dimension a formatted string representing the dimension to be converted.\n * @return the dimension converted to pixels. If the formatted string contains errors , then the function\n * will return -1.\n */\n public int convertDimension(String dimension);\n\n /**\n * Converts the given color formatted as a string, into a {@link Color} object. The formatted string can be one of\n * two types:\n * <ul>\n * <li>\n * A color comprised of a # symbol fallowed by four pairs of hexadecimal numbers, which represent,\n * in order : red, green, blue, and alpha. For example #A000007F results in a dark semitransparent red.\n * </li>\n * <li>\n * A color comprised of a function call to rgba(...) which takes 4 params, all numbers between 0 and 255,\n * representing , in order : red, green , blue and alpha. For example rgba(160, 0, 0, 127) yelds the\n * same color as before.\n * </li>\n * <li>\n * A color comprised of a function call to rgb(...) which takes 3 params, all numbers between 0 and 255,\n * representing , in order : red, green and blue. For example rgb(160, 0, 0) yields the same color as before,\n * except it is now fully opaque. The value of alpha is considered to be fully opaque.\n * </li>\n * </ul>\n *\n * @param color the color formatted as a string.\n * @return the corresponding {@link Color} object.\n */\n public Color convertColor(String color);\n\n /**\n * Returns the given string's width when drawn, using the current text metrics.\n *\n * @param text which text to calculate it's dimension.\n * @return the width of the string as it will be rendered on the screen.\n */\n public int getStringWidth(String text);\n\n /*---------------------------------------Drawing style-------------------------------------------------------------*/\n\n\n /**\n * Sets the active fille color.\n *\n * @param color the color to use for future drawings.\n */\n public void setFillColor(Color color);\n\n /**\n * Sets the active fill gradient.\n */\n public void setFillGradient(Gradient gradient);\n\n /**\n * Sets the active stroke color.\n *\n * @param color the color to use for future drawings.\n */\n public void setStrokeColor(Color color);\n\n /**\n * Sets the active stroke gradient.\n */\n public void setStrokeGradient(Gradient gradient);\n\n\n /**\n * Sets the active drawing color for filled shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setFillStyle(STYLE style);\n\n /**\n * Sets the active drawing color for stroked shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setStrokeStyle(STYLE style);\n\n /**\n * Cap style for line drawings.\n *\n * @param cap cap style (butt, round or square endings).\n */\n public void setDrawingCap(CAP cap);\n\n /**\n * Sets the type of join used for line only drawings.\n *\n * @param join the type of line join(round, bevel or miter). Miter size can be set using the setMiterLimit function.\n */\n public void setDrawingJoin(JOIN join);\n\n /**\n * Sets the miter limit when the join type is miter.\n *\n * @param limit miter limit.\n */\n public void setMiterLimit(float limit);\n\n /**\n * Sets the line width when drawing only with lines.\n *\n * @param lineWidth line width.\n */\n public void setLineWidth(float lineWidth);\n\n /**\n * Sets the font for when drawing / stroking text.\n *\n * @param font which font to use given\n */\n public void setTextFont(Font font);\n\n /**\n * Sets which text align to use when drawing strings.\n *\n * @param align\n */\n public void setTextAlign(TEXT_ALIGN align);\n\n /**\n * Sets which baseline to use when drawing strings.\n *\n * @param baseline\n */\n public void setTextBaseline(TEXT_BASELINE baseline);\n\n /**\n * Sets the current drawing alpha. All subsequent drawing operations will be affected by this alpha value.\n *\n * @param alpha a value between 0 and 1 representing drawing alpha.\n */\n public void setAlpha(float alpha);\n\n /**\n * Returns the current drawing alpha.\n *\n * @return the current drawing alpha.\n */\n public float getAlpha();\n\n /*---------------------------------------General drawing-----------------------------------------------------------*/\n\n /**\n * Begins the drawing cycle. Useful for double buffering and predrawing techniques.\n */\n public void beginDrawing();\n\n /**\n * Ends the current drawing cycle. Useful for flushing the double buffer to the screen.\n */\n public void endDrawing();\n\n /**\n * This method saves all the current params for the drawing api (like color, clipping area etc). This method\n * should be called before setting custom drawing params.\n */\n public void pushState();\n\n /**\n * This method restores current drawing params (like color, fill styles etc.). This method should be called\n * after setting cutom params for drawing.\n */\n public void popState();\n\n /**\n * Clear the entire screen using a complete transparent black.\n */\n public void clearAll();\n\n /**\n * Clear only a portion of the screen using a complete transparent black.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void clearRect(int x, int y, float width, float height);\n\n /**\n * Sets clipping area for future drawing. Any drawings outside this rectangle will not be rendered.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void setRectangleClip(int x, int y, float width, float height);\n\n /**\n * Sets the clipping area for future drawings in the shape of a rounded rectangle.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n * @param radius the radius of the rounded rectangle.\n */\n public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);\n\n /**\n * Sets the clipping area for future drawings in the shape of a circle.\n *\n * @param x the x coordinate for the center of the circle.\n * @param y the y coordinate for the center of the circle.\n * @param radius the radius of the circle.\n */\n public void setCircleClip(int x, int y, int radius);\n\n /**\n * Removes clipping area. Has the same affect as calling {@link Render2DProvider#setRectangleClip(int, int, float, float)}\n * with a rectangle described by coordinates (0, 0) and dimensions (\n * {@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth(),\n * ({@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth()}}\n */\n public void removeClip();\n\n /*-------------------------------------Drawing Transform------------------------------------------------------------*/\n\n /**\n * Translates the origin of future drawing on the screen.\n *\n * @param x amount on the x axis to translate.\n * @param y amount on the y axis to translate.\n */\n public void translate(float x, float y);\n\n /**\n * Rotates the drawing api which will affect all future drawings.\n *\n * @param angle the amount to rotate in radians.\n */\n public void rotate(float angle);\n\n /**\n * Scales the drawing api which will affect all future drawings.\n *\n * @param x amount on the x axis to scale.\n * @param y amount on the y axis to scale.\n */\n public void scale(float x, float y);\n\n /**\n * Adds the given values to the transform of the drawing api, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void transform(float a11, float a12, float a21, float a22, float x, float y);\n\n /**\n * Sets the transform of the drawing api to the given values, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void setTransform(float a11, float a12, float a21, float a22, float x, float y);\n /*---------------------------------------Shape drawing ------------------------------------------------------------*/\n\n /**\n * Fills a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void fillRectangle(int x, int y, int width, int height);\n\n /**\n * Fills a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void fillRectangle(RectangleShape rectangle);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void fillRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to fill.\n * @param radius the radius of the corners.\n */\n public void fillRoundRectangle(RectangleShape rectangle, int radius);\n\n\n /**\n * Strokes a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void strokeRectangle(int x, int y, int width, int height);\n\n /**\n * Strokes a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void strokeRectangle(RectangleShape rectangle);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void strokeRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to stroke.\n * @param radius the radius of the corners.\n */\n public void strokeRoundRectangle(RectangleShape rectangle, int radius);\n\n /**\n * Fills an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void fillArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Strokes an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void strokeArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Creates a filled shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void fillShape(Shape shape);\n\n /**\n * Creates a stroked shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void strokeShape(Shape shape);\n\n /**\n * Draws the given shape using the current fill and stroke color. This uses the shapes own \"filled\" and \"stroked\"\n * params to determine whether or not it should be filled and / or stroked.\n *\n * @param shape which shape to draw.\n */\n public void drawShape(Shape shape);\n\n /*-------------------------------------------Text Drawing ---------------------------------------------------------*/\n\n /**\n * Draws the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to draw.\n */\n public void fillString(float x, float y, String text);\n\n /**\n * Strokes the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to stroke.\n */\n public void strokeString(float x, float y, String text);\n\n /*---------------------------------------------ImageResource Drawing-------------------------------------------------------*/\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will retain it's dimensions when drawn.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY);\n\n /**\n * Draw the specified imageResource to the canvas. The source imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight);\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will be cropped using a rectangle described the the parameters:\n * sourceX, sourceY, sourceWidth and sourceHeight. The cropped imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n * @param sourceX the x coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceY the y coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceWidth the width of the rectangle which will crop the source imageResource.\n * @param sourceHeight the height of the rectangle which will crop the source imageResource.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight,\n float sourceX, float sourceY, float sourceWidth, float sourceHeight);\n\n\n}", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "public abstract float getXdpi();", "@Override\r\n\tprotected int getGUILayout()\r\n\t{\n\t\treturn R.layout.tutorial_stereo_rendering;\r\n\t}", "PointerByReference wkhtmltoimage_create_global_settings();", "int[] getLogicalToVisualMap() {\n if (l2vMap == null) {\n l2vMap = getInverseOrder(getVisualToLogicalMap());\n }\n return l2vMap;\n }", "public String getGeoRender() {\n if ( this.geoRenderer == null || \n this.currentIsColoured != this.mainPreferences.isColourSdoGeomElements() ||\n this.currentRenderType != this.mainPreferences.getVisualFormat() ) \n {\n if ( this.geoValue == null && this.jGeom != null ) \n this.setGeoValue(null);\n if ( this.geoValue != null ) {\n this.currentRenderType = this.mainPreferences.getVisualFormat();\n this.currentIsColoured = this.mainPreferences.isColourSdoGeomElements();\n this.geoRenderer = this.sRenderer.renderSdoGeometry(this.geoValue,this.currentIsColoured);\n\n }\n } \n return this.geoRenderer;\n }", "public double[] getAsDpi2() {\n\t\tif (units != 1)\n\t\t\treturn new double[] { -1, -1 };\n\t\treturn new double[] { ((double) pixelsxUnitX) * 0.0254, ((double) pixelsxUnitY) * 0.0254 };\n\t}", "java.lang.String getRenderer();", "@Override\n public GraphicsConfiguration getGraphicsConfiguration() {\n // Don't check windowPeer for null as it can only happen\n // for windows, but this method is overridden in\n // LWWindowPeer and doesn't call super()\n return getWindowPeer().getGraphicsConfiguration();\n }", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "public Object getRenderingHint(RenderingHints.Key hintKey)\r\n\t{\r\n\t\treturn _g2.getRenderingHint(hintKey);\r\n\t}", "RenderTool getRenderTool();", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public DrawingComponent getAnnotation()\n\t{\n\t\treturn this.annotation;\n\t}", "TileRenderProperties getTileRenderProperties();", "public GraphicsConfiguration getDeviceConfiguration()\r\n\t{\r\n\t\treturn _g2.getDeviceConfiguration();\r\n\t}", "public int getRenderType()\n {\n return 40;\n }", "public final PropertyDescriptor[] getPropertyDescriptors()\n {\n try{\n final PropertyDescriptor[] res={\n prop(\"Color\", \"Color to paint highlight\"),\n prop(\"Size\", \"size to paint highlight (pixels\"),\n };\n return res;\n }\n catch(Exception e)\n {\n MWC.Utilities.Errors.Trace.trace(e);\n return super.getPropertyDescriptors();\n }\n\n }", "public Point2D getMousePosition() {\n\t\treturn Lel.coreEngine.panelPositionToWorld(input.getMousePosition());\n\t}", "int getZoomPref();", "int[] getVisualToLogicalMap() {\n if (v2lMap == null) {\n v2lMap = createVisualToLogicalMap(levels);\n }\n return v2lMap;\n }", "public int[] getHover()\n {\n return hover;\n }", "public Graphics2D getRenderContext(\n )\n {return renderContext;}", "public abstract float getYdpi();", "Appearance getAppearance();", "com.google.protobuf.ByteString\n getRendererBytes();", "public static int getDrawingTool(){ return selectedDrawingTool; }", "public int getRenderType()\n {\n return 2;\n }", "String getRendererType();", "private void drawHelp(Graphics2D g2d) {\n Composite orig_comp = g2d.getComposite();\n g2d.setColor(RTColorManager.getColor(\"brush\", \"dim\")); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.8f)); g2d.fillRect(0,0,getWidth(),getHeight()); g2d.setComposite(orig_comp);\n int base_x = 5, base_y = Utils.txtH(g2d,\"0\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Key\", \"Normal\", \"Shift\", \"Ctrl\", \"Ctrl-Shift\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"E\", \"Expand Selection\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"1 - 9\", \"Select Degree\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"0\", \"Select Degree > 10\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"R\", \"Select Cut Vertices\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Q\", \"Invert Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"X\", \"Hide Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"M\", \"Toggle Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"G\", \"Grid Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Y\", \"Line Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"C\", \"Circle Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"T\", \"Group Nodes\", \"Align Horizontally\", \"Align Vertically\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"S\", \"Set/Clear Sticky Labels\", \"Subtract From\", \"Add To\", \"Intersect With\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"V\", \"Toggle Node Size\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"L\", \"Toggle Labels\", \"Toggle Edge Templates\", \"Toggle Node Legend\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"W\", \"Make One Hops Visible\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"N\", \"Add Note\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"A\", \"Pan Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Minus (-)\", \"Zoom Out\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Plus (+)\", \"Zoom In\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Cursor Keys\", \"Shift Selected Nodes\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"< >\", \"Rotate Selected Nodes\", \"15 Degs\", \"90 Degs\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"{ }\", \"Scale Selected Nodes\", \"More\", \"Even More\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F[2-5]\", \"Save Layout To Fx\", \"Restore\", \"Delete\", \"Restore\");\n }", "public List<Point2D> getControlPoints();", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "static void setTextMousePoint(int i,int j){tmpx=i;tmpy=j;}", "public Collection<String> getAvailableRendererIDs();", "public void getCoord(MouseEvent me){\n if(mapImage.getImage()!=null) {\n double xPos = me.getX();\n double yPos = me.getY();\n Main.ps.setTitle(xPos + \" \" + yPos);\n }\n }", "DataMap getCustomAnnotations();", "public PSRenderingMode getRenderingMode() {\n return this.renderingMode;\n }", "public Plot2D getPlotter() {\n\t\treturn plot;\n\t}", "@Override\n public NativeMouseInfo getNativeMouseInfo() {\n return null;\n }", "public abstract Cursor getMouseCursor();", "private IDrawingStrategy getDrawingStrategy(Annotation annotation) {\n \t\tString type= annotation.getType();\n \t\tIDrawingStrategy strategy = (IDrawingStrategy) fRegisteredDrawingStrategies.get(fAnnotationType2DrawingStrategyId.get(type));\n \t\tif (strategy != null)\n \t\t\treturn strategy;\n \n \t\tif (fAnnotationAccess instanceof IAnnotationAccessExtension) {\n \t\t\tIAnnotationAccessExtension ext = (IAnnotationAccessExtension) fAnnotationAccess;\n \t\t\tObject[] sts = ext.getSupertypes(type);\n \t\t\tfor (int i= 0; i < sts.length; i++) {\n \t\t\t\tstrategy= (IDrawingStrategy) fRegisteredDrawingStrategies.get(fAnnotationType2DrawingStrategyId.get(sts[i]));\n \t\t\t\tif (strategy != null)\n \t\t\t\t\treturn strategy;\n \t\t\t}\n \t\t}\n \n \t\treturn fgNullDrawer;\n \n \t}", "public Graphics2D getGraphics(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n BufferStrategy bs = w.getBufferStrategy();\n //return (Graphics2D)bs.getDrawGraphics();\n return (Graphics2D)strategy.getDrawGraphics();\n } else {\n return null;\n }\n }", "protected static String getXY(List<AccessibilityNodeInfo> nodes ) {\n try {\n String listStringXY= CopyOfStringUtil.ListToString(nodes);\n Acesslog(\"当前屏幕信息 \"+listStringXY);\n String test = listStringXY.substring(listStringXY.indexOf(\"boundsInScreen\")+1,listStringXY.indexOf(\"packageName\"));\n String test2 = test.substring(test.indexOf(\"(\")+1,test.indexOf(\")\"));\n //以a为分割字符 Rect(209, 432 - 860, 494)\n String[] splitstr=test2.split(\"-\");\n for(String res : splitstr){\n String[] splitsXY=res.split(\",\");\n String X=splitsXY[0];\n String Y=splitsXY[1];\n Acesslog(\"测试 \"+test2 );\n\n Acesslog(\"取到的坐标 X\"+X+\" Y \"+Y );\n return execShell(\"input tap \"+X+\"\"+Y);\n\n }\n\n\n\n\n\n }catch(Exception e){\n Acesslog(\"获取坐标 失败\"+e);\n\n }\n return null;\n }", "public OrthogonalTiledMapRenderer getRenderer() {\n\t\treturn renderer; \n\t}", "int getBitsPerPixel();", "public interface GraphicsAccess {\n\n /**\n * Get maximal width of the Graphics context\n * @param g The Graphics context\n * @return The width of the Graphics context\n */\n public int getGraphicsWidth(Graphics g);\n\n /**\n * Get maximal height of the Graphics context\n * @param g The Graphics context\n * @return The height of the Graphics context\n */\n public int getGraphicsHeight(Graphics g);\n\n /**\n * Get creator of the Graphics object\n * @param g Graphics object to get creator from\n * @return Graphics creator reference\n */\n public Object getGraphicsCreator(Graphics g);\n\n /**\n * Set the creator of the Graphics object\n * @param g Graphics object to set creator for\n * @param creator Graphics creator reference\n */\n void setGraphicsCreator(Graphics g, Object creator);\n\n /**\n * Get screen width regarding the rotation mode\n * @return screen width in pixels\n */\n public int getScreenWidth();\n\n /**\n * Get screen height regarding the rotation mode\n * @return screen height in pixels\n */\n public int getScreenHeight();\n}", "public final LWGraphicsConfig getLWGC() {\n return (LWGraphicsConfig) getGraphicsConfiguration();\n }", "public DirectShapeRenderer getRenderer() {\n \t\treturn renderer;\n \t}", "public MarkStyle[] getStyles() {\n return styles_;\n }", "public Double getMouse8()\n {\n return this.mouse8;\n }", "public Double getMouse2()\n {\n return this.mouse2;\n }", "Map<String, Object> getFilterScratchpad();", "public Object[] getTooltipTokens() {\n return null;\n }", "public Object getOnmousemove() {\r\n\t\treturn getOnMouseMove();\r\n\t}", "BalloonAttributes getHighlightAttributes();", "@Override\r\n\tpublic int[] getConfigSpec() {\n\t\tint[] configSpec = {\r\n EGL10.EGL_DEPTH_SIZE, 16,\r\n EGL10.EGL_NONE\r\n };\r\n return configSpec;\r\n\t}", "private EGLConfig getConfig(int flags, int version) {\n int renderableType = XenonGL.EGL_OPENGL_ES2_BIT;\n if (version >= 3) {\n renderableType = XenonGL.EGL_OPENGL_ES3_BIT;\n }\n\n // The actual surface is generally RGBA or RGBX, so situationally omitting alpha\n // doesn't really help. It can also lead to a huge performance hit on glReadPixels()\n // when reading into a GL_RGBA buffer.\n int[] attribList = {\n EGL10.EGL_RED_SIZE, 8,\n EGL10.EGL_GREEN_SIZE, 8,\n EGL10.EGL_BLUE_SIZE, 8,\n EGL10.EGL_ALPHA_SIZE, 8,\n //EGL14.EGL_DEPTH_SIZE, 16,\n //EGL14.EGL_STENCIL_SIZE, 8,\n EGL10.EGL_RENDERABLE_TYPE, renderableType,\n EGL10.EGL_NONE, 0, // placeholder for recordable [@-3]\n EGL10.EGL_NONE\n };\n if ((flags & FLAG_RECORDABLE) != 0) {\n attribList[attribList.length - 3] = EGL_RECORDABLE_ANDROID;\n attribList[attribList.length - 2] = 1;\n }\n EGLConfig[] configs = new EGLConfig[1];\n int[] numConfigs = new int[1];\n if (!argonEGL.eglChooseConfig(argonGLDisplay, attribList, configs, configs.length,\n numConfigs)) {\n Logger.warn(\"unable to find RGB8888 / \" + version + \" EGLConfig\");\n return null;\n }\n return configs[0];\n }", "public Rectangle getPlotBounds();", "public GraphicOptions getGraphicOptions() {\n\t\treturn theGraphicOptions;\n\t}", "public GraphicsContext getGraphicsContext2D(){\n return canvas.getGraphicsContext2D();\n }", "@Override\n public ColorModel getColorModel() {\n return getGraphicsConfiguration().getColorModel();\n }", "public IsFont getHoverFont() {\n\t\treturn getOriginalHoverFont();\n\t}", "public int getRenderLayer() {\n\t\treturn renderLayer;\n\t}", "protected DrawingAttributes getAttributesForRendering(DrawingAttributes da) {\n if (da == null) {\n return getRenderingAttributes();\n } else {\n return da;\n }\n }", "public int getScorePerPixel() {\n\treturn scorePerPixel;\n }", "public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}", "String getHoverDetail();", "public interface IText extends ISinglePoint {\n\n /**\n * Defines whether the text rotation is relative to the screen or geographic\n * north\n * \n * @author sgilbert\n * \n */\n public static enum TextRotation {\n SCREEN_RELATIVE, NORTH_RELATIVE\n }\n\n /**\n * Defines the text justification options\n * \n * @author sgilbert\n * \n */\n public static enum TextJustification {\n LEFT_JUSTIFY, CENTER, RIGHT_JUSTIFY\n }\n\n /**\n * Defines available font styles\n * \n * @author sgilbert\n * \n */\n public static enum FontStyle {\n REGULAR, BOLD, ITALIC, BOLD_ITALIC\n }\n\n public static enum DisplayType {\n NORMAL, BOX, UNDERLINE, OVERLINE\n }\n\n /**\n * Gets the text to draw\n * \n * @return Array of text strings\n */\n public String[] getString();\n\n /**\n * Gets the name of the font to use\n * \n * @return font name\n */\n public String getFontName();\n\n /**\n * Gets the size of the font\n * \n * @return font size\n */\n public float getFontSize();\n\n /**\n * Gets the font style to use\n * \n * @return font style\n */\n public FontStyle getStyle();\n\n /**\n * Gets the lat/lon refernce position for the text display\n * \n * @return lat/lon coordinate\n */\n public Coordinate getPosition();\n\n /**\n * Gets the color to use for the text\n * \n * @return text color\n */\n public Color getTextColor();\n\n /**\n * Gets the specified justification\n * \n * @return the text justification\n */\n public TextJustification getJustification();\n\n /**\n * Gets the rotation angle to use\n * \n * @return rotation angle\n */\n public double getRotation();\n\n /**\n * Gets how the rotation angle is applied\n * \n * @return the rotation relativity\n */\n public TextRotation getRotationRelativity();\n\n /**\n * Determines whether the text should be displayed with an outline box\n * \n * @return true, if outline box should be displayed\n */\n public DisplayType getDisplayType();\n\n /**\n * Determines whether text background should be masked out.\n * \n * @return true, if background is to be masked\n */\n public Boolean maskText();\n\n /**\n * Gets the offset in the x direction for the text location. The offset is\n * specified in half-characters.\n * \n * @return The x direction offset\n */\n public int getXOffset();\n\n /**\n * Gets the offset in the y direction for the text location. The offset is\n * specified in half-characters.\n * \n * @return The y direction offset\n */\n public int getYOffset();\n\n public Boolean getHide();\n\n public Boolean getAuto();\n\n public int getIthw();\n\n public int getIwidth();\n\n}", "public Graphics2D getGraphics(){\n\t\ttry {\n\t\t\treturn (Graphics2D)this.getBufferStrategy().getDrawGraphics();\n\t\t} catch (Exception ex1) {\n\t\t\treturn null;\n\t\t}\n\t}", "public int[] getGraphicIDs()\n\t{\n\t\treturn getObject().getGraphicIDs();\n\t}", "public Graphics getDrawGraphics()\n {\n return ((front == page1) ? page2 : page1).getGraphics();\n }", "byte[] getCurrentPixel() {\n byte[] pixel = new byte[2];\n\n pixel[0] = ((byte) cursor.getX());\n pixel[1] = ((byte) cursor.getY());\n\n for (byte b : pixel) {\n\n if (b >= axisLength || b < 0) {\n return null;\n }\n }\n return pixel;\n }", "protected StringBuffer getAttributes()\r\n\t{\r\n\t\t// Output buffer\r\n\t\tStringBuffer transformBuff\t= new StringBuffer();\r\n\t\t// The various transformation buffers.\r\n\t\tStringBuffer rotateBuff\t\t= new StringBuffer();\r\n\t\tStringBuffer translateBuff\t= new StringBuffer();\r\n\t\tStringBuffer scaleBuff \t\t= new StringBuffer();\r\n\r\n\t\t\r\n\t\t// now let's calculate our transformation information if any.\r\n\t\t////////////////// Rotate the object ////////////\r\n\t\t// you may want to play with this if it doesn't work\r\n\t\t// Transformation a followed by tranformation b is not the\r\n\t\t// same as transformation b followed by transformation a.\r\n\t\t// Page 65 SVG Essentials, J. David Eisenberg, O'Reilly Press.\r\n\t\tif (Rotation != 0.0)\r\n\t\t{\r\n\t\t\trotateBuff.append(\"rotate(\");\r\n\t\t\trotateBuff.append(Rotation + \" \");\r\n\t\t\t// Blocks are rotated around their insertion point.\r\n\t\t\trotateBuff.append(Anchor.toTransformCoordinate());\r\n\t\t\trotateBuff.append(\") \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t\t///////////////// Scale the object //////////////\r\n\t\tif ((xScale != 1.0) || (yScale != 1.0))\r\n\t\t{\r\n\t\t\tscaleBuff.append(\" scale(\"+xScale);\r\n\t\t\tif (xScale != yScale)\r\n\t\t\t\tscaleBuff.append(\",\"+yScale);\r\n\t\t\tscaleBuff.append(\")\");\r\n\t\t\t\r\n\t\t\t// Now we have to compensate for any scaling in the y axis \r\n\t\t\t// because Dxf scales objects from the lower left corner of\r\n\t\t\t// the drawing and SVG scales from the top left.\r\n\t\t\t//\r\n\t\t\t// This requires a little explanation as it took some time \r\n\t\t\t// to work out exactly what is going on between DXF and SVG.\r\n\t\t\t//\r\n\t\t\t// Blocks in AutoCAD have their own space. When you choose \r\n\t\t\t// an insertion point for a block you are telling the block\r\n\t\t\t// that it's new origin is the insert point, not the drawing's\r\n\t\t\t// origin.\r\n\t\t\t//\r\n\t\t\t// Dxf2Svg reads the blocks section of the DXF and interprets the\r\n\t\t\t// entities within a block literally and converts them into \r\n\t\t\t// XML entities with the insert point as their origin.\r\n\t\t\t// \r\n\t\t\t// Now DXF's drawing origin is in the bottom lefthand corner of the page.\r\n\t\t\t// SVG's origin is the top left hand corner. That means that all blocks \r\n\t\t\t// are drawn in reference to the lower left corner. We have already converted\r\n\t\t\t// the blocks entities to assume that the origin is SVG style (top left)\r\n\t\t\t// so when we try to specify an insert point in SVG, we have a problem. The\r\n\t\t\t// references are from different corners of the page.\r\n\t\t\t//\r\n\t\t\t// To compensate blocks have two points; an Anchor like all other graphic \r\n\t\t\t// objects and a Virtual DXF Coordinate (VDC). The VDC is basically\r\n\t\t\t// the x, and y values from the DXF file, converted to USR_UNITS.\r\n\t\t\t// That's all. It is not converted to SVG space. \r\n\t\t\t// \r\n\t\t\t// First you \r\n\t\t\t// must imagine that you are overlaying SVG space (0,0 top left) on top\r\n\t\t\t// of DXF space (0,0 bottom left). To get objects to appear in the same\r\n\t\t\t// location as they did in the DXF you must move that insertion point\r\n\t\t\t// up above the SVG y = 0 line (so y becomes negative in SVG).\r\n\t\t\t// This requires knowing the height of \r\n\t\t\t// the drawing which SvgUtil.java can provide. Once you know the height\r\n\t\t\t// you find out how subtract the anchor's y coordinate from the height\r\n\t\t\t// thus in effect you are flipping between the two drawing spaces.\r\n\t\t\t//\r\n\t\t\t// Inserting an object is easy now; just use the VDC as the anchor and \r\n\t\t\t// reference the block within a &lt;g&gt; tag. If you want to scale\r\n\t\t\t// that object, things get a little more complicated. The y\r\n\t\t\t// value is in the negative 'y' range of the SVG space. Any scaling of\r\n\t\t\t// that object will be in reference to that point.\r\n\t\t\t//\r\n\t\t\t// So to get the object to appear in it's original position we must move\r\n\t\t\t// it further up into negative y SVG space by the distance it would \r\n\t\t\t// have grown during transformation. I.e. if the object grew by 25% or\r\n\t\t\t// 1.25 in AutoCAD, and the object is 1 inch in height then the growth\r\n\t\t\t// through scaling is 1 * (1.25 -1) or 1 * 0.25 or 0.25 inches.\r\n\t\t\t//\r\n\t\t\t// Now we need to now the distance of the VDC from the SVG object's\r\n\t\t\t// origin. That should be the height of the drawing, but to be sure \r\n\t\t\t// add the absolute value of the distance from SVG y = 0 to the object's\r\n\t\t\t// origin in negative y SVG space, and add it to the distance from \r\n\t\t\t// SVG y = 0 to the VDC y coordinate. Now if you multiply that distance\r\n\t\t\t// by the above 0.25, and subtract that from the SVG origin point\r\n\t\t\t// in negative SVG y space you will have compensated for the shift of \r\n\t\t\t// due to scaling.\r\n\t\t\t//\r\n\t\t\t// We don't need to do anything with the x value because it is \r\n\t\t\t// just the VDC x value, which has a one-to-one relationship to\r\n\t\t\t// SVG space except that it is not in SVG space, but in DXF space.\r\n\t\t\t//\r\n\t\t\t// I'm sorry this would have benifited from a picture so perhaps you\r\n\t\t\t// should browse through the paper documentation as there is a diagram\r\n\t\t\t// that I used to formulate the algorithm.\r\n\t\t\t\r\n\t\t\t//double VDCx = virtualDxfPoint.getX();\r\n\t\t\tdouble VDCy = virtualDxfPoint.getY();\r\n\t\t\t//double Ax\t= Anchor.getX();\r\n\t\t\tdouble Ay\t= Anchor.getY();\r\n\t\t\t\r\n\t\t\t////////////////////////////////\r\n\t\t\t//VDCx = VDCx;\r\n\t\t\tVDCy = VDCy - ((Ay + Math.abs(VDCy))*(yScale -1));\r\n\t\t\t////////////////////////////////\r\n\r\n\t\t\t// We do not need to set the x value for this point. I don't know why.\r\n\t\t\t//virtualDxfPoint.setXUU(VDCx);\r\n\t\t\tvirtualDxfPoint.setYUU(VDCy);\r\n\t\t}\r\n\t\t\r\n\t\t// We do this last because we might have adjusted the virtualDxfPoint's y \r\n\t\t// value, but the transformation is best done after the rotation and it seems\r\n\t\t// before the scale. \r\n\t\ttranslateBuff.append(\"translate(\");\r\n\t\ttranslateBuff.append(virtualDxfPoint.toTransformCoordinate());\r\n\t\ttranslateBuff.append(\")\");\r\n\t\t\r\n\t\t\r\n\t\t// Put all three parts together now.\r\n\t\ttransformBuff.append(\" transform=\\\"\");\r\n\t\t// Can only do this with Java 1.4\r\n\t\t// The transformation ordering can be changed here.\r\n\t\ttransformBuff.append(rotateBuff);\r\n\t\ttransformBuff.append(translateBuff);\r\n\t\ttransformBuff.append(scaleBuff);\t// this may be an empty buffer.\r\n\t\t// closing quote on the transformation string.\r\n\t\ttransformBuff.append(\"\\\"\");\r\n\t\ttransformBuff.append(getAdditionalAttributes());\r\n\t\t\r\n\t\treturn transformBuff;\r\n\t}", "public boolean isPaintingAnnotations() {\n \t\treturn !fConfiguredAnnotationTypes.isEmpty() || !fConfiguredHighlightAnnotationTypes.isEmpty();\n \t}", "public native GSize getPixelOffset(GInfoWindow self)/*-{\r\n\t\treturn self.getPixelOffset();\r\n\t}-*/;", "String getPlotterName();", "@Override\n public int getRenderType()\n {\n return 22;\n }", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "public abstract Rect getRectForNodeHighlight();", "public String getHover() { return (String)get(\"Hover\"); }", "public Paint[] getPatterns() {\n return mGraphicsRenderer.getPatterns();\n }", "public RecodedReal getLineWidth(){\n return ps == null ? null :ps.getWidthLegend();\n }", "protected void setViewRenderingHints(Graphics2D g) {\n\t\tg.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,\r\n\t\t\t\tRenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,\r\n\t\t\t\tRenderingHints.VALUE_STROKE_NORMALIZE);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,\r\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\r\n\t\t\t\tRenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_RENDERING,\r\n\t\t\t\tRenderingHints.VALUE_RENDER_SPEED);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\r\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\r\n\t}", "private JPanel getRendererSettingsPanel(int rendererIndex, int seriesIdx) {\n \n \t\tJPanel rendererSettingsPanel = new JPanel(new MigLayout(\"w \"\n \t\t\t\t+ (ChartPanel.DEFAULT_WIDTH - 40) + \",wrap 2\"));\n \n \t\t/*\n \t\t * Color...\n \t\t */\n \t\trendererSettingsPanel\n \t\t\t\t.add(getSeriesColorButton(rendererIndex, seriesIdx));\n \n \t\t// The possibility to show/hide shapes is only given for non point\n \t\t// layers. otherwise set true!\n \t\tif (chartStyle.getType() != ChartType.POINT\n \t\t\t\t&& chartStyle.getType() != ChartType.SCATTER\n \t\t\t\t&& chartStyle.getType() != ChartType.BAR) {\n \t\t\trendererSettingsPanel.add(getShapesVisibleJCheckBoxFor(\n \t\t\t\t\trendererIndex, seriesIdx));\n \t\t} else {\n \t\t\tchartStyle.getRendererStyle(rendererIndex).setSeriesShapesVisible(\n \t\t\t\t\tseriesIdx, true);\n \t\t\trendererSettingsPanel.add(new JLabel());\n \t\t}\n \n \t\trendererSettingsPanel.add(getSeriesDataSelectionJPanel(rendererIndex,\n \t\t\t\tseriesIdx), \"span 2, growx\");\n \n \t\t/*\n \t\t * Legend...\n \t\t */\n \t\trendererSettingsPanel.add(getLegendTitleTranslationEditPanel(\n \t\t\t\trendererIndex, seriesIdx), \"span 2, growx\");\n \n \t\trendererSettingsPanel\n \t\t\t\t.addPropertyChangeListener(new PropertyChangeListener() {\n \n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n \t\t\t\t\t\tif (evt.getPropertyName().equals(\"chartStyle\")) {\n \t\t\t\t\t\t\tfireChartChangedEvent();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t});\n \n \t\treturn rendererSettingsPanel;\n \t}", "protected IFigure getFeedbackLayer() {\n\t\treturn getLayer(LayerConstants.SCALED_FEEDBACK_LAYER);\n\t}", "public Set<Glyph> getFlagGlyphs ()\r\n {\r\n return flagGlyphs;\r\n }" ]
[ "0.63117546", "0.5681801", "0.5392127", "0.5289962", "0.528995", "0.5188994", "0.51560163", "0.5136495", "0.5094383", "0.5082963", "0.506305", "0.5047043", "0.50433946", "0.5017443", "0.5017416", "0.5000532", "0.49731192", "0.49624208", "0.49465355", "0.4930118", "0.49188972", "0.49164203", "0.49096417", "0.49061355", "0.4878583", "0.48757893", "0.48721415", "0.4869865", "0.48670816", "0.48452604", "0.48127925", "0.48105368", "0.48084366", "0.47850296", "0.4781248", "0.47805747", "0.47755444", "0.4768742", "0.47659037", "0.47570932", "0.47534448", "0.47376493", "0.4724163", "0.47043037", "0.47016162", "0.46902496", "0.46864152", "0.46682757", "0.4667385", "0.46618995", "0.46507725", "0.46445045", "0.464311", "0.46262926", "0.46209466", "0.4607539", "0.46058604", "0.46053824", "0.46049562", "0.4597797", "0.45973772", "0.45966408", "0.45913407", "0.4587181", "0.45869896", "0.4579433", "0.45769277", "0.45758024", "0.45750758", "0.45719185", "0.45674902", "0.45673785", "0.45650643", "0.45598772", "0.45500734", "0.454637", "0.454282", "0.4538075", "0.45321974", "0.4528579", "0.4525473", "0.4521375", "0.45054394", "0.45010522", "0.44904196", "0.44831997", "0.44776547", "0.44707513", "0.4466413", "0.4465634", "0.44603077", "0.4455609", "0.44494691", "0.44490454", "0.44381717", "0.4437502", "0.44367942", "0.4431941", "0.4429104", "0.4415548" ]
0.53833646
3
Set all rendering settings of the mouse annotations (2D) at once
public void setSelectionSettings(MouseSelectionSettings selectionSettings) { this.selectionSettings = selectionSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupRenderingHints() {\n argoRenderingHints = new RenderingHints(null);\n\n argoRenderingHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\n if (Configuration.getBoolean(Argo.KEY_SMOOTH_EDGES, false)) {\n argoRenderingHints.put(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_QUALITY);\n argoRenderingHints.put(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n argoRenderingHints.put(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n } else {\n argoRenderingHints.put(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_SPEED);\n argoRenderingHints.put(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_OFF);\n argoRenderingHints.put(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n }\n }", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "void reconfigure() {\n computePosition(_primaryPlot.getScreenCoords(findCurrentCenterPoint()), false);\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}", "@Override\n public void setRenderer(Object arg0)\n {\n \n }", "void setupRender() {\n\t\t_highlightFacilityId = _facilityId;\n\t}", "public void setAppearanceStream(Rectangle bbox) {\r\n\r\n matrix = new AffineTransform();\r\n this.bbox = new Rectangle();\r\n this.bbox.setRect(bbox);\r\n if (shapes == null) {\r\n shapes = new Shapes();\r\n }\r\n\r\n // remove any previous text\r\n this.shapes.getShapes().clear();\r\n\r\n // setup the space for the AP content stream.\r\n AffineTransform af = new AffineTransform();\r\n af.scale(1, -1);\r\n af.translate(-this.bbox.getMinX(),\r\n -this.bbox.getMaxY());\r\n\r\n shapes.add(new TransformDrawCmd(af));\r\n\r\n // create the new font to draw with\r\n Font awtFont = new Font(fontName, fontStyle, fontSize);\r\n OFont font = new OFont(awtFont);\r\n // init font's metrics\r\n font.echarAdvance(' ');\r\n TextSprite textSprites =\r\n new TextSprite(font,\r\n content.length(),\r\n new AffineTransform(new AffineTransform()));\r\n textSprites.setRMode(TextState.MODE_FILL);\r\n textSprites.setStrokeColor(fontColor);\r\n\r\n // iterate over each line of text painting the strings.\r\n String[] lines = content.split(\"[\\\\r\\\\n]+\");\r\n\r\n float padding = 10; // border padding of the component\r\n float lineHeight = (float) font.getDescent() +\r\n (float) (font.getAscent());\r\n\r\n float advanceX = (float) bbox.getMinX() + padding;\r\n float advanceY = (float) bbox.getMinY() + padding;\r\n\r\n float currentX;\r\n float currentY = advanceY + lineHeight;\r\n\r\n float lastx = 0;\r\n\r\n for (String line : lines) {\r\n char currentChar;\r\n // glyph placement params\r\n float newAdvanceX;\r\n GlyphText glyphText = null;\r\n for (int i = 0; i < line.length(); i++) {\r\n currentChar = line.charAt(i);\r\n\r\n newAdvanceX = (float) font.echarAdvance(currentChar).getX();\r\n currentX = advanceX + lastx;\r\n lastx += newAdvanceX;\r\n\r\n // get normalized from from text sprite\r\n glyphText = textSprites.addText(\r\n String.valueOf(currentChar), // cid\r\n String.valueOf(currentChar), // unicode value\r\n currentX, currentY, newAdvanceX);\r\n }\r\n\r\n if (glyphText != null) {\r\n currentY += lineHeight;\r\n advanceX = (float) bbox.getMinX() + padding;\r\n lastx = 0;\r\n }\r\n }\r\n BasicStroke stroke;\r\n if (borderStyle.isStyleDashed()) {\r\n stroke = new BasicStroke(\r\n borderStyle.getStrokeWidth(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER,\r\n 10.0f, borderStyle.getDashArray(), 0.0f);\r\n } else {\r\n stroke = new BasicStroke(borderStyle.getStrokeWidth());\r\n }\r\n\r\n // background colour\r\n shapes.add(new ShapeDrawCmd(bbox));\r\n if (fillType) {\r\n shapes.add(new ColorDrawCmd(fillColor));\r\n shapes.add(new FillDrawCmd());\r\n }\r\n // border\r\n if (strokeType) {\r\n shapes.add(new StrokeDrawCmd(stroke));\r\n shapes.add(new ColorDrawCmd(color));\r\n shapes.add(new DrawDrawCmd());\r\n }\r\n // actual font.\r\n shapes.add(new ColorDrawCmd(fontColor));\r\n shapes.add(new TextSpriteDrawCmd(textSprites));\r\n }", "public void setHighlight() {\n _highlight = HighlightMode.NORMAL;\n \n _input.setHighlightIntern();\n _output.setHighlightIntern();\n \n _isHighlighted = true;\n \n }", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void addRenderingHints(Map hints)\r\n\t{\r\n\t\t// System.out.println(\"addRenderingHints\");\r\n\t}", "public void graphicalSettings(int ps, int tw, int th) {\n\n setZoom(ps);\n T_WIDTH = tw;\n T_HEIGHT = th;\n\n SCREEN_WIDTH = T_WIDTH * P_SCALE + EMBOSS;\n SCREEN_HEIGHT = T_HEIGHT * P_SCALE + EMBOSS;\n }", "private void refreshMouseMap() {\r\n Point currentMousePos = MouseInfo.getPointerInfo().getLocation();\r\n int iMax = 5;\r\n this.mousePositions.clear();\r\n for (int i = 0; i < iMax; i++)\r\n this.mousePositions.add(currentMousePos);\r\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 }", "public void onAnnotationsPreModify(Map<Annot, Integer> annots) {\n/* 297 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* 301 */ this.mPreModifyPageNum = 0;\n/* 302 */ this.mPreModifyAnnotRect = null;\n/* */ \n/* 304 */ for (Map.Entry<Annot, Integer> pair : annots.entrySet()) {\n/* 305 */ Annot annot = pair.getKey();\n/* 306 */ Integer pageNum = pair.getValue();\n/* 307 */ if (this.mPreModifyPageNum != 0 && this.mPreModifyPageNum != pageNum.intValue()) {\n/* 308 */ this.mPreModifyPageNum = 0;\n/* 309 */ this.mPreModifyAnnotRect = null;\n/* */ return;\n/* */ } \n/* 312 */ this.mPreModifyPageNum = pageNum.intValue();\n/* */ try {\n/* 314 */ if (annot != null && annot.isValid()) {\n/* */ Rect annotRect;\n/* 316 */ if (annot.getType() == 19) {\n/* */ \n/* 318 */ Widget widget = new Widget(annot);\n/* 319 */ Field field = widget.getField();\n/* 320 */ annotRect = field.getUpdateRect();\n/* */ } else {\n/* 322 */ annotRect = this.mPdfViewCtrl.getPageRectForAnnot(annot, pageNum.intValue());\n/* */ } \n/* 324 */ annotRect.normalize();\n/* 325 */ if (this.mPreModifyAnnotRect != null) {\n/* 326 */ this.mPreModifyAnnotRect.setX1(Math.min(this.mPreModifyAnnotRect.getX1(), annotRect.getX1()));\n/* 327 */ this.mPreModifyAnnotRect.setY1(Math.min(this.mPreModifyAnnotRect.getY1(), annotRect.getY1()));\n/* 328 */ this.mPreModifyAnnotRect.setX2(Math.max(this.mPreModifyAnnotRect.getX2(), annotRect.getX2()));\n/* 329 */ this.mPreModifyAnnotRect.setY2(Math.max(this.mPreModifyAnnotRect.getY2(), annotRect.getY2())); continue;\n/* */ } \n/* 331 */ this.mPreModifyAnnotRect = annotRect;\n/* */ }\n/* */ \n/* 334 */ } catch (Exception e) {\n/* 335 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ } \n/* */ }", "static void setTextMousePoint(int i,int j){tmpx=i;tmpy=j;}", "void setSemanticsForInterpretationBoards(){\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 ((TInterpretationBoard)theShape).setSemantics(fSemantics);\r\n }\r\n }\r\n }\r\n\r\n\r\n }", "public void setPaintMode()\r\n\t{\r\n\t\t// System.out.println(\"setPaintMode\");\r\n\t}", "private void settingsScreenRender() {\n overlay.draw(batch, 0.5f);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n musicOn.draw(batch, 1);\n musicOff.draw(batch, 1);\n resume.draw(batch, 1);\n settingStage.draw();\n }", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "protected void setViewRenderingHints(Graphics2D g) {\n\t\tg.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,\r\n\t\t\t\tRenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,\r\n\t\t\t\tRenderingHints.VALUE_STROKE_NORMALIZE);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,\r\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\r\n\t\t\t\tRenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_RENDERING,\r\n\t\t\t\tRenderingHints.VALUE_RENDER_SPEED);\r\n\t\tg.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\r\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\r\n\t}", "public void changeToStandard(){\n drawAttributeManager.toggleStandardView();\n getContentPane().setBackground(DrawAttribute.whiteblue);\n canvas.repaint();\n }", "protected abstract void setMarkers();", "private void setDefaultMonsterCords()\n {\n this.xBeginMap=0;\n this.yBeginMap=0;\n this.xEndMap=16;\n this.yEndMap=16;\n\n this.xBeginSrc=0;\n this.yBeginSrc=0;\n this.xEndSrc=0;\n this.yEndSrc=0;\n\n }", "public void setCoords(int x, int y) {\n\t\t setLayoutX(x);\n\t setLayoutY(y);\n\t}", "protected void setupAnnotationToggling() {\r\n\t\tgetWWD().addSelectListener(new SelectListener() {\r\n\t\t\tpublic void selected(SelectEvent event) {\r\n\t\t\t\tif (event.getEventAction().equals(SelectEvent.LEFT_CLICK)) {\r\n\t\t\t\t\tif (event.hasObjects()) {\r\n\t\t\t\t\t\tObject obj = event.getTopObject();\r\n\t\t\t\t\t\tif (obj instanceof ToggleAnnotation) {\r\n\t\t\t\t\t\t\tToggleAnnotation annotation = (ToggleAnnotation) obj;\r\n\t\t\t\t\t\t\tannotation.toggleText();\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}\r\n\t\t});\r\n\t}", "protected void configureGraphics(Graphics2D g)\n/* */ {\n/* 373 */ AffineTransform tx = getTransform();\n/* 374 */ if (tx != null) {\n/* 375 */ g.setTransform(tx);\n/* */ }\n/* */ }", "private void initTickMarksPixelMap() {\n LogUtil.info(TAG, \"initTickMarksPixelMap() begin\");\n if (mTickMarksDrawable instanceof StateElement) {\n StateElement listDrawable = (StateElement) mTickMarksDrawable;\n try {\n int stateCount = listDrawable.getStateCount();\n if (stateCount == 2) {\n setTickMarksPixelMapValues(listDrawable, stateCount);\n } else {\n\n //please check your selector drawable's format, please see above to correct.\n throw new IllegalArgumentException(\"the format of the selector TickMarks drawable is wrong!\");\n }\n } catch (IllegalArgumentException e) {\n mUnselectedTickMarksPixelMap = getPixelMapFromDrawable(mTickMarksDrawable, false);\n mSelectTickMarksPixelMap = mUnselectedTickMarksPixelMap;\n }\n } else {\n mUnselectedTickMarksPixelMap = getPixelMapFromResId(false, false);\n mSelectTickMarksPixelMap = mUnselectedTickMarksPixelMap;\n }\n LogUtil.info(TAG, \"initTickMarksPixelMap() end\");\n }", "void setupRender() {\n\t\tif (!init()) {\n\t\t\tisAccess = false;\n\t\t\treturn;\n\t\t}\n\t}", "public void resetGraphicsWindowZoomAndMeasurement() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tthis.graphicsTabItem.setModeState(GraphicsMode.RESET);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tDataExplorer.this.graphicsTabItem.setModeState(GraphicsMode.RESET);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "protected void setSpecificInputOutput() {\n\t\tsetInputOutput(new GeoElement[] { (GeoElement) point, inputOrtho },\n\t\t\t\tnew GeoElement[] { line });\n\t}", "protected void setupGraphics(Graphics2D g2) {\r\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "protected void init() {\n currentState.bgColor = appliedState.bgColor = gc.getBackground();\n currentState.fgColor = appliedState.fgColor = gc.getForeground();\n currentState.font = appliedState.font = gc.getFont();\n currentState.lineAttributes = gc.getLineAttributes();\n appliedState.lineAttributes = clone(currentState.lineAttributes);\n currentState.graphicHints |= gc.getLineStyle();\n currentState.graphicHints |= gc.getAdvanced() ? ADVANCED_GRAPHICS_MASK\n : 0;\n currentState.graphicHints |= gc.getXORMode() ? XOR_MASK : 0;\n\n appliedState.graphicHints = currentState.graphicHints;\n\n currentState.relativeClip = new RectangleClipping(gc.getClipping());\n currentState.alpha = gc.getAlpha();\n }", "public void setFrameXY(double anX, double aY) { setFrameX(anX); setFrameY(aY); }", "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}", "public static void setMouseOverEnabled(boolean enable){\n\t\tif(cursorChangeEnabled != enable && mainWinApp != null){\n\t\t\tif(enable == false){\n\t\t\t\tSet<PApplet> apps = applets.keySet();\n\t\t\t\tfor(PApplet pa : apps)\n\t\t\t\t\tpa.cursor(mouseOff);\t\t\t\t\n\t\t\t}\n\t\t\tcursorChangeEnabled = enable;\n\t\t}\n\t}", "private void setGeometry() {\n this.setCullHint(Spatial.CullHint.Dynamic);\n this.setLocalTranslation(realPosition);\n //attach geometry to this object\n // mat.setColor(\"Color\", colors[r.nextInt(colors.length)]);\n if (!companyTextures.containsKey(this.company)) {\n mat.setTexture(\"ColorMap\", Colors.get(r.nextInt(Colors.size())));\n } else {\n mat.setTexture(\"ColorMap\", companyTextures.get(this.company));\n }\n geom.setMaterial(mat);\n this.attachChild(geom.clone());\n }", "protected void zoomToPresent(){\n if(xpCursor1 >=0){\n ixDataCursor1 = ixDataShown[xpCursor1];\n }\n if(xpCursor2 >=0){\n ixDataCursor2 = ixDataShown[xpCursor2];\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n if(widgg.timeorg.timeSpread > 100) { widgg.timeorg.timeSpread /=2; }\n else { widgg.timeorg.timeSpread = 100; }\n bPaintAllCmd = true;\n widgg.redraw(100, 200);\n }", "private void setPixelInfo(Stroke theStroke)\n\t{\n\t\t// get the data from the stroke in the required format\n\t\tVector ptList = theStroke.getM_ptList();\n\t\t//double [][] strokeMat = theStroke.getPointsAs2DMatrix_Double();\n\t\tint stkLen = ptList.size();\n\t\t// init local variables\n\t\tPixelInfo prevPixel = null;\n\t\tPixelInfo currPixel = null;\n\t\tint winSize_speed = 0;\n\t\tint winSize_slope = 0;\n\t\tdouble cummDist_speed = 0.0;\n\t\t\n\t\tIterator iter = ptList.iterator();\n\t\t// set the pixel properties for the first pixel of the stroke.\n\t\tif(iter.hasNext())\n\t\t{\n\t\t\t// init the curvature and curvature of first pixel, set them to 0\n\t\t\tprevPixel = (PixelInfo)iter.next();\n\t\t\tprevPixel.setCurvature(0);\n\t\t\tprevPixel.setSpeed(0);\n\t\t\tprevPixel.setSlope(0);\n\t\t\t// System.out.println(\"i = 0: \"+prevPixel);\n\t\t}\n\n\t\t// set the pixel property values for the remaining pixels\n\t\tint index=0;\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tindex++;\n\n\t\t\t// get the second pixel\n\t\t\tcurrPixel = (PixelInfo)iter.next();\n\n\t\t\t// increment the counter for speed\n\t\t\tif(winSize_speed < SpeedBasedDetection.DEF_WIN_SIZE_SPEED) \n\t\t\t{\n\t\t\t\twinSize_speed++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// remove the distance of the last pixel in the window\n\t\t\t\tPoint a = ((PixelInfo) ptList.get(index - winSize_speed -1));\n\t\t\t\tPoint b = ((PixelInfo)ptList.get(index - winSize_speed));\n\t\t\t\t// System.out.println(\"prev dist: \"+a.distance(b));\n\t\t\t\tcummDist_speed -= a.distance(b); \n\t\t\t}\n\t\t\t// System.out.println(\"Speed: \"+winSize_speed);\n\t\t\t\n\t\t\t// add the distance of current pixel in the window\n\t\t\tdouble thisDist = prevPixel.distance(currPixel);\n\t\t\t//System.out.println(\"this dist: \"+thisDist);\n\t\t\tcummDist_speed += thisDist;\n\t\t\t//System.out.println(\"summ distance: \"+cummDist_speed);\n\t\t\t\n\t\t\t// do speed calculations for this pixel\n\t\t\tPixelInfo a = (PixelInfo) ptList.get(index - winSize_speed);\n\t\t\tdouble cummTime_speed = currPixel.getTime() - a.getTime();\n\t\t\tcurrPixel.setSpeed(cummDist_speed/cummTime_speed);\n\t\t\t\n\t\t\t// set slope for the current pixel\n\t\t\tif(winSize_slope < CurvatureBasedDetection.DEF_WIN_SIZE_SLOPE)\n\t\t\t{\n\t\t\t\twinSize_slope++;\n\t\t\t}\n\n\t\t\t// calculate the actual window size\n\t\t\tint start = index - winSize_slope;\n\t\t\tint end = index + winSize_slope;\n\t\t\t\n\t\t\t// incase the window is running out of the stroke length, adjust the window size to fit the stroke\n\t\t\tif(end > (stkLen-1))\n\t\t\t{\n\t\t\t\tend = stkLen-1;\n\t\t\t\tstart = index - (end-index);\n\t\t\t}\n\t\t\t\n\t\t\t// TODO: check for this code\n\t\t\t//System.out.println(\"Slope :start: \"+start+\" end: \"+end);\n\t\t\tdouble[][] winElem = theStroke.getWindowElemAs2DMatrix_Double(start, end);\n\t\t\tif(winElem!=null)\n\t\t\t{\n\t\t\t\tdouble[] odr = Maths.performODR(winElem);\n\t\t\t\tcurrPixel.setSlope(odr[0]);\n\t\t\t\t\n\t\t\t\t//ISHWAR\n\t\t\t\t//System.out.println(Maths.angle(currPixel.getSlope(), 1) + \" \" + Maths.angle(prevPixel.getSlope(), 1) + \"\\n\");\n\t\t\t\t// calculate the curvature information\n\t\t\t\tdouble slopeChange = Maths.angle(currPixel.getSlope(), 1) - Maths.angle(prevPixel.getSlope(), 1);\n\t\t\t\t\n\t\t\t\t//ISHWAR\n/*\t\t\t\tif( (Maths.angle(currPixel.getSlope(), 1) < 0 && Maths.angle(prevPixel.getSlope(), 1) >0) || ( Maths.angle(currPixel.getSlope(), 1) > 0 && Maths.angle(prevPixel.getSlope(), 1) <0) )\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Slope Changed\");\n\t\t\t\t\tslopeChange=0.0001;\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// System.out.println(\"slopeChange \"+slopeChange);\n\t\t\t\tif(slopeChange == 0.0 && thisDist == 0.0){\n\t\t\t\t\tcurrPixel.setCurvature(prevPixel.getCurvature());\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\tcurrPixel.setCurvature(slopeChange/thisDist);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// NOTE: TODO this should not happen\n\t\t\t}\n\t\t\tSystem.out.println(\"i = \"+index+\": \"+currPixel);\n\t\t\t\n\t\t\tprevPixel = currPixel;\n\t\t\tcurrPixel = null;\n\t\t}\t\t\n/*\t\t\n\t\tif(iter.hasNext())\n\t\t{\n\t\t\t// get the second point\n\t\t\tcurrPixel = (PixelInfo)iter.next();\n\t\t\t\n\t\t\tprevCurrDist = prevPixel.distance(currPixel);\n\t\t\tprevCurrAngle = GlobalMethods.angle(prevPixel, currPixel);\n\t\t\t// System.out.println(prevCurrAngle);\n\t\t\t// no need to check for divide by zero error points are not sampled until the mouse moves \n\t\t\t// and when the mouse moves time will be different due to the sampling rate.\n\t\t\tdouble speed = prevCurrDist / (currPixel.getTime() - prevPixel.getTime());\n\t\t\t//System.out.println(\"speed: \"+ speed);\n\t\t\tcurrPixel.setSpeed(speed);\n\t\t}\n\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tPixelInfo nextPixel = (PixelInfo) iter.next();\n\t\t\t\n\t\t\t// calculate curvature at this pixel\n\t\t\tdouble currNextDist = currPixel.distance(nextPixel);\n\t\t\tdouble currNextAngle = GlobalMethods.angle(currPixel, nextPixel);\n\t\t\t// System.out.println(currNextAngle);\n\t\t\t\n\t\t\t// no need to check for divide by zero error points are not sampled until the mouse moves \n\t\t\t// and when the mouse moves time will be different due to the sampling rate.\n\t\t\tdouble speed = currNextDist / (nextPixel.getTime() - currPixel.getTime());\n\t\t\t//System.out.println(\"speed: \"+ speed);\n\t\t\tnextPixel.setSpeed(speed);\n\t\t\t\n\t\t\t// curvature is the change of slope divided by change of distance \n\t\t\t// double curvature = (currNextAngle-prevCurrAngle)/(currNextDist+prevCurrDist);\n\t\t\tdouble curvature = (currNextAngle-prevCurrAngle)/prevCurrDist;\n\t \t\n\t \t// set the value of curvature for this pixel\n\t \tcurrPixel.setCurvature(Math.abs(curvature));\n\t \t\n\t \t// transfer values\n\t \tprevPixel = currPixel;\n\t \tcurrPixel = nextPixel;\n\t \tprevCurrDist = currNextDist;\n\t \tprevCurrAngle = currNextAngle;\n\t\t}\n*/\t\t\n\t\t// set the curvature of the last pixel to 0, the last pixel is stored in currPixel\n\t\tif(currPixel != null) currPixel.setCurvature(0);\n\t\t\n\t\tfor(int i=0;i<ptList.size();i++)\n\t\t{\n\t\t\tPixelInfo pi = (PixelInfo)ptList.get(i);\n//ISHWAR\t\t\tSystem.out.println(i + \". (\" + pi.x + \",\" + pi.y + \") \" +pi.getCurvature() + \" \" + pi.getTime() + \" \" + pi.getSpeed());\n\t\t}\n\t}", "public void render(PApplet core) {\n\n super.render(core);\n\n mContext.crosshair.setTranslation(core.mouseX, core.mouseY);\n mContext.crosshair.render(core);\n\n }", "protected abstract void setShapes();", "private static void forceBasicEditorConfiguration() {\n Game.graphics().setBaseRenderScale(1.0f);\n Game.config().debug().setDebugEnabled(true);\n Game.config().graphics().setGraphicQuality(Quality.VERYHIGH);\n Game.config().graphics().setReduceFramesWhenNotFocused(false);\n }", "public void setXY(double anX, double aY) { setX(anX); setY(aY); }", "public void setMousePosition(double mouseX, double mouseY) {\n this.mouseX = (int) mouseX;\n this.mouseY = (int) mouseY;\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "private void init() {\n\n mCursorPaint = new Paint();\n mCursorPaint.setColor(Color.BLUE);\n\n mLimitPaint = new Paint();\n mLimitPaint.setColor(Color.YELLOW);\n\n mCoveredPaint = new Paint();\n mCoveredPaint.setColor(Color.CYAN);\n\n mRangePaint = new Paint();\n mRangePaint.setColor(Color.DKGRAY);\n\n mEraserPaint = new Paint();\n mEraserPaint.setColor(Color.TRANSPARENT);\n // ensure the erasing effect\n mEraserPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC));\n }", "public void setMouseLocation(int mapX, int mapY) {\n\n if (!map.canSelectPoint(mapX, mapY)) {\n return;\n }\n\n if (hoverX == mapX && hoverY == mapY) {\n return;\n }\n\n hoverX = mapX;\n hoverY = mapY;\n\n selectionChanged = true;\n }", "public void resetAll()\n {\n _markers = null;\n setPrefSizeForText();\n repaint();\n }", "public void beforeDraw()\n {\n INDirector.setProjection(ProjectionFormat.DirectorProjection2D);\n this.grabber.beforeRender();\n }", "public void figure() {\n this.isMap = false;\n System.out.println(\"Switch to figure mode\");\n }", "public void setup() {\n\t\tthis.image = new BufferedImage(maxXPos, maxYPos, BufferedImage.TYPE_4BYTE_ABGR);\n\t\tthis.graphics = getImage().createGraphics();\n\t}", "void newAnnotation() {\n\n //start by resetting variables\n selectXmin = 0;\n selectXmax = 0;\n selectYmin = 0;\n selectYmax = 0;\n\n preObjLabel = null;\n curObjLabel = null;\n\n filenameItem.getChildren().clear();\n\n //remove all handlers\n objCanvas.getObjLabels().forEach((oL) -> {\n objCanvas.removeEventHandler(MouseEvent.MOUSE_MOVED, oL);\n });\n\n if (photos != null && photos.length > 0) {\n status(\"Image: \" + photos[fileIndex]);\n String image = getImage(fileIndex);\n if (image != null && !image.isEmpty()) {\n\n _img = new ObjFrame(image);\n objCanvas.setImage(_img);\n objCanvas.setPreserveRatio(true);\n objCanvas.setSmooth(true);\n\n primaryStage.minWidthProperty().bind(objCanvas.getFitWidth());\n primaryStage.minHeightProperty().bind(objCanvas.getFitHeight());\n primaryStage.setWidth(_img.getWidth() + 100);\n primaryStage.setHeight(_img.getHeight() + 100);\n// primaryStage.setMinWidth(iView.getFitWidth());\n// primaryStage.setMinHeight(iView.getFitHeight());\n\n filename = getFilename();\n filenameItem.setValue(filename);\n\n// objCanvas = new LabelobCanvas(LabelobJ.this);\n objCanvas.setSourceInfo(databaseField.getText().isEmpty() ? \"THE VOC2007 DB\" : databaseField.getText(),\n annotationField.getText().isEmpty() ? \"PASCAL VOC2007\" : annotationField.getText(),\n \"flickr\",\n \"12121212\")\n .setOwnerInfo(\"myflickerId\", ownerField.getText().isEmpty() ? \"UruGN Code Systems\" : ownerField.getText())\n .setImageInfo(\"images\", filename, 0)\n .setSizeInfo((int) Math.round(_img.getWidth()), (int) Math.round(_img.getWidth()), 3);\n\n objCanvas.init();\n\n primaryStage.setTitle(\"LabelobJ - \" + filename);\n\n //parse existing xml\n parseXml();\n\n //populate the tree\n objCanvas.getObjLabels().forEach((oL) -> {\n filenameItem.getChildren().add(oL.getInfoItem());\n });\n } else {\n status(\"No images found: \" + imagesDir);\n }\n\n //TODO render the annotations if any\n }\n\n }", "private void resetMouseCursor() {\n GameContainer c = Main.getInstance().getContainer();\n c.setDefaultMouseCursor();\n }", "private void applyOpenGLStartSettings(){\r\n\t\t//TODO pa.smooth() / pa.noSmooth() ver�ndert auch line_smooth!\r\n\t\t//f�r test ob multisampling lines ohne Line_smooth okay rendered m�ssen\r\n\t\t//sicherheitshalber auch die pa.smoot() etc abgefangen werden und line_smooth immer disabled sein!\r\n\t\t\r\n\t\t//TODO check line drawing and abstractvisible at stencil in this context (line_smooth)\r\n\t\t\r\n\t //TODO \r\n\t\t// - if multisampling enabled dont do line smoothing at all\r\n\t\t// - OR: disable multisampling each time before doing line_smoothing! (better but expensive?) \r\n\t\t// -> info: disabling multisampling isnt possible at runtime..\r\n\r\n\t // - or disable mutisample before drawing with line_smooth!\r\n\t\t//TOOD dont use lines to smooth some objects then (fonts, etc)\r\n\t if (MT4jSettings.getInstance().isOpenGlMode() ){\r\n\t \t\r\n\t \t//////////////////////////////\r\n\t \tthis.loadGL();\r\n\t //////////////////////////\r\n\t \r\n//\t \tGL gl = Tools3D.getGL(this);\r\n\t GLCommon gl = getGLCommon();\r\n\t \t\r\n\t \tlogger.info(\"OpenGL Version: \\\"\" + gl.glGetString(GL.GL_VERSION) + \"\\\"\" + \" - Vendor: \\\"\" + gl.glGetString(GL.GL_VENDOR) + \"\\\"\" + \" - Renderer: \\\"\" + gl.glGetString(GL.GL_RENDERER) + \"\\\"\");\r\n//\t \tlogger.info(\"Shading language version: \\\"\" + gl.glGetString(GL.GL_SHADING_LANGUAGE_VERSION) + \"\\\"\");\r\n\t \tlogger.info(\"Non power of two texture sizes allowed: \\\"\" + Tools3D.supportsNonPowerOfTwoTexture(this) + \"\\\"\");\r\n\t \tlogger.info(\"OpenGL Framebuffer Object Extension available: \\\"\" + GLFBO.isSupported(this) + \"\\\"\");\r\n\t \t\r\n\t\t\t//Set VSyncing on -> to avoid tearing \r\n\t\t\t//-> check if gfx card settings allow apps to set it!\r\n\t\t\t//-> Use with caution! only use with fps rate == monitor Hz!\r\n\t\t\t//and fps never drop below Hz! -> else choppy!\r\n\t\t\t//-> only works with opengl!\r\n\t \tTools3D.setVSyncing(this, MT4jSettings.getInstance().isVerticalSynchronization());\r\n\t\t\tlogger.info(\"Vertical Sync enabled: \\\"\" + MT4jSettings.getInstance().isVerticalSynchronization() + \"\\\"\");\r\n\t \t\r\n\t \tif ( MT4jSettings.getInstance().isMultiSampling()){\r\n\t \t\tgl.glEnable(GL.GL_MULTISAMPLE);\r\n//\t \t\tgl.glDisable(GL.GL_MULTISAMPLE);\r\n\t \t\tlogger.info(\"OpenGL multi-sampling enabled.\");\r\n\t \t}\r\n\t \tgl.glEnable(GL.GL_LINE_SMOOTH);\r\n//\t \tgl.glDisable(GL.GL_LINE_SMOOTH);\r\n\t }\r\n\t}", "public void resetHitMarker() {}", "private void setup() {\n // init paint\n paint = new Paint();\n paint.setAntiAlias(true);\n\n paintBorder = new Paint();\n setBorderColor(Color.WHITE);\n paintBorder.setAntiAlias(true);\n }", "private void setKeystrokes() {\n removeKeystrokes();\n dispatcher = new KeyEventDispatcher() {\n @Override\n public boolean dispatchKeyEvent(KeyEvent e) {\n dispose();\n return false;\n }\n };\n KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(dispatcher);\n }", "private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}", "@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tgc.setFont(new Font(mainFrame.getDisplay(),\"楷体\",40,SWT.BOLD));\n\t\t\t\tgc.setAlpha(255);\n\t\t\t\tgc.setForeground(new Color(mainFrame.getDisplay(),255,255,255));\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t gc.drawString(\"设置选项\", 342, 285,true);\n\t\t\t\t\t changeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"帮助信息\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"关于游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"退出游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"经典模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"时间模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"冒险闯关\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"联网对战\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcanvas.redraw();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}", "private void activeDrawEffects() {\n }", "private void setup2DGraphics() {\n\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\t\tGL11.glOrtho(0, width, 0, height, 1, -1);\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "@Override\n\tpublic void setPaint() {\n\t\tisPaint = true;\n\t}", "public void setCursor(int renglon){\n panel.setCaretPosition(renglon);\n }", "@Override\n public void init() {\n glEnable( GL_BLEND );\n glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );\n glEnable( GL_LINE_SMOOTH );\n glEnable( GL_POINT_SMOOTH );\n }", "private void paintCursor() {\r\n }", "protected void setupAxes() {\n xAxis = viewData.getXAxis();\n yAxis = viewData.getYAxis();\n rightYAxis = viewData.getRightYAxis();\n }", "public PGISCanvas(MapContent context) {\n if (context.getViewport().getBounds() == null) {\n context.getViewport().setBounds(new ReferencedEnvelope(-90, 90, -90, 90,\n DefaultGeographicCRS.WGS84));\n }\n this.context = context;\n calcScaleDenominator(context);\n getCamera().addPropertyChangeListener(this);\n \n context.addMapLayerListListener(this);\n context.addMapBoundsListener(this);\n init();\n\n final PCamera camera = getCamera();\n final PText tooltipNode = new PText();\n camera.addLayer(mapLayer);\n getRoot().addChild(mapLayer);\n tooltipNode.setPickable(false);\n camera.addChild(tooltipNode);\n camera.addInputEventListener(new PBasicInputEventHandler() {\n \t@Override\n \tpublic void mouseMoved(PInputEvent event) {\n updateToolTip(event);\n }\n\n @Override\n public void mouseDragged(PInputEvent event) {\n updateToolTip(event);\n }\n\n public void updateToolTip(PInputEvent event) {\n PPickPath path = event.getInputManager().getMouseOver();\n PNode n = path.getPickedNode();\n String tooltipString;\n do {\n tooltipString = (String) n.getAttribute(\"tooltip\");\n if (tooltipString != null) {\n break;\n }\n n = path.nextPickedNode();\n } while (n != null);\n Point2D p = event.getCanvasPosition();\n\n event.getPath().canvasToLocal(p, camera);\n\n tooltipNode.setText(tooltipString);\n tooltipNode.setOffset(p.getX() + 8, p.getY() - 8);\n }\n });\n setBounds(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);\n \n // Event handler to set cursor based on tool\n addInputEventListener(new PBasicInputEventHandler() {\n\n \t// TODO Geotools [major] - set the cursor for each tool.\n\n \t@Override\n \tpublic void mouseDragged(PInputEvent event) {\n \t\t if (currentListener instanceof MapTool) {\n PGISCanvas.this.setCursor(((MapTool) currentListener).getCursor());\n } \n \t\t else {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n \t}\n\n @Override\n public void mouseEntered(PInputEvent event) {\n // The Distance Tool cursor should always be visible when enabled\n \tif (currentListener instanceof DistanceTool) {\n PGISCanvas.this.setCursor(((MapTool) currentListener).getCursor());\n } \n \telse {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n }\n\n @Override\n public void mouseExited(PInputEvent event) {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n\n });\n //context.addMapBoundsListener(mediator);\n this.addComponentListener(mediator);\n }", "public void setZoom(){\n\t\tactive.setZoom();\n\t}", "public abstract void setDataToElementXY();", "private void init()\n\t{\n\t\tinitOpenGL();\n\t\tlatestStroke = new Stroke(this, true);\n\t}", "private void applySettingsOnMapView() {\n mapView.getMapSettings().setMapRotationEnabled(true);\n mapView.getMapSettings().setMapZoomingEnabled(true);\n mapView.getMapSettings().setMapPanningEnabled(true);\n mapView.getMapSettings().setZoomWithAnchorEnabled(true);\n mapView.getMapSettings().setInertiaRotatingEnabled(true);\n mapView.getMapSettings().setInertiaZoomingEnabled(true);\n mapView.getMapSettings().setInertiaPanningEnabled(true);\n }", "private void applySettingsOnMapView() {\n mapView.getMapSettings().setMapRotationEnabled(true);\n mapView.getMapSettings().setMapZoomingEnabled(true);\n mapView.getMapSettings().setMapPanningEnabled(true);\n mapView.getMapSettings().setZoomWithAnchorEnabled(true);\n mapView.getMapSettings().setInertiaRotatingEnabled(true);\n mapView.getMapSettings().setInertiaZoomingEnabled(true);\n mapView.getMapSettings().setInertiaPanningEnabled(true);\n }", "public void setPainters(Painter... painters)\n/* */ {\n/* 128 */ Painter[] old = getPainters();\n/* */ \n/* 130 */ for (Painter p : old) {\n/* 131 */ if ((p instanceof AbstractPainter)) {\n/* 132 */ ((AbstractPainter)p).removePropertyChangeListener(this.handler);\n/* */ }\n/* */ }\n/* */ \n/* 136 */ this.painters = new Painter[painters == null ? 0 : painters.length];\n/* 137 */ if (painters != null) {\n/* 138 */ System.arraycopy(painters, 0, this.painters, 0, this.painters.length);\n/* */ }\n/* */ \n/* 141 */ for (Painter p : this.painters) {\n/* 142 */ if ((p instanceof AbstractPainter)) {\n/* 143 */ ((AbstractPainter)p).addPropertyChangeListener(this.handler);\n/* */ }\n/* */ }\n/* */ \n/* 147 */ setDirty(true);\n/* 148 */ firePropertyChange(\"painters\", old, getPainters());\n/* */ }", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "public void draw_cursor(){\n }", "@Override\n\tpublic void setAttributes(AttributeMap arg0) {\n\t\tdefaultEdgle.setAttributes(arg0);\n\t}", "protected void zoomBetweenCursors(){\n ixDataCursor1 = ixDataShown[xpCursor1];\n ixDataCursor2 = ixDataShown[xpCursor2];\n ixDataShowRight = ixDataCursor2 + (((ixDataCursor2 - ixDataCursor1) / 10) & widgg.mIxData);\n int ixiData1 = (ixDataShown[xpCursor1] >> widgg.shIxiData) & widgg.mIxiData;\n int ixiData2 = (ixDataShown[xpCursor2] >> widgg.shIxiData) & widgg.mIxiData;\n int time1 = widgg.tracksValue.getTimeShort(ixiData1);\n int time2 = widgg.tracksValue.getTimeShort(ixiData2);\n if((time2 - time1)>0){\n widgg.timeorg.timeSpread = (time2 - time1) * 10/8;\n assert(widgg.timeorg.timeSpread >0);\n } else {\n widgg.stop();\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n widgg.redraw(100, 200);\n \n }", "public void setDrawHighlightIndicators(boolean enabled) {\n/* 51 */ setDrawVerticalHighlightIndicator(enabled);\n/* 52 */ setDrawHorizontalHighlightIndicator(enabled);\n/* */ }", "public void setTextSettings(){\n\n ArrayList<Text> headlines = new ArrayList<>();\n //Add any text element here\n //headlines.add(this.newText);\n\n Color textColorHeadlines = new Color(0.8,0.8,0.8,1);\n\n for ( Text text : headlines ){\n text.setFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n text.setFill(textColorHeadlines);\n text.setEffect(new DropShadow(30, Color.BLACK));\n\n }\n\n }", "synchronized private void setupForDisplay() {\n \t\tif (-1 == n_points) n_points = 0;\n \t\t// load points\n \t\t/* Database storage not implemented yet\n \t\tif (null == p) {\n \t\t\tArrayList al = project.getLoader().fetchPolylinePoints(id);\n \t\t\tn_points = al.size();\n \t\t\tp = new double[2][n_points];\n \t\t\tp_layer = new long[n_points];\n \t\t\tIterator it = al.iterator();\n \t\t\tint i = 0;\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tObject[] ob = (Object[])it.next();\n \t\t\t\tp[0][i] = ((Double)ob[0]).doubleValue();\n \t\t\t\tp[1][i] = ((Double)ob[1]).doubleValue();\n \t\t\t\tp_layer[i] = ((Long)ob[7]).longValue();\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t\t*/\n \t}", "public void setMapRenderer(MapRenderer2 mr)\r\n\t{\r\n\t\tthis.mapRenderer = mr;\r\n\t}", "private void initialSetup() {\n\t\tcaretTimer = new Timeline(new KeyFrame(Duration.millis(GlobalAppSettings.caretBlinkRate), new EventHandler<ActionEvent>(){\r\n\t\t\t@Override\r\n\t\t public void handle(ActionEvent event) {\r\n\t\t\t\tisCaretVisible = !isCaretVisible;\t\t\t\t\r\n\t\t\t\tif(caretParagraph!= null && caretIndex == anchor) {\r\n\t\t\t\t\ttextModifyFacade.getLineViewWithIndex(caretIndex).getColumnView().getDocumentView().refreshOverlay();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}));\r\n\t\tcaretTimer.setCycleCount(-1);\r\n\t\tcaretTimer.play();\r\n\t\t\r\n\t\tcaretMovementTimer = new Timeline(new KeyFrame(Duration.millis(GlobalAppSettings.fastDeviceFrameMillis), new EventHandler<ActionEvent>(){\r\n\t\t\t@Override\r\n\t\t public void handle(ActionEvent event) {\r\n\t\t\t\ttotalDestination += GlobalAppSettings.fastDeviceFrameMillis;\r\n\t\t\t\tscreenX = interpolation.apply(startX, destinationX, totalDestination / GlobalAppSettings.caretMovementTime);\r\n\t\t\t\tscreenY = interpolation.apply(startY, destinationY, totalDestination / GlobalAppSettings.caretMovementTime);\r\n\t\t\t\tif(totalDestination > GlobalAppSettings.caretMovementTime){\r\n\t\t\t\t\tscreenX = destinationX;\r\n\t\t\t\t\tscreenY = destinationY;\r\n\t\t\t\t\tcaretMovementTimer.stop();\r\n\t\t\t\t\ttotalDestination = 0;\r\n\t\t\t\t}\r\n\t\t\t\tif(caretParagraph!= null && caretIndex == anchor) {\r\n\t\t\t\t\ttextModifyFacade.getLineViewWithIndex(caretIndex).getColumnView().getDocumentView().refreshOverlay();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}));\r\n\t\tcaretMovementTimer.setCycleCount(-1);\r\n\t\t\r\n\t\tcaretIndex = 0;\r\n\t\tanchor = 0;\r\n\t}", "public void setAnnotation(DrawingComponent annotation)\n\t{\n\t\tthis.annotation = annotation;\n\t}", "public native void setLegendOff();", "public Affectation() {\r\n initComponents();\r\n Toolkit toolkit=getToolkit();\r\n Dimension size=toolkit.getScreenSize();\r\n setLocation(size.width/2-getWidth()/2,size.height/2-getHeight()/2);\r\n }", "protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}", "@Override\r\n protected void redrawCursor() {\n this.viewport.getCursor().moveAccordingly(this.finger.getFingerPitch(), this.finger.getFingerYaw());\r\n }", "private void setup() {\n\t\tpopulateEntitiesLists();\n\t\t// rayHandler.setCombinedMatrix(batch.getProjectionMatrix());\n\t\tambientColor = Color.CLEAR;\n\t\tsetAmbientAlpha(.3f);\n\t\tfpsLogger = new FPSLogger();\n\t\tdynamicEntities = new ArrayList<DynamicEntity>();\n\t\tfont.getData().setScale(DEBUG_FONT_SCALE);\n\t}", "public void setHighlightAttributes(ShapeAttributes highlightAttrs)\n {\n this.highlightAttrs = highlightAttrs;\n }", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "void setXandY(double x, double y){\r\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t}", "synchronized public void annotate(float[][][] frame) {\n if (!isFilterEnabled()) {\n return;\n }\n // disable for now TODO\n if (chip.getCanvas().isOpenGLEnabled()) {\n return; // done by open gl annotator\n }\n for (Cluster c : clusters) {\n if (c.isVisible()) {\n drawCluster(c, frame);\n }\n }\n }", "private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}", "private void init_all() \r\n\t{\r\n\t\tinit_draw_line();\r\n\t\tinit_free_hand_draw();\r\n\t}", "private void setupAllViewsToSetTextColor(){\n allViewsToSetTextColor = new ArrayList<>();\n allViewsToSetTextColor.add(labelDegrees);\n allViewsToSetTextColor.add(entryDegrees);\n allViewsToSetTextColor.add(labelRadians);\n allViewsToSetTextColor.add(entryRadians);\n allViewsToSetTextColor.add(labelSine);\n allViewsToSetTextColor.add(sineRegularData);\n allViewsToSetTextColor.add(labelCosine);\n allViewsToSetTextColor.add(cosineRegularData);\n allViewsToSetTextColor.add(labelTangent);\n allViewsToSetTextColor.add(tangentRegularData);\n allViewsToSetTextColor.add(radianTextNumerator);\n allViewsToSetTextColor.add(radianTextDenominator);\n allViewsToSetTextColor.add(sineTextNumerator);\n allViewsToSetTextColor.add(sineTextDenominator);\n allViewsToSetTextColor.add(cosineTextNumerator);\n allViewsToSetTextColor.add(cosineTextDenominator);\n allViewsToSetTextColor.add(tangentTextNumerator);\n allViewsToSetTextColor.add(tangentTextDenominator);\n }", "public void updateContrastWindow() {\n\n MimsXYPlot plot = (MimsXYPlot) chart.getPlot();\n\n // Polygon bounds. \n double x1 = contrastAdjuster1.min;\n double x2 = contrastAdjuster1.min;\n double x3 = contrastAdjuster1.max;\n double x4 = contrastAdjuster1.max;\n\n double y1 = -99999999;\n double y2 = 99999999;\n double y3 = 99999999;\n double y4 = -99999999;\n\n // Displays polygon.\n XYPolygonAnnotation a = new XYPolygonAnnotation(new double[]{x1, y1, x2, y2, x3, y3, x4, y4},\n new BasicStroke(1), new Color(125, 125, 175, 100), new Color(125, 125, 175, 100));\n XYBarRenderer renderer = (XYBarRenderer) plot.getRenderer();\n renderer.removeAnnotations();\n renderer.addAnnotation(a, Layer.BACKGROUND);\n }", "protected abstract void setGUIAttributesHelper();", "public void setRenderer(WorldDisplayRenderer renderer) {\n this.renderer = renderer;\n }", "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\r\n\tpublic void setup(){\r\n\t\tif (!settingsLoadedFromFile){ //because initialize() method isnt called in the swing integration/example\r\n\t\t\tgetSettingsFromFile();\r\n\t\t}\r\n\t\t\r\n\t\t// Applet size - size() must be the first command in setup() method\r\n\t\tif (MT4jSettings.getInstance().getRendererMode() == MT4jSettings.OPENGL_MODE)\r\n\t\t\tthis.size(MT4jSettings.getInstance().getWindowWidth(), MT4jSettings.getInstance().getWindowHeight(), CUSTOM_OPENGL_GRAPHICS);\r\n\t\telse if (MT4jSettings.getInstance().getRendererMode() == MT4jSettings.P3D_MODE)\r\n\t\t\tthis.size(MT4jSettings.getInstance().getWindowWidth(), MT4jSettings.getInstance().getWindowHeight(), PApplet.P3D);\r\n\t\t\r\n\t\t//TOGGLES ALWAYS ON TOP MODE\r\n\t\t//this.frame.setAlwaysOnTop(true);\r\n\t\t\r\n\t\t//Add default font factories /////////////\r\n\t\t//Register default font factories\r\n\t\tFontManager.getInstance().registerFontFactory(\".ttf\", new TTFontFactory());\r\n\t\tFontManager.getInstance().registerFontFactory(\".svg\", new SvgFontFactory());\r\n\t \r\n\t\tBitmapFontFactory bitmapFontFactory = new BitmapFontFactory();\r\n//\t\tthis.registerFontFactory(\".ttf\", bitmapFontFactory); // TEST\r\n\t\tFontManager.getInstance().registerFontFactory(\"\", bitmapFontFactory);\r\n\t\tFontManager.getInstance().registerFontFactory(\".vlw\", bitmapFontFactory);\r\n\t\tFontManager.getInstance().registerFontFactory(\".otf\", bitmapFontFactory);\r\n\t \r\n\t\tFontManager.getInstance().registerFontFactory(\".bold\", bitmapFontFactory);\r\n\t\tFontManager.getInstance().registerFontFactory(\".bolditalic\", bitmapFontFactory);\r\n\t\tFontManager.getInstance().registerFontFactory(\".italic\", bitmapFontFactory);\r\n\t\tFontManager.getInstance().registerFontFactory(\".plain\", bitmapFontFactory);\r\n\t\t//////////////////////\r\n\t\t\r\n\t\t/////////////////////// //FIXME TEST\r\n\t\tPlatformUtil.setGraphicsUtilProvider(new DesktopPlatformUtil(this));\r\n\t\t///////////////////////\r\n\t\t\r\n\t\t/////////////////////\r\n\t\t//Add default 3D model factories for .3ds and for .obj files\r\n\t\tModelImporterFactory.registerModelImporterFactory(\".3ds\", Model3dsFileFactory.class);\r\n\t\tModelImporterFactory.registerModelImporterFactory(\".obj\", ModelObjFileFactory.class);\r\n\t\t////////////////////\r\n\t\t\r\n\t\t\r\n\t\t//Check if OS 32/64 Bit\r\n\t\tString bit = System.getProperty(\"sun.arch.data.model\");\r\n\t\tlogger.info(\"Platform: \\\"\" + System.getProperty(\"os.name\") + \"\\\" -> Version: \\\"\" + System.getProperty(\"os.version\") + \"\\\" -> JVM Bit: \\\"\" + bit + \"\\\"\"); \r\n\t\tMT4jSettings.getInstance().architecture = bit.contains(\"64\")? MT4jSettings.ARCHITECTURE_64_BIT : MT4jSettings.ARCHITECTURE_32_BIT;\r\n\t\t\r\n\t\t//Switch to different resolution in fullscreen exclusive mode if neccessary\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tif (MT4jSettings.getInstance().isFullscreen() && MT4jSettings.getInstance().isFullscreenExclusive() && MT4jSettings.getInstance().getWindowWidth() != screenSize.width && MT4jSettings.getInstance().getWindowHeight() != screenSize.height){\r\n\t\t\tswitchResolution();\r\n\t\t}\r\n\t\t\r\n\t /*\r\n\t //Processing Bug? seems to always use 2 samples \r\n\t if (MT4jSettings.getInstance().getNumSamples() <= 0){\r\n\t \thint(DISABLE_OPENGL_2X_SMOOTH);\r\n\t }else if (MT4jSettings.getInstance().getNumSamples() == 2){\r\n\t \t//Nothing to set, Processing default anyway\r\n\t }else if (MT4jSettings.getInstance().getNumSamples() == 4){\r\n\t \thint(DISABLE_OPENGL_2X_SMOOTH);\r\n\t \thint(ENABLE_OPENGL_4X_SMOOTH);\r\n\t }\r\n\t */\r\n\t \r\n\t\t//hint(ENABLE_DEPTH_SORT); // Enable primitive z-sorting of triangles and lines in P3D and OPENGL. This can slow performance considerably, and the algorithm is not yet perfect.\r\n\t\t//hint(DISABLE_ERROR_REPORT); // Speeds up the OPENGL renderer setting by not checking for errors while running.\r\n\t\t//hint(ENABLE_ACCURATE_TEXTURES); //Enables better texture accuracy for the P3D renderer. This option will do a better job of dealing with textures in perspective. \r\n\t\t\r\n\t\t// Save this applets rendering thread for reference\r\n\t\tthis.renderThread = Thread.currentThread();\r\n\t\t//System.out.println(\"Current Thread: \"+ Thread.currentThread());\r\n\t\t\r\n\t\t// Set frame icon image\r\n\t\ttry {\r\n\t\t\t//Set the window frame's title\r\n\t\t\tframe.setTitle(MT4jSettings.getInstance().getFrameTitle()); \r\n\t\t\tthis.mt4jIcon = new ImageIcon(Thread.currentThread().getContextClassLoader().getResource(MT4jSettings.getInstance().getDefaultImagesPath() + \r\n\t\t\t\"MT4j.gif\"));\r\n\t\t\tthis.frame.setIconImage(mt4jIcon.getImage()); \r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"MT4j window dimensions: \\\"\" + MT4jSettings.getInstance().getWindowWidth() + \" X \" + MT4jSettings.getInstance().getWindowHeight() + \"\\\"\");\r\n\t\t\r\n//\t\t//Set background color\r\n//\t pContext.background(MT4jSettings.getInstance().getBackgroundClearColor());\r\n\t\tbackground(150);\r\n\t\t\r\n\t\t//Set the framerate\r\n\t frameRate(MT4jSettings.getInstance().getMaxFrameRate());\r\n\t logger.info(\"Maximum framerate: \\\"\" + MT4jSettings.getInstance().getMaxFrameRate() + \"\\\"\");\r\n\t \r\n\t //FIXME TODO add in settings.txt?\r\n\t hint(AbstractMTApplication.DISABLE_OPENGL_ERROR_REPORT);\r\n\t\t\r\n\t\tMT4jSettings.getInstance().programStartTime = System.currentTimeMillis();\r\n\t\t\r\n\t\t//Apply some opengl settings like V-Syncing or multi-Sampling\r\n\t\tthis.applyOpenGLStartSettings();\r\n\t\t\r\n\t\t//Create a new inputsourcePool\r\n\t\tif (getInputManager() == null){ //only set the default inputManager if none is set yet\r\n\t\t\tthis.setInputManager(new DesktopInputManager(this, true));\r\n\t\t}\r\n\t\t\r\n\t\tAniAnimation.init(this); //Initialize Ani animation library\r\n\t\t\r\n\t\t/*\r\n\t\t* Resizable Window test\r\n\t\t* Problems:\r\n\t\t* - all textures, shaders etc get destroyed because a new gl context is created\r\n\t\t* - cursor coordiantes are calculated wrong? we prolly have to update Papplet width/height \r\n\t\tframe.setResizable(true);\r\n\t\tframe.addComponentListener(new ComponentAdapter() {\r\n\t\t\tpublic void componentResized(ComponentEvent e) {\r\n\t\t\t\tif(e.getSource() == frame) { \r\n\t\t\t\t\tframe.setSize(frame.getWidth(), minHeight); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t\t*/ \r\n\t\t\r\n\t\t//Call startup at the end of setup(). Should be overridden in extending classes\r\n\t\tthis.startUp();\r\n\t}" ]
[ "0.59552604", "0.5946952", "0.56877154", "0.54698706", "0.5360746", "0.52987355", "0.5292652", "0.5292194", "0.52862144", "0.5261819", "0.5253783", "0.52304244", "0.52242", "0.5217412", "0.52026093", "0.51987624", "0.5181568", "0.5179537", "0.5138745", "0.50989985", "0.5094403", "0.50448644", "0.50422496", "0.5024781", "0.5018418", "0.50165373", "0.50160515", "0.50095856", "0.5009576", "0.5007113", "0.5006127", "0.5004314", "0.49911672", "0.49897984", "0.4979751", "0.49764344", "0.49651027", "0.49470678", "0.49407676", "0.49367565", "0.49204502", "0.49188012", "0.4908285", "0.49031457", "0.48984572", "0.4883692", "0.48811668", "0.48667583", "0.48560798", "0.48500806", "0.48439136", "0.4841264", "0.48352268", "0.48287672", "0.48206407", "0.48174366", "0.48076373", "0.48063943", "0.4805978", "0.4802158", "0.4802091", "0.4786894", "0.4786499", "0.47823828", "0.47781515", "0.4775889", "0.47747847", "0.47725824", "0.47716337", "0.47688004", "0.47688004", "0.47610113", "0.4759093", "0.47523782", "0.4750251", "0.47497028", "0.47492313", "0.47491983", "0.47465527", "0.4746344", "0.4744189", "0.47436184", "0.47422493", "0.47397646", "0.47382224", "0.4733072", "0.4730913", "0.4729659", "0.47275075", "0.47238684", "0.47228995", "0.47226438", "0.4721143", "0.4718881", "0.4717646", "0.4716274", "0.471608", "0.47136876", "0.4713108", "0.47129288" ]
0.5089901
21
MOUSE EVENT LISTENERS SECTION When a mouse button is pressed In 3D, if double click, start or stop the camera rotation thread if there is any attached In 2D, memorize the starting point (top left) of the selection rectangle
@Override public void mousePressed(MouseEvent e) { prevMouse.x = x(e); prevMouse.y = y(e); // 3D mode if (getChart().getView().is3D()) { if (handleSlaveThread(e)) { return; } } // 2D mode else { Coord2d startMouse = prevMouse.clone(); if (maintainInAxis) maintainInAxis(startMouse); // stop displaying mouse position on roll over mousePosition = new MousePosition(); // start creating a selection mouseSelection.start2D = startMouse; mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y); if (mouseSelection.start3D == null) System.err.println("Mouse.onMousePressed projection is null "); // screenToModel(bounds3d.getCorners()) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "public void mouseClickedDown(Point2d worldCoord) {\n logger.debug(\"rotate mouseClickedDown, initializing rotation\");\n rotationCenter = null;\n selection = super.chemModelRelay.getRenderer().getRenderer2DModel()\n .getSelection();\n \n if ( selection == null \n ||!selection.isFilled()\n || selection.getConnectedAtomContainer() == null\n || selection.getConnectedAtomContainer().getAtomCount()==0) {\n \n /*\n * Nothing selected- return. Dragging the mouse will not result in\n * any rotation logic.\n */\n logger.debug(\"Nothing selected for rotation\");\n selectionMade = false;\n return;\n \n } else {\n rotationPerformed = false;\n //if we are outside bounding box, we deselect, else\n //we actually start a rotation.\n Rectangle2D bounds = BoundsCalculator.calculateBounds(this.chemModelRelay.getRenderer().getRenderer2DModel().getSelection().getConnectedAtomContainer());\n \n rotationAngle = 0.0;\n selectionMade = true;\n \n /* Keep original coordinates for possible undo/redo */\n atomCoordsMap = new HashMap<IAtom, Point2d[]>();\n for (IAtom atom : selection.getConnectedAtomContainer().atoms()) {\n Point2d[] coordsforatom = new Point2d[2];\n coordsforatom[1] = atom.getPoint2d();\n atomCoordsMap.put(atom, coordsforatom);\n }\n \n /*\n * Determine rotationCenter as the middle of a region defined by\n * min(x,y) and max(x,y) of coordinates of the selected atoms.\n */\n IAtomContainer selectedAtoms = \n selection.getConnectedAtomContainer();\n \n \n Double upperX = null, lowerX = null, upperY = null, lowerY = null;\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n if (upperX == null) {\n upperX = selectedAtoms.getAtom(i).getPoint2d().x;\n lowerX = upperX;\n upperY = selectedAtoms.getAtom(i).getPoint2d().y;\n lowerY = selectedAtoms.getAtom(i).getPoint2d().y;\n } else {\n double currX = selectedAtoms.getAtom(i).getPoint2d().x;\n if (currX > upperX)\n upperX = currX;\n if (currX < lowerX)\n lowerX = currX;\n \n double currY = selectedAtoms.getAtom(i).getPoint2d().y;\n if (currY > upperY)\n upperY = currY;\n if (currY < lowerY)\n lowerY = currY;\n }\n }\n rotationCenter = new Point2d();\n rotationCenter.x = (upperX + lowerX) / 2;\n rotationCenter.y = (upperY + lowerY) / 2;\n logger.debug(\"rotationCenter \" \n + rotationCenter.x + \" \"\n + rotationCenter.y);\n \n /* Store the original coordinates relative to the rotation center.\n * These are necessary to rotate around the center of the\n * selection rather than the draw center. */\n startCoordsRelativeToRotationCenter = new Point2d[selectedAtoms\n .getAtomCount()];\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n Point2d relativeAtomPosition = new Point2d();\n relativeAtomPosition.x = selectedAtoms.getAtom(i).getPoint2d().x\n - rotationCenter.x;\n relativeAtomPosition.y = selectedAtoms.getAtom(i).getPoint2d().y\n - rotationCenter.y;\n startCoordsRelativeToRotationCenter[i] = relativeAtomPosition;\n }\n }\n }", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "public void mouseClicked(MouseEvent mEvent) \n {\n /* don't do anything while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse clicked on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n Widget clickedWidget = timWorld.grabWidget(mEvent.getX(), mEvent.getY());\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n //if over a non-locked widget, make it new selection\n if(clickedWidget != null && clickedWidget.isLocked() == false)\n {\n selectedWidget = clickedWidget;\n SELECT_MODE = SelectMode.SELECTED;\n canvas.repaint();\n }\n break;\n //=================\n case SELECTED:\n if(clickedWidget == null || clickedWidget.isLocked() == true)\n {\n /* clicked on no widget, or on a locked widget \n -> deselect current widget */\n selectedWidget = null;\n SELECT_MODE = SelectMode.NONE;\n canvas.repaint();\n }\n else if(clickedWidget == selectedWidget)\n {\n /* clicked on currently selected widget\n -> pick it up and start dragging */\n \n // store click offset\n clickOffsetX = selectedWidget.getPosition().getX() - mEvent.getX();\n clickOffsetY = selectedWidget.getPosition().getY() - mEvent.getY();\n \n // start dragging mode, changing to move cursor\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.CLICK;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n canvas.repaint();\n }\n else\n {\n /* clicked on an unlocked widget other than currently selected widget\n -> make this widget the new selection */\n selectedWidget = clickedWidget;\n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n //attempt to move widget, stop dragging if successful, keep widget selected\n if(timWorld.moveWidget(selectedWidget, mEvent.getX() + clickOffsetX, mEvent.getY() + clickOffsetY))\n {\n /* successfully moved to new loc, stop dragging but keep selected */\n SELECT_MODE = SelectMode.SELECTED;\n \n /* repaint canvas and play sound */\n canvas.repaint();\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t\tap.playGoodSound();\n \t\t\t }\n\n //TODO: remove debug msg\n // System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n }\n else\n {\n /* new position no good, stop dragging */\n SELECT_MODE = SelectMode.SELECTED;\n \n /* repaint canvas and play sound */\n canvas.repaint();\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t\tap.playBadSound();\n \t\t\t }\n\n //TODO: remove debug msg\n \t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", leaving it where it was\" + \".\");\n }\n \n //restore default cursor\n canvas.setCursor(Cursor.getDefaultCursor());\n break;\n //=================\n case ADDING:\n \t // try to move it\n \t \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY() >= -434 &&\n \t \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t \t {\n \t // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \t \n // decrement this in widget scroller\n \t ws.decreaseWidget(addedWidget);\n\n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n \t \t }\n \t \t else\n \t \t {\n \t // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t }\n /* TODO: remove debug msg */\n \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n \t \t }\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* Click on widget scroller */\n switch(SELECT_MODE)\n {\n case NONE:\n case SELECTED:\n String clickedWidget = ws.getWidgetAt(pressX, pressY);\n if(clickedWidget != null)\n {\n /* clicked on an actual widget in scroller, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = clickedWidget;\n selectedWidget = WidgetFactory.createWidget(clickedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.CLICK;\n \n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n \n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n \n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + clickedWidget + \" from widgetscroller\");\n }\n break;\n case DRAGGING:\n /* click on widget scroller while dragging */\n //remove widget from world\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller. (classname: \" + selectedWidget.getClass().getName() + \")\");\n\n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n \n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n break;\n \n case ADDING:\n /* click on widget scroller while adding */\n /* just deselect widget and go back to no selection */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n break;\n }\n }\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n }", "@Override\n public boolean handleMouseClick(Rectangle mouseRectangle, Rectangle camera, int zoomX, int zoomY) {\n if (mouseRectangle.intersects(rectangle)) {\n activate();\n return false;\n }\n return false;\n }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tint pix, frameNum, keyFrameIndex;\n\t\t\t\tSystem.out.println(\"x: \" + e.getX() + \" y: \" + e.getY());\n\t\t\t\tfastForward = true;\n\t\t\t\tif (zoom_count == 0) {\n\t\t\t\t\tpix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 1) {\n\t\t\t\t\tpix = zoom1IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 2) {\n\t\t\t\t\tpix = zoom2IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t}\n\n\t\t\t\tif (currFrame > 40) {\n\t\t\t\t\tcurrFrame -= 40;\n\t\t\t\t}\n\t\t\t\tisAlreadyPlaying = false;\n\n\t\t\t\tvideoThread.interrupt();\n\t\t\t\tsoundThread.interrupt();\n\t\t\t\tplaySound.pause();\n\t\t\t\ttry {\n\t\t\t\t\tvideoThread.sleep(10);\n\t\t\t\t\tsoundThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsoundThread = null;\n\t\t\t\tvideoThread = null;\n\t\t\t\tplaySound.jump(currFrame);\n\n\t\t\t\tplayback();\n\n\t\t\t}\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n Note nd = new Note(n.getPitchLetter(), n.getOctave(), fromTheLeft, fromTheLeft);\n Note noteToBeSelected = this.model.getOverlappedNote(nd);\n this.model.setSelectedNote(noteToBeSelected);\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\tcanvas.dispose();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t\tClassicView view = new ClassicView(mainFrame);\n\t\t\t\t\tmainFrame.setView(view);\n\t\t\t\t\t\n\t\t\t\t\tgame = new ClassicGame(view);\n\t\t\t\t\tgameThread = new Thread(game);\n\t\t\t\t\tview.setGameThread(gameThread);\n\t\t\t\t\tview.setGame(game);\n\t\t\t\t\tgameThread.start();\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\tcanvas.dispose();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t\tClassicView view = new TimeView(mainFrame);\n\t\t\t\t\tmainFrame.setView(view);\n\t\t\t\t\t\n\t\t\t\t\tgame = new TimeGame(view);\n\t\t\t\t\tgameThread = new Thread(game);\n\t\t\t\t\tview.setGameThread(gameThread);\n\t\t\t\t\tview.setGame(game);\n\t\t\t\t\tgameThread.start();\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tclickPoint = e.getPoint();\r\n\t\t\t\tselectionBounds = null;\r\n//\t\t\t\tSystem.out.println(\"Bac dau\" + e.getPoint().toString());\r\n\t\t\t\tbacdauX = (int) e.getPoint().getX();\r\n\t\t\t\tbacdauY = (int) e.getPoint().getY();\r\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "public void mouseDragged(MouseEvent e) \r\n\t{\r\n\t\tswitch (MouseDown) {\r\n\t\t\tcase 1:\r\n\t\t\t\tgetCamera().rotateY(((float)LastMouse[0]-e.getX())*0.4F);\r\n\t\t\t\tgetCamera().rotateX(((float)LastMouse[1]-e.getY())*-0.4F);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tgetCamera().translate(((float)LastMouse[0]-e.getX())*-0.01F,0,0);\r\n\t\t\t\tgetCamera().translate(0,((float)LastMouse[1]-e.getY())*0.01F,0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tgetCamera().zoom(((float)LastMouse[1]-e.getY())*0.1F);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t//System.out.print(\"MMove: \" + e.getPoint().toString() + \"\\r\");\r\n\t\te.consume();\r\n\t\tLastMouse[0] = e.getX();\r\n\t\tLastMouse[1] = e.getY();\r\n\t\trender(true);\t\t\r\n\t}", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "public void mousePressed(MouseEvent e) {\n if(e.isPopupTrigger()){\n Point2DSerializable checkRange=new Point2DSerializable(e.getPoint(),true);\n if(checkRange.checkInsideFrame()==false){\n return;\n }\n }\n maybeShowPopup(e);\n if((e.getModifiers() & MouseEvent.BUTTON1_MASK)!=0 ){\n if(addRoad==true){\n SelectedObject.setNoBlink();\n //firstSelected.setAlwaysRepaint();\n addJunctionAndRoad(new Point2DSerializable(e.getPoint(),true));//////***\n addRoad=false;\n ctrlOnLine=true;\n PSRender.allwaysRepaintOn();\n }else if(ctrlOnLine==true){\n ////////////////////////////////\n PSRender.allwaysRepaintOff();\n firstSelected.removeLastCtrl();\n firstSelected.addPointCtrl2End(new Point2DSerializable(e.getPoint(),true));\n /**/\n PSRender.repaint();\n //firstSelected.resetAlwaysRepaint();\n firstSelected=null;\n secondSelected=null;\n firstSelectedPointType=NO_SELECTED_TYPE;\n secondSelectedPointType=NO_SELECTED_TYPE;\n\n SelectedObject.setBlink();\n ctrlOnLine=false;\n }else if(addOOPath==true){\n addOOPath=false;\n if(selectedOtherObject!=null){\n selectedOtherObject.addP2(new Point2DSerializable(e.getPoint(),true));\n }else{\n System.out.println(\"Other object == null\");\n }\n PSRender.repaint();\n }\n }\n //System.out.println(\"\\tout method: mousePressed()\");\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public void mousePressed(MouseEvent e) {\n dragStartScreen = e.getPoint();\n dragEndScreen = null;\n resultPane.setVisible(false);\n canvas.requestFocusInWindow();\n }", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n final int xi = (int) x;\n final int yi = (int) y;\n\n //pinch fov?\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n tt = System.currentTimeMillis();\n Log.d(\"buttst\", Long.toString(tt));\n break;\n case MotionEvent.ACTION_UP:\n if (System.currentTimeMillis() - tt < 150) {\n queueEvent(new Runnable() {\n @Override\n public void run() {\n mRenderer.switchCellAtPixel(xi, yi);\n }\n });\n Log.d(\"butt\", \"clicked__\" + Float.toString(x) + \"|\" + Float.toString(y));\n }\n break;\n case MotionEvent.ACTION_MOVE:\n float dx = x - mPreviousX;\n float dy = y - mPreviousY;\n mRenderer.rotateCamera(dx, dy);\n requestRender();\n }\n mPreviousX = x;\n mPreviousY = y;\n return true;\n }", "public void highlight(){\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\t//if(!clicked){\t\n\t\t\t\t\n\t\t\t\tfirsttime=true;\n\t\t\t\tclicked=true;\n\t\t\t\tif(piece!=null){\n\t\t\t\t\txyMovment=piece.xyPossibleMovments(xPosition, yPosition);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tPositionVO tmp = getPosition(e.getPoint());\n\t\tbp.getGrid(tmp).lighten();\n//\t\tif(e.getClickCount() == 2 && !bp.getLock() && !bp.getGrid(tmp).getMovement()){//双击\n\t\tif(e.getClickCount() == 2 && !bp.getLock() ){//双击\n\t\t\tbms.useToolGrid(tmp);\n\t\t}\n\t\telse{\n\t\t\tif (count == 0) {\n\t\t\t\tpvo1 = tmp;\n\t\t\t\tfocusGrids[0] = bp.getGrid(tmp);\n\t\t\t\tcount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (count == 1) {\n\t\t\t\tpvo2 = tmp;\n\t\t\t\tfocusGrids[1] = bp.getGrid(tmp);\n\t\t\t\t// if (pvo1.isValid(pvo2)) {\n\t\t\t\t// 调用model 以下直接调用panel里方法的 一些测试\n\t\t\t\t// bp.swapUnit(pvo1, pvo2);\n\t//\t\t\tif (!bp.getGrid(pvo1).getMovement()\n\t//\t\t\t\t\t&& !bp.getGrid(pvo2).getMovement())\n//\t\t\t\tif(bp.getStill())\n//\t\t\t\tif(!bp.getLock() && (!bp.getGrid(pvo1).getMovement()&& !bp.getGrid(pvo2).getMovement()))\n\t\t\t\tif(!bp.getLock())\n\t\t\t\t\tbms.trySwap(pvo1, pvo2);\n\t\t\t\tcount = 0;\n\t\t\t\tfocusGrids[0].normalize();\n\t\t\t\tfocusGrids[1].normalize();\n\t\t\t} else {\n\t\t\t\tpvo1 = pvo2;\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void mouseDrag(Point2d worldCoordFrom, Point2d worldCoordTo) {\n \n if (selectionMade) {\n rotationPerformed=true;\n /*\n * Determine the quadrant the user is currently in, relative to the\n * rotation center.\n */\n int quadrant = 0;\n if ((worldCoordFrom.x >= rotationCenter.x))\n if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 1; // 12 to 3 o'clock\n else\n quadrant = 2; // 3 to 6 o'clock\n else if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 4; // 9 to 12 o'clock\n else\n quadrant = 3; // 6 to 9 o'clock\n \n /*\n * The quadrant and the drag combined determine in which direction\n * the rotation will be done. For example, dragging in direction\n * left/down in quadrant 4 means rotating counter clockwise.\n */\n final int SLOW_DOWN_FACTOR=4;\n switch (quadrant) {\n case 1:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 2:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 3:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n case 4:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n }\n \n /* For more info on the mathematics, see Wiki at \n * http://en.wikipedia.org/wiki/Coordinate_rotation\n */\n double cosine = java.lang.Math.cos(rotationAngle);\n double sine = java.lang.Math.sin(rotationAngle);\n for (int i = 0; i < startCoordsRelativeToRotationCenter.length; i++) {\n double newX = (startCoordsRelativeToRotationCenter[i].x * cosine)\n - (startCoordsRelativeToRotationCenter[i].y * sine);\n double newY = (startCoordsRelativeToRotationCenter[i].x * sine)\n + (startCoordsRelativeToRotationCenter[i].y * cosine);\n \n Point2d newCoords = new Point2d(newX + rotationCenter.x, newY\n + rotationCenter.y);\n \n selection.getConnectedAtomContainer().getAtom(i).setPoint2d(\n newCoords);\n }\n }\n chemModelRelay.updateView();\n }", "public void mousePressed(MouseEvent e)\n { \n this.startX=e.getX();\n this.startY=e.getY();\n\n }", "boolean onLeftClick(double mouseX, double mouseY);", "public void mouseClicked (MouseEvent e)\r\n\t{\r\n\t\tx = e.getX ();\r\n\t\ty = e.getY ();\r\n\t\t//Rules screen photo button 'PLAY'\r\n\t\tif ((screen == 0 || screen == 4 || screen == 5) && (x > 250 && x < 320) && (y > 360 && y < 395)){ \r\n\t\t\tscreen = 1;\r\n\t\t\trepaint();\r\n\t\t}\r\n\t\t//Game screen photo button 'Press to Start'\r\n\t\telse if (screen == 1 || screen == 2 || screen == 3){ \r\n\t\t\tif ((x > 10 && x < 180) && (y > 80 && y < 105)) \r\n\t\t\t\tnewGame();\r\n\t\t\tanimateButtons ();\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}", "public void mouseClicked(MouseEvent e) {\r\n if (e.getButton() == MouseEvent.BUTTON3) {\r\n rectangle = null;\r\n uncolorNodes(selectedIds);\r\n } else if (e.getButton() == MouseEvent.BUTTON1) {\r\n rectangle = new Rectangle(e.getPoint(), new Dimension(1, 1));\r\n colorSelectedNodes();\r\n }\r\n }", "void pickingDraw(GL2 gl, GLUgl2 glu, Camera camera, PickingCameraEvent event);", "public void mousePressed(MouseEvent e) {\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\tswitch (clickTracker) {\n\t\t\tcase 0:\n\t\t\t\t//figureDone = false;\n\t\t\t\tflipDirection.setEnabled(false);\n\t\t\t\tlastClick = new GPoint(x,y);\n\t\t\t\tlineActive = true;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(centerCircle);\n\t\t\t\tdrawCenter(x, y);\n\t\t\t\t//println(lastClick + \" x \" + x + \" y \" +y);\n\t\t\t\t//double centerX = lastClick.getX();\n\t\t\t\t//double centerY = lastClick.getY();\n\t\t\t\tlastClick = new GPoint(lastClick.getX() + centerCircle.getWidth(), lastClick.getY());\n\t\t\t\tbreak;\n\t\t\t//case 2:\n\t\t\t\t//lastClick = new GPoint(x,y);\n\t\t\t\t//lineActive = true;\n\t\t\t\t//break;\n\t\t\tcase 2:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(outerCircle);\n\t\t\t\tdrawOuter(x, y);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(armLine);\n\t\t\t\tdrawArm(x,y);\n\t\t\t\tinitalizeFigure();\n\t\t\t\tbreak;\n\t\t}\n\t\tclickTracker++;\n\t\tif (clickTracker == 3 || clickTracker == 2) lineActive = true;\n\t}", "@Override\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tmouseLastX = e.getX();\n\t\t\t\tmouseLastY = e.getY();\n\t\t\t\tif (viewState.get() == ViewState.CLOSED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_PRESSED){\n\t\t\t\t\t\n\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\t\tm.setTop(getSelection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getEventType() == MouseEvent.MOUSE_DRAGGED) {\n\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\t\tgetSelection().setCenterX(e.getX());\n\t\t\t\t\t\t\tgetSelection().setCenterY(e.getY());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (e.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\t\t\tif(getSelection().getType() == ShapeType.CIRCLE) {\n\t\t\t\t\t\t\t\tgetSelection().setRadius(getSelection().getRadius() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tgetSelection().setWidth(getSelection().getWidth() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t\tgetSelection().setHeight(getSelection().getHeight() + 0.25 * (e.getY() - getSelection().getCenterY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_CLICKED) {\n\t\t\t\t\tif (e.getButton().equals(MouseButton.PRIMARY)){\n\t\t\t\t\t\tswitch (e.getClickCount()) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif (getSelection() == null) {\n\t\t\t\t\t\t\t\tsetSelection(m.add(defaultS.getType(), e.getX(), e.getY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\t\t\tapplication.goToCD(getSelection());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "public boolean mousePressed(MouseEvent mouse, Rectangle2D.Float environment,\n\t\t\tArrayList<Rectangle2D> rectangleList, ArrayList<String> rectangleIndexList,\n\t\t\tArrayList<Ellipse2D> circleList, ArrayList<String> circleIndexList) {\n\t\t\n\t\t// per mouse press, changes selected object & allows dragging capabilities\n\t\tif (objectIsPresent(mouse,environment,rectangleList,rectangleIndexList,circleList,circleIndexList)) {\n\t\t\tLiquidApplication.getGUI().getEditorPanel().setSelectedObjectPanel();\n\t\t\tpressedObject = true;\n\t\t\treturn true;}\n\t\treturn false;\n\t}", "protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "public void onMouseClick(Location point) {\n\t Thread t6 = new MoveMouth(0, 0, canvas);\n t6.start(); \n }", "public void mouseClicked(MouseEvent arg0) {\n\t\t\t\tcounter++;\r\n\t\t\t\tif(rdbtnLeapMotion.isSelected()){\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Leap Motion radio button is selected and the click count is 1 \r\n\t\t\t\t\t\tthen set button text to \"Disconnect\", connect to the Leap Motion \r\n\t\t\t\t\t\tand to the Crazyflie throught the LeapControl class\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tleapControl.connectToCrazyflie(data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t/*If it's the second click then set button text back to \"Connect\", \r\n\t\t\t\t\t\tdisconnect from the LeapControl class and reset counter to 0\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tleapControl.disconnectFromCrazyflie();\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Gamepad radio button is selected and the counter is 1\r\n\t\t\t\t\t\t * then set button text to \"Disconnect\" \r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tif(!gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\t//if the GamepadCotnrol thread is not alive then create GamepadControl object\r\n\t\t\t\t\t\t\tGamepadControl gpdCtrl = new GamepadControl(data,radio);\r\n\t\t\t\t\t\t\tgpdCtrl.setUI(LeapFlieUI.this);\r\n\t\t\t\t\t\t\tgamepadCtrl = new Thread(gpdCtrl);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//start the GamepadControl thread\r\n\t\t\t\t\t\tgamepadCtrl.start();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//if it's the second click then reset counter to 0 and interrupt the thread\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tif(gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\tgamepadCtrl.interrupt();\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}", "public void onEventSelected(int position);", "public void mousePressed(MouseEvent e) // When mouse is pressed:\n {\n Location pt = new Location(e.getX(),e.getY());\n origPress = pt;\n\n if(hLine.contains(pt)) // If press is on hLine:\n {\n hLineGrabbed = true; // hLine is grabbed\n }\n\n if(vLine.contains(pt)) // If press is on vLine:\n {\n vLineGrabbed = true; // vLine is grabbed\n }\n\n lastPt = pt; // Set the point to lastPt\n }", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tsuper.mousePressed(e);\n\t\t\tint key = e.getButton();\n\t\t\tint y = e.getY();\n\t\t\tif (key == MouseEvent.BUTTON3 && y < Constants.BOTTOM - 40) {\n\t\t\t\tif (!isGamePaused && isGameActive) {\n\t\t\t\t\tpauseGame(\"PAUSE\");\n\t\t\t\t\tpaintThread.suspendThread(50);\n\n\t\t\t\t} else if (isGamePaused && isGameActive) {\n\t\t\t\t\tresumeGame();\n\t\t\t\t} else {\n\t\t\t\t\tstartGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\tMain client = Starter.getClient();\r\n\t\tif(!client.isInMenus() && \r\n\t\t\t\t!client.isMouselookActive() && \r\n\t\t\t\tclient.getActiveCam().equals(Main.CAM_MODE.FLY) &&\r\n\t\t\t\tclient.getWorkingScenario() != null && \r\n\t\t\t\tclient.getWorkingScenario().isEditingMode()){//if mouse look == false && activeCam == CAM_MODE.FLY && !inMenues && editMode\r\n\t\t\tScenarioBuilderScreenController.selecting = true;\r\n\t\t\tCollisionResults results = new CollisionResults();\r\n\t\t\tInputManager inputManager = client.getInputManager();\r\n\t\t\tVector2f click2d = inputManager.getCursorPosition();\r\n\t\t\t\r\n\t\t\tCamera cam = client.getCamera();\r\n\t\t\tVector3f click3d = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 0f).clone();\r\n\t\t\tVector3f dir = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 1f).subtractLocal(click3d).normalizeLocal();\r\n\t\t\tRay ray = new Ray(click3d, dir);\r\n\t\t\t\r\n\t\t\tNode entityNode = client.getWorkingScenario().getEntityNode();\r\n\t\t\tentityNode.collideWith(ray, results);\r\n\t\t\r\n \tif(results.size() > 0){\r\n \t\tCollisionResult closest = results.getClosestCollision();\r\n \t\tString selected = closest.getGeometry().getName();\r\n \t\tScenario scenario = client.getWorkingScenario();\r\n \t\tEntity selectedEntity = scenario.getEntity(selected);//get selected entity from scene\r\n \t\tif(selectedEntity != null){\r\n \t\t\tif(!client.isCTRLDown()){\r\n \t\t\t\tscenario.selectEntity(selectedEntity);\r\n \t\t\t\tthis.selectedEntity = selectedEntity;\r\n \t\t\t}\r\n \t\t\telse{\r\n \t\t\t\tscenario.deselectEntity(selectedEntity);\r\n \t\t\t\tthis.selectedEntity = null;\r\n \t\t\t}\r\n \t\t}\r\n \t\tnotifyObservers();\r\n \t}\r\n\t\t\tScenarioBuilderScreenController.selecting = false;\r\n\t\t}\r\n\t}", "public void centerSelection() {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n if (sel != null && sel.size() > 0) {\n Iterator<String> it = sel.iterator();\n\twhile (it.hasNext()) { \n\t String ent = it.next(); Point2D point = entity_to_wxy.get(ent);\n\t if (last_shft_down) entity_to_wxy.put(ent, new Point2D.Double(point.getX(),m_wy)); \n\t else if (last_ctrl_down) entity_to_wxy.put(ent, new Point2D.Double(m_wx,point.getY()));\n\t else entity_to_wxy.put(ent, new Point2D.Double(m_wx,m_wy));\n\t transform(ent); \n\t}\n getRTComponent().render();\n }\n }", "public void mouseDragged(MouseEvent e) {\n int modifiers = e.getModifiers();\n Point point = e.getPoint();\n \n if (super.toolHandler == null) {\n return;\n } else if (!super.toolHandler.supportsTool(ToolBox.TOOL_RECTANGLE_SELECT)) {\n return;\n }\n \n if ((modifiers & MouseEvent.BUTTON1_MASK) != 0) {\n int x = Math.min(startPoint.x, point.x);\n int y = Math.min(startPoint.y, point.y);\n int width = Math.max(startPoint.x, point.x) - x;\n int height = Math.max(startPoint.y, point.y) - y;\n \n Rectangle r = new Rectangle(x,y,width,height);\n \n super.toolHandler.setSelectionShape(r);\n }\n }", "public void interact() {\n\t\tint clickX = EZInteraction.getXMouse();\n\t\tint clickY = EZInteraction.getYMouse();\n\t\tif (EZInteraction.wasMouseLeftButtonPressed()) {\n\t\t\tif (img.isPointInElement(clickX, clickY)) {\n\t\t\t\tisDragging = true;\n\t\t\t}\n\t\t}\n\t\tif (isDragging) {\n\t\t\timg.translateTo(clickX, clickY);\n\t\t}\n\t\tif (EZInteraction.wasMouseLeftButtonReleased()) {\n\t\t\tif (img.isPointInElement(clickX, clickY)) {\n\t\t\t\tisDragging = false;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void ControlType3(int time) {\n\t\tgraphic.setDirection(GameEngine.getMouseX(), GameEngine.getMouseY());\n\t\t//set hero facing cursor\n\t\t// distance of two points is square root of (x1-x2)^2 + (y1-y2)^2\n\t\tdistance = (float) Math.sqrt(Math.pow(GameEngine.getMouseX() \n\t\t\t\t- graphic.getX(), 2) + Math.pow(GameEngine.getMouseY() - graphic.getY(), 2));\n\t\tif (distance >= 20) { \n\t\t\t//hero only travels when it is farther than 20 pixels from cursor\n\t\t\tgraphic.setX(graphic.getX() + graphic.getDirectionX() * speed * time);\n\t\t\tgraphic.setY(graphic.getY() + graphic.getDirectionY() * speed * time);\n\t\t}\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n // this.getVision().getCare().set(this.getVision().getSoul().newMemento());\n if (e.getButton() != MouseEvent.BUTTON1) {\n return;\n }\n if (getVerticallyPointOnGraph(e.getX(), e.getY()) != null) {\n setCurrentPoint(getVerticallyPointOnGraph(e.getX(), e.getY()));\n } else {\n setCurrentPoint(null);\n }\n \n if (getCurrentPoint() != null) {\n double toy = Math.min(Math.max(tCanvasPadding, e.getY()), getHeight() - bCanvasPadding);\n // System.out.println(\"moving to [\"+tox+\",\"+toy+\"]\");\n adapter.moveImagePoint(getCurrentPoint(), c2gy(toy));\n // getCurrentPoint().movePoint(getCurrentPoint(),\n // c2gx(tox),c2gy(toy,getCurrentPoint().getDataSet()));\n }\n // System.out.println(\"Current point is \"+currentPoint);\n }", "public void mouseClicked(MouseEvent e){\n\r\n TShapePanel.this.requestFocus(); //Aug 06\r\n\r\n }", "public void selectOrMove(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON1 && ui_inter != UI_INTERACTION.SELECTING && ui_inter != UI_INTERACTION.MOVING) return;\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n switch (me_enum) {\n case PRESSED: Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n\n\t\t // Figure what's under the mouse\n Set<String> under_mouse = underMouse(me);\n\n // If what's under the mouse is already selected, then cause it to be moving\n\t\t if (Utils.overlap(sel,under_mouse)) { ui_inter = UI_INTERACTION.MOVING; \n\t\t moving_set = sel; }\n else if (under_mouse.size() > 0 && \n\t\t (last_shft_down || last_ctrl_down)) { setOperation(under_mouse); }\n\t\t else if (under_mouse.size() > 0) { ui_inter = UI_INTERACTION.MOVING; \n\t\t getRTParent().setSelectedEntities(under_mouse);\n\t\t moving_set = under_mouse; }\n\t\t else { ui_inter = UI_INTERACTION.SELECTING; }\n\n\t\t initializeDragVars(me);\n\n\t\t repaint();\n\t\t break;\n case DRAGGED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING); repaint(); break;\n\tcase RELEASED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING);\n boolean no_move = false;\n\t\t if (ui_inter == UI_INTERACTION.MOVING) {\n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n if (dx != 0 || dy != 0) {\n Iterator<String> it = moving_set.iterator();\n while (it.hasNext()) {\n String entity = it.next();\n Point2D pt = entity_to_wxy.get(entity);\n entity_to_wxy.put(entity, new Point2D.Double(pt.getX() + dx, pt.getY() + dy));\n transform(entity);\n }\n getRTComponent().render();\n } else no_move = true;\n\t\t } \n if (ui_inter == UI_INTERACTION.SELECTING || no_move) {\n int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t Rectangle2D rect = new Rectangle2D.Double(x0,y0,dx,dy);\n\n\t\t Set<String> new_sel = new HashSet<String>();\n\t\t Iterator<String> it = myrc.node_to_geom.keySet().iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String node = it.next(); Shape shape = myrc.node_to_geom.get(node);\n\t\t\t if (rect.intersects(shape.getBounds())) new_sel.addAll(myrc.node_coord_set.get(node));\n\t\t\t }\n setOperation(new_sel);\n\t\t }\n ui_inter = UI_INTERACTION.NONE;\n\t\t repaint(); break;\n case CLICKED: setOperation(underMouse(me));\n repaint(); break;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }\n }", "public void mouseClicked(MouseEvent event)\n\t{\n\t\tint x = event.getX();\n\t\tint y = event.getY();\n\t\t\n\t\tfor (GlComponent component : components)\n\t\t{\n\t\t\tif (component.isTouched(x, y))\n\t\t\t{\n\t\t\t\tstartAction(component);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void middleClick(MouseEvent e) {\n\n\t}", "public void pickObject(int mouseX, int mouseY, MouseEvent e)\r\n {\r\n \tPickCanvas pickCanvas = new PickCanvas(canvas, getMBLocale());\r\n \tpickCanvas.setMode(PickCanvas.BOUNDS);\r\n \t\r\n pickCanvas.setShapeLocation(e);\r\n PickResult result = pickCanvas.pickClosest();\r\n \r\n if (result == null) \r\n {\r\n System.out.println(\"Nothing picked\");\r\n } \r\n else\r\n {\r\n \t// das is der teil den ich nicht sehr nett finde. hier müssen theoretisch alle 3d typen rein.\r\n \t// d.h. man muss auch dementsprechend viele if clauses einbauen.\r\n Primitive p = (Primitive)result.getNode(PickResult.PRIMITIVE);\r\n Shape3D s = (Shape3D)result.getNode(PickResult.SHAPE3D);\r\n parent.getLocale();\r\n if (p != null) \r\n {\r\n // System.out.println(\"result: \"+result.getGeometryArray().getInitialNormalIndex());\r\n System.out.println(p.getClass().getName());\r\n } \r\n else if (s != null) \r\n {\r\n System.out.println(s.getClass().getName());\r\n }\r\n else\r\n {\r\n System.out.println(\"null\");\r\n }\r\n } \r\n }", "public void mousePressed(MouseEvent e) {\n\t\t// It's true that the mouse is pressed\n\t\tmousePress = true;\n\t\t// Record the point user presses as starting point\n\t\tstartTrunk = new Point2D.Double(e.getX(), e.getY());\n\t}", "public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }", "public static void runFocusPoint() {\n //center map to current point\n point = getPoint(currentPoint);\n\n if (prevPoint[0] != point[0]) {\n if (prevPoint[0] > point[0]) {\n diff[0] = prevPoint[0] - point[0];\n prevPoint[0] -= FImageGrid.scrollIncrement;\n } else {\n diff[0] = point[0] - prevPoint[0];\n prevPoint[0] += FImageGrid.scrollIncrement;\n }\n }\n if (prevPoint[1] != point[1]) {\n diff[1] = prevPoint[1] - point[1];\n if (prevPoint[1] > point[1]) {\n diff[1] = prevPoint[1] - point[1];\n prevPoint[1] -= FImageGrid.scrollIncrement;\n } else {\n diff[1] = point[1] - prevPoint[1];\n prevPoint[1] += FImageGrid.scrollIncrement;\n }\n }\n if (diff[0] > 0 || diff[1] > 0) {\n diff[0] -= FImageGrid.scrollIncrement;\n diff[1] -= FImageGrid.scrollIncrement;\n if (diff[0] <= FImageGrid.scrollIncrement) {\n diff[0] = 0;\n prevPoint[0] = point[0];\n }\n if (diff[1] <= FImageGrid.scrollIncrement) {\n diff[1] = 0;\n prevPoint[1] = point[1];\n }\n //System.out.print(\"prev[\" + prevPoint[0] + \",\" + prevPoint[1] + \"] | \");\n //System.out.print(\"next[\" + point[0] + \",\" + point[1] + \"] | \");\n //System.out.println(\"diff[\" + diff[0] + \",\" + diff[1] + \"]\");\n centerMapTo(prevPoint[0] + transformCoordenate(mapPos, X_COORD),\n prevPoint[1] + transformCoordenate(mapPos, Y_COORD));\n } else {\n diff = new int[]{0, 0};\n if (currentPoint - 1 > 0) {\n prevPoint = getPoint(currentPoint - 1);\n } else {\n prevPoint = point;\n }\n centerMapTo(point[0] + transformCoordenate(mapPos, X_COORD),\n point[1] + transformCoordenate(mapPos, Y_COORD));\n }\n }", "public void beginSelecting() {\r\n selecting = true;\r\n minX = 0;\r\n maxX = 0;\r\n }", "Point userClickPoint();", "@Override\n public void initiateMouse() {\n\n MouseHandler m = new MouseHandler();\n m.addRunnablePress(1, new SelectNote(this.model, this.view.getGui(), m));\n m.addRunnablePress(3, new SelectNoteToBeAdded(this.model, this.view.getGui(), m));\n m.addRunnableRelease(3, new AddNote(this.model, this.view.getGui(), this.view, m));\n\n this.view.addMouseListener(m);\n\n }", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n this.model.setNoteToBeAdded(new Note(n.getPitchLetter(), n.getOctave(),\n fromTheLeft, fromTheLeft));\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n\n\n }", "public void mousePressed(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n\n lastClicked = canvas.getElementAt(new GPoint(e.getPoint()));\n\n }", "@Override\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tgraphics.panel.requestFocus();\n\t\tx=arg0.getX();\n\t\ty=arg0.getY();\n\t}", "public void mousePressed(MouseEvent e) {\n\t\tif (e.getX() > currImage.getWidth() || e.getY() > currImage.getHeight()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (e.getButton() == MouseEvent.BUTTON1) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\t\t\tcurrRect = new RotatedTextBox(x, y, 0, 0, 0, \"\", \"\");\n\t\t\tframe.requestFocusInWindow();\n\t\t\trepaint();\n\t\t}\n\t}", "public void mousePressed(MouseEvent e) {\n\n if(Objects.equals(ToolSelect.GetTool(), \"zoom/pan\")){\n released = false;\n sPoint = MouseInfo.getPointerInfo().getLocation();\n }else {\n\n startPoint = e.getPoint();\n shape = new ColoredRectangle(ToolSelect.GetBorderColor(), ToolSelect.GetFillColor(), new Rectangle(), ToolSelect.GetTool(), null);\n if (Objects.equals(ToolSelect.GetTool(), \"plot\") || Objects.equals(ToolSelect.GetTool(), \"line\")) {\n shape.shape.setBounds(e.getX(), e.getY(), 1, 1);\n }\n }\n\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgsv.startRectangleState();\n\t\t\t}", "private void startDragging() {\n Point mousePosition = calculateMouseLocation();\n mouseX = mousePosition.getX();\n mouseY = mousePosition.getY();\n prevX = getArea().getX();\n prevY = getArea().getY();\n setDragging(true);\n }", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "public void buttonAction(int selectedFeature) {\n\t\tmyParent.stopCustomCursor(this.couplerMullionPanel);\n\t\t\n\t\tthis.myParent.setActionTypeEvent(1);\n\t\t\n\t\tif (selectedLevel == 1) {\n\t\t\t\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t} else {\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n for (MouseListener ml : vtnWebCam.getPanelCam().getMouseListeners()) {\n ml.mouseClicked(e);\n }\n }", "public void mouseClicked(MouseEvent evt) {\n Location x = new Location( evt.getX(), evt.getY() );\n ripple = new Ripples(x, canvas, pond, true, movingRipples,this);\n run.addActionListener(ripple);\n pause.addActionListener(ripple);\n clear.addActionListener(ripple);\n speedController.addChangeListener(ripple);\n canvas.addMouseListener(ripple);\n canvas.addMouseMotionListener(ripple);\n }", "void mousePressed(double x, double y, MouseEvent e );", "@Override public void handle(MouseEvent mouseEvent) {\n\t\t\t if (controller.MODE == Controller.Mode.SELECT) {\n originalPosition.x = pivot.getOriginX();\n originalPosition.y = pivot.getOriginY();\n\t\t\t\t if (pivot.getModel() instanceof Parent) {\n\t\t\t\t dragSource.x = mouseEvent.getX();\n\t\t\t\t\t dragSource.y = mouseEvent.getY();\n\t\t\t\t }\n\t\t\t\t // Records delta of mouse click coordinates and UMLObject's origin if UMLObject is not\n\t\t\t\t // * a Parent.\n\t\t\t\t else {\n\t\t\t\t\t dragSource.x = pivot.getOriginX() - mouseEvent.getX();\n\t\t\t\t\t dragSource.y = pivot.getOriginY() - mouseEvent.getY();\n\t\t\t\t }\n \t\t\t\tpivot.getModel().getScene().setCursor(Cursor.MOVE);\n\t\t\t }\n\t\t }", "@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }", "void mouseClicked(double x, double y, MouseEvent e );", "@Override\n \tpublic boolean onTouch(View v, MotionEvent event) {\n \t\tif(event.getActionMasked() == MotionEvent.ACTION_DOWN) \n \t\t{\n \t\t\toffset_x = (int) event.getX();\n \t\t\toffset_y = (int) event.getY();\n \t\t\tselected_item = v;\n \t\t}\nreturn false;\n}", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "void onRightClick(double mouseX, double mouseY);", "public void mouseDragged(MouseEvent e) {\n int x = e.getX();\n int y = e.getY();\n Dimension size = e.getComponent().getSize();\n\n float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);\n float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);\n \n prevMouseX = x;\n prevMouseY = y;\n\n view_rotx += thetaX;\n view_roty += thetaY;\n }", "public void mouseDragged(MouseEvent e){\n if(e.getSource() == cmUI) {\n // finish the creation\n cmModel.stopCreating();\n\n // if we are sampling the model\n // move the sample color to pass it to another color\n if (cmModel.sample != null) {\n cmModel.sample.setPos(e.getPoint());\n if (cmModel.sampledItem != null) {\n // when the sample enters/ leave the sampled item\n // set the different display mode\n if (cmModel.sampledItem.isSampling() && !cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(false, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (!cmModel.sampledItem.isSampling() && cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(true, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (cmModel.sampledItem.isSampling()) {\n repaint(cmModel.sampledItem, cmModel.sample);\n } else {\n repaint(cmModel.sample);\n }\n }\n }\n\n // save the trace points\n if(isTracing){\n mouseTrace.lineTo(e.getX(),e.getY());\n }\n }\n \n //click event comes from the color picker\n else if(e.getSource() == cpUI) {\n\t\t\tmouseClickedPoint = mouseDraggedPoint;\n\t\t\tmouseDraggedPoint = e.getPoint();\n\t\t\t\n\t\t\t//if mouse is clicked in the white handle change the hue\n\t\t\tif(mouseClickedInCircle) {\n\t\t\t\t//Hue changes faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateHue(1);\n\t\t\t\t}\n\t\t\t\t//Hue changes slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)){\n\t\t\t\t\tcalculateHue(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if mouse is clicked anywhere except the handle\n\t\t\t//and the circles surrounding the main color picker\n\t\t\t//change saturation and brightness\n\t\t\telse if(mouseClickedInSwipePanel) {\n\t\t\t\t//Saturation and Brightness change faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(1);\n\t\t\t\t}\n\t\t\t\t//Saturation and Brightness change slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Add a trail circle (circles that follow the mosue when you press it)\n\t\t\t\t//every five times this action listener is called\n\t\t\t\tif(count % 5 == 0) {\n\t\t\t\t\tcpUI.getCircleTrail().add(mouseDraggedPoint);\n\t\t\t\t\tif(cpUI.getCircleTrail().size() == 10) {\n\t\t\t\t\t\tcpUI.getCircleTrail().remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t\tcpUI.repaint();\n\t\t}\n\n }", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {\n }", "private void pressed(MouseEvent e)\r\n {\n }", "public boolean onTouch(View v, MotionEvent event) {\n\t\t\t \n\t\t\t\t\n\t\t\t\t\t//Model model=models[i];\n\t\t\t\tswitch(event.getAction()) {\n\t\t\t\t\t//Action started\n\t\t\t\t\tdefault:\n\t\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\t\tlastX = event.getX();\n\t\t\t\t\t\tlastY = event.getY();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Action ongoing\n\t\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t\tfloat dX = lastX - event.getX();\n\t\t\t\t\t\tfloat dY = lastY - event.getY();\n\t\t\t\t\t\tlastX = event.getX();\n\t\t\t\t\t\tlastY = event.getY();\n\t\t\t\t\t\tif(!ArrayIterator.isAnynull(models) ){\n\t\t\t\t\t\t\tswitch(mode) {\n\t\t\t\t\t\t\t\tcase MENU_SCALE:\n\t\t\t\t\t\t\t\t\tfor(int i=0;i<models.length;i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(models3d[i].isVisible()){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"SCALE\",\"SCALE FOR --\"+i);\n\t\t\t\t\t\t\t\t\t\t\tmodels[i].setScale(dY/100.0f);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t case MENU_ROTATE:\n\t\t\t\t\t\t \tfor(int i=0;i<models.length;i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t \t\tif(models3d[i].isVisible()){\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"ROTATE\",\"ROTATE FOR --\"+i);\n\t\t\t\t\t\t \t\t\tmodels[i].setXrot(-1*dX);//dY-> Rotation um die X-Achse\n\t\t\t\t\t\t\t\t\t\t\tmodels[i].setYrot(-1*dY);//dX-> Rotation um die Y-Achse\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\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t \n\t\t\t\t\t\t case MENU_TRANSLATE:\n\t\t\t\t\t\t \tfor(int i=0;i<models.length;i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t \t\tif(models3d[i].isVisible()){\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"TRANSLATE\",\"TRANSALATE FOR --\"+i);\n\t\t\t\t\t\t \t\t\tmodels[i].setXpos(dY/10f);\n\t\t\t\t\t\t \t\t\tmodels[i].setYpos(dX/10f);\n\t\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\n\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Action ended\n\t\t\t\t\tcase MotionEvent.ACTION_CANCEL:\t\n\t\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\t\tlastX = event.getX();\n\t\t\t\t\t\tlastY = event.getY();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n//\t\t\t\tmodels[i]=model;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn true;\n\t\t}", "public boolean onTouch(android.view.View r9, android.view.MotionEvent r10) {\n /*\n r8 = this;\n int r9 = r10.getActionMasked()\n r0 = 1\n if (r9 != 0) goto L_0x00b0\n float r9 = r10.getX()\n float r10 = r10.getY()\n int[] r1 = p145c.p146a.p147a.C3243f.C32539.f8747a\n c.a.a.f r2 = p145c.p146a.p147a.C3243f.this\n c.a.a.g r2 = r2.f8735x\n int r2 = r2.ordinal()\n r1 = r1[r2]\n r2 = 0\n switch(r1) {\n case 1: goto L_0x006f;\n case 2: goto L_0x0024;\n default: goto L_0x0021;\n }\n L_0x0021:\n r9 = 0\n goto L_0x00a0\n L_0x0024:\n android.graphics.Rect r1 = new android.graphics.Rect\n r1.<init>()\n c.a.a.f r3 = p145c.p146a.p147a.C3243f.this\n int r3 = r3.getFocusCenterX()\n c.a.a.f r4 = p145c.p146a.p147a.C3243f.this\n int r4 = r4.getFocusWidth()\n int r4 = r4 / 2\n int r3 = r3 - r4\n c.a.a.f r4 = p145c.p146a.p147a.C3243f.this\n int r4 = r4.getFocusCenterX()\n c.a.a.f r5 = p145c.p146a.p147a.C3243f.this\n int r5 = r5.getFocusWidth()\n int r5 = r5 / 2\n int r4 = r4 + r5\n c.a.a.f r5 = p145c.p146a.p147a.C3243f.this\n int r5 = r5.getFocusCenterY()\n c.a.a.f r6 = p145c.p146a.p147a.C3243f.this\n int r6 = r6.getFocusHeight()\n int r6 = r6 / 2\n int r5 = r5 - r6\n c.a.a.f r6 = p145c.p146a.p147a.C3243f.this\n int r6 = r6.getFocusCenterY()\n c.a.a.f r7 = p145c.p146a.p147a.C3243f.this\n int r7 = r7.getFocusHeight()\n int r7 = r7 / 2\n int r6 = r6 + r7\n r1.set(r3, r5, r4, r6)\n int r9 = (int) r9\n int r10 = (int) r10\n boolean r9 = r1.contains(r9, r10)\n goto L_0x00a0\n L_0x006f:\n c.a.a.f r1 = p145c.p146a.p147a.C3243f.this\n int r1 = r1.getFocusCenterX()\n float r1 = (float) r1\n float r1 = r1 - r9\n double r3 = (double) r1\n r5 = 4611686018427387904(0x4000000000000000, double:2.0)\n double r3 = java.lang.Math.pow(r3, r5)\n c.a.a.f r9 = p145c.p146a.p147a.C3243f.this\n int r9 = r9.getFocusCenterY()\n float r9 = (float) r9\n float r9 = r9 - r10\n double r9 = (double) r9\n double r9 = java.lang.Math.pow(r9, r5)\n double r3 = r3 + r9\n double r9 = java.lang.Math.sqrt(r3)\n double r9 = java.lang.Math.abs(r9)\n c.a.a.f r1 = p145c.p146a.p147a.C3243f.this\n float r1 = r1.getFocusRadius()\n double r3 = (double) r1\n int r9 = (r9 > r3 ? 1 : (r9 == r3 ? 0 : -1))\n if (r9 >= 0) goto L_0x0021\n r9 = 1\n L_0x00a0:\n if (r9 == 0) goto L_0x00a3\n return r2\n L_0x00a3:\n c.a.a.f r9 = p145c.p146a.p147a.C3243f.this\n boolean r9 = r9.f8732u\n if (r9 == 0) goto L_0x00b0\n c.a.a.f r9 = p145c.p146a.p147a.C3243f.this\n r9.mo10438b()\n L_0x00b0:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p145c.p146a.p147a.C3243f.C32452.onTouch(android.view.View, android.view.MotionEvent):boolean\");\n }", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox(null);\n\n if (allowCrop)\n getChart().getScene().getGraph().setClipBox(null);\n\n view.setBoundMode(ViewBoundMode.AUTO_FIT);\n\n }\n // Or apply selection to ZOOM\n else {\n BoundingBox3d bounds = view.getBounds().clone();\n\n configureZoomAccordingTo2DView(view, bounds, mouseSelection);\n\n // Reset mouse selection now so that next rendering will hide it from screen\n mouseSelection = new MouseSelection();\n\n // Won't do anything for irrelevant bounds leading to a flat graph\n if (bounds.getXRange().getRange() <= 0 \n || bounds.getYRange().getRange() <= 0\n || bounds.getZRange().getRange() <= 0)\n return;\n\n //System.out.println(\"Will zoom to \" + bounds);\n\n // Crop and zoom\n if (allowCrop) {\n boolean includeLimits = false; // to avoid inacurrate box scale\n getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false);\n }\n view.setBoundsManual(bounds);\n\n\n }\n\n }", "public void clicked() {\n\n // for loops that checks each icons coordinats\n for (int i = 0; i < sceneAmount; i++) {\n if ( mousePressed == true && // if the mouse has been pressed\n // if the mouse's X coordinates is within the icons\n mouseX >= 0 &&\n mouseX <= sidebarWidth &&\n\n // checks if the mouses Y coordinates is within the icons\n mouseY >= (i * height / sceneAmount ) &&\n mouseY <= (i * height / sceneAmount ) + height / sceneAmount) {\n\n\n\n // Draws a white rectancle ontop of the clicked icon\n push();\n noStroke();\n fill(clickedColor);\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n\n //changes scene to the clicked scene\n scene = i;\n\n //resets everything to prepare for scene change\n scrolled = 0;\n scenes.transparency = 255;\n scenes.slideCounter = 0;\n scenes.slider = 0;\n scenes.fade = false;\n movie.stop();\n playing = false;\n }\n }\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n if(!allow_touch) return false; //check if interaction is enabled.\n\n if(!listenerSet) return false; //check if surface has parent.\n\n //case action type is ACTION_DOWN\n if(event.getAction() == MotionEvent.ACTION_DOWN){\n\n //get touch location\n float x = event.getX();\n float y = event.getY();\n squareSize = this.getWidth()/12;\n //create rect\n Rect touchRect = new Rect(\n (int)(x - squareSize),\n (int)(y - squareSize),\n (int)(x + squareSize),\n (int)(y + squareSize));\n\n\n final Rect targetFocusRect = new Rect(\n touchRect.left * 2000/this.getWidth() - 1000,\n touchRect.top * 2000/this.getHeight() - 1000,\n touchRect.right * 2000/this.getWidth() - 1000,\n touchRect.bottom * 2000/this.getHeight() - 1000);\n\n //check which kind of method to call according to the type of the parent class.\n switch(type){\n /**\n * init the focus callback from the parent class.\n */\n case 0:\n ((CameraActivity) camPreview).doTouchFocus(targetFocusRect);\n break;\n case 1:\n ((SquareCameraActivity)camPreview).doTouchFocus(targetFocusRect);\n break;\n case 2:\n ((CameraDialog) camPreview).doTouchFocus(targetFocusRect);\n break;\n }\n\n //check if a frame was set and if the drawing view was already removed.\n if(frame_set&&isRemoved){\n isRemoved=false; //set isRemoved to false to avoid multiple focus views.\n dv = new DrawingView(getContext()); //initialize the drawing view.\n //noinspection ResourceType\n dv.setShapeColor(getResources().getString(android.R.color.white)); //set the shape color.\n if(focus_border_color!=null) dv.setShapeColor(focus_border_color);\n if(focus_border_stroke>0) dv.setStrokeSize(focus_border_stroke);//set the shape stroke size.\n\n dv.setHaveTouch(true, touchRect); //set the position of the drawing view object.\n ((FrameLayout) frame).addView(dv); //add the drawing view object to the FrameLayout that is wrapping the SurfaceView.\n\n //Special case fix for Camera Dialog\n if(type==2) {\n //Create a FrameLayout Parameter object with the height of the current SurfaceView.\n FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) this.getLayoutParams();\n params.height = this.getHeight();\n //Set the params on the FrameLayout, this will force it to stay in the same size and not expand.\n frame.setLayoutParams(params);\n }\n\n //Invalidate the view.\n dv.invalidate();\n\n //Create handler object to remove the object.\n Handler handler = new Handler();\n\n //set post delay 1.5 seconds.\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //Re-position the view.\n dv.setHaveTouch(false, new Rect(0, 0, 0, 0));\n dv.invalidate();\n\n //remove the view from the frame layout.\n ((FrameLayout) frame).removeView(dv);\n\n //change the isRemoved flag to true.\n isRemoved = true;\n }\n }, 1500);\n\n }\n }\n\n return false;\n }", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "public void processMouseEvent(MouseEvent e) {\n\t\tswitch (e.getID()) { //what kind of mouse event?\n\t\t\tcase MouseEvent.MOUSE_PRESSED:\n\t\t\t\t//When the mouse is pressed on the LWButton object,\n\t\t\t\t// set the \"pressed\" state of the object to true \n\t\t\t\t// and force it to be repainted to change its \n\t\t\t\t// appearance. When pressed is true, the button is\n\t\t\t\t// rendered as though it has been pressed into the\n\t\t\t\t// screen.\n\t\t\t\tpressed = true;\n\t\t\t\tthis.invalidate();\n\t\t\t\tthis.repaint();\n\n\t\t\t\tbreak;\n\n\t\t\tcase MouseEvent.MOUSE_RELEASED:\n\n\t\t\t\t//When the mouse is released on the LWButton object:\n\t\t\t\t// 1. Invoke the actionPerformed() method in the \n\t\t\t\t// Listener objects that are registered to \n\t\t\t\t// listen to the LWButton object.\n\t\t\t\t// 2. Confirm that the \"pressed\" state is true and \n\t\t\t\t// if so, set it to false and force the object \n\t\t\t\t// to be repainted to change its appearance.\n\t\t\t\t// When pressed is false, the button is rendered\n\t\t\t\t// so as to appear to protrude out of the \n\t\t\t\t// screen.\n\t\t\t\t// 3. Request the focus for the LWButton object.\n\t\t\t\t//if an ActionListener is registered\n\t\t\t\tif (actionListener != null) {\n\t\t\t\t\t//Invoke the actionPerformed() method on the list\n\t\t\t\t\t// of listener objects registered on the \n\t\t\t\t\t// LWButton object. Instantiate and pass an\n\t\t\t\t\t// ActionEvent object as a parameter.\n\t\t\t\t\tactionListener.actionPerformed(new ActionEvent(this,\n\t\t\t\t\t ActionEvent.ACTION_PERFORMED,\n\t\t\t\t\t label));\n\t\t\t\t} //end if on actionListener\n\n\t\t\t\tif (pressed == true) {\n\t\t\t\t\tpressed = false;\n\t\t\t\t\tthis.requestFocus();\n\t\t\t\t\tthis.invalidate();\n\t\t\t\t\tthis.repaint();\n\t\t\t\t} //end if on pressed\n\n\t\t\t\tbreak;\n\t\t} //end switch\n\n\t\t//The following statement is always needed when an\n\t\t// overridden version of processMouseEvent() is used.\n\t\tsuper.processMouseEvent(e);\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n //erwanGLRenderer.startRotating(x,y);\n break;\n case MotionEvent.ACTION_UP:\n //erwanGLRenderer.stopRotating();\n break;\n case MotionEvent.ACTION_MOVE:\n //erwanGLRenderer.updateRotation(x,y);\n break;\n }\n return true;\n }" ]
[ "0.688676", "0.6159102", "0.6152233", "0.6138782", "0.6129296", "0.6102798", "0.60431916", "0.6023223", "0.59723634", "0.5969104", "0.5919605", "0.5919605", "0.5919605", "0.5919404", "0.58990157", "0.5888889", "0.58466446", "0.5818546", "0.58017", "0.5786276", "0.57625467", "0.57446253", "0.5739403", "0.5735342", "0.5732689", "0.5727364", "0.57198966", "0.571544", "0.5712056", "0.56878924", "0.56705564", "0.56584346", "0.5657193", "0.56536657", "0.5648424", "0.56103635", "0.56009245", "0.55822164", "0.5575826", "0.5560551", "0.55543923", "0.55540794", "0.5552095", "0.5551185", "0.55316615", "0.5528618", "0.55135894", "0.55124176", "0.55087626", "0.5508637", "0.5507798", "0.54968566", "0.548546", "0.5468409", "0.5464683", "0.54604465", "0.5454281", "0.54539025", "0.545238", "0.54477924", "0.5447383", "0.5439154", "0.5413851", "0.5413311", "0.5412313", "0.5407495", "0.54056376", "0.540537", "0.54048747", "0.5403678", "0.53992504", "0.53943413", "0.53908813", "0.53885734", "0.53883934", "0.53823376", "0.53823376", "0.53810835", "0.5379232", "0.5375241", "0.5372168", "0.5367559", "0.53664905", "0.53658855", "0.5360335", "0.5360299", "0.5360072", "0.53581965", "0.5350064", "0.5348201", "0.53288734", "0.53271896", "0.53233445", "0.5321883", "0.5321463", "0.5319718", "0.53187853", "0.5317461", "0.53109944", "0.530316" ]
0.73030865
0
When mouse is dragged In 3D, if left button is hold, rotates the view around the center of the scene In 3D, if right button is hold, shift the view along Z axis In 2D, update the memory of the stop point (bottom right) of the selection rectangle
@Override public void mouseDragged(MouseEvent e) { // Check if mouse rate limiter wish to forbid this mouse drag instruction if (rateLimiter != null && !rateLimiter.rateLimitCheck()) { return; } // Apply mouse drag Coord2d mouse = xy(e); // 3D mode if (getChart().getView().is3D()) { // Rotate if left button down if (AWTMouseUtilities.isLeftDown(e)) { Coord2d move = mouse.sub(prevMouse).div(100); rotate(move); } // Shift if right button down else if (AWTMouseUtilities.isRightDown(e)) { Coord2d move = mouse.sub(prevMouse); if (move.y != 0) shift(move.y / 500); } } // 2D mode else { // Record the mouse selection in progress Coord2d dragMouse = xy(e); if (maintainInAxis) maintainInAxis(dragMouse); mouseSelection.stop2D = dragMouse; mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y); getChart().getView().shoot(); } prevMouse = mouse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public void mouseClickedDown(Point2d worldCoord) {\n logger.debug(\"rotate mouseClickedDown, initializing rotation\");\n rotationCenter = null;\n selection = super.chemModelRelay.getRenderer().getRenderer2DModel()\n .getSelection();\n \n if ( selection == null \n ||!selection.isFilled()\n || selection.getConnectedAtomContainer() == null\n || selection.getConnectedAtomContainer().getAtomCount()==0) {\n \n /*\n * Nothing selected- return. Dragging the mouse will not result in\n * any rotation logic.\n */\n logger.debug(\"Nothing selected for rotation\");\n selectionMade = false;\n return;\n \n } else {\n rotationPerformed = false;\n //if we are outside bounding box, we deselect, else\n //we actually start a rotation.\n Rectangle2D bounds = BoundsCalculator.calculateBounds(this.chemModelRelay.getRenderer().getRenderer2DModel().getSelection().getConnectedAtomContainer());\n \n rotationAngle = 0.0;\n selectionMade = true;\n \n /* Keep original coordinates for possible undo/redo */\n atomCoordsMap = new HashMap<IAtom, Point2d[]>();\n for (IAtom atom : selection.getConnectedAtomContainer().atoms()) {\n Point2d[] coordsforatom = new Point2d[2];\n coordsforatom[1] = atom.getPoint2d();\n atomCoordsMap.put(atom, coordsforatom);\n }\n \n /*\n * Determine rotationCenter as the middle of a region defined by\n * min(x,y) and max(x,y) of coordinates of the selected atoms.\n */\n IAtomContainer selectedAtoms = \n selection.getConnectedAtomContainer();\n \n \n Double upperX = null, lowerX = null, upperY = null, lowerY = null;\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n if (upperX == null) {\n upperX = selectedAtoms.getAtom(i).getPoint2d().x;\n lowerX = upperX;\n upperY = selectedAtoms.getAtom(i).getPoint2d().y;\n lowerY = selectedAtoms.getAtom(i).getPoint2d().y;\n } else {\n double currX = selectedAtoms.getAtom(i).getPoint2d().x;\n if (currX > upperX)\n upperX = currX;\n if (currX < lowerX)\n lowerX = currX;\n \n double currY = selectedAtoms.getAtom(i).getPoint2d().y;\n if (currY > upperY)\n upperY = currY;\n if (currY < lowerY)\n lowerY = currY;\n }\n }\n rotationCenter = new Point2d();\n rotationCenter.x = (upperX + lowerX) / 2;\n rotationCenter.y = (upperY + lowerY) / 2;\n logger.debug(\"rotationCenter \" \n + rotationCenter.x + \" \"\n + rotationCenter.y);\n \n /* Store the original coordinates relative to the rotation center.\n * These are necessary to rotate around the center of the\n * selection rather than the draw center. */\n startCoordsRelativeToRotationCenter = new Point2d[selectedAtoms\n .getAtomCount()];\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n Point2d relativeAtomPosition = new Point2d();\n relativeAtomPosition.x = selectedAtoms.getAtom(i).getPoint2d().x\n - rotationCenter.x;\n relativeAtomPosition.y = selectedAtoms.getAtom(i).getPoint2d().y\n - rotationCenter.y;\n startCoordsRelativeToRotationCenter[i] = relativeAtomPosition;\n }\n }\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void mouseDrag(Point2d worldCoordFrom, Point2d worldCoordTo) {\n \n if (selectionMade) {\n rotationPerformed=true;\n /*\n * Determine the quadrant the user is currently in, relative to the\n * rotation center.\n */\n int quadrant = 0;\n if ((worldCoordFrom.x >= rotationCenter.x))\n if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 1; // 12 to 3 o'clock\n else\n quadrant = 2; // 3 to 6 o'clock\n else if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 4; // 9 to 12 o'clock\n else\n quadrant = 3; // 6 to 9 o'clock\n \n /*\n * The quadrant and the drag combined determine in which direction\n * the rotation will be done. For example, dragging in direction\n * left/down in quadrant 4 means rotating counter clockwise.\n */\n final int SLOW_DOWN_FACTOR=4;\n switch (quadrant) {\n case 1:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 2:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 3:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n case 4:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n }\n \n /* For more info on the mathematics, see Wiki at \n * http://en.wikipedia.org/wiki/Coordinate_rotation\n */\n double cosine = java.lang.Math.cos(rotationAngle);\n double sine = java.lang.Math.sin(rotationAngle);\n for (int i = 0; i < startCoordsRelativeToRotationCenter.length; i++) {\n double newX = (startCoordsRelativeToRotationCenter[i].x * cosine)\n - (startCoordsRelativeToRotationCenter[i].y * sine);\n double newY = (startCoordsRelativeToRotationCenter[i].x * sine)\n + (startCoordsRelativeToRotationCenter[i].y * cosine);\n \n Point2d newCoords = new Point2d(newX + rotationCenter.x, newY\n + rotationCenter.y);\n \n selection.getConnectedAtomContainer().getAtom(i).setPoint2d(\n newCoords);\n }\n }\n chemModelRelay.updateView();\n }", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "public void keyPressed(KeyEvent evt) {\n Vector3f translate = new Vector3f();\n Vector3f transball = new Vector3f();\n \n plane_trans.get( translate ); \n ball_trans.get( transball ); \n \n if (evt.getKeyChar()=='a') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(Math.PI/36.0d);\n plane_trans.mul(rotate);\n \n //transball.x += 0.4f;\n \n \n \n }\n if (evt.getKeyChar()=='d') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n //transball.x -= 0.3f;\n }\n \n /*if (evt.getKeyChar()=='s') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y += 0.5f;\n }*/\n \n /*if (evt.getKeyChar()=='w') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y -= 0.4f;\n \n }*/\n \n if (evt.getKeyChar()=='i') {\n //transball.x = 0.0f;\n //transball.y = -3.00f;\n //transball.z = 0.3f;\n plane_trans.set(new Vector3f(0.0f, 1.5f, 9985.0f));\n \n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/3.0d);\n plane_trans.mul(rotate);\n }\n \n if(evt.getKeyChar()=='l'){\n stime = 2000;\n movement();\n \n \n }\n \n // (-5,5) (-5,-4) (5,-4) (5,5)\n // x varies from -5 to 5\n // y varies from 5 to -4\n \n /*if(transball.x< -5 || transball.x>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }\n if(transball.y < -4 || transball.y>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }*/\n \n \n //ball_trans.setTranslation( transball );\n //ballTG.setTransform(ball_trans);\n \n plane_trans.setTranslation( translate );\n planeTG.setTransform(plane_trans);\n \n // make a rectangle and usse its four coordinates to check where the ball is in the area or outside\n // resetball();\n \n \n \n }", "public void mouseDragged(MouseEvent e) \r\n\t{\r\n\t\tswitch (MouseDown) {\r\n\t\t\tcase 1:\r\n\t\t\t\tgetCamera().rotateY(((float)LastMouse[0]-e.getX())*0.4F);\r\n\t\t\t\tgetCamera().rotateX(((float)LastMouse[1]-e.getY())*-0.4F);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tgetCamera().translate(((float)LastMouse[0]-e.getX())*-0.01F,0,0);\r\n\t\t\t\tgetCamera().translate(0,((float)LastMouse[1]-e.getY())*0.01F,0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tgetCamera().zoom(((float)LastMouse[1]-e.getY())*0.1F);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t//System.out.print(\"MMove: \" + e.getPoint().toString() + \"\\r\");\r\n\t\te.consume();\r\n\t\tLastMouse[0] = e.getX();\r\n\t\tLastMouse[1] = e.getY();\r\n\t\trender(true);\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n int x = e.getX();\n int y = e.getY();\n Dimension size = e.getComponent().getSize();\n\n float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);\n float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);\n \n prevMouseX = x;\n prevMouseY = y;\n\n view_rotx += thetaX;\n view_roty += thetaY;\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "private void initCamera(SubScene scene, Group root){\n //Create a perspective camera for 3D use and add it to the scene.\n PerspectiveCamera camera = new PerspectiveCamera(true);\n scene.setCamera(camera);\n\n //Set the camera's field of view, near and far pane, and starting zoom.\n camera.setFieldOfView(80);\n camera.setNearClip(1);\n camera.setFarClip(5000);\n camera.setTranslateZ(-1000);\n\n //Initiate the rotation objects used for rotating the camera about the world.\n Rotate xRotate = new Rotate(0, Rotate.X_AXIS);\n Rotate yRotate = new Rotate(0, Rotate.Y_AXIS);\n root.getTransforms().addAll(xRotate, yRotate);\n\n //Bind the property so it automatically updates.\n xRotate.angleProperty().bind(angleX);\n yRotate.angleProperty().bind(angleY);\n\n //Add an event listener to track the start of a mouse drag when the mouse is clicked.\n scene.setOnMousePressed(event -> {\n dragStartX = event.getSceneX();\n dragStartY = event.getSceneY();\n anchorAngleX = angleX.get();\n anchorAngleY = angleY.get();\n });\n\n //Add an event listener to update the rotation objects based on the distance dragged.\n scene.setOnMouseDragged(event -> {\n //A modifier (0.2 in this case) is used to control the sensitivity.\n Double newAngleX = anchorAngleX - (dragStartY - event.getSceneY())*0.2;\n //Restrict the rotation to angles less than 90.\n if(newAngleX > 90){\n angleX.set(90);\n //Restrict the rotation to angles greater than 5.\n } else if (newAngleX < 5){\n angleX.set(5);\n } else {\n angleX.set(newAngleX);\n }\n angleY.set(anchorAngleY + (dragStartX - event.getSceneX())*0.2);\n });\n\n //Add an event listener to move the camera away or towards the scene using the mouse wheel.\n scene.setOnScroll(event -> {\n Double delta = event.getDeltaY();\n //If the mouse scrolls in, and the camera is not too close, then move the camera closer.\n if(delta > 0 && camera.getTranslateZ() <= -100){\n camera.setTranslateZ(camera.getTranslateZ()*0.975);\n //Else, if the mouse scrolls out and it's not too far away, then move the camera away.\n } else if(delta <0 && camera.getTranslateZ() >= -3000){\n camera.setTranslateZ(camera.getTranslateZ()* 1/0.975);\n }\n });\n }", "public boolean onTouch(View v, MotionEvent event) {\n\t\t\t \n\t\t\t\t\n\t\t\t\t\t//Model model=models[i];\n\t\t\t\tswitch(event.getAction()) {\n\t\t\t\t\t//Action started\n\t\t\t\t\tdefault:\n\t\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\t\tlastX = event.getX();\n\t\t\t\t\t\tlastY = event.getY();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Action ongoing\n\t\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t\tfloat dX = lastX - event.getX();\n\t\t\t\t\t\tfloat dY = lastY - event.getY();\n\t\t\t\t\t\tlastX = event.getX();\n\t\t\t\t\t\tlastY = event.getY();\n\t\t\t\t\t\tif(!ArrayIterator.isAnynull(models) ){\n\t\t\t\t\t\t\tswitch(mode) {\n\t\t\t\t\t\t\t\tcase MENU_SCALE:\n\t\t\t\t\t\t\t\t\tfor(int i=0;i<models.length;i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(models3d[i].isVisible()){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"SCALE\",\"SCALE FOR --\"+i);\n\t\t\t\t\t\t\t\t\t\t\tmodels[i].setScale(dY/100.0f);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t case MENU_ROTATE:\n\t\t\t\t\t\t \tfor(int i=0;i<models.length;i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t \t\tif(models3d[i].isVisible()){\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"ROTATE\",\"ROTATE FOR --\"+i);\n\t\t\t\t\t\t \t\t\tmodels[i].setXrot(-1*dX);//dY-> Rotation um die X-Achse\n\t\t\t\t\t\t\t\t\t\t\tmodels[i].setYrot(-1*dY);//dX-> Rotation um die Y-Achse\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\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t \n\t\t\t\t\t\t case MENU_TRANSLATE:\n\t\t\t\t\t\t \tfor(int i=0;i<models.length;i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t \t\tif(models3d[i].isVisible()){\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"TRANSLATE\",\"TRANSALATE FOR --\"+i);\n\t\t\t\t\t\t \t\t\tmodels[i].setXpos(dY/10f);\n\t\t\t\t\t\t \t\t\tmodels[i].setYpos(dX/10f);\n\t\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\n\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Action ended\n\t\t\t\t\tcase MotionEvent.ACTION_CANCEL:\t\n\t\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\t\tlastX = event.getX();\n\t\t\t\t\t\tlastY = event.getY();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n//\t\t\t\tmodels[i]=model;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setRotation(editable.getEntity().getComponent(Transform.class).getRotation().add(0, 0, -Math.signum(lastMouseWorldPosition.get(Vector.Y) - Mouse.worldCoordinates.get(Vector.Y)) * rotationAngle));\t\n\t\t\t}\n\t\t\t\n\t\t\t// Update all selected editables\n//\t\t\tfor(Editable editable: SelectionTypeState.selectedEditables){\n//\t\t\t\t// Set the rotation\n//\t\t\t\teditable.getEntity().getComponent(Transform.class).getRotation().set(editable.getEntity().getComponent(Transform.class).getRotation().cpy().add(0, 0, -Math.signum(lastMouseWorldPosition.y - Mouse.worldCoordinates.y) * rotationAngle));\n//\t\t\t}\n\n\t\t\t// Update last mouse world position\n\t\t\tlastMouseWorldPosition = Mouse.worldCoordinates.copy();\n\t\t}", "public void run(){\n \n while (true){\n double p1Xnext =l1.getStart().getX()+v1p1;\n double p2Xnext =l2.getStart().getX()+v1p2;\n double p3Xnext =l3.getStart().getX()+v1p3;\n double p1Ynext =l1.getStart().getY()+v2p1;\n double p2Ynext =l2.getStart().getY()+v2p2;\n double p3Ynext =l3.getStart().getY()+v2p3;\n double p4Xnext =l1.getEnd().getX()+v1p1;\n double p5Xnext =l2.getEnd().getX()+v1p2;\n double p6Xnext =l3.getEnd().getX()+v1p3;\n double p4Ynext =l1.getEnd().getY()+v2p1;\n double p5Ynext =l2.getEnd().getY()+v2p2;\n double p6Ynext =l3.getEnd().getY()+v2p3;\n\n if (p1Xnext > l1.getCanvas().getWidth()){\n v1p1=-v1p1; \n }\n if (p1Xnext< 0){\n v1p1=-v1p1;\n \n }\n if (p1Ynext > l1.getCanvas().getHeight()){\n v2p1=-v2p1;\n \n }\n if (p1Ynext< 0){\n v2p1=-v2p1;\n }\n if (p2Xnext > l1.getCanvas().getWidth()){\n v1p2=-v1p2; \n }\n if (p2Xnext< 0){\n v1p2=-v1p2;\n \n }\n if (p2Ynext > l1.getCanvas().getHeight()){\n v2p2=-v2p2;\n \n }\n if (p2Ynext< 0){\n v2p2=-v2p2;\n \n }\n if (p3Xnext > l1.getCanvas().getWidth()){\n v1p3=-v1p3; \n }\n if (p3Xnext< 0){\n v1p3=-v1p3;\n \n }\n if (p3Ynext > l1.getCanvas().getHeight()){\n v2p3=-v2p3;\n \n }\n if (p3Ynext< 0){\n v2p3=-v2p3;\n }\n l1.setStart(l1.getStart().getX()+v1p1, l1.getStart().getY()+v2p1);\n l2.setStart(l2.getStart().getX()+v1p2, l2.getStart().getY()+v2p2);\n l3.setStart(l3.getStart().getX()+v1p3, l3.getStart().getY()+v2p3);\n l1.setEnd(l3.getStart());\n l2.setEnd(l1.getStart());\n l3.setEnd(l2.getStart());\n pause(10);\n \n \n \n }\n}", "private void transformObject(int x, int y) {\n double sx, sy, l, r, nx, ny, tx, ty, alpha, origCX = 0, origCY = 0;\n Rectangle bnds;\n\n if(curr_obj == transformPointers[Action.ROTATE]) {\n /* the mouse vector 1 */\n GeoVector mouseVector = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n /* the rotation vector. i.e. the fixed vector that will be used as origin composed by the subtraction of the object center with the rotation point */\n GeoVector rotationVector = new GeoVector(this.lastPosition[0], this.lastPosition[1], this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseVector.normalize();\n rotationVector.normalize();\n\n alpha = mouseVector.getAngleWith(rotationVector.getX(), rotationVector.getY());\n\n /** After passing the 180 degrees, the atan2 function returns a negative angle from 0 to PI. So this will convert the final gobal angle to 0-2PI */\n if(alpha < 0 ) {\n alpha = (2 * Math.PI) + alpha; \n }\n\n alpha -= this.currRotation;\n this.currRotation += alpha;\n\n Point c = new Point(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n this.aux_obj.uRotate((float)(-1.0*(alpha*(180/Math.PI))), c);\n \n } else {\n alpha = this.aux_obj.getRotation();\n\n /** Here we rotate the selected Graphic Object, it's tranformation points and the mouse coordinates back to the zero angle, to permit a correct object scalling. */\n if(alpha != 0.0) {\n origCX = this.aux_obj.getCenterX();\n origCY = this.aux_obj.getCenterY();\n this.aux_obj.uRotate((float)(alpha*-1.0), this.aux_obj.getCenter());\n rotateTransformPoints(alpha);\n GeoVector mouseCoord = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseCoord.rotate( ((alpha*-1.0) * (2.0*Math.PI))/360 );\n mouseCoord.addPoint(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n x = (int)mouseCoord.getX();\n y = (int)mouseCoord.getY();\n\n }\n\n /** Tatami rotates the object from it's x and y point to the edges. So this means that sometimes we need to translate the object a few pixels to asure that it's upper left corner is on the same position. */\n if(curr_obj == transformPointers[Action.NORTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)-tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.NORTH]) {\n if(y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate(0, (int)-ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTH];\n }\n } else if(curr_obj == transformPointers[Action.NORTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHEAST];\n }\n\n } else if(curr_obj == transformPointers[Action.WEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n aux_obj.uTranslate((int)-tx, 0);\n aux_obj.scale( (float)sx, 1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.WEST];\n }\n } else if(curr_obj == transformPointers[Action.EAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n aux_obj.uTranslate((int)tx, 0);\n aux_obj.scale( (float)sx, (float)1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.EAST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)-tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTH]) {\n if(y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate(0, (int)ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTH];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHEAST];\n }\n }\n\n\n }\n \n }", "@Override\n public void update(double delta) {\n model.rotateXYZ(0,(1 * 0.001f),0);\n\n float acceleration = 0.1f;\n float cameraSpeed = 1.5f;\n\n // Left - right\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_A) == GLFW_PRESS)\n speedz+= (speedz < cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_A) == GLFW_RELEASE)\n speedz-= (speedz-acceleration > 0) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_D) == GLFW_PRESS)\n speedz-= (speedz > -cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_D) == GLFW_RELEASE)\n speedz+= (speedz+acceleration < 0) ? acceleration : 0;\n\n // Forward - backward\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_W) == GLFW_PRESS)\n speedx+= (speedx < cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_W) == GLFW_RELEASE)\n speedx-= (speedx > 0) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_S) == GLFW_PRESS)\n speedx-= (speedx > -cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_S) == GLFW_RELEASE)\n speedx+= (speedx+acceleration < 0) ? acceleration : 0;\n\n // up - down\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_Q) == GLFW_PRESS)\n speedy+= (speedy < cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_Q) == GLFW_RELEASE)\n speedy-= (speedy > 0.1) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_E) == GLFW_PRESS)\n speedy-= (speedy > -cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_E) == GLFW_RELEASE)\n speedy+= (speedy < 0) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_TAB) == GLFW_PRESS) {\n speedz = 0;\n speedx = 0;\n }\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_R) == GLFW_PRESS) {\n debugCameraObject.eyePos.x = 0;\n debugCameraObject.eyePos.y = 0;\n debugCameraObject.eyePos.z = 0;\n }\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_T) == GLFW_PRESS) {\n showSkybox = !showSkybox;\n }\n\n\n debugCameraObject.processKeyboard(DebugCamera.CameraMovement.RIGHT, (float) (speedz * delta));\n debugCameraObject.processKeyboard(DebugCamera.CameraMovement.FORWARD, (float) (speedx * delta));\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "@Override public void handle(MouseEvent mouseEvent) {\n\t\t\t if (controller.MODE == Controller.Mode.SELECT) {\n originalPosition.x = pivot.getOriginX();\n originalPosition.y = pivot.getOriginY();\n\t\t\t\t if (pivot.getModel() instanceof Parent) {\n\t\t\t\t dragSource.x = mouseEvent.getX();\n\t\t\t\t\t dragSource.y = mouseEvent.getY();\n\t\t\t\t }\n\t\t\t\t // Records delta of mouse click coordinates and UMLObject's origin if UMLObject is not\n\t\t\t\t // * a Parent.\n\t\t\t\t else {\n\t\t\t\t\t dragSource.x = pivot.getOriginX() - mouseEvent.getX();\n\t\t\t\t\t dragSource.y = pivot.getOriginY() - mouseEvent.getY();\n\t\t\t\t }\n \t\t\t\tpivot.getModel().getScene().setCursor(Cursor.MOVE);\n\t\t\t }\n\t\t }", "public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "public double update() {\n\t\t double time=System.currentTimeMillis();\n\t\t boolean update=false;\n\t\t \n\t\t// Keyboard handling\n\t\tif (scene.ready) {\n\t\t\tif (command==KeyEvent.VK_D) \n\t\t\t\tcamera.y_rot=camera.y_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_A)\n\t\t\t\tcamera.y_rot=camera.y_rot-0.02;\n\t\t\tif (command==KeyEvent.VK_Q)\n\t\t\t\tcamera.z_rot=camera.z_rot-0.02;\n\t\t\tif (command==KeyEvent.VK_E)\n\t\t\t\tcamera.z_rot=camera.z_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_R)\n\t\t\t\tcamera.x_rot=camera.x_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_F)\n\t\t\t\tcamera.x_rot=camera.x_rot-0.02;\n\n\t\t\tif (command==KeyEvent.VK_W)\n\t\t\t\tcamera.translateWithRespectToView(0,0,250);\n\t\t\tif (command==KeyEvent.VK_S)\n\t\t\t\tcamera.translateWithRespectToView(0,0,-250);\n\t\t\tif (command==KeyEvent.VK_Z)\n\t\t\t\tcamera.translateWithRespectToView(-250,0,0);\n\t\t\tif (command==KeyEvent.VK_X)\n\t\t\t\tcamera.translateWithRespectToView(250,0,0);\n\t\t\tif (command==KeyEvent.VK_T)\n\t\t\t\tcamera.translateWithRespectToView(0,250,0);\n\t\t\tif (command==KeyEvent.VK_G)\n\t\t\t\tcamera.translateWithRespectToView(0,-250,0);\n\n\t\t\tif (command==KeyEvent.VK_J)\n\t\t\t\tvobject[0].rotate(0,-0.01,0);\n\t\t\tif (command==KeyEvent.VK_L)\n\t\t\t\tvobject[0].rotate(0,0.01,0);\n\t\t\tif (command==KeyEvent.VK_I)\n\t\t\t\tvobject[0].rotate(0.01,0.0,0);\n\t\t\tif (command==KeyEvent.VK_K)\n\t\t\t\tvobject[0].rotate(-0.01,0,0);\n\t\t\tif (command==KeyEvent.VK_U)\n\t\t\t\tvobject[0].rotate(0,0.00,-0.01);\n\t\t\tif (command==KeyEvent.VK_O)\n\t\t\t\tvobject[0].rotate(0.0,0,0.01);\n\n\t\t\tif (command==KeyEvent.VK_1) \n\t\t\t{scene.dot_field= !scene.dot_field;}\n\t\t\tif (command==KeyEvent.VK_2)\n\t\t\t{scene.wireframe= !scene.wireframe;}\n\t\t\tif (command==KeyEvent.VK_3)\n\t\t\t{scene.solid_poly= !scene.solid_poly;}\n\t\t\tif (command==KeyEvent.VK_4)\n\t\t\t{scene.hidden_face= !scene.hidden_face;}\n\t\t\tif (command==KeyEvent.VK_5)\n\t\t\t{scene.simple_shaded= !scene.simple_shaded;}\n\t\t\tif (command==KeyEvent.VK_6)\n\t\t\t{scene.z_sorted= !scene.z_sorted;}\n\t\t\tif (command==KeyEvent.VK_7)\n\t\t\t{scene.gouraud_shaded= !scene.gouraud_shaded;}\n\t\t\tif (command==KeyEvent.VK_8)\n\t\t\t{scene.fullstats= !scene.fullstats;}\n\n\t\t\tif (command==KeyEvent.VK_0 && scene.ready)\n\t\t\t{worldgrid.diamondSquare(1,roughness,1); \n\t\t\t}\n\n\t\t\tif (command==KeyEvent.VK_9) \n\t\t\t{scene.surface= !scene.surface;}\n\n\t\t\tif (command==KeyEvent.VK_P && scene.ready) {\n\t\t\t\t//Planet myplanet=new Planet(60);\n\t\t\t\tmyplanet.Iterate(0.1,1,1);\n\t\t\t\t//myplanet.scale(2000);\n\t\t\t\tvobject[0]=myplanet;\n\t\t\t}\n\n\t\t\tcommand=0;\n\t\t}\n\n\t\t// generic\n\n\t\tif (!scene.surface) {\t\n\t\t\tif (!scene.test) {\n\t\t\t\tvobject[0].rotate(0.000,0.002,0.000);\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvobject[0].rotate(0.008,0.005,0.01);\n\t\t\t}\n\t\t}\n\n\n\t\n\t\tif ((first_time) && (scene.surface)) {foreThoughtThread.start(); first_time=false; }\n\t\tupdateLighting();\n\t\treturn tick_time_seconds;\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n //erwanGLRenderer.startRotating(x,y);\n break;\n case MotionEvent.ACTION_UP:\n //erwanGLRenderer.stopRotating();\n break;\n case MotionEvent.ACTION_MOVE:\n //erwanGLRenderer.updateRotation(x,y);\n break;\n }\n return true;\n }", "public static void main( String args[] )\n {\n JFrame f = new JFrame(\"Test for AltAzController\");\n f.setBounds(0,0,200,200);\n AltAzController controller = new AltAzController();\n// controller.setVirtualScreenSize( 2, 2 );\n f.getContentPane().add( controller );\n f.setVisible( true );\n\n\n JFrame window = new JFrame(\"Test for AltAzController\");\n window.setBounds(20,20,500,500);\n ThreeD_JPanel test = new ThreeD_JPanel();\n window.getContentPane().add( test );\n window.setVisible( true );\n\n controller.addControlledPanel( test );\n IThreeD_Object objs[] = new IThreeD_Object[6];\n Vector3D pts[] = new Vector3D[6];\n pts[0] = new Vector3D( -1, 1, 0 );\n pts[1] = new Vector3D( 1, 1, 0 );\n pts[2] = new Vector3D( 1, 1, 1 );\n pts[3] = new Vector3D( 1, 1, 0 );\n pts[4] = new Vector3D( 1, -1, 0 );\n pts[5] = new Vector3D( -1, -1, 0 );\n objs[0] = new Polyline( pts, Color.CYAN );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 1, 0, 0 );\n objs[1] = new Polyline( pts, Color.RED );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 0, 1, 0 );\n objs[2] = new Polyline( pts, Color.GREEN );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 0, 0, 1 );\n objs[3] = new Polyline( pts, Color.BLUE );\n\n Vector3D center = new Vector3D( -1, -1, 1 );\n Vector3D x_vec = new Vector3D( -1, 1, 0 );\n Vector3D y_vec = new Vector3D( 0, 0, 1 );\n float width = 3;\n float height = 2;\n Color[][] colors = { { Color.RED, Color.GREEN, Color.BLUE },\n { Color.YELLOW, Color.CYAN, Color.MAGENTA },\n { Color.ORANGE, Color.GRAY, Color.WHITE } };\n\n ImageRectangle1 im_rect = new ImageRectangle1( center,\n x_vec,\n y_vec,\n width,\n height,\n colors );\n objs[4] = im_rect;\n\n\n center = new Vector3D( 1, 1, 1 );\n y_vec = new Vector3D( 1, 1, 0 );\n x_vec = new Vector3D( 1, -1, 0 );\n width = 2;\n height = 4;\n Color[][] colors_2 = { { Color.RED, Color.GREEN, Color.BLUE },\n { Color.YELLOW, Color.CYAN, Color.MAGENTA } };\n\n ImageRectangle1 im_rect_2 = new ImageRectangle1( center,\n x_vec,\n y_vec,\n width,\n height,\n colors_2 );\n objs[5] = im_rect_2;\n\n\n test.setObjects( \"SAMPLE_OBJECTS\", objs );\n\n controller.apply( true );\n }", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n // Initialize drag gesture.\n previousTouchPointPx.set(event.getX(), event.getY());\n return true;\n case MotionEvent.ACTION_MOVE:\n // Calculate the touch delta in screen space.\n float touchX = (event.getX() - previousTouchPointPx.x) / PX_PER_DEGREES;\n float touchY = (event.getY() - previousTouchPointPx.y) / PX_PER_DEGREES;\n previousTouchPointPx.set(event.getX(), event.getY());\n\n float r = roll; // Copy volatile state.\n float cr = (float) Math.cos(r);\n float sr = (float) Math.sin(r);\n // To convert from screen space to the 3D space, we need to adjust the drag vector based\n // on the roll of the phone. This is standard rotationMatrix(roll) * vector math but has\n // an inverted y-axis due to the screen-space coordinates vs GL coordinates.\n // Handle yaw.\n accumulatedTouchOffsetDegrees.x -= cr * touchX - sr * touchY;\n // Handle pitch and limit it to 45 degrees.\n accumulatedTouchOffsetDegrees.y += sr * touchX + cr * touchY;\n accumulatedTouchOffsetDegrees.y =\n Math.max(-MAX_PITCH_DEGREES,\n Math.min(MAX_PITCH_DEGREES, accumulatedTouchOffsetDegrees.y));\n\n renderer.setPitchOffset(accumulatedTouchOffsetDegrees.y);\n renderer.setYawOffset(accumulatedTouchOffsetDegrees.x);\n return true;\n default:\n return false;\n }\n }", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_MOVE:\n\n float dx = x - previousX;\n float dy = y - previousY;\n\n // reverse direction of rotation above the mid-line\n if (y > getHeight() / 2) {\n dx = dx * -1 ;\n }\n\n // reverse direction of rotation to left of the mid-line\n if (x < getWidth() / 2) {\n dy = dy * -1 ;\n }\n\n mTestGLRender.setAngle(\n mTestGLRender.getAngle() +\n ((dx + dy) * TOUCH_SCALE_FACTOR));\n requestRender();\n }\n\n previousX = x;\n previousY = y;\n return true;\n }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n Note nd = new Note(n.getPitchLetter(), n.getOctave(), fromTheLeft, fromTheLeft);\n Note noteToBeSelected = this.model.getOverlappedNote(nd);\n this.model.setSelectedNote(noteToBeSelected);\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n }", "public abstract Transformation updateTransform(Rectangle selectionBox);", "private static void norm3JS() {\n\n // Drive\n axLeftX.setAxis(leftJoystick, 0); //Mecanum (Arcade) Left/Right turn\n axLeftY.setAxis(leftJoystick, 1); //Mecanum (Arcade) Fwd/Bkwd\n axRightX.setAxis(rightJoystick, 0); //Mecanum Rotate orientation\n axRightY.setAxis(rightJoystick, 1); //unassigned\n\n btnGyroReset.setButton(rightJoystick, 6); // reset gyro to 0\n\n btnHoldLeft.setButton(rightJoystick, 4); //??\n btnHoldCenter.setButton(rightJoystick,3); //??\n btnHoldRight.setButton(rightJoystick, 5); //??\n \n // Gear\n btnPickupGear.setButton(coJoystick, 2); // Pickup gear off floor\n btnPlaceGear.setButton(coJoystick, 5); // Place gear on ship peg\n \n // Shooter\n btnShooter.setButton(coJoystick, 1); // Start shooter then feeder(s)\n btnAgitator.setButton(coJoystick, 3); // Agitate the ball bin\n \n // Climb\n btnClimber.setButton(coJoystick, 8); // Climber rotating\n \n }", "private void rotate(final MouseEvent event) {\r\n\r\n\t\t// reset transform3D\r\n\t\tthis.rotation.rotY(0);\r\n\r\n\t\t// rotate around y-axis\r\n\t\tif (super.x_last - event.getPoint().x > 0) {\r\n\t\t\t// rotate leftwards\r\n\t\t\tthis.rotation.rotY(this.angle);\r\n\t\t} else {\r\n\t\t\t// rotate rightwards\r\n\t\t\tthis.rotation.rotY(-this.angle);\r\n\t\t}\r\n\r\n\t\t// apply rotation\r\n\t\tsuper.transformGroup.getTransform(this.transform);\r\n\t\tthis.transform.mul(this.rotation);\r\n\t\tsuper.transformGroup.setTransform(this.transform);\r\n\t}", "void right() {\n startAnimation(rightSubCubes(), Axis.X, Direction.CLOCKWISE);\n rightCubeSwap();\n }", "private void ControlType3(int time) {\n\t\tgraphic.setDirection(GameEngine.getMouseX(), GameEngine.getMouseY());\n\t\t//set hero facing cursor\n\t\t// distance of two points is square root of (x1-x2)^2 + (y1-y2)^2\n\t\tdistance = (float) Math.sqrt(Math.pow(GameEngine.getMouseX() \n\t\t\t\t- graphic.getX(), 2) + Math.pow(GameEngine.getMouseY() - graphic.getY(), 2));\n\t\tif (distance >= 20) { \n\t\t\t//hero only travels when it is farther than 20 pixels from cursor\n\t\t\tgraphic.setX(graphic.getX() + graphic.getDirectionX() * speed * time);\n\t\t\tgraphic.setY(graphic.getY() + graphic.getDirectionY() * speed * time);\n\t\t}\n\t}", "public void mouseDragged (LayerEvent event) {\r\n \t\t\tif (!isEnabled()) return;\r\n\t\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n \r\n\t\t\tif (_rubberBand == null) {\r\n\t \t// This should never happen, but it does.\r\n\t \treturn;\r\n\t\t\t\t}\r\n \r\n\t\t\tif (_zoomInFilter.accept(event) || _zoomOutFilter.accept(event)) {\r\n\t\t\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t \t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\t\r\n\t\t\t// Figure out the coordinates of the rubber band\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t double useXPos = event.getLayerX();\r\n\t\t double useYPos = event.getLayerY();\r\n\t\t \r\n\t\t\t// space held down translates\r\n\t\t\t// rubberband _originX, _originY by event-prev\r\n\t\t\tif (((TrekCanvas)trekPane.getCanvas()).isSpaceDown()) {\r\n\t\t\t\t_originX += (useXPos - prevX);\r\n\t\t\t\t_originY += (useYPos - prevY);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tprevX = event.getLayerX();\r\n\t\t\tprevY = event.getLayerY();\r\n\t\t\t\r\n\t\t // Without control down rubberband conforms to visible aspect ratio\r\n\t\t if (!((TrekCanvas)trekPane.getCanvas()).isControlDown()) {\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble currAspect = visSize.getHeight()/visSize.getWidth();\r\n\t\t\t\tif (Math.abs(useYPos - _originY) > Math.abs(useXPos - _originX)) {\r\n\t\t\t\t\tuseXPos = _originX + (useXPos < _originX ? -1.0 : 1.0)*Math.abs((useYPos - _originY)/currAspect);\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuseYPos = _originY + (useYPos < _originY ? -1.0 : 1.0)*Math.abs((useXPos - _originX)*currAspect);\r\n\t\t\t\t\t}\r\n\t\t \t}\r\n\t\t \r\n\t\t\tif (event.isAltDown()) {\r\n\t\t\t\t_rubberBand.setFrameFromCenter(_originX, _originY, useXPos, useYPos);\r\n\t\t\t\t}\r\n else {\r\n\t\t\t\t_rubberBand.setFrameFromDiagonal(_originX, _originY, useXPos, useYPos);\r\n \t}\r\n \t\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t\t// Could possibly do some custom drawing showing an in or out zoom\r\n\t\t\tif (_isZoomingIn) {\r\n } \r\n else {\r\n }\r\n \r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t\t\tevent.consume();\r\n\t\t\t}\r\n\t}", "public void onLeftPressed(){\n player.setRotation(player.getRotation()-3);\n\n }", "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n Vector3 coord = new Vector3(screenX,screenY,0);\n\n\n gameRenderer.getCamera2D().unproject(coord);\n Circle press = new Circle(coord.x,coord.y, Controls.SIZE/4);\n\n if (Intersector.overlaps(press, Radar.size_radar)){\n if (!Radar.isMinimize())\n Radar.setMinimize(true);\n }\n if (Intersector.overlaps(press, Radar.size_radar_minimized)){\n if (Radar.isMinimize())\n Radar.setMinimize(false);\n }\n\n\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.ACCELERATE))){\n gameController.pressKey(GameController.Keys.ACCELERATE);\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.BRAKE))){\n gameController.pressKey(GameController.Keys.BRAKE);\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.FIRE))){\n gameController.pressKey(GameController.Keys.FIRE);\n }\n\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.LEFT))){\n gameController.pressKey(GameController.Keys.TURN_LEFT);\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.RIGHT))){\n gameController.pressKey(GameController.Keys.TURN_RIGHT);\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.UP))){\n gameController.pressKey(GameController.Keys.UP);\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.DOWN))){\n gameController.pressKey(GameController.Keys.DOWN);\n }\n\n return false;\n }", "public void mousePressed() //transport mode selected\n{\n if (mouseButton == LEFT)\n {\n if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65 && mouseY <= ly+65+bl)\n {\n tm[0] =! tm[0];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+2*bl && mouseY <= ly+65+3*bl)\n { \n tm[1] =! tm[1];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+4*bl && mouseY <= ly+65+5*bl)\n {\n tm[2] =! tm[2];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+6*bl && mouseY <= ly+65+7*bl)\n {\n tm[3] =! tm[3];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+8*bl && mouseY <= ly+65+9*bl)\n {\n tm[4] =! tm[4];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+10*bl && mouseY <= ly+65+11*bl)\n {\n tm[5] =! tm[5];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+12*bl && mouseY <= ly+65+13*bl)\n {\n tm[6] =! tm[6];\n }\n }\n}", "public void leftRegionSelections() {\n\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_lf_on);\n\n/**\n **changing position image sources as selected reion positins to selected backrounds\n **adjacent to half selected and\n **far positons to empty backgrounds to position buttons\n **/\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_selected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_selected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_selected);\n\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_unselected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_unselected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_unselected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_half_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_half_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_half_selected);\n\n if (lfTextView.isSelected()) {\n lfTextView.setSelected(true);\n } else if (threeBTextView.isSelected()) {\n threeBTextView.setSelected(true);\n } else if (ssTextView.isSelected()) {\n ssTextView.setSelected(true);\n }\n\n rfTextView.setSelected(false);\n twoBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n cfTextView.setSelected(false);\n pTextView.setSelected(false);\n cTextView.setSelected(false);\n\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n rightFieldpoints.setText(\"+5\");\n leftFieldPoints.setText(\"+20\");\n centerFieldPoints.setText(\"+10\");\n\n rightFieldpoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#ffffff\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n }", "@Override\n public void mouseUp(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }", "@Override\n public void update() {\n if (changedState) {\n selectedPosY = selection * hItemBox + yPos + hItemBox;\n selectedPosX = xPos; \n changedState = false;\n }\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\tif ((arg0.isAltDown() && SwingUtilities.isLeftMouseButton(arg0)) || (arg0.isAltDown() && SwingUtilities.isRightMouseButton(arg0)) ) {\n\t\t\t//updatePlayerMousePos(arg0);\n\t\t\ttranslateBoard(arg0);\n\t\t\tboardTranslation = true;\n\t\t} else {\n\t\t\tif (player != null) {\n\t\t\t\tupdatePlayerMousePos(arg0);\n\t\t\t\tif (!player.visitor) {\n\t\t\t\t\tObjectFunctions.getOwnedStack(gameInstance, player, ial);\n\t\t\t\t\tStringBuilder strB = new StringBuilder();\n\t\t\t\t\tStringUtils.toString(ial, ' ', strB).append(' ');\n\t\t\t\t\toutText = strB.toString();\n\t\t\t\t\tif (!isSelectStarted) {\n\t\t\t\t\t\tObjectFunctions.getSelectedObjects(gameInstance, player, ial);\n\t\t\t\t\t\tMoveFunctions.dragObjects(this, gameInstance, player, arg0, ial, objOrigPosX, objOrigPosY, mousePressedGamePos, mouseBoardPos, mouseWheelValue);\n\t\t\t\t\t\t/*Handle all drags of Token Objects*/\n\t\t\t\t\t\tif (this.privateArea.containsScreenCoordinates(mouseScreenX, mouseScreenY)) {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = this.privateArea.getInsertPosition(mouseScreenX, mouseScreenY);\n\t\t\t\t\t\t\toutText = \"Position:\" + this.privateArea.currentDragPosition;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (hoveredObject == null && !SwingUtilities.isMiddleMouseButton(arg0) && !(SwingUtilities.isLeftMouseButton(arg0) && arg0.isShiftDown()) && !mouseInPrivateArea) {\n\t\t\t\t\t\t\tselectWidth = mouseScreenX - beginSelectPosScreenX;\n\t\t\t\t\t\t\tselectHeight = mouseScreenY - beginSelectPosScreenY;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trepaint();\n\t}", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setPosition(Mouse.worldCoordinates.copy());//.sub(SelectionTypeState.mouseClickWorldPosition).add(SelectionTypeState.colliderPositions.get(cnt)));\n\t\t\t}\n\t\t}", "@FXML\n private void mouseDrag(MouseEvent event) {\n dragging = true;\n double tempX = event.getX();\n double tempY = event.getY();\n dragOffsetX = (preDragX - tempX) / 2;\n dragOffsetY = (preDragY - tempY) / 2;\n drawUniverse();\n }", "@Override\n public void keyPressed(KeyEvent e) {\n int code = e.getKeyCode();\n if ((e.getModifiers() & KeyEvent.CTRL_MASK) != 0) {\n switch (code) {\n case KeyEvent.VK_V: // Ctrl-v or Ctrl-V\n System.out.println(\"-- CTRL-V\" );\n paste_image();\n viewer.repaint(); \n break;\n case KeyEvent.VK_I: // Ctrl-i or Ctrl-I\n viewer.BGImageInvert();\n break;\n case KeyEvent.VK_ADD:\n case KeyEvent.VK_PLUS: // Ctrl-+\n case KeyEvent.VK_PAGE_UP:\n viewer.BGImageContrastInc();\n break;\n case KeyEvent.VK_SUBTRACT:\n case KeyEvent.VK_MINUS: // Ctrl--\n case KeyEvent.VK_PAGE_DOWN:\n viewer.BGImageContrastDec();\n break;\n case KeyEvent.VK_HOME:\n viewer.BGImageBrighten();\n break;\n case KeyEvent.VK_END:\n viewer.BGImageDarken();\n break;\n default:\n }\n } else if ((e.getModifiers() & KeyEvent.SHIFT_MASK) != 0) {\n } else {\n switch (code) {\n case KeyEvent.VK_T: // top view\n mesh_z_angle = 0;\n mesh_x_angle = -90;\n perspective = false;\n viewer.repaint();\n break;\n case KeyEvent.VK_F: // front view\n mesh_z_angle = -90;\n mesh_x_angle = 0;\n perspective = false;\n viewer.repaint();\n break;\n case KeyEvent.VK_S: // side view\n mesh_z_angle = 0;\n mesh_x_angle = 0;\n perspective = false;\n viewer.repaint();\n break;\n case KeyEvent.VK_SPACE: // toggle edit mode\n if (mesh_edit_mode) {\n // dump part chords spec\n // String spec = current_part.name + \":\" + current_part.make_spec();\n // System.out.println(spec);\n }\n mesh_edit_mode = !mesh_edit_mode;\n break;\n case KeyEvent.VK_UP:\n case KeyEvent.VK_A: // so the left hand can press it\n mesh_edit_mode = true;\n mesh_active_chord++;\n mesh_active_chord %= current_part.mesh_LE.length;\n // handle up \n break;\n case KeyEvent.VK_DOWN:\n case KeyEvent.VK_Z: // so the left hand can press it\n mesh_edit_mode = true;\n mesh_active_chord += current_part.mesh_LE.length-1;\n mesh_active_chord %= current_part.mesh_LE.length;\n // handle down \n break;\n case KeyEvent.VK_LEFT:\n break;\n case KeyEvent.VK_RIGHT :\n break;\n default:\n }\n }\n }", "private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tint pix, frameNum, keyFrameIndex;\n\t\t\t\tSystem.out.println(\"x: \" + e.getX() + \" y: \" + e.getY());\n\t\t\t\tfastForward = true;\n\t\t\t\tif (zoom_count == 0) {\n\t\t\t\t\tpix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 1) {\n\t\t\t\t\tpix = zoom1IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 2) {\n\t\t\t\t\tpix = zoom2IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t}\n\n\t\t\t\tif (currFrame > 40) {\n\t\t\t\t\tcurrFrame -= 40;\n\t\t\t\t}\n\t\t\t\tisAlreadyPlaying = false;\n\n\t\t\t\tvideoThread.interrupt();\n\t\t\t\tsoundThread.interrupt();\n\t\t\t\tplaySound.pause();\n\t\t\t\ttry {\n\t\t\t\t\tvideoThread.sleep(10);\n\t\t\t\t\tsoundThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsoundThread = null;\n\t\t\t\tvideoThread = null;\n\t\t\t\tplaySound.jump(currFrame);\n\n\t\t\t\tplayback();\n\n\t\t\t}\n\t\t\t}", "@Override\n public boolean touchUp(int screenX, int screenY, int pointer, int button) {\n Vector3 coord = new Vector3(screenX,screenY,0);\n gameRenderer.getCamera2D().unproject(coord);\n Circle press = new Circle(coord.x,coord.y, Controls.SIZE/4);\n boolean enter=false;\n\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.ACCELERATE))){\n gameController.releaseKey(GameController.Keys.ACCELERATE);\n enter=true;\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.BRAKE))){\n gameController.releaseKey(GameController.Keys.BRAKE);\n enter=true;\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.FIRE))){\n gameController.releaseKey(GameController.Keys.FIRE);\n enter=true;\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.LEFT))){\n gameController.releaseKey(GameController.Keys.TURN_LEFT);\n enter=true;\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.RIGHT))){\n gameController.releaseKey(GameController.Keys.TURN_RIGHT);\n enter=true;\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.UP))){\n gameController.releaseKey(GameController.Keys.UP);\n enter=true;\n }\n if (Intersector.overlaps(press,Controls.size_controls.get(Controls.CONTROLS.DOWN))){\n gameController.releaseKey(GameController.Keys.DOWN);\n enter=true;\n }\n\n if (!enter){\n gameController.releaseKey(GameController.Keys.ACCELERATE);\n gameController.releaseKey(GameController.Keys.BRAKE);\n gameController.releaseKey(GameController.Keys.FIRE);\n gameController.releaseKey(GameController.Keys.TURN_LEFT);\n gameController.releaseKey(GameController.Keys.TURN_RIGHT);\n gameController.releaseKey(GameController.Keys.UP);\n gameController.releaseKey(GameController.Keys.DOWN);\n }\n return false;\n\n\n }", "@Override\n\tpublic void input(float delta) // testing camera\n\t{\n\t\tif(Input.getKey(Input.KEY_LEFT))\n\t\t\tgetTransform().rotate(yAxis, (float)Math.toRadians(-2));\n\t\tif(Input.getKey(Input.KEY_RIGHT))\n\t\t\tgetTransform().rotate(yAxis, (float)Math.toRadians(2));\n\t\t\n\t\t}", "public void keyPressed() {\n if (keyCode == UP) mouseRect += 4;\n if (keyCode == DOWN) mouseRect -= 4; \n}", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox(null);\n\n if (allowCrop)\n getChart().getScene().getGraph().setClipBox(null);\n\n view.setBoundMode(ViewBoundMode.AUTO_FIT);\n\n }\n // Or apply selection to ZOOM\n else {\n BoundingBox3d bounds = view.getBounds().clone();\n\n configureZoomAccordingTo2DView(view, bounds, mouseSelection);\n\n // Reset mouse selection now so that next rendering will hide it from screen\n mouseSelection = new MouseSelection();\n\n // Won't do anything for irrelevant bounds leading to a flat graph\n if (bounds.getXRange().getRange() <= 0 \n || bounds.getYRange().getRange() <= 0\n || bounds.getZRange().getRange() <= 0)\n return;\n\n //System.out.println(\"Will zoom to \" + bounds);\n\n // Crop and zoom\n if (allowCrop) {\n boolean includeLimits = false; // to avoid inacurrate box scale\n getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false);\n }\n view.setBoundsManual(bounds);\n\n\n }\n\n }", "@FXML\n private void mouseDown(MouseEvent event) {\n preDragX = event.getX();\n preDragY = event.getY();\n }", "private void rightBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rightBtnActionPerformed\n if (rotateL == 0) {\n rotateL = 1;\n r.stop();\n l.start();\n } else {\n rotateL = 0;\n l.stop();\n }\n\n }", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n if (e.getAction() == MotionEvent.ACTION_MOVE) {\n dude.SetPosition(x, y);\n }\n// switch (e.getAction()) {\n// case MotionEvent.ACTION_MOVE:\n//\n// float dx = x - mPreviousX;\n// float dy = y - mPreviousY;\n//\n// // reverse direction of rotation above the mid-line\n// if (y > getHeight() / 2) {\n// dx = dx * -1 ;\n// }\n//\n// // reverse direction of rotation to left of the mid-line\n// if (x < getWidth() / 2) {\n// dy = dy * -1 ;\n// }\n//\n// mRenderer.setAngle(\n// mRenderer.getAngle() +\n// ((dx + dy) * TOUCH_SCALE_FACTOR); // = 180.0f / 320\n// requestRender();\n// }\n//\n// mPreviousX = x;\n// mPreviousY = y;\n return true;\n }", "private void enableDrag() {\n final Delta dragDelta = new Delta();\n setOnMousePressed((MouseEvent mouseEvent) -> {\n // record a delta distance for the drag and drop operation.\n if(isDragEnabled) {\n dragDelta.x = getCenterX() - mouseEvent.getX();\n dragDelta.y = getCenterY() - mouseEvent.getY();\n }\n });\n setOnMouseDragged((MouseEvent mouseEvent) -> {\n if(isDragEnabled) {\n double newX = mouseEvent.getX() + dragDelta.x;\n if (newX > 0 && newX < getScene().getWidth()) {\n setCenterX(newX);\n if(this == base)\n startX = getCenterX();\n }\n double newY = mouseEvent.getY() + dragDelta.y;\n if (newY > 0 && newY < getScene().getHeight()) {\n setCenterY(newY);\n if(this == base)\n startY = getCenterY();\n }\n }\n });\n }", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(x-gameObject.getWidth()/2, 0);\n\t\t\t\t}", "boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "@Override\r\n public void handle(long now) {\n\r\n long timepassed = System.currentTimeMillis() - startTime;\r\n long secondspassed = timepassed / 1000;\r\n\r\n // System.out.println(secondspassed);\r\n if (secondspassed > old) {\r\n gameController.timeEdit(-secondspassed + old);\r\n // gameController.setTime(gameController.getTime()-secondspassed+old);\r\n old = secondspassed;\r\n }\r\n timerLabel.setText(\"TIME LEFT: \" + (int) (gameController.getTime()));\r\n secs = (int) secondspassed % 60;\r\n mins = (int) secondspassed / 60;\r\n timeplayedLabel.setText(\"time elapsed: \" + mins + \" : \" + secs);\r\n\r\n\r\n if (myObjects.size() < 1) {\r\n List<ISliceableObject> newMyObjects = gameController.createGameObject(1);\r\n myObjects.addAll(newMyObjects);\r\n\r\n for (ISliceableObject object : myObjects) {\r\n objectsOnScreen.put(object.getImageView(), object);\r\n object.getImageView().setOnMouseMoved(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n if (objectsOnScreen.get(event.getTarget()).isSliced() == false && runFlag == true) {\r\n objectsToSlice.add(objectsOnScreen.get(event.getTarget()));\r\n }\r\n }\r\n });\r\n pane.getChildren().add(object.getImageView());\r\n }\r\n }\r\n gameController.updateObjectsLocations(myObjects, objectsToRemove);\r\n\r\n\r\n slice(objectsToSlice);\r\n objectsToSlice.clear();\r\n myObjects.removeAll(objectsToRemove);\r\n moveOffScreen(objectsToRemove);\r\n objectsToRemove.clear();\r\n if(gameController.getScore()>gameController.getBest())//bisho: real time highest score\r\n bestLabel.setText(\"Highest score: \" + gameController.getScore());\r\n scoreLabel.setText(\"Current Score: \" + gameController.getScore());\r\n livesLabel.setText(\"LIVES: \" + gameController.getLives());\r\n if (gameController.checkGameOver()) {// bisho: gameover check (bool return) and alert box if true\r\n endGame(stage);\r\n }\r\n ///////////////////////////////////////////////////////////////////////////////\r\n\r\n }", "void update(float speed, Point mousePoint) {\r\n\t\tz[1] = z[0];\r\n\t\tz[0] -= speed;\r\n\t\t\r\n\t\t// if the star moved past the screen, re-initialize it\r\n\t\tif (z[0] < 0)\r\n\t\t\tinit();\r\n\t\t\r\n\t\tselectionBox = makeSelectionBox();\r\n\t\tselected = selectionBox.contains(mousePoint);\r\n\t}", "private void moveablePane(){\n dragPane.setOnMousePressed(pressEvent -> dragPane.setOnMouseDragged(dragEvent -> {\n Stage stage = (Stage) minimizeButton.getScene().getWindow();\n stage.setX(dragEvent.getScreenX() - pressEvent.getSceneX());\n stage.setY(dragEvent.getScreenY() - pressEvent.getSceneY());\n }));\n }", "public void convert( int x, int y, Vector2f store ) {\n if ( lastXin == x && lastYin == y ) {\n store.x = lastXout;\n store.y = lastYout;\n }\n else {\n lastXin = x;\n lastYin = y;\n if ( getRenderQueueMode() == Renderer.QUEUE_ORTHO ) {\n //TODO: occlusion by other quads (JMEFrames)\n x = (int) ( x - getWorldTranslation().x + desktopWidth / 2 );\n y = (int) ( desktopHeight / 2 - ( y - getWorldTranslation().y ) );\n }\n else {\n store.set( x, y );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0, pickRay.origin );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0.3f, pickRay.direction ).subtractLocal( pickRay.origin ).normalizeLocal();\n\n applyWorld( bottomLeft.set( -width * 0.5f, -height * 0.5f, 0 ) );\n applyWorld( topLeft.set( -width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( topRight.set( width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( bottomRight.set( width * 0.5f, -height * 0.5f, 0 ) );\n\n if ( pickRay.intersectWherePlanarQuad( topLeft, topRight, bottomLeft, tuv ) ) {\n x = (int) ( ( tuv.y - 0.5f ) * width ) + desktopWidth / 2;\n y = (int) ( ( tuv.z - 0.5f ) * height ) + desktopHeight / 2;\n }\n else {\n x = -1;\n y = -1;\n }\n }\n lastYout = y;\n lastXout = x;\n\n store.set( x, y );\n }\n }", "public void centerRegionSelections() {\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_cf_on);\n\n/**\n **changing position image sources as selected reion positins to selected backrounds\n **adjacent to half selected and\n **far positons to empty backgrounds to position buttons\n **/\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_half_selected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_half_selected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_half_selected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_selected);\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_half_selected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_half_selected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_half_selected);\n\n\n if (cfTextView.isSelected()) {\n cfTextView.setSelected(true);\n } else if (pTextView.isSelected()) {\n pTextView.setSelected(true);\n } else if (cTextView.isSelected()) {\n cTextView.setSelected(true);\n }\n\n\n rfTextView.setSelected(false);\n twoBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n lfTextView.setSelected(false);\n ssTextView.setSelected(false);\n threeBTextView.setSelected(false);\n\n\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n\n rightFieldpoints.setText(\"+10\");\n leftFieldPoints.setText(\"+10\");\n centerFieldPoints.setText(\"+20\");\n\n rightFieldpoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#ffffff\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n\n }", "void rightInv() {\n startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n rightCubeSwap();\n rightCubeSwap();\n rightCubeSwap();\n }", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(x-gameObject.getWidth()/2, y-gameObject.getHeight()/2);\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tGameManager.frame.switchScene(new HardOrEz());\n\n\t\t\t}", "private void draggedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Rebuild the selected area */\r\n if (selectTool.isMultiple()) {\r\n selectTool.setSeccondPoint(e.getPoint());\r\n } else if (ctrlPressed == false) {\r\n /* Nodes (Resize & Move) */\r\n try {\r\n /* Resize the selected node (throw NullPointerException) */\r\n if (graphX.isOneNodeSelected() && graphX.getSelectedNode().isResize()) {\r\n graphX.getSelectedNode().computeRectangleDimension(e.getPoint());\r\n }\r\n /* Move the selected nodes */\r\n else {\r\n if (moveingGraph) {\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n graphX.nodeAt(i).computeRectanglePosition(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).computePositions(e.getPoint());\r\n }\r\n }\r\n graphX.computeDimension();\r\n }\r\n dragMultiple = true;\r\n }\r\n } catch (NullPointerException e1) {\r\n }\r\n\r\n /* Move an edge */\r\n EdgeX edgeX = graphX.getSelectedEdge();\r\n\r\n /* Move a split point */\r\n if (!ctrlPressed) {\r\n if (this.getCursor().equals(GraphBuilder.move)) {\r\n edgeX.changeSplitPoint(e.getPoint());\r\n }\r\n }\r\n\r\n boolean move = false;\r\n try {\r\n move = graphX.getWays().getState();\r\n } catch (NullPointerException e1) {\r\n }\r\n if (edgeX != null && move == false) {\r\n if (edgeX.isMoving() == false && moveingGraph == false) {\r\n edgeX.setMoveState(true);\r\n edgeX.setPointToMove(e.getPoint());\r\n }\r\n edgeX.setPoint(e.getPoint());\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n }\r\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "public void panView() {\n double xDistance = currentXOffset - targetXOffset;\n double yDistance = currentYOffset - targetYOffset;\n\n xDistance *= -0.5;\n yDistance *= -0.5;\n\n boolean clearX = Math.abs(xDistance) < 2;\n if (clearX) {\n currentXOffset = targetXOffset;\n } else {\n currentXOffset += xDistance;\n }\n\n boolean clearY = Math.abs(xDistance) < 2;\n if (clearY) {\n currentYOffset = targetYOffset;\n } else {\n currentYOffset += yDistance;\n }\n\n doPan = !clearX || !clearY;\n\n gameChanged = true;\n\n }", "public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) \n\t{\n\t\tsuper.mouseDragged(e);\n\n\t\tthis.model.setPosition(e.getX()/2, e.getY()/2);\t//TODO: Important: test this! is it always /2 ? \n\t}", "public void mouseDragged(MouseEvent e){\n\t\t\tt.rotateStick(e.getX(), e.getY());\n\t\t\tmx = e.getX();\n\t\t\tmy = e.getY();\n\t\t\trepaint();\n\t\t}", "public void mouseDragged(MouseEvent e) {\n\t\tif(currentShape != null){\n\t\t\tif(e.getModifiers() == MouseEvent.BUTTON1_MASK) {\n\t\t\t\tcurrentShape.setOrigin(e.getPoint());\n\t\t\t\tdrawing.repaint();\n\t\t\t} else {\n\t\t\t\tif(e.getModifiers() == MouseEvent.BUTTON3_MASK) {\n\t\t\t\t\tfor(Shape s : drawing.groupedShapes){\n\t\t\t\t\t\tif(s.isOn(e.getPoint())){\n\t\t\t\t\t\t\tfor(Shape sh : drawing.groupedShapes){\n\t\t\t\t\t\t\t\t//int px = (int) e.getPoint().getX();\n\t\t\t\t\t\t\t\t//int py = (int) e.getPoint().getY();\n\t\t\t\t\t\t\t\t//int sx = (int) sh.getOrigin().getX();\n\t\t\t\t\t\t\t\t//int sy = (int) sh.getOrigin().getY();\n\t\t\t\t\t\t\t\tPoint p = new Point(e.getPoint());\n\t\t\t\t\t\t\t\tsh.setOrigin(p);\n\t\t\t\t\t\t\t\tdrawing.repaint();\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}", "public void refresh() {\n\t\t\tif(keys[KeyEvent.VK_RIGHT]){//if it is to the right, the sliderVX is 1\n\t\t\t\tsliderVX = 1;\n\t\t\t\t//System.out.println(\"Called\");\n\t\t\t}\n\t\t\telse if(keys[KeyEvent.VK_LEFT]){//if it moves to the left, it is -1\n\t\t\t\tsliderVX =- 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsliderVX = 0;//not moving = 0\n\t\t\t}\n\t\t\t\n\t\t}", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\tcanvas.dispose();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t\tClassicView view = new ClassicView(mainFrame);\n\t\t\t\t\tmainFrame.setView(view);\n\t\t\t\t\t\n\t\t\t\t\tgame = new ClassicGame(view);\n\t\t\t\t\tgameThread = new Thread(game);\n\t\t\t\t\tview.setGameThread(gameThread);\n\t\t\t\t\tview.setGame(game);\n\t\t\t\t\tgameThread.start();\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\tcanvas.dispose();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t\tClassicView view = new TimeView(mainFrame);\n\t\t\t\t\tmainFrame.setView(view);\n\t\t\t\t\t\n\t\t\t\t\tgame = new TimeGame(view);\n\t\t\t\t\tgameThread = new Thread(game);\n\t\t\t\t\tview.setGameThread(gameThread);\n\t\t\t\t\tview.setGame(game);\n\t\t\t\t\tgameThread.start();\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t}\n\t\t\t}", "@Override\n public void handle(KeyEvent event){\n if(event.getCode() == KeyCode.RIGHT){\n angleY+= 10;\n pane.rotateY(angleY);\n }\n else if(event.getCode() == KeyCode.LEFT){\n angleY-= 10;\n pane.rotateY(angleY);\n }\n else if(event.getCode() == KeyCode.UP){\n angleX+= 10;\n pane.rotateX(angleX);\n }\n else if(event.getCode() == KeyCode.DOWN){\n angleX-= 10;\n pane.rotateX(angleX);\n }\n else if(event.getCode() == KeyCode.Q){\n angleZ+= 10;\n pane.rotateZ(angleZ);\n }\n else if(event.getCode() == KeyCode.W){\n angleZ-= 10;\n pane.rotateZ(angleZ);\n }\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}", "public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }", "private void createSelectedScene(Group globalRoot, Group root3D){\n String selectedRunway = appView.getSelectedRunway();\n Point pos = controller.getRunwayPos(selectedRunway);\n\n //Draw the runway name for all runways including the selected runway, but not the sibling runway.\n for(String runwayId: controller.getRunways()){\n if(!runwayId.equals(controller.getSiblingLogicalRunway(selectedRunway))){\n genRunwayName(root3D, runwayId, runwayElevation);\n }\n }\n\n generateRunways(root3D);\n genDisplacedThreshold(root3D, selectedRunway, runwayElevation);\n generateParameters(root3D, selectedRunway);\n genLandingDirection(root3D, selectedRunway,runwayElevation);\n\n generateLighting(root3D);\n pointCameraAt(new Point3D(pos.x,0, -pos.y),root3D);\n\n generateOverlay(globalRoot, root3D);\n }", "void onMouseScrolled(int rotation);", "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\n public void start(Stage stage) {\n rubik=new Rubik();\n // create toolbars\n ToolBar tbTop=new ToolBar(new Button(\"U\"),new Button(\"Ui\"),new Button(\"F\"),\n new Button(\"Fi\"),new Separator(),new Button(\"Y\"),\n new Button(\"Yi\"),new Button(\"Z\"),new Button(\"Zi\"));\n // tbTop.setStyle(\"-fx-background-color: rgb(225, 230, 242);\");\n pane.setTop(tbTop);\n ToolBar tbBottom=new ToolBar(new Button(\"B\"),new Button(\"Bi\"),new Button(\"D\"),\n new Button(\"Di\"),new Button(\"E\"),new Button(\"Ei\"));\n pane.setBottom(tbBottom);\n ToolBar tbRight=new ToolBar(new Button(\"R\"),new Button(\"Ri\"),new Separator(),\n new Button(\"X\"),new Button(\"Xi\"));\n tbRight.setOrientation(Orientation.VERTICAL);\n pane.setRight(tbRight);\n ToolBar tbLeft=new ToolBar(new Button(\"L\"),new Button(\"Li\"),new Button(\"M\"),\n new Button(\"Mi\"),new Button(\"S\"),new Button(\"Si\"));\n tbLeft.setOrientation(Orientation.VERTICAL);\n pane.setLeft(tbLeft);\n \n pane.setCenter(rubik.getSubScene());\n \n pane.getChildren().stream()\n .filter(n -> (n instanceof ToolBar))\n .forEach(tb->{\n ((ToolBar)tb).getItems().stream()\n .filter(n -> (n instanceof Button))\n .forEach(n->((Button)n).setOnAction(e->rubik.rotateFace(((Button)n).getText())));\n });\n rubik.isOnRotation().addListener((ov,b,b1)->{\n pane.getChildren().stream()\n .filter(n -> (n instanceof ToolBar))\n .forEach(tb->tb.setDisable(b1));\n });\n final Scene scene = new Scene(pane, 880, 680, true);\n scene.setFill(Color.WHITE);\n stage.setTitle(\"Rubik's Cube - JavaFX 3D\");\n stage.setScene(scene);\n stage.show();\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//inverted.invert();\n\t\t\t\t\t//Point2D point = inverted.transform(new Point2D.Double(e.getX(), e.getY()), null);\n\t\t\t\t\t//inverted.setToTranslation((double)e.getX(), (double)e.getY());\n\t\t\t\t\tPoint2D p = transform.inverseTransform(new Point2D.Double(e.getX() - panOrigin.getX(), e.getY() - panOrigin.getY()), null);\n\t\t\t\t\ttransform.translate(p.getX(), p.getY());\n\t\t\t\t\trevalidate();\n\t\t\t\t\trepaint();\n\t\t\t\t\tpanOrigin.setLocation(e.getX(), e.getY());\n\t\t\t\t\tSystem.out.printf(\"%f, %f\\n\", p.getX(), p.getY());\n\t\t\t\t} catch (NoninvertibleTransformException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void target()\n {\n if(noRotation == false)\n {\n if(timer % 3 == 0)\n {\n int currentRotation = getRotation();\n turnTowards(xMouse, yMouse);\n int newRotation = getRotation();\n if (Math.abs(currentRotation-newRotation) > 180)\n {\n if (currentRotation < 180) currentRotation += 360;\n else newRotation += 360;\n }\n if(currentRotation != newRotation)\n { \n setRotation(currentRotation+direction()*8);\n }\n }\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}", "private void leftBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_leftBtnActionPerformed\n if (rotateR == 0) {\n rotateR = 1;\n\n l.stop();\n r.start();\n } else {\n rotateR = 0;\n r.stop();\n }\n }", "private void ControlType2(int time) {\n\t\tif (GameEngine.isKeyHeld(\"D\")) {\n\t\t\tgraphic.setX(graphic.getX() + speed * time);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"A\")) {\n\t\t\tgraphic.setX(graphic.getX() - speed * time);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"S\")) {\n\t\t\tgraphic.setY(graphic.getY() + speed * time);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"W\")) {\n\t\t\tgraphic.setY(graphic.getY() - speed * time);\n\t\t}\n\t\tgraphic.setDirection(GameEngine.getMouseX(), GameEngine.getMouseY());\n\t\t//set hero facing cursor\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif (i >= size)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"insertion sort terminated\");\n\t\t\t\t\ttimer.stop();\n\t\t\t\t\tbox.setColorRange(0, box.getNumber() - 1, END_COLOR);\n\t\t\t\t\tpaintBox();\n\t\t\t\t}\n\t\t\t\t// Step one find a suitable index where to place the current rectangle\n\t\t\t\telse if (codeFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tRectangle currRect = box.getRectangle(i);\n\t\t\t\t\tcurrRect.setColor(FOCUS_COLOR1);\n\t\t\t\t\tRectangle scanRect;\n\t\t\t\t\tfor (k = i - 1; k >= 0; k--)\n\t\t\t\t\t{\n\t\t\t\t\t\tscanRect = box.getRectangle(k);\n\t\t\t\t\t\tscanRect.setColor(FOCUS_COLOR2);\n\t\t\t\t\t\tif (scanRect.getData() > currRect.getData())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// getting the index of first rectangle to move to the left\n\t\t\t\t\tindex = i - 1;\n\t\t\t\t\tcodeFlag = 0;\n\t\t\t\t\tdownFlag = 1;\n\t\t\t\t\tcurrentDownCount = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//moving the current rectangle down\n\t\t\t\telse if (downFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(i, 0, YCHANGE);\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tcurrentDownCount += YCHANGE;\n\t\t\t\t\tif (currentDownCount >= DOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = currentDownCount - DOWN;\n\t\t\t\t\t\tbox.addOffsetRectangle(i, 0, -excess);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tdownFlag = 0;\n\t\t\t\t\t\trightBlockFlag = 1;\n\t\t\t\t\t\tindexRightCount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving the block of rectangle to the left\n\t\t\t\telse if (rightBlockFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tif (index <= k)\n\t\t\t\t\t{\n\t\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\t\tleftFlag = 1;\n\t\t\t\t\t\tcurrentLeftCount = 0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\trightFlag = 1;\n\t\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\t\tindexRightCount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving each rectangle of the block to the right\n\t\t\t\telse if (rightFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(index, XCHANGE, 0);\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tindexRightCount += XCHANGE;\n\t\t\t\t\t\n\t\t\t\t\tif (indexRightCount >= width)\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = indexRightCount - width;\n\t\t\t\t\t\tbox.addOffsetRectangle(index, -excess, 0);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\trightFlag = 0;\n\t\t\t\t\t\trightBlockFlag = 1;\n\t\t\t\t\t\tindex--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving the current rectangle to the left\n\t\t\t\telse if (leftFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(i, -XCHANGE, 0);\n\t\t\t\t\tcurrentLeftCount += XCHANGE;\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tif (currentLeftCount >= width * (i - 1 - k))\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = currentLeftCount - width * (i - 1 - k);\n\t\t\t\t\t\tbox.addOffsetRectangle(i, excess, 0);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tleftFlag = 0;\n\t\t\t\t\t\tupFlag = 1;\n\t\t\t\t\t\tcurrentUpCount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving the current rectangle up\n\t\t\t\telse if (upFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(i, 0, -YCHANGE);\n\t\t\t\t\tcurrentUpCount += YCHANGE;\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tif (currentUpCount >= DOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = currentUpCount - DOWN;\n\t\t\t\t\t\tbox.addOffsetRectangle(i, 0, excess);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Reflecting the changes internally\n\t\t\t\t\t\t\n\t\t\t\t\t\tRectangle currRect = box.getRectangle(i);\n\t\t\t\t\t\tcurrRect.setColor(FOCUS_COLOR2);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tRectangle scanRect;\n\t\t\t\t\t\tint t;\n\t\t\t\t\t\tfor (t = i - 1; t >= 0; t--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscanRect = box.getRectangle(t);\n\t\t\t\t\t\t\tif (scanRect.getData() > currRect.getData())\n\t\t\t\t\t\t\t\tbox.setRectangle(box.getRectangle(t), t + 1);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbox.setRectangle(currRect, t + 1);\n\t\t\t\t\t\tdelayFlag1 = 1;\n\t\t\t\t\t\tupFlag = 0;\n\t\t\t\t\t\tdelay1 = 0;\n\t\t\t\t\t\tupFlag = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (delayFlag1 == 1)\n\t\t\t\t{\n\t\t\t\t\tdelay1++;\n\t\t\t\t\tif (delay1 >= DELAY)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelayFlag1 = 0;\n\t\t\t\t\t\tcodeFlag = 1;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override public void handle(MouseEvent mouseEvent) {\n dragDelta.x = layout.getScene().getWindow().getX() - mouseEvent.getScreenX();\n dragDelta.y = layout.getScene().getWindow().getY() - mouseEvent.getScreenY();\n }", "private void draggedWay(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n wayTool.setSeccondPoint(e.getPoint());\r\n }\r\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n if (idx < 0) {\n return;\n }\n if (idx == getIdx(e)) {\n boolean b = gui.selected[idx];\n if (!gui.shiftPressed) {\n gui.deselect();\n if (b) {\n gui.select(idx);\n }\n }\n gui.toggle(idx);\n repaint();\n }\n }", "private void initScene() {\n scene = new idx3d_Scene() {\n\n @Override\n public boolean isAdjusting() {\n return super.isAdjusting() || isAnimating() || isInStartedPlayer() || AbstractCube7Idx3D.this.isAdjusting();\n }\n\n @Override\n public void prepareForRendering() {\n validateAlphaBeta();\n validateScaleFactor();\n validateCube();\n validateStickersImage();\n validateAttributes(); // must be done after validateStickersImage!\n super.prepareForRendering();\n }\n @Override\n\t\tpublic /*final*/ void rotate(float dx, float dy, float dz) {\n super.rotate(dx, dy, dz);\n fireStateChanged();\n }\n };\n scene.setBackgroundColor(0xffffff);\n\n scaleTransform = new idx3d_Group();\n scaleTransform.scale(0.018f);\n\n for (int i = 0; i < locationTransforms.length; i++) {\n scaleTransform.addChild(locationTransforms[i]);\n }\n alphaBetaTransform = new idx3d_Group();\n alphaBetaTransform.addChild(scaleTransform);\n scene.addChild(alphaBetaTransform);\n\n scene.addCamera(\"Front\", idx3d_Camera.FRONT());\n scene.camera(\"Front\").setPos(0, 0, -4.9f);\n scene.camera(\"Front\").setFov(40f);\n\n scene.addCamera(\"Rear\", idx3d_Camera.FRONT());\n scene.camera(\"Rear\").setPos(0, 0, 4.9f);\n scene.camera(\"Rear\").setFov(40f);\n scene.camera(\"Rear\").roll((float) Math.PI);\n\n //scene.environment.ambient = 0x0;\n //scene.environment.ambient = 0xcccccc;\n scene.environment.ambient = 0x777777;\n //scene.addLight(\"Light1\",new idx3d_Light(new idx3d_Vector(0.2f,-0.5f,1f),0x888888,144,120));\n //scene.addLight(\"Light1\",new idx3d_Light(new idx3d_Vector(1f,-1f,1f),0x888888,144,120));\n // scene.addLight(\"Light2\",new idx3d_Light(new idx3d_Vector(1f,1f,1f),0x222222,100,40));\n //scene.addLight(\"Light2\",new idx3d_Light(new idx3d_Vector(-1f,1f,1f),0x222222,100,40));\n // scene.addLight(\"Light3\",new idx3d_Light(new idx3d_Vector(-1f,2f,1f),0x444444,200,120));\n scene.addLight(\"KeyLight\", new idx3d_Light(new idx3d_Vector(1f, -1f, 1f), 0xffffff, 0xffffff, 100, 100));\n scene.addLight(\"FillLightRight\", new idx3d_Light(new idx3d_Vector(-1f, 0f, 1f), 0x888888, 50, 50));\n scene.addLight(\"FillLightDown\", new idx3d_Light(new idx3d_Vector(0f, 1f, 1f), 0x666666, 50, 50));\n\n if (sharedLightmap == null) {\n sharedLightmap = scene.getLightmap();\n } else {\n scene.setLightmap(sharedLightmap);\n }\n }", "private void updateRotated() {\r\n\r\n\tfor (int n = 0; n < npoints * 3; n += 3) {\r\n\r\n\t // take the linear sum of local co-ords with local\r\n\t // unit vectors and then translate by adding the local\r\n\t // origin's co-ords\r\n\t ps[n] = locals[n] * i[0] + locals[n + 1] * j[0] + locals[n + 2] * k[0];\r\n\t ps[n + 1] = locals[n] * i[1] + locals[n + 1] * j[1] + locals[n + 2] * k[1];\r\n\t ps[n + 2] = locals[n] * i[2] + locals[n + 1] * j[2] + locals[n + 2] * k[2];\r\n\r\n\t ps[n] += p[0];\r\n\t ps[n + 1] += p[1];\r\n\t ps[n + 2] += p[2];\r\n\t}\r\n\r\n\t// reset bounding box and clear dirty flags\r\n\tbox.setBB();\r\n\tdirtyR = false;\r\n\tdirtyT = false;\r\n\r\n\t// normals must be reset\r\n\tthis.setNormals();\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n\t_roll = roll;\r\n }", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(0,y-gameObject.getHeight()/2);\n\t\t\t\t}", "public void update(float dt) {\n\n lastTouch.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n cam.unproject(lastTouch);\n\n if(Gdx.input.justTouched() &&\n lastTouch.x > x - width / 2 && lastTouch.x < x + width / 2 &&\n lastTouch.y > y - height / 2 && lastTouch.y < y + height / 2) {\n clicked = true;\n }\n else {\n clicked = false;\n }\n\n }", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }", "private void pointCameraAt(Point3D target,Group root){\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()-xOffset);\n node.setTranslateY(node.getTranslateY()-yOffset);\n node.setTranslateZ(node.getTranslateZ()-zOffset);\n }\n\n xOffset = -target.getX(); yOffset = -target.getY(); zOffset = -target.getZ();\n\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()+xOffset);\n node.setTranslateY(node.getTranslateY()+yOffset);\n node.setTranslateZ(node.getTranslateZ()+zOffset);\n }\n }", "public void rightRegionSelections() {\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_rf_on);\n\n //changing position image sources as adjacent to half selected and far positons to empty backgrounds to position buttons\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_selected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_selected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_selected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_half_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_half_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_half_selected);\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_unselected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_unselected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_unselected);\n\n\n cfTextView.setSelected(false);\n pTextView.setSelected(false);\n cTextView.setSelected(false);\n\n lfTextView.setSelected(false);\n ssTextView.setSelected(false);\n threeBTextView.setSelected(false);\n\n if (rfTextView.isSelected()) {\n rfTextView.setSelected(true);\n oneBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n } else if (twoBTextView.isSelected()) {\n twoBTextView.setSelected(true);\n oneBTextView.setSelected(false);\n\n } else if (oneBTextView.isSelected()) {\n oneBTextView.setSelected(true);\n }\n\n //setting top field points visibility as per positions selections\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n //setting top field points as per selections\n rightFieldpoints.setText(\"+20\");\n leftFieldPoints.setText(\"+5\");\n centerFieldPoints.setText(\"+10\");\n\n //changing top field points text color as per selections\n rightFieldpoints.setTextColor(Color.parseColor(\"#ffffff\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n }" ]
[ "0.65292346", "0.63628405", "0.62408495", "0.61531883", "0.61139035", "0.60063905", "0.5974172", "0.592868", "0.5906423", "0.5836283", "0.5775969", "0.57729334", "0.5769485", "0.570658", "0.56972194", "0.5693377", "0.5686747", "0.5658594", "0.56441504", "0.563718", "0.560753", "0.55908763", "0.5585731", "0.55845016", "0.55811083", "0.55597353", "0.5503112", "0.55008835", "0.5492205", "0.5483562", "0.5437268", "0.5414831", "0.5413346", "0.5393446", "0.53908515", "0.53826314", "0.53791344", "0.53789216", "0.53773797", "0.53765106", "0.537299", "0.5368885", "0.5367016", "0.5364004", "0.5346224", "0.5344573", "0.53403413", "0.5334286", "0.5328092", "0.53252476", "0.5316058", "0.53126293", "0.52670187", "0.52587754", "0.52484715", "0.52431095", "0.5242556", "0.5237894", "0.52296454", "0.5226446", "0.5223023", "0.5219042", "0.5217852", "0.5216716", "0.52140987", "0.5213537", "0.52101386", "0.52007264", "0.5198178", "0.51976603", "0.519708", "0.5182686", "0.51806444", "0.5179909", "0.51788926", "0.5170515", "0.51619655", "0.51614696", "0.5155414", "0.51534235", "0.5151365", "0.5149178", "0.5145248", "0.5139721", "0.5138145", "0.51353127", "0.5134789", "0.5130877", "0.5125311", "0.51210386", "0.511618", "0.5109925", "0.5109792", "0.5106643", "0.5104776", "0.51039934", "0.51012903", "0.50978917", "0.5094781", "0.50933933" ]
0.60422885
5
When mouse button is released In 3D, does nothing In 2D, perform the zoom according to the selection
@Override public void mouseReleased(MouseEvent e) { // 2D mode if (getChart().getView().is2D()) { View view = getChart().getView(); applyMouse2DSelection(view); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "protected abstract void handleZoom();", "@Override\n public boolean touchDown(float x, float y, int pointer, int button) {\n prevZoomFactor = getZoomFactor();\n return false;\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "void multitouchZoom(int new_zoom);", "public void zoomOut() {\n if (scale > 0.05) {\n double scaleFactor = (scale - 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale -= 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n }", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox(null);\n\n if (allowCrop)\n getChart().getScene().getGraph().setClipBox(null);\n\n view.setBoundMode(ViewBoundMode.AUTO_FIT);\n\n }\n // Or apply selection to ZOOM\n else {\n BoundingBox3d bounds = view.getBounds().clone();\n\n configureZoomAccordingTo2DView(view, bounds, mouseSelection);\n\n // Reset mouse selection now so that next rendering will hide it from screen\n mouseSelection = new MouseSelection();\n\n // Won't do anything for irrelevant bounds leading to a flat graph\n if (bounds.getXRange().getRange() <= 0 \n || bounds.getYRange().getRange() <= 0\n || bounds.getZRange().getRange() <= 0)\n return;\n\n //System.out.println(\"Will zoom to \" + bounds);\n\n // Crop and zoom\n if (allowCrop) {\n boolean includeLimits = false; // to avoid inacurrate box scale\n getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false);\n }\n view.setBoundsManual(bounds);\n\n\n }\n\n }", "@Override\n public void mouseUp(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }", "public void mouseDragged (LayerEvent event) {\r\n \t\t\tif (!isEnabled()) return;\r\n\t\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n \r\n\t\t\tif (_rubberBand == null) {\r\n\t \t// This should never happen, but it does.\r\n\t \treturn;\r\n\t\t\t\t}\r\n \r\n\t\t\tif (_zoomInFilter.accept(event) || _zoomOutFilter.accept(event)) {\r\n\t\t\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t \t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\t\r\n\t\t\t// Figure out the coordinates of the rubber band\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t double useXPos = event.getLayerX();\r\n\t\t double useYPos = event.getLayerY();\r\n\t\t \r\n\t\t\t// space held down translates\r\n\t\t\t// rubberband _originX, _originY by event-prev\r\n\t\t\tif (((TrekCanvas)trekPane.getCanvas()).isSpaceDown()) {\r\n\t\t\t\t_originX += (useXPos - prevX);\r\n\t\t\t\t_originY += (useYPos - prevY);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tprevX = event.getLayerX();\r\n\t\t\tprevY = event.getLayerY();\r\n\t\t\t\r\n\t\t // Without control down rubberband conforms to visible aspect ratio\r\n\t\t if (!((TrekCanvas)trekPane.getCanvas()).isControlDown()) {\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble currAspect = visSize.getHeight()/visSize.getWidth();\r\n\t\t\t\tif (Math.abs(useYPos - _originY) > Math.abs(useXPos - _originX)) {\r\n\t\t\t\t\tuseXPos = _originX + (useXPos < _originX ? -1.0 : 1.0)*Math.abs((useYPos - _originY)/currAspect);\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuseYPos = _originY + (useYPos < _originY ? -1.0 : 1.0)*Math.abs((useXPos - _originX)*currAspect);\r\n\t\t\t\t\t}\r\n\t\t \t}\r\n\t\t \r\n\t\t\tif (event.isAltDown()) {\r\n\t\t\t\t_rubberBand.setFrameFromCenter(_originX, _originY, useXPos, useYPos);\r\n\t\t\t\t}\r\n else {\r\n\t\t\t\t_rubberBand.setFrameFromDiagonal(_originX, _originY, useXPos, useYPos);\r\n \t}\r\n \t\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t\t// Could possibly do some custom drawing showing an in or out zoom\r\n\t\t\tif (_isZoomingIn) {\r\n } \r\n else {\r\n }\r\n \r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t\t\tevent.consume();\r\n\t\t\t}\r\n\t}", "public void mousePressed (LayerEvent event) {\r\n\t\tisMouseDown = true;\r\n\t\tif (!isEnabled()) return;\r\n \r\n\t\t// Check mouse event, set flags, etc\r\n\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\r\n\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n\r\n\t\t// Do it\r\n \t_originX = event.getLayerX();\r\n _originY = event.getLayerY();\r\n\t\tprevX = event.getLayerX();\r\n\t\tprevY = event.getLayerY();\r\n\t\t\r\n _rubberBand = new Rectangle2D.Double(_originX,_originY, 0.0, 0.0);\r\n\r\n\t\t_overlayLayer.add(_rubberBand);\r\n\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t event.consume();\r\n\t\t\t}\r\n\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tint pix, frameNum, keyFrameIndex;\n\t\t\t\tSystem.out.println(\"x: \" + e.getX() + \" y: \" + e.getY());\n\t\t\t\tfastForward = true;\n\t\t\t\tif (zoom_count == 0) {\n\t\t\t\t\tpix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 1) {\n\t\t\t\t\tpix = zoom1IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 2) {\n\t\t\t\t\tpix = zoom2IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t}\n\n\t\t\t\tif (currFrame > 40) {\n\t\t\t\t\tcurrFrame -= 40;\n\t\t\t\t}\n\t\t\t\tisAlreadyPlaying = false;\n\n\t\t\t\tvideoThread.interrupt();\n\t\t\t\tsoundThread.interrupt();\n\t\t\t\tplaySound.pause();\n\t\t\t\ttry {\n\t\t\t\t\tvideoThread.sleep(10);\n\t\t\t\t\tsoundThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsoundThread = null;\n\t\t\t\tvideoThread = null;\n\t\t\t\tplaySound.jump(currFrame);\n\n\t\t\t\tplayback();\n\n\t\t\t}\n\t\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "public void handleZoom(MouseEvent event){\n ImageView imageView = (ImageView) event.getSource();\n Image imageToShow = imageView.getImage();\n zoomImage.setImage(imageToShow);\n zoomPane.setVisible(true);\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Zoom less\");\r\n\t\t\t}", "public void mousePressed(MouseEvent e){\n\t\t\t\tx=e.getX()/widthCase;//Recuperation de l'abscisse ou l'utilisateur a clicker.Je le divise pas la taille d'une case pour obtenir la case dans mon tableau (ter).\n\t\t\t\ty=e.getY()/heightCase;\n\t\t\t\tposition();\n\t\t\t\tfenetreterrain.zoneZoom(zoom, positionX/widthCase+debutX, positionY/heightCase+debutY);\n\t\t\t}", "void onZoom() {\n\t\tmZoomPending=true;\n\t}", "public void mousePressed(MouseEvent e) {\n\n if(Objects.equals(ToolSelect.GetTool(), \"zoom/pan\")){\n released = false;\n sPoint = MouseInfo.getPointerInfo().getLocation();\n }else {\n\n startPoint = e.getPoint();\n shape = new ColoredRectangle(ToolSelect.GetBorderColor(), ToolSelect.GetFillColor(), new Rectangle(), ToolSelect.GetTool(), null);\n if (Objects.equals(ToolSelect.GetTool(), \"plot\") || Objects.equals(ToolSelect.GetTool(), \"line\")) {\n shape.shape.setBounds(e.getX(), e.getY(), 1, 1);\n }\n }\n\n }", "@Override\n public boolean handleMouseClick(Rectangle mouseRectangle, Rectangle camera, int zoomX, int zoomY) {\n if (mouseRectangle.intersects(rectangle)) {\n activate();\n return false;\n }\n return false;\n }", "private void actionZoomOut ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\t//---- Calculate zoom scale factor\r\n\t\t\tdouble zoom = mainFormLink.getComponentPanelCenter().getComponentPanelImageView().transformZoom(-FormMainMouse.DEFAULT_ZOOM_DELTA); \r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().repaint();\r\n\r\n\t\t\t//---- Set the current zoom, display the zoom scale factor in the GUI\r\n\t\t\tFormMainMouse.imageViewZoomScale = zoom;\r\n\t\t\tmainFormLink.getComponentPanelDown().getComponentLabelZoom().setText(String.valueOf(zoom));\r\n\t\t}\r\n\t}", "public void setZoom(){\n\t\tactive.setZoom();\n\t}", "public void updateZoom() {\n camera.zoom = zoomLevel;\n }", "@Override\n public void mouseReleased(MapEventMouse e) {\n if (SwingUtilities.isLeftMouseButton(e)) {\n isDragging = false;\n end = e.getPoint();\n endCoordinate = e.getLocation();\n Envelope box = new DefaultEnvelope();\n if (startCoordinate != null) {\n box.expandToInclude(startCoordinate);\n box.expandToInclude(endCoordinate);\n }\n box = Mercator.toMerc(box);\n this.fireBeforeSelect(e);\n boolean changed = false;\n for (Layer<?> layer : e.getMap().getContent().getLayers()) {\n if (!layer.isSelectable()) {\n continue;\n }\n boolean layerChanged;\n if (e.isControlDown()) {\n layerChanged = layer.invertSelection(e, box);\n } else {\n layerChanged = layer.select(e, box);\n }\n if (layerChanged) {\n changed = true;\n }\n }\n e.getMap().getContent().paintImmediately();\n e.getMap().repaint();\n this.fireAfterSelect(e);\n e.setHandled(changed);\n }\n }", "@Test\n public void testSetZoomToMouse() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_TO_MOUSE, false);\n }", "public void handleEndZoom(ActionEvent event){\n zoomPane.setVisible(false);\n }", "private void actionZoomIn ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\t//---- Calculate zoom scale factor\r\n\t\t\tdouble zoom = mainFormLink.getComponentPanelCenter().getComponentPanelImageView().transformZoom(+FormMainMouse.DEFAULT_ZOOM_DELTA); \r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().repaint();\r\n\r\n\t\t\t//---- Set the current zoom, display the zoom scale factor in the GUI\r\n\t\t\tFormMainMouse.imageViewZoomScale = zoom;\r\n\t\t\tmainFormLink.getComponentPanelDown().getComponentLabelZoom().setText(String.valueOf(zoom));\r\n\t\t}\r\n\t}", "public void zoomOut() { zoomOut(1); }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tGameManager.frame.switchScene(new HardOrEz());\n\n\t\t\t}", "public void wheelZoom(MouseWheelEvent e) {\n try {\n int wheelRotation = e.getWheelRotation();\n Insets x = getInsets(); //Top bar space of the application\n Point p = e.getPoint();\n p.setLocation(p.getX() , p.getY()-x.top + x.bottom);\n if (wheelRotation > 0 && zoomLevel != 0) {\n //point2d before zoom\n Point2D p1 = transformPoint(p);\n transform.scale(1 / 1.2, 1 / 1.2);\n //point after zoom\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomOut();\n repaint();\n\n } else if (wheelRotation < 0 && zoomLevel != 20) {\n Point2D p1 = transformPoint(p);\n transform.scale(1.2, 1.2);\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomIn();\n repaint();\n }\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "public void actionPerformed(ActionEvent AE) {\n\t\tif (AE.getSource().equals(exactZoom)) {\n\t\t\tsetScale(new Double(exactZoom.getText()).doubleValue());\n\t\t} else if (AE.getSource().equals(zoom)) {\n\t\t\tzoom();\n\t\t} else if (AE.getSource().equals(unzoom)) {\n\t\t\tunzoom();\n\t\t}\n\t}", "public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {\n \t\tint x_pd = x_p;\n \t\tint y_pd = y_p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Point2D.Double po = inverseTransformPoint(x_p, y_p);\n \t\t\tx_p = (int)po.x;\n \t\t\ty_p = (int)po.y;\n \t\t}\n \n \t\tfinal int tool = ProjectToolbar.getToolId();\n \n \t\tfinal Display display = ((DisplayCanvas)me.getSource()).getDisplay();\n \t\tfinal long layer_id = display.getLayer().getId();\n \n \t\tindex = findPoint(x_p, y_p, layer_id, mag);\n \n \t\tif (ProjectToolbar.PENCIL == tool && n_points > 0 && -1 == index && !me.isShiftDown() && !Utils.isControlDown(me)) {\n \t\t\t// Use Mark Longair's tracing: from the clicked point to the last one\n \t\t\tfinal double scale = layer_set.getVirtualizationScale();\n \t\t\t// Ok now with all found images, create a virtual stack that provides access to them all, with caching.\n \t\t\tfinal Worker[] worker = new Worker[2];\n \n \t\t\tTraceParameters tr_ = tr_map.get(layer_set);\n \t\t\tfinal TraceParameters tr = null == tr_ ? new TraceParameters() : tr_;\n \t\t\tif (null == tr_) {\n \t\t\t\tsynchronized (tr_map) {\n \t\t\t\t\ttr_map.put(layer_set, tr);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (tr.update) {\n \t\t\t\tworker[0] = new Worker(\"Preparing Hessian...\") { public void run() {\n \t\t\t\t\tstartedWorking();\n \t\t\t\t\ttry {\n \t\t\t\tUtils.log(\"Push ESCAPE key to cancel autotrace anytime.\");\n \t\t\t\tImagePlus virtual = new LayerStack(layer_set, scale, ImagePlus.GRAY8, Patch.class, display.getDisplayChannelAlphas()).getImagePlus();\n \t\t\t\t//virtual.show();\n \t\t\t\tCalibration cal = virtual.getCalibration();\n \t\t\t\tdouble minimumSeparation = 1;\n \t\t\t\tif (cal != null) minimumSeparation = Math.min(cal.pixelWidth,\n \t\t\t\t\t\t\t\t\t Math.min(cal.pixelHeight,\n \t\t\t\t\t\t\t\t\t\t cal.pixelDepth));\n \t\t\t\tComputeCurvatures hessian = new ComputeCurvatures(virtual, minimumSeparation, null, cal != null);\n \t\t\t\thessian.run();\n \n \t\t\t\ttr.virtual = virtual;\n \t\t\t\ttr.scale = scale;\n \t\t\t\ttr.hessian = hessian;\n \t\t\t\ttr.update = false;\n \n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tIJError.print(e);\n \t\t\t\t\t}\n \t\t\t\t\tfinishedWorking();\n \t\t\t\t}};\n \t\t\t\tBureaucrat.createAndStart(worker[0], project);\n \t\t\t}\n \n \t\t\tPoint2D.Double po = transformPoint(p[0][n_points-1], p[1][n_points-1]);\n \t\t\tfinal int start_x = (int)po.x;\n \t\t\tfinal int start_y = (int)po.y;\n \t\t\tfinal int start_z = layer_set.indexOf(layer_set.getLayer(p_layer[n_points-1])); // 0-based\n \t\t\tfinal int goal_x = (int)(x_pd * scale); // must transform into virtual space\n \t\t\tfinal int goal_y = (int)(y_pd * scale);\n \t\t\tfinal int goal_z = layer_set.indexOf(display.getLayer());\n \n \t\t\t/*\n \t\t\tUtils.log2(\"x_pd, y_pd : \" + x_pd + \", \" + y_pd);\n \t\t\tUtils.log2(\"scale: \" + scale);\n \t\t\tUtils.log2(\"start: \" + start_x + \",\" + start_y + \", \" + start_z);\n \t\t\tUtils.log2(\"goal: \" + goal_x + \",\" + goal_y + \", \" + goal_z);\n \t\t\tUtils.log2(\"virtual: \" + tr.virtual);\n \t\t\t*/\n \n \n \t\t\tfinal boolean simplify = me.isAltDown();\n \n \t\t\tworker[1] = new Worker(\"Tracer - waiting on hessian\") { public void run() {\n \t\t\t\tstartedWorking();\n \t\t\t\ttry {\n \t\t\t\tif (null != worker[0]) {\n \t\t\t\t\t// Wait until hessian is ready\n \t\t\t\t\tworker[0].join();\n \t\t\t\t}\n \t\t\t\tsetTaskName(\"Tracing path\");\n \t\t\t\tfinal int reportEveryMilliseconds = 2000;\n \t\t\t\ttr.tracer = new TracerThread(tr.virtual, 0, 255,\n \t\t\t\t\t\t 120, // timeout seconds\n \t\t\t\t\t\t\t\t reportEveryMilliseconds,\n \t\t\t\t\t\t\t\t start_x, start_y, start_z,\n \t\t\t\t\t\t\t\t goal_x, goal_y, goal_z,\n \t\t\t\t\t\t\t\t true, // reciproal pix values at start and goal\n \t\t\t\t\t\t\t\t tr.virtual.getStackSize() == 1,\n \t\t\t\t\t\t\t\t tr.hessian,\n \t\t\t\t\t\t\t\t null == tr.hessian ? 1 : 4,\n \t\t\t\t\t\t\t\t null,\n \t\t\t\t\t\t\t\t null != tr.hessian);\n \t\t\t\ttr.tracer.addProgressListener(new SearchProgressCallback() {\n \t\t\t\t\tpublic void pointsInSearch(SearchThread source, int inOpen, int inClosed) {\n \t\t\t\t\t\tworker[1].setTaskName(\"Tracing path: open=\" + inOpen + \" closed=\" + inClosed);\n \t\t\t\t\t}\n \t\t\t\t\tpublic void finished(SearchThread source, boolean success) {\n \t\t\t\t\t\tif (!success) {\n \t\t\t\t\t\t\tUtils.logAll(\"Could NOT trace a path\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tpublic void threadStatus(SearchThread source, int currentStatus) {\n \t\t\t\t\t\t// This method gets called every reportEveryMilliseconds\n \t\t\t\t\t\tif (worker[1].hasQuitted()) {\n \t\t\t\t\t\t\tsource.requestStop();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t\t\ttr.tracer.run();\n \n \t\t\t\tfinal Path result = tr.tracer.getResult();\n \n \t\t\t\ttr.tracer = null;\n \n \t\t\t\tif (null == result) {\n \t\t\t\t\tUtils.log(\"Finding a path failed\"); //: \"+ \n \t\t\t\t\t\t// not public //SearchThread.exitReasonStrings[tracer.getExitReason()]);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \n \t\t\t\t// TODO: precise_x_positions etc are likely to be broken (calibrated or something)\n \n \n \t\t\t\t// Remove bogus points: those at the end with 0,0 coords\n \t\t\t\tint len = result.points;\n \t\t\t\tfinal double[][] pos = result.getXYZUnscaled();\n \t\t\t\tfor (int i=len-1; i>-1; i--) {\n \t\t\t\t\tif (0 == pos[0][i] && 0 == pos[1][i]) {\n \t\t\t\t\t\tlen--;\n \t\t\t\t\t} else break;\n \t\t\t\t}\n \t\t\t\t// Transform points: undo scale, and bring to this Polyline AffineTransform:\n \t\t\t\tfinal AffineTransform aff = new AffineTransform();\n \t\t\t\t/* Inverse order: */\n \t\t\t\t/* 2 */ aff.concatenate(Polyline.this.at.createInverse());\n \t\t\t\t/* 1 */ aff.scale(1/scale, 1/scale);\n \t\t\t\tfinal double[] po = new double[len * 2];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tpo[j] = pos[0][i];\n \t\t\t\t\tpo[j+1] = pos[1][i];\n \t\t\t\t}\n \t\t\t\tfinal double[] po2 = new double[len * 2];\n \t\t\t\taff.transform(po, 0, po2, 0, len); // what a stupid format: consecutive x,y pairs\n \n \t\t\t\tlong[] p_layer_ids = new long[len];\n \t\t\t\tdouble[] pox = new double[len];\n \t\t\t\tdouble[] poy = new double[len];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tp_layer_ids[i] = layer_set.getNearestLayer(pos[2][i]).getId(); // z_positions in 0-(N-1), not in 0-N like slices!\n \t\t\t\t\tpox[i] = po2[j];\n \t\t\t\t\tpoy[i] = po2[j+1];\n \t\t\t\t}\n \n \t\t\t\t// Simplify path: to steps of 5 calibration units, or 5 pixels when not calibrated.\n \t\t\t\tif (simplify) {\n \t\t\t\t\tObject[] ob = Polyline.simplify(pox, poy, p_layer_ids, 10000, layer_set);\n \t\t\t\t\tpox = (double[])ob[0];\n \t\t\t\t\tpoy = (double[])ob[1];\n \t\t\t\t\tp_layer_ids = (long[])ob[2];\n \t\t\t\t\tlen = pox.length;\n \t\t\t\t}\n \n \t\t\t\t// Record the first newly-added autotraced point index:\n \t\t\t\tlast_autotrace_start = Polyline.this.n_points;\n \t\t\t\tPolyline.this.appendPoints(pox, poy, p_layer_ids, len);\n \n \t\t\t\tPolyline.this.repaint(true);\n \t\t\t\tUtils.logAll(\"Added \" + len + \" new points.\");\n \n \t\t\t\t} catch (Exception e) { IJError.print(e); }\n \t\t\t\tfinishedWorking();\n \t\t\t}};\n \t\t\tBureaucrat.createAndStart(worker[1], project);\n \n \t\t\tindex = -1;\n \t\t\treturn;\n \n \t\t}\n \n \t\tif (ProjectToolbar.PEN == tool || ProjectToolbar.PENCIL == tool) {\n \n \t\t\tif (Utils.isControlDown(me) && me.isShiftDown()) {\n \t\t\t\tfinal long lid = Display.getFrontLayer(this.project).getId();\n \t\t\t\tif (-1 == index || lid != p_layer[index]) {\n \t\t\t\t\tindex = findNearestPoint(x_p, y_p, layer_id);\n \t\t\t\t}\n \t\t\t\tif (-1 != index) {\n \t\t\t\t\t//delete point\n \t\t\t\t\tremovePoint(index);\n \t\t\t\t\tindex = -1;\n \t\t\t\t\trepaint(false);\n \t\t\t\t}\n \n \t\t\t\t// In any case, terminate\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tif (-1 != index && layer_id != p_layer[index]) index = -1; // disable!\n \n \t\t\t//if no conditions are met, attempt to add point\n \t\t\telse if (-1 == index && !me.isShiftDown() && !me.isAltDown()) {\n \t\t\t\t//add a new point\n \t\t\t\tindex = addPoint(x_p, y_p, layer_id, mag);\n \t\t\t\tis_new_point = true;\n \t\t\t\trepaint(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "public void terminateDrag(LayerEvent event) {\r\n\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n\r\n\t\tif (_zoomInFilter.accept(event) || _zoomOutFilter.accept(event)) {\r\n\t\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t\t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t// Use the positions of the rubberband to perform the zoom\r\n\t\tif( _rubberBand.getHeight() < 2.0 || _rubberBand.getWidth() < 2.0) {\r\n\t\t\t//We treat this as a single click zoom at center\r\n\t\t\tif (_isZoomingIn) {\r\n\t\t\t\t// TODO make the click factor zooming settable instead of 125%/80% which is a good default\r\n\t\t\t\tzoom(_rubberBand.getCenterX(), _rubberBand.getCenterY(), 1.25);\r\n\t\t\t\t} \r\n\t\t\telse if (_isZoomingOut) {\r\n\t\t\t\tzoom(_rubberBand.getCenterX(), _rubberBand.getCenterY(), 0.8);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\telse {\r\n\t\t\t\r\n\t\t\t// We treat this as the scale to fit the bounds of these converted coordinates\r\n\t\t\tif (((TrekCanvas)trekPane.getCanvas()).isControlDown()) {\r\n\t\t\t\t// We treat this as the zoom to fit the bounds of these converted coordinates\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble xZoomAmount = visSize.getWidth()/_rubberBand.getWidth();\r\n\t\t\t\tdouble yZoomAmount = visSize.getHeight()/_rubberBand.getHeight();\r\n\t\t\t if (_isZoomingOut) {\r\n\t\t\t \txZoomAmount = 1.0/xZoomAmount;\r\n\t\t\t\t\tyZoomAmount = 1.0/yZoomAmount;\r\n\t\t\t\t\t}\r\n\t\t\t\tscale(_rubberBand.getCenterX(), _rubberBand.getCenterY(), xZoomAmount, yZoomAmount);\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// We treat this as the zoom to fit the bounds of these converted coordinates\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble currAspect = visSize.getHeight()/visSize.getWidth();\r\n\t\t\t\tdouble zoomAmount = 1.0;\r\n\t\t\t if (currAspect >= 1.0) {\r\n\t\t\t\t zoomAmount = visSize.getHeight()/_rubberBand.getHeight();\r\n\t\t\t\t\tif (_isZoomingOut) zoomAmount = 1.0/zoomAmount;\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tzoomAmount = visSize.getWidth()/_rubberBand.getWidth();\r\n\t\t\t\t\tif (_isZoomingOut) zoomAmount = 1.0/zoomAmount;\r\n\t\t\t\t\t}\r\n\t\t\t\tzoom(_rubberBand.getCenterX(), _rubberBand.getCenterY(), zoomAmount);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t_overlayLayer.repaint(_rubberBand);\r\n\t\t_overlayLayer.remove(_rubberBand);\r\n\t\t_rubberBand = null;\r\n\t\t}", "protected void configureZoomAccordingTo2DView(View view, BoundingBox3d bounds,\n MouseSelection mouseSelection) {\n if (view.is2D_XY()) {\n bounds.setXmin(mouseSelection.min3DX());\n bounds.setXmax(mouseSelection.max3DX());\n bounds.setYmin(mouseSelection.min3DY());\n bounds.setYmax(mouseSelection.max3DY());\n } else if (view.is2D_XZ()) {\n bounds.setXmin(mouseSelection.min3DX());\n bounds.setXmax(mouseSelection.max3DX());\n bounds.setZmin(mouseSelection.min3DZ());\n bounds.setZmax(mouseSelection.max3DZ());\n } else if (view.is2D_YZ()) {\n bounds.setYmin(mouseSelection.min3DY());\n bounds.setYmax(mouseSelection.max3DY());\n bounds.setZmin(mouseSelection.min3DZ());\n bounds.setZmax(mouseSelection.max3DZ());\n } else {\n throw new RuntimeException(\"Unexpected 2D view\");\n }\n\n // System.out.println(\"Mouse.Bounds : \" + bounds);\n }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "@Override\n public void mouseReleased(int n, int n2, int n3) {\n void state;\n void mouseY;\n void mouseX;\n super.mouseReleased((int)mouseX, (int)mouseY, (int)state);\n this.hueDragging = false;\n this.saturationDragging = false;\n this.brightnessDragging = false;\n this.alphaDragging = false;\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n if (idx < 0) {\n return;\n }\n if (idx == getIdx(e)) {\n boolean b = gui.selected[idx];\n if (!gui.shiftPressed) {\n gui.deselect();\n if (b) {\n gui.select(idx);\n }\n }\n gui.toggle(idx);\n repaint();\n }\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@FXML\n void zOutPressed(ActionEvent event) {\n\t\tcanvas.setScaleX(canvas.getScaleX()*0.9);\n\t\tcanvas.setScaleY(canvas.getScaleY()*0.9);\n }", "public void handle(ActionEvent ae) {\n scaleFactor += 0.1; \n if(scaleFactor > 2.0) scaleFactor = 0.4; \n \n scale.setX(scaleFactor); \n scale.setY(scaleFactor); \n \n }", "@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}", "public boolean onTouch(android.view.View r4, android.view.MotionEvent r5) {\r\n /*\r\n r3 = this;\r\n boolean r4 = r3.mAnimatingZoomEnding\r\n r0 = 1\r\n if (r4 != 0) goto L_0x008f\r\n int r4 = r5.getPointerCount()\r\n r1 = 2\r\n if (r4 <= r1) goto L_0x000e\r\n goto L_0x008f\r\n L_0x000e:\r\n android.view.ScaleGestureDetector r4 = r3.mScaleGestureDetector\r\n r4.onTouchEvent(r5)\r\n android.view.GestureDetector r4 = r3.mGestureDetector\r\n r4.onTouchEvent(r5)\r\n int r4 = r5.getAction()\r\n r4 = r4 & 255(0xff, float:3.57E-43)\r\n if (r4 == 0) goto L_0x0079\r\n if (r4 == r0) goto L_0x006a\r\n if (r4 == r1) goto L_0x002e\r\n r2 = 3\r\n if (r4 == r2) goto L_0x006a\r\n r2 = 5\r\n if (r4 == r2) goto L_0x0079\r\n r5 = 6\r\n if (r4 == r5) goto L_0x006a\r\n goto L_0x008f\r\n L_0x002e:\r\n int r4 = r3.mState\r\n if (r4 != r1) goto L_0x008f\r\n android.graphics.PointF r4 = r3.mCurrentMovementMidPoint\r\n com.ablanco.zoomy.MotionUtils.midPointOfEvent(r4, r5)\r\n android.graphics.PointF r4 = r3.mCurrentMovementMidPoint\r\n float r5 = r4.x\r\n android.graphics.PointF r1 = r3.mInitialPinchMidPoint\r\n float r2 = r1.x\r\n float r5 = r5 - r2\r\n r4.x = r5\r\n float r5 = r4.y\r\n float r1 = r1.y\r\n float r5 = r5 - r1\r\n r4.y = r5\r\n float r5 = r4.x\r\n android.graphics.Point r1 = r3.mTargetViewCords\r\n int r2 = r1.x\r\n float r2 = (float) r2\r\n float r5 = r5 + r2\r\n r4.x = r5\r\n float r5 = r4.y\r\n int r1 = r1.y\r\n float r1 = (float) r1\r\n float r5 = r5 + r1\r\n r4.y = r5\r\n float r5 = r4.x\r\n float r4 = r4.y\r\n android.widget.ImageView r1 = r3.mZoomableView\r\n r1.setX(r5)\r\n android.widget.ImageView r5 = r3.mZoomableView\r\n r5.setY(r4)\r\n goto L_0x008f\r\n L_0x006a:\r\n int r4 = r3.mState\r\n if (r4 == r0) goto L_0x0075\r\n if (r4 == r1) goto L_0x0071\r\n goto L_0x008f\r\n L_0x0071:\r\n r3.endZoomingView()\r\n goto L_0x008f\r\n L_0x0075:\r\n r4 = 0\r\n r3.mState = r4\r\n goto L_0x008f\r\n L_0x0079:\r\n int r4 = r3.mState\r\n if (r4 == 0) goto L_0x008d\r\n if (r4 == r0) goto L_0x0080\r\n goto L_0x008f\r\n L_0x0080:\r\n r3.mState = r1\r\n android.graphics.PointF r4 = r3.mInitialPinchMidPoint\r\n com.ablanco.zoomy.MotionUtils.midPointOfEvent(r4, r5)\r\n android.view.View r4 = r3.mTarget\r\n r3.startZoomingView(r4)\r\n goto L_0x008f\r\n L_0x008d:\r\n r3.mState = r0\r\n L_0x008f:\r\n return r0\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.ablanco.zoomy.ZoomableTouchListener.onTouch(android.view.View, android.view.MotionEvent):boolean\");\r\n }", "@FXML\n void zInPressed(ActionEvent event) {\n\t\tcanvas.setScaleX(canvas.getScaleX()*1.1);\n\t\tcanvas.setScaleY(canvas.getScaleY()*1.1);\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n//\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n//\t\tPoint2D.Double worldPoint = new Point2D.Double();\n//\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n//\t\tviewToWorld.transform(view, worldPoint);\n//\t\n//\t\t// check here if clicking a waypoint\n//\t\tint index = data.hitWaypointTest(worldPoint.getX(), worldPoint.getY());\n//\t\tif(index != -1) {\n////\t\t\tWaypoint w = data.getWaypoint(index);\n//\t\t\tGUIFunctions.updateWaypointDataFields(w);\n//\t\t} else \n//\t\t\tGUIFunctions.updateWaypointDataFields(null);\n\t}", "public void zoomIn() { zoomIn(1); }", "@Override\n public void onMouseReleased(MouseEvent event, DrawingView dv) {\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void Zoom(double zoomNo) {\n\t \n }", "@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 zoom() {\n\t\tdisp.zoom();\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public void keyPressed(KeyEvent e)\r\n\t{\r\n\t\tif (e.getKeyCode() == e.VK_UP)\r\n\t\t\ttranslatey++;\r\n\t\telse if (e.getKeyCode() == e.VK_DOWN)\r\n\t\t\ttranslatey--;\r\n\t\telse if (e.getKeyCode() == e.VK_LEFT)\r\n\t\t\ttranslatex--;\r\n\t\telse if (e.getKeyCode() == e.VK_RIGHT)\r\n\t\t\ttranslatex++;\r\n\t\telse if (e.getKeyCode() == e.VK_PLUS || e.getKeyCode() == 61)\r\n\t\t\tzoom = zoom + 0.1;\r\n\t\telse if (e.getKeyCode() == e.VK_MINUS)\r\n\t\t{\r\n\t\t\tzoom = zoom - 0.1;\r\n\t\t\tif (zoom < 0.1)\r\n\t\t\t\tzoom = 0.1;\r\n\t\t}\r\n\t\t\r\n\t\tv2d.zoom = zoom;\r\n\t\t\r\n\t\tv2d.keyPressed(e.getKeyCode());\r\n\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n public void mouseReleased(MouseEvent e){\n }", "@Override\n public void mouseReleased(MouseEvent e){\n \n }", "@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent me) {\r\n\t\trelease(me.getX(), me.getY());\r\n\t}", "@Override\r\n protected void doSelect(double x, double y, MouseButton button,\r\n int clickCount, boolean shiftDown, boolean shortcutDown) {\n super.doSelect(x, y, button, clickCount, shiftDown, shortcutDown);\r\n }", "private void dragZoom() {\n\n\t\tint width = this.getWidth();\n\n\t\tint start = cont.getStart();\n\t\tdouble amount = cont.getLength();\n\n\t\tint newStart = (int) DrawingTools.calculatePixelPosition(x ,width,amount,start);\n\t\tint newStop = (int) DrawingTools.calculatePixelPosition(x2,width,amount,start);\n\t\tx = x2 = 0;\n\n\t\tint temp;\n\t\tif (newStop < newStart){\n\t\t\ttemp = newStart;\n\t\t\tnewStart = newStop;\n\t\t\tnewStop = temp;\n\t\t}\n\n\t\tcont.changeSize(newStart,newStop);\n\n\t}", "@Override\r\n\t\t\tpublic void handle(ScrollEvent e) {\n\t\t\t\tif (e.isControlDown() && getSkinnable().isScalableOnScroll()) {\r\n\t\t\t\t\tdouble delta = e.getDeltaY();\r\n\t\t\t\t\tdouble newValue = localScaleFactor.get();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue + ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue > ZOOM_MAX) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MAX;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue - ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue < ZOOM_MIN) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MIN;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlocalScaleFactor.set(newValue);\r\n\t\t\t\t\ttakeSnap(prevX.get(), prevY.get());\r\n\t\t\t\t}\r\n\t\t\t\t// If scrolled with ALT key press\r\n\t\t\t\telse if (e.isAltDown() && getSkinnable().isResizableOnScroll()) {\r\n\t\t\t\t\tfinal double delta = e.getDeltaY();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the size.\r\n\t\t\t\t\t\tlocalRadius.set(localRadius.get() + RADIUS_DELTA);\r\n\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the size.\r\n\t\t\t\t\t\tif (localRadius.get() > MIN_RADIUS) {\r\n\t\t\t\t\t\t\tlocalRadius.set(localRadius.get() - RADIUS_DELTA);\r\n\t\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\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}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "public void mousePressed(MouseEvent evt) {\n if (dragging)\n return; // don't start a new drag while one is already in progress\n\torigy = evt.getY();\n\torigx = evt.getX();\n\tboolean shifted = (evt.getModifiers() & InputEvent.SHIFT_MASK) > 0;\n\trotate = shifted;\n\tzoom = ! shifted;\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "void mouseReleased(double x, double y, MouseEvent e );", "public void zoomOut() {\n \t\tzoom(-1);\n \t}", "public void onZoom(View view){\n if(view.getId() == R.id.Bzoomin){\n mMap.animateCamera(CameraUpdateFactory.zoomIn());\n }\n if(view.getId()==R.id.Bzoomout){\n mMap.animateCamera(CameraUpdateFactory.zoomOut());\n }\n }", "private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {\n }", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}" ]
[ "0.7390762", "0.7214869", "0.7036407", "0.6854954", "0.6742406", "0.67089736", "0.6691069", "0.6673668", "0.6651459", "0.6637641", "0.6617169", "0.6528861", "0.64933056", "0.6471729", "0.6458738", "0.6458296", "0.6419184", "0.6375344", "0.6347212", "0.63008696", "0.6275235", "0.6220914", "0.61995345", "0.6114566", "0.6074748", "0.60675156", "0.60623085", "0.6034648", "0.60334384", "0.60325396", "0.5982513", "0.59783053", "0.59652466", "0.59636325", "0.5961896", "0.5956522", "0.594123", "0.5934778", "0.5932017", "0.5926268", "0.59212095", "0.5905731", "0.5902989", "0.5896099", "0.5883176", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.58784246", "0.5872349", "0.5858167", "0.5848449", "0.5846653", "0.5838692", "0.5830415", "0.58261865", "0.58226055", "0.58226055", "0.5820182", "0.58150804", "0.58138716", "0.58138716", "0.58138716", "0.58138716", "0.58117026", "0.5810311", "0.5810311", "0.58051556", "0.58051556", "0.5804592", "0.5804129", "0.5797554", "0.5796125", "0.5793906", "0.5793906", "0.5793906", "0.5775391", "0.5775067", "0.5772937", "0.57646763", "0.5764545", "0.57635826", "0.57616067", "0.5761606", "0.57601047", "0.5758237", "0.57573503", "0.5752551" ]
0.7082881
2
When mouse wheel rotates In 3D, Update Z scale In 2D, does nothing
@Override public void mouseWheelMoved(MouseWheelEvent e) { if (getChart().getView().is2D()) { return; } // Check if mouse rate limiter wish to forbid this mouse drag instruction if (rateLimiter != null && !rateLimiter.rateLimitCheck()) { return; } stopThreadController(); float factor = 1 + (e.getWheelRotation() / 10.0f); zoomZ(factor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n // Check direction of rotation\n if (e.getWheelRotation() < 0) {\n // Zoom in for up\n tr_z += 0.01f;\n } else {\n // Zoom out for down\n tr_z -= 0.01f;\n }\n }", "public void wheelZoom(MouseWheelEvent e) {\n try {\n int wheelRotation = e.getWheelRotation();\n Insets x = getInsets(); //Top bar space of the application\n Point p = e.getPoint();\n p.setLocation(p.getX() , p.getY()-x.top + x.bottom);\n if (wheelRotation > 0 && zoomLevel != 0) {\n //point2d before zoom\n Point2D p1 = transformPoint(p);\n transform.scale(1 / 1.2, 1 / 1.2);\n //point after zoom\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomOut();\n repaint();\n\n } else if (wheelRotation < 0 && zoomLevel != 20) {\n Point2D p1 = transformPoint(p);\n transform.scale(1.2, 1.2);\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomIn();\n repaint();\n }\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "@Override\n public void update(double delta) {\n model.rotateXYZ(0,(1 * 0.001f),0);\n\n float acceleration = 0.1f;\n float cameraSpeed = 1.5f;\n\n // Left - right\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_A) == GLFW_PRESS)\n speedz+= (speedz < cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_A) == GLFW_RELEASE)\n speedz-= (speedz-acceleration > 0) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_D) == GLFW_PRESS)\n speedz-= (speedz > -cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_D) == GLFW_RELEASE)\n speedz+= (speedz+acceleration < 0) ? acceleration : 0;\n\n // Forward - backward\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_W) == GLFW_PRESS)\n speedx+= (speedx < cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_W) == GLFW_RELEASE)\n speedx-= (speedx > 0) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_S) == GLFW_PRESS)\n speedx-= (speedx > -cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_S) == GLFW_RELEASE)\n speedx+= (speedx+acceleration < 0) ? acceleration : 0;\n\n // up - down\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_Q) == GLFW_PRESS)\n speedy+= (speedy < cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_Q) == GLFW_RELEASE)\n speedy-= (speedy > 0.1) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_E) == GLFW_PRESS)\n speedy-= (speedy > -cameraSpeed) ? acceleration : 0;\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_E) == GLFW_RELEASE)\n speedy+= (speedy < 0) ? acceleration : 0;\n\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_TAB) == GLFW_PRESS) {\n speedz = 0;\n speedx = 0;\n }\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_R) == GLFW_PRESS) {\n debugCameraObject.eyePos.x = 0;\n debugCameraObject.eyePos.y = 0;\n debugCameraObject.eyePos.z = 0;\n }\n if(glfwGetKey(this.mainWindow.id(),GLFW_KEY_T) == GLFW_PRESS) {\n showSkybox = !showSkybox;\n }\n\n\n debugCameraObject.processKeyboard(DebugCamera.CameraMovement.RIGHT, (float) (speedz * delta));\n debugCameraObject.processKeyboard(DebugCamera.CameraMovement.FORWARD, (float) (speedx * delta));\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n\n zoomer = true;\n\n //Zoom in\n if (e.getWheelRotation() < 0) {\n zoomFactor *= 1.1;\n repaint();\n }\n //Zoom out\n if (e.getWheelRotation() > 0) {\n zoomFactor /= 1.1;\n repaint();\n }\n }", "private void renderSkybox(int p_73971_1_, int p_73971_2_, float p_73971_3_) {\n\t\tthis.mc.getFramebuffer().unbindFramebuffer();\n\t\tGlStateManager.viewport(0, 0, 256, 256);\n\t\tthis.drawPanorama(p_73971_1_, p_73971_2_, p_73971_3_);\n\t\tthis.rotateSkybox();\n\t\tthis.mc.getFramebuffer().bindFramebuffer(true);\n\t\tGlStateManager.viewport(0, 0, this.mc.displayWidth, this.mc.displayHeight);\n\t\tTessellator var4 = Tessellator.getInstance();\n\t\tWorldRenderer var5 = var4.getWorldRenderer();\n\t\tvar5.startDrawingQuads();\n\t\tfloat var6 = this.width > this.height ? 120.0F / (float) this.width : 120.0F / (float) this.height;\n\t\tfloat var7 = (float) this.height * var6 / 256.0F;\n\t\tfloat var8 = (float) this.width * var6 / 256.0F;\n\t\tvar5.func_178960_a(1.0F, 1.0F, 1.0F, 1.0F);\n\t\tint var9 = this.width;\n\t\tint var10 = this.height;\n\t\tvar5.addVertexWithUV(0.0D, (double) var10, (double) this.zLevel, (double) (0.5F - var7),\n\t\t\t\t(double) (0.5F + var8));\n\t\tvar5.addVertexWithUV((double) var9, (double) var10, (double) this.zLevel, (double) (0.5F - var7),\n\t\t\t\t(double) (0.5F - var8));\n\t\tvar5.addVertexWithUV((double) var9, 0.0D, (double) this.zLevel, (double) (0.5F + var7), (double) (0.5F - var8));\n\t\tvar5.addVertexWithUV(0.0D, 0.0D, (double) this.zLevel, (double) (0.5F + var7), (double) (0.5F + var8));\n\t\tvar4.draw();\n\t}", "public void onAccelerationChanged(float x, float y, float z) {\n\n }", "private void controlSeaperchRt(float x, float z, float y){\n float sampleTime = 0.1f; //approximate, 10Hz sample rate\n\n x = x * sampleTime; //deg/sec * sec\n y = y * sampleTime;\n z = z * sampleTime;\n\n rotateSeaperch(seaperch, x, z, y); //Z and Y are reversed here\n }", "private void rotateSkybox() {\n\t\tthis.mc.getTextureManager().bindTexture(this.field_110351_G);\n\t\tGL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);\n\t\tGL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\tGL11.glCopyTexSubImage2D(GL11.GL_TEXTURE_2D, 0, 0, 0, 0, 0, 256, 256);\n\t\tGlStateManager.enableBlend();\n\t\tGlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);\n\t\tGlStateManager.colorMask(true, true, true, false);\n\t\tTessellator var2 = Tessellator.getInstance();\n\t\tWorldRenderer var3 = var2.getWorldRenderer();\n\t\tvar3.startDrawingQuads();\n\t\tGlStateManager.disableAlpha();\n\t\tbyte var4 = 3;\n\n\t\tvar2.draw();\n\t\tGlStateManager.enableAlpha();\n\t\tGlStateManager.colorMask(true, true, true, true);\n\t}", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "public void zRotate() {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "private static void norm3JS() {\n\n // Drive\n axLeftX.setAxis(leftJoystick, 0); //Mecanum (Arcade) Left/Right turn\n axLeftY.setAxis(leftJoystick, 1); //Mecanum (Arcade) Fwd/Bkwd\n axRightX.setAxis(rightJoystick, 0); //Mecanum Rotate orientation\n axRightY.setAxis(rightJoystick, 1); //unassigned\n\n btnGyroReset.setButton(rightJoystick, 6); // reset gyro to 0\n\n btnHoldLeft.setButton(rightJoystick, 4); //??\n btnHoldCenter.setButton(rightJoystick,3); //??\n btnHoldRight.setButton(rightJoystick, 5); //??\n \n // Gear\n btnPickupGear.setButton(coJoystick, 2); // Pickup gear off floor\n btnPlaceGear.setButton(coJoystick, 5); // Place gear on ship peg\n \n // Shooter\n btnShooter.setButton(coJoystick, 1); // Start shooter then feeder(s)\n btnAgitator.setButton(coJoystick, 3); // Agitate the ball bin\n \n // Climb\n btnClimber.setButton(coJoystick, 8); // Climber rotating\n \n }", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "private void rotate(final MouseEvent event) {\r\n\r\n\t\t// reset transform3D\r\n\t\tthis.rotation.rotY(0);\r\n\r\n\t\t// rotate around y-axis\r\n\t\tif (super.x_last - event.getPoint().x > 0) {\r\n\t\t\t// rotate leftwards\r\n\t\t\tthis.rotation.rotY(this.angle);\r\n\t\t} else {\r\n\t\t\t// rotate rightwards\r\n\t\t\tthis.rotation.rotY(-this.angle);\r\n\t\t}\r\n\r\n\t\t// apply rotation\r\n\t\tsuper.transformGroup.getTransform(this.transform);\r\n\t\tthis.transform.mul(this.rotation);\r\n\t\tsuper.transformGroup.setTransform(this.transform);\r\n\t}", "public void updateZoom() {\n camera.zoom = zoomLevel;\n }", "private void initCamera(SubScene scene, Group root){\n //Create a perspective camera for 3D use and add it to the scene.\n PerspectiveCamera camera = new PerspectiveCamera(true);\n scene.setCamera(camera);\n\n //Set the camera's field of view, near and far pane, and starting zoom.\n camera.setFieldOfView(80);\n camera.setNearClip(1);\n camera.setFarClip(5000);\n camera.setTranslateZ(-1000);\n\n //Initiate the rotation objects used for rotating the camera about the world.\n Rotate xRotate = new Rotate(0, Rotate.X_AXIS);\n Rotate yRotate = new Rotate(0, Rotate.Y_AXIS);\n root.getTransforms().addAll(xRotate, yRotate);\n\n //Bind the property so it automatically updates.\n xRotate.angleProperty().bind(angleX);\n yRotate.angleProperty().bind(angleY);\n\n //Add an event listener to track the start of a mouse drag when the mouse is clicked.\n scene.setOnMousePressed(event -> {\n dragStartX = event.getSceneX();\n dragStartY = event.getSceneY();\n anchorAngleX = angleX.get();\n anchorAngleY = angleY.get();\n });\n\n //Add an event listener to update the rotation objects based on the distance dragged.\n scene.setOnMouseDragged(event -> {\n //A modifier (0.2 in this case) is used to control the sensitivity.\n Double newAngleX = anchorAngleX - (dragStartY - event.getSceneY())*0.2;\n //Restrict the rotation to angles less than 90.\n if(newAngleX > 90){\n angleX.set(90);\n //Restrict the rotation to angles greater than 5.\n } else if (newAngleX < 5){\n angleX.set(5);\n } else {\n angleX.set(newAngleX);\n }\n angleY.set(anchorAngleY + (dragStartX - event.getSceneX())*0.2);\n });\n\n //Add an event listener to move the camera away or towards the scene using the mouse wheel.\n scene.setOnScroll(event -> {\n Double delta = event.getDeltaY();\n //If the mouse scrolls in, and the camera is not too close, then move the camera closer.\n if(delta > 0 && camera.getTranslateZ() <= -100){\n camera.setTranslateZ(camera.getTranslateZ()*0.975);\n //Else, if the mouse scrolls out and it's not too far away, then move the camera away.\n } else if(delta <0 && camera.getTranslateZ() >= -3000){\n camera.setTranslateZ(camera.getTranslateZ()* 1/0.975);\n }\n });\n }", "@Override\n\tpublic void mouseWheelMoved(MouseEvent arg0) {\n\t\t\n\t}", "public void keyPressed(KeyEvent evt) {\n Vector3f translate = new Vector3f();\n Vector3f transball = new Vector3f();\n \n plane_trans.get( translate ); \n ball_trans.get( transball ); \n \n if (evt.getKeyChar()=='a') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(Math.PI/36.0d);\n plane_trans.mul(rotate);\n \n //transball.x += 0.4f;\n \n \n \n }\n if (evt.getKeyChar()=='d') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n //transball.x -= 0.3f;\n }\n \n /*if (evt.getKeyChar()=='s') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y += 0.5f;\n }*/\n \n /*if (evt.getKeyChar()=='w') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y -= 0.4f;\n \n }*/\n \n if (evt.getKeyChar()=='i') {\n //transball.x = 0.0f;\n //transball.y = -3.00f;\n //transball.z = 0.3f;\n plane_trans.set(new Vector3f(0.0f, 1.5f, 9985.0f));\n \n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/3.0d);\n plane_trans.mul(rotate);\n }\n \n if(evt.getKeyChar()=='l'){\n stime = 2000;\n movement();\n \n \n }\n \n // (-5,5) (-5,-4) (5,-4) (5,5)\n // x varies from -5 to 5\n // y varies from 5 to -4\n \n /*if(transball.x< -5 || transball.x>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }\n if(transball.y < -4 || transball.y>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }*/\n \n \n //ball_trans.setTranslation( transball );\n //ballTG.setTransform(ball_trans);\n \n plane_trans.setTranslation( translate );\n planeTG.setTransform(plane_trans);\n \n // make a rectangle and usse its four coordinates to check where the ball is in the area or outside\n // resetball();\n \n \n \n }", "private void updateRotated() {\r\n\r\n\tfor (int n = 0; n < npoints * 3; n += 3) {\r\n\r\n\t // take the linear sum of local co-ords with local\r\n\t // unit vectors and then translate by adding the local\r\n\t // origin's co-ords\r\n\t ps[n] = locals[n] * i[0] + locals[n + 1] * j[0] + locals[n + 2] * k[0];\r\n\t ps[n + 1] = locals[n] * i[1] + locals[n + 1] * j[1] + locals[n + 2] * k[1];\r\n\t ps[n + 2] = locals[n] * i[2] + locals[n + 1] * j[2] + locals[n + 2] * k[2];\r\n\r\n\t ps[n] += p[0];\r\n\t ps[n + 1] += p[1];\r\n\t ps[n + 2] += p[2];\r\n\t}\r\n\r\n\t// reset bounding box and clear dirty flags\r\n\tbox.setBB();\r\n\tdirtyR = false;\r\n\tdirtyT = false;\r\n\r\n\t// normals must be reset\r\n\tthis.setNormals();\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n\t_roll = roll;\r\n }", "public abstract void update(MouseWheelEvent evt, int mode);", "@Override\n public void updateScene() {\n scene.backgroundColor().setAll(new Color4(224, 237, 246, 255));\n\n if (!object3DConfigured || !sensor.validValue())\n return;\n\n IotSensor.Value value = sensor.getValue();\n object3D.rotation().x = value.getRoll();\n object3D.rotation().y = value.getYaw();\n object3D.rotation().z = value.getPitch();\n }", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "@Override\n\tpublic void mouseWheelMoved(int arg0) {\n\t}", "@Override\n public native void mouseWheel(int wheelAmt);", "public void setVelocity(double x, double y, double z) {\n/* 72 */ this.motionX = x;\n/* 73 */ this.motionY = y;\n/* 74 */ this.motionZ = z;\n/* */ \n/* 76 */ if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F) {\n/* */ \n/* 78 */ float var7 = MathHelper.sqrt_double(x * x + z * z);\n/* 79 */ this.prevRotationYaw = this.rotationYaw = (float)(Math.atan2(x, z) * 180.0D / Math.PI);\n/* 80 */ this.prevRotationPitch = this.rotationPitch = (float)(Math.atan2(y, var7) * 180.0D / Math.PI);\n/* */ } \n/* */ }", "private void updateTransform() {\n Matrix matrix = new Matrix();\n float centerX = dataBinding.viewFinder.getWidth() / 2f;\n float centerY = dataBinding.viewFinder.getHeight() / 2f;\n int rotation = dataBinding.viewFinder.getDisplay().getRotation();\n int rotationDegrees = 0;\n switch (rotation) {\n case Surface.ROTATION_0:\n rotationDegrees = 0;\n break;\n case Surface.ROTATION_90:\n rotationDegrees = 90;\n break;\n case Surface.ROTATION_180:\n rotationDegrees = 180;\n break;\n case Surface.ROTATION_270:\n rotationDegrees = 270;\n break;\n default:\n }\n matrix.postRotate(-rotationDegrees, centerX, centerY);\n }", "ArrayList<Point3D> CameraRotate(ArrayList<Point3D>three_list){\r\n\t\tdouble theta=((double)pCanvas.iterations/1000)*2*Math.PI; //updates theta\r\n\t\tif(rotateCamera==1){\r\n\t\t\tthree_list=utils.rotateAllPointsAroundX(three_list, -theta);\r\n\r\n\t\t}\r\n\t\tif(rotateCamera==2){\r\n\t\tthree_list=utils.rotateAllPointsAroundY(three_list, -theta);\r\n\t\t}\r\n\t\tif(rotateCamera==3){\r\n\t\t\tthree_list=utils.rotateAllPointsAroundZ(three_list, -theta);\r\n\r\n\t\t}\r\n\t\treturn three_list;\r\n\t}", "public void setZScale(double zScale) {\n zScaleFactor = zScale;\n }", "abstract void translate(double x, double y, double z);", "@Override\n\tpublic boolean is3D() {\n\t\treturn true;\n\t}", "public void mouseWheelMoved(MouseWheelEvent event) {\n\n\t\t\tint notches = event.getWheelRotation();\n\n\t\t\tif (SIZE > 0) {\n\n\t\t\t\tif (notches > 0)\n\t\t\t\t\tSIZE += 1;\n\t\t\t\telse\n\t\t\t\t\tSIZE -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(SIZE <= 0)\n\t\t\t\tSIZE = 1;\n\t\t}", "private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }", "public void mouseWheelMoved(MouseWheelEvent e) {\n \t if (++nbTicks >= MOLETTE_TICKS) {\n \t\t nbTicks = 0;\n \t\t app.modifyZoom(e.getWheelRotation() * MOLETTE_TAUX);\n \t }\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "public void onUpdate() {\n/* 89 */ this.lastTickPosX = this.posX;\n/* 90 */ this.lastTickPosY = this.posY;\n/* 91 */ this.lastTickPosZ = this.posZ;\n/* 92 */ super.onUpdate();\n/* 93 */ this.motionX *= 1.15D;\n/* 94 */ this.motionZ *= 1.15D;\n/* 95 */ this.motionY += 0.04D;\n/* 96 */ moveEntity(this.motionX, this.motionY, this.motionZ);\n/* 97 */ float var1 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);\n/* 98 */ this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI);\n/* */ \n/* 100 */ for (this.rotationPitch = (float)(Math.atan2(this.motionY, var1) * 180.0D / Math.PI); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 105 */ while (this.rotationPitch - this.prevRotationPitch >= 180.0F)\n/* */ {\n/* 107 */ this.prevRotationPitch += 360.0F;\n/* */ }\n/* */ \n/* 110 */ while (this.rotationYaw - this.prevRotationYaw < -180.0F)\n/* */ {\n/* 112 */ this.prevRotationYaw -= 360.0F;\n/* */ }\n/* */ \n/* 115 */ while (this.rotationYaw - this.prevRotationYaw >= 180.0F)\n/* */ {\n/* 117 */ this.prevRotationYaw += 360.0F;\n/* */ }\n/* */ \n/* 120 */ this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;\n/* 121 */ this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;\n/* */ \n/* 123 */ if (this.fireworkAge == 0 && !isSlient())\n/* */ {\n/* 125 */ this.worldObj.playSoundAtEntity(this, \"fireworks.launch\", 3.0F, 1.0F);\n/* */ }\n/* */ \n/* 128 */ this.fireworkAge++;\n/* */ \n/* 130 */ if (this.worldObj.isRemote && this.fireworkAge % 2 < 2)\n/* */ {\n/* 132 */ this.worldObj.spawnParticle(EnumParticleTypes.FIREWORKS_SPARK, this.posX, this.posY - 0.3D, this.posZ, this.rand.nextGaussian() * 0.05D, -this.motionY * 0.5D, this.rand.nextGaussian() * 0.05D, new int[0]);\n/* */ }\n/* */ \n/* 135 */ if (!this.worldObj.isRemote && this.fireworkAge > this.lifetime) {\n/* */ \n/* 137 */ this.worldObj.setEntityState(this, (byte)17);\n/* 138 */ setDead();\n/* */ } \n/* */ }", "public void transformChanged(Transform3D transform) {\r\n\t}", "public static void main( String args[] )\n {\n JFrame f = new JFrame(\"Test for AltAzController\");\n f.setBounds(0,0,200,200);\n AltAzController controller = new AltAzController();\n// controller.setVirtualScreenSize( 2, 2 );\n f.getContentPane().add( controller );\n f.setVisible( true );\n\n\n JFrame window = new JFrame(\"Test for AltAzController\");\n window.setBounds(20,20,500,500);\n ThreeD_JPanel test = new ThreeD_JPanel();\n window.getContentPane().add( test );\n window.setVisible( true );\n\n controller.addControlledPanel( test );\n IThreeD_Object objs[] = new IThreeD_Object[6];\n Vector3D pts[] = new Vector3D[6];\n pts[0] = new Vector3D( -1, 1, 0 );\n pts[1] = new Vector3D( 1, 1, 0 );\n pts[2] = new Vector3D( 1, 1, 1 );\n pts[3] = new Vector3D( 1, 1, 0 );\n pts[4] = new Vector3D( 1, -1, 0 );\n pts[5] = new Vector3D( -1, -1, 0 );\n objs[0] = new Polyline( pts, Color.CYAN );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 1, 0, 0 );\n objs[1] = new Polyline( pts, Color.RED );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 0, 1, 0 );\n objs[2] = new Polyline( pts, Color.GREEN );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 0, 0, 1 );\n objs[3] = new Polyline( pts, Color.BLUE );\n\n Vector3D center = new Vector3D( -1, -1, 1 );\n Vector3D x_vec = new Vector3D( -1, 1, 0 );\n Vector3D y_vec = new Vector3D( 0, 0, 1 );\n float width = 3;\n float height = 2;\n Color[][] colors = { { Color.RED, Color.GREEN, Color.BLUE },\n { Color.YELLOW, Color.CYAN, Color.MAGENTA },\n { Color.ORANGE, Color.GRAY, Color.WHITE } };\n\n ImageRectangle1 im_rect = new ImageRectangle1( center,\n x_vec,\n y_vec,\n width,\n height,\n colors );\n objs[4] = im_rect;\n\n\n center = new Vector3D( 1, 1, 1 );\n y_vec = new Vector3D( 1, 1, 0 );\n x_vec = new Vector3D( 1, -1, 0 );\n width = 2;\n height = 4;\n Color[][] colors_2 = { { Color.RED, Color.GREEN, Color.BLUE },\n { Color.YELLOW, Color.CYAN, Color.MAGENTA } };\n\n ImageRectangle1 im_rect_2 = new ImageRectangle1( center,\n x_vec,\n y_vec,\n width,\n height,\n colors_2 );\n objs[5] = im_rect_2;\n\n\n test.setObjects( \"SAMPLE_OBJECTS\", objs );\n\n controller.apply( true );\n }", "public BranchGroup cubo3(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.01,1,1);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.01,-.5,2);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n\n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "@Override\n\tpublic void input(float delta) // testing camera\n\t{\n\t\tif(Input.getKey(Input.KEY_LEFT))\n\t\t\tgetTransform().rotate(yAxis, (float)Math.toRadians(-2));\n\t\tif(Input.getKey(Input.KEY_RIGHT))\n\t\t\tgetTransform().rotate(yAxis, (float)Math.toRadians(2));\n\t\t\n\t\t}", "private void updateCamera() {\n\t\tVector3f x = new Vector3f();\n\t\tVector3f y = new Vector3f();\n\t\tVector3f z = new Vector3f();\n\t\tVector3f temp = new Vector3f(this.mCenterOfProjection);\n\n\t\ttemp.sub(this.mLookAtPoint);\n\t\ttemp.normalize();\n\t\tz.set(temp);\n\n\t\ttemp.set(this.mUpVector);\n\t\ttemp.cross(temp, z);\n\t\ttemp.normalize();\n\t\tx.set(temp);\n\n\t\ty.cross(z, x);\n\n\t\tMatrix4f newMatrix = new Matrix4f();\n\t\tnewMatrix.setColumn(0, x.getX(), x.getY(), x.getZ(), 0);\n\t\tnewMatrix.setColumn(1, y.getX(), y.getY(), y.getZ(), 0);\n\t\tnewMatrix.setColumn(2, z.getX(), z.getY(), z.getZ(), 0);\n\t\tnewMatrix.setColumn(3, mCenterOfProjection.getX(),\n\t\t\t\tmCenterOfProjection.getY(), mCenterOfProjection.getZ(), 1);\n\t\ttry {\n\t\t\tnewMatrix.invert();\n\t\t\tthis.mCameraMatrix.set(newMatrix);\n\t\t} catch (SingularMatrixException exc) {\n\t\t\tLog.d(\"Camera\",\n\t\t\t\t\t\"SingularMatrixException on Matrix: \"\n\t\t\t\t\t\t\t+ newMatrix.toString());\n\t\t}\n\t}", "public final native void translate3d(String x, String y, String z, Element node) /*-{ this.translate3d(x, y, z, node); }-*/;", "@Override\r\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\t\tif (e.getPreciseWheelRotation() > 0) {\r\n\t\t\t\t\timgPanel.reScale(imgPanel.scale * 1.1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\timgPanel.reScale(imgPanel.scale * 0.9);\r\n\t\t\t\t}\r\n\t\t\t\tlayeredPane.setPreferredSize(new Dimension((int) (img.getWidth() * imgPanel.finalScale),\r\n\t\t\t\t\t\t(int) (imgPanel.getHeight() * imgPanel.finalScale)));\r\n\t\t\t\tlayeredPane.setBounds(0, 0, (int) (img.getWidth() * imgPanel.finalScale),\r\n\t\t\t\t\t\t(int) (imgPanel.getHeight() * imgPanel.finalScale));\r\n\t\t\t\tlayeredPane.repaint();\r\n\t\t\t\tscrollPane.repaint();\r\n\t\t\t}", "public boolean is3D() {\n return _is3D;\n }", "protected void maintainInAxis(Coord2d mouse) {\n View view = getChart().getView();\n View2DLayout layout = view.get2DLayout();\n\n BoundingBox3d bounds3d = getChart().getView().getBounds();\n\n\n\n // Get corners\n Coord3d cornerMin3D = null;\n Coord3d cornerMax3D = null;\n\n\n if (view.is2D_XY()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXminYminZmax();\n }\n }\n\n else if (view.is2D_XZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmax();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmin();\n }\n }\n\n else if (view.is2D_YZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmin();\n }\n }\n\n // System.out.println(\"Corner min 3D : \" + cornerMin3D);\n // System.out.println(\"Corner max 3D : \" + cornerMax3D);\n\n // Project 3D bounds to 2D\n Coord3d cornerMin2D = modelToScreen(cornerMin3D); // bottom left\n Coord3d cornerMax2D = modelToScreen(cornerMax3D); // top right\n\n Coord2d scale = scaled?new Coord2d(1,1):getChart().getView().getPixelScale();\n \n cornerMin2D.x /= scale.x; \n cornerMin2D.y /= scale.y; \n cornerMax2D.x /= scale.x; \n cornerMax2D.y /= scale.y; \n \n // System.out.println(mouse + \" corner min \" + cornerMin2D + \" corner max \" + cornerMax2D);\n\n // System.out.println(\"Corner min 2D : \" + cornerMin);\n // System.out.println(\"Corner max 2D : \" + cornerMax);\n\n // Crop on X bounds\n if (mouse.x < cornerMin2D.x)\n mouse.x = cornerMin2D.x;\n if (mouse.x > cornerMax2D.x)\n mouse.x = cornerMax2D.x;\n\n // Crop on Y bounds\n int height = (int)(getChart().getCanvas().getRendererHeight() / scale.y);\n\n float flipedCornerMinY = height - cornerMin2D.y;\n float flipedCornerMaxY = height - cornerMax2D.y;\n float flipedMouseY = height - mouse.y;\n\n if (flipedMouseY < cornerMin2D.y)\n mouse.y = flipedCornerMinY;\n if (flipedMouseY > cornerMax2D.y)\n mouse.y = flipedCornerMaxY;\n }", "void rotate(float x, float y, float z) {\n target_angle[0] += x;\n target_angle[1] += y;\n target_angle[2] += z;\n postSetAngle();\n }", "public double update() {\n\t\t double time=System.currentTimeMillis();\n\t\t boolean update=false;\n\t\t \n\t\t// Keyboard handling\n\t\tif (scene.ready) {\n\t\t\tif (command==KeyEvent.VK_D) \n\t\t\t\tcamera.y_rot=camera.y_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_A)\n\t\t\t\tcamera.y_rot=camera.y_rot-0.02;\n\t\t\tif (command==KeyEvent.VK_Q)\n\t\t\t\tcamera.z_rot=camera.z_rot-0.02;\n\t\t\tif (command==KeyEvent.VK_E)\n\t\t\t\tcamera.z_rot=camera.z_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_R)\n\t\t\t\tcamera.x_rot=camera.x_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_F)\n\t\t\t\tcamera.x_rot=camera.x_rot-0.02;\n\n\t\t\tif (command==KeyEvent.VK_W)\n\t\t\t\tcamera.translateWithRespectToView(0,0,250);\n\t\t\tif (command==KeyEvent.VK_S)\n\t\t\t\tcamera.translateWithRespectToView(0,0,-250);\n\t\t\tif (command==KeyEvent.VK_Z)\n\t\t\t\tcamera.translateWithRespectToView(-250,0,0);\n\t\t\tif (command==KeyEvent.VK_X)\n\t\t\t\tcamera.translateWithRespectToView(250,0,0);\n\t\t\tif (command==KeyEvent.VK_T)\n\t\t\t\tcamera.translateWithRespectToView(0,250,0);\n\t\t\tif (command==KeyEvent.VK_G)\n\t\t\t\tcamera.translateWithRespectToView(0,-250,0);\n\n\t\t\tif (command==KeyEvent.VK_J)\n\t\t\t\tvobject[0].rotate(0,-0.01,0);\n\t\t\tif (command==KeyEvent.VK_L)\n\t\t\t\tvobject[0].rotate(0,0.01,0);\n\t\t\tif (command==KeyEvent.VK_I)\n\t\t\t\tvobject[0].rotate(0.01,0.0,0);\n\t\t\tif (command==KeyEvent.VK_K)\n\t\t\t\tvobject[0].rotate(-0.01,0,0);\n\t\t\tif (command==KeyEvent.VK_U)\n\t\t\t\tvobject[0].rotate(0,0.00,-0.01);\n\t\t\tif (command==KeyEvent.VK_O)\n\t\t\t\tvobject[0].rotate(0.0,0,0.01);\n\n\t\t\tif (command==KeyEvent.VK_1) \n\t\t\t{scene.dot_field= !scene.dot_field;}\n\t\t\tif (command==KeyEvent.VK_2)\n\t\t\t{scene.wireframe= !scene.wireframe;}\n\t\t\tif (command==KeyEvent.VK_3)\n\t\t\t{scene.solid_poly= !scene.solid_poly;}\n\t\t\tif (command==KeyEvent.VK_4)\n\t\t\t{scene.hidden_face= !scene.hidden_face;}\n\t\t\tif (command==KeyEvent.VK_5)\n\t\t\t{scene.simple_shaded= !scene.simple_shaded;}\n\t\t\tif (command==KeyEvent.VK_6)\n\t\t\t{scene.z_sorted= !scene.z_sorted;}\n\t\t\tif (command==KeyEvent.VK_7)\n\t\t\t{scene.gouraud_shaded= !scene.gouraud_shaded;}\n\t\t\tif (command==KeyEvent.VK_8)\n\t\t\t{scene.fullstats= !scene.fullstats;}\n\n\t\t\tif (command==KeyEvent.VK_0 && scene.ready)\n\t\t\t{worldgrid.diamondSquare(1,roughness,1); \n\t\t\t}\n\n\t\t\tif (command==KeyEvent.VK_9) \n\t\t\t{scene.surface= !scene.surface;}\n\n\t\t\tif (command==KeyEvent.VK_P && scene.ready) {\n\t\t\t\t//Planet myplanet=new Planet(60);\n\t\t\t\tmyplanet.Iterate(0.1,1,1);\n\t\t\t\t//myplanet.scale(2000);\n\t\t\t\tvobject[0]=myplanet;\n\t\t\t}\n\n\t\t\tcommand=0;\n\t\t}\n\n\t\t// generic\n\n\t\tif (!scene.surface) {\t\n\t\t\tif (!scene.test) {\n\t\t\t\tvobject[0].rotate(0.000,0.002,0.000);\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvobject[0].rotate(0.008,0.005,0.01);\n\t\t\t}\n\t\t}\n\n\n\t\n\t\tif ((first_time) && (scene.surface)) {foreThoughtThread.start(); first_time=false; }\n\t\tupdateLighting();\n\t\treturn tick_time_seconds;\n\t}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e){\n \n }", "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 }", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "@Override\n\tpublic void render3D(Shader shader, RenderingEngine engine) {\n\t\t\n\t}", "public abstract void mouseWheel(MouseWheelEvent mouseWheelEvent);", "private void UpdateTransform()\n\t{\t\n\t\tTransform transform = parent.transform;\n\t\t\n\t\tVector2 friction = Vector2.Scale(-frictionCoefficient,velocity);\n\t\tfloat angularFriction = -frictionCoefficient*angularVelocity;\n\t\t\n\t\t//Newton integration P = P + dP + acceleration * dt^2\n\t\ttransform.position.x += velocity.x + (acceleration.x *deltaTime*deltaTime) + friction.x;\n\t\ttransform.position.y += velocity.y + (acceleration.y *deltaTime*deltaTime) + friction.y;\n\t\ttransform.rotation += angularVelocity + angularAcceleration*deltaTime*deltaTime + angularFriction ;\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setRotation(editable.getEntity().getComponent(Transform.class).getRotation().add(0, 0, -Math.signum(lastMouseWorldPosition.get(Vector.Y) - Mouse.worldCoordinates.get(Vector.Y)) * rotationAngle));\t\n\t\t\t}\n\t\t\t\n\t\t\t// Update all selected editables\n//\t\t\tfor(Editable editable: SelectionTypeState.selectedEditables){\n//\t\t\t\t// Set the rotation\n//\t\t\t\teditable.getEntity().getComponent(Transform.class).getRotation().set(editable.getEntity().getComponent(Transform.class).getRotation().cpy().add(0, 0, -Math.signum(lastMouseWorldPosition.y - Mouse.worldCoordinates.y) * rotationAngle));\n//\t\t\t}\n\n\t\t\t// Update last mouse world position\n\t\t\tlastMouseWorldPosition = Mouse.worldCoordinates.copy();\n\t\t}", "@Override\r\n public void mouseWheelMoved(MouseWheelEvent e) {\r\n\r\n }", "@Override\n public void scale(double x, double y, double z) {\n GL11.glScaled(x, y, z);\n }", "public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }", "public void update() {\n z += speed; // increase z by speed\n if (z > 750) { z = -5000; reset(); } // if beyond the camera, reset() and start again\n transparency = z<-2500?map(z, -5000, -2500, 0, 255):255; // far away slowly increase the transparency, within range is fully opaque\n }", "public void mouseWheelMoved(MouseWheelEvent e) {\n double timeStep = TIME_STEP_MIN;\n if (e.isShiftDown()) {\n timeStep = TIME_STEP_MIN * 10;\n }\n if (e.getWheelRotation() > 0) {\n prevTime(timeStep);\n } else {\n nextTime(timeStep);\n }\n }", "@Override\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tImageIcon tap = null;\n\t\t\t\tif (e.getWheelRotation() < 0) {\n\t\t\t\t\t// zoom in - increase size\n\n\t\t\t\t\tif (zoom_count < 0) {\n\t\t\t\t\t\tzoom_count = 0;\n\t\t\t\t\t}\n\t\t\t\t\tzoom_count++;\n\t\t\t\t\t// fetch key frame number and get x, y of that frame in new\n\t\t\t\t\t// tapestry then crop image to that frame\n\t\t\t\t\tHashtable<Integer, ArrayList<ArrayList<Integer>>> xy = indexMap.getIndexTable();\n\t\t\t\t\ttapestry.removeAll();\n\t\t\t\t\tBufferedImage i = null;\n\t\t\t\t\tif (zoom_count == 1) {\n\t\t\t\t\t\tint pix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(1).get(0));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom1 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 5;\n\n\t\t\t\t\t\tif (xy.get(frame).get(1).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(1).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(1).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(1).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count=1;\n\n\t\t\t\t\t} else if (zoom_count >= 2) {\n\n\t\t\t\t\t\tint pix = zoom1IndexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(2).get(0));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom2 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 20;\n\n\t\t\t\t\t\tif (xy.get(frame).get(2).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(2).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(2).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(2).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count=2;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tJLabel label = new JLabel(\"\", tap, JLabel.CENTER);\n\n\t\t\t\t\ttapestry.add(label, BorderLayout.CENTER);\n\n\t\t\t\t\ttapestry.revalidate();\n\t\t\t\t\ttapestry.repaint();\n\n\t\t\t\t} else {\n\t\t\t\t\t// zoom out - decrease size\n\t\t\t\t\tif (zoom_count > 2) {\n\t\t\t\t\t\tzoom_count = 2;\n\t\t\t\t\t}\n\t\t\t\t\tHashtable<Integer, ArrayList<ArrayList<Integer>>> xy = indexMap.getIndexTable();\n\t\t\t\t\ttapestry.removeAll();\n\t\t\t\t\tif (zoom_count >= 2) {\n\t\t\t\t\t\tint pix = zoom2IndexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(1).get(0));\n\t\t\t\t\t\tBufferedImage i = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom1 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 20;\n\n\t\t\t\t\t\tif (xy.get(frame).get(1).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(1).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(1).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(1).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count = 1;\n\n\t\t\t\t\t} else if (zoom_count <= 1) {\n\t\t\t\t\t\ttap = new ImageIcon(nameOfTapestry + \"_\" + method + \"_\" + threshold + \".png\");\n\t\t\t\t\t\tzoom_count = 0;\n\t\t\t\t\t}\n\t\t\t\t\tJLabel label = new JLabel(\"\", tap, JLabel.CENTER);\n\n\t\t\t\t\ttapestry.add(label, BorderLayout.CENTER);\n\n\t\t\t\t\ttapestry.revalidate();\n\t\t\t\t\ttapestry.repaint();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public void doRender(EntityNinjastar ninjastar, double transX, double transY, double transZ, float param5, float dir){\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n GlStateManager.pushMatrix();\n\n GlStateManager.translate((float) transX, (float) transY, (float) transZ);\n\n //moved\n GlStateManager.enableRescaleNormal();\n float scale = 0.75F;\n GlStateManager.scale(scale, scale, scale);\n\n GlStateManager.rotate(ninjastar.prevRotationYaw + (ninjastar.rotationYaw - ninjastar.prevRotationYaw) * dir - 90.0F, 0.0F, 1.0F, 0.0F);\n GlStateManager.rotate(ninjastar.getRandomTilt(), 1.0F, 0.0F, 0.0F);\n\n //moved\n bindEntityTexture(ninjastar);\n\n Tessellator tessellator = Tessellator.getInstance();\n WorldRenderer worldRenderer = tessellator.getWorldRenderer();\n\n// GlStateManager.enableRescaleNormal();\n\n// float scale = 0.05F;\n// GlStateManager.scale(scale, scale, scale);\n\n GL11.glNormal3f(0.0F, 0.0F, scale);\n\n worldRenderer.startDrawingQuads();\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 1);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 1);\n tessellator.draw();\n\n GlStateManager.rotate(100.0F, 1.0F, 0.0F, 0.0F);\n worldRenderer.startDrawingQuads();\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 1);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 1);\n tessellator.draw();\n\n //added\n this.renderItemNinjastar.renderItemModel(this.func_177082_d(ninjastar));\n\n GlStateManager.disableRescaleNormal();\n GlStateManager.popMatrix();\n\n super.doRender(ninjastar, transX, transY, transZ, param5, dir);\n\n }", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\tfloat currentScale = (float) (-Math.signum(lastMouseWorldPosition.get(Vector.Y) - Mouse.worldCoordinates.get(Vector.Y)) * scale);\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setScale(editable.getEntity().getComponent(Transform.class).getScale().add(currentScale, currentScale, 0));\n\t\t\t}\n\t\t\t\n\t\t\t// Update last mouse world position\n\t\t\tlastMouseWorldPosition = Mouse.worldCoordinates.copy();\n\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "public BranchGroup cubo2(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.2,.05,.2);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(.5,.6,.5);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "private void m128161c(boolean z) {\n if (z) {\n ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.f104234x, \"rotation\", new float[]{0.0f, 180.0f});\n ofFloat.setDuration(300);\n ofFloat.start();\n } else {\n ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.f104234x, \"rotation\", new float[]{180.0f, 0.0f});\n ofFloat2.setDuration(300);\n ofFloat2.start();\n }\n this.f104235y.mo99814a(z);\n }", "@Override\n public void quaternion(int w, int x, int y, int z, int timestamp) {\n }", "private static void computeAccurateXYZ(OrbitData data, double[] xyz, double time) {\n \n final double a = Constants.semiMajorAxis;\n final double b = Constants.semiMinorAxis;\n final double a2 = a*a;\n final double b2 = b*b;\n final double del = 0.002;\n final int maxIter = 200;\n \n Matrix X = new Matrix(3, 1);\n final Matrix F = new Matrix(3, 1);\n final Matrix J = new Matrix(3, 3);\n \n X.set(0, 0, xyz[0]);\n X.set(1, 0, xyz[1]);\n X.set(2, 0, xyz[2]);\n \n J.set(0, 0, data.xVel);\n J.set(0, 1, data.yVel);\n J.set(0, 2, data.zVel);\n \n for (int i = 0; i < maxIter; i++) {\n \n final double x = X.get(0,0);\n final double y = X.get(1,0);\n final double z = X.get(2,0);\n \n final double dx = x - data.xPos;\n final double dy = y - data.yPos;\n final double dz = z - data.zPos;\n \n F.set(0, 0, data.xVel*dx + data.yVel*dy + data.zVel*dz);\n F.set(1, 0, dx*dx + dy*dy + dz*dz - Math.pow(time*Constants.halfLightSpeed, 2.0));\n F.set(2, 0, x*x/a2 + y*y/a2 + z*z/b2 - 1);\n \n J.set(1, 0, 2.0*dx);\n J.set(1, 1, 2.0*dy);\n J.set(1, 2, 2.0*dz);\n J.set(2, 0, 2.0*x/a2);\n J.set(2, 1, 2.0*y/a2);\n J.set(2, 2, 2.0*z/b2);\n \n X = X.minus(J.inverse().times(F));\n \n if (Math.abs(F.get(0,0)) <= del && Math.abs(F.get(1,0)) <= del && Math.abs(F.get(2,0)) <= del) {\n break;\n }\n }\n \n xyz[0] = X.get(0,0);\n xyz[1] = X.get(1,0);\n xyz[2] = X.get(2,0);\n }", "public void mouseDrag(Point2d worldCoordFrom, Point2d worldCoordTo) {\n \n if (selectionMade) {\n rotationPerformed=true;\n /*\n * Determine the quadrant the user is currently in, relative to the\n * rotation center.\n */\n int quadrant = 0;\n if ((worldCoordFrom.x >= rotationCenter.x))\n if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 1; // 12 to 3 o'clock\n else\n quadrant = 2; // 3 to 6 o'clock\n else if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 4; // 9 to 12 o'clock\n else\n quadrant = 3; // 6 to 9 o'clock\n \n /*\n * The quadrant and the drag combined determine in which direction\n * the rotation will be done. For example, dragging in direction\n * left/down in quadrant 4 means rotating counter clockwise.\n */\n final int SLOW_DOWN_FACTOR=4;\n switch (quadrant) {\n case 1:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 2:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 3:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n case 4:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n }\n \n /* For more info on the mathematics, see Wiki at \n * http://en.wikipedia.org/wiki/Coordinate_rotation\n */\n double cosine = java.lang.Math.cos(rotationAngle);\n double sine = java.lang.Math.sin(rotationAngle);\n for (int i = 0; i < startCoordsRelativeToRotationCenter.length; i++) {\n double newX = (startCoordsRelativeToRotationCenter[i].x * cosine)\n - (startCoordsRelativeToRotationCenter[i].y * sine);\n double newY = (startCoordsRelativeToRotationCenter[i].x * sine)\n + (startCoordsRelativeToRotationCenter[i].y * cosine);\n \n Point2d newCoords = new Point2d(newX + rotationCenter.x, newY\n + rotationCenter.y);\n \n selection.getConnectedAtomContainer().getAtom(i).setPoint2d(\n newCoords);\n }\n }\n chemModelRelay.updateView();\n }", "public void setFrame(float[] p, float[] v, float roll) {\r\n\r\n\t// any movement of origin since we last updated the co-ords\r\n\tif (p[0] == _p[0] && p[1] == _p[1] && p[2] == _p[2]) {\r\n\t // local origin has not moved\r\n\t // so lets look at rotation\r\n\t} else {\r\n\t this.p[0] = p[0];\r\n\t this.p[1] = p[1];\r\n\t this.p[2] = p[2];\r\n\t dirtyT = true;\r\n\t}\r\n\r\n\t// any rotation of axes ?\r\n\tif (roll == _roll && j[0] == v[0] && \r\n\t j[1] == v[1] && j[2] == v[2]) {\r\n\t // no rotation - job done !\r\n\t return;\r\n\t}\r\n\r\n\tj[0] = v[0];\r\n\tj[1] = v[1];\r\n\tj[2] = v[2];\r\n\tthis.roll = roll;\r\n\r\n\tTools3d.cross(v,UP,i_);\r\n\tTools3d.cross(i_, j, k_);\r\n\r\n\t// now apply roll\r\n\tif (roll != 0) {\r\n\t //Tools3d.linearSum(Tools3d.quickSin(roll), i_, Tools3d.quickCos(roll), k_, k);\r\n\t //Tools3d.linearSum(Tools3d.quickCos(roll), i_, - Tools3d.quickSin(roll), k_, i);\r\n\t Tools3d.linearSum((float) Math.sin(roll), i_, (float) Math.cos(roll), k_, k);\r\n\t Tools3d.linearSum((float) Math.cos(roll), i_, (float) - Math.sin(roll), k_, i);\r\n\t} else {\r\n\t k[0] = k_[0]; \r\n\t k[1] = k_[1]; \r\n\t k[2] = k_[2];\r\n\t i[0] = i_[0];\r\n\t i[1] = i_[1];\r\n\t i[2] = i_[2];\r\n\t}\r\n\tdirtyR = true;\r\n }", "@Override\n\t\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e)\n\t\t\t\t\t{\n\t\t\t\t\tchangeFont(JPanelSetMatrix.this, e.getWheelRotation());\n\t\t\t\t\t}", "public void mouseWheel(MouseEvent event) {\n ackEvent();\n float e = event.getCount();\n verticalScroll -= 10 * e;\n if (verticalScroll >= MAX_SCROLL) verticalScroll = MAX_SCROLL;\n else if (verticalScroll <= MIN_SCROLL) verticalScroll = MIN_SCROLL;\n }", "public void zoomOut() {\n if (scale > 0.05) {\n double scaleFactor = (scale - 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale -= 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n }", "public void stateChanged(ChangeEvent e) {\n\t\t\t\tplane.setSpeed(jsThrottle.getValue());\n\t\t\t}", "public MouseRotateXZ() {\r\n\t\tsuper(0);\r\n\t}", "private void transformObject(int x, int y) {\n double sx, sy, l, r, nx, ny, tx, ty, alpha, origCX = 0, origCY = 0;\n Rectangle bnds;\n\n if(curr_obj == transformPointers[Action.ROTATE]) {\n /* the mouse vector 1 */\n GeoVector mouseVector = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n /* the rotation vector. i.e. the fixed vector that will be used as origin composed by the subtraction of the object center with the rotation point */\n GeoVector rotationVector = new GeoVector(this.lastPosition[0], this.lastPosition[1], this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseVector.normalize();\n rotationVector.normalize();\n\n alpha = mouseVector.getAngleWith(rotationVector.getX(), rotationVector.getY());\n\n /** After passing the 180 degrees, the atan2 function returns a negative angle from 0 to PI. So this will convert the final gobal angle to 0-2PI */\n if(alpha < 0 ) {\n alpha = (2 * Math.PI) + alpha; \n }\n\n alpha -= this.currRotation;\n this.currRotation += alpha;\n\n Point c = new Point(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n this.aux_obj.uRotate((float)(-1.0*(alpha*(180/Math.PI))), c);\n \n } else {\n alpha = this.aux_obj.getRotation();\n\n /** Here we rotate the selected Graphic Object, it's tranformation points and the mouse coordinates back to the zero angle, to permit a correct object scalling. */\n if(alpha != 0.0) {\n origCX = this.aux_obj.getCenterX();\n origCY = this.aux_obj.getCenterY();\n this.aux_obj.uRotate((float)(alpha*-1.0), this.aux_obj.getCenter());\n rotateTransformPoints(alpha);\n GeoVector mouseCoord = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseCoord.rotate( ((alpha*-1.0) * (2.0*Math.PI))/360 );\n mouseCoord.addPoint(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n x = (int)mouseCoord.getX();\n y = (int)mouseCoord.getY();\n\n }\n\n /** Tatami rotates the object from it's x and y point to the edges. So this means that sometimes we need to translate the object a few pixels to asure that it's upper left corner is on the same position. */\n if(curr_obj == transformPointers[Action.NORTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)-tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.NORTH]) {\n if(y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate(0, (int)-ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTH];\n }\n } else if(curr_obj == transformPointers[Action.NORTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHEAST];\n }\n\n } else if(curr_obj == transformPointers[Action.WEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n aux_obj.uTranslate((int)-tx, 0);\n aux_obj.scale( (float)sx, 1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.WEST];\n }\n } else if(curr_obj == transformPointers[Action.EAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n aux_obj.uTranslate((int)tx, 0);\n aux_obj.scale( (float)sx, (float)1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.EAST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)-tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTH]) {\n if(y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate(0, (int)ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTH];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHEAST];\n }\n }\n\n\n }\n \n }", "private void setThrustOut(ControlOutputs outputs, float cubeCoeff){\n float pitch = 0; //this.getCurrentInputs().getPitch();\n float maxThrust = this.getAutopilot().getConfig().getMaxThrust();\n int threshold = Math.round(THRESHOLD_DISTANCE);\n float gravity = this.getAutopilot().getConfig().getGravity();\n\n // Thrust\n float thrust = (float) ((maxThrust/4) + THRUST_FACTOR*this.getTotalMass()*gravity*cubeCoeff);\n //System.out.println(\"thrust: \" + thrust);\n outputs.setThrust(Math.max(Math.min(thrust, maxThrust), 0));\n if (getVelocityApprox().getzValue() < -50.f || pitch < 0){\n outputs.setThrust(0f);\n }\n }", "public ActionListener getRotationZListener() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tit.rotationZ(Math.PI/32);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "private void onScroll(double wheelDelta, Point2D mousePoint) {\n double zoomFactor = Math.exp(wheelDelta * zoomIntensity);\n\n Bounds innerBounds = zoomNode.getLayoutBounds();\n Bounds viewportBounds = getViewportBounds();\n\n // calculate pixel offsets from [0, 1] range\n double valX = this.getHvalue() * (innerBounds.getWidth() - viewportBounds.getWidth());\n double valY = this.getVvalue() * (innerBounds.getHeight() - viewportBounds.getHeight());\n scaleValue = scaleValue * zoomFactor;\n \n // calculate minimum zoom\n if(Math.max(target.getLayoutBounds().getWidth()*scaleValue, target.getLayoutBounds().getHeight()*scaleValue) < minViewPortSize) {\n\n \tscaleValue = minViewPortSize / Math.max(target.getLayoutBounds().getWidth(), target.getLayoutBounds().getHeight());\n updateScale();\n this.layout();\n \n } else if(scaleValue > zoom_max) {\n \tscaleValue = zoom_max;\n \tupdateScale();\n this.layout();\n }else {\n \tupdateScale();\n this.layout();\n\n // convert target coordinates to zoomTarget coordinates\n Point2D posInZoomTarget = target.parentToLocal(zoomNode.parentToLocal(mousePoint));\n\n // calculate adjustment of scroll position\n Point2D adjustment = target.getLocalToParentTransform().deltaTransform(posInZoomTarget.multiply(zoomFactor - 1));\n\n // convert back to [0, 1] range\n Bounds updatedInnerBounds = zoomNode.getBoundsInLocal();\n this.setHvalue((valX + adjustment.getX()) / (updatedInnerBounds.getWidth() - viewportBounds.getWidth()));\n this.setVvalue((valY + adjustment.getY()) / (updatedInnerBounds.getHeight() - viewportBounds.getHeight()));\n }\n }", "@Override\n public void act(float delta)\n {\n SCALE = PlayScreen.scale;\n\n if(actCount < 4)actCount++;\n\n dt=delta;\n if(!initialized)\n {\n mirror.setRotation(initRotation);\n\n dt = delta;\n positionChanged();\n\n if (hittime > (1.0 / 5.0))\n {\n if (hit >= 0) hit--;\n hittime = 0;\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n //setOrigin(mirror.getOriginX(), mirror.getOriginY());\n }\n\n if(initialized && hit>0)\n {\n positionChanged();\n\n if(hittime>=(1.0/5.0))\n {\n if(hit>0)hit--;\n hittime = 0;\n if (hit == 0)\n {\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n }\n\n }\n\n //Handles fading in/out of obstacle when triggered by a Toggle object\n if(fadeIn || fadeOut)\n {\n if(fadeIn)\n {\n if(mirror.getColor().a <0.95f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a + 1 * delta * 8 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, 1f);\n fadeIn = false;\n fadeOut = false;\n }\n }\n else\n {\n if(mirror.getColor().a >= 0.39f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a - 1 * delta * 15 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, Toggle.fadealpha);\n fadeIn = false;\n fadeOut = false;\n }\n }\n }\n\n\n\n\n if(!initialized)\n {\n initialized = true;\n }\n\n if(actCount<4){defineBody(); calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n if(poly.getRotation() != mirror.getRotation()){calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n super.act(delta);\n }", "private void initScene() {\n scene = new idx3d_Scene() {\n\n @Override\n public boolean isAdjusting() {\n return super.isAdjusting() || isAnimating() || isInStartedPlayer() || AbstractCube7Idx3D.this.isAdjusting();\n }\n\n @Override\n public void prepareForRendering() {\n validateAlphaBeta();\n validateScaleFactor();\n validateCube();\n validateStickersImage();\n validateAttributes(); // must be done after validateStickersImage!\n super.prepareForRendering();\n }\n @Override\n\t\tpublic /*final*/ void rotate(float dx, float dy, float dz) {\n super.rotate(dx, dy, dz);\n fireStateChanged();\n }\n };\n scene.setBackgroundColor(0xffffff);\n\n scaleTransform = new idx3d_Group();\n scaleTransform.scale(0.018f);\n\n for (int i = 0; i < locationTransforms.length; i++) {\n scaleTransform.addChild(locationTransforms[i]);\n }\n alphaBetaTransform = new idx3d_Group();\n alphaBetaTransform.addChild(scaleTransform);\n scene.addChild(alphaBetaTransform);\n\n scene.addCamera(\"Front\", idx3d_Camera.FRONT());\n scene.camera(\"Front\").setPos(0, 0, -4.9f);\n scene.camera(\"Front\").setFov(40f);\n\n scene.addCamera(\"Rear\", idx3d_Camera.FRONT());\n scene.camera(\"Rear\").setPos(0, 0, 4.9f);\n scene.camera(\"Rear\").setFov(40f);\n scene.camera(\"Rear\").roll((float) Math.PI);\n\n //scene.environment.ambient = 0x0;\n //scene.environment.ambient = 0xcccccc;\n scene.environment.ambient = 0x777777;\n //scene.addLight(\"Light1\",new idx3d_Light(new idx3d_Vector(0.2f,-0.5f,1f),0x888888,144,120));\n //scene.addLight(\"Light1\",new idx3d_Light(new idx3d_Vector(1f,-1f,1f),0x888888,144,120));\n // scene.addLight(\"Light2\",new idx3d_Light(new idx3d_Vector(1f,1f,1f),0x222222,100,40));\n //scene.addLight(\"Light2\",new idx3d_Light(new idx3d_Vector(-1f,1f,1f),0x222222,100,40));\n // scene.addLight(\"Light3\",new idx3d_Light(new idx3d_Vector(-1f,2f,1f),0x444444,200,120));\n scene.addLight(\"KeyLight\", new idx3d_Light(new idx3d_Vector(1f, -1f, 1f), 0xffffff, 0xffffff, 100, 100));\n scene.addLight(\"FillLightRight\", new idx3d_Light(new idx3d_Vector(-1f, 0f, 1f), 0x888888, 50, 50));\n scene.addLight(\"FillLightDown\", new idx3d_Light(new idx3d_Vector(0f, 1f, 1f), 0x666666, 50, 50));\n\n if (sharedLightmap == null) {\n sharedLightmap = scene.getLightmap();\n } else {\n scene.setLightmap(sharedLightmap);\n }\n }", "public void setScaleZ(int scaleZ) {\n\t\tthis.scaleZ = scaleZ;\n\t}", "void update(float speed, Point mousePoint) {\r\n\t\tz[1] = z[0];\r\n\t\tz[0] -= speed;\r\n\t\t\r\n\t\t// if the star moved past the screen, re-initialize it\r\n\t\tif (z[0] < 0)\r\n\t\t\tinit();\r\n\t\t\r\n\t\tselectionBox = makeSelectionBox();\r\n\t\tselected = selectionBox.contains(mousePoint);\r\n\t}", "private void controlSeaperch(ArrayList<Float> gyroX, ArrayList<Float> gyroZ,\n\t\t\t\t\t\t\t\t ArrayList<Float> gyroY, SeekBar slider){\n\t\tif(!gyroY.isEmpty() && !(slider.getProgress()>=gyroY.size())) { //If we have data\n\t\t\tslider.setMax(gyroZ.size() - 1); //Scale bar to size of data array\n\t\t\tfloat x = gyroX.get(slider.getProgress());\n\t\t\tfloat y = gyroY.get(slider.getProgress());\n\t\t\tfloat z = gyroZ.get(slider.getProgress());\n\t\t\tfloat sampleTime = 0.1f; //approximate, 10Hz sample rate\n\n\t\t\tx = x * sampleTime; //deg/sec * sec\n\t\t\ty = y * sampleTime;\n\t\t\tz = z * sampleTime;\n\n\t\t\trotateSeaperch(seaperch, x, z, y); //Z and Y are reversed here\n\t\t}\n\t}", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "private void pointCameraAt(Point3D target,Group root){\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()-xOffset);\n node.setTranslateY(node.getTranslateY()-yOffset);\n node.setTranslateZ(node.getTranslateZ()-zOffset);\n }\n\n xOffset = -target.getX(); yOffset = -target.getY(); zOffset = -target.getZ();\n\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()+xOffset);\n node.setTranslateY(node.getTranslateY()+yOffset);\n node.setTranslateZ(node.getTranslateZ()+zOffset);\n }\n }", "default void setZ(double z)\n {\n getAxis().setZ(z);\n }", "private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }", "public void mouseClickedDown(Point2d worldCoord) {\n logger.debug(\"rotate mouseClickedDown, initializing rotation\");\n rotationCenter = null;\n selection = super.chemModelRelay.getRenderer().getRenderer2DModel()\n .getSelection();\n \n if ( selection == null \n ||!selection.isFilled()\n || selection.getConnectedAtomContainer() == null\n || selection.getConnectedAtomContainer().getAtomCount()==0) {\n \n /*\n * Nothing selected- return. Dragging the mouse will not result in\n * any rotation logic.\n */\n logger.debug(\"Nothing selected for rotation\");\n selectionMade = false;\n return;\n \n } else {\n rotationPerformed = false;\n //if we are outside bounding box, we deselect, else\n //we actually start a rotation.\n Rectangle2D bounds = BoundsCalculator.calculateBounds(this.chemModelRelay.getRenderer().getRenderer2DModel().getSelection().getConnectedAtomContainer());\n \n rotationAngle = 0.0;\n selectionMade = true;\n \n /* Keep original coordinates for possible undo/redo */\n atomCoordsMap = new HashMap<IAtom, Point2d[]>();\n for (IAtom atom : selection.getConnectedAtomContainer().atoms()) {\n Point2d[] coordsforatom = new Point2d[2];\n coordsforatom[1] = atom.getPoint2d();\n atomCoordsMap.put(atom, coordsforatom);\n }\n \n /*\n * Determine rotationCenter as the middle of a region defined by\n * min(x,y) and max(x,y) of coordinates of the selected atoms.\n */\n IAtomContainer selectedAtoms = \n selection.getConnectedAtomContainer();\n \n \n Double upperX = null, lowerX = null, upperY = null, lowerY = null;\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n if (upperX == null) {\n upperX = selectedAtoms.getAtom(i).getPoint2d().x;\n lowerX = upperX;\n upperY = selectedAtoms.getAtom(i).getPoint2d().y;\n lowerY = selectedAtoms.getAtom(i).getPoint2d().y;\n } else {\n double currX = selectedAtoms.getAtom(i).getPoint2d().x;\n if (currX > upperX)\n upperX = currX;\n if (currX < lowerX)\n lowerX = currX;\n \n double currY = selectedAtoms.getAtom(i).getPoint2d().y;\n if (currY > upperY)\n upperY = currY;\n if (currY < lowerY)\n lowerY = currY;\n }\n }\n rotationCenter = new Point2d();\n rotationCenter.x = (upperX + lowerX) / 2;\n rotationCenter.y = (upperY + lowerY) / 2;\n logger.debug(\"rotationCenter \" \n + rotationCenter.x + \" \"\n + rotationCenter.y);\n \n /* Store the original coordinates relative to the rotation center.\n * These are necessary to rotate around the center of the\n * selection rather than the draw center. */\n startCoordsRelativeToRotationCenter = new Point2d[selectedAtoms\n .getAtomCount()];\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n Point2d relativeAtomPosition = new Point2d();\n relativeAtomPosition.x = selectedAtoms.getAtom(i).getPoint2d().x\n - rotationCenter.x;\n relativeAtomPosition.y = selectedAtoms.getAtom(i).getPoint2d().y\n - rotationCenter.y;\n startCoordsRelativeToRotationCenter[i] = relativeAtomPosition;\n }\n }\n }", "public MouseRotateXZ(int flags) {\r\n\t\tsuper(flags);\r\n\t}", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}", "@Override\n\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\tif(telaAtiva!=null){\n\t\t\t\ttelaAtiva.mouseWheelMoved(e);\n\t\t\t}\n\t\t}", "public MouseWheelListener getZoomListener() {\r\n\t\treturn new MouseWheelListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\r\n\t\t\t\tif(e.getWheelRotation() < 0){\r\n\t\t\t\t\tit.increaseZoomX();\r\n\t\t it.increaseZoomY();\r\n\t\t\t\t}else if(e.getWheelRotation() > 0){\r\n\t\t\t\t\tit.decreaseZoomX();\r\n\t\t\t\t\tit.decreaseZoomY();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\r\n\tpublic void onOrientationChanged(float azimuth, float pitch, float roll) {\n\r\n\t}", "public void mouseDragged (LayerEvent event) {\r\n \t\t\tif (!isEnabled()) return;\r\n\t\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n \r\n\t\t\tif (_rubberBand == null) {\r\n\t \t// This should never happen, but it does.\r\n\t \treturn;\r\n\t\t\t\t}\r\n \r\n\t\t\tif (_zoomInFilter.accept(event) || _zoomOutFilter.accept(event)) {\r\n\t\t\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t \t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\t\r\n\t\t\t// Figure out the coordinates of the rubber band\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t double useXPos = event.getLayerX();\r\n\t\t double useYPos = event.getLayerY();\r\n\t\t \r\n\t\t\t// space held down translates\r\n\t\t\t// rubberband _originX, _originY by event-prev\r\n\t\t\tif (((TrekCanvas)trekPane.getCanvas()).isSpaceDown()) {\r\n\t\t\t\t_originX += (useXPos - prevX);\r\n\t\t\t\t_originY += (useYPos - prevY);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tprevX = event.getLayerX();\r\n\t\t\tprevY = event.getLayerY();\r\n\t\t\t\r\n\t\t // Without control down rubberband conforms to visible aspect ratio\r\n\t\t if (!((TrekCanvas)trekPane.getCanvas()).isControlDown()) {\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble currAspect = visSize.getHeight()/visSize.getWidth();\r\n\t\t\t\tif (Math.abs(useYPos - _originY) > Math.abs(useXPos - _originX)) {\r\n\t\t\t\t\tuseXPos = _originX + (useXPos < _originX ? -1.0 : 1.0)*Math.abs((useYPos - _originY)/currAspect);\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuseYPos = _originY + (useYPos < _originY ? -1.0 : 1.0)*Math.abs((useXPos - _originX)*currAspect);\r\n\t\t\t\t\t}\r\n\t\t \t}\r\n\t\t \r\n\t\t\tif (event.isAltDown()) {\r\n\t\t\t\t_rubberBand.setFrameFromCenter(_originX, _originY, useXPos, useYPos);\r\n\t\t\t\t}\r\n else {\r\n\t\t\t\t_rubberBand.setFrameFromDiagonal(_originX, _originY, useXPos, useYPos);\r\n \t}\r\n \t\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t\t// Could possibly do some custom drawing showing an in or out zoom\r\n\t\t\tif (_isZoomingIn) {\r\n } \r\n else {\r\n }\r\n \r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t\t\tevent.consume();\r\n\t\t\t}\r\n\t}", "private void adjustCameraPosition() {\n if (upward) {\n\n if (tilt<90) {\n tilt ++;\n zoom-=0.01f;\n } else {\n upward=false;\n }\n\n } else {\n if (tilt>0) {\n tilt --;\n zoom+=0.01f;\n } else {\n upward=true;\n }\n }\n }", "public void update(float deltaTime) {\n\t\tif (m_motionMode == NvCameraMotionType.DUAL_ORBITAL) {\n\t Transform xfm = m_xforms[NvCameraXformType.MAIN];\n\t Transform xfs = m_xforms[NvCameraXformType.SECONDARY];\n//\t xfm.m_rotate += xfm.m_rotateVel*deltaTime;\n\t VectorUtil.linear(xfm.m_rotate, xfm.m_rotateVel, deltaTime, xfm.m_rotate);\n//\t xfs.m_rotate += xfs.m_rotateVel*deltaTime;\n\t VectorUtil.linear(xfs.m_rotate, xfs.m_rotateVel, deltaTime, xfs.m_rotate);\n//\t xfm.m_translate += xfm.m_translateVel * deltaTime;\n\t VectorUtil.linear(xfm.m_translate, xfm.m_translateVel, deltaTime, xfm.m_translate);\n\n\t updateMats(NvCameraXformType.MAIN);\n\t updateMats(NvCameraXformType.SECONDARY);\n\t } else {\n\t Transform xf = m_xforms[NvCameraXformType.MAIN];\n//\t xf.m_rotate += xf.m_rotateVel*deltaTime;\n\t VectorUtil.linear(xf.m_rotate, xf.m_rotateVel, deltaTime, xf.m_rotate);\n\t Vector3f transVel;\n\t if (m_motionMode == NvCameraMotionType.FIRST_PERSON) {\n\t // obviously, this should clamp to [-1,1] for the mul, but we don't care for sample use.\n\t xf.m_translateVel.x = xf.m_maxTranslationVel * (m_xVel_kb+m_xVel_gp);\n\t xf.m_translateVel.z = xf.m_maxTranslationVel * (m_zVel_mouse+m_zVel_kb+m_zVel_gp);\n//\t transVel = nv.vec3f(nv.transpose(xf.m_rotateMat) * \n//\t nv.vec4f(-xf.m_translateVel.x, xf.m_translateVel.y, xf.m_translateVel.z, 0.0f));\n\t xf.m_rotateMat.transpose();\n\t transVel = new Vector3f(-xf.m_translateVel.x, xf.m_translateVel.y, xf.m_translateVel.z);\n\t VectorUtil.transformNormal(transVel, xf.m_rotateMat, transVel);\n\t xf.m_rotateMat.transpose();\n\t } else {\n\t transVel = xf.m_translateVel;\n\t }\n\n//\t xf.m_translate += transVel * deltaTime;\n\t VectorUtil.linear(xf.m_translate, transVel, deltaTime, xf.m_translate);\n\t updateMats(NvCameraXformType.MAIN);\n\t }\n\t}", "public void increaseRotation(float dx, float dy, float dz);" ]
[ "0.6896115", "0.60833186", "0.5969881", "0.59275836", "0.58565414", "0.5780355", "0.5775288", "0.5738928", "0.57036024", "0.5692813", "0.562046", "0.5610479", "0.5609983", "0.5554658", "0.5547676", "0.5543407", "0.5534546", "0.55243975", "0.54886913", "0.54788464", "0.54773134", "0.5467328", "0.5465547", "0.5446349", "0.54431236", "0.5431363", "0.5423204", "0.54137343", "0.53871244", "0.53856677", "0.5381558", "0.535014", "0.53472745", "0.53411376", "0.53208655", "0.5304671", "0.52991647", "0.529666", "0.52960765", "0.5296038", "0.5291073", "0.5262671", "0.5261726", "0.5255141", "0.5241559", "0.5240739", "0.523875", "0.52334607", "0.52310884", "0.5227377", "0.5222918", "0.521348", "0.518268", "0.5176666", "0.51640856", "0.51590335", "0.51465094", "0.51445055", "0.51369745", "0.51339537", "0.51303214", "0.5121952", "0.5115211", "0.51138854", "0.511292", "0.5109374", "0.5106605", "0.5106359", "0.5086047", "0.50634813", "0.50628716", "0.5057324", "0.50554115", "0.5050521", "0.50340587", "0.5027384", "0.50258106", "0.50253505", "0.5025318", "0.50252044", "0.5024362", "0.50195205", "0.5019354", "0.5018354", "0.50148165", "0.50116664", "0.50033045", "0.500324", "0.500314", "0.49946058", "0.4990163", "0.49879852", "0.49879813", "0.49751782", "0.49749523", "0.49744907", "0.49735814", "0.49728373", "0.49726468", "0.4968423" ]
0.6317577
1
When mouse moves on the canvas In 3D, drop mouse position as it should not be displayed In 2D, store mouse position to overlay coordinates
@Override public void mouseMoved(MouseEvent e) { View view = getChart().getView(); // if (getChart().getView().is3D()) { mousePosition.event = null; mousePosition.projection = null; } else { mousePosition.event = e; mousePosition.projection = screenToModel(e); } view.shoot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "private Point2D mouseLocation() {\n return FXGL.getInput().getMousePositionWorld();\n\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n // Simply find x and y and then overwrite last frame data\n int x = e.getX();\n int y = e.getY();\n\n old_x = x;\n old_y = y;\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}", "public void pickObject(int mouseX, int mouseY, MouseEvent e)\r\n {\r\n \tPickCanvas pickCanvas = new PickCanvas(canvas, getMBLocale());\r\n \tpickCanvas.setMode(PickCanvas.BOUNDS);\r\n \t\r\n pickCanvas.setShapeLocation(e);\r\n PickResult result = pickCanvas.pickClosest();\r\n \r\n if (result == null) \r\n {\r\n System.out.println(\"Nothing picked\");\r\n } \r\n else\r\n {\r\n \t// das is der teil den ich nicht sehr nett finde. hier müssen theoretisch alle 3d typen rein.\r\n \t// d.h. man muss auch dementsprechend viele if clauses einbauen.\r\n Primitive p = (Primitive)result.getNode(PickResult.PRIMITIVE);\r\n Shape3D s = (Shape3D)result.getNode(PickResult.SHAPE3D);\r\n parent.getLocale();\r\n if (p != null) \r\n {\r\n // System.out.println(\"result: \"+result.getGeometryArray().getInitialNormalIndex());\r\n System.out.println(p.getClass().getName());\r\n } \r\n else if (s != null) \r\n {\r\n System.out.println(s.getClass().getName());\r\n }\r\n else\r\n {\r\n System.out.println(\"null\");\r\n }\r\n } \r\n }", "public abstract void mouseMoved(int displayX, int displayY);", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void mouseDragged(MouseEvent e) \r\n\t{\r\n\t\tswitch (MouseDown) {\r\n\t\t\tcase 1:\r\n\t\t\t\tgetCamera().rotateY(((float)LastMouse[0]-e.getX())*0.4F);\r\n\t\t\t\tgetCamera().rotateX(((float)LastMouse[1]-e.getY())*-0.4F);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tgetCamera().translate(((float)LastMouse[0]-e.getX())*-0.01F,0,0);\r\n\t\t\t\tgetCamera().translate(0,((float)LastMouse[1]-e.getY())*0.01F,0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tgetCamera().zoom(((float)LastMouse[1]-e.getY())*0.1F);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t//System.out.print(\"MMove: \" + e.getPoint().toString() + \"\\r\");\r\n\t\te.consume();\r\n\t\tLastMouse[0] = e.getX();\r\n\t\tLastMouse[1] = e.getY();\r\n\t\trender(true);\t\t\r\n\t}", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "void recomputeCoordinatesToSource(MouseEvent oldEvent, Object newSource) {\n/*\n Point3D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.getX();\n y = newCoordinates.getY();\n z = newCoordinates.getZ();\n*/\n Point2D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.x;\n y = newCoordinates.y;\n\n }", "public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }", "public us.ihmc.euclid.tuple3D.Point3D getMousePoint()\n {\n return mouse_point_;\n }", "public void mouseDragged(MouseEvent e) {\n int x = e.getX();\n int y = e.getY();\n Dimension size = e.getComponent().getSize();\n\n float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);\n float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);\n \n prevMouseX = x;\n prevMouseY = y;\n\n view_rotx += thetaX;\n view_roty += thetaY;\n }", "void mouseMoved(double x, double y, MouseEvent e );", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setPosition(Mouse.worldCoordinates.copy());//.sub(SelectionTypeState.mouseClickWorldPosition).add(SelectionTypeState.colliderPositions.get(cnt)));\n\t\t\t}\n\t\t}", "public void mouseMoved(MouseEvent e) {\n\t\tint x = e.getX();\n\t\tint y = e.getY();\n\t\t\n\t\t// we need to convert the AWT mouse coordinate into Cartesian coordinates\n\t\t// so it can be comparable with the Cartesian coordinates in the model.\n\t\tint ht = canvas.getHeight();\n\t\tmodel.computeNearest(new Hyperpoint(new TwoDPoint(x,ht - y)));\n\t\tif (model.getNearest() == null) { return; }\n\t\t\n\t\tcanvas.redrawState();\n\t\tcanvas.repaint();\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t//Get mouse screen positions\n\t\tmouseScreenX = arg0.getX();\n\t\tmouseScreenY = arg0.getY();\n\t\t//Convert screen to board position\n\t\tscreenToBoardPos(mouseScreenX, mouseScreenY, mouseBoardPos);\n\t\t//Check if mouse is in the private area\n\t\tmouseInPrivateArea = ObjectFunctions.isInPrivateArea(privateArea, mouseBoardPos.getXI(), mouseBoardPos.getYI());\n\t\tmouseInStacker = ObjectFunctions.isOnShape(id, gameInstance, table.stackerShape, boardToScreenTransformation, mouseBoardPos.getXI(), mouseBoardPos.getYI());\n\n\t\t//Check if some key is pressed\n\t\tif (player != null) {\n\t\t\t//set the mouse position of the player to send to other players\n\t\t\tgameInstance.update(new PlayerMousePositionUpdate(id, player, player, mouseBoardPos.getXI(), mouseBoardPos.getYI()));\n\n\t\t\tif (!player.visitor) {\n\t\t\t\t//Disable action string if mouse moves and no key is pressed\n\t\t\t\tif (downKeys.size() == 0) {\n\t\t\t\t\tplayer.actionString = \"\";\n\t\t\t\t}\n\t\t\t\t//get nearest object concerning the mouse position\n\t\t\t\tObjectInstance nearestObject = ObjectFunctions.getNearestObjectByPosition(this, gameInstance, player, mouseBoardPos.getXI(), mouseBoardPos.getYI(), 1, null);\n\t\t\t\t//do actions if mouse is in the private area or not and there is some nearest object\n\t\t\t\tif (mouseInPrivateArea && nearestObject != null && !arg0.isControlDown() && !arg0.isShiftDown() && !arg0.isAltDown()) {\n\t\t\t\t\tif (hoveredObject != null)\n\t\t\t\t\t{\n\t\t\t\t\t\thoveredObject.state.isActive = false;\n\t\t\t\t\t}\n\t\t\t\t\tnearestObject.state.isActive = false;\n\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t} else if (!mouseInPrivateArea) {\n\t\t\t\t\tif (nearestObject != null && !nearestObject.state.inPrivateArea) {\n\t\t\t\t\t\tif (hoveredObject == null) {\n\t\t\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t\t\t} else if (nearestObject.id != hoveredObject.id) {\n\t\t\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isDebug && hoveredObject != null) {\n\t\t\t\t\t\t\toutText = \"Hover Object: \" + hoveredObject.id;\n\t\t\t\t\t\t\toutText += \"\\n Select: \" + hoveredObject.state.isSelected;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tunhoverObject(gameInstance, player);\n\t\t\t\t\t\tif (isDebug) {\n\t\t\t\t\t\t\toutText = \" \";\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\t//TODO do repaint if something happens and not if mouse moved?\n\t\trepaint();\n\t}", "private void PanelPertamaMouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n this.setLocation(x - xx, y - xy);\n }", "public static Vector3 generateWorldMouseCoords(OrthographicCamera c) {\r\n\t\treturn c.unproject(new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0));\r\n\t}", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "public void mouseMoved(MouseEvent e) {}", "@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }", "private void mouseEventToWorldSpace(MouseEvent e) {\n\n Point2D mousePoint = new Point2D.Double();\n mousePoint.setLocation(e.getPoint());\n\n Point2D newPoint = new Point2D.Double();\n this.viewModel.getViewToWorld().transform(mousePoint, newPoint);\n\n int xDiff = (int) ( newPoint.getX() - mousePoint.getX() );\n int yDiff = (int) ( newPoint.getY() - mousePoint.getY() );\n\n e.translatePoint(xDiff, yDiff);\n }", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "public void mouseDragged( MouseEvent evt ){\n Location x = new Location( evt.getX(), evt.getY() );\n pond.moveAxis(x, canvas);\n\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "private void formMouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n setLocation(x-xMouse , y-yMouse);\n }", "public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}", "public void mouseMoved(MouseEvent e) {\n\t\tmainPanel2.mouseX = e.getX()-25;\r\n\t\tmainPanel2.mouseY = e.getY()-30;\r\n\t\tmainPanel2.repaint();\r\n\t}", "public void mouseMoved(MouseEvent e){}", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox(null);\n\n if (allowCrop)\n getChart().getScene().getGraph().setClipBox(null);\n\n view.setBoundMode(ViewBoundMode.AUTO_FIT);\n\n }\n // Or apply selection to ZOOM\n else {\n BoundingBox3d bounds = view.getBounds().clone();\n\n configureZoomAccordingTo2DView(view, bounds, mouseSelection);\n\n // Reset mouse selection now so that next rendering will hide it from screen\n mouseSelection = new MouseSelection();\n\n // Won't do anything for irrelevant bounds leading to a flat graph\n if (bounds.getXRange().getRange() <= 0 \n || bounds.getYRange().getRange() <= 0\n || bounds.getZRange().getRange() <= 0)\n return;\n\n //System.out.println(\"Will zoom to \" + bounds);\n\n // Crop and zoom\n if (allowCrop) {\n boolean includeLimits = false; // to avoid inacurrate box scale\n getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false);\n }\n view.setBoundsManual(bounds);\n\n\n }\n\n }", "boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {\n mX=e.getX();\n mY=e.getY();\n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "public void mouseMoved(MouseEvent e) {\n \tapp.updateCoord(e.getX(),e.getY());\n }", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "public void mouseMoved(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }", "@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }", "void mouseDragged(double x, double y, MouseEvent e );", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "public Double getMouse3()\n {\n return this.mouse3;\n }", "public void mouseDragged(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }", "public Point2D getMousePosition() {\n\t\treturn Lel.coreEngine.panelPositionToWorld(input.getMousePosition());\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\tif ((arg0.isAltDown() && SwingUtilities.isLeftMouseButton(arg0)) || (arg0.isAltDown() && SwingUtilities.isRightMouseButton(arg0)) ) {\n\t\t\t//updatePlayerMousePos(arg0);\n\t\t\ttranslateBoard(arg0);\n\t\t\tboardTranslation = true;\n\t\t} else {\n\t\t\tif (player != null) {\n\t\t\t\tupdatePlayerMousePos(arg0);\n\t\t\t\tif (!player.visitor) {\n\t\t\t\t\tObjectFunctions.getOwnedStack(gameInstance, player, ial);\n\t\t\t\t\tStringBuilder strB = new StringBuilder();\n\t\t\t\t\tStringUtils.toString(ial, ' ', strB).append(' ');\n\t\t\t\t\toutText = strB.toString();\n\t\t\t\t\tif (!isSelectStarted) {\n\t\t\t\t\t\tObjectFunctions.getSelectedObjects(gameInstance, player, ial);\n\t\t\t\t\t\tMoveFunctions.dragObjects(this, gameInstance, player, arg0, ial, objOrigPosX, objOrigPosY, mousePressedGamePos, mouseBoardPos, mouseWheelValue);\n\t\t\t\t\t\t/*Handle all drags of Token Objects*/\n\t\t\t\t\t\tif (this.privateArea.containsScreenCoordinates(mouseScreenX, mouseScreenY)) {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = this.privateArea.getInsertPosition(mouseScreenX, mouseScreenY);\n\t\t\t\t\t\t\toutText = \"Position:\" + this.privateArea.currentDragPosition;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (hoveredObject == null && !SwingUtilities.isMiddleMouseButton(arg0) && !(SwingUtilities.isLeftMouseButton(arg0) && arg0.isShiftDown()) && !mouseInPrivateArea) {\n\t\t\t\t\t\t\tselectWidth = mouseScreenX - beginSelectPosScreenX;\n\t\t\t\t\t\t\tselectHeight = mouseScreenY - beginSelectPosScreenY;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trepaint();\n\t}", "public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {\n \t\tint x_pd = x_p;\n \t\tint y_pd = y_p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Point2D.Double po = inverseTransformPoint(x_p, y_p);\n \t\t\tx_p = (int)po.x;\n \t\t\ty_p = (int)po.y;\n \t\t}\n \n \t\tfinal int tool = ProjectToolbar.getToolId();\n \n \t\tfinal Display display = ((DisplayCanvas)me.getSource()).getDisplay();\n \t\tfinal long layer_id = display.getLayer().getId();\n \n \t\tindex = findPoint(x_p, y_p, layer_id, mag);\n \n \t\tif (ProjectToolbar.PENCIL == tool && n_points > 0 && -1 == index && !me.isShiftDown() && !Utils.isControlDown(me)) {\n \t\t\t// Use Mark Longair's tracing: from the clicked point to the last one\n \t\t\tfinal double scale = layer_set.getVirtualizationScale();\n \t\t\t// Ok now with all found images, create a virtual stack that provides access to them all, with caching.\n \t\t\tfinal Worker[] worker = new Worker[2];\n \n \t\t\tTraceParameters tr_ = tr_map.get(layer_set);\n \t\t\tfinal TraceParameters tr = null == tr_ ? new TraceParameters() : tr_;\n \t\t\tif (null == tr_) {\n \t\t\t\tsynchronized (tr_map) {\n \t\t\t\t\ttr_map.put(layer_set, tr);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (tr.update) {\n \t\t\t\tworker[0] = new Worker(\"Preparing Hessian...\") { public void run() {\n \t\t\t\t\tstartedWorking();\n \t\t\t\t\ttry {\n \t\t\t\tUtils.log(\"Push ESCAPE key to cancel autotrace anytime.\");\n \t\t\t\tImagePlus virtual = new LayerStack(layer_set, scale, ImagePlus.GRAY8, Patch.class, display.getDisplayChannelAlphas()).getImagePlus();\n \t\t\t\t//virtual.show();\n \t\t\t\tCalibration cal = virtual.getCalibration();\n \t\t\t\tdouble minimumSeparation = 1;\n \t\t\t\tif (cal != null) minimumSeparation = Math.min(cal.pixelWidth,\n \t\t\t\t\t\t\t\t\t Math.min(cal.pixelHeight,\n \t\t\t\t\t\t\t\t\t\t cal.pixelDepth));\n \t\t\t\tComputeCurvatures hessian = new ComputeCurvatures(virtual, minimumSeparation, null, cal != null);\n \t\t\t\thessian.run();\n \n \t\t\t\ttr.virtual = virtual;\n \t\t\t\ttr.scale = scale;\n \t\t\t\ttr.hessian = hessian;\n \t\t\t\ttr.update = false;\n \n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tIJError.print(e);\n \t\t\t\t\t}\n \t\t\t\t\tfinishedWorking();\n \t\t\t\t}};\n \t\t\t\tBureaucrat.createAndStart(worker[0], project);\n \t\t\t}\n \n \t\t\tPoint2D.Double po = transformPoint(p[0][n_points-1], p[1][n_points-1]);\n \t\t\tfinal int start_x = (int)po.x;\n \t\t\tfinal int start_y = (int)po.y;\n \t\t\tfinal int start_z = layer_set.indexOf(layer_set.getLayer(p_layer[n_points-1])); // 0-based\n \t\t\tfinal int goal_x = (int)(x_pd * scale); // must transform into virtual space\n \t\t\tfinal int goal_y = (int)(y_pd * scale);\n \t\t\tfinal int goal_z = layer_set.indexOf(display.getLayer());\n \n \t\t\t/*\n \t\t\tUtils.log2(\"x_pd, y_pd : \" + x_pd + \", \" + y_pd);\n \t\t\tUtils.log2(\"scale: \" + scale);\n \t\t\tUtils.log2(\"start: \" + start_x + \",\" + start_y + \", \" + start_z);\n \t\t\tUtils.log2(\"goal: \" + goal_x + \",\" + goal_y + \", \" + goal_z);\n \t\t\tUtils.log2(\"virtual: \" + tr.virtual);\n \t\t\t*/\n \n \n \t\t\tfinal boolean simplify = me.isAltDown();\n \n \t\t\tworker[1] = new Worker(\"Tracer - waiting on hessian\") { public void run() {\n \t\t\t\tstartedWorking();\n \t\t\t\ttry {\n \t\t\t\tif (null != worker[0]) {\n \t\t\t\t\t// Wait until hessian is ready\n \t\t\t\t\tworker[0].join();\n \t\t\t\t}\n \t\t\t\tsetTaskName(\"Tracing path\");\n \t\t\t\tfinal int reportEveryMilliseconds = 2000;\n \t\t\t\ttr.tracer = new TracerThread(tr.virtual, 0, 255,\n \t\t\t\t\t\t 120, // timeout seconds\n \t\t\t\t\t\t\t\t reportEveryMilliseconds,\n \t\t\t\t\t\t\t\t start_x, start_y, start_z,\n \t\t\t\t\t\t\t\t goal_x, goal_y, goal_z,\n \t\t\t\t\t\t\t\t true, // reciproal pix values at start and goal\n \t\t\t\t\t\t\t\t tr.virtual.getStackSize() == 1,\n \t\t\t\t\t\t\t\t tr.hessian,\n \t\t\t\t\t\t\t\t null == tr.hessian ? 1 : 4,\n \t\t\t\t\t\t\t\t null,\n \t\t\t\t\t\t\t\t null != tr.hessian);\n \t\t\t\ttr.tracer.addProgressListener(new SearchProgressCallback() {\n \t\t\t\t\tpublic void pointsInSearch(SearchThread source, int inOpen, int inClosed) {\n \t\t\t\t\t\tworker[1].setTaskName(\"Tracing path: open=\" + inOpen + \" closed=\" + inClosed);\n \t\t\t\t\t}\n \t\t\t\t\tpublic void finished(SearchThread source, boolean success) {\n \t\t\t\t\t\tif (!success) {\n \t\t\t\t\t\t\tUtils.logAll(\"Could NOT trace a path\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tpublic void threadStatus(SearchThread source, int currentStatus) {\n \t\t\t\t\t\t// This method gets called every reportEveryMilliseconds\n \t\t\t\t\t\tif (worker[1].hasQuitted()) {\n \t\t\t\t\t\t\tsource.requestStop();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t\t\ttr.tracer.run();\n \n \t\t\t\tfinal Path result = tr.tracer.getResult();\n \n \t\t\t\ttr.tracer = null;\n \n \t\t\t\tif (null == result) {\n \t\t\t\t\tUtils.log(\"Finding a path failed\"); //: \"+ \n \t\t\t\t\t\t// not public //SearchThread.exitReasonStrings[tracer.getExitReason()]);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \n \t\t\t\t// TODO: precise_x_positions etc are likely to be broken (calibrated or something)\n \n \n \t\t\t\t// Remove bogus points: those at the end with 0,0 coords\n \t\t\t\tint len = result.points;\n \t\t\t\tfinal double[][] pos = result.getXYZUnscaled();\n \t\t\t\tfor (int i=len-1; i>-1; i--) {\n \t\t\t\t\tif (0 == pos[0][i] && 0 == pos[1][i]) {\n \t\t\t\t\t\tlen--;\n \t\t\t\t\t} else break;\n \t\t\t\t}\n \t\t\t\t// Transform points: undo scale, and bring to this Polyline AffineTransform:\n \t\t\t\tfinal AffineTransform aff = new AffineTransform();\n \t\t\t\t/* Inverse order: */\n \t\t\t\t/* 2 */ aff.concatenate(Polyline.this.at.createInverse());\n \t\t\t\t/* 1 */ aff.scale(1/scale, 1/scale);\n \t\t\t\tfinal double[] po = new double[len * 2];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tpo[j] = pos[0][i];\n \t\t\t\t\tpo[j+1] = pos[1][i];\n \t\t\t\t}\n \t\t\t\tfinal double[] po2 = new double[len * 2];\n \t\t\t\taff.transform(po, 0, po2, 0, len); // what a stupid format: consecutive x,y pairs\n \n \t\t\t\tlong[] p_layer_ids = new long[len];\n \t\t\t\tdouble[] pox = new double[len];\n \t\t\t\tdouble[] poy = new double[len];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tp_layer_ids[i] = layer_set.getNearestLayer(pos[2][i]).getId(); // z_positions in 0-(N-1), not in 0-N like slices!\n \t\t\t\t\tpox[i] = po2[j];\n \t\t\t\t\tpoy[i] = po2[j+1];\n \t\t\t\t}\n \n \t\t\t\t// Simplify path: to steps of 5 calibration units, or 5 pixels when not calibrated.\n \t\t\t\tif (simplify) {\n \t\t\t\t\tObject[] ob = Polyline.simplify(pox, poy, p_layer_ids, 10000, layer_set);\n \t\t\t\t\tpox = (double[])ob[0];\n \t\t\t\t\tpoy = (double[])ob[1];\n \t\t\t\t\tp_layer_ids = (long[])ob[2];\n \t\t\t\t\tlen = pox.length;\n \t\t\t\t}\n \n \t\t\t\t// Record the first newly-added autotraced point index:\n \t\t\t\tlast_autotrace_start = Polyline.this.n_points;\n \t\t\t\tPolyline.this.appendPoints(pox, poy, p_layer_ids, len);\n \n \t\t\t\tPolyline.this.repaint(true);\n \t\t\t\tUtils.logAll(\"Added \" + len + \" new points.\");\n \n \t\t\t\t} catch (Exception e) { IJError.print(e); }\n \t\t\t\tfinishedWorking();\n \t\t\t}};\n \t\t\tBureaucrat.createAndStart(worker[1], project);\n \n \t\t\tindex = -1;\n \t\t\treturn;\n \n \t\t}\n \n \t\tif (ProjectToolbar.PEN == tool || ProjectToolbar.PENCIL == tool) {\n \n \t\t\tif (Utils.isControlDown(me) && me.isShiftDown()) {\n \t\t\t\tfinal long lid = Display.getFrontLayer(this.project).getId();\n \t\t\t\tif (-1 == index || lid != p_layer[index]) {\n \t\t\t\t\tindex = findNearestPoint(x_p, y_p, layer_id);\n \t\t\t\t}\n \t\t\t\tif (-1 != index) {\n \t\t\t\t\t//delete point\n \t\t\t\t\tremovePoint(index);\n \t\t\t\t\tindex = -1;\n \t\t\t\t\trepaint(false);\n \t\t\t\t}\n \n \t\t\t\t// In any case, terminate\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tif (-1 != index && layer_id != p_layer[index]) index = -1; // disable!\n \n \t\t\t//if no conditions are met, attempt to add point\n \t\t\telse if (-1 == index && !me.isShiftDown() && !me.isAltDown()) {\n \t\t\t\t//add a new point\n \t\t\t\tindex = addPoint(x_p, y_p, layer_id, mag);\n \t\t\t\tis_new_point = true;\n \t\t\t\trepaint(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "public void mouseMoved(MouseEvent e)\n {\n int x=e.getX();\n int y=e.getY();\n }", "@Override\n public void mouseMoved(MouseEvent e) {}", "private void toolbarEmpMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_toolbarEmpMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n // Move frame by the mouse delta\n setLocation(getLocationOnScreen().x + x - lastX,\n getLocationOnScreen().y + y - lastY);\n lastX = x;\n lastY = y;\n }", "private void setMouseListeners(Scene scene, Stage secondaryStage) {\n Rectangle2D bounds = Screen.getPrimary().getVisualBounds();\n secondaryStage.setX(bounds.getMaxX() - scene.getWidth() - (bounds.getMaxX()/10));\n secondaryStage.setY(bounds.getMinY() + (bounds.getMaxY()/10));\n\n //add support for drag and move\n scene.setOnMousePressed(event -> {\n xOffset = secondaryStage.getX() - event.getScreenX();\n yOffset = secondaryStage.getY() - event.getScreenY();\n });\n\n scene.setOnMouseDragged(event -> {\n secondaryStage.setX(event.getScreenX() + xOffset);\n secondaryStage.setY(event.getScreenY() + yOffset);\n });\n }", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "@Override public void handle(MouseEvent mouseEvent) {\n\t\t\t if (controller.MODE == Controller.Mode.SELECT) {\n originalPosition.x = pivot.getOriginX();\n originalPosition.y = pivot.getOriginY();\n\t\t\t\t if (pivot.getModel() instanceof Parent) {\n\t\t\t\t dragSource.x = mouseEvent.getX();\n\t\t\t\t\t dragSource.y = mouseEvent.getY();\n\t\t\t\t }\n\t\t\t\t // Records delta of mouse click coordinates and UMLObject's origin if UMLObject is not\n\t\t\t\t // * a Parent.\n\t\t\t\t else {\n\t\t\t\t\t dragSource.x = pivot.getOriginX() - mouseEvent.getX();\n\t\t\t\t\t dragSource.y = pivot.getOriginY() - mouseEvent.getY();\n\t\t\t\t }\n \t\t\t\tpivot.getModel().getScene().setCursor(Cursor.MOVE);\n\t\t\t }\n\t\t }", "public void mouseMoved(MouseEvent event) {\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}", "public abstract void mouseMoved(Point p);", "private void toolbarEmpMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_toolbarEmpMousePressed\n lastX = evt.getXOnScreen();\n lastY = evt.getYOnScreen();\n }", "public void mouseDragged (MouseEvent e) {}", "public void convert( int x, int y, Vector2f store ) {\n if ( lastXin == x && lastYin == y ) {\n store.x = lastXout;\n store.y = lastYout;\n }\n else {\n lastXin = x;\n lastYin = y;\n if ( getRenderQueueMode() == Renderer.QUEUE_ORTHO ) {\n //TODO: occlusion by other quads (JMEFrames)\n x = (int) ( x - getWorldTranslation().x + desktopWidth / 2 );\n y = (int) ( desktopHeight / 2 - ( y - getWorldTranslation().y ) );\n }\n else {\n store.set( x, y );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0, pickRay.origin );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0.3f, pickRay.direction ).subtractLocal( pickRay.origin ).normalizeLocal();\n\n applyWorld( bottomLeft.set( -width * 0.5f, -height * 0.5f, 0 ) );\n applyWorld( topLeft.set( -width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( topRight.set( width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( bottomRight.set( width * 0.5f, -height * 0.5f, 0 ) );\n\n if ( pickRay.intersectWherePlanarQuad( topLeft, topRight, bottomLeft, tuv ) ) {\n x = (int) ( ( tuv.y - 0.5f ) * width ) + desktopWidth / 2;\n y = (int) ( ( tuv.z - 0.5f ) * height ) + desktopHeight / 2;\n }\n else {\n x = -1;\n y = -1;\n }\n }\n lastYout = y;\n lastXout = x;\n\n store.set( x, y );\n }\n }", "public void mouseMoved() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isHovered = true;\n\t\t}else {\n\t\t\tthis.isHovered = false;\n\t\t}\n\t}", "public void mousePressed() //transport mode selected\n{\n if (mouseButton == LEFT)\n {\n if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65 && mouseY <= ly+65+bl)\n {\n tm[0] =! tm[0];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+2*bl && mouseY <= ly+65+3*bl)\n { \n tm[1] =! tm[1];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+4*bl && mouseY <= ly+65+5*bl)\n {\n tm[2] =! tm[2];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+6*bl && mouseY <= ly+65+7*bl)\n {\n tm[3] =! tm[3];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+8*bl && mouseY <= ly+65+9*bl)\n {\n tm[4] =! tm[4];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+10*bl && mouseY <= ly+65+11*bl)\n {\n tm[5] =! tm[5];\n } else if (mouseX >= lx && mouseX <= lx+bw && mouseY >= ly+65+12*bl && mouseY <= ly+65+13*bl)\n {\n tm[6] =! tm[6];\n }\n }\n}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}", "@Override public void handle(MouseEvent mouseEvent) {\n dragDelta.x = layout.getScene().getWindow().getX() - mouseEvent.getScreenX();\n dragDelta.y = layout.getScene().getWindow().getY() - mouseEvent.getScreenY();\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tPositionVO tmp = getPosition(e.getPoint());\n\t\tbp.getGrid(tmp).lighten();\n//\t\tif(e.getClickCount() == 2 && !bp.getLock() && !bp.getGrid(tmp).getMovement()){//双击\n\t\tif(e.getClickCount() == 2 && !bp.getLock() ){//双击\n\t\t\tbms.useToolGrid(tmp);\n\t\t}\n\t\telse{\n\t\t\tif (count == 0) {\n\t\t\t\tpvo1 = tmp;\n\t\t\t\tfocusGrids[0] = bp.getGrid(tmp);\n\t\t\t\tcount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (count == 1) {\n\t\t\t\tpvo2 = tmp;\n\t\t\t\tfocusGrids[1] = bp.getGrid(tmp);\n\t\t\t\t// if (pvo1.isValid(pvo2)) {\n\t\t\t\t// 调用model 以下直接调用panel里方法的 一些测试\n\t\t\t\t// bp.swapUnit(pvo1, pvo2);\n\t//\t\t\tif (!bp.getGrid(pvo1).getMovement()\n\t//\t\t\t\t\t&& !bp.getGrid(pvo2).getMovement())\n//\t\t\t\tif(bp.getStill())\n//\t\t\t\tif(!bp.getLock() && (!bp.getGrid(pvo1).getMovement()&& !bp.getGrid(pvo2).getMovement()))\n\t\t\t\tif(!bp.getLock())\n\t\t\t\t\tbms.trySwap(pvo1, pvo2);\n\t\t\t\tcount = 0;\n\t\t\t\tfocusGrids[0].normalize();\n\t\t\t\tfocusGrids[1].normalize();\n\t\t\t} else {\n\t\t\t\tpvo1 = pvo2;\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "public void mouseDragged(MouseEvent e){}", "public void mouseMoved(MouseEvent evt) { }", "@Override\n public void mouseMoved(MouseEvent e) {\n }", "@Override \n\tpublic void mouseMoved(MouseEvent e){\n\t}", "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "@Override\n public void mousePressed(MouseEvent e) {\n // this.getVision().getCare().set(this.getVision().getSoul().newMemento());\n if (e.getButton() != MouseEvent.BUTTON1) {\n return;\n }\n if (getVerticallyPointOnGraph(e.getX(), e.getY()) != null) {\n setCurrentPoint(getVerticallyPointOnGraph(e.getX(), e.getY()));\n } else {\n setCurrentPoint(null);\n }\n \n if (getCurrentPoint() != null) {\n double toy = Math.min(Math.max(tCanvasPadding, e.getY()), getHeight() - bCanvasPadding);\n // System.out.println(\"moving to [\"+tox+\",\"+toy+\"]\");\n adapter.moveImagePoint(getCurrentPoint(), c2gy(toy));\n // getCurrentPoint().movePoint(getCurrentPoint(),\n // c2gx(tox),c2gy(toy,getCurrentPoint().getDataSet()));\n }\n // System.out.println(\"Current point is \"+currentPoint);\n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "protected void maintainInAxis(Coord2d mouse) {\n View view = getChart().getView();\n View2DLayout layout = view.get2DLayout();\n\n BoundingBox3d bounds3d = getChart().getView().getBounds();\n\n\n\n // Get corners\n Coord3d cornerMin3D = null;\n Coord3d cornerMax3D = null;\n\n\n if (view.is2D_XY()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXminYminZmax();\n }\n }\n\n else if (view.is2D_XZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmax();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmin();\n }\n }\n\n else if (view.is2D_YZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmin();\n }\n }\n\n // System.out.println(\"Corner min 3D : \" + cornerMin3D);\n // System.out.println(\"Corner max 3D : \" + cornerMax3D);\n\n // Project 3D bounds to 2D\n Coord3d cornerMin2D = modelToScreen(cornerMin3D); // bottom left\n Coord3d cornerMax2D = modelToScreen(cornerMax3D); // top right\n\n Coord2d scale = scaled?new Coord2d(1,1):getChart().getView().getPixelScale();\n \n cornerMin2D.x /= scale.x; \n cornerMin2D.y /= scale.y; \n cornerMax2D.x /= scale.x; \n cornerMax2D.y /= scale.y; \n \n // System.out.println(mouse + \" corner min \" + cornerMin2D + \" corner max \" + cornerMax2D);\n\n // System.out.println(\"Corner min 2D : \" + cornerMin);\n // System.out.println(\"Corner max 2D : \" + cornerMax);\n\n // Crop on X bounds\n if (mouse.x < cornerMin2D.x)\n mouse.x = cornerMin2D.x;\n if (mouse.x > cornerMax2D.x)\n mouse.x = cornerMax2D.x;\n\n // Crop on Y bounds\n int height = (int)(getChart().getCanvas().getRendererHeight() / scale.y);\n\n float flipedCornerMinY = height - cornerMin2D.y;\n float flipedCornerMaxY = height - cornerMax2D.y;\n float flipedMouseY = height - mouse.y;\n\n if (flipedMouseY < cornerMin2D.y)\n mouse.y = flipedCornerMinY;\n if (flipedMouseY > cornerMax2D.y)\n mouse.y = flipedCornerMaxY;\n }", "public void mouseDragged(MouseEvent e) {}", "static void setTextMousePoint(int i,int j){tmpx=i;tmpy=j;}", "public void mouseMoved (MouseEvent e){\n int mousePositionX = e.getX();\n int paddleX = mousePositionX - PADDLE_WIDTH / 2;\n int paddleY = (getHeight() - PADDLE_Y_OFFSET);\n movePaddle(paddleX, paddleY, mousePositionX);\n }", "public void updateCoordinates(MouseEvent mouse, Rectangle2D.Float environment) {\n\t\tboolean validDragging = false; // limits the user when dragging an object\n\t\tString[] tokens = LiquidApplication.getGUI().getFileVariables().getObjects().get(\n\t\t\t\tLiquidApplication.getGUI().getFileVariables().getSelectedObject()).split(\" \");\n\t\t\n\t\t// allows objects to go slightly out of the environment, without consequence\n \tif ((tokens[0].equals(GlobalVariables.ObjectType.Rectangle.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Circle.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Rectangle_Drain.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Circle_Drain.toString())) &&\n \t\t\t((initialX+mouse.getX()) > (9-Float.parseFloat(tokens[3]))) &&\n \t\t\t((initialY+mouse.getY()) > (9-Float.parseFloat(tokens[4]))) &&\n \t\t\t((initialX+mouse.getX()) < (environment.width-9)) &&\n\t\t\t\t((initialY+mouse.getY()) < (environment.height-9)))\n \t\tvalidDragging = true;\n\t\t\n \t// ensures the objects remain inside the environment to avoid any consequences\n \tif ((tokens[0].equals(GlobalVariables.ObjectType.Flowmeters.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Breakpoints.toString())) &&\n \t\t\t((initialX+mouse.getX()) > -1) &&\n \t\t\t((initialY+mouse.getY()) > -1) &&\n \t\t\t((initialX+mouse.getX()) < (environment.width-Float.parseFloat(tokens[3])+1)) &&\n \t\t\t((initialY+mouse.getY()) < (environment.height-Float.parseFloat(tokens[4])+1)))\n \t\tvalidDragging = true;\n \t\n \t// ensures the source's X-/Y-Forces also remain inside the environment\n \tif (tokens[0].equals(GlobalVariables.ObjectType.Sources.toString()) &&\n \t\t\t((initialX+mouse.getX()) > -1) &&\n \t\t\t((initialY+mouse.getY()) > -1) &&\n \t\t\t((initialX+mouse.getX() < (environment.width-Float.parseFloat(tokens[3])-9))) &&\n \t\t\t((initialY+mouse.getY() < (environment.height-Float.parseFloat(tokens[4])-9))))\n \t\tvalidDragging = true;\n \t\n \t// when requirements are met for a certain object, new X-/Y-Coordinates get added to the\n \t// object's original list of parameters, with the other parameters remaining constant\n\t\tif (validDragging) {\n\t\t\tString newInfo = tokens[0]+\" \"+(initialX+mouse.getX())+\" \"+(initialY+mouse.getY())+\" \";\n\t\t\tfor (int i = 3; i < tokens.length; i++)\n\t\t\t\tnewInfo += tokens[i]+\" \";\n\t\t\t\n\t\t\tLiquidApplication.getGUI().getFileVariables().getObjects().set(\n\t\t\t\t\tLiquidApplication.getGUI().getFileVariables().getSelectedObject(),newInfo);\n\t\t\tvalidDragging = false;}\n\t}", "@Override\npublic void mouseMoved(MouseEvent e) {\n Point mouse = e.getPoint();\n isImHover = importHover(mouse.getX(),mouse.getY());\n isExHover = exportHover(mouse.getX(),mouse.getY());\n isImChose = !isExportError();\n if(!isImHover) {\n isImPress = false;\n }\n if(!isExHover) {\n isExPress = false;\n } \n repaint(); \n }", "private VecCanvas(){\n MouseAdapter mouse = new CanvasMouse();\n this.addMouseListener(mouse);\n this.addMouseMotionListener(mouse);\n setupKeyBindings();\n }", "@Override\n public void onMouseMove(int xDelta, int yDelta, float xPos, float yPos) {\n mouseXPos = xPos;\n mouseYPos = yPos;\n\n if (isBeingRotated) {\n float angle = -xDelta * ROTATION_MODIFIER;\n eyeOffset.rotateZ(angle);\n\n } else if (isBeginMoved) {\n // x movement\n Vector3f eyeDir = new Vector3f(eyeOffset);\n eyeDir.mul(xDelta * DRAG_MODIFIER).cross(getUpVector());\n focus.add(eyeDir.x, eyeDir.y, 0);\n\n // y movement\n eyeDir.set(eyeOffset).mul(yDelta * DRAG_MODIFIER);\n focus.sub(eyeDir.x, eyeDir.y, 0);\n }\n }", "private static void OnMouseMove(Object sender, MouseEventArgs e)\r\n {\r\n // Un-vanish the cursor on any mouse move. \r\n _ShowCursor();\r\n }", "public void Draw(Graphics2D g2d, Point mousePosition)\n {\n \n }", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n int mouseX = e.getX();\r\n int mouseY = e.getY();\r\n\r\n if (eyesOpen == true) {\r\n //top left\r\n if (mouseX <= 385) {\r\n System.out.println(\"385\");\r\n }\r\n if (mouseX >= 390) {\r\n System.out.println(\"390\");\r\n }\r\n if (mouseX <= 385 && mouseY <= 245 && mouseY > 207) {\r\n eyeball1X = 380;\r\n eyeball1Y = 240;\r\n eyeball2X = 417;\r\n eyeball2Y = 240;\r\n }\r\n //bottom left\r\n if (mouseX <= 385 && mouseY >= 257) {\r\n eyeball1X = 380;\r\n eyeball1Y = 245;\r\n eyeball2X = 417;\r\n eyeball2Y = 245;\r\n }\r\n //top middle\r\n if (mouseX >= 390 && mouseX <= 410 && mouseY > 207) {\r\n eyeball1X = 385;\r\n eyeball1Y = 240;\r\n eyeball2X = 420;\r\n eyeball2Y = 240;\r\n }\r\n //bottom middle\r\n if (mouseX >= 390 && mouseX <= 410 && mouseY >= 267) {\r\n eyeball1X = 385;\r\n eyeball1Y = 245;\r\n eyeball2X = 420;\r\n eyeball2Y = 245;\r\n }\r\n //top right\r\n if (mouseX > 410 && mouseY <= 245 && mouseY > 207) {\r\n eyeball1X = 390;\r\n eyeball1Y = 240;\r\n eyeball2X = 425;\r\n eyeball2Y = 240;\r\n }\r\n //bottom right\r\n if (mouseX > 410 && mouseY >= 257) {\r\n eyeball1X = 390;\r\n eyeball1Y = 245;\r\n eyeball2X = 425;\r\n eyeball2Y = 245;\r\n }\r\n\r\n }\r\n }" ]
[ "0.72781247", "0.6505539", "0.64419794", "0.6258446", "0.62287027", "0.61179054", "0.6097977", "0.6006068", "0.599872", "0.58989286", "0.58737886", "0.5867541", "0.5853765", "0.5828951", "0.5822118", "0.5818008", "0.581737", "0.58070374", "0.5766006", "0.57484454", "0.57449085", "0.5744383", "0.5723618", "0.56960046", "0.56744534", "0.56741494", "0.5672417", "0.5671449", "0.5660696", "0.5659263", "0.5657422", "0.5649797", "0.5645099", "0.56428206", "0.5642247", "0.56364155", "0.56353635", "0.5616079", "0.56131196", "0.5608807", "0.56076694", "0.56042016", "0.56006783", "0.56004536", "0.559588", "0.559588", "0.55952936", "0.5592396", "0.5592396", "0.5592396", "0.55919534", "0.558766", "0.5578508", "0.5576464", "0.55746794", "0.55594844", "0.5557618", "0.55488026", "0.5544199", "0.55402523", "0.5525255", "0.55063957", "0.5488264", "0.5481864", "0.5479077", "0.54742074", "0.54742074", "0.5474038", "0.54739034", "0.5472637", "0.54690367", "0.54674983", "0.54666257", "0.54635155", "0.54609996", "0.5451606", "0.545054", "0.5448719", "0.54424673", "0.5441415", "0.5439186", "0.5436577", "0.5436174", "0.54352635", "0.54193705", "0.5414787", "0.54139996", "0.54119545", "0.54103756", "0.54077756", "0.5400505", "0.53932697", "0.539287", "0.53891337", "0.5383151", "0.53801054", "0.5379771", "0.5377519", "0.536709", "0.5362796" ]
0.7155958
1
When mouse goes out of the canvas
@Override public void mouseExited(MouseEvent e) { // Reset mouse position memory as mouse exit the canvas mousePosition = new MousePosition(); // Update display if (getChart() != null) { getChart().getView().shoot(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reportMouseOut()\n\t{\n\t\tif(mouseIn)\n\t\t{\n\t\t\tmouseIn = false;\n\t\t\ttarget.onLeave();\n\t\t}\n\t}", "private static void OnMouseLeave(Object sender, MouseEventArgs e)\r\n { \r\n // Un-vanish the cursor on any mouse leave.\r\n _ShowCursor(); \r\n }", "void mouseExited(MouseEvent mouseEvent);", "public void mouseExited (MouseEvent m) {}", "public void mouseOut() {\n process(1);\n }", "public void mouseExited(MouseEvent event){\t\n\t\t// We left the card without releasing the mouse press, so we're not counting it as a click\n\t\tclickflag = false;\n\t}", "@Override\n\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t\tinMouse = false;\n\t\t\trepaint();\n\t\t}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited(MouseEvent e) {}", "public void mouseExited(MouseEvent e) {}", "@Override\n\tpublic void mouseExited() {\n\t\t\n\t}", "@Override\r\n public void mouseExited(MouseEvent e) {\n\r\n }", "public void mouseDragOver() {\n canvasDrawer.setEraseFalse();\n canvasArea.setCursor(Cursor.DEFAULT);\n }", "public void mouseExited(MouseEvent e)\n { }", "public void mouseExited(MouseEvent e) {\n\n }", "@Override\r\n public void mouseExited(MouseEvent e)\r\n {\n\r\n }", "public void mouseExited(MouseEvent e) {\n }", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "public void mouseExited(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseExited(MouseEvent e) {\n moveP = null; // sicherer\n }", "@Override\npublic void mouseExited(MouseEvent e)\n{\n\t\n}", "public void mouseExited(MouseEvent me) {\n endDrag();\n }", "public void mouseExited(MouseEvent evt) {\r\n }", "@Override\r\n public void mouseExited(MouseEvent arg0)\r\n {\n\r\n }", "public void mouseExited(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseExited(MouseEvent e){\n\t\tSystem.out.println(\"Mouse Exited\");\n\n\t\t//Update boolean\n\t\tworld.updateMouse(false);\n\t}", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n }", "@Override\n public void mouseExited(MouseEvent e){\n }", "public void mouseExited(MouseEvent arg0) {\n\n }", "public void mouseExited(MouseEvent e)\n {}", "@Override\n public void mouseExited(MouseEvent evt) {\n }", "public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent e) {\n\r\n\t}", "public void mouseExited(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void mouseExited(final MouseEvent event){}", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n\t\t public void mouseExited(MouseEvent arg0) {\n\t\t }", "@Override\n public void mouseExited(MouseEvent e)\n {\n }", "@Override\n public void mouseExited(MouseEvent e)\n {\n }", "public void mouseExited(MouseEvent e) {\r\n\t}", "public void mouseExited( MouseEvent event )\n\t {\n\t \t coords.setText( \"Outside\" );\n\t }", "@Override\n public void mouseExited(java.awt.event.MouseEvent e) {\n }", "void mouseReleased() {\n firing = false;\n}", "@Override\n public void mouseExited(MouseEvent arg0) {\n \n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "@Override\n public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent arg0) {\n // TODO Auto-generated method stub\n\n }", "public void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseExited(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void mouseExited(MouseEvent me) {\n }", "@Override\n public void mouseExited(MouseEvent arg0) {\n\n }", "public void mouseExited(MouseEvent e) {\n\r\n\t\t}", "public void mouseExited(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseExited(MouseEvent e)\r\n\t{\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\r\n\t}", "public void mouseReleased(MouseEvent e)\n {\n //add a null ColorPoint to the points\n //to signify the end of a continuous\n //section when redrawing the image\n points.add(null);\n }", "public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent e) {\n\n }", "public void mouseExited(MouseEvent e) {\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e)\r\n\t{\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = false;\r\n\t\trepaint();\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\t\tl1.setText(\"You exited the mouse\");\r\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tcurrentPoint = null;\n\t}", "public void mouseExited(MouseEvent e) {\n\t\t\n\t}", "public void mouseExited(MouseEvent e) {\n\t\t\n\t}", "public void mouseExited(MouseEvent e) {\n\t\t\n\t}", "public void mouseExited(MouseEvent e) {\n\t\t\n\t}", "public void mouseExited(MouseEvent arg0) {\r\n\r\n\t\t/* interrupt sleep because mouse was moved away from the object */\r\n\t\targ0.consume();\r\n\t\tt.interrupt();\r\n\r\n\t\tif (!helpActive) {\r\n\t\t\tpopup.setVisible(false);\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\r\n\t\t\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\r\n\t}", "public void mouseExited(MouseEvent e) {\n\n\t}", "@Override\r\n public void mouseExited(MouseEvent e) {\n }", "@Override\r\n public void mouseExited(MouseEvent e) {\n }" ]
[ "0.7127799", "0.70206016", "0.6849453", "0.6823245", "0.68178946", "0.6812184", "0.67918515", "0.6771264", "0.6771264", "0.6771264", "0.6771264", "0.6734329", "0.66865987", "0.66771394", "0.66735506", "0.66723853", "0.6653881", "0.6645011", "0.6633606", "0.66333973", "0.6616321", "0.66090196", "0.65851325", "0.65645254", "0.6550974", "0.6548626", "0.6533532", "0.653198", "0.653198", "0.653198", "0.653198", "0.653198", "0.65196836", "0.65101916", "0.65077585", "0.6504448", "0.6501924", "0.6495143", "0.6491395", "0.6491395", "0.6482437", "0.6481903", "0.6468305", "0.64658403", "0.6465146", "0.6464731", "0.6464731", "0.64638925", "0.6458691", "0.64541054", "0.645086", "0.6448029", "0.6446586", "0.6446586", "0.6446586", "0.6446586", "0.6446586", "0.64450735", "0.64440805", "0.64440805", "0.64440805", "0.64412606", "0.64217824", "0.6406805", "0.64027566", "0.6396377", "0.6394446", "0.6394446", "0.6394446", "0.6394446", "0.6394446", "0.6394446", "0.6394446", "0.6394446", "0.6391536", "0.63889605", "0.63871515", "0.6378546", "0.6378103", "0.6374934", "0.637394", "0.6367193", "0.6365063", "0.6365063", "0.6365063", "0.6365063", "0.6362251", "0.6357268", "0.6357268", "0.6353963", "0.6353963", "0.6353963", "0.6353963", "0.6353963", "0.6353963", "0.6353963", "0.6353963", "0.6353072", "0.63503957", "0.63503957" ]
0.74935323
0
When mouse is clicked, i.e. when button is pressed and released fast
@Override public void mouseClicked(MouseEvent e) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pressed(MouseEvent e)\r\n {\n }", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickflag = true;\t\t\n\t}", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "public void mousePressed (MouseEvent event) {}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "public void mousePressed( MouseEvent event ){}", "public void mouseClicked(MouseEvent event){}", "void mouseClicked(MouseEvent mouseEvent);", "void mousePressed(double x, double y, MouseEvent e );", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "void mousePressed(MouseEvent mouseEvent);", "public void mouseClicked( MouseEvent event ){}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif(!mouseDown) {\n\t\t\tclickButton();\n\t\t}\n\t\tmouseDown = true;\n\t}", "public void mousePressed() {\n }", "public void mousePressed(MouseEvent event)\r\n {\n }", "void onMouseClicked(MouseEventContext mouseEvent);", "void mouseClicked(double x, double y, MouseEvent e );", "public void mousePressed(MouseEvent e) {\r\n }", "protected void onRelease(){\n pressed = false;\n if(hovered) {\n onClick();\n }\n for(Runnable action : onRelease) action.run();\n }", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent event) { \n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseClicked(MouseEvent mouseClick)\r\n\t{\r\n\t\tmouseClickX = mouseClick.getX();\r\n\t\tmouseClickY = mouseClick.getY();\r\n\t\tmouseClickedFlag = true;\r\n\t\tmouseClickedFlagForWeapon = true;\r\n\t\tmouseClickCount = mouseClick.getClickCount();\r\n\t\tmouseButtonNumber = mouseClick.getButton();\r\n\t\t//System.out.println(\"MouseClickX: \" + mouseClickX);\r\n\t\t//System.out.println(\"MouseClickY: \" + mouseClickY);\r\n\t\t\r\n\t\t\r\n\t}", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "public void mousePressed(MouseEvent e) {\n\n }", "public synchronized void mousePressed (MouseEvent e)\n\t{\n\t\tMouseDown = true;\n\t\trequestFocus();\n\t}", "public void mousePressed(MouseEvent e) {\n }", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent me) {\r\n\t\tbuttonType = me.getButton();\r\n\t\tselect(me.getX(), me.getY());\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent event ) {\n\t\t\r\n\t\tint whichButton =event.getButton();\r\n\t\tmsg=\"\";\r\n\t\tmsg =\"You Pressed Mouse \" ;\r\n\t\t\r\n\t\tif(whichButton==MouseEvent.BUTTON1)\r\n\t\t\tmsg+=\" BUTTON 1\";\r\n\t\telse if(whichButton==MouseEvent.BUTTON2)\r\n\t\t\tmsg+=\"Button 2\";\r\n\t\telse\r\n\t\t\tmsg+=\"Button 3\";\r\n\t\t\r\n\t\tmsg+=\"You are at position \"+\"<X \"+event.getX()+\" Y \"+event.getY()+\">\";\r\n\t\t\r\n\t\tif(event.getClickCount()==2)\r\n\t\t{\r\n\t\t\tmsg+=\" You double Clicked\";\r\n\t\t}\r\n\t\telse\r\n\t\t\tmsg+=\" You singel-Clicked\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}", "public void mousePressed(MouseEvent e) {\n }", "public void mousePressed(MouseEvent e)\n { }", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent evt) {\r\n }", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "public void mousePressed(MouseEvent event)\n {\n mouseClicked = true;\n if(gameOver)\n {\n mouseClicked = false;\n gameOver = false;\n gameStarted = false;\n score = 0;\n restartGame();\n pipeTimer.stop();\n startGame.start();\n }\n }", "public void mouseClicked(MouseEvent evt) {\n }", "public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }", "public void mousePressed(MouseEvent e) \r\n\t{\r\n\t}", "@Override\r\n public boolean mousePressed(MouseEvent e) {\r\n state = 2;\r\n return true;\r\n }", "public void mouseClicked(MouseEvent event)\n\t\t{}", "public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "public void mousePressed(MouseEvent e)\r\n\t{\r\n\t}", "public void mousePressed(MouseEvent e) {\n\n\t}", "public void mousePressed(MouseEvent e)\n\t{\n\t}", "public void click() {\n if(!isEnabled()) return;\n\n boolean realHovered = hovered;\n hovered = true;\n onPress();\n onRelease();\n hovered = realHovered;\n }", "@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }", "public void mouseClicked(MouseEvent e) { \r\n }", "protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "public void mousePressed(MouseEvent e) {\n\r\n\t}", "public void mousePressed(MouseEvent arg0) {\n\n }", "public void mousePressed(MouseEvent arg0) {\n\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n clicked = true;\n }", "public void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "public void mousePressed(MouseEvent click) {\r\n\t\tif (gameState == 2) {\r\n\t\t\tif ((SwingUtilities.isLeftMouseButton(click))) {\r\n\t\t\t\tlClick = true;\r\n\t\t\t\twasReleased = false;\r\n\t\t\t\tif (!alreadyShot) {\r\n\t\t\t\t\tarrowMech();\r\n\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t}\r\n\t\t\t\talreadyShot = true;\r\n\t\t\t}\r\n\t\t\telse if (SwingUtilities.isRightMouseButton(click)) {\r\n\t\t\t\trClick = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }", "public void mouseClicked(MouseEvent e)\n {}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseReleased( MouseEvent event ){}", "public void press(int x, int y, int state);", "public void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n \t // Click gauche enfoncé\n \t if (e.getButton() == 1) {\n\t \t app.modifierCurseurVue(Cursor.MOVE_CURSOR);\n\t \t prevX = e.getX();\n\t \t prevY = e.getY();\n \t }\n }", "public abstract void mouseClicked(MouseEvent e);", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "public void mouseClicked(MouseEvent e) {\r\n\t}", "void mouseReleased(double x, double y, MouseEvent e );", "public void mousePressed(MouseEvent e) {\n mDown=true;\n int i=0;\n // Iterate through each button bounding box\n for(Rectangle r : buttonBounds) {\n // Check if the click point intersects with the rectangle's area\n if(r.contains(e.getPoint())) {\n // If it does, call the buttonCallback with the appropriate button display text\n buttonCallback(buttonNames.get(i));\n }\n i++;\n }\n }", "private void button1MousePressed(MouseEvent e) {\n }", "public void mouseClicked(MouseEvent arg0) {\n }", "void mousePressed() {\n firing = true;\n\n}", "public void mousePressed(MouseEvent e) {\n\t\t\t\r\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent me)\n\t{\n\t\tregisterEvent(me.getX(),me.getY(),me.getButton());\n\t\trepaint();\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked (MouseEvent m) {\r\n \t//System.out.println(\"mouseClicked..\");\t\r\n }", "public void mousePressed(MouseEvent arg0) {\n }", "@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}" ]
[ "0.8051073", "0.7989531", "0.79849625", "0.78343505", "0.78223747", "0.78071547", "0.7793862", "0.77613515", "0.7748046", "0.7739457", "0.77373546", "0.77373546", "0.77373546", "0.77368003", "0.77353865", "0.7673535", "0.76255286", "0.7603248", "0.7587542", "0.7564072", "0.7557745", "0.7517815", "0.7515177", "0.7515177", "0.7515177", "0.7515177", "0.75060153", "0.7504398", "0.75003034", "0.7495059", "0.7492706", "0.74787027", "0.74768955", "0.7475471", "0.7475471", "0.7472965", "0.74685115", "0.7463307", "0.7461489", "0.7456684", "0.7456684", "0.7456684", "0.7456684", "0.74510896", "0.74502784", "0.7434386", "0.7433764", "0.74211437", "0.74189883", "0.7410175", "0.74101174", "0.7407797", "0.7406454", "0.7406454", "0.7406454", "0.73838824", "0.7370404", "0.7367009", "0.7362882", "0.7345641", "0.73425853", "0.7339502", "0.73348063", "0.7332383", "0.73252136", "0.73252136", "0.7323814", "0.73103356", "0.73095864", "0.7305475", "0.7304499", "0.7303153", "0.7280925", "0.7280925", "0.7279528", "0.7277184", "0.7277022", "0.72687286", "0.7264979", "0.7264182", "0.7264182", "0.7262663", "0.7262601", "0.725811", "0.72475994", "0.72463834", "0.72404146", "0.7229239", "0.7224105", "0.722385", "0.722385", "0.722385", "0.7219514", "0.7217333", "0.72156906", "0.720495", "0.720493", "0.72021085", "0.72021085", "0.71981996", "0.7198164" ]
0.0
-1
When mouse enters the canvas
@Override public void mouseEntered(MouseEvent e) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}", "public void mouseEntered (MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered( MouseEvent event ){}", "void mouseEntered(MouseEvent mouseEvent);", "public void mouseEntered (MouseEvent m) { }", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\n }", "public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseEntered(MouseEvent e)\n {}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered(MouseEvent e)\n { }", "public void mouseEntered(MouseEvent evt) {\r\n }", "public void mouseEntered(MouseEvent mouseEnter)\r\n\t{\r\n\t\t\r\n\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\r\n\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered(MouseEvent e) {\n\t\t\n\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\n\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\n\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\n\t}", "public void mouseEntered (MouseEvent me) { }", "public void mouseEntered(MouseEvent e) {\n\n }", "public void mouseEntered(MouseEvent e) {\n\r\n\t}", "@Override\r\n public void mouseEntered(MouseEvent e) {\r\n }", "public void mouseEntered(MouseEvent e) {\n\t}", "public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered(MouseEvent e)\r\n\t{\r\n\t}", "@Override\n public void mouseEntered(MouseEvent e)\n {\n }", "@Override\n public void mouseEntered(MouseEvent e)\n {\n }", "public void mouseEntered(MouseEvent e) {\n\r\n\t\t}", "public void mouseEntered(MouseEvent e)\n {\n resetCursor();\n }", "public void mouseEntered(MouseEvent e) {\n\n\t}", "public void mouseEntered(MouseEvent event) {\n\t}", "public void mouseEntered(MouseEvent e)\n\t{\n\t}", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(final MouseEvent event){}", "@Override\n public void mouseEntered(MouseEvent e){\n }", "@Override\n public void mouseEntered(MouseEvent arg0) {\n \n }", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void mouseEntered(MouseEvent e) {\n\r\n }", "public void mouseEntered(MouseEvent arg0) {\n\n }", "@Override\npublic void mouseEntered(MouseEvent e)\n{\n\t\n}", "public void mouseEntered(MouseEvent arg0) {\n // TODO Auto-generated method stub\n\n }", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e)\r\n\t{\n\r\n\t}", "@Override\r\n\t\t public void mouseEntered(MouseEvent arg0) {\n\t\t }", "@Override\n public void mouseEntered(MouseEvent evt) {\n }", "@Override\n public void mouseEntered(MouseEvent arg0) {\n\n }", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}" ]
[ "0.75464255", "0.7531019", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74144155", "0.741436", "0.733305", "0.7302741", "0.72830576", "0.725563", "0.725105", "0.7215967", "0.7200657", "0.7184722", "0.71772844", "0.71639323", "0.7161356", "0.7148044", "0.7148044", "0.7148044", "0.71433455", "0.7142808", "0.7142808", "0.7142808", "0.7142808", "0.71298957", "0.7118999", "0.7118999", "0.7118999", "0.7118999", "0.71088815", "0.7106064", "0.7096056", "0.708873", "0.7087023", "0.70802987", "0.70736396", "0.70736396", "0.70736396", "0.70736396", "0.70728564", "0.70707434", "0.7067442", "0.7064427", "0.7064427", "0.70627993", "0.7061039", "0.70482963", "0.7042956", "0.70415354", "0.703699", "0.703699", "0.70356196", "0.7031041", "0.7030448", "0.7023138", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014555", "0.7014125", "0.7014125", "0.7014125", "0.7014125", "0.7014125", "0.7014125", "0.70123476", "0.70123476", "0.70123476", "0.70074356", "0.70061463", "0.70013845", "0.6996123", "0.6992309", "0.6990756", "0.6985585", "0.69777447", "0.69725245", "0.6969397", "0.6969397", "0.6969397", "0.6969397", "0.696918", "0.6966547", "0.6963756" ]
0.71324354
30
MOUSE 2D PROCESSING Perform the actual 2D ZOOM or UNZOOM according to the recorded mouse gesture.
protected void applyMouse2DSelection(View view) { boolean allowCrop = true; if (!mouseSelection.complete()) { return; } // Reset selection to UNZOOM if (!mouseSelection.growing()) { // getChart().getScene().getGraph().setClipBox(null); if (allowCrop) getChart().getScene().getGraph().setClipBox(null); view.setBoundMode(ViewBoundMode.AUTO_FIT); } // Or apply selection to ZOOM else { BoundingBox3d bounds = view.getBounds().clone(); configureZoomAccordingTo2DView(view, bounds, mouseSelection); // Reset mouse selection now so that next rendering will hide it from screen mouseSelection = new MouseSelection(); // Won't do anything for irrelevant bounds leading to a flat graph if (bounds.getXRange().getRange() <= 0 || bounds.getYRange().getRange() <= 0 || bounds.getZRange().getRange() <= 0) return; //System.out.println("Will zoom to " + bounds); // Crop and zoom if (allowCrop) { boolean includeLimits = false; // to avoid inacurrate box scale getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false); } view.setBoundsManual(bounds); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "protected abstract void handleZoom();", "@Override\n\t\tpublic void OnDoubleFingerStartZoom(MotionEvent ev) {\n\n\t\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }", "public void updateGameMode2 (MouseEvent e)\n {\n if ((e.getX() >= 512 && e.getX() <= 836) && (e.getY() >= 161 && e.getY() <=520))\n twoPPressed = true;\n else if ((e.getX() >= 62 && e.getX() <= 386) && (e.getY() >= 161 && e.getY() <=520))\n onePPressed = true;\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "protected void configureZoomAccordingTo2DView(View view, BoundingBox3d bounds,\n MouseSelection mouseSelection) {\n if (view.is2D_XY()) {\n bounds.setXmin(mouseSelection.min3DX());\n bounds.setXmax(mouseSelection.max3DX());\n bounds.setYmin(mouseSelection.min3DY());\n bounds.setYmax(mouseSelection.max3DY());\n } else if (view.is2D_XZ()) {\n bounds.setXmin(mouseSelection.min3DX());\n bounds.setXmax(mouseSelection.max3DX());\n bounds.setZmin(mouseSelection.min3DZ());\n bounds.setZmax(mouseSelection.max3DZ());\n } else if (view.is2D_YZ()) {\n bounds.setYmin(mouseSelection.min3DY());\n bounds.setYmax(mouseSelection.max3DY());\n bounds.setZmin(mouseSelection.min3DZ());\n bounds.setZmax(mouseSelection.max3DZ());\n } else {\n throw new RuntimeException(\"Unexpected 2D view\");\n }\n\n // System.out.println(\"Mouse.Bounds : \" + bounds);\n }", "@Override\n public void processInput(Vector2f m) {\n\n //Check if mouse within bounds, if so, kill it\n if (mouse.buttonDown(MouseEvent.BUTTON1)) {\n if (m.x < this.tx + 800 && m.x > this.tx - 800 && m.y < this.ty + 800 && m.y > this.ty - 800) {\n this.shotDown = true;\n }\n }\n\n }", "@Override\n public void mouse2Down(int key, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel,\n GralWidget widgg)\n {\n \n }", "protected void zoomBetweenCursors(){\n ixDataCursor1 = ixDataShown[xpCursor1];\n ixDataCursor2 = ixDataShown[xpCursor2];\n ixDataShowRight = ixDataCursor2 + (((ixDataCursor2 - ixDataCursor1) / 10) & widgg.mIxData);\n int ixiData1 = (ixDataShown[xpCursor1] >> widgg.shIxiData) & widgg.mIxiData;\n int ixiData2 = (ixDataShown[xpCursor2] >> widgg.shIxiData) & widgg.mIxiData;\n int time1 = widgg.tracksValue.getTimeShort(ixiData1);\n int time2 = widgg.tracksValue.getTimeShort(ixiData2);\n if((time2 - time1)>0){\n widgg.timeorg.timeSpread = (time2 - time1) * 10/8;\n assert(widgg.timeorg.timeSpread >0);\n } else {\n widgg.stop();\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n widgg.redraw(100, 200);\n \n }", "public void handleUserInput() {\n mouseProcessor.handleUserInput();\n }", "public void mouseDragged(MouseEvent e) \r\n\t{\r\n\t\tswitch (MouseDown) {\r\n\t\t\tcase 1:\r\n\t\t\t\tgetCamera().rotateY(((float)LastMouse[0]-e.getX())*0.4F);\r\n\t\t\t\tgetCamera().rotateX(((float)LastMouse[1]-e.getY())*-0.4F);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tgetCamera().translate(((float)LastMouse[0]-e.getX())*-0.01F,0,0);\r\n\t\t\t\tgetCamera().translate(0,((float)LastMouse[1]-e.getY())*0.01F,0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tgetCamera().zoom(((float)LastMouse[1]-e.getY())*0.1F);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t//System.out.print(\"MMove: \" + e.getPoint().toString() + \"\\r\");\r\n\t\te.consume();\r\n\t\tLastMouse[0] = e.getX();\r\n\t\tLastMouse[1] = e.getY();\r\n\t\trender(true);\t\t\r\n\t}", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "private void dragZoom() {\n\n\t\tint width = this.getWidth();\n\n\t\tint start = cont.getStart();\n\t\tdouble amount = cont.getLength();\n\n\t\tint newStart = (int) DrawingTools.calculatePixelPosition(x ,width,amount,start);\n\t\tint newStop = (int) DrawingTools.calculatePixelPosition(x2,width,amount,start);\n\t\tx = x2 = 0;\n\n\t\tint temp;\n\t\tif (newStop < newStart){\n\t\t\ttemp = newStart;\n\t\t\tnewStart = newStop;\n\t\t\tnewStop = temp;\n\t\t}\n\n\t\tcont.changeSize(newStart,newStop);\n\n\t}", "public Point mouseToSRV(int pointerX, int pointerY)\r\n\t{\r\n\t\tif (mZoom)\r\n\t\t{\r\n\t\t\tpointerX = (int)(((double)pointerX/(double)getOffsetBounds().width)*mRawImage.getWidth(null));\r\n\t\t\tpointerY = (int)(((double)pointerY/(double)getOffsetBounds().height)*mRawImage.getHeight(null));\r\n\t\t}\r\n\t\treturn new Point(pointerX, pointerY);\r\n\t}", "void multitouchZoom(int new_zoom);", "public boolean onTouch(android.view.View r4, android.view.MotionEvent r5) {\r\n /*\r\n r3 = this;\r\n boolean r4 = r3.mAnimatingZoomEnding\r\n r0 = 1\r\n if (r4 != 0) goto L_0x008f\r\n int r4 = r5.getPointerCount()\r\n r1 = 2\r\n if (r4 <= r1) goto L_0x000e\r\n goto L_0x008f\r\n L_0x000e:\r\n android.view.ScaleGestureDetector r4 = r3.mScaleGestureDetector\r\n r4.onTouchEvent(r5)\r\n android.view.GestureDetector r4 = r3.mGestureDetector\r\n r4.onTouchEvent(r5)\r\n int r4 = r5.getAction()\r\n r4 = r4 & 255(0xff, float:3.57E-43)\r\n if (r4 == 0) goto L_0x0079\r\n if (r4 == r0) goto L_0x006a\r\n if (r4 == r1) goto L_0x002e\r\n r2 = 3\r\n if (r4 == r2) goto L_0x006a\r\n r2 = 5\r\n if (r4 == r2) goto L_0x0079\r\n r5 = 6\r\n if (r4 == r5) goto L_0x006a\r\n goto L_0x008f\r\n L_0x002e:\r\n int r4 = r3.mState\r\n if (r4 != r1) goto L_0x008f\r\n android.graphics.PointF r4 = r3.mCurrentMovementMidPoint\r\n com.ablanco.zoomy.MotionUtils.midPointOfEvent(r4, r5)\r\n android.graphics.PointF r4 = r3.mCurrentMovementMidPoint\r\n float r5 = r4.x\r\n android.graphics.PointF r1 = r3.mInitialPinchMidPoint\r\n float r2 = r1.x\r\n float r5 = r5 - r2\r\n r4.x = r5\r\n float r5 = r4.y\r\n float r1 = r1.y\r\n float r5 = r5 - r1\r\n r4.y = r5\r\n float r5 = r4.x\r\n android.graphics.Point r1 = r3.mTargetViewCords\r\n int r2 = r1.x\r\n float r2 = (float) r2\r\n float r5 = r5 + r2\r\n r4.x = r5\r\n float r5 = r4.y\r\n int r1 = r1.y\r\n float r1 = (float) r1\r\n float r5 = r5 + r1\r\n r4.y = r5\r\n float r5 = r4.x\r\n float r4 = r4.y\r\n android.widget.ImageView r1 = r3.mZoomableView\r\n r1.setX(r5)\r\n android.widget.ImageView r5 = r3.mZoomableView\r\n r5.setY(r4)\r\n goto L_0x008f\r\n L_0x006a:\r\n int r4 = r3.mState\r\n if (r4 == r0) goto L_0x0075\r\n if (r4 == r1) goto L_0x0071\r\n goto L_0x008f\r\n L_0x0071:\r\n r3.endZoomingView()\r\n goto L_0x008f\r\n L_0x0075:\r\n r4 = 0\r\n r3.mState = r4\r\n goto L_0x008f\r\n L_0x0079:\r\n int r4 = r3.mState\r\n if (r4 == 0) goto L_0x008d\r\n if (r4 == r0) goto L_0x0080\r\n goto L_0x008f\r\n L_0x0080:\r\n r3.mState = r1\r\n android.graphics.PointF r4 = r3.mInitialPinchMidPoint\r\n com.ablanco.zoomy.MotionUtils.midPointOfEvent(r4, r5)\r\n android.view.View r4 = r3.mTarget\r\n r3.startZoomingView(r4)\r\n goto L_0x008f\r\n L_0x008d:\r\n r3.mState = r0\r\n L_0x008f:\r\n return r0\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.ablanco.zoomy.ZoomableTouchListener.onTouch(android.view.View, android.view.MotionEvent):boolean\");\r\n }", "public boolean onTouch(View v, MotionEvent event) {\n ImageView view = (ImageView) v;\n view.setScaleType(ImageView.ScaleType.MATRIX);\n float scale;\n\n dumpEvent(event);\n // Handle touch events here...\n\n switch (event.getAction() & MotionEvent.ACTION_MASK) {\n case MotionEvent.ACTION_DOWN: // first finger down only\n savedMatrix.set(matrix);\n start.set(event.getX(), event.getY());\n Log.d(TAG, \"mode=DRAG\"); // write to LogCat\n mode = DRAG;\n break;\n\n case MotionEvent.ACTION_UP: // first finger lifted\n\n case MotionEvent.ACTION_POINTER_UP: // second finger lifted\n\n mode = NONE;\n Log.d(TAG, \"mode=NONE\");\n break;\n\n case MotionEvent.ACTION_POINTER_DOWN: // first and second finger down\n\n oldDist = spacing(event);\n Log.d(TAG, \"oldDist=\" + oldDist);\n if (oldDist > 5f) {\n savedMatrix.set(matrix);\n midPoint(mid, event);\n mode = ZOOM;\n Log.d(TAG, \"mode=ZOOM\");\n }\n break;\n\n case MotionEvent.ACTION_MOVE:\n\n if (mode == DRAG) {\n matrix.set(savedMatrix);\n matrix.postTranslate(event.getX() - start.x, event.getY() - start.y); // create the transformation in the matrix of points\n } else if (mode == ZOOM) {\n // pinch zooming\n float newDist = spacing(event);\n Log.d(TAG, \"newDist=\" + newDist);\n if (newDist > 5f) {\n matrix.set(savedMatrix);\n scale = newDist / oldDist; // setting the scaling of the\n // matrix...if scale > 1 means\n // zoom in...if scale < 1 means\n // zoom out\n matrix.postScale(scale, scale, mid.x, mid.y);\n }\n }\n break;\n }\n\n view.setImageMatrix(matrix); // display the transformation on screen\n\n return true; // indicate event was handled\n }", "@Override\n public void onCaptureAreaReleased(Point point) {\n switch (this.mCameraType) {\n case 1: {\n StateMachine stateMachine = FastViewFinder.this.mStateMachine;\n StateMachine.TransitterEvent transitterEvent = StateMachine.TransitterEvent.EVENT_CAPTURE_BUTTON_RELEASE;\n Object[] arrobject = new Object[]{StateMachine.TouchEventSource.CAPTURE_AREA};\n stateMachine.sendEvent(transitterEvent, arrobject);\n }\n default: {\n break;\n }\n case 2: {\n if (FastViewFinder.this.mStateMachine.isInModeLessRecording()) {\n StateMachine stateMachine = FastViewFinder.this.mStateMachine;\n StateMachine.TransitterEvent transitterEvent = StateMachine.TransitterEvent.EVENT_CAPTURE_BUTTON_RELEASE;\n Object[] arrobject = new Object[]{StateMachine.TouchEventSource.CAPTURE_AREA};\n stateMachine.sendEvent(transitterEvent, arrobject);\n break;\n }\n FastViewFinder.this.mStateMachine.sendEvent(StateMachine.TransitterEvent.EVENT_CAMCORD_BUTTON_RELEASE, new Object[0]);\n }\n }\n FastViewFinder.this.mStateMachine.sendEvent(StateMachine.TransitterEvent.EVENT_CANCEL_TOUCH_ZOOM, new Object[0]);\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "public void panOrZoom(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON2 && ui_inter != UI_INTERACTION.PANNING && pan_mode == false) return;\n switch (me_enum) {\n case PRESSED: initializeDragVars(me); ui_inter = UI_INTERACTION.PANNING; repaint(); break;\n case DRAGGED: updateDragVars(me,true); repaint(); break;\n case RELEASED: updateDragVars(me,true); ui_inter = UI_INTERACTION.NONE; \n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n if (dx != 0.0 || dy != 0.0) {\n Rectangle2D r = getExtents();\n setExtents(new Rectangle2D.Double(r.getX() - dx, r.getY() - dy, r.getWidth(), r.getHeight()));\n }\n break;\n case CLICKED: zoomToFit(); break;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "private static void mapScaler(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.camera2.legacy.ParameterUtils.ZoomData r2, android.hardware.Camera.Parameters r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapScaler(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.legacy.ParameterUtils$ZoomData, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapScaler(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.legacy.ParameterUtils$ZoomData, android.hardware.Camera$Parameters):void\");\n }", "public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {\n \t\tint x_pd = x_p;\n \t\tint y_pd = y_p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Point2D.Double po = inverseTransformPoint(x_p, y_p);\n \t\t\tx_p = (int)po.x;\n \t\t\ty_p = (int)po.y;\n \t\t}\n \n \t\tfinal int tool = ProjectToolbar.getToolId();\n \n \t\tfinal Display display = ((DisplayCanvas)me.getSource()).getDisplay();\n \t\tfinal long layer_id = display.getLayer().getId();\n \n \t\tindex = findPoint(x_p, y_p, layer_id, mag);\n \n \t\tif (ProjectToolbar.PENCIL == tool && n_points > 0 && -1 == index && !me.isShiftDown() && !Utils.isControlDown(me)) {\n \t\t\t// Use Mark Longair's tracing: from the clicked point to the last one\n \t\t\tfinal double scale = layer_set.getVirtualizationScale();\n \t\t\t// Ok now with all found images, create a virtual stack that provides access to them all, with caching.\n \t\t\tfinal Worker[] worker = new Worker[2];\n \n \t\t\tTraceParameters tr_ = tr_map.get(layer_set);\n \t\t\tfinal TraceParameters tr = null == tr_ ? new TraceParameters() : tr_;\n \t\t\tif (null == tr_) {\n \t\t\t\tsynchronized (tr_map) {\n \t\t\t\t\ttr_map.put(layer_set, tr);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (tr.update) {\n \t\t\t\tworker[0] = new Worker(\"Preparing Hessian...\") { public void run() {\n \t\t\t\t\tstartedWorking();\n \t\t\t\t\ttry {\n \t\t\t\tUtils.log(\"Push ESCAPE key to cancel autotrace anytime.\");\n \t\t\t\tImagePlus virtual = new LayerStack(layer_set, scale, ImagePlus.GRAY8, Patch.class, display.getDisplayChannelAlphas()).getImagePlus();\n \t\t\t\t//virtual.show();\n \t\t\t\tCalibration cal = virtual.getCalibration();\n \t\t\t\tdouble minimumSeparation = 1;\n \t\t\t\tif (cal != null) minimumSeparation = Math.min(cal.pixelWidth,\n \t\t\t\t\t\t\t\t\t Math.min(cal.pixelHeight,\n \t\t\t\t\t\t\t\t\t\t cal.pixelDepth));\n \t\t\t\tComputeCurvatures hessian = new ComputeCurvatures(virtual, minimumSeparation, null, cal != null);\n \t\t\t\thessian.run();\n \n \t\t\t\ttr.virtual = virtual;\n \t\t\t\ttr.scale = scale;\n \t\t\t\ttr.hessian = hessian;\n \t\t\t\ttr.update = false;\n \n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tIJError.print(e);\n \t\t\t\t\t}\n \t\t\t\t\tfinishedWorking();\n \t\t\t\t}};\n \t\t\t\tBureaucrat.createAndStart(worker[0], project);\n \t\t\t}\n \n \t\t\tPoint2D.Double po = transformPoint(p[0][n_points-1], p[1][n_points-1]);\n \t\t\tfinal int start_x = (int)po.x;\n \t\t\tfinal int start_y = (int)po.y;\n \t\t\tfinal int start_z = layer_set.indexOf(layer_set.getLayer(p_layer[n_points-1])); // 0-based\n \t\t\tfinal int goal_x = (int)(x_pd * scale); // must transform into virtual space\n \t\t\tfinal int goal_y = (int)(y_pd * scale);\n \t\t\tfinal int goal_z = layer_set.indexOf(display.getLayer());\n \n \t\t\t/*\n \t\t\tUtils.log2(\"x_pd, y_pd : \" + x_pd + \", \" + y_pd);\n \t\t\tUtils.log2(\"scale: \" + scale);\n \t\t\tUtils.log2(\"start: \" + start_x + \",\" + start_y + \", \" + start_z);\n \t\t\tUtils.log2(\"goal: \" + goal_x + \",\" + goal_y + \", \" + goal_z);\n \t\t\tUtils.log2(\"virtual: \" + tr.virtual);\n \t\t\t*/\n \n \n \t\t\tfinal boolean simplify = me.isAltDown();\n \n \t\t\tworker[1] = new Worker(\"Tracer - waiting on hessian\") { public void run() {\n \t\t\t\tstartedWorking();\n \t\t\t\ttry {\n \t\t\t\tif (null != worker[0]) {\n \t\t\t\t\t// Wait until hessian is ready\n \t\t\t\t\tworker[0].join();\n \t\t\t\t}\n \t\t\t\tsetTaskName(\"Tracing path\");\n \t\t\t\tfinal int reportEveryMilliseconds = 2000;\n \t\t\t\ttr.tracer = new TracerThread(tr.virtual, 0, 255,\n \t\t\t\t\t\t 120, // timeout seconds\n \t\t\t\t\t\t\t\t reportEveryMilliseconds,\n \t\t\t\t\t\t\t\t start_x, start_y, start_z,\n \t\t\t\t\t\t\t\t goal_x, goal_y, goal_z,\n \t\t\t\t\t\t\t\t true, // reciproal pix values at start and goal\n \t\t\t\t\t\t\t\t tr.virtual.getStackSize() == 1,\n \t\t\t\t\t\t\t\t tr.hessian,\n \t\t\t\t\t\t\t\t null == tr.hessian ? 1 : 4,\n \t\t\t\t\t\t\t\t null,\n \t\t\t\t\t\t\t\t null != tr.hessian);\n \t\t\t\ttr.tracer.addProgressListener(new SearchProgressCallback() {\n \t\t\t\t\tpublic void pointsInSearch(SearchThread source, int inOpen, int inClosed) {\n \t\t\t\t\t\tworker[1].setTaskName(\"Tracing path: open=\" + inOpen + \" closed=\" + inClosed);\n \t\t\t\t\t}\n \t\t\t\t\tpublic void finished(SearchThread source, boolean success) {\n \t\t\t\t\t\tif (!success) {\n \t\t\t\t\t\t\tUtils.logAll(\"Could NOT trace a path\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tpublic void threadStatus(SearchThread source, int currentStatus) {\n \t\t\t\t\t\t// This method gets called every reportEveryMilliseconds\n \t\t\t\t\t\tif (worker[1].hasQuitted()) {\n \t\t\t\t\t\t\tsource.requestStop();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t\t\ttr.tracer.run();\n \n \t\t\t\tfinal Path result = tr.tracer.getResult();\n \n \t\t\t\ttr.tracer = null;\n \n \t\t\t\tif (null == result) {\n \t\t\t\t\tUtils.log(\"Finding a path failed\"); //: \"+ \n \t\t\t\t\t\t// not public //SearchThread.exitReasonStrings[tracer.getExitReason()]);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \n \t\t\t\t// TODO: precise_x_positions etc are likely to be broken (calibrated or something)\n \n \n \t\t\t\t// Remove bogus points: those at the end with 0,0 coords\n \t\t\t\tint len = result.points;\n \t\t\t\tfinal double[][] pos = result.getXYZUnscaled();\n \t\t\t\tfor (int i=len-1; i>-1; i--) {\n \t\t\t\t\tif (0 == pos[0][i] && 0 == pos[1][i]) {\n \t\t\t\t\t\tlen--;\n \t\t\t\t\t} else break;\n \t\t\t\t}\n \t\t\t\t// Transform points: undo scale, and bring to this Polyline AffineTransform:\n \t\t\t\tfinal AffineTransform aff = new AffineTransform();\n \t\t\t\t/* Inverse order: */\n \t\t\t\t/* 2 */ aff.concatenate(Polyline.this.at.createInverse());\n \t\t\t\t/* 1 */ aff.scale(1/scale, 1/scale);\n \t\t\t\tfinal double[] po = new double[len * 2];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tpo[j] = pos[0][i];\n \t\t\t\t\tpo[j+1] = pos[1][i];\n \t\t\t\t}\n \t\t\t\tfinal double[] po2 = new double[len * 2];\n \t\t\t\taff.transform(po, 0, po2, 0, len); // what a stupid format: consecutive x,y pairs\n \n \t\t\t\tlong[] p_layer_ids = new long[len];\n \t\t\t\tdouble[] pox = new double[len];\n \t\t\t\tdouble[] poy = new double[len];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tp_layer_ids[i] = layer_set.getNearestLayer(pos[2][i]).getId(); // z_positions in 0-(N-1), not in 0-N like slices!\n \t\t\t\t\tpox[i] = po2[j];\n \t\t\t\t\tpoy[i] = po2[j+1];\n \t\t\t\t}\n \n \t\t\t\t// Simplify path: to steps of 5 calibration units, or 5 pixels when not calibrated.\n \t\t\t\tif (simplify) {\n \t\t\t\t\tObject[] ob = Polyline.simplify(pox, poy, p_layer_ids, 10000, layer_set);\n \t\t\t\t\tpox = (double[])ob[0];\n \t\t\t\t\tpoy = (double[])ob[1];\n \t\t\t\t\tp_layer_ids = (long[])ob[2];\n \t\t\t\t\tlen = pox.length;\n \t\t\t\t}\n \n \t\t\t\t// Record the first newly-added autotraced point index:\n \t\t\t\tlast_autotrace_start = Polyline.this.n_points;\n \t\t\t\tPolyline.this.appendPoints(pox, poy, p_layer_ids, len);\n \n \t\t\t\tPolyline.this.repaint(true);\n \t\t\t\tUtils.logAll(\"Added \" + len + \" new points.\");\n \n \t\t\t\t} catch (Exception e) { IJError.print(e); }\n \t\t\t\tfinishedWorking();\n \t\t\t}};\n \t\t\tBureaucrat.createAndStart(worker[1], project);\n \n \t\t\tindex = -1;\n \t\t\treturn;\n \n \t\t}\n \n \t\tif (ProjectToolbar.PEN == tool || ProjectToolbar.PENCIL == tool) {\n \n \t\t\tif (Utils.isControlDown(me) && me.isShiftDown()) {\n \t\t\t\tfinal long lid = Display.getFrontLayer(this.project).getId();\n \t\t\t\tif (-1 == index || lid != p_layer[index]) {\n \t\t\t\t\tindex = findNearestPoint(x_p, y_p, layer_id);\n \t\t\t\t}\n \t\t\t\tif (-1 != index) {\n \t\t\t\t\t//delete point\n \t\t\t\t\tremovePoint(index);\n \t\t\t\t\tindex = -1;\n \t\t\t\t\trepaint(false);\n \t\t\t\t}\n \n \t\t\t\t// In any case, terminate\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tif (-1 != index && layer_id != p_layer[index]) index = -1; // disable!\n \n \t\t\t//if no conditions are met, attempt to add point\n \t\t\telse if (-1 == index && !me.isShiftDown() && !me.isAltDown()) {\n \t\t\t\t//add a new point\n \t\t\t\tindex = addPoint(x_p, y_p, layer_id, mag);\n \t\t\t\tis_new_point = true;\n \t\t\t\trepaint(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tint pix, frameNum, keyFrameIndex;\n\t\t\t\tSystem.out.println(\"x: \" + e.getX() + \" y: \" + e.getY());\n\t\t\t\tfastForward = true;\n\t\t\t\tif (zoom_count == 0) {\n\t\t\t\t\tpix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 1) {\n\t\t\t\t\tpix = zoom1IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t} else if (zoom_count == 2) {\n\t\t\t\t\tpix = zoom2IndexImage.getRGB(e.getX() + start_x, e.getY());\n\t\t\t\t\tframeNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\tkeyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\tcurrFrame = keyFrameIndex / (352 * 288 * 3);\n\t\t\t\t}\n\n\t\t\t\tif (currFrame > 40) {\n\t\t\t\t\tcurrFrame -= 40;\n\t\t\t\t}\n\t\t\t\tisAlreadyPlaying = false;\n\n\t\t\t\tvideoThread.interrupt();\n\t\t\t\tsoundThread.interrupt();\n\t\t\t\tplaySound.pause();\n\t\t\t\ttry {\n\t\t\t\t\tvideoThread.sleep(10);\n\t\t\t\t\tsoundThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsoundThread = null;\n\t\t\t\tvideoThread = null;\n\t\t\t\tplaySound.jump(currFrame);\n\n\t\t\t\tplayback();\n\n\t\t\t}\n\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tPositionVO tmp = getPosition(e.getPoint());\n\t\tbp.getGrid(tmp).lighten();\n//\t\tif(e.getClickCount() == 2 && !bp.getLock() && !bp.getGrid(tmp).getMovement()){//双击\n\t\tif(e.getClickCount() == 2 && !bp.getLock() ){//双击\n\t\t\tbms.useToolGrid(tmp);\n\t\t}\n\t\telse{\n\t\t\tif (count == 0) {\n\t\t\t\tpvo1 = tmp;\n\t\t\t\tfocusGrids[0] = bp.getGrid(tmp);\n\t\t\t\tcount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (count == 1) {\n\t\t\t\tpvo2 = tmp;\n\t\t\t\tfocusGrids[1] = bp.getGrid(tmp);\n\t\t\t\t// if (pvo1.isValid(pvo2)) {\n\t\t\t\t// 调用model 以下直接调用panel里方法的 一些测试\n\t\t\t\t// bp.swapUnit(pvo1, pvo2);\n\t//\t\t\tif (!bp.getGrid(pvo1).getMovement()\n\t//\t\t\t\t\t&& !bp.getGrid(pvo2).getMovement())\n//\t\t\t\tif(bp.getStill())\n//\t\t\t\tif(!bp.getLock() && (!bp.getGrid(pvo1).getMovement()&& !bp.getGrid(pvo2).getMovement()))\n\t\t\t\tif(!bp.getLock())\n\t\t\t\t\tbms.trySwap(pvo1, pvo2);\n\t\t\t\tcount = 0;\n\t\t\t\tfocusGrids[0].normalize();\n\t\t\t\tfocusGrids[1].normalize();\n\t\t\t} else {\n\t\t\t\tpvo1 = pvo2;\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "public void mouseDragged (LayerEvent event) {\r\n \t\t\tif (!isEnabled()) return;\r\n\t\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n \r\n\t\t\tif (_rubberBand == null) {\r\n\t \t// This should never happen, but it does.\r\n\t \treturn;\r\n\t\t\t\t}\r\n \r\n\t\t\tif (_zoomInFilter.accept(event) || _zoomOutFilter.accept(event)) {\r\n\t\t\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t \t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\t\r\n\t\t\t// Figure out the coordinates of the rubber band\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t double useXPos = event.getLayerX();\r\n\t\t double useYPos = event.getLayerY();\r\n\t\t \r\n\t\t\t// space held down translates\r\n\t\t\t// rubberband _originX, _originY by event-prev\r\n\t\t\tif (((TrekCanvas)trekPane.getCanvas()).isSpaceDown()) {\r\n\t\t\t\t_originX += (useXPos - prevX);\r\n\t\t\t\t_originY += (useYPos - prevY);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tprevX = event.getLayerX();\r\n\t\t\tprevY = event.getLayerY();\r\n\t\t\t\r\n\t\t // Without control down rubberband conforms to visible aspect ratio\r\n\t\t if (!((TrekCanvas)trekPane.getCanvas()).isControlDown()) {\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble currAspect = visSize.getHeight()/visSize.getWidth();\r\n\t\t\t\tif (Math.abs(useYPos - _originY) > Math.abs(useXPos - _originX)) {\r\n\t\t\t\t\tuseXPos = _originX + (useXPos < _originX ? -1.0 : 1.0)*Math.abs((useYPos - _originY)/currAspect);\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuseYPos = _originY + (useYPos < _originY ? -1.0 : 1.0)*Math.abs((useXPos - _originX)*currAspect);\r\n\t\t\t\t\t}\r\n\t\t \t}\r\n\t\t \r\n\t\t\tif (event.isAltDown()) {\r\n\t\t\t\t_rubberBand.setFrameFromCenter(_originX, _originY, useXPos, useYPos);\r\n\t\t\t\t}\r\n else {\r\n\t\t\t\t_rubberBand.setFrameFromDiagonal(_originX, _originY, useXPos, useYPos);\r\n \t}\r\n \t\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t\t// Could possibly do some custom drawing showing an in or out zoom\r\n\t\t\tif (_isZoomingIn) {\r\n } \r\n else {\r\n }\r\n \r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t\t\tevent.consume();\r\n\t\t\t}\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public boolean onInterceptTouchEvent(android.view.MotionEvent r16) {\n /*\n r15 = this;\n r6 = r15\n r7 = r16\n int r0 = r16.getAction()\n r0 = r0 & 255(0xff, float:3.57E-43)\n r1 = -1\n r8 = 0\n r2 = 3\n if (r0 == r2) goto L_0x0119\n r9 = 1\n if (r0 != r9) goto L_0x0013\n goto L_0x0119\n L_0x0013:\n if (r0 == 0) goto L_0x001f\n boolean r2 = r6.mIsBeingDragged\n if (r2 == 0) goto L_0x001a\n return r9\n L_0x001a:\n boolean r2 = r6.mIsUnableToDrag\n if (r2 == 0) goto L_0x001f\n return r8\n L_0x001f:\n r2 = 2\n if (r0 == 0) goto L_0x00b9\n if (r0 == r2) goto L_0x002e\n r1 = 6\n if (r0 == r1) goto L_0x0029\n goto L_0x0107\n L_0x0029:\n r15.onSecondaryPointerUp(r16)\n goto L_0x0107\n L_0x002e:\n int r0 = r6.mActivePointerId\n if (r0 == r1) goto L_0x0107\n int r0 = android.support.v4.view.MotionEventCompat.findPointerIndex(r7, r0)\n float r10 = android.support.v4.view.MotionEventCompat.getX(r7, r0)\n float r1 = r6.mLastMotionX\n float r1 = r10 - r1\n float r11 = java.lang.Math.abs(r1)\n float r12 = android.support.v4.view.MotionEventCompat.getY(r7, r0)\n float r0 = r6.mInitialMotionY\n float r0 = r12 - r0\n float r13 = java.lang.Math.abs(r0)\n r0 = 0\n int r14 = (r1 > r0 ? 1 : (r1 == r0 ? 0 : -1))\n if (r14 == 0) goto L_0x0067\n float r0 = r6.mLastMotionX\n boolean r0 = r6.isGutterDrag(r0, r1)\n if (r0 != 0) goto L_0x0067\n r2 = 0\n int r3 = (int) r1\n int r4 = (int) r10\n int r5 = (int) r12\n r0 = r6\n r1 = r6\n boolean r0 = r0.canScroll(r1, r2, r3, r4, r5)\n if (r0 != 0) goto L_0x006d\n L_0x0067:\n boolean r0 = r6.canSelfScroll()\n if (r0 != 0) goto L_0x0074\n L_0x006d:\n r6.mLastMotionX = r10\n r6.mLastMotionY = r12\n r6.mIsUnableToDrag = r9\n return r8\n L_0x0074:\n int r0 = r6.mTouchSlop\n float r0 = (float) r0\n int r0 = (r11 > r0 ? 1 : (r11 == r0 ? 0 : -1))\n if (r0 <= 0) goto L_0x00a2\n r0 = 1056964608(0x3f000000, float:0.5)\n float r11 = r11 * r0\n int r0 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1))\n if (r0 <= 0) goto L_0x00a2\n r6.mIsBeingDragged = r9\n r6.requestParentDisallowInterceptTouchEvent(r9)\n r6.setScrollState(r9)\n if (r14 <= 0) goto L_0x0094\n float r0 = r6.mInitialMotionX\n int r1 = r6.mTouchSlop\n float r1 = (float) r1\n float r0 = r0 + r1\n goto L_0x009a\n L_0x0094:\n float r0 = r6.mInitialMotionX\n int r1 = r6.mTouchSlop\n float r1 = (float) r1\n float r0 = r0 - r1\n L_0x009a:\n r6.mLastMotionX = r0\n r6.mLastMotionY = r12\n r6.setScrollingCacheEnabled(r9)\n goto L_0x00ab\n L_0x00a2:\n int r0 = r6.mTouchSlop\n float r0 = (float) r0\n int r0 = (r13 > r0 ? 1 : (r13 == r0 ? 0 : -1))\n if (r0 <= 0) goto L_0x00ab\n r6.mIsUnableToDrag = r9\n L_0x00ab:\n boolean r0 = r6.mIsBeingDragged\n if (r0 == 0) goto L_0x0107\n boolean r0 = r6.performDrag(r10)\n if (r0 == 0) goto L_0x0107\n android.support.v4.view.ViewCompat.postInvalidateOnAnimation(r6)\n goto L_0x0107\n L_0x00b9:\n float r0 = r16.getX()\n r6.mInitialMotionX = r0\n r6.mLastMotionX = r0\n float r0 = r16.getY()\n r6.mInitialMotionY = r0\n r6.mLastMotionY = r0\n int r0 = android.support.v4.view.MotionEventCompat.getPointerId(r7, r8)\n r6.mActivePointerId = r0\n r6.mIsUnableToDrag = r8\n android.widget.Scroller r0 = r6.mScroller\n r0.computeScrollOffset()\n int r0 = r6.mScrollState\n if (r0 != r2) goto L_0x0102\n android.widget.Scroller r0 = r6.mScroller\n int r0 = r0.getFinalX()\n android.widget.Scroller r1 = r6.mScroller\n int r1 = r1.getCurrX()\n int r0 = r0 - r1\n int r0 = java.lang.Math.abs(r0)\n int r1 = r6.mCloseEnough\n if (r0 <= r1) goto L_0x0102\n android.widget.Scroller r0 = r6.mScroller\n r0.abortAnimation()\n r6.mPopulatePending = r8\n r6.populate()\n r6.mIsBeingDragged = r9\n r6.requestParentDisallowInterceptTouchEvent(r9)\n r6.setScrollState(r9)\n goto L_0x0107\n L_0x0102:\n r6.completeScroll(r8)\n r6.mIsBeingDragged = r8\n L_0x0107:\n android.view.VelocityTracker r0 = r6.mVelocityTracker\n if (r0 != 0) goto L_0x0111\n android.view.VelocityTracker r0 = android.view.VelocityTracker.obtain()\n r6.mVelocityTracker = r0\n L_0x0111:\n android.view.VelocityTracker r0 = r6.mVelocityTracker\n r0.addMovement(r7)\n boolean r0 = r6.mIsBeingDragged\n return r0\n L_0x0119:\n r6.mIsBeingDragged = r8\n r6.mIsUnableToDrag = r8\n r6.mActivePointerId = r1\n android.view.VelocityTracker r0 = r6.mVelocityTracker\n if (r0 == 0) goto L_0x012b\n android.view.VelocityTracker r0 = r6.mVelocityTracker\n r0.recycle()\n r0 = 0\n r6.mVelocityTracker = r0\n L_0x012b:\n return r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.autonavi.map.widget.RecyclableViewPager.onInterceptTouchEvent(android.view.MotionEvent):boolean\");\n }", "protected void onUpdateZoomCanvas(int x, int y) {\n if (mCanvasPreview == null) {\n return;\n }\n double scale = mScale * ZOOM_CANVAS_SCALE;\n Context2d c = mCanvasPreview.getContext2d();\n c.save(); \n c.scale(scale, scale);\n c.setFillStyle(HTMLColors.WHITE);\n c.fillRect(0, 0, mCanvasPreviewSize, mCanvasPreviewSize);\n int half = (int) ((mCanvasPreviewSize >> 1) / scale);\n c.drawImage(ImageElement.as(image.getElement()), -x + half, -y + half);\n c.restore();\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void handle(ScrollEvent e) {\n\t\t\t\tif (e.isControlDown() && getSkinnable().isScalableOnScroll()) {\r\n\t\t\t\t\tdouble delta = e.getDeltaY();\r\n\t\t\t\t\tdouble newValue = localScaleFactor.get();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue + ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue > ZOOM_MAX) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MAX;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue - ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue < ZOOM_MIN) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MIN;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlocalScaleFactor.set(newValue);\r\n\t\t\t\t\ttakeSnap(prevX.get(), prevY.get());\r\n\t\t\t\t}\r\n\t\t\t\t// If scrolled with ALT key press\r\n\t\t\t\telse if (e.isAltDown() && getSkinnable().isResizableOnScroll()) {\r\n\t\t\t\t\tfinal double delta = e.getDeltaY();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the size.\r\n\t\t\t\t\t\tlocalRadius.set(localRadius.get() + RADIUS_DELTA);\r\n\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the size.\r\n\t\t\t\t\t\tif (localRadius.get() > MIN_RADIUS) {\r\n\t\t\t\t\t\t\tlocalRadius.set(localRadius.get() - RADIUS_DELTA);\r\n\t\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\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}", "protected void processMouseEvent(MouseEvent e) {\r\n\r\n\t\tsuper.processMouseEvent(e);\r\n\t\t_doubleProcessingMouseEvent = false;\r\n\t\tTreePath selectedPath = getSelectionPath();\r\n\t\tif (selectedPath != null) {\r\n\t\t\tObject lastComponent = selectedPath.getLastPathComponent();\r\n\t\t\tif (lastComponent instanceof DefaultMutableTreeNode) {\r\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) lastComponent;\r\n\r\n\t\t\t\tif (node.isLeaf()) {\r\n\t\t\t\t\tint row = getRowForPath(selectedPath);\r\n\t\t\t\t\tRectangle bounds = getRowBounds(row);\r\n\t\t\t\t\tint pos = e.getX() - bounds.x;\r\n\t\t\t\t\tif (pos >= 0 && pos < 20) {\r\n\t\t\t\t\t\t_doubleProcessingMouseEvent = true;\r\n\t\t\t\t\t\tsuper.processMouseEvent(e);\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}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (getChart().getView().is2D()) {\n return;\n }\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n stopThreadController();\n float factor = 1 + (e.getWheelRotation() / 10.0f);\n zoomZ(factor);\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n //Log.d(TAG, \"In Action onTouchEvent \" + MotionEvent.actionToString(event.getActionMasked()) + \" PC \" + event.getPointerCount());\n this.actionUpDetected = false;\n boolean consumed = false;\n\n if(event.getPointerCount() > 1) {\n //Log.d(TAG, \"onTouchEvent clear pick list and reset dragging\");\n oFeaturePickList.clear();\n isDragging = false;\n dragDownEvent = null;\n oPreviousScrollEventPosition = null;\n }\n/*\n if ((System.currentTimeMillis() - lastDragComplete.getTime()) < 1000) {\n // After we process the drag complete which occurs with an ACTION_UP while isDragging,\n // we can't process events within a ~ 1 sec because the ACTION_UP that ends the drag that is\n // followed by an ACTION_DOWN then an ACTION_UP in rapid succession causes a double tap\n // to be generated.\n Log.i(TAG, event.getAction() + \" evt to close to drag complete. Picks \" + this.oFeaturePickList.size() + \".\");\n oFeaturePickList.clear();\n return true;\n }\n*/\n // See if its an UP event\n switch (event.getAction()) {\n case MotionEvent.ACTION_UP: {\n // See if we are dragging\n if (this.isDragging) {\n // The onScroll is not generated by the up action so we need to process it here\n // to generated the DRAW_COMPLETE event.\n Log.i(TAG, \"ACTION_UP evt. Picks \" + this.oFeaturePickList.size() + \".\");\n this.actionUpDetected = true;\n consumed = this.onScrollHandler(this.dragDownEvent, event, 0, 0);\n lastDragComplete.setTime(System.currentTimeMillis());\n } else {\n Log.i(TAG, \"ACTION_UP evt NOT dragging. Picks \" + this.oFeaturePickList.size() + \".\");\n }\n break;\n }\n }\n\n consumed = this.pickGestureDetector.onTouchEvent(event) || consumed;\n\n // If event was not consumed by the pick operation, pass it on the globe navigation handlers\n if ((MapMotionLockEnum.UNLOCKED == eLockMode) && !consumed && !dragConsumed) {\n // The super class performs the pan, tilt, rotate and zoom\n //Log.i(TAG, \"Forwarding event \" + event.getAction() + \" to super. Picks \" + this.oFeaturePickList.size() + \".\");\n consumed = super.onTouchEvent(event);\n }\n\n //Log.d(TAG, \"Out Action onTouchEvent \" + MotionEvent.actionToString(event.getActionMasked()) + \" PC \" + event.getPointerCount() + \" consumed \" + consumed);\n\n return consumed;\n }", "void regroupTouches() {\n\t\tint s=mTouchPoints.size();\n\t\tif (s>0) {\n\t\t\tif (mMainTouch == null) {\n\t\t\t\tif (mPinchTouch != null) {\n\t\t\t\t\tmMainTouch=mPinchTouch;\n\t\t\t\t\tmPinchTouch=null;\n\t\t\t\t} else {\n\t\t\t\t\tmMainTouch=getUnboundPoint();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (s>1) {\n\t\t\t\tif (mPinchTouch == null) {\n\t\t\t\t\tmPinchTouch=getUnboundPoint();\n\t\t\t\t\tstartZoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void genericMouse(ME_ENUM me_enum, MouseEvent me) {\n// System.err.println(\"\" + me_enum);\n boolean op_in_effect = false;\n if (ui_inter == UI_INTERACTION.NONE && me_enum == ME_ENUM.PRESSED) {\n op_in_effect = true;\n if (me.getButton() == MouseEvent.BUTTON2 || pan_mode) { panOrZoom(me_enum, me); \n } else if (me.getButton() == MouseEvent.BUTTON1 && grid_mode) { gridLayout(me_enum, me);\n } else if (me.getButton() == MouseEvent.BUTTON1 && line_mode) { lineLayout(me_enum, me);\n } else if (me.getButton() == MouseEvent.BUTTON1 && circ_mode) { circleLayout(me_enum, me);\n } else { selectOrMove(me_enum,me);\n }\n } else if (ui_inter == UI_INTERACTION.NONE && me_enum == ME_ENUM.CLICKED && me.getButton() == MouseEvent.BUTTON2) { panOrZoom(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.NONE && me_enum == ME_ENUM.CLICKED && me.getButton() == MouseEvent.BUTTON1) { selectOrMove(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.PANNING) { panOrZoom (me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.SELECTING) { selectOrMove(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.MOVING) { selectOrMove(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.GRID_LAYOUT) { gridLayout (me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.LINE_LAYOUT) { lineLayout (me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.CIRCLE_LAYOUT) { circleLayout(me_enum,me); op_in_effect = true;\n }\n // Capture mouse positions\n m_x = me.getX(); m_y = me.getY(); m_wx = sxToWx(m_x); m_wy = syToWy(m_y);\n // Inform the application of the entity under the mouse\n getRTParent().setEntitiesUnderMouse(underMouse(me));\n // If no operation is in effect, find the closest node and draw the labels\n RenderContext myrc = (RenderContext) rc;\n if (op_in_effect == false && myrc != null && myrc.draw_node_labels == false) {\n String new_dyn_labeler = underMouseSimple(me);\n if (dyn_labeler != null) {\n if (dyn_labeler.equals(new_dyn_labeler) == false) { dyn_labeler = new_dyn_labeler; repaint(); }\n } else if (new_dyn_labeler != null) { dyn_labeler = new_dyn_labeler; repaint(); }\n } else if (dyn_labeler != null) { dyn_labeler = null; repaint(); }\n }", "@Override\n public void onCaptureAreaReleased(Point point) {\n switch (this.mCameraType) {\n case 1: {\n this.setFocusPositionToDeviceAndViewFinder(point, FocusRectangles.FocusSetType.RELEASE);\n }\n default: {\n break;\n }\n case 2: {\n FastViewFinder.this.mStateMachine.sendEvent(StateMachine.TransitterEvent.EVENT_SCREEN_CLEAR, new Object[0]);\n }\n }\n FastViewFinder.this.mStateMachine.sendEvent(StateMachine.TransitterEvent.EVENT_CANCEL_TOUCH_ZOOM, new Object[0]);\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//inverted.invert();\n\t\t\t\t\t//Point2D point = inverted.transform(new Point2D.Double(e.getX(), e.getY()), null);\n\t\t\t\t\t//inverted.setToTranslation((double)e.getX(), (double)e.getY());\n\t\t\t\t\tPoint2D p = transform.inverseTransform(new Point2D.Double(e.getX() - panOrigin.getX(), e.getY() - panOrigin.getY()), null);\n\t\t\t\t\ttransform.translate(p.getX(), p.getY());\n\t\t\t\t\trevalidate();\n\t\t\t\t\trepaint();\n\t\t\t\t\tpanOrigin.setLocation(e.getX(), e.getY());\n\t\t\t\t\tSystem.out.printf(\"%f, %f\\n\", p.getX(), p.getY());\n\t\t\t\t} catch (NoninvertibleTransformException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n public boolean touchDown(float x, float y, int pointer, int button) {\n prevZoomFactor = getZoomFactor();\n return false;\n }", "public void mo21811a(MotionEvent motionEvent, int i, int i2) {\n int i3;\n MotionEvent motionEvent2 = motionEvent;\n int action = motionEvent.getAction() & 255;\n switch (action) {\n case 0:\n case 5:\n i3 = 1;\n break;\n case 1:\n case 6:\n i3 = 2;\n break;\n case 2:\n i3 = 4;\n break;\n default:\n i3 = 3;\n break;\n }\n if (i3 == 1 || i3 == 2) {\n this.f24498A = motionEvent2.getPointerId(0);\n }\n int pointerCount = motionEvent.getPointerCount();\n if (action == 2) {\n int historySize = motionEvent.getHistorySize();\n for (int i4 = 0; i4 < historySize; i4++) {\n C7011d dVar = r1;\n C7011d dVar2 = new C7011d(motionEvent, motionEvent2.getHistoricalEventTime(i4), i3, i2, i);\n dVar.mo22117a(pointerCount);\n int i5 = 0;\n while (i5 < pointerCount) {\n int i6 = i5;\n dVar.mo22118a(i5, motionEvent2.getPointerId(i5), motionEvent2.getHistoricalX(i5, i4), motionEvent2.getHistoricalY(i5, i4), motionEvent2.getHistoricalSize(i5, i4), motionEvent2.getHistoricalPressure(i5, i4));\n i5 = i6 + 1;\n }\n mo21813a((C7008a) dVar);\n }\n }\n C7011d dVar3 = new C7011d(motionEvent, motionEvent.getEventTime(), i3, i2, i);\n if (action == 1) {\n dVar3.mo22117a(0);\n } else {\n dVar3.mo22117a(pointerCount);\n for (int i7 = 0; i7 < motionEvent.getPointerCount(); i7++) {\n dVar3.mo22118a(i7, motionEvent2.getPointerId(i7), motionEvent2.getX(i7), motionEvent2.getY(i7), motionEvent2.getSize(i7), motionEvent2.getPressure(i7));\n }\n }\n mo21813a((C7008a) dVar3);\n }", "@Override\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\t\t\tif(enabled){\n\t\t\t\tImageIcon tap = null;\n\t\t\t\tif (e.getWheelRotation() < 0) {\n\t\t\t\t\t// zoom in - increase size\n\n\t\t\t\t\tif (zoom_count < 0) {\n\t\t\t\t\t\tzoom_count = 0;\n\t\t\t\t\t}\n\t\t\t\t\tzoom_count++;\n\t\t\t\t\t// fetch key frame number and get x, y of that frame in new\n\t\t\t\t\t// tapestry then crop image to that frame\n\t\t\t\t\tHashtable<Integer, ArrayList<ArrayList<Integer>>> xy = indexMap.getIndexTable();\n\t\t\t\t\ttapestry.removeAll();\n\t\t\t\t\tBufferedImage i = null;\n\t\t\t\t\tif (zoom_count == 1) {\n\t\t\t\t\t\tint pix = indexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = sceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(1).get(0));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom1 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 5;\n\n\t\t\t\t\t\tif (xy.get(frame).get(1).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(1).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(1).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(1).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count=1;\n\n\t\t\t\t\t} else if (zoom_count >= 2) {\n\n\t\t\t\t\t\tint pix = zoom1IndexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = zoom1SceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(2).get(0));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom2 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 20;\n\n\t\t\t\t\t\tif (xy.get(frame).get(2).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(2).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(2).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(2).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count=2;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tJLabel label = new JLabel(\"\", tap, JLabel.CENTER);\n\n\t\t\t\t\ttapestry.add(label, BorderLayout.CENTER);\n\n\t\t\t\t\ttapestry.revalidate();\n\t\t\t\t\ttapestry.repaint();\n\n\t\t\t\t} else {\n\t\t\t\t\t// zoom out - decrease size\n\t\t\t\t\tif (zoom_count > 2) {\n\t\t\t\t\t\tzoom_count = 2;\n\t\t\t\t\t}\n\t\t\t\t\tHashtable<Integer, ArrayList<ArrayList<Integer>>> xy = indexMap.getIndexTable();\n\t\t\t\t\ttapestry.removeAll();\n\t\t\t\t\tif (zoom_count >= 2) {\n\t\t\t\t\t\tint pix = zoom2IndexImage.getRGB(e.getX(), e.getY());\n\t\t\t\t\t\tint frameNum = (pix >> 16) & 0x000000FF;\n\t\t\t\t\t\tint keyFrameIndex = zoom2SceneIndex.get(frameNum);\n\t\t\t\t\t\tint frame = keyFrameIndex / (352 * 288 * 3);\n\n\t\t\t\t\t\t// find x,y of new tapestry\n\t\t\t\t\t\tSystem.out.println(\"x point in new tapestry: \" + xy.get(frame).get(1).get(0));\n\t\t\t\t\t\tBufferedImage i = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ti = ImageIO.read(new File(nameOfTapestry + \"_\" + method + \"_\" + threshold_zoom1 + \".png\"));\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint zoom_image_width = i.getWidth();\n\t\t\t\t\t\tint middle = zoom_image_width - original_tapestry_size_width;\n\n\t\t\t\t\t\tint T = 20;\n\n\t\t\t\t\t\tif (xy.get(frame).get(1).get(0) - T < 0) {\n\t\t\t\t\t\t\tstart_x = 0;\n\t\t\t\t\t\t\tend_x = original_tapestry_size_width;\n\t\t\t\t\t\t} else if ((xy.get(frame).get(1).get(0) - T + original_tapestry_size_width) > zoom_image_width) {\n\t\t\t\t\t\t\tstart_x = zoom_image_width - original_tapestry_size_width;\n\t\t\t\t\t\t\tend_x = zoom_image_width;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstart_x = xy.get(frame).get(1).get(0) - T;\n\t\t\t\t\t\t\tend_x = xy.get(frame).get(1).get(0) - T + original_tapestry_size_width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"x_start point : \" + start_x);\n\t\t\t\t\t\tSystem.out.println(\"x_endt point : \" + end_x);\n\n\t\t\t\t\t\ti = i.getSubimage(start_x, 0, (end_x - start_x), original_tapestry_size_height);\n\t\t\t\t\t\ttap = new ImageIcon(i);\n\t\t\t\t\t\tzoom_count = 1;\n\n\t\t\t\t\t} else if (zoom_count <= 1) {\n\t\t\t\t\t\ttap = new ImageIcon(nameOfTapestry + \"_\" + method + \"_\" + threshold + \".png\");\n\t\t\t\t\t\tzoom_count = 0;\n\t\t\t\t\t}\n\t\t\t\t\tJLabel label = new JLabel(\"\", tap, JLabel.CENTER);\n\n\t\t\t\t\ttapestry.add(label, BorderLayout.CENTER);\n\n\t\t\t\t\ttapestry.revalidate();\n\t\t\t\t\ttapestry.repaint();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t}", "@Override\n public boolean onTouch(View view, MotionEvent event) {\n final int X = (int) event.getRawX();\n final int Y = (int) event.getRawY();\n\n Delta delta = deltas.get(view);\n if(delta == null ){\n delta = new Delta();\n }\n\n\n final int action = event.getAction();\n final int fingersCount = event.getPointerCount();\n\n\n\n// if ((action == MotionEvent.ACTION_DOWN) && (fingersCount == 2)) {\n//\n// if(event.get\n//// if(keyCode== KeyEvent.KEYCODE_DPAD_UP){\n// // zoom in\n//// zoomControler+=10;\n// view.getLayoutParams().width += 10; //setBounds(new Float(this.getX()).intValue(), new Float(this.getY()).intValue(),getWidth()+10, this.getHeight()+10);\n// view.getLayoutParams().height += 10;\n//// }\n//// if(keyCode==KeyEvent.KEYCODE_DPAD_DOWN){\n//// // zoom out\n//// zoomControler-=10;\n//// image.setBounds(new Float(this.getX()).intValue(), new Float(this.getY()).intValue(),getWidth()-10, this.getHeight()-10);\n//// }\n//// if(zoomControler<10){\n//// zoomControler=10;\n//// image.setBounds(new Float(this.getX()).intValue(), new Float(this.getY()).intValue(),getWidth(), this.getHeight());\n//// }\n// return true;\n// }\n\n\n //Dependiendo de la accion recogida..\n switch (event.getAction() & MotionEvent.ACTION_MASK) {\n //Al tocar la pantalla\n case MotionEvent.ACTION_DOWN:\n //Recogemos los parametros de la imagen que hemo tocado\n RelativeLayout.LayoutParams Params =\n (RelativeLayout.LayoutParams) view.getLayoutParams();\n delta.xDelta = X - Params.leftMargin;\n delta.yDelta = Y - Params.topMargin;\n break;\n case MotionEvent.ACTION_UP:\n //Al levantar el dedo simplemento mostramos un mensaje\n// Toast.makeText(this, \"Soltamos\", Toast.LENGTH_LONG).show();\n break;\n case MotionEvent.ACTION_POINTER_DOWN:\n //No hace falta utilizarlo\n break;\n case MotionEvent.ACTION_POINTER_UP:\n //No hace falta utilizarlo\n break;\n case MotionEvent.ACTION_MOVE:\n //Al mover el dedo vamos actualizando\n //los margenes de la imagen para\n //crear efecto de arrastrado\n RelativeLayout.LayoutParams layoutParams =\n (RelativeLayout.LayoutParams) view.getLayoutParams();\n layoutParams.leftMargin = X - delta.xDelta;\n layoutParams.topMargin = Y - delta.yDelta;\n //Qutamos un poco de margen para\n //que la imagen no se deforme\n //al llegar al final de la pantalla y pueda ir más allá\n //probar también el codigo omitiendo estas dos líneas\n layoutParams.rightMargin = 0;\n layoutParams.bottomMargin = 0;\n //le añadimos los nuevos\n //parametros para mover la imagen\n view.setLayoutParams(layoutParams);\n break;\n }\n //Se podría decir que 'dibujamos'\n //la posición de la imagen en el marco.\n// marco.invalidate();\n deltas.put(view, delta);\n\n return true;\n }", "protected void processMouseEvent(MouseEvent e) {\n MouseEvent generatedClick = null;\n if (e.getID() == MouseEvent.MOUSE_PRESSED) {\n pressedWhen = e.getWhen();\n pressedPoint = null;\n } else if (e.getID() == MouseEvent.MOUSE_RELEASED) {\n if (e.getWhen() - pressedWhen == 1) {\n // #241878 dispatch MOUSE_RELEASED after forwarding MOUSE_PRESSED\n pressedPoint = e.getPoint();\n super.processMouseEvent(e);\n return;\n } else if (e.getPoint().equals(pressedPoint)) {\n pressedPoint = null;\n generatedClick = new MouseEvent(e.getComponent(), MouseEvent.MOUSE_CLICKED,\n e.getWhen() + 1, e.getModifiers(),\n e.getX(), e.getY(), e.getClickCount(),\n e.isPopupTrigger(), e.getButton());\n }\n pressedWhen = 0;\n }\n // ---------------------------------------------------------------------\n \n boolean popupEvent = providesPopupMenu && SwingUtilities.isRightMouseButton(e);\n boolean clickEvent = e.getID() == MouseEvent.MOUSE_CLICKED && SwingUtilities.isLeftMouseButton(e);\n int row = rowAtPoint(e.getPoint());\n \n // Do not process doubleclick in editable cell (checkbox)\n if (clickEvent && row != -1 && e.getClickCount() > 1) {\n if (isCellEditable(row, columnAtPoint(e.getPoint())))\n e = clearClicks(e);\n }\n \n // Right-press selects row for popup\n // Middle-press selects if enabled\n if (e.getID() == MouseEvent.MOUSE_PRESSED && row != -1) {\n if (popupEvent || (selectionOnMiddlePress && SwingUtilities.isMiddleMouseButton(e))) {\n ListSelectionModel sel = getSelectionModel();\n if (sel.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION || !sel.isSelectedIndex(row)) {\n selectRow(row, true);\n requestFocusInWindow();\n }\n }\n }\n// if (popupEvent && e.getID() == MouseEvent.MOUSE_PRESSED && row != -1) {\n// ListSelectionModel sel = getSelectionModel();\n// if (sel.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION ||\n// !sel.isSelectedIndex(row)) selectRow(row, true);\n// }\n \n super.processMouseEvent(e);\n \n // Right-click selects row and opens popup\n if (popupEvent && e.getID() == MouseEvent.MOUSE_CLICKED && row != -1) {\n ListSelectionModel sel = getSelectionModel();\n if (sel.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION ||\n !sel.isSelectedIndex(row)) selectRow(row, true);\n final MouseEvent me = e;\n SwingUtilities.invokeLater(new Runnable() {\n public void run() { showPopupMenu(me); };\n });\n }\n \n // Only perform default action if not already processed (expand tree)\n if (!e.isConsumed() && clickEvent && e.getClickCount() == 2)\n performDefaultAction(new ActionEvent(e.getSource(), e.getID(), \"default action\", e.getWhen(), e.getModifiers())); // NOI18N\n \n if (generatedClick != null) processMouseEvent(generatedClick);\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (isMouse1Down) inspectModeEnabled = false;\n }", "public void zoomOut() {\n if (scale > 0.05) {\n double scaleFactor = (scale - 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale -= 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n }", "@Override\n public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {\n if (mIsZooming)\n return true;\n\n if (e2.getPointerCount() == 2) {\n isScaling = true;\n return false;\n } else if (e2.getPointerCount() == 1 && isScaling) {\n return false;\n }\n\n switch (mCurrentScrollDirection) {\n case NONE: {\n // Allow scrolling only in one direction.\n if (Math.abs(distanceX) > Math.abs(distanceY)) {\n if (distanceX > 0) {\n mCurrentScrollDirection = Direction.LEFT;\n } else {\n mCurrentScrollDirection = Direction.RIGHT;\n }\n } else {\n mCurrentScrollDirection = VERTICAL;\n }\n break;\n }\n case LEFT: {\n // Change direction if there was enough change.\n if (Math.abs(distanceX) > Math.abs(distanceY) && (distanceX < -mScaledTouchSlop)) {\n mCurrentScrollDirection = Direction.RIGHT;\n }\n break;\n }\n case RIGHT: {\n // Change direction if there was enough change.\n if (Math.abs(distanceX) > Math.abs(distanceY) && (distanceX > mScaledTouchSlop)) {\n mCurrentScrollDirection = Direction.LEFT;\n }\n break;\n }\n default:\n break;\n }\n\n float minX = getXMinLimit();\n float maxX = getXMaxLimit();\n\n // Calculate the new origin after scroll.\n switch (mCurrentScrollDirection) {\n case LEFT:\n case RIGHT:\n if (e2.getX() < 0) {\n distanceDone = e2.getX() - e1.getX();\n } else {\n distanceDone = e1.getX() - e2.getX();\n }\n\n if (!isScaling) {\n if ((mCurrentOrigin.x - (distanceX * mXScrollingSpeed)) > maxX) {\n mCurrentOrigin.x = maxX;\n } else if ((mCurrentOrigin.x - (distanceX * mXScrollingSpeed)) < minX) {\n mCurrentOrigin.x = minX;\n } else {\n mCurrentOrigin.x -= distanceX * mXScrollingSpeed;\n }\n ViewCompat.postInvalidateOnAnimation(WeekViewAdvanced.this);\n }\n\n break;\n case VERTICAL:\n\n float minY = getYMinLimit();\n float maxY = getYMaxLimit();\n if ((mCurrentOrigin.y - (distanceY)) > maxY) {\n mCurrentOrigin.y = maxY;\n } else if ((mCurrentOrigin.y - (distanceY)) < minY) {\n mCurrentOrigin.y = minY;\n } else {\n mCurrentOrigin.y -= distanceY;\n }\n ViewCompat.postInvalidateOnAnimation(WeekViewAdvanced.this);\n break;\n default:\n break;\n }\n return true;\n }", "public void mo12700a(int i, MotionEvent motionEvent, int i2) {\n if (this.f13664c == null && i == 2 && this.f13675n != 2 && this.f13674m.mo12732b() && this.f13679r.getScrollState() != 1) {\n C1085v c = m15034c(motionEvent);\n if (c != null) {\n int b = (this.f13674m.mo12729b(this.f13679r, c) & 65280) >> 8;\n if (b != 0) {\n float x = motionEvent.getX(i2);\n float f = x - this.f13665d;\n float y = motionEvent.getY(i2) - this.f13666e;\n float abs = Math.abs(f);\n float abs2 = Math.abs(y);\n int i3 = this.f13678q;\n if (abs >= ((float) i3) || abs2 >= ((float) i3)) {\n if (abs > abs2) {\n if (f < 0.0f && (b & 4) == 0) {\n return;\n }\n if (f > 0.0f && (b & 8) == 0) {\n return;\n }\n } else if (y < 0.0f && (b & 1) == 0) {\n return;\n } else {\n if (y > 0.0f && (2 & b) == 0) {\n return;\n }\n }\n if (this.f13664c == null) {\n this.f13665d += f;\n this.f13666e += y;\n }\n this.f13670i = 0.0f;\n this.f13669h = 0.0f;\n this.f13673l = motionEvent.getPointerId(0);\n mo12704a(c, 1);\n }\n }\n }\n }\n }", "public void drawOnCursor2d(StsGLPanel3d glPanel3d, int dirNo, float dirCoordinate,\n boolean axesFlipped, boolean xAxisReversed, boolean axisReversed)\n {\n }", "private void setVerticalZoomCursor(int x, int y, boolean shift) {\r\n\t\tif (canChangeVerticalZoom) {\r\n\t\t\tif (changingVerticalZoom\r\n\t\t\t\t\t|| (!shift && nearChangeVerticalZoomArea(x, y))) {\r\n\t\t\t\tif (!changeVerticalZoomCursorSet) {\r\n\t\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\tchangeVerticalZoomCursorSet = true;\r\n\t\t\t\t}\r\n\t\t\t} else if (changeVerticalZoomCursorSet) {\r\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t\tchangeVerticalZoomCursorSet = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tlastClick = e.getPoint();\n\t\t\t// Process the hotspots in REVERSE order, so that he who is plotted last (frontmost) is detected first\n\t\t\tfor(int i=hotspot.length-1; i>=0; i--) {\n\t\t\t\tint dx = lastClick.x - hotspot[i].x, dy = lastClick.y - hotspot[i].y;\n\t\t\t\tif(dx*dx + dy*dy <= hotspot[i].r*hotspot[i].r) {\n\t\t\t\t\tactiveHotspot = i;\n\t\t\t\t\tdisplacement.x = displacement.y = 0;\n\t\t\t\t\taddMouseMotionListener(mouseFollower);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void mouseDragged(MouseEvent e) {\r\n// if (mouseDraggedEnabled && ((e.getModifiers() & (InputEvent.ALT_DOWN_MASK | InputEvent.ALT_MASK)) == 0))\r\n if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAG_ZOOM) {\r\n if (parent.onEvent(e, ChartPanel.MOUSE_DRAGGED)) {\r\n dragged = true;\r\n int _x = Math.min(draggedFromX, e.getX());\r\n int _y = Math.min(draggedFromY, e.getY());\r\n int _w = Math.abs(draggedFromX - e.getX());\r\n int _h = Math.abs(draggedFromY - e.getY());\r\n draggingRectangle = new Rectangle(_x, _y, _w, _h);\r\n repaint();\r\n }\r\n } else if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAW_LINE_ON_CHART) {\r\n this.setCursor(crossHairCursor);\r\n if (parent.onEvent(e, ChartPanel.MOUSE_DRAGGED)) {\r\n dragged = true;\r\n int x1 = draggedFromX;\r\n int y1 = draggedFromY;\r\n int x2 = e.getX();\r\n int y2 = e.getY();\r\n lineToDraw = new ArrayList<Point>(2);\r\n lineToDraw.add(new Point(x1, y1));\r\n lineToDraw.add(new Point(x2, y2));\r\n repaint();\r\n }\r\n }\r\n// if ((e.getModifiers() & (InputEvent.ALT_DOWN_MASK | InputEvent.ALT_MASK)) != 0) // Alt + Click: Grab Scroll\r\n if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAG_GRAB_SCROLL) {\r\n this.setCursor(closedHandCursor);\r\n int x = this.getVisibleRect().x - (e.getX() - draggedFromX);\r\n int y = this.getVisibleRect().y - (e.getY() - draggedFromY);\r\n this.scrollRectToVisible(new Rectangle(x, y, this.getVisibleRect().width, this.getVisibleRect().height));\r\n// this.setCursor(defaultCursor);\r\n }\r\n // MOUSE_DRAW_ON_CHART\r\n if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAW_ON_CHART) {\r\n this.setCursor(drawingCursor);\r\n if (parent.onEvent(e, ChartPanel.MOUSE_DRAGGED)) {\r\n dragged = true;\r\n if (oneDrawing == null) {\r\n oneDrawing = new PointList<GeoPoint>(10);\r\n oneDrawing.setLineColor(drawColor);\r\n }\r\n GeoPoint dpt = getGeoPos(e.getX(), e.getY());\r\n // System.out.println(\"Point \" + dpt.toString());\r\n oneDrawing.add(dpt);\r\n repaint();\r\n }\r\n }\r\n if (parent instanceof ChartPanelParentInterface_II)\r\n ((ChartPanelParentInterface_II) parent).afterEvent(e, ChartPanel.MOUSE_DRAGGED);\r\n }", "public boolean onDoubleTouchScroll(MotionEvent e1, MotionEvent e2) {\n Log.d(TAG, \"onDoubleTouchScroll\");\n// float deltaY = e2.getY() - prevEvent.getY();\n// float deltaY1 = e1.getY() - prevEvent.getY();\n// if (deltaY > TOUCH_SCROLL_DELTA || deltaY1 > TOUCH_SCROLL_DELTA) {\n// sessionViewListener.onSessionViewScroll(false);\n// prevEvent.recycle();\n// prevEvent = MotionEvent.obtain(e2);\n// } else if (deltaY < -TOUCH_SCROLL_DELTA || deltaY1 < -TOUCH_SCROLL_DELTA) {\n// sessionViewListener.onSessionViewScroll(true);\n// prevEvent.recycle();\n// prevEvent = MotionEvent.obtain(e2);\n// }\n return true;\n }", "@Override\n protected void handleMousePress(MouseEvent event){\n if(!event.isShiftDown()){\n super.handleMousePress(event);\n if(event.getClickCount() == 2 && event.getButton().equals(MouseButton.PRIMARY)){\n openEditDialog();\n }\n else if(event.getButton() == MouseButton.SECONDARY){\n getElementSpecificContextMenu().show(this, event.getScreenX(), event.getScreenY());\n }\n else if(left.contains(event.getX(), event.getY())){\n left.handleMousePress(event);\n }\n else if(right.contains(event.getX(), event.getY())){\n right.handleMousePress(event);\n }\n else{\n mouseDelta = event.getX() - getX();\n dragBounds = mutableSegmentController.getBounds(event.getX());\n }\n event.consume();\n }\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n final PointF mainPoint = new PointF(event.getX(), event.getY());\n switch (event.getAction() & MotionEvent.ACTION_MASK) {\n case (MotionEvent.ACTION_DOWN) :\n if (instrument == DRAW_INSTRUMENT) {\n addPoint(mainPoint);\n mode = DRAW_MODE;\n } else if (instrument == ERASE_INSTRUMENT) {\n eraseAt(mainPoint);\n mode = DRAW_MODE;\n } else if (instrument == HAND_INSTRUMENT) {\n mode = MOVE_MODE;\n prevMovePos = mainPoint;\n }\n break;\n case (MotionEvent.ACTION_POINTER_DOWN) :\n final float dst = touchSpacing(event);\n if (dst > 5f) {\n mode = ZOOM_MODE;\n if (instrument == DRAW_INSTRUMENT) {\n discardSegment();\n } else if (instrument == ERASE_INSTRUMENT) {\n discardErasing();\n }\n prevViewZoom = sheet.getViewZoom();\n prevViewPos = sheet.getViewPos();\n prevTouchSpacing = dst;\n prevTouchCenter = touchCenter(event);\n }\n break;\n case (MotionEvent.ACTION_MOVE) :\n if (mode == ZOOM_MODE) {\n if (event.getPointerCount() != 2) {\n mode = IDLE_MODE;\n } else {\n float touchSpacing = touchSpacing(event);\n if (touchSpacing < SMALL_TOUCH_SPACING)\n touchSpacing = prevTouchSpacing;\n Log.d(TAG, \"touchSpacing \" + touchSpacing +\n \" prevTouchSpacing \" + prevTouchSpacing);\n final float dZoom = touchSpacing / prevTouchSpacing;\n sheet.setViewZoom(prevViewZoom * dZoom);\n final PointF touchCenter = touchCenter(event);\n sheet.setViewPos(new PointF(\n prevViewPos.x +\n (prevTouchCenter.x - touchCenter.x / dZoom) /\n sheet.getViewZoom(),\n prevViewPos.y +\n (prevTouchCenter.y - touchCenter.y / dZoom) /\n sheet.getViewZoom()));\n prevViewZoom = sheet.getViewZoom();\n prevViewPos = sheet.getViewPos();\n prevTouchSpacing = touchSpacing;\n prevTouchCenter = touchCenter;\n }\n } else if (mode == DRAW_MODE) {\n if (instrument == DRAW_INSTRUMENT) {\n addPoint(mainPoint);\n } else if (instrument == ERASE_INSTRUMENT) {\n eraseAt(mainPoint);\n }\n } else if (mode == MOVE_MODE) {\n final PointF c = sheet.getViewPos();\n final float z = sheet.getViewZoom();\n sheet.setViewPos(new PointF(c.x + (prevMovePos.x - mainPoint.x) / z,\n c.y + (prevMovePos.y - mainPoint.y) / z));\n prevMovePos = mainPoint;\n }\n break;\n case (MotionEvent.ACTION_UP) :\n if (mode == DRAW_MODE) {\n if (instrument == DRAW_INSTRUMENT) {\n addPoint(mainPoint);\n finishSegment();\n } else if (instrument == ERASE_INSTRUMENT) {\n eraseAt(mainPoint);\n finishErasing();\n }\n }\n mode = IDLE_MODE;\n break;\n }\n return true;\n }", "private float[] calculateMouseRay(int mouseX, int mouseY) {\n\t\tfloat[] normalizedDeviceCoords = getNormalizedDeviceCoords(mouseX, mouseY);\r\n\t\t\r\n\t\t//Creating a 4D vector out of the normalizedDeviceCoords, defining z as -1 (clipping Plane):\r\n\t\tfloat[] clipCoords = {normalizedDeviceCoords[0], normalizedDeviceCoords[1], -1f, 1f};\r\n\t\t\r\n\t\t//4D vector containing the inverted projection\r\n\t\tfloat[] eyeCoords = toEyeCoords(clipCoords);\r\n\t\t\r\n\t\t//3D vector containing the world coords of our mouse ray\r\n\t\tfloat[] worldCoords = toWorldCoords(eyeCoords);\r\n\t\t\r\n\t\treturn worldCoords;\r\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "@Override\n public void handleMouseDragged(int x, int y)\n {\n windowManager.mouseDragged(deskXToAbst(x), deskYToAbst(y));\n }", "@Override\n public boolean handleMouseClick(Rectangle mouseRectangle, Rectangle camera, int zoomX, int zoomY) {\n if (mouseRectangle.intersects(rectangle)) {\n activate();\n return false;\n }\n return false;\n }", "private Point2D mapMouseEvent(MouseEvent mouseEvent) {\n AffineTransform tr = createTransform();\n try {\n tr.invert();\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n Point point = mouseEvent.getPoint();\n return tr.transform(point, null);\n }", "private void computeDirect() {\n\t\t\tif (startY > 0) {\n\t\t\t\toffset = (startY - 1) * width;\n\t\t\t} else {\n\t\t\t\toffset = 0;\n\t\t\t}\n\n\t\t\tendY = endY == height ? endY - 1 : endY;\n\n\t\t\tfor (int y = startY; y <= endY; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tfinal Point3D moveX = xAxis.scalarMultiply(x * horizontal / (width - 1));\n\t\t\t\t\tfinal Point3D moveY = yAxis.scalarMultiply(y * vertical / (height - 1));\n\t\t\t\t\tfinal Point3D screenPoint = screenCorner.add(moveX).sub(moveY);\n\n\t\t\t\t\tfinal Ray ray = Ray.fromPoints(eye, screenPoint);\n\n\t\t\t\t\tRayCasterUtil.tracer(scene, ray, rgb);\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\n\n\t\t\t\t\toffset++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void handleEvent(final MouseEvent event) {\r\n\r\n\t\tif (SwingUtilities.isRightMouseButton(event)) {\r\n\t\t\tswitch (event.getID()) {\r\n\t\t\tcase MouseEvent.MOUSE_PRESSED:\r\n\t\t\t\tthis.saveCursorPosition(event);\r\n\t\t\t\tbreak;\r\n\t\t\tcase MouseEvent.MOUSE_DRAGGED:\r\n\t\t\t\tthis.rotate(event);\r\n\t\t\t\tthis.saveCursorPosition(event);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) \n {\n Poseur singleton = Poseur.getPoseur();\n PoseurStateManager poseurStateManager = singleton.getStateManager();\n poseurStateManager.processMouseDragged(e.getX(), e.getY());\n }", "public void zoom(double factor, Point mouseLocation) {\n Point2D.Double viewOffset = viewCoords_.getViewOffset();\n Point2D.Double sourceDataSize = viewCoords_.getFullResSourceDataSize();\n Point2D.Double zoomCenter;\n //compute centroid of the zoom in full res coordinates\n if (mouseLocation == null) {\n //if mouse not over image zoom to center\n zoomCenter = new Point2D.Double(viewOffset.x + sourceDataSize.y / 2,\n viewOffset.y + sourceDataSize.y / 2);\n } else {\n zoomCenter = new Point2D.Double(\n (long) viewOffset.x + mouseLocation.x\n / viewCoords_.getMagnificationFromResLevel()\n * viewCoords_.getDownsampleFactor(),\n (long) viewOffset.y + mouseLocation.y\n / viewCoords_.getMagnificationFromResLevel()\n * viewCoords_.getDownsampleFactor());\n }\n\n //Do zooming--update size of source data\n double newSourceDataWidth = sourceDataSize.x * factor;\n double newSourceDataHeight = sourceDataSize.y * factor;\n if (newSourceDataWidth < 5 || newSourceDataHeight < 5) {\n return; //constrain maximum zoom\n }\n if (data_.getBounds() != null) {\n //don't let either of these go bigger than the actual data\n double overzoomXFactor = newSourceDataWidth / (viewCoords_.xMax_ - viewCoords_.xMin_);\n double overzoomYFactor = newSourceDataHeight / (viewCoords_.yMax_ - viewCoords_.yMin_);\n if (overzoomXFactor > 1 || overzoomYFactor > 1) {\n newSourceDataWidth = newSourceDataWidth / Math.max(overzoomXFactor, overzoomYFactor);\n newSourceDataHeight = newSourceDataHeight / Math.max(overzoomXFactor, overzoomYFactor);\n }\n }\n viewCoords_.setFullResSourceDataSize(newSourceDataWidth, newSourceDataHeight);\n\n double xOffset = (zoomCenter.x - (zoomCenter.x - viewOffset.x)\n * newSourceDataWidth / sourceDataSize.x);\n double yOffset = (zoomCenter.y - (zoomCenter.y - viewOffset.y)\n * newSourceDataHeight / sourceDataSize.y);\n //make sure view doesn't go outside image bounds\n if (data_.getBounds() != null) {\n viewCoords_.setViewOffset(\n Math.max(viewCoords_.xMin_, Math.min(xOffset,\n viewCoords_.xMax_ - viewCoords_.getFullResSourceDataSize().x)),\n Math.max(viewCoords_.yMin_, Math.min(yOffset,\n viewCoords_.yMax_ - viewCoords_.getFullResSourceDataSize().y)));\n } else {\n viewCoords_.setViewOffset(xOffset, yOffset);\n }\n }", "@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }", "public interface TouchCallback {\n /**\n * Callback from TouchHandler used to notify the listener about a\n * point on the screen being pressed.\n * @param pos Position touched, in screen pixel coordinates\n */\n public void touched(Vector pos);\n\n /**\n * Callback from TouchHandler used to notify the listener about a\n * point on the screen being long pressed.\n * @param pos Position long touched, in screen pixel coordinates.\n */\n public void longTouched(Vector pos);\n /**\n * Callback from TouchHandler used to notify the listener about the\n * user dragging his finger across the screen.\n * @param start Position the dragging action originated from. Screen pixel coordinates.\n * @param dist Distance dragged. This is a vector originating from the starting position.\n */\n public void move(Vector start,Vector dist);\n\n /**\n * Callback from TouchHandler used to notify the listener about a two finger pinch.\n * The degree of the pinch is calculated as follows: No pinch gives a degree of 1.\n * If the fingers were spaced 100 pixels apart, but are now 50 pixels apart, degree equals 2.\n * This means: degree>1 implies zoom out, and degree<1 implies zoom in.\n *\n * @param center Center position (point between fingers on screen), pixel coordinates.\n * @param degree Degree of pinch.\n */\n public void scale(Vector center, float degree);\n}", "public void mouseReleased(MouseEvent e) {\n int modifiers = e.getModifiers();\n Point point = e.getPoint();\n \n if (super.toolHandler == null) {\n return;\n } else if (!super.toolHandler.supportsTool(ToolBox.TOOL_RECTANGLE_SELECT)) {\n return;\n }\n \n if ((modifiers & MouseEvent.BUTTON1_MASK) != 0) {\n int x = Math.min(startPoint.x, point.x);\n int y = Math.min(startPoint.y, point.y);\n int width = Math.max(startPoint.x, point.x) - x;\n int height = Math.max(startPoint.y, point.y) - y;\n \n Rectangle r = new Rectangle(x,y,width,height);\n \n if (e.isControlDown()) {\n super.toolHandler.addShapeSelection(r);\n } else {\n super.toolHandler.shapeSelect(r);\n }\n }\n }", "private MotionEvent mapSecondPointerToFirstPointer(MotionEvent event) {\n if (event.getPointerCount() != 2 ||\n (event.getActionMasked() != MotionEvent.ACTION_POINTER_DOWN &&\n event.getActionMasked() != MotionEvent.ACTION_POINTER_UP &&\n event.getActionMasked() != MotionEvent.ACTION_MOVE)) {\n return null;\n }\n\n int action = event.getActionMasked();\n\n if (action == MotionEvent.ACTION_POINTER_DOWN) {\n action = MotionEvent.ACTION_DOWN;\n } else if (action == MotionEvent.ACTION_POINTER_UP) {\n action = MotionEvent.ACTION_UP;\n }\n\n // Map the information from the second pointer to the first.\n return MotionEvent.obtain(mSecondPointerDownTime, event.getEventTime(), action,\n event.getX(1), event.getY(1), event.getPressure(1), event.getSize(1),\n event.getMetaState(), event.getXPrecision(), event.getYPrecision(),\n event.getDeviceId(), event.getEdgeFlags());\n }", "public void SystemAction(){\n\t\tif(GOBJECT.mouse.x<GOBJECT.Map.space&&GOBJECT.Map.movex>0){\n\t\t\tGOBJECT.Map.movex--;\n\t\t}\n\t\tif(GOBJECT.mouse.x>this.getWidth()-GOBJECT.Map.space&&(GOBJECT.Map.movex+GameSystem.screen_width)<GOBJECT.Map.maxc*GOBJECT.Map.space){\n\t\t\tGOBJECT.Map.movex++;\n\t\t}\n\t\tif(GOBJECT.mouse.y<GOBJECT.Map.space&&GOBJECT.Map.movey>0){\n\t\t\tGOBJECT.Map.movey--;\n\t\t}\n\t\tif(GOBJECT.mouse.y>this.getHeight()-GOBJECT.Map.space&&GOBJECT.Map.movey+GameSystem.screen_height<GOBJECT.Map.maxr*GOBJECT.Map.space){\n\t\t\tGOBJECT.Map.movey++;\n\t\t}\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "public void Draw(Graphics2D g2d, Point mousePosition)\n {\n \n }", "private double[] handleTouches(InkEventType event, float x, float y, float pressure) {\n/* 226 */ switch (event) {\n/* */ case ON_TOUCH_DOWN:\n/* 228 */ return handleOnDown(x, y, pressure);\n/* */ case ON_TOUCH_MOVE:\n/* 230 */ return handleOnMove(x, y, pressure);\n/* */ \n/* */ \n/* */ case ON_TOUCH_UP:\n/* 234 */ return handleOnUp(pressure);\n/* */ } \n/* 236 */ throw new RuntimeException(\"Missing check for event type\");\n/* */ }", "@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n int action = ev.getAction();\n\n switch(action) {\n case MotionEvent.ACTION_DOWN:\n mClickY = ev.getY();\n break;\n case MotionEvent.ACTION_MOVE:\n processNewMoveEvent(ev);\n break;\n }\n\n return super.onInterceptTouchEvent(ev);\n }", "void captureTouch(float[] point, int sequenceNumber);", "public Point srvToMouse(int srvX, int srvY)\r\n\t{\r\n\t\tif (mZoom)\r\n\t\t{\r\n\t\t\tsrvX = (int)(((double)srvX/(double)mRawImage.getWidth(null))*getOffsetBounds().width);\r\n\t\t\tsrvY = (int)(((double)srvY/(double)mRawImage.getHeight(null))*getOffsetBounds().height);\r\n\t\t}\r\n\t\treturn new Point(srvX, srvY);\r\n\t}", "public void mousePressed(MouseEvent e){\n\t\t\t\tx=e.getX()/widthCase;//Recuperation de l'abscisse ou l'utilisateur a clicker.Je le divise pas la taille d'une case pour obtenir la case dans mon tableau (ter).\n\t\t\t\ty=e.getY()/heightCase;\n\t\t\t\tposition();\n\t\t\t\tfenetreterrain.zoneZoom(zoom, positionX/widthCase+debutX, positionY/heightCase+debutY);\n\t\t\t}", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n final int xi = (int) x;\n final int yi = (int) y;\n\n //pinch fov?\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n tt = System.currentTimeMillis();\n Log.d(\"buttst\", Long.toString(tt));\n break;\n case MotionEvent.ACTION_UP:\n if (System.currentTimeMillis() - tt < 150) {\n queueEvent(new Runnable() {\n @Override\n public void run() {\n mRenderer.switchCellAtPixel(xi, yi);\n }\n });\n Log.d(\"butt\", \"clicked__\" + Float.toString(x) + \"|\" + Float.toString(y));\n }\n break;\n case MotionEvent.ACTION_MOVE:\n float dx = x - mPreviousX;\n float dy = y - mPreviousY;\n mRenderer.rotateCamera(dx, dy);\n requestRender();\n }\n mPreviousX = x;\n mPreviousY = y;\n return true;\n }", "@Override\npublic void mouseMoved(MouseEvent e) {\n Point mouse = e.getPoint();\n isImHover = importHover(mouse.getX(),mouse.getY());\n isExHover = exportHover(mouse.getX(),mouse.getY());\n isImChose = !isExportError();\n if(!isImHover) {\n isImPress = false;\n }\n if(!isExHover) {\n isExPress = false;\n } \n repaint(); \n }", "@Override\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tmouseLastX = e.getX();\n\t\t\t\tmouseLastY = e.getY();\n\t\t\t\tif (viewState.get() == ViewState.CLOSED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_PRESSED){\n\t\t\t\t\t\n\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\t\tm.setTop(getSelection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getEventType() == MouseEvent.MOUSE_DRAGGED) {\n\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\t\tgetSelection().setCenterX(e.getX());\n\t\t\t\t\t\t\tgetSelection().setCenterY(e.getY());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (e.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\t\t\tif(getSelection().getType() == ShapeType.CIRCLE) {\n\t\t\t\t\t\t\t\tgetSelection().setRadius(getSelection().getRadius() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tgetSelection().setWidth(getSelection().getWidth() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t\tgetSelection().setHeight(getSelection().getHeight() + 0.25 * (e.getY() - getSelection().getCenterY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_CLICKED) {\n\t\t\t\t\tif (e.getButton().equals(MouseButton.PRIMARY)){\n\t\t\t\t\t\tswitch (e.getClickCount()) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif (getSelection() == null) {\n\t\t\t\t\t\t\t\tsetSelection(m.add(defaultS.getType(), e.getX(), e.getY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\t\t\tapplication.goToCD(getSelection());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void mousePressed(MouseEvent evt) {\n if (dragging)\n return; // don't start a new drag while one is already in progress\n\torigy = evt.getY();\n\torigx = evt.getX();\n\tboolean shifted = (evt.getModifiers() & InputEvent.SHIFT_MASK) > 0;\n\trotate = shifted;\n\tzoom = ! shifted;\n }", "public void convert( int x, int y, Vector2f store ) {\n if ( lastXin == x && lastYin == y ) {\n store.x = lastXout;\n store.y = lastYout;\n }\n else {\n lastXin = x;\n lastYin = y;\n if ( getRenderQueueMode() == Renderer.QUEUE_ORTHO ) {\n //TODO: occlusion by other quads (JMEFrames)\n x = (int) ( x - getWorldTranslation().x + desktopWidth / 2 );\n y = (int) ( desktopHeight / 2 - ( y - getWorldTranslation().y ) );\n }\n else {\n store.set( x, y );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0, pickRay.origin );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0.3f, pickRay.direction ).subtractLocal( pickRay.origin ).normalizeLocal();\n\n applyWorld( bottomLeft.set( -width * 0.5f, -height * 0.5f, 0 ) );\n applyWorld( topLeft.set( -width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( topRight.set( width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( bottomRight.set( width * 0.5f, -height * 0.5f, 0 ) );\n\n if ( pickRay.intersectWherePlanarQuad( topLeft, topRight, bottomLeft, tuv ) ) {\n x = (int) ( ( tuv.y - 0.5f ) * width ) + desktopWidth / 2;\n y = (int) ( ( tuv.z - 0.5f ) * height ) + desktopHeight / 2;\n }\n else {\n x = -1;\n y = -1;\n }\n }\n lastYout = y;\n lastXout = x;\n\n store.set( x, y );\n }\n }", "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}", "public void handleTouchPress(float normalizedX, float normalizedY) {\n }", "@Override\n public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {\n calculatePanScale(distanceX, distanceY , 1);\n return true;\n\n }", "public void mouseReleased(MouseEvent evt) {\r\n xReleased = evt.getX(); // store the x coordinate of the mouse\r\n yReleased = evt.getY(); // store the y coordinate of the mouse\r\n System.out.println(\"Mouse key released at coordinate (\"\r\n + xReleased + \", \" + yReleased + \").\");\r\n System.out.println(\"calling method mouseReleased()of class PaintTool.\");\r\n ge.mouseReleased(xReleased, yReleased, gra);\r\n // call method mouseReleased() of class paintTool\r\n System.out.println(\"method mouseReleased() of class PaintTool executed.\");\r\n }", "public void move(TrackerState state) {\n\t\t\n\t\tcurrentPosition[0] = state.devicePos[0];\n\t\tcurrentPosition[1] = state.devicePos[1];\n\t\tcurrentPosition[2] = state.devicePos[2];\n\t\t\n\t\tboolean processMove = false;\n\t\t\n\t\tboolean isWheel = (state.actionType == TrackerState.TYPE_WHEEL);\n\t\tboolean isZoom = (isWheel || state.ctrlModifier);\n\t\t\n\t\tif (isZoom) {\n\t\t\t\n\t\t\tdirection[0] = 0;\n\t\t\tdirection[1] = 0;\n\t\t\t\n\t\t\tif (isWheel) {\n\t\t\t\tdirection[2] = state.wheelClicks * 0.1f;\n\t\t\t\t\n\t\t\t} else if (state.ctrlModifier) {\n\t\t\t\tdirection[2] = (currentPosition[1] - startPosition[1]);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdirection[2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif (direction[2] != 0) {\n\t\t\t\t\n\t\t\t\tdirection[2] *= 16;\n\t\t\t\t\n\t\t\t\tdata.viewpointTransform.getTransform(startViewMatrix);\n\t\t\t\tstartViewMatrix.get(positionVector);\n\t\t\t\t\n\t\t\t\tinVector.x = startViewMatrix.m02;\n\t\t\t\tinVector.y = startViewMatrix.m12;\n\t\t\t\tinVector.z = startViewMatrix.m22;\n\t\t\t\tinVector.normalize();\n\t\t\t\tinVector.scale(direction[2]);\n\t\t\t\t\n\t\t\t\tpositionVector.add(inVector);\n\t\t\t\t\n\t\t\t\t// stay above the floor\n\t\t\t\tif (positionVector.y > 0) {\n\t\t\t\t\tdestViewMatrix.set(startViewMatrix);\n\t\t\t\t\tdestViewMatrix.setTranslation(positionVector);\n\t\t\t\t\t\n\t\t\t\t\tprocessMove = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\tdirection[0] = -(startPosition[0] - currentPosition[0]);\n\t\t\tdirection[1] = -(currentPosition[1] - startPosition[1]);\n\t\t\tdirection[2] = 0;\n\t\t\t\n\t\t\tfloat Y_Rotation = direction[0];\n\t\t\tfloat X_Rotation = direction[1];\n\t\t\t\n\t\t\tif( ( Y_Rotation != 0 ) || ( X_Rotation != 0 ) ) {\n\t\t\t\t\n\t\t\t\tdouble theta_Y = -Y_Rotation * Math.PI;\n\t\t\t\tdouble theta_X = -X_Rotation * Math.PI;\n\t\t\t\t\n\t\t\t\tdata.viewpointTransform.getTransform(startViewMatrix);\n\t\t\t\tstartViewMatrix.get(positionVector);\n\t\t\t\t\n\t\t\t\tpositionVector.x -= centerOfRotation.x;\n\t\t\t\tpositionVector.y -= centerOfRotation.y;\n\t\t\t\tpositionVector.z -= centerOfRotation.z;\n\t\t\t\t\n\t\t\t\tif (theta_Y != 0) {\n\n\t\t\t\t\trot.set(0, 1, 0, (float)theta_Y);\n\t\t\t\t\tmtx.set(rot);\n\t\t\t\t\tmtx.transform(positionVector);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (theta_X != 0) {\n\t\t\t\t\t\n\t\t\t\t\tvec.set(positionVector);\n\t\t\t\t\tvec.normalize();\n\t\t\t\t\tfloat angle = vec.angle(Y_AXIS);\n\t\t\t\t\t\n\t\t\t\t\tif (angle == 0) {\n\t\t\t\t\t\tif (theta_X > 0) {\n\t\t\t\t\t\t\trightVector.x = startViewMatrix.m00;\n\t\t\t\t\t\t\trightVector.y = startViewMatrix.m10;\n\t\t\t\t\t\t\trightVector.z = startViewMatrix.m20;\n\t\t\t\t\t\t\trightVector.normalize();\n\t\t\t\t\t\t\trot.set(rightVector.x, 0, rightVector.z, (float)theta_X);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trot.set(0, 0, 1, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((theta_X + angle) < 0) {\n\t\t\t\t\t\t\ttheta_X = -(angle - 0.0001f);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvec.y = 0;\n\t\t\t\t\t\tvec.normalize();\n\t\t\t\t\t\trot.set(vec.z, 0, -vec.x, (float)theta_X);\n\t\t\t\t\t}\n\t\t\t\t\tmtx.set(rot);\n\t\t\t\t\tmtx.transform(positionVector);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpositionPoint.x = positionVector.x + centerOfRotation.x;\n\t\t\t\tpositionPoint.y = positionVector.y + centerOfRotation.y;\n\t\t\t\tpositionPoint.z = positionVector.z + centerOfRotation.z;\n\t\t\t\t\n\t\t\t\t// don't go below the floor\n\t\t\t\tif (positionPoint.y > 0) {\n\t\t\t\t\t\n\t\t\t\t\tmatrixUtils.lookAt(positionPoint, centerOfRotation, Y_AXIS, destViewMatrix);\n\t\t\t\t\tmatrixUtils.inverse(destViewMatrix, destViewMatrix);\n\t\t\t\t\t\n\t\t\t\t\tprocessMove = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (processMove) {\n\t\t\t\n\t\t\tboolean collisionDetected = \n\t\t\t\tcollisionManager.checkCollision(startViewMatrix, destViewMatrix);\n\t\t\t\n\t\t\tif (!collisionDetected) {\n\t\t\t\tAV3DUtils.toArray(destViewMatrix, array);\n\t\t\t\tChangePropertyTransientCommand cptc = new ChangePropertyTransientCommand(\n\t\t\t\t\tve, \n\t\t\t\t\tEntity.DEFAULT_ENTITY_PROPERTIES, \n\t\t\t\t\tViewpointEntity.VIEW_MATRIX_PROP,\n\t\t\t\t\tarray,\n\t\t\t\t\tnull);\n\t\t\t\tcmdCntl.execute(cptc);\n\t\t\t\tif (statusManager != null) {\n\t\t\t\t\tstatusManager.fireViewMatrixChanged(destViewMatrix);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tstartPosition[0] = currentPosition[0];\n\t\tstartPosition[1] = currentPosition[1];\n\t\tstartPosition[2] = currentPosition[2];\n\t}", "@Override\n public void mouseReleased(int n, int n2, int n3) {\n void state;\n void mouseY;\n void mouseX;\n super.mouseReleased((int)mouseX, (int)mouseY, (int)state);\n this.hueDragging = false;\n this.saturationDragging = false;\n this.brightnessDragging = false;\n this.alphaDragging = false;\n }", "@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n LogUtil.d(TAG,\"onTouchEvent()\");\r\n int MAX_TOUCHPOINTS=3;\r\n int pointerCount = event.getPointerCount();\r\n if (pointerCount>MAX_TOUCHPOINTS){\r\n pointerCount = MAX_TOUCHPOINTS;\r\n }\r\n //判断触摸事件是单触摸还是多触摸,\r\n\r\n int touchType = event.getActionMasked();\r\n switch (touchType){\r\n //第一个按下\r\n case MotionEvent.ACTION_DOWN:\r\n ;\r\n break;\r\n //非第一个按下\r\n case MotionEvent.ACTION_POINTER_DOWN:\r\n for(int i=0;i<pointerCount;i++){\r\n int j=event.getPointerId(i);\r\n int x1=(int) event.getX(j);\r\n int y1= (int) event.getY(j);\r\n }\r\n ;\r\n break;\r\n }\r\n\r\n if(event.getAction()==MotionEvent.ACTION_UP){\r\n rocker.reset();\r\n }else{\r\n TouchX=(int) event.getX();\r\n TouchY=(int) event.getY();\r\n if (event.getAction()==MotionEvent.ACTION_DOWN){\r\n rocker.begin(TouchX,TouchY);\r\n }else if (event.getAction()==MotionEvent.ACTION_MOVE){\r\n rocker.update(TouchX,TouchY);\r\n }\r\n }\r\n return true;\r\n }", "private void setMouseListeners(Scene scene, Stage secondaryStage) {\n Rectangle2D bounds = Screen.getPrimary().getVisualBounds();\n secondaryStage.setX(bounds.getMaxX() - scene.getWidth() - (bounds.getMaxX()/10));\n secondaryStage.setY(bounds.getMinY() + (bounds.getMaxY()/10));\n\n //add support for drag and move\n scene.setOnMousePressed(event -> {\n xOffset = secondaryStage.getX() - event.getScreenX();\n yOffset = secondaryStage.getY() - event.getScreenY();\n });\n\n scene.setOnMouseDragged(event -> {\n secondaryStage.setX(event.getScreenX() + xOffset);\n secondaryStage.setY(event.getScreenY() + yOffset);\n });\n }", "@Override \n public boolean onTouchEvent(MotionEvent ev) {\n mScaleDetector.onTouchEvent(ev);\n \t\n final int action = ev.getAction();\n switch (action & MotionEvent.ACTION_MASK) {\n\t case MotionEvent.ACTION_DOWN: {\n\t float x = ev.getX();\n\t float y = ev.getY();\n\t \n\t mPreviousX = x;\n\t mPreviousY = y;\n\t\n\t // Save the ID of this pointer\n\t mActivePointerId = ev.getPointerId(0);\n\t break;\n\t }\n\t case MotionEvent.ACTION_MOVE: {\n\t final int pointerIndex = ev.findPointerIndex(mActivePointerId);\n\t final float x = ev.getX(pointerIndex);\n\t final float y = ev.getY(pointerIndex);\n\t \n\t if (!mScaleDetector.isInProgress()) {\n\t\t float dx = x - mPreviousX;\n\t\t float dy = y - mPreviousY;\n\t\t Shared.renderer().mAngleX += dx * TOUCH_SCALE_FACTOR;\n\t\t Shared.renderer().mAngleY += dy * TOUCH_SCALE_FACTOR;\n\t\t requestRender();\n\t }\n\t \n\t mPreviousX = x;\n\t mPreviousY = y;\n\t break;\n\t }\n\t \n\t case MotionEvent.ACTION_UP: {\n\t mActivePointerId = INVALID_POINTER_ID;\n\t break;\n\t }\n\t \n\t case MotionEvent.ACTION_CANCEL: {\n\t mActivePointerId = INVALID_POINTER_ID;\n\t break;\n\t }\n\t \n\t case MotionEvent.ACTION_POINTER_UP: {\n\t // Extract the index of the pointer that left the touch sensor\n\t final int pointerIndex = (action & MotionEvent.ACTION_POINTER_INDEX_MASK) \n\t >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;\n\t final int pointerId = ev.getPointerId(pointerIndex);\n\t if (pointerId == mActivePointerId) {\n\t // This was our active pointer going up. Choose a new\n\t // active pointer and adjust accordingly.\n\t final int newPointerIndex = pointerIndex == 0 ? 1 : 0;\n\t mPreviousX = ev.getX(newPointerIndex);\n\t mPreviousY = ev.getY(newPointerIndex);\n\t mActivePointerId = ev.getPointerId(newPointerIndex);\n\t }\n\t break;\n\t }\n }\n return true;\n }", "void onTilt(int x, int y);", "public void receiveMouseEvent(int x, int y){\r\n\t\tif(x < 0) x = 0;\r\n\t\telse if(x > Map.getInstance().getMapWidth()) x = Map.getInstance().getMapWidth();\r\n\t\tif(y < 0) y = 0;\r\n\t\telse if(y > Map.getInstance().getMapHeight()) y = Map.getInstance().getMapHeight();\r\n\t\tif(lastPressedX_ == -1 && lastPressedY_ == -1){\r\n\t\t\tlastPressedX_ = x;\r\n\t\t\tlastPressedY_ = y;\r\n\t\t} else {\r\n\t\t\t//get bounding box variables\r\n\t\t\tint minX = Math.min(lastPressedX_, x);\r\n\t\t\tint maxX = Math.max(lastPressedX_, x);\r\n\t\t\tint minY = Math.min(lastPressedY_, y);\r\n\t\t\tint maxY = Math.max(lastPressedY_, y);\r\n\t\t\tVehicle.setMonitoredMixZoneVariables(minX, maxX, minY, maxY);\r\n\t\t\tRenderer.getInstance().setMonitoredBeaconZoneVariables(minX, maxX, minY, maxY);\r\n\t\t\tif(monitoredBeaconZoneShowCheckBox_.isSelected()) Renderer.getInstance().ReRender(false, false);\r\n\t\t\tlastPressedX_ = -1;\r\n\t\t\tlastPressedY_ = -1;\r\n\t\t}\r\n\t}", "private void panelMouseReleased(java.awt.event.MouseEvent evt)\n throws Exception {\n\n /*This is the release point*/\n Point releasePoint = null;\n\n /*Check if something was selected and if the mouse was dragged*/\n if ((selectedShape != null)&& (mouseIsDragged)) {\n \n /*Get the current release Point*/\n releasePoint = evt.getPoint();\n\n /*Check if Shapes are within boundaries*/\n if (this.selectedShape instanceof ShapeConcept) {\n\n /*Check if the ShapeConcept is inside the canvas area*/\n offScreenShapeResize( ((ShapeConcept) selectedShape).getBounds());\n }//end ShapeConcept\n else if (this.selectedShape instanceof ShapeLinking) {\n\n /*Check if the ShapeConcept is inside the canvas area*/\n offScreenShapeResize( ((ShapeLinking) selectedShape).getBounds());\n }//end LinkingPhraze\n else if (this.selectedShape instanceof ShapeComment) {\n\n /*Check if the ShapeConcept is inside the canvas area*/\n offScreenShapeResize( ((ShapeComment) selectedShape).getBounds());\n }//end ShapeComment\n else if (this.selectedShape instanceof ShapeURL) {\n\n /*Check if the ShapeConcept is inside the canvas area*/\n offScreenShapeResize( ((ShapeURL) selectedShape).getBounds());\n }//end ShapeURL\n }//end if\n\n /**When mouse is released, finish dragging just reset values**/\n releasePoint = null;\n mouseIsDragged = false;\n //selectedShape = null;\n repaint();\n}", "public abstract void mouseMoved(int displayX, int displayY);", "public void mouseMoved(MouseEvent e) {\n if (e.getSource() instanceof MapBean) {\n // only when the mouse has already been pressed\n if (mousePressed) {\n float lat1, lat2, long1, long2;\n // set the map bean\n theMap = (MapBean) (e.getSource());\n // erase the old line and circle first\n paintRubberband(rPoint1, rPoint2);\n // get the current mouse location in latlon\n rPoint2 = theMap.getProjection().inverse(e.getPoint());\n // paint the new line and circle up to the current\n // mouse location\n paintRubberband(rPoint1, rPoint2);\n \n if (infoDelegator != null) {\n Debug.message(\"mousemodedetail\",\n \"DistanceMouseMode: firing mouse location\");\n // lat, lon of anchor point\n lat1 = (float) rPoint1.getY();\n long1 = (float) rPoint1.getX();\n // lat, lon of current mouse position\n lat2 = (float) rPoint2.getY();\n long2 = (float) rPoint2.getX();\n // calculate great circle distance in nm\n // distance = getGreatCircleDist(lat1, long1,\n // lat2, long2, Length.NM);\n distance = (double) GreatCircle.sphericalDistance(ProjMath.degToRad(lat1),\n ProjMath.degToRad(long1),\n ProjMath.degToRad(lat2),\n ProjMath.degToRad(long2));\n \n // calculate azimuth angle dec deg\n float azimuth = getSphericalAzimuth(lat1,\n long1,\n lat2,\n long2);\n // convert total distance into all distance units\n // String distNM =\n // df.format(totalDistance+distance);\n double tmpDistance = totalDistance + distance;\n String infoLine = createDistanceInformationLine(rPoint2,\n tmpDistance,\n azimuth);\n // setup the info event\n InfoDisplayEvent info = new InfoDisplayEvent(this, infoLine, InformationDelegator.COORDINATE_INFO_LINE);\n // ask the infoDelegator to display the info\n infoDelegator.requestInfoLine(info);\n }\n } else {\n fireMouseLocation(e);\n }\n }\n }", "void onRightClick(double mouseX, double mouseY);", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n orig_x = event.getX();\n orig_y = event.getY();\n Log.d(LOGNAME, \"Action down\");\n if (tool == MainActivity.Tool.PENCIL || tool == MainActivity.Tool.HIGHLIGHTER) {\n touch_down_draw(event.getX(), event.getY());\n }\n break;\n case MotionEvent.ACTION_MOVE:\n Log.d(LOGNAME, \"Action move\");\n if (tool == MainActivity.Tool.PENCIL || tool == MainActivity.Tool.HIGHLIGHTER) {\n touch_move_draw(event.getX(), event.getY());\n }\n break;\n case MotionEvent.ACTION_UP:\n Log.d(LOGNAME, \"Action up\");\n if (tool == MainActivity.Tool.PENCIL || tool == MainActivity.Tool.HIGHLIGHTER) {\n touch_up_draw(event.getX(), event.getY());\n }\n if (tool == MainActivity.Tool.ERASER) {\n touch_up_erase(event.getX(), event.getY());\n }\n break;\n }\n return true;\n }", "public void mouseReleased(MouseEvent me) {\n\tendx = me.getX(); endy = me.getY();\n\tendPoint = QuickStartXYTool.map.transformPixelToWorld(me.getX(),me.getY());\n distance = (69.44 / (2*Math.PI)) * 360 * Math.acos(\n\t\t\t\t Math.sin(initPoint.y * 2 * Math.PI / 360)\n\t\t\t * Math.sin(endPoint.y * 2 * Math.PI / 360)\n\t\t\t + Math.cos(initPoint.y * 2 * Math.PI / 360)\n\t\t\t * Math.cos(endPoint.y * 2 * Math.PI / 360)\n\t\t\t * (Math.abs(initPoint.x - endPoint.x) < 180 ?\n Math.cos((initPoint.x - endPoint.x)*2*Math.PI/360):\n Math.cos((360 - Math.abs(initPoint.x - endPoint.x))*2*Math.PI/360)));\n System.out.println( distance );\n QuickStartXYTool.milesLabel.setText(\"DIST: \" + new Float((float)distance).toString() + \" mi \");\n QuickStartXYTool.kmLabel.setText(new Float((float)(distance*1.6093)).toString() + \" km\");\n if (QuickStartXYTool.acetLayer != null)\n QuickStartXYTool.map.remove(QuickStartXYTool.acetLayer);\n QuickStartXYTool.acetLayer = new AcetateLayer() {\n public void paintComponent(java.awt.Graphics g) {\n\t\tjava.awt.Graphics2D g2d = (java.awt.Graphics2D) g;\n\t\tLine2D.Double line = new Line2D.Double(startx,starty,endx,endy);\n\t\tg2d.setColor(new Color(0,0,250));\n\t\tg2d.draw(line);\n }\n };\n Graphics g = super.getGraphics();\n QuickStartXYTool.map.add(QuickStartXYTool.acetLayer);\n QuickStartXYTool.map.redraw();\n }" ]
[ "0.593226", "0.5745741", "0.5701538", "0.5440666", "0.53827137", "0.5349721", "0.533765", "0.5278296", "0.5277854", "0.52316684", "0.5222363", "0.52150416", "0.5131204", "0.51307654", "0.51235193", "0.50783044", "0.5077768", "0.50724304", "0.50675905", "0.5058558", "0.5051067", "0.5041616", "0.50078046", "0.5003682", "0.49959248", "0.49779367", "0.49604636", "0.49297538", "0.49279812", "0.49250367", "0.49248067", "0.4912809", "0.49005926", "0.48931995", "0.48910114", "0.48765945", "0.48761705", "0.48761693", "0.48698768", "0.48587406", "0.4853994", "0.48329234", "0.4781461", "0.4777507", "0.47499985", "0.47484246", "0.47453398", "0.47429004", "0.47222355", "0.47154227", "0.47123778", "0.47099942", "0.47080678", "0.47076166", "0.47060648", "0.47020376", "0.46987873", "0.46888387", "0.4675118", "0.4665349", "0.4663109", "0.46572953", "0.4651473", "0.46513677", "0.4644821", "0.46404645", "0.46360427", "0.46320212", "0.46314844", "0.46177113", "0.46125203", "0.46081188", "0.4605098", "0.4603135", "0.4596095", "0.45867068", "0.45774946", "0.45742324", "0.45729858", "0.45708773", "0.45707026", "0.45677373", "0.45669532", "0.4566856", "0.4566452", "0.45618942", "0.45609888", "0.45549116", "0.4546829", "0.45430946", "0.45395714", "0.45346105", "0.45276204", "0.45245835", "0.45236635", "0.4520101", "0.45190462", "0.4518912", "0.45089802", "0.45056376" ]
0.5703978
2
Configure zoom according mouse selection, bounds, and current 2D (XY, XZ, etc)
protected void configureZoomAccordingTo2DView(View view, BoundingBox3d bounds, MouseSelection mouseSelection) { if (view.is2D_XY()) { bounds.setXmin(mouseSelection.min3DX()); bounds.setXmax(mouseSelection.max3DX()); bounds.setYmin(mouseSelection.min3DY()); bounds.setYmax(mouseSelection.max3DY()); } else if (view.is2D_XZ()) { bounds.setXmin(mouseSelection.min3DX()); bounds.setXmax(mouseSelection.max3DX()); bounds.setZmin(mouseSelection.min3DZ()); bounds.setZmax(mouseSelection.max3DZ()); } else if (view.is2D_YZ()) { bounds.setYmin(mouseSelection.min3DY()); bounds.setYmax(mouseSelection.max3DY()); bounds.setZmin(mouseSelection.min3DZ()); bounds.setZmax(mouseSelection.max3DZ()); } else { throw new RuntimeException("Unexpected 2D view"); } // System.out.println("Mouse.Bounds : " + bounds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void multitouchZoom(int new_zoom);", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox(null);\n\n if (allowCrop)\n getChart().getScene().getGraph().setClipBox(null);\n\n view.setBoundMode(ViewBoundMode.AUTO_FIT);\n\n }\n // Or apply selection to ZOOM\n else {\n BoundingBox3d bounds = view.getBounds().clone();\n\n configureZoomAccordingTo2DView(view, bounds, mouseSelection);\n\n // Reset mouse selection now so that next rendering will hide it from screen\n mouseSelection = new MouseSelection();\n\n // Won't do anything for irrelevant bounds leading to a flat graph\n if (bounds.getXRange().getRange() <= 0 \n || bounds.getYRange().getRange() <= 0\n || bounds.getZRange().getRange() <= 0)\n return;\n\n //System.out.println(\"Will zoom to \" + bounds);\n\n // Crop and zoom\n if (allowCrop) {\n boolean includeLimits = false; // to avoid inacurrate box scale\n getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false);\n }\n view.setBoundsManual(bounds);\n\n\n }\n\n }", "protected abstract void handleZoom();", "public void setZoom(){\n\t\tactive.setZoom();\n\t}", "public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }", "protected void primSetZoom(double zoom) {\n\tPoint p1 = getViewport().getClientArea().getCenter();\n\tPoint p2 = p1.getCopy();\n\tPoint p = getViewport().getViewLocation();\n\tdouble prevZoom = this.zoom;\n\tthis.zoom = zoom;\n\tpane.setScale(zoom);\n\tfireZoomChanged();\n\tgetViewport().validate();\n\t\n\tp2.scale(zoom / prevZoom);\n\tDimension dif = p2.getDifference(p1);\n\tp.x += dif.width;\n\tp.y += dif.height;\n\tsetViewLocation(p);\t\n}", "private void dragZoom() {\n\n\t\tint width = this.getWidth();\n\n\t\tint start = cont.getStart();\n\t\tdouble amount = cont.getLength();\n\n\t\tint newStart = (int) DrawingTools.calculatePixelPosition(x ,width,amount,start);\n\t\tint newStop = (int) DrawingTools.calculatePixelPosition(x2,width,amount,start);\n\t\tx = x2 = 0;\n\n\t\tint temp;\n\t\tif (newStop < newStart){\n\t\t\ttemp = newStart;\n\t\t\tnewStart = newStop;\n\t\t\tnewStop = temp;\n\t\t}\n\n\t\tcont.changeSize(newStart,newStop);\n\n\t}", "public void zoom(double factor, Point mouseLocation) {\n Point2D.Double viewOffset = viewCoords_.getViewOffset();\n Point2D.Double sourceDataSize = viewCoords_.getFullResSourceDataSize();\n Point2D.Double zoomCenter;\n //compute centroid of the zoom in full res coordinates\n if (mouseLocation == null) {\n //if mouse not over image zoom to center\n zoomCenter = new Point2D.Double(viewOffset.x + sourceDataSize.y / 2,\n viewOffset.y + sourceDataSize.y / 2);\n } else {\n zoomCenter = new Point2D.Double(\n (long) viewOffset.x + mouseLocation.x\n / viewCoords_.getMagnificationFromResLevel()\n * viewCoords_.getDownsampleFactor(),\n (long) viewOffset.y + mouseLocation.y\n / viewCoords_.getMagnificationFromResLevel()\n * viewCoords_.getDownsampleFactor());\n }\n\n //Do zooming--update size of source data\n double newSourceDataWidth = sourceDataSize.x * factor;\n double newSourceDataHeight = sourceDataSize.y * factor;\n if (newSourceDataWidth < 5 || newSourceDataHeight < 5) {\n return; //constrain maximum zoom\n }\n if (data_.getBounds() != null) {\n //don't let either of these go bigger than the actual data\n double overzoomXFactor = newSourceDataWidth / (viewCoords_.xMax_ - viewCoords_.xMin_);\n double overzoomYFactor = newSourceDataHeight / (viewCoords_.yMax_ - viewCoords_.yMin_);\n if (overzoomXFactor > 1 || overzoomYFactor > 1) {\n newSourceDataWidth = newSourceDataWidth / Math.max(overzoomXFactor, overzoomYFactor);\n newSourceDataHeight = newSourceDataHeight / Math.max(overzoomXFactor, overzoomYFactor);\n }\n }\n viewCoords_.setFullResSourceDataSize(newSourceDataWidth, newSourceDataHeight);\n\n double xOffset = (zoomCenter.x - (zoomCenter.x - viewOffset.x)\n * newSourceDataWidth / sourceDataSize.x);\n double yOffset = (zoomCenter.y - (zoomCenter.y - viewOffset.y)\n * newSourceDataHeight / sourceDataSize.y);\n //make sure view doesn't go outside image bounds\n if (data_.getBounds() != null) {\n viewCoords_.setViewOffset(\n Math.max(viewCoords_.xMin_, Math.min(xOffset,\n viewCoords_.xMax_ - viewCoords_.getFullResSourceDataSize().x)),\n Math.max(viewCoords_.yMin_, Math.min(yOffset,\n viewCoords_.yMax_ - viewCoords_.getFullResSourceDataSize().y)));\n } else {\n viewCoords_.setViewOffset(xOffset, yOffset);\n }\n }", "@Override\n public void setZoom(double zoom)\n {\n super.setZoom(zoom);\n delayedRepainting.requestRepaint(ZOOM_REPAINT);\n }", "@Override\n\tpublic void setZoom(int zoom) {\n\t\t\n\t}", "public void zoom() {\n\t\tdisp.zoom();\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "@Override\n public void Zoom(double zoomNo, boolean setZoom) {\n\t \n }", "@Test\n public void testSetZoomToMouse() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_TO_MOUSE, false);\n }", "public void updateZoom() {\n camera.zoom = zoomLevel;\n }", "@Override\n public void Zoom(double zoomNo) {\n\t \n }", "public void zoomToBounds(double ulLon, double ulLat, double lrLon, double lrLat)\n/* 116: */ {\n/* 117:182 */ int x_min = 2147483647;\n/* 118:183 */ int y_min = 2147483647;\n/* 119:184 */ int x_max = -2147483648;\n/* 120:185 */ int y_max = -2147483648;\n/* 121:186 */ int mapZoomMax = 20;\n/* 122: */\n/* 123:188 */ x_max = Math.max(x_max, MercatorProj.LonToX(lrLon, mapZoomMax));\n/* 124:189 */ x_max = Math.max(x_max, MercatorProj.LonToX(ulLon, mapZoomMax));\n/* 125:190 */ y_max = Math.max(y_max, MercatorProj.LatToY(ulLat, mapZoomMax));\n/* 126:191 */ y_max = Math.max(y_max, MercatorProj.LatToY(lrLat, mapZoomMax));\n/* 127:192 */ x_min = Math.min(x_min, MercatorProj.LonToX(ulLon, mapZoomMax));\n/* 128:193 */ x_min = Math.min(x_min, MercatorProj.LonToX(lrLon, mapZoomMax));\n/* 129:194 */ y_min = Math.min(y_min, MercatorProj.LatToY(ulLat, mapZoomMax));\n/* 130:195 */ y_min = Math.min(y_min, MercatorProj.LatToY(lrLat, mapZoomMax));\n/* 131: */\n/* 132: */\n/* 133: */\n/* 134:199 */ int height = Math.max(0, this.mapPanel.getHeight());\n/* 135:200 */ int width = Math.max(0, this.mapPanel.getWidth());\n/* 136:201 */ int newZoom = mapZoomMax;\n/* 137:202 */ int x = x_max - x_min;\n/* 138:203 */ int y = y_max - y_min;\n/* 139:204 */ while ((x > width) || (y > height))\n/* 140: */ {\n/* 141:205 */ newZoom--;\n/* 142:206 */ x >>= 1;\n/* 143:207 */ y >>= 1;\n/* 144: */ }\n/* 145:209 */ x = x_min + (x_max - x_min) / 2;\n/* 146:210 */ y = y_min + (y_max - y_min) / 2;\n/* 147:211 */ int z = 1 << mapZoomMax - newZoom;\n/* 148:212 */ x /= z;\n/* 149:213 */ y /= z;\n/* 150:214 */ this.mapPanel.setZoom(new Point(x, y), newZoom);\n/* 151: */ }", "public void zoomOut() {\n if (scale > 0.05) {\n double scaleFactor = (scale - 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale -= 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n }", "@SuppressWarnings(\"unused\")\n private void setZoom(JSONArray args, CallbackContext callbackContext) throws JSONException {\n Long zoom;\n zoom = args.getLong(1);\n\n this.myMoveCamera(CameraUpdateFactory.zoomTo(zoom), callbackContext);\n }", "public void setZoom(float zoom) {\n this.zoom = zoom;\n }", "private void unsafeSetInitialZoom() {\n if (hic.isInPearsonsMode()) {\n initialZoom = hic.getMatrix().getFirstPearsonZoomData(HiC.Unit.BP).getZoom();\n } else if (HiCFileTools.isAllChromosome(hic.getXContext().getChromosome())) {\n mainViewPanel.getResolutionSlider().setEnabled(false);\n initialZoom = hic.getMatrix().getFirstZoomData(HiC.Unit.BP).getZoom();\n } else {\n mainViewPanel.getResolutionSlider().setEnabled(true);\n\n HiC.Unit currentUnit = hic.getZoom().getUnit();\n\n List<HiCZoom> zooms = (currentUnit == HiC.Unit.BP ? hic.getDataset().getBpZooms() :\n hic.getDataset().getFragZooms());\n\n\n// Find right zoom level\n\n int pixels = mainViewPanel.getHeatmapPanel().getMinimumDimension();\n int len;\n if (currentUnit == HiC.Unit.BP) {\n len = (Math.max(hic.getXContext().getChrLength(), hic.getYContext().getChrLength()));\n } else {\n len = Math.max(hic.getDataset().getFragmentCounts().get(hic.getXContext().getChromosome().getName()),\n hic.getDataset().getFragmentCounts().get(hic.getYContext().getChromosome().getName()));\n }\n\n int maxNBins = pixels / HiCGlobals.BIN_PIXEL_WIDTH;\n int bp_bin = len / maxNBins;\n initialZoom = zooms.get(zooms.size() - 1);\n for (int z = 1; z < zooms.size(); z++) {\n if (zooms.get(z).getBinSize() < bp_bin) {\n initialZoom = zooms.get(z - 1);\n break;\n }\n }\n\n }\n hic.unsafeActuallySetZoomAndLocation(\"\", \"\", initialZoom, 0, 0, -1, true, HiC.ZoomCallType.INITIAL, true);\n }", "Controls () {\n \n barX = 40;\n barWidth = 15;\n \n minY = 40;\n maxY = minY + height/3 - sliderHeight/2;\n \n minZoomValue = height - height;\n maxZoomValue = height; // 300 percent\n valuePerY = (maxZoomValue - minZoomValue) / (maxY - minY);\n \n sliderWidth = 25;\n sliderHeight = 10;\n sliderX = (barX + (barWidth/2)) - (sliderWidth/2); \n sliderValue = minZoomValue; \n sliderY = minY; \n }", "int getZoomPref();", "public void setZoom( double zoom ) {\n\t\tthis.zoom = zoom;\n\t}", "public void wheelZoom(MouseWheelEvent e) {\n try {\n int wheelRotation = e.getWheelRotation();\n Insets x = getInsets(); //Top bar space of the application\n Point p = e.getPoint();\n p.setLocation(p.getX() , p.getY()-x.top + x.bottom);\n if (wheelRotation > 0 && zoomLevel != 0) {\n //point2d before zoom\n Point2D p1 = transformPoint(p);\n transform.scale(1 / 1.2, 1 / 1.2);\n //point after zoom\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomOut();\n repaint();\n\n } else if (wheelRotation < 0 && zoomLevel != 20) {\n Point2D p1 = transformPoint(p);\n transform.scale(1.2, 1.2);\n Point2D p2 = transformPoint(p);\n transform.translate(p2.getX() - p1.getX(), p2.getY() - p1.getY()); //Pan towards mouse\n checkForZoomIn();\n repaint();\n }\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "protected void zoomBetweenCursors(){\n ixDataCursor1 = ixDataShown[xpCursor1];\n ixDataCursor2 = ixDataShown[xpCursor2];\n ixDataShowRight = ixDataCursor2 + (((ixDataCursor2 - ixDataCursor1) / 10) & widgg.mIxData);\n int ixiData1 = (ixDataShown[xpCursor1] >> widgg.shIxiData) & widgg.mIxiData;\n int ixiData2 = (ixDataShown[xpCursor2] >> widgg.shIxiData) & widgg.mIxiData;\n int time1 = widgg.tracksValue.getTimeShort(ixiData1);\n int time2 = widgg.tracksValue.getTimeShort(ixiData2);\n if((time2 - time1)>0){\n widgg.timeorg.timeSpread = (time2 - time1) * 10/8;\n assert(widgg.timeorg.timeSpread >0);\n } else {\n widgg.stop();\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n widgg.redraw(100, 200);\n \n }", "public void setZoom(Integer zoom) {\n this.zoom = zoom;\n }", "public void setZoom(Integer zoom) {\n this.zoom = zoom;\n }", "public void zoomIn() {\n\tsetZoom(getNextZoomLevel());\n}", "public void zoomIn() { zoomIn(1); }", "protected void onUpdateZoomCanvas(int x, int y) {\n if (mCanvasPreview == null) {\n return;\n }\n double scale = mScale * ZOOM_CANVAS_SCALE;\n Context2d c = mCanvasPreview.getContext2d();\n c.save(); \n c.scale(scale, scale);\n c.setFillStyle(HTMLColors.WHITE);\n c.fillRect(0, 0, mCanvasPreviewSize, mCanvasPreviewSize);\n int half = (int) ((mCanvasPreviewSize >> 1) / scale);\n c.drawImage(ImageElement.as(image.getElement()), -x + half, -y + half);\n c.restore();\n }", "private static void initZoomOptions() {\n\t\tfloat zoom = 0;\n\t\twhile (zoom < DiagramaFigura.MAX_ZOOM) {\n\t\t\tzoom += DiagramaFigura.DELTA_ZOOM;\n\t\t\tif (zoom >= DiagramaFigura.MIN_ZOOM) {\n\t\t\t\tString key = Integer.toString((int) (zoom * 100));\n\t\t\t\tzoomOptions.put(key + \"%\", zoom);\n\t\t\t}\n\t\t}\n\t}", "boolean allowZoom();", "private void setZoomLevel() {\n final float oldMaxScale = photoView.getMaximumScale();\n photoView.setMaximumScale(oldMaxScale *2);\n photoView.setMediumScale(oldMaxScale);\n }", "public synchronized void setZoom(float zoom)\r\n {\r\n this.zoom = Utils.clampFloat(zoom, .4f, 1.5f);\r\n }", "private void adjustZoomFactor(){\n switch(zoomLevel){\n case 0:zoomFactor = 39; break;\n case 1:zoomFactor = 37; break;\n case 2:zoomFactor = 35; break;\n case 3:zoomFactor = 33; break;\n case 4:zoomFactor = 31; break;\n case 5:zoomFactor = 29; break;\n case 6:zoomFactor = 27; break;\n case 7:zoomFactor = 25; break;\n case 8:zoomFactor = 23; break;\n case 9:zoomFactor = 21; break;\n case 10:zoomFactor = 20; break;\n case 11:zoomFactor = 18; break;\n case 12:zoomFactor = 16; break;\n case 13:zoomFactor = 14; break;\n case 14:zoomFactor = 12; break;\n case 15:zoomFactor = 10; break;\n case 16:zoomFactor = 8; break;\n case 17:zoomFactor = 6; break;\n case 18:zoomFactor = 4; break;\n case 19:zoomFactor = 2; break;\n case 20:zoomFactor = 0; break;\n }\n }", "public void setZoom(double zoom) {\n if(zoom != mZoom) {\n mZoom = zoom;\n setChanged();\n }\n }", "public final void setZoom(final int zoom) {\r\n\r\n if (logger.isDebugEnabled()) {\r\n logger.debug(\"new zoom: \" + zoom + \" (old zoom: \" + this.zoom + \")\");\r\n }\r\n\r\n //\r\n // size and visible rectangle before zooming\r\n\r\n final Dimension oldImageCanvasContainerSize = imageCanvas.getSize();\r\n final Rectangle oldImageCanvasContainerVisibleRect = imageCanvas.getVisibleRect();\r\n\r\n //\r\n // calculate the center of the visible rectangle\r\n\r\n final int oldImageCanvasContainerVisibleRectCenterX = oldImageCanvasContainerVisibleRect.x + oldImageCanvasContainerVisibleRect.width / 2;\r\n final int oldImageCanvasContainerVisibleRectCenterY = oldImageCanvasContainerVisibleRect.y + oldImageCanvasContainerVisibleRect.height / 2;\r\n\r\n //\r\n // zoom ( set the new zoom value and update image )\r\n\r\n this.zoom = zoom;\r\n updateImage();\r\n\r\n //\r\n // zoomed size\r\n\r\n final Dimension zoomedImageCanvasContainerSize = imageCanvas.getSize();\r\n\r\n //\r\n // now we can calculate the ratio (new size vs old size)\r\n\r\n final double xRatio = zoomedImageCanvasContainerSize.getWidth() / oldImageCanvasContainerSize.getWidth();\r\n final double yRatio = zoomedImageCanvasContainerSize.getHeight() / oldImageCanvasContainerSize.getHeight();\r\n\r\n //\r\n // apply the ratio to the old center\r\n\r\n int newImageCanvasContainerVisibleRectCenterX = (int) (oldImageCanvasContainerVisibleRectCenterX * xRatio);\r\n int newImageCanvasContainerVisibleRectCenterY = (int) (oldImageCanvasContainerVisibleRectCenterY * yRatio);\r\n\r\n //\r\n // calculate the new visible rectangle (using the translated center)\r\n\r\n Rectangle newImageCanvasContainerVisibleRect = new Rectangle(oldImageCanvasContainerVisibleRect.getSize());\r\n newImageCanvasContainerVisibleRect.x = newImageCanvasContainerVisibleRectCenterX - oldImageCanvasContainerVisibleRect.width / 2;\r\n newImageCanvasContainerVisibleRect.y = newImageCanvasContainerVisibleRectCenterY - oldImageCanvasContainerVisibleRect.height / 2;\r\n\r\n //\r\n // scroll to make visible the new rectangle\r\n\r\n imageCanvas.scrollRectToVisible(newImageCanvasContainerVisibleRect);\r\n }", "public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "private void onScroll(double wheelDelta, Point2D mousePoint) {\n double zoomFactor = Math.exp(wheelDelta * zoomIntensity);\n\n Bounds innerBounds = zoomNode.getLayoutBounds();\n Bounds viewportBounds = getViewportBounds();\n\n // calculate pixel offsets from [0, 1] range\n double valX = this.getHvalue() * (innerBounds.getWidth() - viewportBounds.getWidth());\n double valY = this.getVvalue() * (innerBounds.getHeight() - viewportBounds.getHeight());\n scaleValue = scaleValue * zoomFactor;\n \n // calculate minimum zoom\n if(Math.max(target.getLayoutBounds().getWidth()*scaleValue, target.getLayoutBounds().getHeight()*scaleValue) < minViewPortSize) {\n\n \tscaleValue = minViewPortSize / Math.max(target.getLayoutBounds().getWidth(), target.getLayoutBounds().getHeight());\n updateScale();\n this.layout();\n \n } else if(scaleValue > zoom_max) {\n \tscaleValue = zoom_max;\n \tupdateScale();\n this.layout();\n }else {\n \tupdateScale();\n this.layout();\n\n // convert target coordinates to zoomTarget coordinates\n Point2D posInZoomTarget = target.parentToLocal(zoomNode.parentToLocal(mousePoint));\n\n // calculate adjustment of scroll position\n Point2D adjustment = target.getLocalToParentTransform().deltaTransform(posInZoomTarget.multiply(zoomFactor - 1));\n\n // convert back to [0, 1] range\n Bounds updatedInnerBounds = zoomNode.getBoundsInLocal();\n this.setHvalue((valX + adjustment.getX()) / (updatedInnerBounds.getWidth() - viewportBounds.getWidth()));\n this.setVvalue((valY + adjustment.getY()) / (updatedInnerBounds.getHeight() - viewportBounds.getHeight()));\n }\n }", "public void setZoom(float zoom){\r\n zoom = zoom * 100;\r\n zoom = Math.round(zoom);\r\n this.zoom = Math.max(zoom / 100, 0.01f);\r\n }", "public void updateOverviewCanvas() {\n\t\tif (m_mapImage.getImageHeight() == 0 || m_mapImage.getImageWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// What are the extents of a visible canvas in the ScrollPane/Pane?\n\n\t\t// The bound box changes with dragging\n\t\tBounds b = m_zoomPane.getCanvas().getBoundsInParent();\n\n\t\t// The bound box doesn't change with zoom\n\t\tdouble scale = m_zoomPane.getScale();\n\t\t\n\t\t// System.out.println(b.getMinX() + \" \" + b.getMinY() + \" \" + b.getMaxX() + \" \" + b.getMaxY() + \" \" + scale);\n\t\t\n\t\t// At start, 0.0 and 0.0 is the canvas translation, scale is 1.0\n\t\t// Other bounds describe the overall dimensions.\n\t\t\n\t\t// I need to know the size of the viewport\n\t\t// Then offset that viewport with b.getMinX() and b.getMinY()\n\t\t// And consider the scale factor!\n\t\tBounds sp = scrollPane.getBoundsInLocal();\n\n\t\t// Determine a scale based on what is needed to fit vertically or horizontally into the Canvas.\n\t\tdouble widthRatio = (double) MAX_OVERVIEW_WIDTH / (double) m_mapImage.getImageWidth();\n\t\tdouble heightRatio = (double) MAX_OVERVIEW_HEIGHT / (double) m_mapImage.getImageHeight();\n\t\t\n\t\tdouble scaleFactor = widthRatio < heightRatio ? widthRatio : heightRatio;\n\t\t\n\t\t// Set the transform\n\t\tAffine mat = new Affine(new Scale (scaleFactor, scaleFactor));\n\t\t\n\t\tGraphicsContext gc = m_navigationCanvas.getGraphicsContext2D();\n\t\tgc.clearRect(0, 0, m_navigationCanvas.getWidth(), m_navigationCanvas.getHeight());\n\t\t\n\t\t// Draw image\n\t\tm_mapImage.drawImage(m_navigationCanvas, mat, false);\n\t\t\n\t\t// Draw bounding box\n\t\t// TODO: ugh, this is almost correct but its behaving oddly with the left corner X/Y.\n\t\tdouble dx = (sp.getMaxX() - sp.getMaxX() / scale) / 2;\n\t\tdouble dy = (sp.getMaxY() - sp.getMaxY() / scale) / 2;\n\t\t\n\t\t// double box_xl = - b.getMinX();\n\t\t// double box_yl = - b.getMinY();\n\t\t// double box_xr = - b.getMinX() + sp.getMaxX() / scale;\n\t\t// double box_yr = - b.getMinY() + sp.getMaxY() / scale;\n\t\t\n\t\tdouble box_xl = - b.getMinX() + dx;\n\t\tdouble box_yl = - b.getMinY() + dy;\n\t\tdouble box_xr = - b.getMinX() + sp.getMaxX() / scale + dx;\n\t\tdouble box_yr = - b.getMinY() + sp.getMaxY() / scale + dy;\n\t\t\n\t\t// Clamp to limit the min/max view boxes.\n\t\t//if (box_xl < 0) box_xl = 0;\n\t\t//if (box_yl < 0) box_yl = 0;\n\t\t//if (box_xr > m_navigationCanvas.getWidth()) box_xr = m_navigationCanvas.getWidth();\n\t\t//if (box_yr > m_navigationCanvas.getHeight()) box_yr = m_navigationCanvas.getHeight();\n\t\t\n\t\t// Let's describe how the viewport would be in the canvas.\n\t\tVector3<Float> pt1 = m_zoomPane.getActualPixelPosition(box_xl, box_yl);\n\t\tVector3<Float> pt2 = m_zoomPane.getActualPixelPosition(box_xl, box_yr);\n\t\tVector3<Float> pt3 = m_zoomPane.getActualPixelPosition(box_xr, box_yr);\n\t\tVector3<Float> pt4 = m_zoomPane.getActualPixelPosition(box_xr, box_yl);\n\t\t\n\t\t// Save the transform state\n\t\tgc.save();\n gc.setTransform(mat);\n \n\t\tColor c = Color.RED;\n // Draw some lines.\n\t\tgc.beginPath();\n\t\tgc.setStroke(c);\n\t\tgc.setFill(c);\n\t\tgc.setLineWidth(1.0 / scaleFactor);\n\t\t\n gc.moveTo(pt1.x, pt1.y);\n gc.lineTo(pt2.x, pt2.y);\n gc.moveTo(pt2.x, pt2.y);\n gc.lineTo(pt3.x, pt3.y);\n \n gc.moveTo(pt3.x, pt3.y);\n gc.lineTo(pt4.x, pt4.y);\n gc.moveTo(pt4.x, pt4.y);\n gc.lineTo(pt1.x, pt1.y);\n \n gc.stroke();\n gc.closePath();\n \n gc.restore();\n\t}", "public abstract void Draw(Graphics2D g, double zoomFactor);", "public abstract void Draw(Graphics2D g, double zoomFactor);", "public void handleZoom(MouseEvent event){\n ImageView imageView = (ImageView) event.getSource();\n Image imageToShow = imageView.getImage();\n zoomImage.setImage(imageToShow);\n zoomPane.setVisible(true);\n }", "void onZoom() {\n\t\tmZoomPending=true;\n\t}", "public void setZoom(double zoom) {\n\tzoom = Math.min(getMaxZoom(), zoom);\n\tzoom = Math.max(getMinZoom(), zoom);\n\tif (this.zoom != zoom)\n\t\tprimSetZoom(zoom);\n}", "public void setZoom(float zoom) {\n\t\tthis.zoom = zoom;\n\t\trevalidate();\n\t\trepaint();\n\t}", "int getMinZoom();", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "public void setZoom(double zoom) {\n if (zoom > 0) {\n this.zoom = zoom;\n this.rescale();\n }\n }", "public ScrollZoomDisplayCanvas() {\n\t\tsuper();\n\t\tdisp = new DisplayCanvas();\n\t\tsp = new ScrollPane();\n\t\tsp.add(disp);\n\t\texactZoom = new TextField(disp.getScale() + \"\");\n\t\texactZoom.addActionListener(this);\n\t\tzoom = new Button(\"Zoom\");\n\t\tzoom.addActionListener(this);\n\t\tunzoom = new Button(\"UnZoom\");\n\t\tunzoom.addActionListener(this);\n\t\tPanel P = new Panel(new FlowLayout());\n\t\tP.add(zoom);\n\t\tP.add(unzoom);\n\t\tP.add(exactZoom);\n\t\tsetLayout(new BorderLayout());\n\t\tadd(\"North\", P);\n\t\tadd(\"Center\", sp);\n\t}", "public void mouseReleased() {\nif (released == true && draggingZoomSlider == true){\n alt = (map(zoom,texture.height-texture.height,texture.height,radians(-90),radians(90)));\n // GHA = (map(tzoom, texture.width - texture.width, texture.width, radians(-180),radians(180)));\n GHA = (map(tzoom,texture.width - texture.width,texture.width, radians(-180),radians(180)));\n initStars();\n initializeSphere(sDetail);\n thread( \"getPoints\");\n renderGlobe();\n}\ndraggingZoomSlider = false;\n}", "protected void zoomToPresent(){\n if(xpCursor1 >=0){\n ixDataCursor1 = ixDataShown[xpCursor1];\n }\n if(xpCursor2 >=0){\n ixDataCursor2 = ixDataShown[xpCursor2];\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n if(widgg.timeorg.timeSpread > 100) { widgg.timeorg.timeSpread /=2; }\n else { widgg.timeorg.timeSpread = 100; }\n bPaintAllCmd = true;\n widgg.redraw(100, 200);\n }", "void startZoom() {\n\t\t// this boolean tells the system that it needs to \n\t\t// initialize itself before trying to zoom\n\t\t// This is cleaner than duplicating code\n\t\t// see processZoom\n\t\tmZoomEstablished=false;\n\t}", "@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f);\n }", "public void setZoom(float zoom) {\r\n\t\tif (zoom < 0.1f)\r\n\t\t\treturn;\r\n\t\tthis.zoomFactor = zoom;\r\n\t}", "public void zoom(float zoom) { \n if (zoom <=0) {\n throw new IllegalArgumentException();\n }\n\n workTransform.setTransform(null);\n workTransform.mScale(zoom);\n workTransform.mMultiply(userTransform);\n doc.setTransform(workTransform);\n swapTransforms();\n }", "private void toggleZoom(float x, float y) {\n if (getZoomFactor() == MAX_ZOOM_FACTOR) {\n setZoomFactor(MIN_ZOOM_FACTOR);\n }\n else {\n setZoomFactor(MAX_ZOOM_FACTOR);\n }\n moveCameraToPosWithinBoardBounds(x, y);\n }", "public void zoomIn() {\n \t\tzoom(1);\n \t}", "public void zoomIn()\n {\n zoomIn(1, width >> 1, height >> 1);\n }", "public void zoomIn() {\r\n \t\tgraph.setScale(graph.getScale() * 1.25);\r\n \t}", "public static void changeCameraZoom(boolean zoomIn){\r\n\t\tif(zoomIn && zoomLevel > 0){\r\n\t\t\tzoomLevel -= 2;\r\n\t\t}else if(!zoomIn){\r\n\t\t\tzoomLevel += 2;\r\n\t\t}\r\n\t}", "public void zoomToFactor(double d) {\n\t\t\n\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }", "public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}", "private void setInitialPanAndZoom() {\r\n\t\tif (this.largestDimension == Dimensions.HORIZONTAL) {\r\n\t\t\tif (this.numHexCol <= 20) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.94);\r\n\t\t\t} else if (this.numHexCol <= 40) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.48);\r\n\t\t\t\tthis.zoomer.setPanOffset(-160, -160);\r\n\t\t\t} else if (this.numHexCol <= 60) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.32);\r\n\t\t\t\tthis.zoomer.setPanOffset(-220, -220);\r\n\t\t\t} else if (this.numHexCol <= 80) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.24);\r\n\t\t\t\tthis.zoomer.setPanOffset(-250, -250);\r\n\t\t\t} else if (this.numHexCol <= 100) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.19);\r\n\t\t\t\tthis.zoomer.setPanOffset(-270, -270);\r\n\t\t\t} else if (this.numHexCol <= 120) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.16);\r\n\t\t\t\tthis.zoomer.setPanOffset(-280, -280);\r\n\t\t\t} else if (this.numHexCol <= 140) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.14);\r\n\t\t\t\tthis.zoomer.setPanOffset(-290, -290);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.numHexRow <= 20) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.94);\r\n\t\t\t} else if (this.numHexRow <= 40) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.48);\r\n\t\t\t\tthis.zoomer.setPanOffset(-160, -160);\r\n\t\t\t} else if (this.numHexRow <= 60) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.32);\r\n\t\t\t\tthis.zoomer.setPanOffset(-220, -220);\r\n\t\t\t} else if (this.numHexRow <= 80) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.24);\r\n\t\t\t\tthis.zoomer.setPanOffset(-250, -250);\r\n\t\t\t} else if (this.numHexRow <= 100) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.19);\r\n\t\t\t\tthis.zoomer.setPanOffset(-270, -270);\r\n\t\t\t} else if (this.numHexRow <= 120) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.16);\r\n\t\t\t\tthis.zoomer.setPanOffset(-280, -280);\r\n\t\t\t} else if (this.numHexRow <= 140) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.14);\r\n\t\t\t\tthis.zoomer.setPanOffset(-290, -290);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}", "public void zoomCam(float zoom){\n\t\tthis.camera.setZoom(zoom);\n\t}", "private void setVerticalZoomCursor(int x, int y, boolean shift) {\r\n\t\tif (canChangeVerticalZoom) {\r\n\t\t\tif (changingVerticalZoom\r\n\t\t\t\t\t|| (!shift && nearChangeVerticalZoomArea(x, y))) {\r\n\t\t\t\tif (!changeVerticalZoomCursorSet) {\r\n\t\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\tchangeVerticalZoomCursorSet = true;\r\n\t\t\t\t}\r\n\t\t\t} else if (changeVerticalZoomCursorSet) {\r\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t\tchangeVerticalZoomCursorSet = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testSetZoomMax() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MAX, 10.0f);\n }", "public void zoomTo(EastNorth newCenter, double scale) {\n center = newCenter;\n getProjection().eastNorth2latlon(center);\n this.scale = scale;\n repaint();\n }", "public void setleZoom( double valeur) {\n\t\tzoomMonde = valeur;\n\t}", "public void mouseDragged (LayerEvent event) {\r\n \t\t\tif (!isEnabled()) return;\r\n\t\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n \r\n\t\t\tif (_rubberBand == null) {\r\n\t \t// This should never happen, but it does.\r\n\t \treturn;\r\n\t\t\t\t}\r\n \r\n\t\t\tif (_zoomInFilter.accept(event) || _zoomOutFilter.accept(event)) {\r\n\t\t\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t \t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\t\r\n\t\t\t// Figure out the coordinates of the rubber band\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t double useXPos = event.getLayerX();\r\n\t\t double useYPos = event.getLayerY();\r\n\t\t \r\n\t\t\t// space held down translates\r\n\t\t\t// rubberband _originX, _originY by event-prev\r\n\t\t\tif (((TrekCanvas)trekPane.getCanvas()).isSpaceDown()) {\r\n\t\t\t\t_originX += (useXPos - prevX);\r\n\t\t\t\t_originY += (useYPos - prevY);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tprevX = event.getLayerX();\r\n\t\t\tprevY = event.getLayerY();\r\n\t\t\t\r\n\t\t // Without control down rubberband conforms to visible aspect ratio\r\n\t\t if (!((TrekCanvas)trekPane.getCanvas()).isControlDown()) {\r\n\t\t\t\tDimension visSize = trekPane.getVisibleSize();\r\n\t\t\t\tdouble currAspect = visSize.getHeight()/visSize.getWidth();\r\n\t\t\t\tif (Math.abs(useYPos - _originY) > Math.abs(useXPos - _originX)) {\r\n\t\t\t\t\tuseXPos = _originX + (useXPos < _originX ? -1.0 : 1.0)*Math.abs((useYPos - _originY)/currAspect);\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuseYPos = _originY + (useYPos < _originY ? -1.0 : 1.0)*Math.abs((useXPos - _originX)*currAspect);\r\n\t\t\t\t\t}\r\n\t\t \t}\r\n\t\t \r\n\t\t\tif (event.isAltDown()) {\r\n\t\t\t\t_rubberBand.setFrameFromCenter(_originX, _originY, useXPos, useYPos);\r\n\t\t\t\t}\r\n else {\r\n\t\t\t\t_rubberBand.setFrameFromDiagonal(_originX, _originY, useXPos, useYPos);\r\n \t}\r\n \t\r\n\t\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\t\t// Could possibly do some custom drawing showing an in or out zoom\r\n\t\t\tif (_isZoomingIn) {\r\n } \r\n else {\r\n }\r\n \r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t\t\tevent.consume();\r\n\t\t\t}\r\n\t}", "public void setZoomInFilter(MouseFilter f) {\r\n _zoomInFilter = f;\r\n }", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n\n zoomer = true;\n\n //Zoom in\n if (e.getWheelRotation() < 0) {\n zoomFactor *= 1.1;\n repaint();\n }\n //Zoom out\n if (e.getWheelRotation() > 0) {\n zoomFactor /= 1.1;\n repaint();\n }\n }", "public void zoomOnAddress(){\n adjustZoomLvl(16000);\n adjustZoomFactor();\n }", "public void zoomIn() {\n\t\tif (this.zoom + DELTA_ZOOM <= MAX_ZOOM)\n\t\t\tthis.setZoom(this.zoom + DELTA_ZOOM);\n\t}", "private void clampZoom()\n\t{\n\t\tif (zoom < ZOOM_MINIMUM)\n\t\t{\n\t\t\tzoom = ZOOM_MINIMUM;\n\t\t}\n\t\telse if (zoom > ZOOM_MAXIMUM)\n\t\t{\n\t\t\tzoom = ZOOM_MAXIMUM;\n\t\t}\n\t}", "@Override\n public void mapScaleChanged(MapScaleChangedEvent mapScaleChangedEvent) {\n// if (drawGraphicLayer.getGraphics() == null || drawGraphicLayer.getGraphics().size() == 0) {\n// if (mapScaleChangedEvent.getSource().getMapScale() >= 94249 && cars != null) {\n// Log.i(TAG, \"mapScaleChanged: Zooming Out\");\n// graphicsOverlay.clearSelection();\n// graphicsOverlay.getGraphics().clear();\n//\n//\n// for (CarStatus car : cars) {\n//\n// Point point = (Point) GeometryEngine.project(new Point(car.getLongitude(), car.getLatitude(), spatialReference), mapView.getSpatialReference());\n// Graphic carGraphic = null;\n//\n//\n// if (car.getStatus().equals(\"Moving\")) {\n// greenMarker = new PictureMarkerSymbol((BitmapDrawable) getResources().getDrawable(R.drawable.green));\n// greenMarker.setWidth(18f);\n// greenMarker.setHeight(36f);\n// greenMarker.setAngle((float) car.getAngle());\n// carGraphic = new Graphic(point, greenMarker);\n// } else if (car.getStatus().equals(\"Stopped\")) {\n// redMarker = new PictureMarkerSymbol((BitmapDrawable) getResources().getDrawable(R.drawable.reed));\n// redMarker.setWidth(18f);\n// redMarker.setHeight(36f);\n// redMarker.setAngle((float) car.getAngle());\n// carGraphic = new Graphic(point, redMarker);\n// } else if (car.getStatus().equals(\"Disconnected\")) {\n// yellowMarker = new PictureMarkerSymbol((BitmapDrawable) getResources().getDrawable(R.drawable.yellow));\n// yellowMarker.setWidth(18f);\n// yellowMarker.setHeight(36f);\n// yellowMarker.setAngle((float) car.getAngle());\n// carGraphic = new Graphic(point, yellowMarker);\n// }else if (car.getStatus().equals(\"Disabled\")) {\n// blueMarker = new PictureMarkerSymbol((BitmapDrawable) getResources().getDrawable(R.drawable.blue));\n// blueMarker.setWidth(18f);\n// blueMarker.setHeight(36f);\n// blueMarker.setAngle((float) car.getAngle());\n// carGraphic = new Graphic(point, blueMarker);\n// }\n// graphicsOverlay.getGraphics().add(carGraphic);\n// }\n// } else if (mapScaleChangedEvent.getSource().getMapScale() < 94249 && cars != null) {\n// Log.i(TAG, \"mapScaleChanged: Zooming In\");\n// graphicsOverlay.clearSelection();\n// graphicsOverlay.getGraphics().clear();\n//\n// for (CarStatus car : cars) {\n//\n// Point point = (Point) GeometryEngine.project(new Point(car.getLongitude(), car.getLatitude(), spatialReference), mapView.getSpatialReference());\n// Graphic carGraphic = null;\n//\n// if (car.getStatus().equals(\"Moving\")) {\n// greenMarker.setWidth(32f);\n// greenMarker.setHeight(64f);\n// carGraphic = new Graphic(point, greenMarker);\n// } else if (car.getStatus().equals(\"Stopped\")) {\n// redMarker.setWidth(32f);\n// redMarker.setHeight(64f);\n// carGraphic = new Graphic(point, redMarker);\n// } else if (car.getStatus().equals(\"Disconnected\") || car.getStatus().equals(\"Disabled\")) {\n// yellowMarker.setWidth(32f);\n// yellowMarker.setHeight(64f);\n// carGraphic = new Graphic(point, yellowMarker);\n// }\n// graphicsOverlay.getGraphics().add(carGraphic);\n// }\n// }\n// }\n }", "public void scrollZoom (ScrollEvent scrollEvent){\n //Sets the zoom value from the deltaY value of the scroll event\n double zoom = scrollEvent.getDeltaY()/40;\n\n //Divides the zoom value relative to the current cell draw size.\n if (canvasDrawer.getCellDrawSize() < 3) {\n zoom = zoom / 16;\n } else if (canvasDrawer.getCellDrawSize() < 5) {\n zoom = zoom / 8;\n } else if (canvasDrawer.getCellDrawSize() < 8) {\n zoom = zoom / 4;\n } else if (canvasDrawer.getCellDrawSize() < 20 || canvasDrawer.getCellDrawSize() > 5) {\n zoom = zoom / 2;\n }\n\n canvasDrawer.setZoom(canvasDrawer.getCellDrawSize() + zoom, canvasArea, board);\n draw();\n }", "public MouseWheelListener getZoomListener() {\r\n\t\treturn new MouseWheelListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\r\n\t\t\t\tif(e.getWheelRotation() < 0){\r\n\t\t\t\t\tit.increaseZoomX();\r\n\t\t it.increaseZoomY();\r\n\t\t\t\t}else if(e.getWheelRotation() > 0){\r\n\t\t\t\t\tit.decreaseZoomX();\r\n\t\t\t\t\tit.decreaseZoomY();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "protected void zoomToPast(){\n //zoom out\n int maxTimeSpread = widgg.timeorg.lastShortTimeDateInCurve - widgg.timeorg.firstShortTimeDateInCurve;\n if(xpCursor1 >=0){\n ixDataCursor1 = ixDataShown[xpCursor1];\n }\n if(xpCursor2 >=0){\n ixDataCursor2 = ixDataShown[xpCursor2];\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n if(widgg.timeorg.timeSpread < 0x3fffffff) { widgg.timeorg.timeSpread *=2; }\n else { widgg.timeorg.timeSpread = 0x7fffffff; }\n bPaintAllCmd = true;\n widgg.redraw(100, 200);\n \n }", "public void panOrZoom(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON2 && ui_inter != UI_INTERACTION.PANNING && pan_mode == false) return;\n switch (me_enum) {\n case PRESSED: initializeDragVars(me); ui_inter = UI_INTERACTION.PANNING; repaint(); break;\n case DRAGGED: updateDragVars(me,true); repaint(); break;\n case RELEASED: updateDragVars(me,true); ui_inter = UI_INTERACTION.NONE; \n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n if (dx != 0.0 || dy != 0.0) {\n Rectangle2D r = getExtents();\n setExtents(new Rectangle2D.Double(r.getX() - dx, r.getY() - dy, r.getWidth(), r.getHeight()));\n }\n break;\n case CLICKED: zoomToFit(); break;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }", "private void previewXY() {\n Viewport tempViewport = new Viewport(chart.getMaximumViewport());\n // Make temp viewport smaller.\n float dx = tempViewport.width() / 4;\n float dy = tempViewport.height() / 4;\n tempViewport.inset(dx, dy);\n previewChart.setCurrentViewportWithAnimation(tempViewport);\n }", "@Override\r\n\t\t\tpublic void handle(ScrollEvent e) {\n\t\t\t\tif (e.isControlDown() && getSkinnable().isScalableOnScroll()) {\r\n\t\t\t\t\tdouble delta = e.getDeltaY();\r\n\t\t\t\t\tdouble newValue = localScaleFactor.get();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue + ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue > ZOOM_MAX) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MAX;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue - ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue < ZOOM_MIN) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MIN;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlocalScaleFactor.set(newValue);\r\n\t\t\t\t\ttakeSnap(prevX.get(), prevY.get());\r\n\t\t\t\t}\r\n\t\t\t\t// If scrolled with ALT key press\r\n\t\t\t\telse if (e.isAltDown() && getSkinnable().isResizableOnScroll()) {\r\n\t\t\t\t\tfinal double delta = e.getDeltaY();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the size.\r\n\t\t\t\t\t\tlocalRadius.set(localRadius.get() + RADIUS_DELTA);\r\n\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the size.\r\n\t\t\t\t\t\tif (localRadius.get() > MIN_RADIUS) {\r\n\t\t\t\t\t\t\tlocalRadius.set(localRadius.get() - RADIUS_DELTA);\r\n\t\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\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}", "@Test\n public void testSetZoomMin() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MIN, 1.1f);\n }", "protected abstract void onScalePercentChange(int zoom);", "public void setView(Rectangle2D bounds) {\r\n if (bounds == null) {\r\n return;\r\n }\r\n Rectangle2D old = getView();\r\n defaultView = new Rectangle2D.Double(bounds.getX(), bounds.getY(),\r\n bounds.getWidth(), bounds.getHeight());\r\n \r\n minX = defaultView.getMinX();\r\n maxX = defaultView.getMaxX();\r\n minY = defaultView.getMinY();\r\n maxY = defaultView.getMaxY();\r\n \r\n majorX = defaultMajorX;\r\n majorY = defaultMajorY;\r\n firePropertyChange(\"view\", old, getView());\r\n repaint();\r\n }", "public synchronized void addZoom(float zoom)\r\n {\r\n this.setZoom(zoom + this.getZoom());\r\n }", "public void setMaxzoom(Integer maxzoom) {\n this.maxzoom = maxzoom;\n }", "public double getZoom() {\n return curZoom;\n }", "public void zoomIn() {\n if (currentViewableRange.getLength() > 1) {\n zoomToLength(currentViewableRange.getLength() / 2);\n }\n }", "void onScaleChange(float scaleFactor, float focusX, float focusY);", "@Override\n\tpublic void onZoomChanged(GeoPoint center, double diagonal) {\n\t}", "public void zoomToAreaOfInterest() {\n Envelope aoe = context.getViewport().getBounds();\n if (aoe.getWidth() == 0) {\n aoe.expandBy(.001, 0);\n }\n\n if (aoe.getHeight() == 0) {\n aoe.expandBy(0, .001);\n }\n Rectangle2D rect = new Rectangle2D.Double(aoe.getMinX(), aoe.getMinY(),\n aoe.getWidth(), aoe.getHeight());\n getCamera().animateViewToCenterBounds(rect, true, 0);\n }", "public void zoom(int s) {\r\n\t\tzoom += s * ZOOM_FACTOR;\r\n\t}", "public void zoom(double factor) {\n //Check whether we zooming in or out for adjusting the zoomLvl field\n //Scale the graphic and pan accordingly\n if(factor>1 && zoomLevel!=20) {\n transform.preConcatenate(AffineTransform.getScaleInstance(factor, factor));\n pan(getWidth() * (1 - factor) / 2, getHeight() * (1 - factor) / 2);\n checkForZoomIn();\n }else if(zoomLevel!=0 && factor<1){\n transform.preConcatenate(AffineTransform.getScaleInstance(factor, factor));\n pan(getWidth() * (1 - factor) / 2, getHeight() * (1 - factor) / 2);\n checkForZoomOut();\n }\n }", "private void actionZoomIn ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\t//---- Calculate zoom scale factor\r\n\t\t\tdouble zoom = mainFormLink.getComponentPanelCenter().getComponentPanelImageView().transformZoom(+FormMainMouse.DEFAULT_ZOOM_DELTA); \r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().repaint();\r\n\r\n\t\t\t//---- Set the current zoom, display the zoom scale factor in the GUI\r\n\t\t\tFormMainMouse.imageViewZoomScale = zoom;\r\n\t\t\tmainFormLink.getComponentPanelDown().getComponentLabelZoom().setText(String.valueOf(zoom));\r\n\t\t}\r\n\t}", "public void zoom(double amplifier) {\n\t\tint width = mapContainer.getWidth()-60;\n\t\tint height = mapContainer.getHeight()-60;\n\t\tdouble nXF = (double)(MouseInfo.getPointerInfo().getLocation().x - (getLocation().x + mapContainer.getLocation().x + 30))/width;\n\t\tdouble nYF = (double)(MouseInfo.getPointerInfo().getLocation().y - (getLocation().y + mapContainer.getLocation().y + 30))/height;\n\t\tzoom *= amplifier;\n\t\txF = xF - 1/(zoom*2) + 1/zoom*nXF;\n\t\tyF = yF - 1/(zoom*2) + 1/zoom*nYF;\n\t}" ]
[ "0.69845915", "0.69739664", "0.69704133", "0.679773", "0.6705861", "0.660328", "0.65501565", "0.6520316", "0.6418733", "0.6412794", "0.6410833", "0.63891494", "0.6372282", "0.63489693", "0.6304238", "0.62701124", "0.6263378", "0.6178998", "0.61594856", "0.61522293", "0.60713977", "0.60177875", "0.6013785", "0.6013424", "0.6011084", "0.6008895", "0.6008895", "0.5993029", "0.5991961", "0.5991075", "0.5990525", "0.5988779", "0.5970168", "0.5958857", "0.5946844", "0.5937957", "0.5914583", "0.5890265", "0.58760905", "0.58686936", "0.58559537", "0.5851454", "0.5850444", "0.5850444", "0.5850071", "0.5848406", "0.5844694", "0.58422256", "0.5839799", "0.58315974", "0.5831237", "0.5828766", "0.5816864", "0.58095187", "0.5807789", "0.57996786", "0.57812464", "0.5778603", "0.577621", "0.5753824", "0.5735642", "0.5733032", "0.5727788", "0.57264966", "0.572555", "0.5719491", "0.5698274", "0.5697807", "0.56972426", "0.5686815", "0.56814975", "0.56812614", "0.56768674", "0.56729645", "0.5668471", "0.56646377", "0.566142", "0.56317353", "0.56288075", "0.5625625", "0.5614505", "0.56129646", "0.5602358", "0.55998176", "0.55964905", "0.55922633", "0.558811", "0.5563333", "0.5551066", "0.5520296", "0.55182415", "0.5506942", "0.5494607", "0.5492318", "0.54885536", "0.5483525", "0.547485", "0.54723215", "0.54705626", "0.54668885" ]
0.7523285
0
Modify the input coord2D to ensure the mouse value never stand outside of the axis bounds.
protected void maintainInAxis(Coord2d mouse) { View view = getChart().getView(); View2DLayout layout = view.get2DLayout(); BoundingBox3d bounds3d = getChart().getView().getBounds(); // Get corners Coord3d cornerMin3D = null; Coord3d cornerMax3D = null; if (view.is2D_XY()) { // no flip : take X min for bottom left corner if (layout.isNoAxisFlipped()) { cornerMin3D = bounds3d.getCorners().getXminYminZmin(); cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax(); } // horizontal flip : take X max for bottom left corner else if (layout.isHorizontalAxisFlipOnly()) { cornerMin3D = bounds3d.getCorners().getXmaxYminZmin(); cornerMax3D = bounds3d.getCorners().getXminYmaxZmax(); } // vertical flip : take Y max for bottom left corner else if (layout.isVerticalAxisFlipOnly()) { cornerMin3D = bounds3d.getCorners().getXminYmaxZmin(); cornerMax3D = bounds3d.getCorners().getXmaxYminZmax(); } // both of the two above else if (layout.isBothAxisFlipped()) { cornerMin3D = bounds3d.getCorners().getXmaxYmaxZmin(); cornerMax3D = bounds3d.getCorners().getXminYminZmax(); } } else if (view.is2D_XZ()) { // no flip : take X min for bottom left corner if (layout.isNoAxisFlipped()) { cornerMin3D = bounds3d.getCorners().getXminYminZmin(); cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax(); } // horizontal flip : take X max for bottom left corner else if (layout.isHorizontalAxisFlipOnly()) { cornerMin3D = bounds3d.getCorners().getXmaxYminZmin(); cornerMax3D = bounds3d.getCorners().getXminYmaxZmax(); } // vertical flip : take Y max for bottom left corner else if (layout.isVerticalAxisFlipOnly()) { cornerMin3D = bounds3d.getCorners().getXminYminZmax(); cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin(); } // both of the two above else if (layout.isBothAxisFlipped()) { cornerMin3D = bounds3d.getCorners().getXmaxYminZmax(); cornerMax3D = bounds3d.getCorners().getXminYmaxZmin(); } } else if (view.is2D_YZ()) { // no flip : take X min for bottom left corner if (layout.isNoAxisFlipped()) { cornerMin3D = bounds3d.getCorners().getXminYminZmin(); cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax(); } // horizontal flip : take X max for bottom left corner else if (layout.isHorizontalAxisFlipOnly()) { cornerMin3D = bounds3d.getCorners().getXminYmaxZmin(); cornerMax3D = bounds3d.getCorners().getXmaxYminZmax(); } // vertical flip : take Y max for bottom left corner else if (layout.isVerticalAxisFlipOnly()) { cornerMin3D = bounds3d.getCorners().getXminYminZmax(); cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin(); } // both of the two above else if (layout.isBothAxisFlipped()) { cornerMin3D = bounds3d.getCorners().getXminYmaxZmax(); cornerMax3D = bounds3d.getCorners().getXmaxYminZmin(); } } // System.out.println("Corner min 3D : " + cornerMin3D); // System.out.println("Corner max 3D : " + cornerMax3D); // Project 3D bounds to 2D Coord3d cornerMin2D = modelToScreen(cornerMin3D); // bottom left Coord3d cornerMax2D = modelToScreen(cornerMax3D); // top right Coord2d scale = scaled?new Coord2d(1,1):getChart().getView().getPixelScale(); cornerMin2D.x /= scale.x; cornerMin2D.y /= scale.y; cornerMax2D.x /= scale.x; cornerMax2D.y /= scale.y; // System.out.println(mouse + " corner min " + cornerMin2D + " corner max " + cornerMax2D); // System.out.println("Corner min 2D : " + cornerMin); // System.out.println("Corner max 2D : " + cornerMax); // Crop on X bounds if (mouse.x < cornerMin2D.x) mouse.x = cornerMin2D.x; if (mouse.x > cornerMax2D.x) mouse.x = cornerMax2D.x; // Crop on Y bounds int height = (int)(getChart().getCanvas().getRendererHeight() / scale.y); float flipedCornerMinY = height - cornerMin2D.y; float flipedCornerMaxY = height - cornerMax2D.y; float flipedMouseY = height - mouse.y; if (flipedMouseY < cornerMin2D.y) mouse.y = flipedCornerMinY; if (flipedMouseY > cornerMax2D.y) mouse.y = flipedCornerMaxY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseReleased(MouseEvent e) {\n int xfinal = e.getX() / 5; //get the xvalue\r\n int yfinal = e.getX() / 5; //get the yvalue\r\n\r\n try {\r\n if (xinitial < 100 && xinitial > -1 && yinitial < 100 && yinitial > -1 && xfinal < 100 && xfinal > -1 && yfinal < 100 && yfinal > -1) { //check if the value is inside grid\r\n if (change == true) { //if the change boolean is true\r\n colony.populate(xinitial, yinitial, xfinal, yfinal); //populate the area from the pressed to released\r\n } else if (change == false) { //if the change boolean is false\r\n colony.eradicate(xinitial, yinitial, xfinal, yfinal); //eradicate the area from the pressed to released\r\n }\r\n repaint();\r\n }\r\n } catch (Exception e1) { //catch exceptions\r\n System.out.print(\"Out of Bounds.\");\r\n }\r\n\r\n }", "@Override\n public void processInput(Vector2f m) {\n\n //Check if mouse within bounds, if so, kill it\n if (mouse.buttonDown(MouseEvent.BUTTON1)) {\n if (m.x < this.tx + 800 && m.x > this.tx - 800 && m.y < this.ty + 800 && m.y > this.ty - 800) {\n this.shotDown = true;\n }\n }\n\n }", "private void cursorPosChanged( double x, double y )\n {\n }", "protected Coord2d xy(MouseEvent e) {\n return new Coord2d(x(e), y(e));\n }", "public void mouseMoved(MouseEvent e) {\n \tapp.updateCoord(e.getX(),e.getY());\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif (!enabled) {\n\t\t\treturn;\n\t\t}\n\t\tx2 = e.getX();\n\t\ty2 = e.getY();\n\t\tedg.newCords(x2, y2);\n\t\tedg.repaint();\n\t\tedg.revalidate();\n\n\t}", "public void mouseMoved(MouseEvent e) {\n\t\tmainPanel2.mouseX = e.getX()-25;\r\n\t\tmainPanel2.mouseY = e.getY()-30;\r\n\t\tmainPanel2.repaint();\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n setLocation(x-xMouse , y-yMouse);\n }", "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(secondClick == false) {\n\t\t\tx1 = arg0.getX();\n\t\t\ty1 = arg0.getY();\n\t\t\tsecondClick = true;\n\t\t}else {\n\t\t\tx2 = arg0.getX();\n\t\t\ty2 = arg0.getY();\n\t\t\tsecondClick = false;\n\t\t\tboundaryList.add(new Boundary(x1, y1, x2, y2));\n\t\t\trepaint();\n\t\t}\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tisMoved = false;\n\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }", "public void updateGameMode2 (MouseEvent e)\n {\n if ((e.getX() >= 512 && e.getX() <= 836) && (e.getY() >= 161 && e.getY() <=520))\n twoPPressed = true;\n else if ((e.getX() >= 62 && e.getX() <= 386) && (e.getY() >= 161 && e.getY() <=520))\n onePPressed = true;\n }", "private Point2D mouseLocation() {\n return FXGL.getInput().getMousePositionWorld();\n\n }", "public void mousePressed(MouseEvent evt) {\n Location x = new Location( evt.getX(), evt.getY() );\n pond.checkAxis( x );\n\n }", "private void draggedEdge(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n edgeTool.setSeccondPoint(e.getPoint());\r\n }\r\n }", "@Override\n public boolean mouseMoved(int screenX, int screenY) {\n return false;\n }", "@Override\n public boolean mouseMoved(int screenX, int screenY) {\n return false;\n }", "private boolean validateOutOfRangeCoordinate() throws IOException {\n int maxValue = Integer.parseInt(Objects.requireNonNull(FileUtils.getProperty(\"max-coordinate-value\")));\n return (Math.abs(getX()) > maxValue) || (Math.abs(getY()) > maxValue);\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "public void mouseDragged( MouseEvent evt ){\n Location x = new Location( evt.getX(), evt.getY() );\n pond.moveAxis(x, canvas);\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tshowmBox = false;\n\n\t\tint newx = e.getX(), newy = getHeight() - e.getY();\n\t\tint changex = newx - mousemovex, changey = newy - mousemovey;\n\n\t\tdouble changewindowx = changex * (param.maxx - param.minx) / (getWidth());\n\t\tdouble changewindowy = changey * (param.maxy - param.miny) / (-getHeight());\n\n\t\tparam.maxx -= changewindowx;\n\t\tparam.minx -= changewindowx;\n\t\tparam.maxy += changewindowy;\n\t\tparam.miny += changewindowy;\n\n\t\tmousemovex = newx;\n\t\tmousemovey = newy;\n\n\t\trepaint();\n\t}", "private void jPanel2MouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n this.setLocation(x - xx, y - xy);\n }", "@Override\n\tpublic boolean mouseMoved(int arg0, int arg1) {\n\t\treturn false;\n\t}", "void mouseMoved(double x, double y, MouseEvent e );", "@Override\n public void mouse2Down(int key, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel,\n GralWidget widgg)\n {\n \n }", "private void draggedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n nodeTool.setSeccondPoint(e.getPoint());\r\n }\r\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\n\t\tif (!enabled) {\n\t\t\treturn;\n\t\t}\n\t\tx2 = e.getX();\n\t\ty2 = e.getY();\n\t\tedg.newCords(x2, y2);\n\t\tedg.repaint();\n\t\tedg.revalidate();\n\t\tenabled = false;\n\t\tAssignment.clicked = 0; // Allows another button to get pressed\n\t}", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\tfloat currentScale = (float) (-Math.signum(lastMouseWorldPosition.get(Vector.Y) - Mouse.worldCoordinates.get(Vector.Y)) * scale);\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setScale(editable.getEntity().getComponent(Transform.class).getScale().add(currentScale, currentScale, 0));\n\t\t\t}\n\t\t\t\n\t\t\t// Update last mouse world position\n\t\t\tlastMouseWorldPosition = Mouse.worldCoordinates.copy();\n\t\t}", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "public Double getMouse2()\n {\n return this.mouse2;\n }", "@Override\n public boolean mouseMoved(final int screenX, final int screenY) {\n return false;\n }", "public void mouseExited( MouseEvent event )\n\t {\n\t \t coords.setText( \"Outside\" );\n\t }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t\tdouble x = arg0.getX();\n\t\tdouble y = arg0.getY();\n\t\tint row, column;\n\t\t\n\t\tcolumn = (int) (x * VerilogSprite.PIXEL_COLUMNS / width);\n\t\trow = (int) (y * VerilogSprite.PIXEL_ROWS / height);\n\t\t\n\t\tif (leftDown) {\n\t\t\t\n\t\t\tsprite.data[row][column] = 1;\n\t\t}\n\t\tif (rightDown)\n\t\t{\n\t\t\t\n\t\t\tsprite.data[row][column] = 0;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "@Override\n public boolean mouseOver(int x, int y)\n {\n return false;\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\tsuper.mouseDragged(e);\n\t\t\tint xMaxRightPosition = Constants.VISIBLE_WIDTH - player.getWidth();\n\t\t\tint x = e.getX();\n\t\t\tif (x > 0 && x < xMaxRightPosition) {\n\t\t\t\tplayer.setX(x);\n\t\t\t} else if (x < 0 && player.getX() > 0) {\n\t\t\t\tplayer.setX(0);\n\t\t\t} else if (x > xMaxRightPosition\n\t\t\t\t\t&& player.getX() < xMaxRightPosition) {\n\t\t\t\tplayer.setX(xMaxRightPosition);\n\t\t\t}\n\n\t\t}", "public void setDragged(double x, double y) {\n if (Math.abs(draggedX - x) >= 0.00001d || Math.abs(draggedY - y) >= 0.00001d) {\n draggedX = x < 0 ? 0 : x;\n draggedY = y < 0 ? 0 : y;\n xOffset = draggedX - pressedX;\n yOffset = draggedY - pressedY;\n\n gameChanged = true;\n }\n }", "public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }", "protected void configureZoomAccordingTo2DView(View view, BoundingBox3d bounds,\n MouseSelection mouseSelection) {\n if (view.is2D_XY()) {\n bounds.setXmin(mouseSelection.min3DX());\n bounds.setXmax(mouseSelection.max3DX());\n bounds.setYmin(mouseSelection.min3DY());\n bounds.setYmax(mouseSelection.max3DY());\n } else if (view.is2D_XZ()) {\n bounds.setXmin(mouseSelection.min3DX());\n bounds.setXmax(mouseSelection.max3DX());\n bounds.setZmin(mouseSelection.min3DZ());\n bounds.setZmax(mouseSelection.max3DZ());\n } else if (view.is2D_YZ()) {\n bounds.setYmin(mouseSelection.min3DY());\n bounds.setYmax(mouseSelection.max3DY());\n bounds.setZmin(mouseSelection.min3DZ());\n bounds.setZmax(mouseSelection.max3DZ());\n } else {\n throw new RuntimeException(\"Unexpected 2D view\");\n }\n\n // System.out.println(\"Mouse.Bounds : \" + bounds);\n }", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox(null);\n\n if (allowCrop)\n getChart().getScene().getGraph().setClipBox(null);\n\n view.setBoundMode(ViewBoundMode.AUTO_FIT);\n\n }\n // Or apply selection to ZOOM\n else {\n BoundingBox3d bounds = view.getBounds().clone();\n\n configureZoomAccordingTo2DView(view, bounds, mouseSelection);\n\n // Reset mouse selection now so that next rendering will hide it from screen\n mouseSelection = new MouseSelection();\n\n // Won't do anything for irrelevant bounds leading to a flat graph\n if (bounds.getXRange().getRange() <= 0 \n || bounds.getYRange().getRange() <= 0\n || bounds.getZRange().getRange() <= 0)\n return;\n\n //System.out.println(\"Will zoom to \" + bounds);\n\n // Crop and zoom\n if (allowCrop) {\n boolean includeLimits = false; // to avoid inacurrate box scale\n getChart().getScene().getGraph().setClipBox(bounds, includeLimits, false);\n }\n view.setBoundsManual(bounds);\n\n\n }\n\n }", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "@Override\n\t\t\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\t\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }", "public void setMouseLocation(int mapX, int mapY) {\n\n if (!map.canSelectPoint(mapX, mapY)) {\n return;\n }\n\n if (hoverX == mapX && hoverY == mapY) {\n return;\n }\n\n hoverX = mapX;\n hoverY = mapY;\n\n selectionChanged = true;\n }", "public void mouseMoved() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isHovered = true;\n\t\t}else {\n\t\t\tthis.isHovered = false;\n\t\t}\n\t}", "@Override\n public void onMouseMove(int xDelta, int yDelta, float xPos, float yPos) {\n mouseXPos = xPos;\n mouseYPos = yPos;\n\n if (isBeingRotated) {\n float angle = -xDelta * ROTATION_MODIFIER;\n eyeOffset.rotateZ(angle);\n\n } else if (isBeginMoved) {\n // x movement\n Vector3f eyeDir = new Vector3f(eyeOffset);\n eyeDir.mul(xDelta * DRAG_MODIFIER).cross(getUpVector());\n focus.add(eyeDir.x, eyeDir.y, 0);\n\n // y movement\n eyeDir.set(eyeOffset).mul(yDelta * DRAG_MODIFIER);\n focus.sub(eyeDir.x, eyeDir.y, 0);\n }\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\ttileX = arg0.getX() / 36;\r\n\t\ttileY = arg0.getY() / 36;\r\n\t\trepaint();\r\n\t}", "public void mouseMoved(MouseEvent e){\n int x1=(e.getX()-MARGIN+GRID_SPAN/2)/GRID_SPAN;\r\n int y1=(e.getY()-MARGIN+GRID_SPAN/2)/GRID_SPAN;\r\n //Can't set chess when gameover, pos outside of board or position(x1,y1) already occupied. \r\n //if not valid, set cursor to default.\r\n if(x1<0||x1>ROWS||y1<0||y1>COLS||gameOver||findChess(x1,y1))\r\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n //if valid, set cursor to hand\r\n else setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\r\n }", "public void mouseMoved( MouseEvent event )\n\t {\n\t \t /*\n\t \t * Change one unit into pixels sx = width/(b-a)\n\t \t * X = (x-a)*sx\n\t \t * \n\t \t * sy = height/(ymax - ymin)\n\t \t * Y1 = height - (y-ymin)*sy\n\t \t * Y2 = (ymax-y)*sy\n\t \t * Y1=Y2(same expression)\n\t \t */\n\t \t double b = InputView.getEnd();\n\t \t\t double a = InputView.getStart();\n\t \t DecimalFormat df = new DecimalFormat(\"#.##\");\n\t \t double sx = 594/(b-a);\n\t \t double sy = 572/(PlotPoints.getMax()-PlotPoints.getMin());\n\t \t coords.setText( \"(\"+ df.format((event.getX()/sx)+a-.02) + \", \" + df.format((.17 + PlotPoints.getMax()) - (event.getY()/sy)) + \")\" );\n\t }", "@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setPosition(Mouse.worldCoordinates.copy());//.sub(SelectionTypeState.mouseClickWorldPosition).add(SelectionTypeState.colliderPositions.get(cnt)));\n\t\t\t}\n\t\t}", "void mouseReleased(double x, double y, MouseEvent e );", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }", "@Override\r\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\r\n\t}", "public void setBounds(Rectangle2D aRect)\n{\n setBounds(aRect.getX(), aRect.getY(), aRect.getWidth(), aRect.getHeight());\n}", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "public void updateCoordinates(MouseEvent mouse, Rectangle2D.Float environment) {\n\t\tboolean validDragging = false; // limits the user when dragging an object\n\t\tString[] tokens = LiquidApplication.getGUI().getFileVariables().getObjects().get(\n\t\t\t\tLiquidApplication.getGUI().getFileVariables().getSelectedObject()).split(\" \");\n\t\t\n\t\t// allows objects to go slightly out of the environment, without consequence\n \tif ((tokens[0].equals(GlobalVariables.ObjectType.Rectangle.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Circle.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Rectangle_Drain.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Circle_Drain.toString())) &&\n \t\t\t((initialX+mouse.getX()) > (9-Float.parseFloat(tokens[3]))) &&\n \t\t\t((initialY+mouse.getY()) > (9-Float.parseFloat(tokens[4]))) &&\n \t\t\t((initialX+mouse.getX()) < (environment.width-9)) &&\n\t\t\t\t((initialY+mouse.getY()) < (environment.height-9)))\n \t\tvalidDragging = true;\n\t\t\n \t// ensures the objects remain inside the environment to avoid any consequences\n \tif ((tokens[0].equals(GlobalVariables.ObjectType.Flowmeters.toString()) ||\n \t\t\ttokens[0].equals(GlobalVariables.ObjectType.Breakpoints.toString())) &&\n \t\t\t((initialX+mouse.getX()) > -1) &&\n \t\t\t((initialY+mouse.getY()) > -1) &&\n \t\t\t((initialX+mouse.getX()) < (environment.width-Float.parseFloat(tokens[3])+1)) &&\n \t\t\t((initialY+mouse.getY()) < (environment.height-Float.parseFloat(tokens[4])+1)))\n \t\tvalidDragging = true;\n \t\n \t// ensures the source's X-/Y-Forces also remain inside the environment\n \tif (tokens[0].equals(GlobalVariables.ObjectType.Sources.toString()) &&\n \t\t\t((initialX+mouse.getX()) > -1) &&\n \t\t\t((initialY+mouse.getY()) > -1) &&\n \t\t\t((initialX+mouse.getX() < (environment.width-Float.parseFloat(tokens[3])-9))) &&\n \t\t\t((initialY+mouse.getY() < (environment.height-Float.parseFloat(tokens[4])-9))))\n \t\tvalidDragging = true;\n \t\n \t// when requirements are met for a certain object, new X-/Y-Coordinates get added to the\n \t// object's original list of parameters, with the other parameters remaining constant\n\t\tif (validDragging) {\n\t\t\tString newInfo = tokens[0]+\" \"+(initialX+mouse.getX())+\" \"+(initialY+mouse.getY())+\" \";\n\t\t\tfor (int i = 3; i < tokens.length; i++)\n\t\t\t\tnewInfo += tokens[i]+\" \";\n\t\t\t\n\t\t\tLiquidApplication.getGUI().getFileVariables().getObjects().set(\n\t\t\t\t\tLiquidApplication.getGUI().getFileVariables().getSelectedObject(),newInfo);\n\t\t\tvalidDragging = false;}\n\t}", "@Override public boolean mouseMoved (int screenX, int screenY) {\n\t\treturn false;\n\t}", "protected boolean avoidNegativeCoordinates() {\n \t\treturn false;\n \t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public Point2d(double x, double y) {\r\n\t\t this.xCoord = x;\r\n\t\t this.yCoord = y;\r\n\t }", "public void mouseMoved(MouseEvent e) {\n mX=e.getX();\n mY=e.getY();\n }", "@Override\n public void mouseEntered(PInputEvent event) {\n \tif (currentListener instanceof DistanceTool) {\n PGISCanvas.this.setCursor(((MapTool) currentListener).getCursor());\n } \n \telse {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n }", "private void draggedWay(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n wayTool.setSeccondPoint(e.getPoint());\r\n }\r\n }", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY)\n\t{\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mouseMoved(int screenX, int screenY) {\n\t\treturn false;\n\t}", "@Override\n public void mouseReleased(MapEventMouse e) {\n if (SwingUtilities.isLeftMouseButton(e)) {\n isDragging = false;\n end = e.getPoint();\n endCoordinate = e.getLocation();\n Envelope box = new DefaultEnvelope();\n if (startCoordinate != null) {\n box.expandToInclude(startCoordinate);\n box.expandToInclude(endCoordinate);\n }\n box = Mercator.toMerc(box);\n this.fireBeforeSelect(e);\n boolean changed = false;\n for (Layer<?> layer : e.getMap().getContent().getLayers()) {\n if (!layer.isSelectable()) {\n continue;\n }\n boolean layerChanged;\n if (e.isControlDown()) {\n layerChanged = layer.invertSelection(e, box);\n } else {\n layerChanged = layer.select(e, box);\n }\n if (layerChanged) {\n changed = true;\n }\n }\n e.getMap().getContent().paintImmediately();\n e.getMap().repaint();\n this.fireAfterSelect(e);\n e.setHandled(changed);\n }\n }", "@Override\n\tpublic void SetCoord(double x, double y) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tint x = arg0.getX();\r\n\t\tint y = arg0.getY();\r\n\t\t\r\n\t\t//send mouse x and y to the justin object's collision mode\r\n\t\tjustin.collided(x, y);\t\r\n\t\t//justin2.collided(x, y);\r\n\t\t//justin3.collided(x, y);\r\n\t\t\r\n\t}", "public final DragBounds setX2(final double x2)\n {\n m_jso.setX2(x2);\n\n return this;\n }", "@SuppressWarnings(\"unchecked\")\r\n public void mouseDragged(MouseEvent e) {\r\n // test if the mouse drags on a node, and make sure the node is in the displaying area(r=40)\r\n if(mode == InputMode.ADD_NODES && nodeUnderMouse != null\r\n && e.getX()>=40 && e.getY()>=40\r\n && e.getX()<=1460 && e.getY()<=860) {\r\n nodeUnderMouse.getData().setPosition(e.getPoint());\r\n canvas.repaint();\r\n }\r\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "public void drawOnCursor2d(StsGLPanel3d glPanel3d, int dirNo, float dirCoordinate,\n boolean axesFlipped, boolean xAxisReversed, boolean axisReversed)\n {\n }", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "public void mouseDragged(MouseEvent e) {\n\n try {\n dragEndScreen = e.getPoint();\n //Create a point2d.float with the\n Point2D.Float dragStart = transformPoint(dragStartScreen);\n Point2D.Float dragEnd = transformPoint(dragEndScreen);\n //calculate how far the screen is dragged from its start position.\n double dx = dragEnd.getX() - dragStart.getX();\n double dy = dragEnd.getY() - dragStart.getY();\n transform.translate(dx, dy);\n\n //remember to reposition points to avoid unstable dragging.\n dragStartScreen = dragEndScreen;\n dragEndScreen = null;\n repaint();\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tx=y=-1;\r\n\t\t\t}", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "public Point2Dd (int x, int y){\r\n this.x = (double)x;\r\n this.y = (double)y;\r\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//inverted.invert();\n\t\t\t\t\t//Point2D point = inverted.transform(new Point2D.Double(e.getX(), e.getY()), null);\n\t\t\t\t\t//inverted.setToTranslation((double)e.getX(), (double)e.getY());\n\t\t\t\t\tPoint2D p = transform.inverseTransform(new Point2D.Double(e.getX() - panOrigin.getX(), e.getY() - panOrigin.getY()), null);\n\t\t\t\t\ttransform.translate(p.getX(), p.getY());\n\t\t\t\t\trevalidate();\n\t\t\t\t\trepaint();\n\t\t\t\t\tpanOrigin.setLocation(e.getX(), e.getY());\n\t\t\t\t\tSystem.out.printf(\"%f, %f\\n\", p.getX(), p.getY());\n\t\t\t\t} catch (NoninvertibleTransformException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public BoardPos decodeMouse(double mouseX, double mouseY) {\n if (mouseX > startX && mouseY > startY && mouseX < startX + sideLength &&\n mouseY < startY + sideLength) // range check\n return new BoardPos( (int)((mouseX - startX) / unitLength),\n (int)((mouseY - startY) / unitLength ));\n else return null;\n }", "public Point2Dd (double x, double y){\r\n this.x = x;\r\n this.y = y;\r\n }", "public void mouseDragged(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }", "void mouseDragged(double x, double y, MouseEvent e );" ]
[ "0.61429113", "0.58553463", "0.57849705", "0.572527", "0.56681347", "0.55007166", "0.55006814", "0.54938376", "0.5460428", "0.5455499", "0.5431558", "0.5416564", "0.54134506", "0.5397975", "0.53892183", "0.53844225", "0.53577137", "0.5351752", "0.5341253", "0.5341253", "0.5320319", "0.5284267", "0.52822834", "0.527886", "0.5244734", "0.5243629", "0.5239911", "0.5237554", "0.5231148", "0.52285373", "0.52246493", "0.5219235", "0.5217975", "0.521523", "0.52121305", "0.5205754", "0.52026975", "0.5201295", "0.5194115", "0.5194096", "0.5188033", "0.51869375", "0.51838404", "0.5180125", "0.5175834", "0.5173672", "0.5173672", "0.51680243", "0.51658916", "0.516254", "0.51491123", "0.5145667", "0.51456296", "0.51437795", "0.51422167", "0.5132388", "0.51259375", "0.5122832", "0.51134944", "0.51111674", "0.51100576", "0.51031", "0.5094905", "0.5089236", "0.50870425", "0.5086841", "0.5082965", "0.5082662", "0.5073787", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.50721663", "0.5063748", "0.5061834", "0.5045169", "0.504061", "0.5040511", "0.50402385", "0.5038495", "0.50338244", "0.5033672", "0.5033134", "0.5032334", "0.5032334", "0.5029791", "0.50292224", "0.5028313", "0.5008454", "0.5006095", "0.49998993" ]
0.5191333
40
TRIGGER SLAVE THREAD Handles toggle between mouse rotation/auto rotation: doubleclick starts the animated rotation, while simple click stops it.
protected boolean handleSlaveThread(MouseEvent e) { if (AWTMouseUtilities.isDoubleClick(e)) { if (threadController != null) { threadController.start(); return true; } } if (threadController != null) threadController.stop(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cameraRotation() throws InterruptedException {\n\t\tint lowSide = (int)random(1,4);\r\n\t\tint highSide = (int)random(5,10);\r\n\t\tint medLowSide = (int)random(10,15);\r\n\t\tint medHighSide = (int)random(35,60);\r\n\t\tint highLowSide = (int)random(70,100);\r\n\t\tint highHighSide = (int)random(200,300);\r\n\t\tint cameraRotRandom = (int)random(0,1000);\r\n\t\tint cameraAngle = (int)camera.getPitchAngle(); // did we want to do anything with this?\r\n\t\t\r\n\t\t// twitch\r\n\t\tif (cameraRotRandom <= 200) {\r\n\t\t\t//log(\"antiban, move camera, twitch\");\r\n\t\t\tint twitchRandom = (int)random(1,4);\r\n\t\t\t\r\n\t\t\tif (twitchRandom == 1) {\r\n\t\t\t\tcamera.movePitch(random(lowSide,highSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (twitchRandom == 2) {\r\n\t\t\t\tcamera.moveYaw(random(lowSide,highSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tif(random(0,3) == 1) {\r\n\t\t\t\t\tcamera.moveYaw((random(lowSide,highSide)));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.movePitch((random(lowSide,highSide)));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tcamera.movePitch(random(lowSide,highSide));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.moveYaw((random(lowSide,highSide)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// medium movements\r\n\t\t\r\n\t\telse if (cameraRotRandom <= 900) {\r\n\t\t\t//log(\"antiban, move camera, medium\");\r\n\t\t\tint medtwitchRandom = (int)random(1,4);\r\n\t\t\t\r\n\t\t\tif (medtwitchRandom == 1) {\r\n\t\t\t\tcamera.movePitch(random(medLowSide,medHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (medtwitchRandom == 2) {\r\n\t\t\t\tcamera.moveYaw(random(medLowSide,medHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tif(random(0,3) == 1) {\r\n\t\t\t\t\tcamera.moveYaw((random(medLowSide,medHighSide)));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.movePitch((random(medLowSide,medHighSide)));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tcamera.movePitch(random(medLowSide,medHighSide));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.moveYaw((random(medLowSide,medHighSide)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// complete rotations\r\n\t\t\r\n\t\telse if (cameraRotRandom <= 1000) {\r\n\t\t\t//log(\"antiban, move camera, long rotation\");\r\n\t\t\tint hightwitchRandom = (int)random(1,4);\r\n\t\t\t\r\n\t\t\tif (hightwitchRandom == 1) {\r\n\t\t\t\tcamera.movePitch(random(highLowSide,highHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (hightwitchRandom == 2) {\r\n\t\t\t\tcamera.moveYaw(random(highLowSide,highHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tif(random(0,3) == 1) {\r\n\t\t\t\t\tcamera.moveYaw((random(highLowSide,highHighSide)));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.movePitch((random(highLowSide,highHighSide)));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tcamera.movePitch(random(highLowSide,highHighSide));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.moveYaw((random(highLowSide,highHighSide)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tlog(\"something went wrong with antiban camera rotation\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void cameraRotation() throws InterruptedException {\n\t\tint lowSide = (int)random(1,4);\r\n\t\tint highSide = (int)random(5,10);\r\n\t\tint medLowSide = (int)random(10,15);\r\n\t\tint medHighSide = (int)random(35,60);\r\n\t\tint highLowSide = (int)random(70,100);\r\n\t\tint highHighSide = (int)random(200,300);\r\n\t\tint cameraRotRandom = (int)random(0,1000);\r\n\t\t//int cameraAngle = (int)camera.getPitchAngle(); // did we want to do anything with this?\r\n\t\t\r\n\t\t// twitch\r\n\t\tif (cameraRotRandom <= 200) {\r\n\t\t\t//log(\"antiban, move camera, twitch\");\r\n\t\t\tint twitchRandom = (int)random(1,4);\r\n\t\t\t\r\n\t\t\tif (twitchRandom == 1) {\r\n\t\t\t\tcamera.movePitch(random(lowSide,highSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (twitchRandom == 2) {\r\n\t\t\t\tcamera.moveYaw(random(lowSide,highSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tif(random(0,3) == 1) {\r\n\t\t\t\t\tcamera.moveYaw((random(lowSide,highSide)));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.movePitch((random(lowSide,highSide)));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tcamera.movePitch(random(lowSide,highSide));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.moveYaw((random(lowSide,highSide)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// medium movements\r\n\t\t\r\n\t\telse if (cameraRotRandom <= 900) {\r\n\t\t\t//log(\"antiban, move camera, medium\");\r\n\t\t\tint medtwitchRandom = (int)random(1,4);\r\n\t\t\t\r\n\t\t\tif (medtwitchRandom == 1) {\r\n\t\t\t\tcamera.movePitch(random(medLowSide,medHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (medtwitchRandom == 2) {\r\n\t\t\t\tcamera.moveYaw(random(medLowSide,medHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tif(random(0,3) == 1) {\r\n\t\t\t\t\tcamera.moveYaw((random(medLowSide,medHighSide)));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.movePitch((random(medLowSide,medHighSide)));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tcamera.movePitch(random(medLowSide,medHighSide));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.moveYaw((random(medLowSide,medHighSide)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// complete rotations\r\n\t\t\r\n\t\telse if (cameraRotRandom <= 1000) {\r\n\t\t\t//log(\"antiban, move camera, long rotation\");\r\n\t\t\tint hightwitchRandom = (int)random(1,4);\r\n\t\t\t\r\n\t\t\tif (hightwitchRandom == 1) {\r\n\t\t\t\tcamera.movePitch(random(highLowSide,highHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (hightwitchRandom == 2) {\r\n\t\t\t\tcamera.moveYaw(random(highLowSide,highHighSide));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tif(random(0,3) == 1) {\r\n\t\t\t\t\tcamera.moveYaw((random(highLowSide,highHighSide)));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.movePitch((random(highLowSide,highHighSide)));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tcamera.movePitch(random(highLowSide,highHighSide));\r\n\t\t\t\t\tsleep(random(100,300));\r\n\t\t\t\t\tcamera.moveYaw((random(highLowSide,highHighSide)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tlog(\"something went wrong with antiban camera rotation\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void target()\n {\n if(noRotation == false)\n {\n if(timer % 3 == 0)\n {\n int currentRotation = getRotation();\n turnTowards(xMouse, yMouse);\n int newRotation = getRotation();\n if (Math.abs(currentRotation-newRotation) > 180)\n {\n if (currentRotation < 180) currentRotation += 360;\n else newRotation += 360;\n }\n if(currentRotation != newRotation)\n { \n setRotation(currentRotation+direction()*8);\n }\n }\n }\n }", "private void rightBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rightBtnActionPerformed\n if (rotateL == 0) {\n rotateL = 1;\n r.stop();\n l.start();\n } else {\n rotateL = 0;\n l.stop();\n }\n\n }", "public void mouseClickedDown(Point2d worldCoord) {\n logger.debug(\"rotate mouseClickedDown, initializing rotation\");\n rotationCenter = null;\n selection = super.chemModelRelay.getRenderer().getRenderer2DModel()\n .getSelection();\n \n if ( selection == null \n ||!selection.isFilled()\n || selection.getConnectedAtomContainer() == null\n || selection.getConnectedAtomContainer().getAtomCount()==0) {\n \n /*\n * Nothing selected- return. Dragging the mouse will not result in\n * any rotation logic.\n */\n logger.debug(\"Nothing selected for rotation\");\n selectionMade = false;\n return;\n \n } else {\n rotationPerformed = false;\n //if we are outside bounding box, we deselect, else\n //we actually start a rotation.\n Rectangle2D bounds = BoundsCalculator.calculateBounds(this.chemModelRelay.getRenderer().getRenderer2DModel().getSelection().getConnectedAtomContainer());\n \n rotationAngle = 0.0;\n selectionMade = true;\n \n /* Keep original coordinates for possible undo/redo */\n atomCoordsMap = new HashMap<IAtom, Point2d[]>();\n for (IAtom atom : selection.getConnectedAtomContainer().atoms()) {\n Point2d[] coordsforatom = new Point2d[2];\n coordsforatom[1] = atom.getPoint2d();\n atomCoordsMap.put(atom, coordsforatom);\n }\n \n /*\n * Determine rotationCenter as the middle of a region defined by\n * min(x,y) and max(x,y) of coordinates of the selected atoms.\n */\n IAtomContainer selectedAtoms = \n selection.getConnectedAtomContainer();\n \n \n Double upperX = null, lowerX = null, upperY = null, lowerY = null;\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n if (upperX == null) {\n upperX = selectedAtoms.getAtom(i).getPoint2d().x;\n lowerX = upperX;\n upperY = selectedAtoms.getAtom(i).getPoint2d().y;\n lowerY = selectedAtoms.getAtom(i).getPoint2d().y;\n } else {\n double currX = selectedAtoms.getAtom(i).getPoint2d().x;\n if (currX > upperX)\n upperX = currX;\n if (currX < lowerX)\n lowerX = currX;\n \n double currY = selectedAtoms.getAtom(i).getPoint2d().y;\n if (currY > upperY)\n upperY = currY;\n if (currY < lowerY)\n lowerY = currY;\n }\n }\n rotationCenter = new Point2d();\n rotationCenter.x = (upperX + lowerX) / 2;\n rotationCenter.y = (upperY + lowerY) / 2;\n logger.debug(\"rotationCenter \" \n + rotationCenter.x + \" \"\n + rotationCenter.y);\n \n /* Store the original coordinates relative to the rotation center.\n * These are necessary to rotate around the center of the\n * selection rather than the draw center. */\n startCoordsRelativeToRotationCenter = new Point2d[selectedAtoms\n .getAtomCount()];\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n Point2d relativeAtomPosition = new Point2d();\n relativeAtomPosition.x = selectedAtoms.getAtom(i).getPoint2d().x\n - rotationCenter.x;\n relativeAtomPosition.y = selectedAtoms.getAtom(i).getPoint2d().y\n - rotationCenter.y;\n startCoordsRelativeToRotationCenter[i] = relativeAtomPosition;\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tsuppressed = false;\n\t\t//if (Settings.motorAAngle == -90) Settings.motorAAngle = -95;\n\n\t\tMotor.A.rotateTo(Settings.motorAAngle, true);\n\n\t\twhile (Motor.A.isMoving() && !Motor.A.isStalled() && !suppressed);\t\t\t\n\t\t\n\t\tMotor.A.stop();\n\t}", "@Override\n public void act(float delta)\n {\n SCALE = PlayScreen.scale;\n\n if(actCount < 4)actCount++;\n\n dt=delta;\n if(!initialized)\n {\n mirror.setRotation(initRotation);\n\n dt = delta;\n positionChanged();\n\n if (hittime > (1.0 / 5.0))\n {\n if (hit >= 0) hit--;\n hittime = 0;\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n //setOrigin(mirror.getOriginX(), mirror.getOriginY());\n }\n\n if(initialized && hit>0)\n {\n positionChanged();\n\n if(hittime>=(1.0/5.0))\n {\n if(hit>0)hit--;\n hittime = 0;\n if (hit == 0)\n {\n\n //Set rotation to the nearest multiple of 90\n mirror.setRotation(90 * (Math.round(mirror.getRotation() / 90)));\n\n if (mirror.getRotation() >= 360)\n {\n mirror.setRotation(((mirror.getRotation() - 360 * (int) (mirror.getRotation() / 360)) / 90) * 90);\n }\n\n //setRotation(mirror.getRotation());\n }\n }\n\n }\n\n //Handles fading in/out of obstacle when triggered by a Toggle object\n if(fadeIn || fadeOut)\n {\n if(fadeIn)\n {\n if(mirror.getColor().a <0.95f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a + 1 * delta * 8 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, 1f);\n fadeIn = false;\n fadeOut = false;\n }\n }\n else\n {\n if(mirror.getColor().a >= 0.39f)\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, mirror.getColor().a - 1 * delta * 15 / 4.0f);\n }\n else\n {\n mirror.setColor(mirror.getColor().r, mirror.getColor().g, mirror.getColor().b, Toggle.fadealpha);\n fadeIn = false;\n fadeOut = false;\n }\n }\n }\n\n\n\n\n if(!initialized)\n {\n initialized = true;\n }\n\n if(actCount<4){defineBody(); calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n if(poly.getRotation() != mirror.getRotation()){calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());}\n\n super.act(delta);\n }", "protected EventHandler<MouseEvent> enableRotation() {\n EventHandler<MouseEvent> mouseLocationHandler = new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n rotationIsValide = true;\n event.consume();\n }\n };\n return mouseLocationHandler;\n }", "private void leftBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_leftBtnActionPerformed\n if (rotateR == 0) {\n rotateR = 1;\n\n l.stop();\n r.start();\n } else {\n rotateR = 0;\n r.stop();\n }\n }", "public void startRotate()\n {\n rotateAroundYAxis(miniEarth).play();\n }", "public void mouseDrag(Point2d worldCoordFrom, Point2d worldCoordTo) {\n \n if (selectionMade) {\n rotationPerformed=true;\n /*\n * Determine the quadrant the user is currently in, relative to the\n * rotation center.\n */\n int quadrant = 0;\n if ((worldCoordFrom.x >= rotationCenter.x))\n if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 1; // 12 to 3 o'clock\n else\n quadrant = 2; // 3 to 6 o'clock\n else if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 4; // 9 to 12 o'clock\n else\n quadrant = 3; // 6 to 9 o'clock\n \n /*\n * The quadrant and the drag combined determine in which direction\n * the rotation will be done. For example, dragging in direction\n * left/down in quadrant 4 means rotating counter clockwise.\n */\n final int SLOW_DOWN_FACTOR=4;\n switch (quadrant) {\n case 1:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 2:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 3:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n case 4:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n }\n \n /* For more info on the mathematics, see Wiki at \n * http://en.wikipedia.org/wiki/Coordinate_rotation\n */\n double cosine = java.lang.Math.cos(rotationAngle);\n double sine = java.lang.Math.sin(rotationAngle);\n for (int i = 0; i < startCoordsRelativeToRotationCenter.length; i++) {\n double newX = (startCoordsRelativeToRotationCenter[i].x * cosine)\n - (startCoordsRelativeToRotationCenter[i].y * sine);\n double newY = (startCoordsRelativeToRotationCenter[i].x * sine)\n + (startCoordsRelativeToRotationCenter[i].y * cosine);\n \n Point2d newCoords = new Point2d(newX + rotationCenter.x, newY\n + rotationCenter.y);\n \n selection.getConnectedAtomContainer().getAtom(i).setPoint2d(\n newCoords);\n }\n }\n chemModelRelay.updateView();\n }", "@Override \n public void handle(ActionEvent arg0) {\n rotate.pause(); \n }", "@Override\n public void run() {\n Toast.makeText(DirectorsCut.this, \"Camera Animation\",\n Toast.LENGTH_SHORT).show();\n animateYaw(0.0f, 2000);\n\n }", "public void setRotation(){\n\t\t\tfb5.accStop();\n\t\t\twt.turning = true;\n\t\t\tif(state == BotMove.RIGHT_15){\n\t\t\t\tfb5.turnRightBy(6);\n\t\t\t\tangle = (angle+360-20)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.RIGHT_10){\n\t\t\t\tfb5.turnRightBy(3);\n\t\t\t\tangle = (angle+360-10)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT_5){\n\t\t\t\tfb5.turnLeftBy(2);\n\t\t\t\tangle = (angle+360+5)%360;\n\t\t\t}\n\t\t}", "private void rotate(final MouseEvent event) {\r\n\r\n\t\t// reset transform3D\r\n\t\tthis.rotation.rotY(0);\r\n\r\n\t\t// rotate around y-axis\r\n\t\tif (super.x_last - event.getPoint().x > 0) {\r\n\t\t\t// rotate leftwards\r\n\t\t\tthis.rotation.rotY(this.angle);\r\n\t\t} else {\r\n\t\t\t// rotate rightwards\r\n\t\t\tthis.rotation.rotY(-this.angle);\r\n\t\t}\r\n\r\n\t\t// apply rotation\r\n\t\tsuper.transformGroup.getTransform(this.transform);\r\n\t\tthis.transform.mul(this.rotation);\r\n\t\tsuper.transformGroup.setTransform(this.transform);\r\n\t}", "@Override\n public void robotInit() {\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n \n left_motor_1= new CANSparkMax(2,MotorType.kBrushless);\n left_motor_2=new CANSparkMax(3,MotorType.kBrushless);\n right_motor_1=new CANSparkMax(5,MotorType.kBrushless);\n right_motor_2=new CANSparkMax(6,MotorType.kBrushless);\n ball_collection_motor=new CANSparkMax(4,MotorType.kBrushless);\n left_high_eject=new CANSparkMax(1, MotorType.kBrushless);\n right_high_eject=new CANSparkMax(7,MotorType.kBrushless);\n left_belt=new TalonSRX(9);\n right_belt=new TalonSRX(11);\n left_low_eject=new TalonSRX(8);\n right_low_eject=new TalonSRX(12);\n double_solenoid_1=new DoubleSolenoid(0,1);\n joystick=new Joystick(1);\n servo=new Servo(0);\n if_correted=false;\n xbox_controller=new XboxController(0);\n servo_angle=1;\n eject_speed=0;\n go_speed=0;\n turn_speed=0;\n high_eject_run=false;\n clockwise=false;\n left_motor_1.restoreFactoryDefaults();\n left_motor_2.restoreFactoryDefaults();\n right_motor_1.restoreFactoryDefaults();\n right_motor_2.restoreFactoryDefaults();\n \n left_motor_2.follow(left_motor_1);\n right_motor_1.follow(right_motor_2);\n servo.set(0);\n currentServoAngle = 0;\n factor = 0.01;\n pushed = false;\n //right_high_eject.follow(left_high_eject);\n //right_low_eject.follow(left_low_eject);\n\n }", "protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }", "public void rotateLeft (View view){ //onClick for LEFT Button\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(-90f).setDuration(50); //turn toy robot LEFT\n\n rotateLeft--; //counter to determine orientation\n System.out.println(\"rotateLeft \" + rotateLeft);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight)); //chk params in Logs\n\n } else errorMessage(\"Please place toy robot\");\n }", "public void handle(ActionEvent ae) {\n angle += 15.0; \n \n rotate.setAngle(angle); \n rotate.setPivotX(btnRotate.getWidth()/2); \n rotate.setPivotY(btnRotate.getHeight()/2); \n }", "public void toggleGrab(){\n \tif (isClosed == true){\n \t\ttriggerTimer.reset();\n \t\tisClosed = false;\n \t\tClawAct.set(false);\n \t\tRobot.oi.armRumble(RUMBLE_DURATION);\n\n \t} else {\n \t\tisClosed = true;\n \t\tClawAct.set(true);\n \t\tRobot.oi.armRumble(RUMBLE_DURATION);\n\n \t}\n }", "public void run ()\n\t{\n\t\tif (ballDetected())\n\t\t{\n\t\t\t//findColor();\n\t\t\t\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL\n\t\t\tmainRightMotor.rotate(-30,false);\n\t\t\t\n\t\t\t//turn and move forward to grab the ball\n\t\t\tmainLeftMotor.rotate(-90,true);\n\t\t\tmainRightMotor.rotate(90,false);\n\t\t\tmainLeftMotor.rotate(360, true);\n\t\t\tmainRightMotor.rotate(360,false);\n\t\t\t\n\t\t\t//V2.0 for BallGrab_V2.0\n\t\t\tmotorSetSpeeds(loweringSpeed,loweringSpeed);\n\t\t\tleftMotor.rotate(110,true);\n\t\t\trightMotor.rotate(110,false);\n\n\t\t\t//V1.0 for BallGrab_V1.0\n\t\t\tgrabMotor.setSpeed(speed);\n\t\t\tgrabMotor.rotate(50);\n\t\t\tgrabMotor.rotate(-45);\n\t\t\tgrabMotor.rotate(45);\n\t\t\t\n\t\t\t//hold the ball at a rather vertical angle\n\t\t\tmotorSetSpeeds(holdingSpeed,holdingSpeed);\n\t\t\tleftMotor.rotate(-11,true);\n\t\t\trightMotor.rotate(-110,false);\n\t\t\t\n\t\t}\n\t\t\n\t\t//use navigation class to navigate to the designated area, then shoot \n\t\t\n\t\t//V2.0 for BallGrab_V2.0\n/*\t\tleftMotor.setAcceleration(acceleration);\n\t\trightMotor.setAcceleration(acceleration);\n\t\tleftMotor.setSpeed(forwardSpeed);\n\t\trightMotor.setSpeed(forwardSpeed);*/\n\t\tgrabMotor.rotate(-10);\n\t}", "@Override\n\tpublic void run() {\n\t\t// what angle you're at right now\n\t\tmCurrentAngle = mNavigation.getHeadingInDegrees(); \t\t\n\t\tdouble turn;\n\t\t\n\t\tif (!onTarget()) { //if just angle is not on target\n\t\t\tturn = super.calculate(mCurrentAngle - mGoalAngle);\n\t\t\tmDrive.setSpeedTurn(mSpeed, turn);\n\t\t} else // else just drive straight\n\t\t\tmDrive.setSpeedTurn(mSpeed, 0.0);\t\n\t}", "protected void execute() {\n\t//\tif (Math.abs(Robot.launcher.getDegrees()) < 5.5) {\n\t\t\tif (up)\n\t\t\t\tRobot.launcher.tiltDown();\n\t\t\telse\n\t\t\t\tRobot.launcher.tiltUp();\n//\t\t} else {\n//\t\t\tLog.warn(\"Turret rotated too much to tilt\");\n//\t\t\tend();\n//\t\t}\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\t\tcounter++;\r\n\t\t\t\tif(rdbtnLeapMotion.isSelected()){\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Leap Motion radio button is selected and the click count is 1 \r\n\t\t\t\t\t\tthen set button text to \"Disconnect\", connect to the Leap Motion \r\n\t\t\t\t\t\tand to the Crazyflie throught the LeapControl class\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tleapControl.connectToCrazyflie(data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t/*If it's the second click then set button text back to \"Connect\", \r\n\t\t\t\t\t\tdisconnect from the LeapControl class and reset counter to 0\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tleapControl.disconnectFromCrazyflie();\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Gamepad radio button is selected and the counter is 1\r\n\t\t\t\t\t\t * then set button text to \"Disconnect\" \r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tif(!gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\t//if the GamepadCotnrol thread is not alive then create GamepadControl object\r\n\t\t\t\t\t\t\tGamepadControl gpdCtrl = new GamepadControl(data,radio);\r\n\t\t\t\t\t\t\tgpdCtrl.setUI(LeapFlieUI.this);\r\n\t\t\t\t\t\t\tgamepadCtrl = new Thread(gpdCtrl);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//start the GamepadControl thread\r\n\t\t\t\t\t\tgamepadCtrl.start();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//if it's the second click then reset counter to 0 and interrupt the thread\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tif(gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\tgamepadCtrl.interrupt();\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}", "@Override\n public void run() {\n hdt.gyroTurn180Fast(1500);\n hdt.gyroTurn180(1100);\n //sleep(1300);\n }", "@Test\n public void testRotationLatency() throws Exception {\n if (isTracesEnabled()) {\n createTraceDirectory();\n }\n mDevice.wakeUp();\n for (int i = 0; i < mIterationCount; i++) {\n mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE,\n Settings.ACTION_SETTINGS));\n mDevice.waitForIdle();\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStart(mTraceCategoriesSet, mTraceBufferSize,\n mTraceDumpInterval, mRootTrace,\n String.format(\"%s-%d\", TEST_ROTATION_LATENCY, i));\n }\n\n IWindowManager wm = WindowManagerGlobal.getWindowManagerService();\n wm.freezeRotation(Surface.ROTATION_0);\n mDevice.waitForIdle();\n wm.freezeRotation(Surface.ROTATION_90);\n mDevice.waitForIdle();\n wm.thawRotation();\n mDevice.waitForIdle();\n\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStop();\n }\n }\n mDevice.pressHome();\n mDevice.waitForIdle();\n }", "public void actionPerformed(ActionEvent e)\n/* */ {\n/* */ \n/* */ \n/* 60 */ new Thread()\n/* */ {\n/* */ public void run()\n/* */ {\n/* 55 */ P2PAnalysisFrame.this.start.setEnabled(false);\n/* 56 */ P2PAnalysisFrame.this.init();\n/* 57 */ P2PAnalysisFrame.this.analysis();\n/* 58 */ P2PAnalysisFrame.this.start.setEnabled(true);\n/* */ }\n/* */ }.start();\n/* */ }", "@Override\n public void onRotationChanged(int rotation) {\n stateHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n rotationChanged();\n }\n }, ROTATION_LISTENER_DELAY_MS);\n }", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n Note nd = new Note(n.getPitchLetter(), n.getOctave(), fromTheLeft, fromTheLeft);\n Note noteToBeSelected = this.model.getOverlappedNote(nd);\n this.model.setSelectedNote(noteToBeSelected);\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n }", "public static void waltz() {\n //test code written by bokun: self rotation\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n leftMotor.forward();\n rightMotor.backward();\n }", "public void execute() {\n RobotContainer.drive.turnToAngle(this.angle, turnSpeed);\n }", "public void RotateRight(double speed, int distance) {\n // Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n sleep(500);\n\n robot2.DriveRightFront.setTargetPosition(0);\n robot2.DriveRightRear.setTargetPosition(0);\n robot2.DriveLeftFront.setTargetPosition(0);\n robot2.DriveLeftRear.setTargetPosition(0);\n\n // Set RUN_TO_POSITION\n\n robot2.DriveRightFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // Set Motor Power to 0\n robot2.DriveRightFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n\n\n double InchesMoving = (distance * COUNTS_PER_INCH);\n\n // Set Target to RotateRight\n robot2.DriveRightFront.setTargetPosition((int) -InchesMoving);\n robot2.DriveRightRear.setTargetPosition((int) -InchesMoving);\n robot2.DriveLeftRear.setTargetPosition((int) InchesMoving);\n robot2.DriveLeftFront.setTargetPosition((int) InchesMoving);\n\n while (robot2.DriveRightFront.isBusy() && robot2.DriveRightRear.isBusy() && robot2.DriveLeftRear.isBusy() && robot2.DriveLeftFront.isBusy()) {\n\n // wait for robot to move to RUN_TO_POSITION setting\n\n double MoveSpeed = speed;\n\n // Set Motor Power\n robot2.DriveRightFront.setPower(MoveSpeed);\n robot2.DriveRightRear.setPower(MoveSpeed);\n robot2.DriveLeftFront.setPower(MoveSpeed);\n robot2.DriveLeftRear.setPower(MoveSpeed);\n\n } // THis brace close out the while Loop\n\n //Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n\n robot2.DriveRightFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n }", "public void autoGrab(){\n \tif (getTrigger() == true){\n\t \tif(triggerTimer.get() >= TRIGGER_LOCKOUT){\n\t\t \tClawAct.set(true);\n\t\t \tisClosed = true;\n\t \t\tRobot.oi.armRumble(RUMBLE_DURATION);\n\t \t}\n \t}\n\n }", "@Override\n \t\t\t\tpublic void doRotateX() {\n \n \t\t\t\t}", "void setupPolygonRotate() {\n\t\trotationLockedToMouse = true;\n\t\t// polygonLockedToMouse = true;\n\t\tlockAnchor.set(anchor);\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].startRotating();\n\t}", "@Override\r\n\tpublic void handleObject() {\r\n\t\tfinished = false;\r\n\t\t//hand.setStallThreshold(5, 100);\r\n\r\n\t\tif (wheelDriver != null) {\r\n\t\t\twheelDriver.turn(Math.toRadians(30));\r\n\t\t}\r\n\r\n\t\thand.stop();\r\n\t\topenHand();\r\n\r\n\t\tif (wheelDriver != null) {\r\n\t\t\tarm.rotate(SWEEP_ROTATION);\r\n\t\t\twheelDriver.setSpeed(WheelDriver.SPEED_SLOW);\r\n\t\t\twheelDriver.turn(-Math.toRadians(45));\r\n\t\t\twheelDriver.setSpeed(WheelDriver.SPEED_NORMAL);\r\n\t\t\tarm.rotate(ARM_ROTATION - SWEEP_ROTATION);\r\n\t\t\twheelDriver.backward(2);\r\n\t\t} else {\r\n\t\t\tarm.rotate(ARM_ROTATION);\r\n\t\t}\r\n\r\n\t\thand.rotate(-100, true);\r\n\t\ttry {\r\n\t\t\tThread.sleep(WAIT_TIME);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\r\n\t\tif (wheelDriver != null) {\r\n\t\t\twheelDriver.backward(8);\r\n\t\t}\r\n\r\n\t\tarm.rotate(-ARM_ROTATION);\r\n\t\tarm.stop();\r\n\t\tarm.flt();\r\n\r\n\t\tfinished = true;\r\n\t}", "private static void norm3JS() {\n\n // Drive\n axLeftX.setAxis(leftJoystick, 0); //Mecanum (Arcade) Left/Right turn\n axLeftY.setAxis(leftJoystick, 1); //Mecanum (Arcade) Fwd/Bkwd\n axRightX.setAxis(rightJoystick, 0); //Mecanum Rotate orientation\n axRightY.setAxis(rightJoystick, 1); //unassigned\n\n btnGyroReset.setButton(rightJoystick, 6); // reset gyro to 0\n\n btnHoldLeft.setButton(rightJoystick, 4); //??\n btnHoldCenter.setButton(rightJoystick,3); //??\n btnHoldRight.setButton(rightJoystick, 5); //??\n \n // Gear\n btnPickupGear.setButton(coJoystick, 2); // Pickup gear off floor\n btnPlaceGear.setButton(coJoystick, 5); // Place gear on ship peg\n \n // Shooter\n btnShooter.setButton(coJoystick, 1); // Start shooter then feeder(s)\n btnAgitator.setButton(coJoystick, 3); // Agitate the ball bin\n \n // Climb\n btnClimber.setButton(coJoystick, 8); // Climber rotating\n \n }", "private void toggleLight(){\n\t\tmyGLView.queueEvent(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmRenderer.toggleLight();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@Override\n\tprotected void execute() {\n\t\tdouble speed = Robot.oi.getSpeed();\n\t\tdouble turn = Robot.oi.getTurn();\n\t\tdouble leftSpeed;\n\t\tdouble rightSpeed;\n\n\t\tif (Robot.oi.getGyroReset()) {\n\t\t\tRobot.chassisSubsystem.resetGyroHeading();\n\t\t}\n\n\t\tif (Robot.oi.getGyroCalibrate()) {\n\t\t\tRobot.chassisSubsystem.calibrateGyro();\n\t\t}\n\n\t\t/**\n\t\t * If the chassisSubsystem says that we should be in high gear, switch\n\t\t * to high gear, otherwise, switch to low gear.\n\t\t */\n\t\tif (Robot.oi.getGearShiftButton() >= 0.5) {\n\t\t\tRobot.chassisSubsystem.setGear(Gear.HIGH);\n\t\t} else {\n\t\t\tRobot.chassisSubsystem.setGear(Gear.LOW);\n\t\t}\n\n\t\t\n\n\t\t/**\n\t\t * If the user is not turning, then follow the gyro using the GoStraight\n\t\t * command.\n\t\t */\n\t\t/*\n\t\t * if (Math.abs(turn) < 0.03) { Scheduler.getInstance().add(new\n\t\t * GoStraightCommand(Robot.chassisSubsystem.getCurrentAngle())); return;\n\t\t * }\n\t\t */\n\n\t\t/*\n\t\t * double defaultValue = 0; Robot.chassisSubsystem.resetGyroHeading();\n\t\t * double angle = Robot.oi.table.getNumber(\"angle\", defaultValue);\n\t\t * System.out.println(angle);\n\t\t * \n\t\t * if(Robot.oi.getAlignShotButton()) { Scheduler.getInstance().add(new\n\t\t * PivotToAngleCommand(angle)); return; }\n\t\t */\n\n\n\t\tdouble targetCenterX = 0;\n\t\tif (Robot.oi.getAutoAlignShotButton() && targetCenterX != RobotMap.NO_VISION_TARGET) {\n\t\t\tScheduler.getInstance().add(new AlignAndShootHighShotCommand(MatchPeriod.TELEOP));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Robot.oi.getManualAlignShotButton()) {\n\t\t\tScheduler.getInstance().add(new AlignAndShootHighShotCommand(MatchPeriod.TELEOP));\n\t\t\treturn;\n\t\t}\n\n\t\t// Use the driver input to set the speed and direction.\n\t\tif (Math.abs(speed) < 0.03) {\n\t\t\tleftSpeed = turn / 2.0;\n\t\t\trightSpeed = -turn / 2.0;\n\t\t} else {\n\t\t\tleftSpeed = (turn < 0.0) ? speed * (1.0 + turn) : speed;\n\t\t\trightSpeed = (turn < 0.0) ? speed : speed * (1.0 - turn);\n\t\t}\n\n\t\tRobot.chassisSubsystem.setSpeed(leftSpeed, rightSpeed);\n\t}", "@Override\n public void runOpMode() throws InterruptedException{\n\n LeftWheel = hardwareMap.dcMotor.get(\"LeftWheel\");\n RightWheel = hardwareMap.dcMotor.get(\"RightWheel\");\n LLAMA = hardwareMap.dcMotor.get(\"LLAMA\");\n RightWheel.setDirection(DcMotor.Direction.REVERSE);\n beaconFlagSensor = hardwareMap.i2cDevice.get(\"color sensor\");\n LeftWheel.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RightWheel.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n buttonPusher = hardwareMap.servo.get(\"Button Pusher\");\n buttonPusher.setDirection(Servo.Direction.REVERSE);\n\n LeftWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n RightWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n LLAMA.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n beaconFlagReader= new I2cDeviceSynchImpl(beaconFlagSensor, I2cAddr.create8bit(0x3c), false);\n beaconFlagReader.engage();\n\n double PUSHER_MIN = 0;\n double PUSHER_MAX = 1;\n buttonPusher.scaleRange(PUSHER_MIN,PUSHER_MAX);\n\n if(beaconFlagLEDState){\n beaconFlagReader.write8(3, 0); //Set the mode of the color sensor using LEDState\n }\n else{\n beaconFlagReader.write8(3, 1); //Set the mode of the color sensor using LEDState\n }\n\n\n waitForStart();\n //Go forward to position to shoot\n long iniForward = 0;\n //Shoot LLAMA\n long shootLLAMA=0 ;\n //Turn towards Wall\n long turnToWall= 0;\n //Approach Wall\n long wallApproach= 0;\n //Correct to prepare for button\n long correctForButton= 0;\n long correctForButton2=0 ;\n //Use sensors to press button\n /** This is sensor*/\n //Go forward\n long toSecondButton= 0;\n //Use Sensors to press button\n /** This is sensor*/\n //turn to center\n\n //charge\n long chargeTime= 0;\n\n //Go forward to position to shoot\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(iniForward);\n\n STOP();\n\n //Shoot LLAMA\n LLAMA.setPower(1);\n\n sleep(shootLLAMA);\nSTOP();\n //Turn towards Wall\n LeftWheel.setPower(-1);\n RightWheel.setPower(1);\n\n sleep(turnToWall);\n\n STOP();\n //Approach Wall\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(wallApproach);\n\n STOP();\n //Correct to prepare for button\n\n LeftWheel.setPower(1);\n RightWheel.setPower(-1);\n\n sleep(correctForButton);\n\n STOP();\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(correctForButton2);\n\n STOP();\n topCache = beaconFlagReader.read(0x04, 1);\n //Use sensors to press button\n if ((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&(topCache[0] & 0xFF) <16) {\n while (((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&\n (topCache[0] & 0xFF) <16) && opModeIsActive()) {\n\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n sleep(100);\n LeftWheel.setPower(0);\n RightWheel.setPower(0);\n topCache = beaconFlagReader.read(0x04, 1);\n\n if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0){\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n break;\n }\n }\n\n }\n\n else if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0) {\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n }\n\n //Go forward\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(toSecondButton);\n\n STOP();\n //Use Sensors to press button\n topCache = beaconFlagReader.read(0x04, 1);\n //Use sensors to press button\n if ((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&(topCache[0] & 0xFF) <16) {\n while (((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&\n (topCache[0] & 0xFF) <16) && opModeIsActive()) {\n\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n sleep(100);\n LeftWheel.setPower(0);\n RightWheel.setPower(0);\n topCache = beaconFlagReader.read(0x04, 1);\n\n if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0){\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n break;\n }\n }\n\n }\n\n else if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0) {\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n }\n\n //turn to center\n\n\n //charge\n }", "@SuppressWarnings(\"incomplete-switch\")\n\tprivate void rotatingBehavior() {\n\t\tif (remainingSteps > 0) {\n\t\t\tremainingSteps--;\n\t\t} else {\n\t\t\tswitch (facing) {\n\t\t\t\tcase LEFT:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UP:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase RIGHT:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tremainingSteps = STEP_SIZE;\n\t\t}\n\t}", "private void canonMotion() {\n leftToRightAnimation(canon, 1000);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!clickable)\n canonMotion();\n }\n }, 2000);\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tif (angle < rightAngle) {\n\t\t\t\t\t\tangle++;\n\t\t\t\t\t\trightAngle = 110;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tangle--;\n\t\t\t\t\t\trightAngle = leftAngle;\n\t\t\t\t\t}\n\t\t\t\t\trepaint();\n\t\t\t\t}", "@Override\r\n public void teleopPeriodic() {\n if (m_stick.getRawButton(12)){\r\n TestCompressor.setClosedLoopControl(true);\r\n System.out.println(\"??\");\r\n } \r\n if (m_stick.getRawButton(11)) {\r\n TestCompressor.setClosedLoopControl(false);\r\n }\r\n //// fireCannon(Solenoid_1, m_stick, 8);\r\n //// fireCannon(Solenoid_2, m_stick, 10);\r\n //// fireCannon(Solenoid_3, m_stick, 12);\r\n //// fireCannon(Solenoid_4, m_stick, 7);\r\n //// fireCannon(Solenoid_5, m_stick, 9);\r\n //// fireCannon(Solenoid_6, m_stick, 11);\r\n\r\n // Logic to control trigering is inside\r\n // DO: Move the logic out here, makes more sense. \r\n fireTrio(topSolonoids, m_stick, 5);\r\n fireTrio(bottomSolonoids, m_stick, 6);\r\n\r\n // Make robit go\r\n double[] movementList = adjustJoystickInput(-m_stick.getY(), m_stick.getX(), m_stick.getThrottle());\r\n m_myRobot.arcadeDrive(movementList[0], movementList[1]);\r\n //System.out.println(m_gyro.getAngle());\r\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgetSprite().rotate(-5);\n\t\t\t\t\tempEffect = false;\n\t\t\t\t\tcustomMovement = false;\n\t\t\t\t\thitByEMP = false;\n\t\t\t\t}", "public void toggleAutoTick() { this.autoTickUnitSelection = this.autoTickUnitSelectionCheckBox.isSelected(); }", "public void doLocalization() {\n\t\t\n\t\t/*\tinstruction this class\n\t\t * drive to location listed in tutorial\n\t\t * \tstart rotating and clock all 4 gridlines\n\t\t * \tdo trig to compute (0,0) and 0 degrees\n\t\t * when done travel to (0,0) and turn to 0 degrees\n\t\t */\n\t\tint button_select;\n\t\tint current=0;\n\t\tint last=0;\n\t\tint diff ;\n\t\t\n\t\t// Setting up method variables and objects.\n\t\tBasicNavigator navigation = new BasicNavigator(odo);\n\t\t\n\t\t//array pos has the size of 3, index of 0,1,2\n\t\tdouble[] pos = new double[3];\n\t\t\n\t\t//array gridlines has the size of 5, from index of 0,1,2,3,4\n\t\tdouble[] gridlines = new double[5];\n\t\t\n\t\t// set up very thing to zero.\n\t\todo.setPosition(new double [] {0, 0, 0}, new boolean [] {true, true, true});\n\t\t\n\t\t// geting theta from from the odometer class\n\t\todo.getPosition(pos);\n\t\tcount = 0;\n\t\t\n\t\t// turn the robot Counter-clockwise\n\t\tnavigation.setSpeeds(-250, 250);\n\t\t\n\t\tdiff = lightreading();\n\t\twhile(rotate){\n\t\t\tcurrent = lightreading();\n\t\t\t\n\t\t\tdiff = last-current;\n\t\t\tif(diff >10){\n\t\t\t\t//Meaning the a grid line is detected. the color value for the wood is 43, black line has a lower gridline value\n\t\t\t\t\n\t\t\t\todo.getPosition(pos);\n\t\t\t\t\n\t\t\t\t//in index 0 of gridline, record the angle on the odo.\n\t\t\t\tgridlines[count]=pos[2];\n\t\t\t\tSound.buzz();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count==4){\n\t\t\t\t//if on the last count, the robot rotates more than one circle. then set to false.\n\t\t\t\tnavigation.turnTo(0,true);\n\t\t\t\trotate=false;\n\t\t\t\t//navigation.setSpeeds(0,0);\n\t\t\t}\n\t\t\tlast=current;\n\t\t\ttry { Thread.sleep(25); } catch (InterruptedException e) {}\n\t\t}// End of While loop\n\t\t\n\t\t// calculation for angle and x coordinate and y coordinate\n\t\t// formulas were provided in tutorial\n\n\t\t/*\n\t\t\t\t^\n\t\t\t\t|y\n\t\tgridline[1]\t|gridline[0]\t\n\t\t\t\t|\n\t\t\t-------------------> x gridline[3]\n\t\t\t\t|\t\n\t\t\t\t|\n\t\t\t\t|gridline[2]\t\n\n\n\t\t*/\t\n\t\tangleX = gridlines[1] - gridlines[3];\n\t\tangleY = gridlines[0] - gridlines[2];\n\t\t\n\t\tlengthX = Math.abs(LS_TO_CENTER * Math.cos(Math.toRadians(angleY/2)));\n\t\tlengthY = Math.abs(LS_TO_CENTER * Math.cos(Math.toRadians(angleX/2)));\n\t\t\n\t\tdeltaTheta = (angleY/2) - gridlines[0] + 90 + 180;\n\t\t\n\t\t// set the new position in odometer\n\t\todo.setPosition(new double [] {-(lengthX), -(lengthY), deltaTheta-Axis_Correction}, new boolean [] {true, true, true});\n\t\t\n\t\t// in the end turn and travel to (0,0)\n\t\tnavigation.travelTo(0.0, 0.0);\n\t\tnavigation.turnTo(0.0,true);\t\n\t\t\n\t\t// set the angle to zero and axis to the o as well\n\t\t// This is commented out to test the localization v3.0\n\t\t//odo.setPosition(new double [] {0.0, 0.0, 0}, new boolean [] {true, true, true});\n\t}", "private void handleUI() {\r\n // Start/stop camera\r\n btnCam.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (!camRunning) {\r\n videoStream = new ClientVideoStream(imageView);\r\n videoThread = new Thread(videoStream);\r\n videoThread.start();\r\n new Thread(new Client(MsgType.START_VIDEO_STREAM)).start();\r\n btnCam.setText(\"Stop camera\");\r\n camRunning = true;\r\n }\r\n else {\r\n btnCam.setText(\"Stop camera\");\r\n try {\r\n videoStream.terminate();\r\n } catch (Exception ex) {\r\n System.out.println(\"Failed to stop camera\");\r\n }\r\n camRunning = false;\r\n }\r\n }\r\n });\r\n // Toggle man/auto\r\n btnManAut.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (manualMode) {\r\n new Thread(new Client(MsgType.MANUAL)).start();\r\n btnManAut.setText(\"Manual\");\r\n }\r\n else {\r\n new Thread(new Client(MsgType.AUTO)).start();\r\n btnManAut.setText(\"Auto\");\r\n }\r\n manualMode = !manualMode;\r\n }\r\n });\r\n }", "@Override\n\tpublic void run() {\n\t\t// TODO Auto-generated method stub\n\t\t\tThread ct = Thread.currentThread(); //captura la hebra en ejecucion\n\t try{\n\t \twhile (ct == animacion2) {\n\n\t Vector3d op = new Vector3d(.1,.05,.1);\n\t \t switch(acto)\n {\n case 0:\n a3dTrans.rotY(-Math.PI/1.80d);\n tras = new Vector3d(ax,ay,az);\n a3dTrans.setTranslation(tras);\n\n\n \t\t a3dTrans.setScale(op);\t\n \t\tobtrns.setTransform(a3dTrans);\n \t\tavance++; \n\n \t if(avance<=80)\n \t {\n ay += 0.0010;\n \n \t }\n \t else{\n \t\t acabe=1;\n \t\t }\n \t \n \t break;\n case 1:\n a3dTrans.rotY(-Math.PI/1.80d);\n\n tras = new Vector3d(ax,ay,az);\n a3dTrans.setTranslation(tras);\n\n\n \t\t a3dTrans.setScale(op);\t\n \t\tobtrns.setTransform(a3dTrans);\n \t\tavance++; \n\n \t acabe=0;\n \t if(avance<=80)\n \t {\n ay -= 0.0010;\n \n \t }\n \t else{\n \t\t acabe=1;\n\n \t\t }\n \t \n \t break;\n }\n \t \n\t \t \n\n \n\t Thread.sleep(delay); //Se espera un tiempo antes de seguir la ejecución\n\t \t}\n\t \t} catch (InterruptedException ex) {//Logger.getLogger(Cube3D.class.getName()).log(Level.SEVERE, null, ex);\t }\n\t \t\n\t }\n\t \n\t }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAnimation alpha=AnimationUtils.loadAnimation(MainActivity.this,\n\t\t\t\t\t\tR.anim.rotate_animation);\n\t\t\t\ttv.startAnimation(alpha);\n\t\t\t}", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tJFrame frame = null;\r\n\t\tif (viewer.getMode() == \"self\") {\r\n\t\t\tSystem.out.println(\"Generate Antigen\");\r\n\t\t\tViewer viewer = new Viewer(10, \"antigen\", this.viewer.getCell());\r\n\t\t\tframe = viewer;\r\n\t\t\tframe.setTitle(\"Antigen - Detector Generator\");\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\tframe.pack();\r\n\t\t\tframe.setResizable(true);\r\n\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\tframe.setVisible(true);\r\n\t\t} else if (viewer.getMode() == \"antigen\"\r\n\t\t\t\t|| viewer.getMode() == \"antibody\") {\r\n\t\t\tif (!refreshBoard(viewer.getCell())) {\r\n\t\t\t\tif (timer.isRunning() == false) {\r\n\t\t\t\t\tviewer.getButton().setEnabled(false);\r\n\t\t\t\t\ttimer.start();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t\tif (viewer.getMode() == \"antigen\") {\r\n\t\t\t\t\tviewer.getButton().setLabel(\"Generate Antibody\");\r\n\t\t\t\t\tviewer.getButton().setEnabled(true);\r\n\t\t\t\t\tviewer.setMode(\"antigenOK\");\r\n\t\t\t\t} else if (viewer.getMode() == \"antibody\") {\r\n\t\t\t\t\tviewer.getButton().setLabel(\"Finish\");\r\n\t\t\t\t\tviewer.getButton().setEnabled(false);\r\n\t\t\t\t\tviewer.setMode(\"antibodyOK\");\r\n\t\t\t\t}\r\n\t\t\t\ttimer.stop();\r\n\t\t\t}\r\n\t\t} else if (viewer.getMode() == \"antigenOK\") {\r\n\t\t\tSystem.out.println(\"Generate Antibody\");\r\n\t\t\tframe = new Viewer(10, \"antibody\", this.viewer.getCell());\r\n//\t\t\tthis.viewer.getCell().printCell();\r\n\t\t\tframe.setTitle(\"Antibody - Detector Test\");\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\tframe.pack();\r\n\t\t\tframe.setResizable(true);\r\n\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\tframe.setVisible(true);\r\n\t\t} else {\r\n\r\n\t\t}\r\n\t}", "public void run() {\r\n if (stateRegistry.getDriveDirection() == REVERSE) {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\r\n robotDrive.tankDrive(rightDriveJoystick, leftDriveJoystick);\r\n }\r\n else {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, false);\r\n robotDrive.tankDrive(leftDriveJoystick, rightDriveJoystick);\r\n }\r\n }", "private void ufoMotion() {\n leftToRightAnimation(ufo, 500);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!clickable)\n ufoMotion();\n }\n }, 1000);\n }", "public void click() {\n this.lastActive = System.nanoTime();\n }", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n //erwanGLRenderer.startRotating(x,y);\n break;\n case MotionEvent.ACTION_UP:\n //erwanGLRenderer.stopRotating();\n break;\n case MotionEvent.ACTION_MOVE:\n //erwanGLRenderer.updateRotation(x,y);\n break;\n }\n return true;\n }", "public void strafe(double speed, boolean angle, double inches, double timeout){\n int newLeftTarget;\n int newRightTarget;\n int newLeftBottomTarget;\n int newRightBottomTarget;\n if (opModeIsActive()) {\n if (angle) {\n //strafe right\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n } else if (!angle) {\n //strafe left\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }\n }", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n \n if (activeThread && event.getAction() == MotionEvent.ACTION_DOWN) {\n // we set the activeThread boolean to false,\n // forcing the loop from the Thread to end\n activeThread = false;\n gate.countDown(); //causes the thread's \"run\" method to contine.\n \t\t\t\t\t//\"opens the gate\"\n }\n \n return super.onTouchEvent(event);\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "@Override\n public void actionPerformed(final ActionEvent e)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.blockGUI();\n navigate(e);\n frame.releaseGUI();\n }\n });\n }\n }).start();\n }", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_MOVE:\n\n float dx = x - previousX;\n float dy = y - previousY;\n\n // reverse direction of rotation above the mid-line\n if (y > getHeight() / 2) {\n dx = dx * -1 ;\n }\n\n // reverse direction of rotation to left of the mid-line\n if (x < getWidth() / 2) {\n dy = dy * -1 ;\n }\n\n mTestGLRender.setAngle(\n mTestGLRender.getAngle() +\n ((dx + dy) * TOUCH_SCALE_FACTOR));\n requestRender();\n }\n\n previousX = x;\n previousY = y;\n return true;\n }", "@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }", "@Override\n public void runOpMode() throws InterruptedException {\n hMap(hardwareMap);\n ElapsedTime time = new ElapsedTime();\n\n\n\n markerDeploy.setPosition(0.25);\n latch.setPosition(0.25);\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start tracking\");\n telemetry.update();\n waitForStart();\n\n rightBoxRotate.setPosition(0.15);\n leftBoxRotate.setPosition(0.85);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1100);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n\n Thread.sleep(100);\n\n\n // moveTo(0.4,20);\n\n\n // Thread.sleep(1000);\n\n\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n Thread.sleep(100);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1150);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(250);\n\n setMotors(-0.4,-0.4);\n Thread.sleep(250);\n setMotors(0,0);\n\n Thread.sleep(250);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(475);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n //up\n //servo init position\n Thread.sleep(250);\n\n motorArmLeft.setPower(-0.5);\n motorArmRight.setPower(0.5);\n Thread.sleep(200);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(100);\n\n moveTo(0.4,200);\n\n// Thread.sleep(100);\n\n// rightBoxRotate.setPosition(0.15);\n// leftBoxRotate.setPosition(0.85);\n\n Thread.sleep(100);\n manip.setPower(1);\n }", "@Override\n protected void initialize() {\n\n /* System clock starts */\n baseTime = System.currentTimeMillis();\n /* Determines time that robot has to timeout after */\n thresholdTime = baseTime + duration;\n\n /* Convert the starting angle */\n if (Robot.drivetrain.getGyroYaw() < 0.0f) {\n /* Negative turn to 180-360 */\n startingAngle = Robot.drivetrain.getGyroYaw() + 360.0f;\n } else {\n /* Positives stay 0-180 */\n startingAngle = Robot.drivetrain.getGyroYaw();\n }\n\n /* The total angle needed to turn */\n totalAngleTurn = startingAngle + inputAngle;\n\n /* Declare the turning direction of special cases when the angle passes over 0 or 360 */\n if (totalAngleTurn < 0.0f) { \n /* If the angle is negative, convert it */\n totalAngleTurn += 360.0f;\n /* Trigger special case */\n specialCase = true;\n /* Trigger counterclockwise */\n clockwise = false;\n }\n if (totalAngleTurn > 360.0f) {\n /* If the angle is above 360, subtract 360 */\n totalAngleTurn -= 360.0f;\n /* Trigger special case */\n specialCase = true;\n /* Trigger clockwise */\n clockwise = true;\n }\n /* Only run if the special cases do not already declare a turning direction */\n if (!specialCase) {\n /* If the input angle is bigger, turn clockwise */\n if (totalAngleTurn > startingAngle) {\n clockwise = true;\n }\n /* If the input angle is smaller, turn counterclockwise */\n if (totalAngleTurn < startingAngle) {\n clockwise = false;\n }\n }\n }", "protected void doRadarClick() {\r\n\t\trepaint(radarPanelRect);\r\n\t}", "public void trigger() {\n button.release(true);\n }", "@Override\n public void onRotation() {\n stopTTS();\n\n //stop all music and seek wheeling sound to start\n if(wheelSound.isPlaying()){\n wheelSound.seekTo(0);}\n wheelSound.start();\n }", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_MOVE:\n\n float dx = x - mPreviousX;\n float dy = y - mPreviousY;\n\n // reverse direction of rotation above the mid-line\n if (y > getHeight() / 2) {\n dx = dx * -1;\n }\n\n // reverse direction of rotation to left of the mid-line\n if (x < getWidth() / 2) {\n dy = dy * -1;\n }\n\n mRenderer.setAngle(\n mRenderer.getAngle() +\n ((dx + dy) * TOUCH_SCALE_FACTOR)); // = 180.0f / 320\n requestRender();\n }\n\n mPreviousX = x;\n mPreviousY = y;\n return true;\n }", "int spinTheWheel();", "protected void execute() {\n \twrist.rotateWrist(OI.getInstance().getXbox().getAxis(XboxController.XboxAxis.kYRight));\n }", "@Override\n\tpublic void rotate() {\n\t}", "@Override\r\n\tpublic void autonomous() {\n\r\n\t\tint autoMode = -1;\r\n\t\t\r\n\t\tif (!switch1.get() && !switch2.get() && !switch3.get()) {\r\n\t\t\t//if all the switches are off\r\n\t\t\tautoMode = 0;\r\n\t\t} else if (switch1.get() && !switch2.get() && !switch3.get()) {\r\n\t\t\tautoMode = 1;\r\n\t\t} else if (!switch1.get() && switch2.get() && !switch3.get()) {\r\n\t\t\tautoMode = 2;\r\n\t\t} else if (switch1.get() && switch2.get() && !switch3.get()) {\r\n\t\t\tautoMode = 3;\r\n\t\t}\r\n\r\n\t\tautotime.start();\r\n\r\n\t\t// double[] wheelSpeeds = new double[2];\r\n\t\t// double[] startCoords = {0, 0, Math.PI / 2};\r\n\t\t// double[] endCoords = {0, 1, Math.PI / 2};\r\n\t\t// AutoPath pathAuto = new AutoPath(startCoords, endCoords,\r\n\t\t// ahrs.getAngle());\r\n\t\t//\r\n\t\t// int i = 0;\r\n\t\t// boolean successfullyGrabbedRectangles = false;\r\n\t\t\r\n\t\tboolean shotGear = false;\r\n\t\t//boolean hasBackedUp = false;\r\n\t\twhile (isAutonomous() && isEnabled()) {\r\n\t\t\t// auto.drive(autoMode);\r\n\r\n\t\t\t// while(autotime.get() < 3) {\r\n\t\t\t// drive.drive(-0.9, -0.9);\r\n\t\t\t// }\r\n\r\n\t\t\t// grab the current switch status\r\n\r\n\t\t\tswitch (autoMode) {\r\n\t\t\tcase 0:\r\n\t\t\t\t//Mark: Drive forward\r\n\r\n\t\t\t\tif (autotime.get() < 3) {\r\n\t\t\t\t\tdrive.drive(-0.9, -0.9);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\t// Mark: Drive Forward, NO turning, and shoot gear onto peg\r\n\r\n\t\t\t\tif (autotime.get() < 3) {\r\n\t\t\t\t\tdrive.drive(-0.75, -0.75);\r\n\t\t\t\t} else if(!shotGear) {\r\n\t\t\t\t\t// shoot the gear onto the peg\r\n\t\t\t\t\tgearOutput.autoOutput();\r\n\t\t\t\t\tshotGear = true;\r\n\t\t\t\t}else if(autotime.get() < 3.67) {\r\n\t\t\t\t\tdrive.drive(0.50, 0.50);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdrive.drive(0,0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\t//Mark: start LEFT of center, drive forward, turn -60 degrees, drive forward, shoot gear on peg\r\n\t\t\t\tif (autotime.get() < 2) {\r\n\t\t\t\t\tdrive.drive(-0.75, -0.75);\r\n\t\t\t\t} else if (autotime.get() < 2.5) {\r\n\t\t\t\t\tdrive.drive(1, 0);\r\n\t\t\t\t}else if(autotime.get() < 3.5) { \r\n\t\t\t\t\tdrive.drive(-.75,-.75);\r\n\t\t\t\t} else if (!shotGear) {\r\n\t\t\t\t\tgearOutput.autoOutput();\r\n\t\t\t\t\tshotGear = true;\r\n\t\t\t\t}else if(autotime.get() < 4.5) {\r\n\t\t\t\t\tdrive.drive(0.75, 0.75);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdrive.drive(0,0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\t//Mark: start RIGHT of center, drive forward, turn 60 degrees, drive forward, shoot gear on peg\r\n\t\t\t\tif (autotime.get() < 2) {\r\n\t\t\t\t\tdrive.drive(-0.75, -0.75);\r\n\t\t\t\t} else if (autotime.get() < 2.25) {\r\n\t\t\t\t\tdrive.drive(0, 1);\r\n\t\t\t\t}else if(autotime.get() < 4) { \r\n\t\t\t\t\tdrive.drive(-.75,-.75);\r\n\t\t\t\t} else if (!shotGear) {\r\n\t\t\t\t\tgearOutput.autoOutput();\r\n\t\t\t\t\tshotGear = true;\r\n\t\t\t\t}else if(autotime.get() < 4.5) {\r\n\t\t\t\t\tdrive.drive(0.75, 0.75);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdrive.drive(0,0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// if(!successfullyGrabbedRectangles) {\r\n\t\t\t// Rectangle[] targets = grabRectangles();\r\n\t\t\t//\r\n\t\t\t//// System.out.println(\"-----\");\r\n\t\t\t//// for(Rectangle r : testing) {\r\n\t\t\t//// System.out.println(r.getArea());\r\n\t\t\t//// }\r\n\t\t\t//// System.out.println(\"-----\");\r\n\t\t\t//\r\n\t\t\t// if(targets[0].getArea() == 0) {\r\n\t\t\t// //since grabRectangles returns 1 rectangle with area of 0, so if\r\n\t\t\t// one of the area's\r\n\t\t\t// //equals 0, then it was a failed response\r\n\t\t\t// successfullyGrabbedRectangles = false;\r\n\t\t\t// }else{\r\n\t\t\t//\r\n\t\t\t// successfullyGrabbedRectangles = true;\r\n\t\t\t//\r\n\t\t\t// //call auto path to get the wheel speeds from the rectangle\r\n\t\t\t// pathAuto.makeNewPath(targets[0].getWidth(),\r\n\t\t\t// targets[1].getWidth(), targets[0].getXPos() - 240,\r\n\t\t\t// targets[1].getXPos() - 240, ahrs.getAngle());\r\n\t\t\t// //drive.drive(wheelSpeeds[0], wheelSpeeds[1]);\r\n\t\t\t//\r\n\t\t\t// }\r\n\t\t\t// }else{\r\n\t\t\t// //drive.drive(0,0);\r\n\t\t\t//\r\n\t\t\t// double[] wheelSpeedsFromPath = pathAuto.getWheelSpeeds(.4); //the\r\n\t\t\t// .4 doesn't mean anything at all; Beitel is just weird :^)\r\n\t\t\t// drive.drive(wheelSpeedsFromPath[0], wheelSpeedsFromPath[1]);\r\n\t\t\t// //System.out.println(\"Left:\" + wheelSpeedsFromPath[0]);\r\n\t\t\t// //System.out.println(\"Right: \" + wheelSpeedsFromPath[1]);\r\n\t\t\t// }\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public void autonomousPeriodic() {\r\n try{\r\n if(joy.getRawButton(2)){\r\n frontLeft.set(1);\r\n }else if(joy.getRawButton(3)){\r\n frontRight.set(1);\r\n }else if(joy.getRawButton(4)){\r\n backRight.set(1);\r\n }else if(joy.getRawButton(5)){\r\n backLeft.set(1);\r\n }\r\n }catch(Exception e){\r\n \r\n }\r\n \r\n }", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "@Override\n public boolean tick (int timestamp)\n {\n super.tick(timestamp);\n\n // update the behavior\n _behavior.tick(timestamp);\n\n // compute the elapsed time since the last timestamp\n float elapsed = (timestamp - _timestamp) / 1000f;\n _timestamp = timestamp;\n\n // turn towards target rotation\n float rotation = _actor.getRotation();\n if (rotation != _targetRotation && canRotate()) {\n float diff = FloatMath.getAngularDifference(_targetRotation, rotation);\n float angle = elapsed * _turnRate;\n if (Math.abs(diff) - angle < FloatMath.EPSILON) {\n _actor.setRotation(_targetRotation);\n reachedTargetRotation();\n } else {\n float dir = Math.signum(diff);\n ((Agent)_actor).setTurnDirection((int)dir);\n _actor.setRotation(FloatMath.normalizeAngle(rotation + angle * dir));\n }\n }\n\n return true;\n }", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "public void runOpMode() throws InterruptedException {\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n leftArm = hardwareMap.dcMotor.get(\"leftArm\");\n rightArm = hardwareMap.dcMotor.get(\"rightArm\");\n rightDistance = hardwareMap.get(DistanceSensor.class, \"rightDistance\");\n leftColor = hardwareMap.colorSensor.get(\"leftColor\");\n rightWheel.setDirection(DcMotorSimple.Direction.REVERSE);\n count = 21;\n step = 3;\n subStep = 0;\n\n sample_ready = false;\n lander_unlatched = false;\n\n //prepares and resets robot by resetting encoders\n resetDriveEncoders();\n\n //prepares robot for arm movement by setting arm motors to go to a certain position-modifiable by user input (the d-pad)\n// leftArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// rightArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //HSV value array\n\n //Sends color sensor input values to the phone\n waitForStart();\n\n while (opModeIsActive()) {\n telemetry.update();\n\n\n telemetry.addLine()\n .addData(\"step\", step)\n .addData(\"subStep\", subStep)\n .addData(\"count\", count);\n telemetry.addLine()\n .addData(\"RightWheel: \", rightWheel.getCurrentPosition())\n .addData(\"LeftWheel: \", leftWheel.getCurrentPosition())\n .addData(\"TICKS_PER_WHEEL_ROTATION: \", TICKS_PER_WHEEL_ROTATION);\n\n\n//sets the step of where we are in the process to one\n // step = 1;\n//enables the if statement for lander_unlatched\n lander_unlatched = true;\n//moves the robot from the lander to where the samples are\n if (step == 1) {\n// leftWheel.setPower(0.7);\n// rightWheel.setPower(0.5);\n// leftWheel.setTargetPosition(1621);\n// rightWheel.setTargetPosition(820);\n step = 2;\n }\n if (step == 2) {\n// if (hsvValues[0] > 50) {\n// leftWheel.setPower(-0.7);\n// rightWheel.setPower(-0.5);\n// leftWheel.setTargetPosition(1221);\n step = 3;\n }\n// if step 2 is finished, makes the robot turn toward the wall, then drives against the wall.\n if (step == 3) {\n moveToDepot();\n }\n //1150 Target Units == about 1 foot, 96 Units/inch\n//sets the wheel power to 0 to limit movement\n// if (rightWheel.getCurrentPosition() == -rotation) {\n // rightWheel.setPower(0);\n //leftWheel.setPower(0);\n// }\n// if (leftWheel.getCurrentPosition() == 100) {\n// leftWheel.setPower(0);\n// rightWheel.setPower(0);\n// }\n\n sample_ready = true;\n\n// if (sample_ready) {\n//\n }\n }", "@Override\n public void click() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n int result = fileChooser.showOpenDialog(TurtleFileOpen.this);\n\n if (result == JFileChooser.APPROVE_OPTION) {\n final File selFile = fileChooser.getSelectedFile();\n //the user selects the file\n execute(new Runnable() {\n public void run() {\n openFile(selFile);\n }\n });\n }\n }\n });\n }", "protected void execute() {\n\t\tif (!isSafe) {\n\t\t\tRobot.wrist.motionMagicControl();\n\t\t\t\n\t\t}\n\t}", "void trigger();", "private void hookSingleClickAction() {\n\t\tthis.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tsingleClickAction.run();\n\t\t\t}\n\t\t});\n\t}", "public /* synthetic */ void lambda$onTouchEventMy$1() {\n this.animationInProgress = false;\n switchToPreviousMessage();\n AndroidUtilities.unlockOrientation(this);\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}", "public void rotation(){\n\n double x=Double.parseDouble(rotationx.getText());\n double y=Double.parseDouble(rotationy.getText());\n double z=Double.parseDouble(rotationz.getText());\n if (checkbox.isSelected()){\n cls_zahnrad.rotieren(x,y,z);\n return;\n }\n Triangle[] dreiecke = t1.getFlaechen();\n x=2*Math.PI/360*x;\n y=2*Math.PI/360*y;\n z=2*Math.PI/360*z;\n double[] A,B,C;\n\n double pktx=0,pkty=0,pktz=0;\n\n if (radio12.isSelected()){\n pktx = Double.parseDouble(rotationpktx.getText());\n pkty = Double.parseDouble(rotationpkty.getText());\n pktz = Double.parseDouble(rotationpktz.getText());\n }\n\n for (Triangle i :dreiecke){\n for (int j=0; j<3;j++){\n double xtemp,ytemp,ztemp;\n xtemp=i.getTriangle()[j].getPoint()[0]-pktx;\n ytemp=i.getTriangle()[j].getPoint()[1]-pkty;\n ztemp=i.getTriangle()[j].getPoint()[2]-pktz;\n i.getTriangle()[j].setPoint(xtemp,ytemp,ztemp);\n }\n }\n\n for (Triangle t1 : dreiecke){\n A=t1.getTriangle()[0].getPoint();\n B=t1.getTriangle()[1].getPoint();\n C=t1.getTriangle()[2].getPoint();\n double[][]punkte={A,B,C};\n\n for (int i=0; i<punkte.length; i++){\n double temp0,temp1,temp2;\n\n //Rotation um Parallele der X-Achse durch das Rotationszentrum\n if (x!=0){\n temp1=punkte[i][1]*Math.cos(x)-punkte[i][2]*Math.sin(x);\n temp2=punkte[i][1]*Math.sin(x)+punkte[i][2]*Math.cos(x);\n punkte[i][1]=temp1;\n punkte[i][2]=temp2;\n }\n\n //Rotation um Parallele der Y-Achse durch das Rotationszentrum\n if (y!=0){\n temp0=punkte[i][0]*Math.cos(y)+punkte[i][2]*Math.sin(y);\n temp2=-punkte[i][0]*Math.sin(y)+punkte[i][2]*Math.cos(y);\n punkte[i][0]=temp0;\n punkte[i][2]=temp2;\n }\n\n //Rotation um Parallele der Z-Achse durch das Rotationszentrum\n if (z!=0){\n temp0=punkte[i][0]*Math.cos(z)-punkte[i][1]*Math.sin(z);\n temp1=punkte[i][0]*Math.sin(z)+punkte[i][1]*Math.cos(z);\n punkte[i][0]=temp0;\n punkte[i][1]=temp1;\n }\n }\n A=punkte[0];\n B=punkte[1];\n C=punkte[2];\n t1.getTriangle()[0].setPoint(A[0],A[1],A[2]);\n t1.getTriangle()[1].setPoint(B[0],B[1],B[2]);\n t1.getTriangle()[2].setPoint(C[0],C[1],C[2]);\n }\n for (Triangle i :dreiecke){\n for (int j=0; j<3;j++){\n double xtemp,ytemp,ztemp;\n xtemp=i.getTriangle()[j].getPoint()[0]+pktx;\n ytemp=i.getTriangle()[j].getPoint()[1]+pkty;\n ztemp=i.getTriangle()[j].getPoint()[2]+pktz;\n i.getTriangle()[j].setPoint(xtemp,ytemp,ztemp);\n }\n }\n redraw();\n /*\n System.out.println(\"A \"+Arrays.toString(t1.getTetraeder()[0].getPoint()));\n System.out.println(\"B \"+Arrays.toString(t1.getTetraeder()[1].getPoint()));\n System.out.println(\"C \"+Arrays.toString(t1.getTetraeder()[2].getPoint()));\n System.out.println(\"D \"+Arrays.toString(t1.getTetraeder()[3].getPoint()));\n System.out.println(Arrays.toString(Mittelpunkt));\n */\n }", "@Override\n\tpublic void run() {\n\t\n\t\t\ttry {\n\t\t\t\trouseButton();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tthis.interrupt();\n\t\t\t}\n\t\n\t}", "public void gyroTurn ( double speed, double angle) {\n\n // keep looping while we are still active, and not on heading.\n while (!onHeading(speed, angle, P_TURN_COEFF) ) {\n // Update telemetry & Allow time for other processes to run.\n try {\n sleep(50);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n }", "protected void allowRotation()\n\t{\n\t\tthis.rotationAllowed = true;\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tdetachChild(anim);\n\n\t\t\t\t\tanim = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcache.get(position).getSound().play();\n\t\t\t\t\t\t// disable clicks on these first\n\t\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\t\tif(sprite1 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite1);\n\t\t\t\t\t\tif(sprite2 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite2);\n\t\t\t\t\t\tif(sprite3 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite3);\n\t\t\t\t\t\tif(sprite4 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite4);\n\t\t\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\t\t\tshowToast(\"Line 277\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public static void main(String[] args) throws Exception{\n\t\t\r\n\t\tint turnChk = 0;\r\n\t\tTouchSensor touch = new TouchSensor(SensorPort.S1);\r\n\t\tLightSensor light = new LightSensor(SensorPort.S3);\r\n\t\tUltrasonicSensor UltraSonic = new UltrasonicSensor(SensorPort.S4);\r\n\t\t\r\n\t\tMotor.A.setSpeed(300);\r\n\t\tMotor.B.setSpeed(300);\r\n\t\t\r\n\t\twaitForLoudSound();\r\n\t\tMotor.A.forward();\r\n\t\tMotor.B.forward();\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\tUltraSonic = new UltrasonicSensor(SensorPort.S4);\r\n\t\t\t\r\n\t\t\tLCD.drawString(\"START\", 0, 0);\r\n\t\t\t//LCD.drawString(\"turnChk\", 0, 1);\r\n\t\t\t//LCD.drawInt(turnChk, 9, 1);\r\n\t\t\tif(UltraSonic.getDistance() < 35\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t){\r\n\t\t\t\tif(turnChk < 4){\r\n\t\t\t\t\tMotor.B.stop();\r\n\t\t\t\t\tMotor.A.rotate(320);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tturnChk++;\r\n\t\t\t}else{\r\n\t\t\t\tMotor.A.forward();\r\n\t\t\t\tMotor.B.forward();\r\n\t\t\t}\r\n\t\t}\r\n\t\tMotor.A.stop();\r\n\t\tMotor.B.stop();\r\n\t\tLCD.drawString(\"FIRST POINT\", 0, 0);\r\n\t\tThread.sleep(3000);\r\n\t\tMotor.B.rotate(360);\r\n\t\t\r\n\t\twhile(!touch.isPressed()){\r\n\t\t\tMotor.A.forward();\r\n\t\t\tMotor.B.forward();\r\n\t\t}\r\n\t\tMotor.A.stop();\r\n\t\tMotor.B.stop();\r\n\t\tLCD.drawString(\"NOT FOUND \", 0, 0);\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\twhile(light.getNormalizedLightValue()>400){\r\n\t\t\tMotor.A.backward();\r\n\t\t\tMotor.B.backward();\r\n\t\t}\r\n\t\tMotor.B.stop();\r\n\t\tMotor.A.rotate(380);\r\n\t\tLCD.drawString(\"GO ON \", 0, 0);\r\n\t\tThread.sleep(3000);\r\n\t\tturnChk = 0;\r\n\t\twhile(true){\r\n\t\t\tUltraSonic = new UltrasonicSensor(SensorPort.S4);\r\n\t\t\tLCD.drawString(\"GO ON \", 0, 0);\r\n\t\t\t\r\n\t\t\tif(UltraSonic.getDistance()<30){\r\n\t\t\t\tif(turnChk == 0){\r\n\t\t\t\t\tMotor.A.stop();\r\n\t\t\t\t\tMotor.B.rotate(360);\r\n\t\t\t\t\tturnChk = 1;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tMotor.A.stop();\r\n\t\t\t\t\tMotor.B.stop();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tMotor.A.forward();\r\n\t\t\t\tMotor.B.forward();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tLCD.drawString(\"FOUND \", 0, 0);\r\n\t\tThread.sleep(5000);\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void applyRotationLocked(int oldRotation, int rotation) {\n this.mDisplayRotation.setRotation(rotation);\n boolean rotateSeamlessly = this.mWmService.isRotatingSeamlessly();\n ScreenRotationAnimation screenRotationAnimation = rotateSeamlessly ? null : this.mWmService.mAnimator.getScreenRotationAnimationLocked(this.mDisplayId);\n updateDisplayAndOrientation(getConfiguration().uiMode, null);\n if (screenRotationAnimation != null && screenRotationAnimation.hasScreenshot() && screenRotationAnimation.setRotation(getPendingTransaction(), rotation, 10000, this.mWmService.getTransitionAnimationScaleLocked(), this.mDisplayInfo.logicalWidth, this.mDisplayInfo.logicalHeight)) {\n this.mWmService.scheduleAnimationLocked();\n }\n forAllWindows((Consumer<WindowState>) new Consumer(oldRotation, rotation, rotateSeamlessly) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$3g7y7M5XrDR3cz8tOp9f3pwWbyQ */\n private final /* synthetic */ int f$1;\n private final /* synthetic */ int f$2;\n private final /* synthetic */ boolean f$3;\n\n {\n this.f$1 = r2;\n this.f$2 = r3;\n this.f$3 = r4;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$applyRotationLocked$10$DisplayContent(this.f$1, this.f$2, this.f$3, (WindowState) obj);\n }\n }, true);\n this.mWmService.mDisplayManagerInternal.performTraversal(getPendingTransaction());\n scheduleAnimation();\n forAllWindows((Consumer<WindowState>) new Consumer(rotateSeamlessly) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$XeeexVnAosqA0zfHVCT_Txqwl8 */\n private final /* synthetic */ boolean f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$applyRotationLocked$11$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n if (rotateSeamlessly) {\n int timeOutDuration = 2000;\n if (this.mDisplayPolicy.isFromSeamlessLauncher() && hasPinnedStack()) {\n timeOutDuration = 150;\n }\n this.mWmService.mH.sendNewMessageDelayed(54, this, (long) timeOutDuration);\n if (HwDisplaySizeUtil.hasSideInScreen()) {\n this.mWmService.getPolicy().notchControlFilletForSideScreen(this.mWmService.getFocusedWindow(), true);\n }\n }\n for (int i = this.mWmService.mRotationWatchers.size() - 1; i >= 0; i--) {\n WindowManagerService.RotationWatcher rotationWatcher = this.mWmService.mRotationWatchers.get(i);\n if (rotationWatcher.mDisplayId == this.mDisplayId) {\n try {\n rotationWatcher.mWatcher.onRotationChanged(rotation);\n } catch (RemoteException e) {\n }\n }\n }\n if (screenRotationAnimation == null && this.mWmService.mAccessibilityController != null) {\n this.mWmService.mAccessibilityController.onRotationChangedLocked(this);\n }\n this.mWmService.mPolicy.notifyRotationChange(rotation);\n if (this.mSideSurfaceBox != null) {\n this.mWmService.setScreenSideBoxAndCornerVisibility(this.mDisplayId, false);\n }\n }", "protected void initialize() {\n \tSystem.out.println(\"Running: TurnXDegrees\");\n \tstartingAngle = Robot.gyro.getRawAngleDegrees();\n \tisFin = false;\n \tsetTimeout(5);\n \tif(angleTarget < 0) {\n \t\tSystem.out.println(\"Turning Left...\");\n \t\tisTurningLeft = true;\n \t}else {\n \t\tSystem.out.println(\"Turning Right...\");\n \t\tisTurningLeft = false;\n \t}\n \t\n }", "@Override\n public void onClick(View v) {\n ensureVisibility(tweenAnimation);\n\n //builds the rotate animation from the XML resource \"R.anim.rotate\"\n Animation rotate = AnimationUtils.loadAnimation(MainActivity.this, R.anim.rotate);\n\n //begin the rotate animation\n tweenAnimation.startAnimation(rotate);\n\n\n }", "public void mouseClicked(MouseEvent e) {\n if((e.getModifiers() & Event.META_MASK) !=0){\n if (rigthMouseClickedCmd != null) {\n rigthMouseClickedCmd.execute();\n }\n }else {\n if (mouseClickedCmd != null) {\n mouseClickedCmd.execute();\n }\n }\n }", "public void teleopContinuous() {\n //feed the watchdog\n myDog.feed();\n\n //check safestop button\n /*safestop commented out\n if (joysticks.getRightButton(10))//Buttons on top of right stick stops robot\n {\n safeStop();\n //delay to allow driver to release button\n Timer.delay(.1);\n myDog.feed();\n //at this point driver should have released the butto\n while (!joysticks.getRightTop()) {\n myDog.feed();\n }\n //now the button is pressed again, indicating a restart- the program can continue\n\n //slight delay to allow driver to release the button before the next loop\n Timer.delay(.1);\n }\n */\n\n //if arm is in teleop mode, handles input accordingly\n if (armState == TELEOP) {\n handleArmInput();\n }\n\n //if arm is in auto mode, checks whether user is pressing button 1 to regain\n //control and stops the auto task if so\n\n /*\n arm never goes to auto mode, so this is commented out\n\n (armState == AUTO) {\n //if the driver is attempting to cancel the task OR the task is done, return control\n //to the driver\n if (armJoystick.getRawButton(7) || !armTask.isRunning()) {\n armTask.interrupt();\n armTask.stop();\n armState = TELEOP;\n }\n }\n */\n\n //if drive is in teleop mode, handles input accordingly\n if (driveState == TELEOP) {\n try {\n handleDriveInput();\n } catch (EnhancedIOException e) {\n }\n\n }\n\n //if drive is in auto mode, checks whether user is trying to regain control\n /*not used\n if (driveState == AUTO) {\n //if the driver is attempting to cancel the task OR the task is done, return control\n //to the driver\n if (joysticks.getLeftButton(1) || !driveTask.isRunning()) {\n driveTask.interrupt();\n driveTask.stop();\n driveState = TELEOP;\n }\n }\n */\n\n\n printToScreen(\"Gyro Angle: \" + arm.gyro.getAngle());\n printToScreen(\"Arm Angle: \" + arm.getArmAngle());\n }", "public void touch() {\n\t\tif (isRunning){\n\t\t\tisRunning =false;\n\t\t}else{\n\t\t\tisRunning = true;\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void teleopPeriodic() {\n // toggle logic from Mark_McLeod\n\n // TEST 1: test the ball pincher\n if (pinchToggle && xbox.getAButton() ) { // Only execute once per Button push\n pinchToggle = false; // Prevents this section of code from being called again until the Button is released and re-pressed\n if (isOpen) {\n isOpen = false;\n System.out.println(\"ball pincher open\\n\");\n ballPincher.set(DoubleSolenoid.Value.kForward);\n } else {\n isOpen = true;\n System.out.println(\"ball pincher close\\n\");\n ballPincher.set(DoubleSolenoid.Value.kReverse);\n }\n } else if(xbox.getAButton() == false) { \n pinchToggle = true; // Button has been released, so this allows a re-press to activate the code above.\n }\n\n // TEST 2: test the ball pusher\n if (pushToggle && xbox.getBButton() ) { // Only execute once per Button push\n pushToggle = false; // Prevents this section of code from being called again until the Button is released and re-pressed\n if (isOpen) {\n isOpen = false;\n System.out.println(\"ball pusher open\\n\");\n ballPusher.set(DoubleSolenoid.Value.kForward);\n } else {\n isOpen = true;\n System.out.println(\"ball pusher close\\n\");\n ballPusher.set(DoubleSolenoid.Value.kReverse);\n }\n } else if(xbox.getBButton() == false) { \n pushToggle = true; // Button has been released, so this allows a re-press to activate the code above.\n }\n\n // TEST 3: a single button should open the pincher and push the ball.\n if (xbox.getYButton()) {\n ballPincher.set(DoubleSolenoid.Value.kReverse); // open the pincher\n Timer.delay(1.0); //in seconds\n // push the ball out of the ball pincher\n // the directio depends on the setup\n ballPusher.set(DoubleSolenoid.Value.kForward); \n Timer.delay(1.0);\n ballPusher.set(DoubleSolenoid.Value.kReverse); // retract the pusher\n // the 2 line below are not needed. for testing purposes.\n // No need to close the pincher.\n Timer.delay(2.0);\n ballPincher.set(DoubleSolenoid.Value.kForward); // close the pincher\n }\n }", "public abstract void rotate();" ]
[ "0.5726378", "0.5724353", "0.5695972", "0.5605763", "0.5589864", "0.5394965", "0.52926713", "0.5265876", "0.5239575", "0.52019894", "0.5195786", "0.5078757", "0.5077212", "0.5039019", "0.50075454", "0.50003517", "0.49937937", "0.49824354", "0.49803913", "0.49326822", "0.4924012", "0.49148285", "0.49083456", "0.4905149", "0.49008054", "0.48836443", "0.4881049", "0.48774323", "0.48764428", "0.48680967", "0.4849218", "0.48475996", "0.48428556", "0.48281705", "0.482311", "0.48135793", "0.4812634", "0.48124206", "0.48123172", "0.48108247", "0.48086387", "0.47876632", "0.47856012", "0.47843865", "0.47832423", "0.4781946", "0.47755772", "0.47653762", "0.47505787", "0.47477898", "0.4744474", "0.47324872", "0.4722677", "0.47201663", "0.47196776", "0.47153044", "0.4708713", "0.46963987", "0.46915904", "0.46910605", "0.46909127", "0.46902183", "0.46849418", "0.46761373", "0.46594143", "0.46581656", "0.4656886", "0.4649489", "0.46444944", "0.46423367", "0.4631393", "0.46296743", "0.4627115", "0.4625332", "0.46188697", "0.46157593", "0.46153992", "0.4614576", "0.46145397", "0.46130186", "0.46084803", "0.46065834", "0.46051198", "0.46050227", "0.460074", "0.45974025", "0.45959198", "0.45893055", "0.4589123", "0.4588687", "0.45877698", "0.45837077", "0.45822456", "0.45749488", "0.45731306", "0.45711237", "0.45693228", "0.45691913", "0.4567874", "0.45670542" ]
0.4928827
20
SCREEN TO MODEL, MORE SMARTLY THAN IN CAMERA, USING COLORBAR AND MARGINS
protected Coord2d xy(MouseEvent e) { return new Coord2d(x(e), y(e)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "public void runOpMode() throws InterruptedException {\n robot.init(hardwareMap);\n BNO055IMU.Parameters parameters1 = new BNO055IMU.Parameters();\n parameters1.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters1);\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n robot.arm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //P.S. if you're using the latest version of easyopencv, you might need to change the next line to the following:\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n //phoneCam = new OpenCvInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);//remove this\n\n phoneCam.openCameraDevice();//open camera\n phoneCam.setPipeline(new StageSwitchingPipeline());//different stages\n phoneCam.startStreaming(rows, cols, OpenCvCameraRotation.SIDEWAYS_LEFT);//display on RC\n //width, height\n //width = height in this case, because camera is in portrait mode.\n\n runtime.reset();\n while (!isStarted()) {\n for (int i = 0; i <= 7; i++) {\n telemetry.addData(\"Values\", vals[i]);\n }\n for (int i = 0; i <= 7; i++) {\n totals = totals + vals[i];\n }\n totals = totals / 255;\n telemetry.addData(\"total\", totals);\n\n telemetry.addData(\"Height\", rows);\n telemetry.addData(\"Width\", cols);\n\n telemetry.update();\n sleep(100);\n\n if (totals >= 4) {\n StartAngle = 30;\n StartDistance = 105;\n StartBack = -40;\n ReturnAngle = 28;\n ReturnDistance = -85;\n drop2 = 112;\n mid = 0;\n backup2 = -33;\n } else if (totals <= 0) {\n StartAngle = 55;\n StartDistance= 85;\n StartBack = -5;\n ReturnAngle = 38;\n ReturnDistance = -60;\n drop2 = 65;\n mid = -2;\n backup2 = -31;\n } else {\n StartAngle = 17;\n StartDistance = 75;\n StartBack = -20;\n ReturnAngle = 22;\n ReturnDistance = -49;\n drop2 = 95;\n mid = -18;\n backup2 = -41;\n }\n totals = 0;\n }\n\n\n\n gyroDrive(DRIVE_SPEED,6,0,30,0);\n gyroDrive(DRIVE_SPEED,36,-45,30,0);\n gyroDrive(DRIVE_SPEED,StartDistance,StartAngle,30,0);\n\n //robot.arm.setTargetPosition(-450);\n //robot.arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n /*robot.arm.setPower(-.1);\n //robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n gyroHold(DRIVE_SPEED,0,2);\n robot.claw.setPosition(0);\n robot.arm.setPower(.05);\n gyroHold(DRIVE_SPEED,0,1);\n gyroDrive(DRIVE_SPEED,-10,0,5,0);\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,-20,90,5,0);\n\n */\n gyroTurn(TURN_SPEED,ReturnAngle);\n robot.LWheel.setPower(-.9);\n robot.RWheel.setPower(-.9);\n gyroDrive(DRIVE_SPEED, ReturnDistance,ReturnAngle, 30,0);\n gyroHold(TURN_SPEED,3,1);\n robot.lock.setPosition(1);\n robot.RTrack.setPosition(1);\n robot.LTrack.setPosition(0);\n gyroHold(TURN_SPEED,0,2);\n gyroHold(TURN_SPEED,-3,2);\n robot.LWheel.setPower(0);\n robot.RWheel.setPower(0);\n robot.RTrack.setPosition(.5);\n robot.LTrack.setPosition(.5);\n gyroTurn(TURN_SPEED,ReturnAngle);\n gyroDrive(DRIVE_SPEED, backup2, ReturnAngle, 30,0);\n\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,52,80,5,0);\n gyroTurn(TURN_SPEED,65);\n gyroDrive(DRIVE_SPEED,drop2,2 + mid,10,0);\n robot.RDrop.setPosition(.23);\n robot.LDrop.setPosition(.23);\n gyroDrive(DRIVE_SPEED,StartBack,0,5,0);\n robot.arm.setPower(-.2);\n\n gyroHold(TURN_SPEED,0,1.7);\n robot.arm.setPower(0);\n }", "public void vision()\n {\n NIVision.IMAQdxGrab(session, colorFrame, 1);\t\t\t\t\n RETRO_HUE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro hue min\", RETRO_HUE_RANGE.minValue);\n\t\tRETRO_HUE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro hue max\", RETRO_HUE_RANGE.maxValue);\n\t\tRETRO_SAT_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro sat min\", RETRO_SAT_RANGE.minValue);\n\t\tRETRO_SAT_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro sat max\", RETRO_SAT_RANGE.maxValue);\n\t\tRETRO_VAL_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro val min\", RETRO_VAL_RANGE.minValue);\n\t\tRETRO_VAL_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro val max\", RETRO_VAL_RANGE.maxValue);\n\t\tAREA_MINIMUM = SmartDashboard.getNumber(\"Area min %\");\n\t\t//MIN_RECT_WIDTH = SmartDashboard.getNumber(\"Min Rect Width\", MIN_RECT_WIDTH);\n\t\t//MAX_RECT_WIDTH = SmartDashboard.getNumber(\"Max Rect Width\", MAX_RECT_WIDTH);\n\t\t//MIN_RECT_HEIGHT = SmartDashboard.getNumber(\"Min Rect Height\", MIN_RECT_HEIGHT);\n\t\t//MAX_RECT_HEIGHT= SmartDashboard.getNumber(\"Max Rect Height\", MAX_RECT_HEIGHT);\n\t\t\n\t\t//SCALE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Scale Range Min\");\n\t\t//SCALE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Scale Range Max\");\n\t\t//MIN_MATCH_SCORE = (int)SmartDashboard.getNumber(\"Min Match Score\");\n //Look at the color frame for colors that fit the range. Colors that fit the range will be transposed as a 1 to the binary frame.\n\t\t\n\t\tNIVision.imaqColorThreshold(binaryFrame, colorFrame, 255, ColorMode.HSV, RETRO_HUE_RANGE, RETRO_SAT_RANGE, RETRO_VAL_RANGE);\n\t\t//Send the binary image to the cameraserver\n\t\tif(cameraView.getSelected() == BINARY)\n\t\t{\n\t\t\tCameraServer.getInstance().setImage(binaryFrame);\n\t\t}\n\n\t\tcriteria[0] = new NIVision.ParticleFilterCriteria2(NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA, AREA_MINIMUM, 100.0, 0, 0);\t\t\n\t\t\n NIVision.imaqParticleFilter4(binaryFrame, binaryFrame, criteria, filterOptions, null);\n\n // NIVision.RectangleDescriptor rectangleDescriptor = new NIVision.RectangleDescriptor(MIN_RECT_WIDTH, MAX_RECT_WIDTH, MIN_RECT_HEIGHT, MAX_RECT_HEIGHT);\n// \n// //I don't know\n// NIVision.CurveOptions curveOptions = new NIVision.CurveOptions(NIVision.ExtractionMode.NORMAL_IMAGE, 0, NIVision.EdgeFilterSize.NORMAL, 0, 1, 1, 100, 1,1);\n// NIVision.ShapeDetectionOptions shapeDetectionOptions = new NIVision.ShapeDetectionOptions(1, rectAngleRanges, SCALE_RANGE, MIN_MATCH_SCORE);\n// NIVision.ROI roi = NIVision.imaqCreateROI();\n//\n// NIVision.DetectRectanglesResult result = NIVision.imaqDetectRectangles(binaryFrame, rectangleDescriptor, curveOptions, shapeDetectionOptions, roi);\n// //Dummy rectangle to start\n// \n// NIVision.RectangleMatch bestMatch = new NIVision.RectangleMatch(new PointFloat[]{new PointFloat(0.0, 0.0)}, 0, 0, 0, 0);\n// \n// //Find the best matching rectangle\n// for(NIVision.RectangleMatch match : result.array)\n// {\n// \tif(match.score > bestMatch.score)\n// \t{\n// \t\tbestMatch = match;\n// \t}\n// }\n// SmartDashboard.putNumber(\"Rect height\", bestMatch.height);\n// SmartDashboard.putNumber(\"Rect Width\", bestMatch.width);\n// SmartDashboard.putNumber(\"Rect rotation\", bestMatch.rotation);\n// SmartDashboard.putNumber(\"Rect Score\", bestMatch.score);\n \n //Report how many particles there are\n\t\tint numParticles = NIVision.imaqCountParticles(binaryFrame, 1);\n\t\tSmartDashboard.putNumber(\"Masked particles\", numParticles);\n\t\t\n \n\t\tif(numParticles > 0)\n\t\t{\n\t\t\t//Measure particles and sort by particle size\n\t\t\tVector<ParticleReport> particles = new Vector<ParticleReport>();\n\t\t\tfor(int particleIndex = 0; particleIndex < numParticles; particleIndex++)\n\t\t\t{\n\t\t\t\tParticleReport par = new ParticleReport();\n\t\t\t\tpar.Area = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA);\n\t\t\t\tpar.AreaByImageArea = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA);\n\t\t\t\tpar.BoundingRectTop = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_TOP);\n\t\t\t\tpar.BoundingRectLeft = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_LEFT);\n\t\t\t\tpar.BoundingRectHeight = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_HEIGHT);\n\t\t\t\tpar.BoundingRectWidth = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_WIDTH);\n\t\t\t\tparticles.add(par);\n\n\t\t\t}\n\t\t\tparticles.sort(null);\n\n\t\t\t//This example only scores the largest particle. Extending to score all particles and choosing the desired one is left as an exercise\n\t\t\t//for the reader. Note that this scores and reports information about a single particle (single L shaped target). To get accurate information \n\t\t\t//about the location of the tote (not just the distance) you will need to correlate two adjacent targets in order to find the true center of the tote.\n//\t\t\tscores.Aspect = AspectScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Aspect\", scores.Aspect);\n//\t\t\tscores.Area = AreaScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Area\", scores.Area);\n//\t\t\tboolean isTote = scores.Aspect > SCORE_MIN && scores.Area > SCORE_MIN;\n//\n\t\t\tParticleReport bestParticle = particles.elementAt(0);\n\t\t NIVision.Rect particleRect = new NIVision.Rect((int)bestParticle.BoundingRectTop, (int)bestParticle.BoundingRectLeft, (int)bestParticle.BoundingRectHeight, (int)bestParticle.BoundingRectWidth);\n\t\t \n\t\t //NIVision.imaqOverlayRect(colorFrame, particleRect, new NIVision.RGBValue(0, 0, 0, 255), DrawMode.PAINT_VALUE, \"a\");//;(colorFrame, colorFrame, particleRect, DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 20);\n\t\t NIVision.imaqDrawShapeOnImage(colorFrame, colorFrame, particleRect, NIVision.DrawMode.DRAW_VALUE, ShapeMode.SHAPE_RECT, 0.0f);\n\t\t SmartDashboard.putNumber(\"Rect Top\", bestParticle.BoundingRectTop);\n\t\t SmartDashboard.putNumber(\"Rect Left\", bestParticle.BoundingRectLeft);\n\t\t SmartDashboard.putNumber(\"Rect Width\", bestParticle.BoundingRectWidth);\n\t\t SmartDashboard.putNumber(\"Area by image area\", bestParticle.AreaByImageArea);\n\t\t SmartDashboard.putNumber(\"Area\", bestParticle.Area);\n\t\t double bestParticleMidpoint = bestParticle.BoundingRectLeft + bestParticle.BoundingRectWidth/2.0;\n\t\t double bestParticleMidpointAimingCoordnates = pixelCoordnateToAimingCoordnate(bestParticleMidpoint, CAMERA_RESOLUTION_X);\n\t\t angleToTarget = aimingCoordnateToAngle(bestParticleMidpointAimingCoordnates, VIEW_ANGLE);\n\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\tangleToTarget = 0.0;\n\t\t}\n\n if(cameraView.getSelected() == COLOR)\n {\n \tCameraServer.getInstance().setImage(colorFrame);\n }\n\t SmartDashboard.putNumber(\"Angle to target\", angleToTarget);\n\n }", "protected Coord3d modelToScreen(Coord3d model) {\n IPainter painter = getChart().getPainter();\n\n painter.acquireGL();\n\n int[] viewport = getViewportExcludingColorbar();\n float modelView[] = painter.getModelViewAsFloat();\n float projection[] = painter.getProjectionAsFloat();\n\n Coord3d screen = painter.modelToScreen(model, viewport, modelView, projection);\n painter.releaseGL();\n\n return screen;\n }", "public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n\t\tGLES20.glViewport(0, 0, width, height);\n\t\tLog.d(\"ShelXle.Droid Screen Size\", width + \" \" + height);\n\t\tpixh = height;\n\t\tpixw = width;\n\t\tfpsscal = 350.0f / Math.min(width, height);\n\t\tfpsMat[0] = -fpsscal;\n\t\tfpsMat[12] = 1.0f - fpsscal;\n\t\tfpsMat3[0] = -fpsscal*1.24f;\n\t\tfpsMat3[12] = 1.0f - fpsscal*1.24f;\n\n\t\tfpsMat4[0] = -fpsscal*1.26f;\n\t\tfpsMat4[12] = 1.0f - fpsscal*1.26f;\n\t\tfpsMat2[0] = -0.25f * fpsscal;\n\t\tLog.d(\"ShelXle.Droid FPS text scaling \", fpsscal + \" \");\n\t\tfloat ratio = (float) width / height;\n\t\tfloat fh = (float) Math.tan(29.0 / 360.0 * 3.14159265358979) * 5.0f;\n\t\tfloat fw = fh * ratio;\n\t\tMatrix.frustumM(proj, 0, -fw, fw, -fh, fh, 5.0f, 800.0f);\n\t\tMatrix.setLookAtM(mv, 0, 0.0f, 200f, 0f, 0f, 0.0f, 0.0f, 0.0f, 00f, 1f);\n\t\tMatrix.multiplyMM(pmv1, 0, proj, 0, mv, 0);\n\t\tSystem.arraycopy(pmv1, 0, proj, 0, 16);\n\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t/*\n\t\t * if (f!=null){ f.write(proj); f.write(proj);\n\t\t * \n\t\t * }\n\t\t */\n\t\t// Matrix.setIdentityM(proj,0);\n\t\t// Matrix.perspectiveM(proj, 0, 29.0f,ratio,5.0f,800.0f);\n\n\t}", "public void updateParametersSceneMode() {\n Stringifier stringifier = this.mCameraCapabilities.getStringifier();\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n this.mSceneMode = stringifier.sceneModeFromString(settingsManager.getString(this.mAppController.getCameraScope(), Keys.KEY_SCENE_MODE));\n if (Keys.isHdrOn(settingsManager) && !isCameraFrontFacing() && isHdrShow()) {\n if (this.mSceneMode != SceneMode.HDR) {\n this.mSceneMode = SceneMode.HDR;\n settingsManager.set(this.mAppController.getCameraScope(), Keys.KEY_SCENE_MODE, this.mCameraCapabilities.getStringifier().stringify(this.mSceneMode));\n }\n } else if (this.mSceneMode == SceneMode.HDR) {\n this.mSceneMode = SceneMode.AUTO;\n settingsManager.set(this.mAppController.getCameraScope(), Keys.KEY_SCENE_MODE, this.mCameraCapabilities.getStringifier().stringify(this.mSceneMode));\n }\n if (!this.mCameraCapabilities.supports(this.mSceneMode)) {\n this.mSceneMode = this.mCameraSettings.getCurrentSceneMode();\n if (this.mSceneMode == null) {\n this.mSceneMode = SceneMode.AUTO;\n }\n } else if (this.mCameraSettings.getCurrentSceneMode() != this.mSceneMode) {\n this.mCameraSettings.setSceneMode(this.mSceneMode);\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n this.mCameraSettings = this.mCameraDevice.getSettings();\n }\n }\n this.mCameraSettings.setSceneMode(this.mSceneMode);\n updateParametersFlashMode();\n if (SceneMode.AUTO == this.mSceneMode) {\n updateParametersFocusMode();\n } else {\n this.mFocusManager.overrideFocusMode(this.mCameraSettings.getCurrentFocusMode());\n }\n }", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "@Override\n public void runOpMode() {\n frontLeftWheel = hardwareMap.dcMotor.get(\"frontLeft\");\n backRightWheel = hardwareMap.dcMotor.get(\"backRight\");\n frontRightWheel = hardwareMap.dcMotor.get(\"frontRight\");\n backLeftWheel = hardwareMap.dcMotor.get(\"backLeft\");\n\n //telemetry sends data to robot controller\n telemetry.addData(\"Output\", \"hardwareMapped\");\n\n // The TFObjectDetector uses the camera frames from the VuforiaLocalizer, so we create that\n // first.\n initVuforia();\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n\n /**\n * Activate TensorFlow Object Detection before we wait for the start command.\n * Do it here so that the Camera Stream window will have the TensorFlow annotations visible.\n **/\n if (tfod != null) {\n tfod.activate();\n }\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start op mode\");\n telemetry.update();\n waitForStart();\n\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if(updatedRecognitions == null) {\n frontLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backLeftWheel.setPower(0);\n backRightWheel.setPower(0);\n } else if (updatedRecognitions != null) {\n telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n // step through the list of recognitions and display boundary info.\n int i = 0;\n\n\n for (Recognition recognition : updatedRecognitions) {\n float imageHeight = recognition.getImageHeight();\n float blockHeight = recognition.getHeight();\n\n //-----------------------\n// stoneCX = (recognition.getRight() + recognition.getLeft())/2;//get center X of stone\n// screenCX = recognition.getImageWidth()/2; // get center X of the Image\n// telemetry.addData(\"screenCX\", screenCX);\n// telemetry.addData(\"stoneCX\", stoneCX);\n// telemetry.addData(\"width\", recognition.getImageWidth());\n //------------------------\n\n telemetry.addData(\"blockHeight\", blockHeight);\n telemetry.addData(\"imageHeight\", imageHeight);\n telemetry.addData(String.format(\"label (%d)\", i), recognition.getLabel());\n telemetry.addData(String.format(\" left,top (%d)\", i), \"%.03f , %.03f\", recognition.getLeft(), recognition.getTop());\n telemetry.addData(String.format(\" right,bottom (%d)\", i), \"%.03f , %.03f\", recognition.getRight(), recognition.getBottom());\n\n\n if(hasStrafed == false) {\n float midpoint = (recognition.getLeft() + recognition.getRight()) /2;\n float multiplier ;\n if(midpoint > 500) {\n multiplier = -(((int)midpoint - 500) / 100) - 1;\n log = \"Adjusting Right\";\n sleep(200);\n } else if(midpoint < 300) {\n multiplier = 1 + ((500 - midpoint) / 100);\n log = \"Adjusting Left\";\n sleep(200);\n } else {\n multiplier = 0;\n log = \"In acceptable range\";\n hasStrafed = true;\n }\n frontLeftWheel.setPower(-0.1 * multiplier);\n backLeftWheel.setPower(0.1 * multiplier);\n frontRightWheel.setPower(-0.1 * multiplier);\n backRightWheel.setPower(0.1 * multiplier);\n } else {\n if( blockHeight/ imageHeight < .5) {\n frontLeftWheel.setPower(-.3);\n backLeftWheel.setPower(.3);\n frontRightWheel.setPower(.3);\n backRightWheel.setPower(-.3);\n telemetry.addData(\"detecting stuff\", true);\n } else {\n frontLeftWheel.setPower(0);\n backLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backRightWheel.setPower(0);\n telemetry.addData(\"detecting stuff\", false);\n }\n }\n\n telemetry.addData(\"Angle to unit\", recognition.estimateAngleToObject(AngleUnit.DEGREES));\n telemetry.addData(\"Log\", log);\n\n }\n telemetry.update();\n }\n\n }\n }\n }\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "void cameraSetup();", "public void renderFrame(State state, float[] lPMatrix) {\n\t\tisModelVisible = false;\n\t\t// Renders video background replacing Renderer.DrawVideoBackground()\n\t\tmRenderer.renderVideoBackground();\n\n\t\tGLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glEnable(GLES20.GL_CULL_FACE);\n\t\tGLES20.glCullFace(GLES20.GL_BACK);\n\t\tGLES20.glEnable(GLES20.GL_BLEND);\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n\t\t// Did we find any trackables this frame?\n\t\tfor (int tIdx = 0; tIdx < state.getNumTrackableResults(); tIdx++) {\n\t\t\tmActivity.setFirstLoading();\n\t\t\tisModelVisible = true;\n\t\t\tTrackableResult result = state.getTrackableResult(tIdx);\n\t\t\t//Trackable trackable = result.getTrackable();\n\t\t\t//printUserData(trackable);\n\t\t\tMatrix44F modelViewMatrix_Vuforia = Tool.convertPose2GLMatrix(result.getPose());\n\n\t\t\tfloat[] lMVMatrix = modelViewMatrix_Vuforia.getData();\n\t\t\tfloat[] lMVPMatrix = new float[16];\n\n\t\t\t//String trackName = trackable.getName();\n\t\t\tint textureIndex = 0;\n\n\t\t\t//mActivity.showDebugMsg(trackable.getName());\n\n\t\t\t// deal with the modelview and projection matrices\n\n\n\t\t\tMatrix.translateM(lMVMatrix, 0, startX, startY, startZ);\n\t\t\tMatrix.scaleM(lMVMatrix, 0, objectScaleFloat, objectScaleFloat, objectScaleFloat);\n\t\t\t/// rotate based on gestures\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatZ, 0, 0, 1.0f);\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatY, 0, 1.0f, 0);\n\n\t\t\tMatrix.multiplyMM(lMVPMatrix, 0, lPMatrix, 0, lMVMatrix, 0);\n\n\t\t\t// activate the shader program and bind the vertex/normal/tex coords\n\t\t\tGLES20.glUseProgram(shaderProgramID);\n\n\t\t\tGLES20.glVertexAttribPointer(vertexHandle, 3, GLES20.GL_FLOAT, false, 0, object.getVertices());\n\t\t\tGLES20.glVertexAttribPointer(textureCoordHandle, 2, GLES20.GL_FLOAT, false, 0, object.getTexCoords());\n\n\t\t\tGLES20.glEnableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glEnableVertexAttribArray(textureCoordHandle);\n\n\t\t\t// bind the texture and pass to shader\n\t\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextures.get(textureIndex).mTextureID[0]);\n\t\t\tGLES20.glUniform1i(texSampler2DHandle, 0);\n\n\t\t\t// pass the model view matrix to the shader\n\t\t\tGLES20.glUniformMatrix4fv(mvpMatrixHandle, 1, false, lMVPMatrix, 0);\n\n\t\t\t// vykreslit objekt\n\t\t\t// if indices are set in 3D object\n\t\t\tif(object.getNumObjectIndex() > 0) {\n\t\t\t\tGLES20.glDrawElements(GLES20.GL_TRIANGLES, object.getNumObjectIndex(), GLES20.GL_UNSIGNED_SHORT,\n\t\t\t\t\t\tobject.getIndices());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements with INDICES\");\n\t\t\t}else {\n\t\t\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, object.getNumObjectVertex());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements without INDICES\");\n\t\t\t}\n\n\t\t\t// disable the enabled arrays\n\t\t\tGLES20.glDisableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glDisableVertexAttribArray(textureCoordHandle);\n\t\t\tArUtils.checkGLError(\"Render Frame\");\n\t\t}\n\n\t\tGLES20.glDisable(GLES20.GL_BLEND);\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\n\t}", "@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }", "private void onCameraModeChangedTo(int n) {\n Camera.Parameters parameters = this.mStateMachine.getCurrentCameraParameters(false);\n if (!(parameters != null && this.isHeadUpDesplayReady())) {\n return;\n }\n int n2 = parameters.getPreviewSize().width;\n int n3 = parameters.getPreviewSize().height;\n Rect rect = LayoutDependencyResolver.getSurfaceRect((Activity)this.mActivity, (float)n2 / (float)n3);\n PositionConverter.getInstance().setSurfaceSize(rect.width(), rect.height());\n PositionConverter.getInstance().setPreviewSize(n2, n3);\n this.mFocusRectangles.updateDevicePreviewSize(n2, n3);\n this.mFocusRectangles.clearExceptTouchFocus();\n switch (n) {\n default: {\n throw new IllegalArgumentException(\"ViewFinder.onCameraModeChangedTo():[INVALID]\");\n }\n case 1: {\n super.setupCapturingModeSelectorButton(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY);\n super.updateViewFinderCaptureAreaTouchEventHandling(this.mTouchCapture, BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY);\n this.mSettingDialogStack.showShortcutTray();\n super.setupZoomBar(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY);\n break;\n }\n case 2: {\n super.setupCapturingModeSelectorButton(BaseFastViewFinder.HeadUpDisplaySetupState.VIDEO_RECORDING);\n super.updateViewFinderCaptureAreaTouchEventHandling(this.mTouchCapture, BaseFastViewFinder.HeadUpDisplaySetupState.VIDEO_STANDBY);\n this.mSettingDialogStack.showShortcutTray();\n super.setupZoomBar(BaseFastViewFinder.HeadUpDisplaySetupState.VIDEO_STANDBY);\n }\n }\n this.setOrientation(this.getOrientation());\n }", "public void update()\n {\n int screenHeight;\n int screenWidth;\n \n // Only update if the video memory has been updated\n// if (!videocard.vgaMemReqUpdate)\n// return;\n\n // Determine if in graphic/text mode; this is set in graphics register 0x06\n if (videocard.graphicsController.alphaNumDisable != 0)\n {}\n\n // alphaNumDisable == 0; Text mode\n else\n {\n // Cursor attributes\n int cursorXPos; // Cursor column position\n int cursorYPos; // Cursor row position\n int cursorWidth = 8; // 8 or 9 pixel cursor width\n int fullCursorAddress = 162; // Cursor location (byte number in vga memory) \n\n // Screen attributes \n int maxScanLine = 15; // Character height - 1\n int numColumns = 80; // (Char. clocks - 1) + 1 , i.e. number of columns\n int numRows = 25; // Number of text rows in screen \n screenWidth = cursorWidth * numColumns; // Screen width in pixels\n videocard.verticalDisplayEnd = 399;\n screenHeight = videocard.verticalDisplayEnd + 1; // Screen height in pixels\n \n int fullStartAddress = 0; // Upper left character of screen\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" update() in progress; text mode\");\n \n // Collect text features to be passed to screen update\n textModeAttribs.fullStartAddress = (short) 0; \n textModeAttribs.cursorStartLine = (byte) 14;\n textModeAttribs.cursorEndLine = (byte) 15;\n textModeAttribs.lineOffset = (short) 160;\n textModeAttribs.lineCompare = (short) 1023;\n textModeAttribs.horizPanning = (byte) 0;\n textModeAttribs.vertPanning = (byte) 0;\n textModeAttribs.lineGraphics = 1;\n textModeAttribs.splitHorizPanning = 0;\n \n // Check if the GUI window needs to be resized\n if ((screenWidth != oldScreenWidth) || (screenHeight != oldScreenHeight) || (maxScanLine != oldMaxScanLine))\n {\n screen.updateScreenSize(screenWidth, screenHeight, cursorWidth, maxScanLine + 1);\n oldScreenWidth = screenWidth;\n oldScreenHeight = screenHeight;\n oldMaxScanLine = maxScanLine;\n }\n\n // Determine cursor position in terms of rows and columns\n if (fullCursorAddress < fullStartAddress) // Cursor is not on screen, so set unreachable values\n {\n cursorXPos = 0xFFFF;\n cursorYPos = 0xFFFF;\n }\n else // Cursor is on screen, calculate position\n {\n cursorXPos = ((fullCursorAddress - fullStartAddress) / 2) % (screenWidth / cursorWidth);\n cursorYPos = ((fullCursorAddress - fullStartAddress) / 2) / (screenWidth / cursorWidth);\n }\n \n // Call screen update for text mode\n screen.updateText(0, fullStartAddress, cursorXPos, cursorYPos, textModeAttribs.getAttributes(), numRows);\n \n // Screen has been updated, copy new contents into 'snapshot'\n System.arraycopy(videocard.vgaMemory, fullStartAddress, videocard.textSnapshot, 0, 2 * numColumns * numRows);\n \n videocard.vgaMemReqUpdate = false;\n }\n }", "private native void setModelColor(float r,float g,float b);", "@Override\n protected void screenMode(int mode) {\n\n }", "void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }", "@Override\n\tpublic void onSurfaceChanged(GL10 gl, int width, int height) {\n\tgl.glViewport(0, 0, width, height);\n\t//set projection matrix as active matrix\n\tgl.glMatrixMode(GL10.GL_PROJECTION); \n\t//load identity matrix to multiply with next matrix operation\n\tgl.glLoadIdentity(); \n\t//set perspective projection(GL10,FovY,Aspect,zNear,zFar)\n\tGLU.gluPerspective(gl, 70,width/(float)height,0.1f, 10f);\n\t//set ModelView matrix as active\n\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t}", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}", "public void restoreCamera() {\r\n float mod=1f/10f;\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n p.frustum(-(width/2)*mod, (width/2)*mod,\r\n -(height/2)*mod, (height/2)*mod,\r\n cameraZ*mod, 10000);\r\n }", "public void setup()\n {\t\nint i;\n// Clear screen and depth buffer\n\n\n }", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void changeScreen() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\thomeScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\tinstructionScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Esperar jugadores\n\t\tcase 2:\n\t\t\tplayerWaitScreen.draw();\n\t\t\tscreen = 3;\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Juego\n\t\tcase 3:\n\t\t\tgameScreen.draw();\n\t\t\tc.draw();\n\t\t\tc.move();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "@FXML\n\tpublic void handleModeScreenButton(){\n\t mainAnimation.stop();\n\t\tScreen cs = new Screen(this.getStage(), \"Select Mode to Play\", \"View/ModeScreen.fxml\");\n\t\tController controller = new ModeScreenController(this.getStage());\n\t\tcs.display(controller);\n\t}", "@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n \n float ratio = (float) width / height;\n /*\n mWidth = width;\n mHeight = height;\n */\n \n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n /*\n Near / far clipping planes, in terms of units away from the camera\n Cannot be negative or 0, should not be close to 0\n */\n //Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 0.5f, 21);\n \n }", "public void captureGame() {\n gameScreen = robot.createScreenCapture(rect);\n gamePixels = gameScreen.getRGB(0, 0, gameScreen.getWidth(),\n gameScreen.getHeight(), null, 0, gameScreen.getWidth());\n }", "private void drawDynamic() {\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "@Override\n public void onCameraViewStarted(int width, int height){\n mRgba = new Mat(height, width, CvType.CV_8UC4);\n mGray = new Mat(height, width, CvType.CV_8UC1);\n mDrawingLayer = new Mat(height,width,CvType.CV_8UC4);\n mMixed = new Mat(height,width,CvType.CV_8UC4);\n mOutput = new Mat(width,height,CvType.CV_8UC4);\n mGaussianMask = new Mat();\n\n Mat horizontal = Imgproc.getGaussianKernel(width * 2, staticConfig.vignetteLevel,CvType.CV_32F);\n Mat vertical = Imgproc.getGaussianKernel(height * 2, staticConfig.vignetteLevel, CvType.CV_32F);\n Mat matrix = new Mat();\n Core.gemm(vertical,horizontal,1,new Mat(),0,matrix,Core.GEMM_2_T);\n Core.MinMaxLocResult mmr = Core.minMaxLoc(matrix);\n Core.divide(matrix,new Scalar(mmr.maxVal),mGaussianMask);\n\n /* initialising mats that are necessary for frame processing */\n mEdges = new Mat(height, width, CvType.CV_8UC1);\n mTemplateTargetPoints = new MatOfPoint2f(new Point(0, 0), new Point(0, staticConfig.templateSize),new Point(staticConfig.templateSize,staticConfig.templateSize),new Point(staticConfig.templateSize,0));\n mFrameBox = new MatOfPoint2f();\n /* mTemplateTargetPoints.fromArray(new Point(0, 0), new Point(0, staticConfig.templateSize),new Point(staticConfig.templateSize,staticConfig.templateSize),new Point(staticConfig.templateSize,0)); */\n\n /* loading template */\n /* the template is a 200 x 50 png image */\n /* containing the template in 4 different orientations */\n\n mTemplate = new Mat();\n InputStream stream = null;\n Uri uri = Uri.parse(\"android.resource://au.com.pandamakes.www.pureblacktea/drawable/templatelg7\");\n try{\n stream = getContentResolver().openInputStream(uri);\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }\n BitmapFactory.Options bmpFactoryOptions = new BitmapFactory.Options();\n bmpFactoryOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;\n Bitmap bmp = BitmapFactory.decodeStream(stream,null,bmpFactoryOptions);\n Utils.bitmapToMat(bmp, mTemplate);\n mTemplateGray = new Mat();\n Imgproc.cvtColor(mTemplate, mTemplateGray, Imgproc.COLOR_RGB2GRAY);\n\n /* setting up feature detectors */\n mDetector = FeatureDetector.create(FeatureDetector.ORB);\n mExtractor = DescriptorExtractor.create(DescriptorExtractor.ORB);\n mMatcher = DescriptorMatcher.create(DescriptorExtractor.ORB);\n\n /* detect key points */\n mKeyPoints = new MatOfKeyPoint();\n mDescriptor = new Mat();\n mDetector.detect(mTemplateGray, mKeyPoints);\n mExtractor.compute(mTemplateGray, mKeyPoints, mDescriptor);\n List<KeyPoint> listKeyPoint = mKeyPoints.toList();\n mArrayListTemplateKP = new ArrayList<>();\n for(int i = 0; i<listKeyPoint.size(); i++){\n mArrayListTemplateKP.add(listKeyPoint.get(i).pt);\n }\n mFrameKP = new MatOfPoint2f();\n mKpMat = new MatOfKeyPoint();\n\n /* setting up templates */\n Imgproc.resize(mTemplateGray, mTemplateGray, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n mTemplate90 = new Mat();\n Core.transpose(mTemplateGray, mTemplate90);\n Core.flip(mTemplate90, mTemplate90, 0);\n\n mTemplate180 = new Mat();\n Core.flip(mTemplateGray,mTemplate180,-1);\n\n mTemplate270 = new Mat();\n Core.flip(mTemplate90,mTemplate270,-1);\n\n /* options associated with rendering */\n mCameraCaliberation = new Mat(3,3,CvType.CV_32F);\n float data[] = {3284,0,(float) width/2,0,3284,(float) height/2,0,0,1};\n mCameraCaliberation.put(0,0,data);\n mRefCoord = new MatOfPoint3f();\n mRefBox = new MatOfPoint3f(new Point3(-50,-50,0),new Point3(-50,50,0),new Point3(50,50,0),new Point3(50,-50,0));\n mRVec = new Mat();\n mTVec = new Mat();\n mCaptureAreaAdjusted = new MatOfPoint2f();\n\n /* helper class */\n mXAxis = new visualisation();\n mXAxis.start = new Point3(0,0,0);\n mXAxis.end = new Point3(30,0,0);\n mXAxis.width = 3;\n mXAxis.color = new Scalar(155,55,55);\n\n mYAxis = new visualisation();\n mYAxis.start = new Point3(0,0,0);\n mYAxis.end = new Point3(0,30,0);\n mYAxis.width = 3;\n mYAxis.color = new Scalar(55,155,55);\n\n mZAxis = new visualisation();\n mZAxis.start = new Point3(0,0,0);\n mZAxis.end = new Point3(0,0,-30);\n mZAxis.width = 3;\n mZAxis.color = new Scalar(55,55,155);\n\n /* other misc settings */\n mScanCenter = new Point(width/2,height/2);\n mBoxCenter = new Point(width/2,height/2);\n mScanWidth = staticConfig.scanWidth;\n mRectBorder = new Scalar(200,200,50);\n mLostTrackCounter = 0;\n\n mMostRight = width;\n mMostBottom = height;\n\n adjustROI(mScanCenter,mDetectionBoxSize);\n\n /* init visualisation parameters */\n if(staticConfig.showMolecule){\n mMolecule = new ArrayList<>();\n Boolean flag1 = false,\n flag2 = false;\n File molFile = new File(getFilesDir()+\"/mol.mol\");\n try{\n BufferedReader reader = new BufferedReader(new FileReader(molFile));\n String line;\n while((line=reader.readLine())!=null){\n if(line.contains(\"END\")){\n break;\n }else if(flag2){\n\n }else if(flag1){\n if(line.replace(\" \",\"\").contains(\"000000000000\")) {\n visualisation newAtom = new visualisation();\n try{\n newAtom.initAtom(line);\n }catch (NumberFormatException e){\n /* if a double parsing error occurred */\n mMolecule = new ArrayList<>();\n boolean deleted = molFile.delete();\n if(deleted){\n Toast.makeText(getApplicationContext(),\"Coordinates NaN. For the healthiness of the app, the mol file was deleted.\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Coordinates NaN. The file was not able to be deleted somehow.\",Toast.LENGTH_LONG).show();\n }\n break;\n }\n mMolecule.add(newAtom);\n }else{\n flag2 = true;\n }\n }else if(line.contains(\"V2000\")){\n flag1 = true;\n }\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n }", "public interface Render2DProvider {\n /*---------------------------------------Static params-------------------------------------------------------------*/\n public enum STYLE {\n COLOR, GRADIENT\n }\n\n public enum CAP {BUTT, ROUND, SQUARE}\n\n public enum JOIN {ROUND, BEVEL, MITER}\n\n public enum TEXT_ALIGN {START, END, LEFT, RIGHT, CENTER}\n\n public enum TEXT_BASELINE {TOP, HANGING, MIDDLE, ALPHABETIC, IDEOGRAPHIC, BOTTOM}\n\n\n /*---------------------------------------Screen details-------------------------------------------------------------*/\n\n /**\n * Returns the current screen width.\n *\n * @return screen width.\n */\n public int getScreenWidth();\n\n /**\n * Returns the current screen height.\n *\n * @return screen height.\n */\n public int getScreenHeight();\n\n /**\n * Converts the formatted length string into the corresponding dimension in pixels. The formatted string includes\n * a number and a suffix, which can be one of the fallowing : px for pixels, % for percent fallowed by w or h (w\n * for a percentage based of the width of the screen and h for a percentage based on the height on the screen).\n *\n * @param dimension a formatted string representing the dimension to be converted.\n * @return the dimension converted to pixels. If the formatted string contains errors , then the function\n * will return -1.\n */\n public int convertDimension(String dimension);\n\n /**\n * Converts the given color formatted as a string, into a {@link Color} object. The formatted string can be one of\n * two types:\n * <ul>\n * <li>\n * A color comprised of a # symbol fallowed by four pairs of hexadecimal numbers, which represent,\n * in order : red, green, blue, and alpha. For example #A000007F results in a dark semitransparent red.\n * </li>\n * <li>\n * A color comprised of a function call to rgba(...) which takes 4 params, all numbers between 0 and 255,\n * representing , in order : red, green , blue and alpha. For example rgba(160, 0, 0, 127) yelds the\n * same color as before.\n * </li>\n * <li>\n * A color comprised of a function call to rgb(...) which takes 3 params, all numbers between 0 and 255,\n * representing , in order : red, green and blue. For example rgb(160, 0, 0) yields the same color as before,\n * except it is now fully opaque. The value of alpha is considered to be fully opaque.\n * </li>\n * </ul>\n *\n * @param color the color formatted as a string.\n * @return the corresponding {@link Color} object.\n */\n public Color convertColor(String color);\n\n /**\n * Returns the given string's width when drawn, using the current text metrics.\n *\n * @param text which text to calculate it's dimension.\n * @return the width of the string as it will be rendered on the screen.\n */\n public int getStringWidth(String text);\n\n /*---------------------------------------Drawing style-------------------------------------------------------------*/\n\n\n /**\n * Sets the active fille color.\n *\n * @param color the color to use for future drawings.\n */\n public void setFillColor(Color color);\n\n /**\n * Sets the active fill gradient.\n */\n public void setFillGradient(Gradient gradient);\n\n /**\n * Sets the active stroke color.\n *\n * @param color the color to use for future drawings.\n */\n public void setStrokeColor(Color color);\n\n /**\n * Sets the active stroke gradient.\n */\n public void setStrokeGradient(Gradient gradient);\n\n\n /**\n * Sets the active drawing color for filled shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setFillStyle(STYLE style);\n\n /**\n * Sets the active drawing color for stroked shapes.\n *\n * @param style drawing style (either color mode or gradient).\n */\n public void setStrokeStyle(STYLE style);\n\n /**\n * Cap style for line drawings.\n *\n * @param cap cap style (butt, round or square endings).\n */\n public void setDrawingCap(CAP cap);\n\n /**\n * Sets the type of join used for line only drawings.\n *\n * @param join the type of line join(round, bevel or miter). Miter size can be set using the setMiterLimit function.\n */\n public void setDrawingJoin(JOIN join);\n\n /**\n * Sets the miter limit when the join type is miter.\n *\n * @param limit miter limit.\n */\n public void setMiterLimit(float limit);\n\n /**\n * Sets the line width when drawing only with lines.\n *\n * @param lineWidth line width.\n */\n public void setLineWidth(float lineWidth);\n\n /**\n * Sets the font for when drawing / stroking text.\n *\n * @param font which font to use given\n */\n public void setTextFont(Font font);\n\n /**\n * Sets which text align to use when drawing strings.\n *\n * @param align\n */\n public void setTextAlign(TEXT_ALIGN align);\n\n /**\n * Sets which baseline to use when drawing strings.\n *\n * @param baseline\n */\n public void setTextBaseline(TEXT_BASELINE baseline);\n\n /**\n * Sets the current drawing alpha. All subsequent drawing operations will be affected by this alpha value.\n *\n * @param alpha a value between 0 and 1 representing drawing alpha.\n */\n public void setAlpha(float alpha);\n\n /**\n * Returns the current drawing alpha.\n *\n * @return the current drawing alpha.\n */\n public float getAlpha();\n\n /*---------------------------------------General drawing-----------------------------------------------------------*/\n\n /**\n * Begins the drawing cycle. Useful for double buffering and predrawing techniques.\n */\n public void beginDrawing();\n\n /**\n * Ends the current drawing cycle. Useful for flushing the double buffer to the screen.\n */\n public void endDrawing();\n\n /**\n * This method saves all the current params for the drawing api (like color, clipping area etc). This method\n * should be called before setting custom drawing params.\n */\n public void pushState();\n\n /**\n * This method restores current drawing params (like color, fill styles etc.). This method should be called\n * after setting cutom params for drawing.\n */\n public void popState();\n\n /**\n * Clear the entire screen using a complete transparent black.\n */\n public void clearAll();\n\n /**\n * Clear only a portion of the screen using a complete transparent black.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void clearRect(int x, int y, float width, float height);\n\n /**\n * Sets clipping area for future drawing. Any drawings outside this rectangle will not be rendered.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n */\n public void setRectangleClip(int x, int y, float width, float height);\n\n /**\n * Sets the clipping area for future drawings in the shape of a rounded rectangle.\n *\n * @param x x coordinate for the top left corner of the rectangle.\n * @param y y coordinate for the top left corner of the rectangle.\n * @param width width of the rectangle.\n * @param height height of the rectangle.\n * @param radius the radius of the rounded rectangle.\n */\n public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);\n\n /**\n * Sets the clipping area for future drawings in the shape of a circle.\n *\n * @param x the x coordinate for the center of the circle.\n * @param y the y coordinate for the center of the circle.\n * @param radius the radius of the circle.\n */\n public void setCircleClip(int x, int y, int radius);\n\n /**\n * Removes clipping area. Has the same affect as calling {@link Render2DProvider#setRectangleClip(int, int, float, float)}\n * with a rectangle described by coordinates (0, 0) and dimensions (\n * {@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth(),\n * ({@link edu.catalindumitru.bee.graphics.Render2DProvider#getScreenWidth()}}\n */\n public void removeClip();\n\n /*-------------------------------------Drawing Transform------------------------------------------------------------*/\n\n /**\n * Translates the origin of future drawing on the screen.\n *\n * @param x amount on the x axis to translate.\n * @param y amount on the y axis to translate.\n */\n public void translate(float x, float y);\n\n /**\n * Rotates the drawing api which will affect all future drawings.\n *\n * @param angle the amount to rotate in radians.\n */\n public void rotate(float angle);\n\n /**\n * Scales the drawing api which will affect all future drawings.\n *\n * @param x amount on the x axis to scale.\n * @param y amount on the y axis to scale.\n */\n public void scale(float x, float y);\n\n /**\n * Adds the given values to the transform of the drawing api, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void transform(float a11, float a12, float a21, float a22, float x, float y);\n\n /**\n * Sets the transform of the drawing api to the given values, which will affect all future drawings.\n * Values (a11, a21, a12, a22) affect scale and rotation and values (x, y) affect translation.\n *\n * @param a11 value from position (1,1) of the transform matrix.\n * @param a21 value from position (2,1) of the transform matrix.\n * @param a12 value from position (2,1) of the transform matrix.\n * @param a22 value from position (2,2) of the transform matrix.\n * @param x value from position (3,1) of the transform matrix.\n * @param y value from position (3,2) of the transform matrix.\n */\n public void setTransform(float a11, float a12, float a21, float a22, float x, float y);\n /*---------------------------------------Shape drawing ------------------------------------------------------------*/\n\n /**\n * Fills a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void fillRectangle(int x, int y, int width, int height);\n\n /**\n * Fills a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void fillRectangle(RectangleShape rectangle);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void fillRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Fills the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to fill.\n * @param radius the radius of the corners.\n */\n public void fillRoundRectangle(RectangleShape rectangle, int radius);\n\n\n /**\n * Strokes a rectangle using the current drawing color.\n *\n * @param x x coordinate for the left bottom vertex of the rectangle.\n * @param y x coordinate for the left bottom vertex of the rectangle.\n * @param width width of the rectangle\n * @param height height of the rectangle\n */\n public void strokeRectangle(int x, int y, int width, int height);\n\n /**\n * Strokes a rectangle using the current drawing color. Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n */\n public void strokeRectangle(RectangleShape rectangle);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param x the x coordinate of where the rectangle should begin.\n * @param y the y coordinate of where the rectangle should begin.\n * @param width the width of the rectangle\n * @param height the height of the rectangle.\n * @param radius the radius of the rectangle.\n */\n public void strokeRoundRectangle(int x, int y, int width, int height, int radius);\n\n /**\n * Strokes the rectangle where the corners are rounded to the given radius.\n *\n * @param rectangle the rectangle to stroke.\n * @param radius the radius of the corners.\n */\n public void strokeRoundRectangle(RectangleShape rectangle, int radius);\n\n /**\n * Fills an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void fillArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Strokes an arc using the current drawing color.\n *\n * @param x x coordinate of where the center of the arc should be.\n * @param y y coordinate of where the center of the arc should be.\n * @param radius radius of the arc.\n * @param startAngle staring angle of the arc (measured in radian).\n * @param endAngle ending angle of the arc (measured in radian).\n */\n public void strokeArc(float x, float y, float radius, float startAngle, float endAngle);\n\n /**\n * Creates a filled shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void fillShape(Shape shape);\n\n /**\n * Creates a stroked shape using the current drawing color.Ignores whether or not the shape has the \"filled\" and \"stroked\"\n * params sets to true or false.\n *\n * @param shape which shape to draw.\n */\n public void strokeShape(Shape shape);\n\n /**\n * Draws the given shape using the current fill and stroke color. This uses the shapes own \"filled\" and \"stroked\"\n * params to determine whether or not it should be filled and / or stroked.\n *\n * @param shape which shape to draw.\n */\n public void drawShape(Shape shape);\n\n /*-------------------------------------------Text Drawing ---------------------------------------------------------*/\n\n /**\n * Draws the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to draw.\n */\n public void fillString(float x, float y, String text);\n\n /**\n * Strokes the given text at the given location using preset font, text align, and text baseline.\n *\n * @param x x coordinate for text placement.\n * @param y y coordinate for text placement.\n * @param text which text to stroke.\n */\n public void strokeString(float x, float y, String text);\n\n /*---------------------------------------------ImageResource Drawing-------------------------------------------------------*/\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will retain it's dimensions when drawn.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY);\n\n /**\n * Draw the specified imageResource to the canvas. The source imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight);\n\n /**\n * Draw the specified imageResource to the canvas. The imageResource will be cropped using a rectangle described the the parameters:\n * sourceX, sourceY, sourceWidth and sourceHeight. The cropped imageResource will be drawn at coordinates destinationX,\n * destinationY with the dimensions destinationWidth and destinationHeight. If the height or width differ from\n * the source imageResource, then the imageResource will be scaled accordingly.\n *\n * @param imageResource which imageResource to draw to the canvas.\n * @param destinationX the x coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationY the y coordinate of the top left point on the canvas where the imageResource should be drawn.\n * @param destinationWidth the destination width of the final imageResource to be drawn.\n * @param destinationHeight the destination height of the final imageResource to be drawn.\n * @param sourceX the x coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceY the y coordinate of the top left corner of the rectangle which will crop the imageResource.\n * @param sourceWidth the width of the rectangle which will crop the source imageResource.\n * @param sourceHeight the height of the rectangle which will crop the source imageResource.\n */\n public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight,\n float sourceX, float sourceY, float sourceWidth, float sourceHeight);\n\n\n}", "public void runOpMode(){\n JAWLDrive3796 drive = new JAWLDrive3796(hardwareMap.dcMotor.get(\"left_drive\"), hardwareMap.dcMotor.get(\"right_drive\"));\n //Set the drive motors to run without encoders\n drive.setEncoders(false);\n //Create Grabber object\n JAWLGrabber3796 grabber = new JAWLGrabber3796(hardwareMap.servo.get(\"left_arm\"), hardwareMap.servo.get(\"right_arm\"));\n //Create Lift object\n JAWLLift3796 lift = new JAWLLift3796(hardwareMap.dcMotor.get(\"lift_motor\"));\n //Create color arm object\n JAWLColorArm3796 colorArm = new JAWLColorArm3796(hardwareMap.servo.get(\"color_arm\"));\n //Creates color sensor name\n ColorSensor colorSensorTemp = hardwareMap.get(ColorSensor.class, \"color_distance\");\n //Creates distance sensor name\n DistanceSensor distanceSensorTemp = hardwareMap.get(DistanceSensor.class, \"color_distance\");\n //Creates the color-distance sensor object\n JAWLColorSensor3796 colorDistanceSensor = new JAWLColorSensor3796(colorSensorTemp, distanceSensorTemp);\n //Creates the variable that will hold the color of the jewel\n String colorOfBall;\n //Creates relic arm objects\n //TTTTRelicArm3796 relicArm = new TTTTRelicArm3796(hardwareMap.dcMotor.get(\"relic_up_down\"), hardwareMap.dcMotor.get(\"relic_out_in\"), hardwareMap.dcMotor.get(\"relic_grab\"));\n //We never ended up having a relic arm!\n //The lift helper will set the idle power of the motor to a small double, keeping the lift from idly falling down\n boolean liftHelper = false;\n int i = 0;\n\n waitForStart();\n\n colorArm.armUp();\n\n while (opModeIsActive()) {\n //Here is where we define how the controllers should work\n //In theory, no logic retaining to controlling the components should be in here\n\n /*\n * Drive\n */\n\n //The left drive wheel is controlled by the opposite value of the left stick's y value on the first gamepad\n //The right drive is the same way except with the right drive wheel\n drive.leftDrive(-gamepad1.left_stick_y);\n drive.rightDrive(-gamepad1.right_stick_y);\n\n /*\n * Lift\n */\n telemetry.addData(\"Gamepad2 Right Stick Y\", -gamepad2.right_stick_y);\n\n if (-gamepad2.right_stick_y > 0) {\n //First checks to see if the right stick's negative y value is greater then zero.\n lift.moveMotor(-gamepad2.right_stick_y);\n //If it is, it sets the power for the motor to 1, and adds telemetry\n telemetry.addData(\"Lift Power\", 1);\n } else if (-gamepad2.right_stick_y < 0) {\n //Checks if the negative value of the right right stick's y position is less than zero\n lift.moveMotor(-0.1);\n //Sets the power for the motor to -0.1, and adds telemetry\n telemetry.addData(\"Lift Power\", -0.1);\n } else {\n //We check to see if the liftHelper is enabled\n if(liftHelper) {\n lift.moveMotor(0.1466 );\n } else {\n lift.moveMotor(0);\n }\n }\n\n\n\n /*\n * Lift helper control\n */\n\n if(gamepad2.a) {\n if(i == 0) {\n liftHelper = !liftHelper;\n }\n i = 5;\n }\n\n if(i != 0) {\n i--;\n }\n\n telemetry.addData(\"Lift Helper Enabled\", liftHelper);\n\n\n\n /*\n * Grabbers\n */\n if (gamepad2.left_trigger > 0) {\n //Closes the left arm, then displays the position in telemetry\n grabber.leftArmClose();\n double a = grabber.leftPosition();\n //Adds telemetry to display positions of grabbers, mostly for testing, but can be useful later on\n telemetry.addData(\"Left\", a);\n }\n\n if (gamepad2.left_bumper) {\n //Opens the left arm, then displays the position in telemetry\n grabber.leftArmOpen();\n double b = grabber.leftPosition();\n //We made the variables different as to avoid any and all possible errors\n telemetry.addData(\"Left\", b);\n }\n\n if (gamepad2.right_trigger > 0) {\n //Opens the right arm, then displays the position in telemetry\n grabber.rightArmClose();\n double c = grabber.rightPosition();\n telemetry.addData(\"Right\", c);\n }\n\n if (gamepad2.right_bumper) {\n //Closes the right arm, then displays the position in telemetry\n grabber.rightArmOpen();\n double d = grabber.rightPosition();\n telemetry.addData(\"Right\", d);\n }\n\n if (gamepad2.dpad_left){\n //Closes the left arm to a shorter distance\n grabber.leftArmShort();\n }\n\n if(gamepad2.dpad_right){\n //Closes the right arm to a shorter distance\n grabber.rightArmShort();\n\n }\n\n //Update all of our telemetries at once so we can see all of it at the same time\n telemetry.update();\n }\n }", "public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }", "@Override\n public void reshape(ViewPort vp, int w, int h) {\n Texture2D redTexture = new Texture2D(w, h, Format.RGBA8); // color texture\n Texture2D greenTexture = new Texture2D(w, h, Format.Luminance8); // monochrome texture\n Texture2D blueTexture = new Texture2D(w, h, Format.Luminance8); // monochrome texture\n Texture2D rgbTexture = new Texture2D(w, h, Format.RGBA8); // color texture\n\n fb = new FrameBuffer(w, h, 1);\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(redTexture)); // location 0\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(greenTexture)); // location 1\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(blueTexture)); // location 2\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(rgbTexture)); // location 3\n fb.setMultiTarget(true);\n\n display1.setTexture(assetManager, rgbTexture, false);\n display2.setTexture(assetManager, redTexture, false);\n display3.setTexture(assetManager, greenTexture, false);\n display4.setTexture(assetManager, blueTexture, false);\n\n display1.setPosition(0, 0); // lower-left quadrant\n display1.setWidth(w / 2f);\n display1.setHeight(h / 2f);\n\n display2.setPosition(0, h / 2f); // upper-left quadrant\n display2.setWidth(w / 2f);\n display2.setHeight(h / 2f);\n\n display3.setPosition(w / 2f, h / 2f); // upper-right quadrant\n display3.setWidth(w / 2f);\n display3.setHeight(h / 2f);\n\n display4.setPosition(w / 2f, 0f); // lower-right quadrant\n display4.setWidth(w / 2f);\n display4.setHeight(h / 2f);\n\n guiNode.updateGeometricState();\n initialized = true;\n }", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "public GraphicsDevice getScreen();", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // Do backface culling\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n GLES20.glFrontFace(GLES20.GL_CCW);\n // Why using GL_BACK won't work is a mystery\n GLES20.glCullFace(GLES20.GL_BACK);\n // Enable depth buffer\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n GLES20.glDepthFunc(GLES20.GL_LEQUAL);\n GLES20.glDepthMask(true);\n \n for (int i = 0; i < NUM_CARS; i++) {\n mCarBody[i] = new CarBody((float) Math.random(),\n (float) Math.random(),\n (float) Math.random());\n mCarWheels[i] = new CarWheels();\n }\n \n // Create transformation matrices for each car\n for (int i = 0; i < NUM_CARS; i++) {\n mCarXOffsets[i] = (i % NUM_LANES) * 1.1f;\n mCarZOffsets[i] = ((i / NUM_LANES) * -2) + ((i % NUM_LANES) * 1.3f);\n }\n \n road = new Square(0.6f, 0.6f, 0.6f);\n land = new Square(0.1f, 0.6f, 0.1f);\n sky = new Square(0.6f, 0.6f, 0.9f);\n background = new Sprite(mActivityContext);\n \n }", "private void configureCamera(int width, int height)\n {\n mCameraId = CAMERA_FACE_BACK;\n ///Configure camera output surfaces\n setupCameraOutputs(mWidth, mHeight);\n }", "private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "@Override\n public void onDrawFrame(GL10 gl10) {\n glClear(GL_COLOR_BUFFER_BIT);\n\n Location drawCameraLocation;\n\n //Don't draw until camera location is known\n if (mCurrentCameraLocation == null && mNewCameraLocation == null) {\n //Log.d(LOG_TAG, \"onDraw 1\");\n return;\n } else if (mCurrentCameraLocation == null && mNewCameraLocation != null) {\n //Log.d(LOG_TAG, \"onDraw 2\");\n mCurrentCameraLocation = mNewCameraLocation;\n drawCameraLocation = mCurrentCameraLocation;\n } else if (mCurrentCameraLocation != null && mNewCameraLocation != null && mTargetCameraLocation == null) {\n //Log.d(LOG_TAG, \"onDraw 3\");\n\n float distance = mNewCameraLocation.distanceTo(mCurrentCameraLocation);\n\n ///Increment step to target location when new camera location\n // is greater than 1.5 meters from current location\n if (distance > 1.5f) {\n mTargetCameraLocation = mNewCameraLocation;\n }\n\n drawCameraLocation = mCurrentCameraLocation;\n }\n\n //Provide increment location (if necessary) for smooth changes in camera positions\n else if (mCurrentCameraLocation != null && mTargetCameraLocation != null) {\n //Log.d(LOG_TAG, \"onDraw 4\");\n float cameraDistance = mCurrentCameraLocation.distanceTo(mTargetCameraLocation);\n\n\n float x = (float) mCameraStep / TOTALCAMERASTEPS;\n //float y = (float)Math.pow(x,3)*(x*(6*x-15)+10);\n //float y = (float)Math.pow(x,2)*(3-2*x); //smoothstep\n float y = x;\n\n float incDistance = y * cameraDistance;\n float bearing = mCurrentCameraLocation.bearingTo(mTargetCameraLocation);\n\n bearing = (bearing + 360) % 360;\n\n drawCameraLocation = calculateDestinationLocation(mCurrentCameraLocation, bearing, incDistance);\n drawCameraLocation.setAccuracy(mTargetCameraLocation.getAccuracy());\n\n mCameraStep++;\n\n if (mCameraStep == TOTALCAMERASTEPS) {\n //mCurrentCameraLocation = mTargetCameraLocation;\n mCurrentCameraLocation = drawCameraLocation;\n mTargetCameraLocation = null;\n mCameraStep = 0;\n }\n } else {//Never should come to this\n Log.d(LOG_TAG, \"onDraw 5\");\n\n drawCameraLocation = mCurrentCameraLocation;\n }\n\n /*\n setLookAtM(viewMatrix, 0, viewValues[0], viewValues[1], viewValues[2]\n , viewValues[3], viewValues[4], viewValues[5]\n , viewValues[6], viewValues[7], viewValues[8]);\n */\n\n multiplyMM(viewMatrix, 0, rotationMatrix, 0, modelSensorMatrix, 0);\n // Multiply the view and projection matrices together.\n multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0, viewMatrix, 0);\n\n\n //Process each image texture with drawCameraLocation\n for (ImageTexture it : mImageTextures) {\n\n\n if (it == null) {\n return;\n }\n\n double ItAngle;\n double distance = drawCameraLocation.distanceTo(it.mLocation);\n\n\n\n /*\n if (distance > (drawCameraLocation.getAccuracy() /0.68f))\n {\n ItAngle = (drawCameraLocation.bearingTo(it.mLocation) + 360) % 360;\n it.rotateAroundCamera((float) ItAngle );\n\n Log.d(LOG_TAG, \"onDrawFrame: distance = \" + distance + \" > \" + (drawCameraLocation.getAccuracy() /0.68f) + \", ItAngle = \" +ItAngle );\n }\n //Within accuracy radius\n else {\n distance = 4;\n }\n\n */\n\n ItAngle = (drawCameraLocation.bearingTo(it.mLocation) + 360) % 360;\n\n\n if (distance != 0 || ItAngle != 0.0f) {\n it.rotateAroundCamera((float) ItAngle);\n it.moveFromToCamera((float) -distance * 0.79f);\n }\n\n\n Log.d(LOG_TAG, \"onDrawFrame: distance = \" + distance + \" > \" + (drawCameraLocation.getAccuracy() / 0.68f) + \", ItAngle = \" + ItAngle);\n Log.d(LOG_TAG, \"onDrawFrame: drawCameraLocation = \" + drawCameraLocation.getLatitude() + \", \" + drawCameraLocation.getLongitude()\n + \" \" + it.mLocation.getLatitude() + \", \" + it.mLocation.getLongitude());\n\n\n String debugStr = \"Camera: \" + String.format(\"%5.6f\", drawCameraLocation.getLatitude()) + \", \" + String.format(\"%5.6f\", drawCameraLocation.getLongitude())\n + \"\\nAccuracy: \" + String.format(\"%5.7f\", drawCameraLocation.getAccuracy()) + \", Z: \" + String.format(\"%3.1f\", mAzimuth)\n //+ \"\\nImage: \" + String.format(\"%5.7f\",it.mLocation.getLatitude()) + \", \" + String.format(\"%5.7f\",it.mLocation.getLongitude())\n + \"\\nDistance: \" + String.format(\"%5.5f\", distance) + \", ItAngle: \" + String.format(\"%3.7f\", it.mCameraRotationAngle);\n\n\n float[] modelMatrix = it.calculateModelMatrix();\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix, 0, modelMatrix, 0);\n mTextureShaderProgram.useProgram();\n mTextureShaderProgram.setUniforms(modelViewProjectionMatrix, it.mTextureId, it.opacity);//every object sets its own mvpMatrix, texture, and alpha values\n it.bindData(mTextureShaderProgram);\n it.draw();\n }\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n glClear(GL_COLOR_BUFFER_BIT);\n \n \n multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0,\n viewMatrix, 0);\n invertM(invertedViewProjectionMatrix, 0, viewProjectionMatrix, 0);\n\n refreshGameState();\n \n setPerspectiveView();\n // Draw the table.\n positionTableInScene();\n textureProgram.useProgram();\n textureProgram.setUniforms(modelViewProjectionMatrix, texture);\n table.bindData(textureProgram);\n table.draw();\n\n // Draw the mallets.\n// positionObjectInScene(0f, mallet.height / 2f, -0.4f);\n colorProgram.useProgram();\n\n \n //draw grids\n for (int i = 0; i<lines.length; i++)\n {\n positionObjectInScene(0,0,0);\n colorProgram.setUniforms(modelViewProjectionMatrix,0.5f + i*0.1f, 0.4f+ i*0.1f, 1f);\n lines[i].bindData(colorProgram);\n lines[i].draw();\n }\n \n \n // Draw the puck.\n for (int i = 0; i<2; i++)\n {\n\t positionObjectInScene(puckPosition[i].x, puckPosition[i].y, puckPosition[i].z);\n\t colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f + i*0.2f, 0.015f + 0*0.1f, 0.9f);\n\t //colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f, 0.01f , 0.9f);\n\t puck[i].bindData(colorProgram);\n\t puck[i].draw();\n }\n \n //draw Obstacles\n for (int i = 0; i< obstacles.length; i++){\n positionObjectInScene(obstaclePosition[i].x, obstaclePosition[i].y, obstaclePosition[i].z);\n colorProgram.setUniforms(modelViewProjectionMatrix, 0.1f, 0.3f, 0.11f);\n obstacles[i].bindData(colorProgram);\n obstacles[i].draw();\n \n \n }\n \n\n \n }", "@Override\n\tpublic void setup() {\n\t\tint videoWidth = 1280/2;\n\t\tint videoHeight = 720/2;\n//\t\tint videoWidth = 640;\n//\t\tint videoHeight = 400;\n\t\tint videoFrameRate = 30;\n\t\tint secondsToRecordInSegment = 5;\n\t\n\t\tsize(videoWidth, videoHeight, P2D);\n\t\tframeRate(60);\n\t\t\n\t\tcam = new Camera(this, videoWidth, videoHeight, videoFrameRate, secondsToRecordInSegment);\n\t\tregionManager = new RegionManager(this, videoWidth, videoHeight);\n\t\twinnerProcessor = new WinnerProcessor(this, cam, regionManager);\n\t\tstartingPistol = new StartingPistol();\n\t\t\n\t\tglobalKeyboardActions = new HashMap<Integer, Runnable>();\n\t\tglobalKeyboardActions.put(Integer.valueOf('D'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"Switching to region definition mode\");\n\t\t\t\tcurrentMode = Mode.DEFINE_REGION;\n\t\t\t}\n\t\t});\n\t\tglobalKeyboardActions.put(Integer.valueOf('R'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"Switching to recording mode\");\n\t\t\t\tcurrentMode = Mode.RECORDING;\n\t\t\t}\n\t\t});\n\t\tglobalKeyboardActions.put(Integer.valueOf('P'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"Switching to playback mode\");\n\t\t\t\tcurrentMode = Mode.PLAYBACK;\n\t\t\t}\n\t\t});\n\t\t\n\t\tmodeKeyboardActions = new HashMap<Mode, Map<Integer,Runnable>>();\n\t\t\n\t\t// Region Actions\n\t\tMap<Integer, Runnable> regionActions = new HashMap<Integer, Runnable>();\n\t\tmodeKeyboardActions.put(Mode.DEFINE_REGION, regionActions);\n\t\t\n\t\tregionActions.put(Integer.valueOf('3'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"In region define mode. Switching to finish line definition\");\n\t\t\t\tregionManager.setRegionToDefine(Region.FINISH_LINE);\n\t\t\t}\n\t\t});\n\t\tregionActions.put(Integer.valueOf('1'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"In region define mode. Switching to lane 1 definition\");\n\t\t\t\tregionManager.setRegionToDefine(Region.LANE1);\n\t\t\t}\n\t\t});\n\t\tregionActions.put(Integer.valueOf('2'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"In region define mode. Switching to lane 2 definition\");\n\t\t\t\tregionManager.setRegionToDefine(Region.LANE2);\n\t\t\t}\n\t\t});\n\t\tregionActions.put(Integer.valueOf('0'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"In region define mode. Clearing current region definition\");\n\t\t\t\tregionManager.setRegionToDefine(null);\n\t\t\t}\n\t\t});\n\t\tregionActions.put(Integer.valueOf('S'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"Saving current regions to disk\");\n\t\t\t\tregionManager.saveRegions();\n\t\t\t}\n\t\t});\n\t\tregionActions.put(Integer.valueOf('L'), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tprintln(\"Loading previous regions from disk\");\n\t\t\t\tregionManager.loadRegions();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Recording actions\n\t\tMap<Integer, Runnable> recordingActions = new HashMap<Integer, Runnable>();\n\t\tmodeKeyboardActions.put(Mode.RECORDING, recordingActions);\n\t\t\n\t\trecordingActions.put(Integer.valueOf(' '), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tstartRace();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Playback actions\n\t\tMap<Integer, Runnable> playbackActions = new HashMap<Integer, Runnable>();\n\t\tmodeKeyboardActions.put(Mode.PLAYBACK, playbackActions);\n\t\t\n\t\t// Left arrow\n\t\tplaybackActions.put(Integer.valueOf(37), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\twinnerProcessor.stepBackward();\n\t\t\t}\n\t\t});\n\t\t// Right arrow\n\t\tplaybackActions.put(Integer.valueOf(39), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\twinnerProcessor.stepForward();\n\t\t\t}\n\t\t});\n\t\tplaybackActions.put(Integer.valueOf(' '), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\twinnerProcessor.toggleManualStep();\n\t\t\t}\n\t\t});\n\t\tplaybackActions.put(Integer.valueOf(38), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\twinnerProcessor.togglePlayOriginal();\n\t\t\t}\n\t\t});\n\t\tplaybackActions.put(Integer.valueOf(40), new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\twinnerProcessor.togglePlayOriginal();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcam.start();\n\t\t\n\t\tstartingPistol.listen(this);\n\t}", "public void changeMonitor(long monitor){\n //PROBABLY WRONG --- NEEDS TESTING\n\n //Simply change monitor for fullscreen and borderless, move for windowed\n if(type == Type.FULLSCREEN){\n //Retrieve the monitor and video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n size.x,\n size.y,\n mode.refreshRate()\n );\n }else if(type == Type.BORDERLESS){\n //Retrieve the monitor and video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n //Change dimensions to fit new video mode\n position.set(0f, 0f);\n size.set(mode.width(), mode.height());\n\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n mode.width(),\n mode.height(),\n mode.refreshRate()\n );\n }else{\n //Retrieve the top left corner of the monitor\n IntBuffer posX;\n IntBuffer posY;\n try(MemoryStack stack = MemoryStack.stackPush()){\n posX = stack.mallocInt(1);\n posY = stack.mallocInt(1);\n glfwGetMonitorPos(monitor, posX, posY);\n }\n\n //Centre the window on that monitor\n GLFWVidMode mode = glfwGetVideoMode(monitor);\n int newX = posX.get(0) + (mode.width() / 2) - (size.x / 2);\n int newY = posY.get(0) + (mode.height() / 2) - (size.y / 2);\n position.set(newX, newY);\n\n //Move the window and change the field\n glfwSetWindowPos(handle, newX, newY);\n }\n }", "public static void main(String[] args) {\n\t\t\tColorSensor colorSensor = new ColorSensor(SensorPort.S3);\n\t\t\tcolorSensor.setRGBMode();\n\t\t\tColor rgb; \n\t\t\t\n\t\t\tEV3LargeRegulatedMotor motora = new EV3LargeRegulatedMotor (MotorPort.A);\n\t\t\tEV3LargeRegulatedMotor motorb = new EV3LargeRegulatedMotor (MotorPort.C);\n\t\t\tEV3TouchSensor touchsensor = new EV3TouchSensor (SensorPort.S2);\n\t\t\tEV3IRSensor irSensor = new EV3IRSensor (SensorPort.S1);\n\t\t\t\n\t\t\tWheel wheel1 = WheeledChassis.modelWheel(motora , 2.5).offset(-5.0);\n\t\t Wheel wheel2 = WheeledChassis.modelWheel(motorb , 2.5).offset(5.0);\n\t\t \n\t\t Chassis chassis = new WheeledChassis(new Wheel[] { wheel1, wheel2 }, WheeledChassis.TYPE_DIFFERENTIAL);\n\t\t\t\n\t\t\t\n\t\t\t//is pressed method? do we need to make float values and fetching samples?\n\t\t MovePilot pilot = new MovePilot(chassis);\n\t\t \n\t\t Button.waitForAnyPress(); \n\t\t \n\t\t\tdouble [] hsvmiddle = new double[3];\n\t\t\tdouble [] hsvfloor = new double [3];\n\t\t\tdouble [] hsvline = new double [3];\n\t\t\t\n\t\t\tdouble [] pickupColor = new double [3];\n\t\t\t\n\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvmiddle= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate to the left to pickup wood color\n\t\t\t\tpilot.rotate(-20);\n\t\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvfloor= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate to the right to pick up black line\n\t\t\t\tpilot.rotate(30);\n\t\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvline= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate back to center\n\t\t\t\tpilot.rotate(-10);\n\t\t\t\n\t\t\twhile(Button.ESCAPE.isUp())\n\t\t\t{\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\tpickupColor = RGBtoHSV(rgb);\n\t\t\t\t\n\t /*System.out.println(\"RGB = \"+\n\t \" [\" + rgb.getRed() + \",\" + rgb.getGreen() + \",\" + rgb.getBlue() \n\t +\"]\\n \" + \"HSV = \" + \"[ \" + hsv[0] + \",\" + hsv[1] + \",\" + hsv[2] + \",\" +\" ]\");\n\t\t\t\t//delay a second so we don't see so many outputs on the screen\n\t //need to apply to actual line following strategy*/\n\t\t\t\tDelay.msDelay(1000);\n\t\t\t\t\n\t\t\t\t//touch sensor info\n\t\t\t\tSampleProvider distance = touchsensor.getTouchMode();\n\t\t\t\tfloat[] sample = new float[1];\n\t\t\t\t\n\t\t\t\t//ir info\n\t\t\t\tfloat[] sample2 = new float[1];\n\t\t\t\t\n\t\t\t\tpilot.forward();\n\t\t\t\t\n\t\t\t\twhile (!Button.ESCAPE.isDown()) {\n\t\t\t\t\t//when the robot is on the wood it will rotate and fix itself back on the middle\n\t\t\t\t\t if ((((hsvfloor[0]-5)<pickupColor[0])&&((hsvfloor[0]+5>pickupColor[0])))) { \n\t\t\t\t\t\t System.out.println(\"floor\");\n\t\t\t\t\t\t\tpilot.rotate(-4); \n\t\t\t\t\t }\n\t\t\t\t\t //when the robot is on black it will rotate and fix its self back on the middle\n\t\t\t\t\t else if ((((hsvline[0]-5)<pickupColor[0])&&((hsvline[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t System.out.println(\"black line\");\n\t\t\t\t\t\t\tpilot.rotate(4);\n\t\t\t\t\t}\n\t\t\t\t\t //when the robot is in the middle, it will go forward\n\t\t\t\t\t else if ((((hsvmiddle[0]-5)<pickupColor[0])&&((hsvmiddle[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t System.out.println (\"middle\");\n\t\t\t\t\t\t pilot.forward();\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t //need to implement when the robot sees a new color (red) then it with turn or do as it is called to to\n\t\t\t\t\t /*else if ((((hsvred[0]-5)<pickupColor[0])&&((hsvred[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t \n //touch sensor code\n\t\t\t\t\t distance.fetchSample(sample, 0);\n\t\t\t\t\t\tif (sample[0]== 1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//pilot.travel(-10);\n\t\t\t\t\t\t\t//pilot.rotate(-90);\n\t\t\t\t\t\t\t//pilot.travel(20);\n\t\t\t\t\t\t\t//pilot.rotate(90);\n\t\t\t\t\t\t\t//pilot.forward();\n\t\t\t\t\t\t}\n\n \n\t\t\t\t\t }*/\n\t\t\t\t\t \n\t\t\t\t\t //when the robot sees silver, then it should recognize that it is at the end of the maze and call to the stacking method to retrace its steps\n\t\t\t\t\t /*else if ((hsvsilver[0]-5<pickupcolor[0])&&(hsvsilver[0]+5<pickupcolor[0])){\n\t\t\t\t\t * end the maze and call the stacking method\n\t\t\t\t\t }*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t//ir code\n\t\t\t\t\tdistance.fetchSample(sample, 0);\n\t\t\t\t\t\tif (sample2[0]<=18) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpilot.travel(-10);\n\t\t\t\t\t\t\tpilot.rotate(-90);\n\t\t\t\t\t\t\tpilot.travel(20);\n\t\t\t\t\t\t\tpilot.rotate(90);\n\t\t\t\t\t\t\tpilot.forward();\n\t\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t}\n\t\t\t\t\n\t\t\t\t//add hsv for silver end of the maze, and add red for intersections\n\t\t\t\t/*if the robot sees red and cannot turn to the right (ir sensor) then go straight\n\t\t\t\t * \tthen if it cant go forward, turn around and when you get back to the red line then turn left\n\t\t\t\t * if the robot sees red and can turn right, then turn right\n\t\t\t\t * if the robot hits something in front of itself, then have the robot turn around to the right\t\t\t\t\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\t\n //intersection strategy\n /*if ((red color is sensed using the color sensor) && (ir sensor is activated (there is an obstacle))) {\n pilot.rotate(90); //turn left\n pilot.forward();\n }\n if (touch is pressed) {\n pilot.rotate(180); //turn all the way around\n pilot.forward();\n if (red color is sensed) {\n pilot.rotate(-90); //turn right\n }\n }\n if (touch is pressed) {\n pilot.rotate(180); //turn all the way around\n pilot.forward(); \n }\n \n if ((ir is pressed) && !(touch is pressed)) {\n pilot.rotate(90); //turn left\n if (touch is pressed) {\n pilot.rotate(-90);\n pop that sequence off the stack\n pilot.forward();\n }\n else { //touch is not pressed, no obstacles ahead\n pilot.forward();\n }\n }\n \n //25 is an arbitrary # that we are using to represent the max # of intersections\n for (i=1; i < 25; ++i) {\n //everything that's happening in the entire program has to be in this for loop\n Stack<String> stack = new Stack<String>();\n stack.push(\"i\"); //naming each sequence/intersection by its #\n printStack(stack);\n\n }\n //if we program the robot to turn left at intersections, the IR must be on the right\n //question box: how do we structure our code so that every part works together in unison?\n */\n\t\t\t\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t//free up resources\n\t\t\tcolorSensor.close();\n\t\t\t\n\t\t}\n\n\t}", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "public void setScreen(Scene scene) {\n\t\tCanvas canvas = (Canvas) scene.lookup(\"#firstCanvas\");\n\t\t//Button testbutt = (Button) scene.lookup(\"#StartButt\");\n\t\t//testbutt.getText();\n\t\tGraphicsContext gc = canvas.getGraphicsContext2D();\n\t\tbackgroundMovingX += backgroundMovingSpeed;\n\t\t//System.out.println(backgroundMovingX);\n\t\tif(backgroundMovingX >= maximumBackgroudPos || backgroundMovingX <= minimumBackgroudPos) {\n\t\t\tbackgroundMovingSpeed=-backgroundMovingSpeed;\n\t\t}\n\t\tWritableImage croppedImage = new WritableImage(BackgroundImageHolder.fisrtSceneBackgroundImage.getPixelReader(),\n\t\t\t\tstartCropX, startCropY, GameConfig.screenWidth, GameConfig.screenHeight);\n\t\tgc.drawImage(croppedImage, backgroundMovingX, startPoint);\n\t}", "public static void changeScreens() {\r\n\t\tnone = true;\r\n\t\toption1 = false;\r\n\t\toption2 = false;\r\n\t\toption3 = false;\r\n\t\toption4 = false;\r\n\t\toption5 = false;\r\n\t\tbackToRegFromItem = false;\r\n\t\toverItem = false;\r\n\t\toverYes = false;\r\n\t\toverNo = false;\r\n\t\toverNext = false;\r\n\t\toverHealth = false;\r\n\t\toverAlly = false;\r\n\t\toverPummel = false;\r\n\t\toverLaser = false;\r\n\t\titemSelect = false;\r\n\t\tgoBackFromProg = false;\r\n\t\tgoBackFromAlly = false;\r\n\t\toverAnAlly = false;\r\n\t\tgoBackFromAttire = false;\r\n\t\toverAnOutfit = false;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void renderImage() {\n Camera camera = scene.getCamera();//fot the function thats in the camera.constr.. to build the rays.\n Intersectable geometries = scene.getGeometries();//list of geomertries for the functon in geometries.findinter..\n java.awt.Color background = scene.getBackground().getColor();\n double distance = scene.getDistance();\n\n\n int width = (int) imageWriter.getWidth(); //width of the view plane\n int height = (int) imageWriter.getHeight();//height of the view plane\n int Nx = imageWriter.getNx(); // number of squares in the Row (shura). we need it for the for\n int Ny = imageWriter.getNy(); //number of squares in the column.(amuda). we need it for the for\n\n /**for each pixel we will send ray, and with the function findIntersection\n * we will get the Geo points(point 3d, color).\n * if we got nothing so we will color with the back round color\n * if we got the GeoPoints We will send to the function getClosestPoint and color*/\n Color pixelColor;\n for (int row = 0; row < Ny; ++row) {\n for (int column = 0; column < Nx; ++column) {\n if (amountRays > 1) { //if there is superSampling\n List<Ray> rays = camera.constructNRaysThroughPixel(Nx, Ny, column, row, distance, width, height,superSamplingRate, amountRays);\n Color averageColor;\n pixelColor = scene.getBackground();\n for (Ray ray : rays) {//for each ray from the list give the list of intersection geo-points.\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n averageColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);//get the closest point for each ray.\n averageColor = calcColor(closestPoint, ray);//calculate the color and put in averageColor\n }\n pixelColor = pixelColor.add(averageColor);//befor we go to the next ray we add the averageColor to pixelColor.\n }\n pixelColor = pixelColor.reduce(rays.size());//we are doing the (memuza) and that is the color of that pixel.\n }\n else {//if there is no supersampling\n Ray ray = camera.constructRayThroughPixel(Nx, Ny, column, row, distance, width, height);\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n pixelColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);\n pixelColor = calcColor(closestPoint, ray);\n }\n }\n imageWriter.writePixel(column, row, pixelColor.getColor());\n }\n }\n }", "@Override\n\tpublic void draw(){\n\t\tif( HighGui.queryFrame(capture, im) ){\n\t\t\tbackground(70);\n\n\t\t\t// Draw it\n\t\t\timage(PUtils.getPImage(im), 0, 0);\n\n\t\t\tSmoothType type = SmoothType.CV_BLUR;\n\t\t\tif( r.value() != -1) type = SmoothType.values()[(int)r.value()-1];\n\n\t\t\tint size1 = (int)size1_slider.value();\n\t\t\tif( size1%2 == 0 ) size1++;\n\t\t\tint size2 = (int)size2_slider.value();\n\t\t\tif( size2%2 == 0 ) size2++;\n\n\t\t\tImgProc.smooth(im, im_smooth, type, size1, size2, param3_slider.value(), param4_slider.value());\n\t\t\timage(PUtils.getPImage(im_smooth), w, 0);\n\t\t}\n\t}", "public void respondToGesture(String gesture) {\n String gest = gesture.substring(1, gesture.length() - 1);\n sysMsgTextView.setText(\"Gesture:\" + gest);\n\n // load model\n float[] leftInit;\n float[] rightInit;\n float[] finalpos;\n if (gest.equals(\"Nodding\")){\n ModelRenderable.builder()\n .setSource(this, R.raw.export_71)\n .build()\n .thenAccept(renderable -> model = renderable)\n .exceptionally(\n throwable -> {\n Toast toast =\n Toast.makeText(this, \"Unable to load andy renderable\", Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n return null;\n });\n finalpos = new float[]{0, 0, -2f};\n leftInit = new float[]{-0.5f, 0, -2f};\n rightInit = new float[]{0.3f, 0, -2f};\n } else {\n ModelRenderable.builder()\n .setSource(this, R.raw.thumbsup)\n .build()\n .thenAccept(renderable -> model = renderable)\n .exceptionally(\n throwable -> {\n Toast toast =\n Toast.makeText(this, \"Unable to load andy renderable\", Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n return null;\n });\n finalpos = new float[]{0, 0, -6f};\n leftInit = new float[]{-1.5f, 0, -6f};\n rightInit = new float[]{1f, 0, -6f};\n }\n\n float[] rotation = {0, 0, 0, 0};\n\n // get current frame and translate the initial coordinate to the current frame\n session = fragment.getArSceneView().getSession();\n try {\n frame = session.update();\n } catch (CameraNotAvailableException e) {\n e.printStackTrace();\n }\n Pose pose = frame.getAndroidSensorPose();\n if(targetScreenArea == \"LEFT\"){\n finalpos = pose.rotateVector(leftInit);\n } else if(targetScreenArea == \"RIGHT\"){\n finalpos = pose.rotateVector(rightInit);\n } else {\n finalpos = pose.rotateVector(finalpos);\n }\n\n Anchor anchor = session.createAnchor(new Pose(finalpos, rotation));\n anchorNode = new AnchorNode(anchor);\n anchorNode.setParent(fragment.getArSceneView().getScene());\n TransformableNode transformableNode = new TransformableNode(fragment.getTransformationSystem());\n transformableNode.setParent(anchorNode);\n fragment.getArSceneView().getScene().addChild(anchorNode);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n transformableNode.setRenderable(model);\n transformableNode.select();\n }\n }, 1000);\n\n }", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < main_panel_width\r\n \t\t\t&& scn_image.getHeight() < main_panel_height){\r\n \t\t\tscn_font_size++;\r\n \t\t} else {\r\n \t\t scn_font_size--;\r\n \t\t break;\r\n \t\t}\r\n \t} \t\r\n \tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \tcalc_screen_size();\r\n start_scn_updates();\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n Log.i(TAG, \"called onCreate\");\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n\n setContentView(R.layout.activity_main);\n\n //Ask for permission to use the camera\n //https://developer.android.com/training/permissions/requesting.html\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n Toast toast = Toast.makeText(this, \"Permission is not granted\", Toast.LENGTH_LONG);\n toast.show();\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CAMERA)) {\n\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.CAMERA},\n 1);\n\n }\n }\n\n if(checkCameraHardware(this)) {\n mOpenCvCameraView = findViewById(R.id.mis_opencv_camera_view);\n mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE);\n mOpenCvCameraView.setCvCameraViewListener(this);\n //Create Object in here intead of onFrame function makes the app don't crush\n }else{\n Toast toast = Toast.makeText(this, \"No Camera Found\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n //add some extra functionality to show the nose or the rectangular trackers\n //It was fun to play with those\n final Button circleBtn = findViewById(R.id.circleOpenCv);\n circleBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n if(paintNose){\n paintNose=false;\n }else{\n paintNose=true;\n }\n }\n });\n\n final Button rectBtn = findViewById(R.id.rectOpenCv);\n rectBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n if(paintFace){\n paintFace=false;\n }else{\n paintFace=true;\n }\n }\n });\n }", "public ScreenManager(Frame mainFrame){\n\t\t GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t device = env.getDefaultScreenDevice();\n\t device.setFullScreenWindow(mainFrame);\n\t if(device.isDisplayChangeSupported()){\n\t \t _chooseBestDisplayMode(device);\n\t }\n\t mainFrame.createBufferStrategy(Config.BUFFERS);\n\n\t}", "public void previewOglRender();", "private void setTheScene()\n {\n board.setLocalRotation(Quaternion.IDENTITY);\n board.rotate(-FastMath.HALF_PI, -FastMath.HALF_PI, 0);\n board.setLocalTranslation(0, 0, -3);\n\n cam.setLocation(new Vector3f(0, 0, 10));\n cam.lookAt(Vector3f.ZERO, Vector3f.UNIT_Y);\n }", "public static void main(String [] args)\n{\n //this is something to memorize \n\nDrawingTool pencil;\nSketchPad paper;\n//these two were object declarations \npaper = new SketchPad (300,300); \npencil = new DrawingTool(paper); \n//these two were to create instances of the DrawingTool and SketchPad that are in the library today \n\n//now, directions: memorize the format for the instructions \npencil.forward (100);\npencil.turnRight (90);\npencil.forward (200);\npencil.turnRight (90);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (200);\npencil.turnRight (90);\npencil.forward (100);\npencil.turnRight (45);\npencil.forward (142);\npencil.turnRight (90); \npencil.forward (142);\npencil.turnRight (45);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (80);\npencil.turnRight (90);\npencil.forward (40);\npencil.turnLeft (90);\npencil.forward (20);\npencil.turnLeft (90);\npencil.forward (40);\n/*a few questions I have: can I change the color of the pencil, can I lift\n * it or choose where to start\n */\npencil.turnRight(90);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (160);\npencil.turnRight (90);\npencil.forward (30);\npencil.turnRight (90);\npencil.forward (30);\n\n\n\n \n\n//how can I add a new color in this? I requested access for the video \n//that the logo team made\n \n \n}", "@Override\r\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tLog.d(TAG, \"onSurfaceCreated\");\r\n//\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to\r\n\t\tgl.glClearColor(0.f, 0.f, 0.f, 0.f);\r\n/////new/////\t\t\r\n\t\t gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);\r\n\t\t gl.glEnable(gl.GL_BLEND);\r\n///////\t\t \r\n\t\tgl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\r\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden\r\n\t\t\t\t\t\t\t\t\t\t\t// surface removal\r\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\r\n\t\tgl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// perspective\r\n\t\t// view\r\n\t\tgl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\r\n\t\tgl.glDisable(GL10.GL_DITHER); // Disable dithering for better\r\n\t\t\t\t\t\t\t\t\t\t// performance\r\n\t\t// You OpenGL|ES initialization code here\r\n\t\t// ......\r\n\t\tgl.glGenTextures(MAX_MODEL_NUM, texIDS, 0);\r\n\r\n//\t\tglview.loadTexture(gl); // Load image into Texture (NEW)\r\n\t\tgl.glEnable(gl.GL_TEXTURE_2D); // Enable texture (NEW)\r\n\t\t\r\n\t}", "public static ScreenRecorder configScreeenRecorder() throws Exception, AWTException {\n GraphicsConfiguration gc = GraphicsEnvironment//\r\n .getLocalGraphicsEnvironment()//\r\n .getDefaultScreenDevice()//\r\n .getDefaultConfiguration();\r\n\r\n //Create a instance of ScreenRecorder with the required configurations\r\n ScreenRecorder screenRecorder = new ScreenRecorder(gc,\r\n null, new Format(MediaTypeKey, MediaType.FILE, MimeTypeKey, MIME_AVI),\r\n new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE,\r\n CompressorNameKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE,\r\n DepthKey, (int)24, FrameRateKey, Rational.valueOf(15),\r\n QualityKey, 1.0f,\r\n KeyFrameIntervalKey, (int) (15 * 60)),\r\n new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey,\"black\",\r\n FrameRateKey, Rational.valueOf(30)),\r\n null,new File(Constant.Path_VideoRecordings));\r\n\r\n return screenRecorder;\r\n}", "public void updateCam()\r\n {\n \ttry{\r\n \tSystem.out.println();\r\n \tNIVision.IMAQdxGrab(curCam, frame, 1);\r\n \tif(curCam == camCenter){\r\n \t\tNIVision.imaqDrawLineOnImage(frame, frame, NIVision.DrawMode.DRAW_VALUE, new Point(320, 0), new Point(320, 480), 120);\r\n \t}\r\n server.setImage(frame);}\n \tcatch(Exception e){}\r\n }", "private void setupCameraOutputs(int width, int height) {\n MLog.d(TAG, \"setupCameraOutputs()\" +\n \" width: \" + width +\n \" height: \" + height);\n\n Activity activity = getActivity();\n CameraManager manager =\n (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE);\n Point displaySize = new Point();\n activity.getWindowManager().getDefaultDisplay().getSize(displaySize);\n int rotatedPreviewWidth = width;\n int rotatedPreviewHeight = height;\n int screenWidth = displaySize.x;\n int screenHeight = displaySize.y;\n // screenWidth: 720 screenHeight: 1280\n MLog.d(TAG, \"setupCameraOutputs()\" +\n \" screenWidth: \" + screenWidth +\n \" screenHeight: \" + screenHeight);\n\n try {\n for (String cameraId : manager.getCameraIdList()) {\n MLog.d(TAG, \"setupCameraOutputs()\" +\n \" cameraId: \" + cameraId);\n if (TextUtils.isEmpty(cameraId)) {\n continue;\n }\n\n mCameraId = cameraId;\n\n //获取某个相机(摄像头特性)\n CameraCharacteristics characteristics\n = manager.getCameraCharacteristics(cameraId);\n\n // 检查支持\n int deviceLevel = characteristics.get(\n CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);\n if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY) {\n\n }\n\n // We don't use a front facing camera in this sample.\n Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING);\n if (facing != null && facing == CameraCharacteristics.LENS_FACING_FRONT) {\n continue;\n }\n\n // 获取StreamConfigurationMap,它是管理摄像头支持的所有输出格式和尺寸\n StreamConfigurationMap map = characteristics.get(\n CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n if (map == null) {\n continue;\n }\n\n // 拍照时使用最大的宽高\n // For still image captures, we use the largest available size.\n Size largest = Collections.max(\n Arrays.asList(map.getOutputSizes(ImageFormat.JPEG)),\n //Arrays.asList(map.getOutputSizes(TextureView.class)),// 不能这样使用\n new CompareSizesByArea());\n // ImageFormat.JPEG largest.getWidth(): 3264 largest.getHeight(): 2448\n // ImageFormat.YV12 largest.getWidth(): 960 largest.getHeight(): 720\n // ImageFormat.YUV_420_888 largest.getWidth(): 960 largest.getHeight(): 720\n MLog.d(TAG, \"setupCameraOutputs() \" + printThis() +\n \" largest.getWidth(): \" + largest.getWidth() +\n \" largest.getHeight(): \" + largest.getHeight());\n\n /***\n * 实时帧数据获取类\n * 由于获取实时帧所以选用YV12或者YUV_420_888两个格式,暂时不采用JPEG格式\n * 在真机显示的过程中,不同的数据格式所设置的width和height需要注意,否侧视频会很卡顿\n * YV12:width 720, height 960\n * YUV_420_888:width 720, height 960\n * JPEG:获取帧数据不能用 ImageFormat.JPEG 格式,否则你会发现预览非常卡的,\n * 因为渲染 JPEG 数据量过大,导致掉帧,所以预览帧请使用其他编码格式\n *\n * 输入相机的尺寸必须是相机支持的尺寸,这样画面才能不失真,TextureView输入相机的尺寸也是这个\n */\n /*mImageReader = ImageReader.newInstance(\n largest.getWidth(),\n largest.getHeight(),\n ImageFormat.YUV_420_888,\n *//*maxImages*//*5);// ImageFormat.JPEG, 2\n mImageReader.setOnImageAvailableListener(\n mOnImageAvailableListener,\n mBackgroundHandler);*/\n\n // Find out if we need to swap dimension to get the preview size relative to sensor\n // coordinate.\n int displayRotation = activity.getWindowManager().getDefaultDisplay().getRotation();\n // noinspection ConstantConditions\n mSensorOrientation = characteristics.get(\n CameraCharacteristics.SENSOR_ORIENTATION);\n MLog.d(TAG, \"setupCameraOutputs() \" + printThis() +\n \" displayRotation: \" + displayRotation +\n \" mSensorOrientation: \" + mSensorOrientation);\n boolean swappedDimensions = false;\n switch (displayRotation) {\n // 竖屏\n case Surface.ROTATION_0:\n case Surface.ROTATION_180:\n if (mSensorOrientation == 90 || mSensorOrientation == 270) {\n swappedDimensions = true;\n }\n break;\n // 横屏\n case Surface.ROTATION_90:\n case Surface.ROTATION_270:\n if (mSensorOrientation == 0 || mSensorOrientation == 180) {\n swappedDimensions = true;\n }\n break;\n default:\n Log.e(TAG, \"Display rotation is invalid: \" + displayRotation);\n break;\n }\n\n if (swappedDimensions) {\n rotatedPreviewWidth = height;\n rotatedPreviewHeight = width;\n screenWidth = displaySize.y;\n screenHeight = displaySize.x;\n }\n\n if (screenWidth > MAX_PREVIEW_WIDTH) {\n screenWidth = MAX_PREVIEW_WIDTH;\n }\n\n if (screenHeight > MAX_PREVIEW_HEIGHT) {\n screenHeight = MAX_PREVIEW_HEIGHT;\n }\n\n // Danger, W.R.! Attempting to use too large a preview size could exceed the camera\n // bus' bandwidth limitation, resulting in gorgeous previews but the storage of\n // garbage capture data.\n mPreviewSize = chooseOptimalSize(\n map.getOutputSizes(SurfaceTexture.class),\n rotatedPreviewWidth,\n rotatedPreviewHeight,\n screenWidth,\n screenHeight,\n largest);\n // mPreviewSize.getWidth(): 960 mPreviewSize.getHeight(): 720\n MLog.d(TAG, \"setupCameraOutputs()\" +\n \" mPreviewSize.getWidth(): \" + mPreviewSize.getWidth() +\n \" mPreviewSize.getHeight(): \" + mPreviewSize.getHeight());\n\n // We fit the aspect ratio of TextureView to the size of preview we picked.\n int orientation = getResources().getConfiguration().orientation;\n // 横屏\n if (orientation == Configuration.ORIENTATION_LANDSCAPE) {\n mTextureView.setAspectRatio(\n mPreviewSize.getWidth(), mPreviewSize.getHeight());\n } else {\n mTextureView.setAspectRatio(\n mPreviewSize.getHeight(), mPreviewSize.getWidth());\n }\n\n // Check if the flash is supported.\n Boolean available = characteristics.get(\n CameraCharacteristics.FLASH_INFO_AVAILABLE);\n mFlashSupported = available == null ? false : available;\n return;\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n } catch (NullPointerException e) {\n // Currently an NPE is thrown when the Camera2API is used but not supported on the\n // device this code runs.\n Camera2Fragment.ErrorDialog.newInstance(getString(R.string.camera_error))\n .show(getChildFragmentManager(), FRAGMENT_DIALOG);\n }\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }", "public Engine() {\r\n if (MainMIDlet.DEBUG) System.err.println(\"Engine()\");\r\n m_offscreen = Image.createImage(MainMIDlet.m_width, MainMIDlet.m_height);\r\n MainMIDlet.m_instance.setView(this, MainMIDlet.MENU);\r\n MainMIDlet.check_Point(AlertType.INFO);\r\n m_stop = false;\r\n m_state = LOADING;\r\n m_isFreshScreen = false;\r\n m_isPainting = false;\r\n new Thread(this).start();\r\n // Ustawienie czcionki\r\n try{\r\n m_imgBackgroung = Image.createImage(MainMIDlet.m_width, MainMIDlet.m_height);\r\n Graphics g = m_imgBackgroung.getGraphics();\r\n g.setColor(MainMIDlet.m_instance.m_store.getInteger(Store.INT_COLOR_BACKGROUND));\r\n g.fillRect(0, 0, MainMIDlet.m_width, MainMIDlet.m_height);\r\n if ((m_background & MainMIDlet.FLAG_GRADIENT) == MainMIDlet.FLAG_GRADIENT){\r\n int sample_w = MainMIDlet.m_width;\r\n int sample_h = MainMIDlet.m_height;\r\n int sample_x = 0;\r\n int sample_y = 0;\r\n int color0 = MainMIDlet.m_instance.m_store.getInteger(Store.INT_COLOR_GRADIENT0);\r\n int color9 = MainMIDlet.m_instance.m_store.getInteger(Store.INT_COLOR_GRADIENT9);\r\n int red0 = (color0 >> 16) & 0xff;\r\n int green0 = (color0 >> 8) & 0xff;\r\n int blue0 = (color0) & 0xff;\r\n int red9 = (color9 >> 16) & 0xff;\r\n int green9 = (color9 >> 8) & 0xff;\r\n int blue9 = (color9) & 0xff;\r\n final int prec = 16;\r\n long deltaRed = ((red9 - red0) << prec) / (sample_h);\r\n long deltaGreen = ((green9 - green0) << prec) / (sample_h);\r\n long deltaBlue = ((blue9 - blue0) << prec) / (sample_h);\r\n for (int i=0; i<sample_h; i++){\r\n int iRed = (int)(red0+((i*deltaRed)>>prec));\r\n int iGreen = (int)(green0+((i*deltaGreen)>>prec));\r\n int iBlue = (int)(blue0+((i*deltaBlue)>>prec));\r\n if (MainMIDlet.DEBUG) System.err.println(\" \"+iRed+\" \"+iGreen+\" \"+iBlue+\" \");\r\n g.setColor(iRed>255?255:(iRed<0?0:iRed), iGreen>255?255:(iGreen<0?0:iGreen), iBlue>255?255:(iBlue<0?0:iBlue));\r\n g.drawLine(sample_x, (int)sample_y+i, sample_x+sample_w, sample_y+i);\r\n }\r\n }\r\n if ((m_background & MainMIDlet.FLAG_BACKGROUND) == MainMIDlet.FLAG_BACKGROUND){\r\n g.drawImage(Image.createImage(\"/bkg.png\"), MainMIDlet.m_width >> 1, MainMIDlet.m_height >> 1, g.HCENTER|g.VCENTER);\r\n }\r\n if ((m_background & MainMIDlet.FLAG_PANEL) == MainMIDlet.FLAG_PANEL)\r\n m_imgPanel = Image.createImage(\"/pan.png\");\r\n if ((m_background & MainMIDlet.FLAG_ADVERTISMENT) == MainMIDlet.FLAG_ADVERTISMENT){\r\n m_imgBan = Image.createImage(\"/ban.png\");\r\n m_imgAdv = Image.createImage(\"/adv.png\");\r\n }\r\n \r\n } catch (Exception e){\r\n if (MainMIDlet.DEBUG) e.printStackTrace();\r\n }\r\n m_fontFlags = MainMIDlet.m_instance.m_store.getInteger(Store.INT_FONT);\r\n int face = 0;\r\n if ((m_fontFlags & Font.FACE_MONOSPACE) == Font.FACE_MONOSPACE)\r\n face = Font.FACE_MONOSPACE;\r\n else if ((m_fontFlags & Font.FACE_PROPORTIONAL) == Font.FACE_PROPORTIONAL)\r\n face = Font.FACE_PROPORTIONAL;\r\n int style = 0;\r\n if ((m_fontFlags & Font.STYLE_BOLD) == Font.STYLE_BOLD)\r\n style |= Font.STYLE_BOLD;\r\n if ((m_fontFlags & Font.STYLE_ITALIC) == Font.STYLE_ITALIC)\r\n style |= Font.STYLE_ITALIC;\r\n if ((m_fontFlags & Font.STYLE_UNDERLINED) == Font.STYLE_UNDERLINED)\r\n style |= Font.STYLE_UNDERLINED;\r\n int size = 0;\r\n if ((m_fontFlags & Font.SIZE_LARGE) == Font.SIZE_LARGE)\r\n size = Font.SIZE_LARGE;\r\n else if ((m_fontFlags & Font.SIZE_SMALL) == Font.SIZE_SMALL)\r\n size = Font.SIZE_SMALL;\r\n \r\n m_font = Font.getFont(face, style, size);\r\n // row_counts - liczba wierszy\r\n int row_counts = m_lineBuffor + 1 + m_lineHistory;\r\n \r\n // wyliczenie pozycji Top od której zaczyna się tekst\r\n m_panLyrTop = m_height - m_lineBase - (m_font.getHeight() + m_lineSpacing) * row_counts;\r\n if (m_lineBase < 0){\r\n m_panLyrTop = -m_lineBase + m_lineSpacing;\r\n }\r\n // jeśli jest aktywny panel to uwzględniamy go\r\n if (m_imgPanel != null ){\r\n if (m_lineBase < 0){\r\n m_panLyrTop += m_panAdvHeight;\r\n } else{\r\n m_panLyrTop -= m_panAdvHeight;\r\n }\r\n }\r\n \r\n \r\n // stworzenie tablicy tekstów\r\n m_screenData = new int[row_counts][];\r\n m_song = MainMIDlet.m_instance.m_store.getSongActual();\r\n m_timeTitle = System.currentTimeMillis();\r\n m_state = CALCULATING;\r\n m_isFreshScreen = false;\r\n m_lyrText = m_song.m_mlyrText;\r\n m_lyrData = m_song.m_mlyrData;\r\n // screen data\r\n m_screenRowActive = MainMIDlet.m_instance.m_store.getInteger(Store.INT_LINEHISTORY);\r\n // początek piosenki\r\n m_idxSylNotOld = 0;\r\n scrollScereenData();\r\n MainMIDlet.m_instance.setView(this, MainMIDlet.MENU|MainMIDlet.SING);\r\n \r\n }", "public void mo8822f() {\n if (C2274o.m9903i(C3720a.this.f12125b.mo8842J())) {\n if (!C2331d.m10125b((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION)) {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION, (Bundle) null);\n }\n });\n }\n } else if (C2274o.m9902h(C3720a.this.f12125b.mo8842J())) {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n C3720a.this.f12125b.mo8868e(C3720a.this._context.getText(R.string.cmn_msg_just_a_moment).toString());\n }\n });\n } else {\n if (C2274o.m9917w(C3720a.this.f12125b.mo8842J()) && !C3720a.this._isStartPreset) {\n C3720a.this._isStartPreset = true;\n }\n if (C2331d.m10125b((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION)) {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n C2331d.m10100a((Activity) C3720a.this);\n }\n });\n }\n }\n }", "public void setupCamera() {\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n\r\n if(isTiling) {\r\n float mod=1f/10f;\r\n p.frustum(width*((float)tileX/(float)tileNum-.5f)*mod,\r\n width*((tileX+1)/(float)tileNum-.5f)*mod,\r\n height*((float)tileY/(float)tileNum-.5f)*mod,\r\n height*((tileY+1)/(float)tileNum-.5f)*mod,\r\n cameraZ*mod, 10000);\r\n }\r\n\r\n }", "public void takePicture() {\n LightMeter lightMeter = new LightMeter(film.getSpeed());\n shutter.setSeconds(lightMeter.getRecommendedSpeed());\n aperture.setSize(lightMeter.getRecommendedAperture());\n shutter.trigger();\n }", "public void doVideoCapture() {\n /*\n r6 = this;\n r0 = r6.mPaused;\n if (r0 != 0) goto L_0x0043;\n L_0x0004:\n r0 = r6.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0043;\n L_0x0009:\n r0 = r6.mMediaRecorderRecording;\n if (r0 == 0) goto L_0x0042;\n L_0x000d:\n r0 = r6.mNeedGLRender;\n if (r0 == 0) goto L_0x0029;\n L_0x0011:\n r0 = r6.isSupportEffects();\n if (r0 == 0) goto L_0x0029;\n L_0x0017:\n r0 = r6.mCameraDevice;\n r1 = 0;\n r0.enableShutterSound(r1);\n r0 = r6.mAppController;\n r0 = r0.getCameraAppUI();\n r1 = r6.mPictureTaken;\n r0.takePicture(r1);\n goto L_0x0041;\n L_0x0029:\n r0 = r6.mSnapshotInProgress;\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = java.lang.System.currentTimeMillis();\n r2 = r6.mLastTakePictureTime;\n r2 = r0 - r2;\n r4 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 >= 0) goto L_0x003c;\n L_0x003b:\n return;\n L_0x003c:\n r6.mLastTakePictureTime = r0;\n r6.takeASnapshot();\n L_0x0041:\n return;\n L_0x0042:\n return;\n L_0x0043:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.doVideoCapture():void\");\n }", "public void updateCamera() {\n\t}", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "public void startVirtual() {\n if (mMediaProjection != null) {\n Log.i(TAG, \"want to display virtual\");\n virtualDisplay();\n } else {\n Log.i(TAG, \"start screen capture intent\");\n Log.i(TAG, \"want to build mediaprojection and display virtual\");\n setUpMediaProjection();\n virtualDisplay();\n }\n }", "@Override\n\tpublic void onCameraViewStarted(int width, int height) {\n\n\n\n\t\tmRgbaT = new Mat(width, height, CvType.CV_8UC4); // NOTE width,width is NOT a typo\n\n\t}", "@Override\n\tpublic void robotInit() {\n\t\t\n\t\t//CameraServer.getInstance().startAutomaticCapture(); //Minimum required for camera\n\t\t\n\t\t//new Thread(() -> {\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n camera.setWhiteBalanceAuto();\n camera.setFPS(20);\n \n //CvSink cvSink = CameraServer.getInstance().getVideo();\n //CvSource outputStream = CameraServer.getInstance().putVideo(\"Blur\", 640, 480);\n /* \n Mat source = new Mat();\n Mat output = new Mat();\n \n while(!Thread.interrupted()) {\n cvSink.grabFrame(source);\n Imgproc.cvtColor(source, output, Imgproc.COLOR_BGR2GRAY);\n outputStream.putFrame(output);\n }*/\n //}).start();\n\t\t\n\t\t\n\t\t\n\t\t/**\n\t\t * 7780 long run\n\t\t */\n\t\t\n\t\tdriverStation = DriverStation.getInstance();\n\t\t// Initialize all subsystems\n\t\tm_drivetrain = new DriveTrain();\n\t\tm_pneumatics = new Pneumatics();\n\t\t\n\t\tm_pneumatics.createSolenoid(RobotMap.PNEUMATICS.GEARSHIFT_SOLENOID, \n\n\t\t\t\tRobotMap.PNEUMATICS.SOLENOID_ID_1, \n\n\t\t\t\tRobotMap.PNEUMATICS.SOLENOID_ID_2);\n\t\t\n\t\tm_pneumatics.createSolenoid(RobotMap.PNEUMATICS.FORKLIFT_SOLENOID, RobotMap.PNEUMATICS.SOLENOID_ID_3, RobotMap.PNEUMATICS.SOLENOID_ID_4);\n\t\t\n\t\tm_forklift = new ForkLift();\n\t\tm_intake = new Intake();\n\t\tm_oi = new OI();\n\n\t\t// instantiate the command used for the autonomous period\n\t\tm_autonomousCommand = new Autonomous();\n\t\tdriverXbox = m_oi.getDriverXboxControl();\n\t\toperatorXbox = m_oi.getDriverXboxControl();\n\t\tsetupAutoCommands();\n\t\t\n\t\t//chooser.addDefault(\"Left Long\",new LeftLong());\n\t\t\n\t\t//SmartDashboard.putData(\"Auto\",chooser);\n\n\t\t// Show what command your subsystem is running on the SmartDashboard\n\t\tSmartDashboard.putData(m_drivetrain);\n\t\tSmartDashboard.putData(m_forklift);\n\t\t\n\t}", "public void onCameraViewStarted(int width, int height) {\n m_lastOutput = new Mat(height, width, CvType.CV_8UC4);\n\n m_draw = new Mat(height, width, CvType.CV_8UC4);\n\n m_gray = new Mat(height, width, CvType.CV_8UC1);\n\n\n // area detection size mat\n calculateDetectArea(width, height);\n m_sub_draw = new Mat(m_draw, r_detectArea);\n m_sub_gray = new Mat(m_gray, r_detectArea);\n\n m_gui_area = new Mat(r_detectArea.height, r_detectArea.width, CvType.CV_8UC4);\n createGuiSdk();\n\n m_AT_finished = new Mat(r_detectArea.height, r_detectArea.width, CvType.CV_8UC4);\n m_AT_pending = new Mat(r_detectArea.height, r_detectArea.width, CvType.CV_8UC4);\n m_sdk = new Mat(r_detectArea.height, r_detectArea.width, CvType.CV_8UC4);\n\n at_findSdk = new AT_findSdk();\n\n\n sdkFound = false;\n outputChoice = false;\n }", "public void run() {\n\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(windowWidth, windowHeight));\n\t\t\tDisplay.setTitle(TITLE);\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\tSystem.err.println(\"Error: Failed to create display\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/*\n\t\t * Initialize LWJGL and OpenGL\n\t\t */\n\t\t{\n\t\t\tGL11.glViewport(0, 0, windowWidth, windowHeight);\n\t\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\t\tGL11.glShadeModel(GL11.GL_SMOOTH);\n\t\t\tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\tGL11.glEnable(GL11.GL_BLEND);\n\t\t\tGL11.glAlphaFunc(GL11.GL_GREATER, 0.1f);\n\t\t\t// GL11.glEnable(GL11.GL_ALPHA_TEST);\n\t\t\tGL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, GL11.GL_NICEST);\n\t\t\tGL11.glClearColor(0.0f, 0.0f, 0.0f, 1f);\n\t\t}\n\n\t\ttry {\n\t\t\twhile (!(Display.isCloseRequested() || Keyboard.isKeyDown(Keyboard.KEY_Q))) {\n\t\t\t\t// Don't eat everything!!!\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(16);\n\t\t\t\t} catch (InterruptedException 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\t\t\t\tsetCamera();\n\n\t\t\t\t/*\n\t\t\t\t * Draw Code\n\t\t\t\t */\n\n\t\t\t\tsynchronized (model.drawableObjects) {\n\t\t\t\t\tfor (Drawable drawable : model.drawableObjects)\n\t\t\t\t\t\tdrawable.draw();\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * End draw code\n\t\t\t\t */\n\n\t\t\t\tDisplay.update();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Uncaught exception in View main loop: \" + e.getMessage()\n\t\t\t\t\t+ \"\\nCleaning up and exiting.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t/*\n\t\t * Clean up\n\t\t */\n\n\t\tmodel.endGame();\n\t\tcontroller.endGame();\n\t\tDisplay.destroy();\n\t}", "public void targetCrochet() {\n\t\twhile(true) {\n\t\t\tm_camera.read(m_originalImage);\n\t\t\ttry {\n\t\t\t\tThread.sleep(0);\n\t\t\t}\n\t\t\tcatch (java.lang.InterruptedException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (m_originalImage.cols() != 0)\n\t\t\t\t\tbreak;\n\t\t}\n\t\tm_srcImage = m_originalImage.clone();\n\t\tm_hsvImage = m_srcImage.clone();\n\t\tMat backupImage = m_originalImage.clone();\n\t\tImgproc.cvtColor(m_srcImage, m_hsvImage, Imgproc.COLOR_BGR2HSV);\n\t\t\n\t\t/*\n\t\t * Permet de faire le choix de l'intervale de couleur\n\t\t * \n\t\t * Param1 = source, Param2 = 3 valeur minimum HSV, Param3 = 3 valeur maximum HSV, Param 4 = destination\n\t\t *\n\t\t */\n\t\tCore.inRange(m_hsvImage, m_minHSV , m_maxHSV, m_hsvOverlay); // Valeur pour le tape\n\n\t\t//Core.multiply(m_hsvOverlay, new Scalar(0.75, 0.75, 0.75), m_hsvOverlay);\n\t\t//Core.multiply(m_hsvOverlay, new Scalar(0.3, 1, 1), m_hsvOverlay);\n\n\t\t//Nous allons utiliser le maintenant inutile hsvImage comme Mat de swap...\n\t\tImgproc.cvtColor(m_hsvOverlay, m_hsvImage, Imgproc.COLOR_GRAY2BGR);\n\t\t\n\t\t\n\t\t/*\n\t\t * findContour va trouver les contours des objets de l'image\n\t\t * \n\t\t */\n\t\tList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\tImgproc.findContours(m_hsvOverlay, contours, new Mat(), Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t//Core.multiply(srcImage, new ScacurrentFPSlar(0,0,0), srcImage);\n\n\t\t//Appliquer le masque...\n\n\t\t//Imgproc.cvtColor(m_hsvOverlay, m_hsvOverlay, Imgproc.COLOR_GRAY2BGR);\n\t\t//Core.bitwise_and(srcImage, m_hsvOverlay, srcImage);\n\n\t\tList<MatOfInt> convexhulls = new ArrayList<MatOfInt>(contours.size());\n\t\tList<MatOfPoint> targetHulls = new ArrayList<>();\n\t\tList<RotatedRect> rRects = new ArrayList<>();\n\t\tList<Double> orientations = new ArrayList<Double>();\n//\t\t//Dessiner les rectangles\n\t\tList<RotatedRect> selectedRect = new ArrayList<>();\n\t\tRotatedRect biggestRect = new RotatedRect();\n\t\tRotatedRect second = new RotatedRect();\n\t\tdouble biggestArea = 0;\n\t\tdouble secondBiggest = 0;\n\t\tPoint crochetPos = new Point();\n\t\tfor (int i = 0; i < contours.size(); i++)\n\t\t{\n//\t\t\t//Trier les contours qui ont une bounding box\n\t\t\tconvexhulls.add(i, new MatOfInt(6));\n\t\t\tdouble tempArea = Imgproc.contourArea(contours.get(i));\n\t\t\tif (tempArea > 100)\n\t\t\t{\n\t\t\t\tImgproc.convexHull(contours.get(i), convexhulls.get(i));\n\t\t\t\t//double contourSolidity = Imgproc.contourArea(contours.get(i))/Imgproc.contourArea(convexhulls.get(i));\n\t\t\t\t//Imgproc.drawContours(m_srcImage, contours, i, new Scalar(255, 255, 255), -1);\n\t\t\t\tMatOfPoint2f points = new MatOfPoint2f(contours.get(i).toArray());\n\t\t\t\tRotatedRect rRect = Imgproc.minAreaRect(points);\n\t\t\t\tMatOfPoint2f approx = new MatOfPoint2f();\n\t\t\t\tdouble epsilon = 0.012*Math.pow(Imgproc.arcLength(new MatOfPoint2f(contours.get(i).toArray()),true), 1.3);\n\t\t\t\tImgproc.approxPolyDP(new MatOfPoint2f(contours.get(i).toArray()),approx,epsilon,true);\n\t\t\t\tdouble convexArea = Imgproc.contourArea(approx);\n\t\t\t\tdouble ratio = rRect.size.area() / convexArea;\n\t\t\t\tImgproc.putText(m_srcImage, String.valueOf(ratio), new Point(30, i*70), 1, 1, new Scalar(255, 20, 20));\n\t\t\t\tImgproc.putText(m_srcImage, \"angle :\" + String.valueOf(Math.abs(rRect.angle%90)), rRect.center, 1, 1, new Scalar(155, 120, 20));\n\t\t\t\tMatOfPoint approxpoints = new MatOfPoint();\n\t\t\t\tapprox.convertTo(approxpoints, CvType.CV_32S);\n\t\t\t\tList<MatOfPoint> matofapprox = new ArrayList<>();\n\t\t\t\tmatofapprox.add(approxpoints);\n\t\t\t\tImgproc.drawContours(m_srcImage, matofapprox, 0, new Scalar(20, 25, 200), 5);\n\n\t\t\t\t//If its a tetragon, (ex, rectangle, trapezoid), add the convex hulls to the list\n\t\t\t\tif(approx.rows()==4) {\n\t\t\t\t\ttargetHulls.add(approxpoints);\n\t\t\t\t\trRects.add(rRect);\n\t\t\t\t}\n\t\t\t\tif (tempArea > biggestArea)\n\t\t\t\t{\n\t\t\t\t\tbiggestRect = rRect;\n\t\t\t\t\tbiggestArea = tempArea;\n\t\t\t\t}\n\t\t\t\tPoint[] vertices = new Point[4];\n\t\t\t\trRect.points(vertices);\n\t\t\t\tdouble Center_Y = rRect.center.y;\n\t\t\t\tdouble Center_X = rRect.center.x;\n\n\t\t\t\tScalar color = new Scalar(255, 0, 0);\n\n\t\t\t\tImgproc.line(m_srcImage, new Point(Center_X, Center_Y - 50), new Point(Center_X, Center_Y + 50), color, 2);\n\t\t\t\t//System.out.println(contourSolidity);\n\t\t\t}\n\t\t}\n\n\t\tArrayList<Tuple<Target, Target>> ListOfPairs = new ArrayList<>();\n\t\t//We need to make pairs of targets for further calculation\n\t\t//First we should sort the targetHulls by position along x\n\t\tArrayList<Target> ListOfTargets = new ArrayList<>();\n\t\tfor(int i = 0; i < targetHulls.size(); i++){\n\t\t\tListOfTargets.add(new Target(rRects.get(i), targetHulls.get(i)));\n\t\t}\n\n\t\tCollections.sort(ListOfTargets, new Comparator<Target>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Target o1, Target o2) {\n\t\t\t\treturn o1.rect.center.x < o2.rect.center.x ? -1 : o1.rect.center.x == o2.rect.center.x ? 0:1;\n\t\t\t}\n\t\t});\n\n\t\tBoolean skip = false;\n\t\tfor(int i = 0; i < ListOfTargets.size(); i++){\n\t\t\tdouble angle = Math.abs(ListOfTargets.get(i).rect.angle%90);\n\t\t\tif(skip){\n\t\t\t\tskip = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(angle > 60 && angle < 90 && i+1<targetHulls.size()) {\n\t\t\t\tListOfPairs.add(new Tuple(ListOfTargets.get(i), ListOfTargets.get(i+1)));\n\t\t\t\tskip = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tdouble highestDistance = 0;\n\t\tint chosenIndex = 0;\n\t\tfor(int i = 0; i<ListOfPairs.size(); i++){\n\t\t\tTuple<Target, Target> tempTarget = ListOfPairs.get(i);\n\t\t\t//Calculate mean point:\n\t\t\tPoint mean = new Point((tempTarget.x.rect.center.x + tempTarget.y.rect.center.x)/2, (tempTarget.x.rect.center.y + tempTarget.y.rect.center.y)/2);\n\t\t\t//Calcualte distance\n\t\t\tdouble distance = Math.sqrt(Math.pow((tempTarget.x.rect.center.x - tempTarget.y.rect.center.x),2) + Math.pow(tempTarget.x.rect.center.y = tempTarget.y.rect.center.y, 2));\n\t\t\t//calculate angle of mean point\n\t\t\tdouble degree = Math.atan(((mean.x-CENTRE_IMAGE_X)*CONV_PIXEL2CM)/FOV_LENGHT)*2;\n\t\t\tdegree = Math.toDegrees(degree);\n\t\t\tif(distance > highestDistance) {\n\t\t\t\tchosenIndex = i;\n\t\t\t\tm_degree = degree;\n\t\t\t\ttables.setAngle(degree, 0);\n\t\t\t\tSystem.out.println(degree);\n\t\t\t}\n\t\t\tMatOfPoint combinedPoints = new MatOfPoint();\n\t\t\tArrayList<Mat> concatList = new ArrayList<>();\n\t\t\tconcatList.add(tempTarget.x.hull);\n\t\t\tconcatList.add(tempTarget.y.hull);\n\t\t\tCore.vconcat(concatList, combinedPoints);\n\t\t\tArrayList<MatOfPoint> pointsList = new ArrayList<>();\n\t\t\tpointsList.add(combinedPoints);\n\t\t\tRect boundingRect = Imgproc.boundingRect(combinedPoints);\n\t\t\tPoint[] vertices = new Point[4];\n\t\t\tRotatedRect rRect = new RotatedRect();\n\t\t\trRect.angle = 0;\n\t\t\trRect.size = boundingRect.size();\n\t\t\trRect.center = new Point(boundingRect.x + (boundingRect.size().width/2), boundingRect.y + (boundingRect.size().height/2));\n\t\t\trRect.points(vertices);\n\t\t\tfor (int j = 0; j < 4; j++) //Dessiner un rectangle avec rotation\n\t\t\t{\n\t\t\t\tImgproc.line(m_srcImage, vertices[j], vertices[(j+1)%4], new Scalar(20,200,40), 5);\n\t\t\t}\n\t\t\tImgproc.drawMarker(m_srcImage, mean, new Scalar(40, 200, 200), Imgproc.MARKER_CROSS, 40, 1, Imgproc.LINE_AA);\n\t\t}\n\n\t\tCore.add(m_srcImage, backupImage, m_srcImage);\n\t}", "private void setCamera(GL2 gl, GLU glu)\n {\n Boundary bc = simulation.getBoundary();\n int w = (int) (bc.getMaxSize(0)-bc.getMinSize(0));\n int h = (int) (bc.getMaxSize(1)-bc.getMinSize(1));\n\n gl.glViewport(0, 0, w, h);\n\n\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glLoadIdentity();\n //opening angle, ratio of height and width, near and far\n glu.gluPerspective(80.0, 1,0.1,3*( bc.getMaxSize(2)-bc.getMinSize(2)));\n\n gl.glTranslatef(0.5f*(float) bc.getMinSize(0),-0.5f*(float) bc.getMinSize(1),1.5f*(float) bc.getMinSize(2));\n // gl.glTranslatef(0.5f*(float) (bc.getMaxSize(0)+bc.getMinSize(0)),0.5f*(float)(bc.getMaxSize(1)+ bc.getMinSize(1)),(float) -(bc.getMaxSize(2)-bc.getMinSize(2)));\n\n }", "private Camera() {\n viewport = new Rectangle();\n dirtyAreas = new ArrayList<Rectangle>();\n renderedAreas = new ArrayList<Rectangle>();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }", "private void sendScreenOptionsToBrowser() {\n ScreenCap.BrowserScreenMetrics metrics = screenCap.getScreenMetrics();\n mWebkeyVisitor.sendGson(new Message(\"1\", Message.Type.SCREEN_OPTIONS, new ScreenOptionsPayload(\n metrics.getWidth(),\n metrics.getHeight(),\n metrics.getRotation(),\n hasNavBar\n )));\n }", "public void drawFloor() {\r\n GLES20.glUseProgram(program);\r\n\r\n // Set ModelView, MVP, position, normals, and color.\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\r\n\r\n checkGLError(\"drawing floor\");\r\n }", "@Override\n public void onDrawFrame(GL10 unused) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // Set the camera position (View matrix)\n Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n // Calculate the projection and view transformation\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n\n Matrix.translateM(mMVPMatrix, 0, getScreenWidth()/2, -getScreenHeight()/2, 0); // apply translation\n Matrix.scaleM(mMVPMatrix,0,scaler,scaler,scaler);\n mSquare.draw(mMVPMatrix,Player.colorP1);\n mHat.draw(mMVPMatrix);\n\n robe.draw(mMVPMatrix, Robe.LEFT_ROBE);\n p1Eye.draw(mMVPMatrix, Circle.FACE_RIGHT, true, true);\n\n Matrix.multiplyMM(mMVPMatrix2, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n Matrix.translateM(mMVPMatrix2, 0, -getScreenWidth()/2, -getScreenHeight()/2, 0);\n Matrix.scaleM(mMVPMatrix2,0,scaler,scaler,scaler);\n mSquare2.draw(mMVPMatrix2,Player.colorP2);\n mHat2.draw(mMVPMatrix2);\n\n robe2.draw(mMVPMatrix2, Robe.RIGHT_ROBE);\n p2Eye.draw(mMVPMatrix2, Circle.FACE_LEFT, true, true);\n }", "@Override\n public void capture() {\n captureScreen();\n }", "public void updateScreen(){}", "private void activeSensor(Sensor sensor) {\n selectedSensor = sensor;\n// selectedSensor.debug(true);\n// if (start) {\n// view = (DrawingView) findViewById(R.id.surface);\n// bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.RGB_565);\n// canvas = new Canvas(bitmap);\n// view.setDrawer(new DrawingView.Drawer() {\n// @Override\n// public void draw(Canvas canvas) {\n// canvas.drawBitmap(bitmap, 0, 0, null);\n// }\n// });\n// }\n }", "public void startFrontCam() {\n }", "public void runOpMode() throws InterruptedException {\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n leftArm = hardwareMap.dcMotor.get(\"leftArm\");\n rightArm = hardwareMap.dcMotor.get(\"rightArm\");\n rightDistance = hardwareMap.get(DistanceSensor.class, \"rightDistance\");\n leftColor = hardwareMap.colorSensor.get(\"leftColor\");\n rightWheel.setDirection(DcMotorSimple.Direction.REVERSE);\n count = 21;\n step = 3;\n subStep = 0;\n\n sample_ready = false;\n lander_unlatched = false;\n\n //prepares and resets robot by resetting encoders\n resetDriveEncoders();\n\n //prepares robot for arm movement by setting arm motors to go to a certain position-modifiable by user input (the d-pad)\n// leftArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// rightArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //HSV value array\n\n //Sends color sensor input values to the phone\n waitForStart();\n\n while (opModeIsActive()) {\n telemetry.update();\n\n\n telemetry.addLine()\n .addData(\"step\", step)\n .addData(\"subStep\", subStep)\n .addData(\"count\", count);\n telemetry.addLine()\n .addData(\"RightWheel: \", rightWheel.getCurrentPosition())\n .addData(\"LeftWheel: \", leftWheel.getCurrentPosition())\n .addData(\"TICKS_PER_WHEEL_ROTATION: \", TICKS_PER_WHEEL_ROTATION);\n\n\n//sets the step of where we are in the process to one\n // step = 1;\n//enables the if statement for lander_unlatched\n lander_unlatched = true;\n//moves the robot from the lander to where the samples are\n if (step == 1) {\n// leftWheel.setPower(0.7);\n// rightWheel.setPower(0.5);\n// leftWheel.setTargetPosition(1621);\n// rightWheel.setTargetPosition(820);\n step = 2;\n }\n if (step == 2) {\n// if (hsvValues[0] > 50) {\n// leftWheel.setPower(-0.7);\n// rightWheel.setPower(-0.5);\n// leftWheel.setTargetPosition(1221);\n step = 3;\n }\n// if step 2 is finished, makes the robot turn toward the wall, then drives against the wall.\n if (step == 3) {\n moveToDepot();\n }\n //1150 Target Units == about 1 foot, 96 Units/inch\n//sets the wheel power to 0 to limit movement\n// if (rightWheel.getCurrentPosition() == -rotation) {\n // rightWheel.setPower(0);\n //leftWheel.setPower(0);\n// }\n// if (leftWheel.getCurrentPosition() == 100) {\n// leftWheel.setPower(0);\n// rightWheel.setPower(0);\n// }\n\n sample_ready = true;\n\n// if (sample_ready) {\n//\n }\n }", "private void calculateMatrices() {\n viewMatrix = new Matrix();\n clipRect = null;\n\n float actualWidth = gameModel.actualWidth = getWidth();\n float actualHeight = gameModel.actualHeight = getHeight();\n float virtualWidth = gameModel.getWidth();\n float virtualHeight = gameModel.getHeight();\n\n float scale = Math.max(virtualWidth / actualWidth, virtualHeight / actualHeight);\n if (scale < 0.99 || scale > 1.01) {\n viewMatrix.postScale(1f / scale, 1f / scale);\n\n float extraW = actualWidth * scale - virtualWidth;\n float extraH = actualHeight * scale - virtualHeight;\n\n if (extraW > 1f || extraH > 1f) {\n viewMatrix.postTranslate(extraW / scale / 2f, extraH / scale / 2f);\n clipRect = new RectF(0, 0, virtualWidth, virtualHeight);\n }\n }\n\n // Invert the view matrix, to obtain a matrix that can be used for translating\n // touch events back to virtual coordinates.\n touchMatrix = new Matrix(viewMatrix);\n touchMatrix.invert(touchMatrix);\n }", "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "@Override\r\n public void simpleInitApp() {\r\n\r\n customCam = new GraphicalUserInterface.CustomCam(cam);\r\n if (customCam != null) {\r\n flyCam.setEnabled(false);\r\n customCam.registerWithInput(inputManager);\r\n customCam.setZoomSpeed(10f);\r\n customCam.setRotationSpeed(10f);\r\n customCam.setMoveSpeed(3f);\r\n customCam.setDistance(50.0f);\r\n }\r\n setDisplayStatView(false); // to hide the statistics\r\n setDisplayFps(false);\r\n viewPort.setBackgroundColor(ColorRGBA.Black);\r\n ambient.setColor(new ColorRGBA(0.7f, 0.7f, 0.8f, 1.0f));\r\n rootNode.addLight(ambient);\r\n // Set up the directional light\r\n light1.setColor(ColorRGBA.White);\r\n\r\n rootNode.addLight(light1);\r\n\r\n createSceneGraph();\r\n\r\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n\n float ratio = (float) width / height;\n\n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n\n }", "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "@Override\n public void initialize(RenderManager rm, ViewPort vp) {\n reshape(vp, vp.getCamera().getWidth(), vp.getCamera().getHeight());\n viewPort.setOutputFrameBuffer(fb);\n guiViewPort.setClearFlags(true, true, true);\n\n guiNode.attachChild(display1);\n guiNode.attachChild(display2);\n guiNode.attachChild(display3);\n guiNode.attachChild(display4);\n guiNode.updateGeometricState();\n }", "public void mo8817b() {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n C2331d.m10100a((Activity) C3720a.this);\n }\n });\n }", "public void switchSmart(){\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseBrightnessCmd(seekBarBrightness.getProgress()), 3, seekBarBrightness.getProgress(), item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n //String CMD_HSV = \"{\\\"id\\\":1,\\\"method\\\":\\\"set_hsv\\\",\\\"params\\\":[0, 0, \\\"smooth\\\", 30]}\\r\\n\";\r\n //write(CMD_HSV, 0, 0);\r\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(Color.WHITE)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n }", "public void prepareVisionProcessing(){\n usbCamera = CameraServer.getInstance().startAutomaticCapture();\n /*\n MjpegServer mjpegServer1 = new MjpegServer(\"serve_USB Camera 0\", 1181);\n mjpegServer1.setSource(usbCamera);\n\n // Creates the CvSink and connects it to the UsbCamera\n CvSink cvSink = new CvSink(\"opencv_USB Camera 0\");\n cvSink.setSource(usbCamera);\n\n // Creates the CvSource and MjpegServer [2] and connects them\n CvSource outputStream = new CvSource(\"Blur\", PixelFormat.kMJPEG, 640, 480, 30);\n MjpegServer mjpegServer2 = new MjpegServer(\"serve_Blur\", 1182);\n mjpegServer2.setSource(outputStream);\n */\n }", "public Vision() {\n\n visionCam = CameraServer.getInstance().startAutomaticCapture(\"HatchCam\", 0);\n visionCam.setVideoMode(PixelFormat.kMJPEG, 320, 240, 115200);\n \n int retry = 0;\n while(cam == null && retry < 10) {\n try {\n System.out.println(\"Connecting to jevois serial port ...\");\n cam = new SerialPort(115200, SerialPort.Port.kUSB1);\n System.out.println(\"Success!!!\");\n } catch (Exception e) {\n System.out.println(\"We all shook out\");\n e.printStackTrace();\n sleep(500);\n System.out.println(\"Retry\" + Integer.toString(retry));\n retry++;\n }\n }\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "private void setCameraFlashModeIcon(android.widget.ImageView r5, java.lang.String r6) {\n /*\n r4 = this;\n r0 = r6.hashCode();\n r1 = 3551; // 0xddf float:4.976E-42 double:1.7544E-320;\n r2 = 2;\n r3 = 1;\n if (r0 == r1) goto L_0x0029;\n L_0x000a:\n r1 = 109935; // 0x1ad6f float:1.54052E-40 double:5.4315E-319;\n if (r0 == r1) goto L_0x001f;\n L_0x000f:\n r1 = 3005871; // 0x2dddaf float:4.212122E-39 double:1.4850976E-317;\n if (r0 == r1) goto L_0x0015;\n L_0x0014:\n goto L_0x0033;\n L_0x0015:\n r0 = \"auto\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x001d:\n r6 = 2;\n goto L_0x0034;\n L_0x001f:\n r0 = \"off\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x0027:\n r6 = 0;\n goto L_0x0034;\n L_0x0029:\n r0 = \"on\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x0031:\n r6 = 1;\n goto L_0x0034;\n L_0x0033:\n r6 = -1;\n L_0x0034:\n if (r6 == 0) goto L_0x0061;\n L_0x0036:\n if (r6 == r3) goto L_0x004e;\n L_0x0038:\n if (r6 == r2) goto L_0x003b;\n L_0x003a:\n goto L_0x0073;\n L_0x003b:\n r6 = 2131165380; // 0x7f0700c4 float:1.7944975E38 double:1.0529356E-314;\n r5.setImageResource(r6);\n r6 = 2131558417; // 0x7f0d0011 float:1.874215E38 double:1.053129786E-314;\n r0 = \"AccDescrCameraFlashAuto\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n goto L_0x0073;\n L_0x004e:\n r6 = 2131165382; // 0x7f0700c6 float:1.794498E38 double:1.052935601E-314;\n r5.setImageResource(r6);\n r6 = 2131558419; // 0x7f0d0013 float:1.8742153E38 double:1.053129787E-314;\n r0 = \"AccDescrCameraFlashOn\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n goto L_0x0073;\n L_0x0061:\n r6 = 2131165381; // 0x7f0700c5 float:1.7944978E38 double:1.0529356004E-314;\n r5.setImageResource(r6);\n r6 = 2131558418; // 0x7f0d0012 float:1.8742151E38 double:1.0531297864E-314;\n r0 = \"AccDescrCameraFlashOff\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.p004ui.Components.ChatAttachAlert.setCameraFlashModeIcon(android.widget.ImageView, java.lang.String):void\");\n }", "private void setUp9SpheresScene() {\n camera = new Camera(\n new Point3D(0, 0, 9),\n new Point3D(0,0,0),\n new Point3D(0,1,0),\n Math.PI * 0.5, width, height\n );\n camera.moveForward(1.0);\n\n exposure = 1.0;\n ambientLight = new LightIntensity();\n ambientLight.red = 0.2;\n ambientLight.green = 0.2;\n ambientLight.blue = 0.2;\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.7, .7, .7),\n new RectFace(\n new Point3D(-1.1, 9.99, -5.0),\n new Point3D(1.1, 9.99, -5.0),\n new Point3D(-1.1, 9.99, -6.0)\n )\n ));\n\n Material reflective = new Material();\n reflective.diffuseReflectivity.red = 0.2;\n reflective.diffuseReflectivity.green = 0.2;\n reflective.diffuseReflectivity.blue = 0.2;\n reflective.directReflectivity = LightIntensity.makeUniformRGB(0.5);\n\n Material glass = new Material();\n glass.diffuseReflectivity.red = 0.0;\n glass.diffuseReflectivity.green = 0.0;\n glass.diffuseReflectivity.blue = 0.0;\n glass.passthroughIntensity.red = 0.9;\n glass.passthroughIntensity.green = 0.9;\n glass.passthroughIntensity.blue = 0.9;\n glass.directReflectivity = LightIntensity.makeUniformRGB(0.1);\n glass.refractionIndex = 1.33;\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,0), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,2), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,4), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,0), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,2), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,4), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,0), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,2), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,4), 1), reflective));\n\n Box boundingBox = new Box(\n new Point3D(-10,10, 10),\n new Point3D(-10,10, -10),\n new Point3D(10,10, 10),\n new Point3D(-10,-10, 10)\n );\n\n Material leftWallMaterial = new Material();\n leftWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, 0.3);\n leftWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material rightWallMaterial = new Material();\n rightWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, .7);\n rightWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material frontWallMaterial = new Material();\n frontWallMaterial.diffuseReflectivity = new LightIntensity(0.3,0.3, 0.3);\n frontWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material backWallMaterial = new Material();\n backWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, 0.3);\n backWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material topWallMaterial = new Material();\n topWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n topWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material bottomWallMaterial = new Material();\n bottomWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n bottomWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n try {\n bottomWallMaterial.texture = ImageIO.read(new File(\"C:\\\\Class_work\\\\checkerboard.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n solids.add(new RectFace.FaceSolid(boundingBox.left, leftWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.right, rightWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.front, frontWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.back, backWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.top, topWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.bottom, bottomWallMaterial));\n }", "public void restoreScreen(){\n\n Window w = vc.getFullScreenWindow();\n if (w != null){\n w.dispose();\n }\n vc.setFullScreenWindow(null);\n }", "@Override\n public void modelChanged(double currentAngle, double[][] mat43) {\n Runnable runnable = new Runnable() {\n public void run() {\n updateModelEntList(combinedRotatingMatrix);\n Rectangle rect = getBounds();\n rect.x = 0;\n rect.y = 0;\n// System.out.println(\"MainMonitorCSysView.updateCSysEntList: x \" + rect.x + \" y \" + rect.y + \" w \" + rect.width + \" h\" + rect.height);\n// MainMonitorCSysView.this.paintImmediately(rect);\n repaint();\n }\n };\n if (!SwingUtilities.isEventDispatchThread()) {\n Thread.dumpStack();\n }\n\n// System.out.println(\"isEventDispatchThread \"+SwingUtilities.isEventDispatchThread());\n if (SwingUtilities.isEventDispatchThread()) {\n runnable.run();\n } else {\n SwingUtilities.invokeLater(runnable);\n }\n\n// updateModelEntList(combinedRotatingMatrix);\n// if (backBuffer == null) {\n// buildImage = true;\n// }\n }" ]
[ "0.649711", "0.63080466", "0.6299201", "0.62298787", "0.6121884", "0.6020199", "0.5944125", "0.5900178", "0.5896494", "0.5869833", "0.5867034", "0.58606625", "0.5786673", "0.57704365", "0.57508", "0.57174456", "0.57153237", "0.5703876", "0.57036906", "0.56974703", "0.5695854", "0.568464", "0.5673787", "0.56724477", "0.5671207", "0.5634289", "0.5618599", "0.5606127", "0.5602686", "0.5599428", "0.5586051", "0.55640453", "0.5553745", "0.55496854", "0.55325216", "0.55235445", "0.55220896", "0.55185026", "0.5510208", "0.55100185", "0.55049884", "0.5503282", "0.5496519", "0.54826176", "0.5468344", "0.54645175", "0.5463377", "0.54614866", "0.545973", "0.54494655", "0.54489005", "0.5425881", "0.54235506", "0.54177034", "0.5400843", "0.5362573", "0.53530437", "0.53516614", "0.5346957", "0.53429097", "0.5338007", "0.5337209", "0.5336845", "0.5336408", "0.53302974", "0.53205997", "0.531731", "0.53169215", "0.5315663", "0.5314884", "0.5309977", "0.53025544", "0.5302361", "0.5301269", "0.52998817", "0.52980447", "0.52979773", "0.5288186", "0.5280189", "0.5278045", "0.5277788", "0.5267224", "0.5266572", "0.5261257", "0.52543014", "0.5254034", "0.52535063", "0.5244461", "0.52337486", "0.52292746", "0.5229045", "0.5228074", "0.5227814", "0.52273047", "0.52218676", "0.52212447", "0.52194273", "0.5218499", "0.521525", "0.52144516", "0.5213314" ]
0.0
-1
Perform model to screen projection smartly, considering the effect of a colorbar on the actual viewport.
protected Coord3d modelToScreen(Coord3d model) { IPainter painter = getChart().getPainter(); painter.acquireGL(); int[] viewport = getViewportExcludingColorbar(); float modelView[] = painter.getModelViewAsFloat(); float projection[] = painter.getProjectionAsFloat(); Coord3d screen = painter.modelToScreen(model, viewport, modelView, projection); painter.releaseGL(); return screen; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DeviceCoordinate transformWorldToScreen(final double x, final double y);", "private void prepareProjection(Drawable drawable) {\n Matrix4f viewMatrix = new Matrix4f();\n\n Matrix4f modelMatrix = new Matrix4f();\n\n// Translate camera\n org.lwjgl.util.vector.Matrix4f.translate(this.camera.getPosition(), viewMatrix, viewMatrix);\n\n// Scale, translate and rotate model\n Vector3f modelAngle = drawable.getModelAngle();\n Matrix4f.scale(drawable.getModelScale(), modelMatrix, modelMatrix);\n Matrix4f.translate(drawable.getPosition(), modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.z), new Vector3f(0, 0, 1),\n modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.y), new Vector3f(0, 1, 0),\n modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.x), new Vector3f(1, 0, 0),\n modelMatrix, modelMatrix);\n// Upload matrices to the uniform variables\n GL20.glUseProgram(shaderProgram.getGlProgramId());\n this.camera.getProjectionMatrix().store(matrix44Buffer);\n matrix44Buffer.flip();\n\n /// http://lwjgl.org/wiki/index.php?title=The_Quad_with_Projection,_View_and_Model_matrices\n GL20.glUniformMatrix4(projectionMatrixLocation, false, matrix44Buffer);\n viewMatrix.store(matrix44Buffer);\n matrix44Buffer.flip();\n GL20.glUniformMatrix4(viewMatrixLocation, false, matrix44Buffer);\n modelMatrix.store(matrix44Buffer);\n matrix44Buffer.flip();\n GL20.glUniformMatrix4(modelMatrixLocation, false, matrix44Buffer);\n GL20.glUseProgram(0);\n this.exitOnGLError(\"logicCycle\");\n }", "protected Coord3d screenToModel(Coord3d mouse) {\n IPainter painter = getChart().getPainter();\n\n painter.acquireGL();\n\n int[] viewport = getViewportExcludingColorbar();\n float modelView[] = painter.getModelViewAsFloat();\n float projection[] = painter.getProjectionAsFloat();\n\n Coord3d model = painter.screenToModel(mouse, viewport, modelView, projection);\n\n /*\n * if(model==null) { System.err.println(\"Mouse.screenToModel : output is null\");\n * Array.print(\"Viewport\", viewport); Array.print(\"Modelview\", modelView);\n * Array.print(\"Projection\", projection); }\n */\n\n painter.releaseGL();\n\n return model;\n }", "private void updateCamera() {\n\t\tVector3f x = new Vector3f();\n\t\tVector3f y = new Vector3f();\n\t\tVector3f z = new Vector3f();\n\t\tVector3f temp = new Vector3f(this.mCenterOfProjection);\n\n\t\ttemp.sub(this.mLookAtPoint);\n\t\ttemp.normalize();\n\t\tz.set(temp);\n\n\t\ttemp.set(this.mUpVector);\n\t\ttemp.cross(temp, z);\n\t\ttemp.normalize();\n\t\tx.set(temp);\n\n\t\ty.cross(z, x);\n\n\t\tMatrix4f newMatrix = new Matrix4f();\n\t\tnewMatrix.setColumn(0, x.getX(), x.getY(), x.getZ(), 0);\n\t\tnewMatrix.setColumn(1, y.getX(), y.getY(), y.getZ(), 0);\n\t\tnewMatrix.setColumn(2, z.getX(), z.getY(), z.getZ(), 0);\n\t\tnewMatrix.setColumn(3, mCenterOfProjection.getX(),\n\t\t\t\tmCenterOfProjection.getY(), mCenterOfProjection.getZ(), 1);\n\t\ttry {\n\t\t\tnewMatrix.invert();\n\t\t\tthis.mCameraMatrix.set(newMatrix);\n\t\t} catch (SingularMatrixException exc) {\n\t\t\tLog.d(\"Camera\",\n\t\t\t\t\t\"SingularMatrixException on Matrix: \"\n\t\t\t\t\t\t\t+ newMatrix.toString());\n\t\t}\n\t}", "public\n Projection project ( double x , double y , double z , ClampMode clampModeOutside , boolean extrudeInverted ) {\n boolean outsideFrustum;\n if ( this.viewport == null || this.modelview == null || this.projection == null )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n Vector3D posVec = new Vector3D ( x , y , z );\n boolean[] frustum = this.doFrustumCheck ( this.frustum , this.frustumPos , x , y , z );\n boolean bl = outsideFrustum = frustum[0] || frustum[1] || frustum[2] || frustum[3];\n if ( outsideFrustum ) {\n boolean outsideInvertedFrustum;\n boolean opposite = posVec.sub ( this.frustumPos ).dot ( this.viewVec ) <= 0.0;\n boolean[] invFrustum = this.doFrustumCheck ( this.invFrustum , this.frustumPos , x , y , z );\n boolean bl2 = outsideInvertedFrustum = invFrustum[0] || invFrustum[1] || invFrustum[2] || invFrustum[3];\n if ( extrudeInverted && ! outsideInvertedFrustum || outsideInvertedFrustum && clampModeOutside != ClampMode.NONE ) {\n if ( extrudeInverted && ! outsideInvertedFrustum || clampModeOutside == ClampMode.DIRECT && outsideInvertedFrustum ) {\n double vecX = 0.0;\n double vecY = 0.0;\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n if ( opposite ) {\n vecX = this.displayWidth * this.widthScale - (double) this.coords.get ( 0 ) * this.widthScale - this.displayWidth * this.widthScale / 2.0;\n vecY = this.displayHeight * this.heightScale - ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale - this.displayHeight * this.heightScale / 2.0;\n } else {\n vecX = (double) this.coords.get ( 0 ) * this.widthScale - this.displayWidth * this.widthScale / 2.0;\n vecY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale - this.displayHeight * this.heightScale / 2.0;\n }\n Vector3D vec = new Vector3D ( vecX , vecY , 0.0 ).snormalize ( );\n vecX = vec.x;\n vecY = vec.y;\n Line vectorLine = new Line ( this.displayWidth * this.widthScale / 2.0 , this.displayHeight * this.heightScale / 2.0 , 0.0 , vecX , vecY , 0.0 );\n double angle = Math.toDegrees ( Math.acos ( vec.y / Math.sqrt ( vec.x * vec.x + vec.y * vec.y ) ) );\n if ( vecX < 0.0 ) {\n angle = 360.0 - angle;\n }\n Vector3D intersect = new Vector3D ( 0.0 , 0.0 , 0.0 );\n intersect = angle >= this.bra && angle < this.tra ? this.rb.intersect ( vectorLine ) : ( angle >= this.tra && angle < this.tla ? this.tb.intersect ( vectorLine ) : ( angle >= this.tla && angle < this.bla ? this.lb.intersect ( vectorLine ) : this.bb.intersect ( vectorLine ) ) );\n return new Projection ( intersect.x , intersect.y , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( clampModeOutside != ClampMode.ORTHOGONAL || ! outsideInvertedFrustum )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n if ( opposite ) {\n guiX = this.displayWidth * this.widthScale - guiX;\n guiY = this.displayHeight * this.heightScale - guiY;\n }\n if ( guiX < 0.0 ) {\n guiX = 0.0;\n } else if ( guiX > this.displayWidth * this.widthScale ) {\n guiX = this.displayWidth * this.widthScale;\n }\n if ( guiY < 0.0 ) {\n guiY = 0.0;\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n } else {\n if ( ! ( guiY > this.displayHeight * this.heightScale ) )\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n guiY = this.displayHeight * this.heightScale;\n }\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n if ( ! opposite )\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n guiX = this.displayWidth * this.widthScale - guiX;\n guiY = this.displayHeight * this.heightScale - guiY;\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n return new Projection ( guiX , guiY , Projection.Type.INSIDE );\n }", "public void updateMvpMatrix()\n\t\t{\n\t\t\t// Set the matrix, specifying the edges of the visible canvas and the near and far clipping planes.\n\t\t\tMatrix.orthoM(mvpMatrix, 0,\n\t\t\t\t\t-viewportWidth / (2f * zoom) + cameraX,\n\t\t\t\t\tviewportWidth / (2f * zoom) + cameraX,\n\t\t\t\t\t-viewportHeight / (2f * zoom) + cameraY,\n\t\t\t\t\tviewportHeight / (2f * zoom) + cameraY, -1, 1);\n\t\t}", "public void runProjectionMotion(){\n\t\tpos.setLocation(pos.getX() + vel[0]/5, pos.getY() - vel[1]/5);\r\n\t\tvel[1]-=gravity;\r\n\t}", "WorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);", "@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n \n float ratio = (float) width / height;\n /*\n mWidth = width;\n mHeight = height;\n */\n \n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n /*\n Near / far clipping planes, in terms of units away from the camera\n Cannot be negative or 0, should not be close to 0\n */\n //Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 0.5f, 21);\n \n }", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n\n float ratio = (float) width / height;\n\n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n\n }", "private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "public boolean worldToViewport(int [] dst_x, int [] dst_y, int dst_ofs,\n double x, double y, double z) {\n final double xp = xMargin + xViewport + (x - xWindow) * xScaleFactor;\n final double yp = yMargin + yViewport + (y - yWindow) * yScaleFactor;\n final double zp = (z - zWindow) * zScaleFactor;\n if (zp > .99) {\n return false;\n }\n final double t = zp / (zp - 1);\n dst_x[dst_ofs] = (int)(0.5 + xp + t * (vpX - xp));\n dst_y[dst_ofs] = (int)(0.5 + yp + t * (vpY - yp));\n return true;\n }", "public void directCompute() {\r\n\t\t\tshort[] rgb = new short[3];\r\n\t\t\tint offset = yMin * width;\r\n\t\t\tfor (int y = yMin; y < yMax; y++) {\r\n\t\t\t\tfor (int x = 0; x < width; x++) {\r\n\t\t\t\t\tPoint3D screenPoint = screenCorner.add(xAxis.scalarMultiply(x * 1.0 / (width - 1) * horizontal))\r\n\t\t\t\t\t\t\t.sub(yAxis.scalarMultiply(y * 1.0 / (height - 1) * vertical));\r\n\r\n\t\t\t\t\tRay ray = Ray.fromPoints(eye, screenPoint);\r\n\t\t\t\t\ttracer(scene, ray, rgb);\r\n\t\t\t\t\t// applying color to pixel\r\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\r\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\r\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\r\n\r\n\t\t\t\t\toffset++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "void glViewport(int x, int y, int width, int height);", "public Vector3d screenToModelPointVector(Vector2i pos)\n {\n double adjustedX = pos.getX() - getViewOffset().getX();\n double adjustedY = pos.getY() - getViewOffset().getY();\n // get the percentage of the screen for the positions\n // then use that to get the angles off of the viewer\n // Intersect those with the earth to get the actual selection points.\n double fromXpct = adjustedX / getViewportWidth() - 0.5;\n double fromYpct = adjustedY / getViewportHeight() - 0.5;\n double fromXAngleChange = -fromXpct * myHalfFOVx * 2.;\n double fromYAngleChange = -fromYpct * myHalfFOVy * 2.;\n return rotateDir(fromXAngleChange, fromYAngleChange).getNormalized();\n }", "protected void resetProjectionMatrix()\n {\n float tan = (float)Math.tan(myHalfFOVx);\n synchronized (this)\n {\n resetProjectionMatrixClipped();\n myProjectionMatrix = new float[16];\n myProjectionMatrix[0] = 1f / tan;\n myProjectionMatrix[5] = (float)(myAspectRatio / tan);\n myProjectionMatrix[10] = -1f;\n myProjectionMatrix[11] = -1f;\n myProjectionMatrix[14] = -2f;\n clearModelToWindowTransform();\n }\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n glClear(GL_COLOR_BUFFER_BIT);\n \n \n multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0,\n viewMatrix, 0);\n invertM(invertedViewProjectionMatrix, 0, viewProjectionMatrix, 0);\n\n refreshGameState();\n \n setPerspectiveView();\n // Draw the table.\n positionTableInScene();\n textureProgram.useProgram();\n textureProgram.setUniforms(modelViewProjectionMatrix, texture);\n table.bindData(textureProgram);\n table.draw();\n\n // Draw the mallets.\n// positionObjectInScene(0f, mallet.height / 2f, -0.4f);\n colorProgram.useProgram();\n\n \n //draw grids\n for (int i = 0; i<lines.length; i++)\n {\n positionObjectInScene(0,0,0);\n colorProgram.setUniforms(modelViewProjectionMatrix,0.5f + i*0.1f, 0.4f+ i*0.1f, 1f);\n lines[i].bindData(colorProgram);\n lines[i].draw();\n }\n \n \n // Draw the puck.\n for (int i = 0; i<2; i++)\n {\n\t positionObjectInScene(puckPosition[i].x, puckPosition[i].y, puckPosition[i].z);\n\t colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f + i*0.2f, 0.015f + 0*0.1f, 0.9f);\n\t //colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f, 0.01f , 0.9f);\n\t puck[i].bindData(colorProgram);\n\t puck[i].draw();\n }\n \n //draw Obstacles\n for (int i = 0; i< obstacles.length; i++){\n positionObjectInScene(obstaclePosition[i].x, obstaclePosition[i].y, obstaclePosition[i].z);\n colorProgram.setUniforms(modelViewProjectionMatrix, 0.1f, 0.3f, 0.11f);\n obstacles[i].bindData(colorProgram);\n obstacles[i].draw();\n \n \n }\n \n\n \n }", "private static float[] projectionMatrixFromCameraIntrinsics(TangoCameraIntrinsics intrinsics) {\n // Uses frustumM to create a projection matrix taking into account calibrated camera\n // intrinsic parameter.\n // Reference: http://ksimek.github.io/2013/06/03/calibrated_cameras_in_opengl/\n float near = 0.1f;\n float far = 100;\n\n float xScale = near / (float) intrinsics.fx;\n float yScale = near / (float) intrinsics.fy;\n float xOffset = (float) (intrinsics.cx - (intrinsics.width / 2.0)) * xScale;\n // Color camera's coordinates has y pointing downwards so we negate this term.\n float yOffset = (float) -(intrinsics.cy - (intrinsics.height / 2.0)) * yScale;\n\n float m[] = new float[16];\n Matrix.frustumM(m, 0,\n xScale * (float) -intrinsics.width / 2.0f - xOffset,\n xScale * (float) intrinsics.width / 2.0f - xOffset,\n yScale * (float) -intrinsics.height / 2.0f - yOffset,\n yScale * (float) intrinsics.height / 2.0f - yOffset,\n near, far);\n return m;\n }", "@Override\n\tpublic void project(double camX, double camY, double camZ, Point2D_F64 output) {\n\t\tdouble nx = camX/camZ;\n\t\tdouble ny = camY/camZ;\n\n\t\t// Apply radial distortion\n\t\tdouble rr = nx*nx + ny*ny;\n\t\tdouble sum = (r1 + r2*rr)*rr;\n\t\tdouble x = nx*( 1 + sum);\n\t\tdouble y = ny*( 1 + sum);\n\n\t\t// Apply tangential distortion\n\t\tx += 2*t1*nx*ny + t2*(rr + 2*nx*nx);\n\t\ty += t1*(rr + 2*ny*ny) + 2*t2*nx*ny;\n\n\t\t// Convert to pixels\n\t\toutput.x = fx*x + skew*y + cx;\n\t\toutput.y = fy*y + cy;\n\t}", "@Override\n \t\t\t\tpublic void doModelPerspective() {\n \n \t\t\t\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onSurfaceChanged(GL10 gl, int width, int height) {\n\tgl.glViewport(0, 0, width, height);\n\t//set projection matrix as active matrix\n\tgl.glMatrixMode(GL10.GL_PROJECTION); \n\t//load identity matrix to multiply with next matrix operation\n\tgl.glLoadIdentity(); \n\t//set perspective projection(GL10,FovY,Aspect,zNear,zFar)\n\tGLU.gluPerspective(gl, 70,width/(float)height,0.1f, 10f);\n\t//set ModelView matrix as active\n\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t}", "private native void setModelColor(float r,float g,float b);", "WorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);", "@Override\r\n protected void redrawViewport() {\n this.viewport.scrollAccordingly(this.gaze.getGazePitch(), this.gaze.getGazeYaw());\r\n }", "double transformXScreenLengthToWorld(final double screen);", "private void setCamera(GL2 gl, GLU glu)\n {\n Boundary bc = simulation.getBoundary();\n int w = (int) (bc.getMaxSize(0)-bc.getMinSize(0));\n int h = (int) (bc.getMaxSize(1)-bc.getMinSize(1));\n\n gl.glViewport(0, 0, w, h);\n\n\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glLoadIdentity();\n //opening angle, ratio of height and width, near and far\n glu.gluPerspective(80.0, 1,0.1,3*( bc.getMaxSize(2)-bc.getMinSize(2)));\n\n gl.glTranslatef(0.5f*(float) bc.getMinSize(0),-0.5f*(float) bc.getMinSize(1),1.5f*(float) bc.getMinSize(2));\n // gl.glTranslatef(0.5f*(float) (bc.getMaxSize(0)+bc.getMinSize(0)),0.5f*(float)(bc.getMaxSize(1)+ bc.getMinSize(1)),(float) -(bc.getMaxSize(2)-bc.getMinSize(2)));\n\n }", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "public WorldToScreenTransform getWorldToScreenTransform() { return this; }", "protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "@Override\n\tpublic void update() {\n\n\t\t// Update camera coordinates based off of the width and height.\n\t\tif (cameraStalk != null) {\n\t\t\tint width = dc.getWidth();\n\t\t\tint height = dc.getHeight();\n\n\t\t\tcamera[0] = cameraStalk.coor_x - (width - m.cellWidth) / 2;\n\t\t\tcamera[1] = cameraStalk.coor_y - (height - m.cellHeight) / 2;\n\t\t\tif (camera[0] < 0) {\n\t\t\t\tcamera[0] = 0;\n\t\t\t} else {\n\t\t\t\tint x;\n\t\t\t\tif (camera[0] > (x = m.mapWmax - width + m.cellWidth)) {\n\t\t\t\t\tcamera[0] = x;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (camera[1] < 0) {\n\t\t\t\tcamera[1] = 0;\n\t\t\t} else {\n\t\t\t\tint y;\n\t\t\t\tif (camera[1] > (y = m.mapHmax - height + m.cellHeight)) {\n\t\t\t\t\tcamera[1] = y;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Draw in the background.\n\t\tif (background != NullImg.getInstance()) {\n\t\t\tint bg_width = background.getWidth();\n\t\t\tint bg_height = background.getHeight();\n\t\t\t// The offset of the image must decrease as the camera's position\n\t\t\t// increases.\n\t\t\tfor (int x = (-camera[0] % -bg_width); x < dc.getWidth(); x += bg_width) {\n\t\t\t\tfor (int y = (-camera[1] % -bg_height); y < dc\n\t\t\t\t\t\t.getHeight(); y += bg_height) {\n\t\t\t\t\tbackground.drawSlide(x, y, dc);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Update all objects.\n\t\tif (update) {\n\t\t\tfor (SimpleObject s = m.getDrawBegin(); s != null; s = s.updateNext) {\n\t\t\t\ts.newUpdate();\n\t\t\t}\n\t\t}\n\n\t\t// Paint all objects.\n\t\tfor (SimpleObject s = m.getDrawBegin(); s != null; s = s.drawNext) {\n\t\t\ts.updateNext = s.drawNext;\n\t\t\ts.i.drawSlide(s.coor_x + s.off[0] - camera[0], s.coor_y + s.off[1]\n\t\t\t\t\t- camera[1], dc);\n\t\t}\n\n\t\t// Update the world object last.\n\t\tswo.update();\n\t\tdc.paint();\n\t}", "public MapView(GameModel model){\n this.model = model;\n this.images = new Images(model);\n this.visualizer = new VisualizerVisitor(this, zoomFactor);\n this.debug = new DebugVisitor(this, zoomFactor);\n this.modelMid = new DoubleVec(model.getFieldSizeX()*0.5,model.getFieldSizeY()*0.5);\n this.refPoint = modelMid;\n this.smallVisualizer = new SmallVisitor(this, 3);\n updateBoxes();\n }", "@Override\n public void modelChanged(double currentAngle, double[][] mat43) {\n Runnable runnable = new Runnable() {\n public void run() {\n updateModelEntList(combinedRotatingMatrix);\n Rectangle rect = getBounds();\n rect.x = 0;\n rect.y = 0;\n// System.out.println(\"MainMonitorCSysView.updateCSysEntList: x \" + rect.x + \" y \" + rect.y + \" w \" + rect.width + \" h\" + rect.height);\n// MainMonitorCSysView.this.paintImmediately(rect);\n repaint();\n }\n };\n if (!SwingUtilities.isEventDispatchThread()) {\n Thread.dumpStack();\n }\n\n// System.out.println(\"isEventDispatchThread \"+SwingUtilities.isEventDispatchThread());\n if (SwingUtilities.isEventDispatchThread()) {\n runnable.run();\n } else {\n SwingUtilities.invokeLater(runnable);\n }\n\n// updateModelEntList(combinedRotatingMatrix);\n// if (backBuffer == null) {\n// buildImage = true;\n// }\n }", "public Rectangle worldToViewport(Rectangle dst, Rectangle.Double src) {\n if (dst == null) {\n dst = new Rectangle();\n }\n int x = worldToViewportX(src.x);\n int y = worldToViewportY(src.y);\n int width = (int)(0.5 + src.width * xScaleFactor);\n int height = (int)(0.5 + src.height * yScaleFactor);\n dst.setFrameFromDiagonal(x, y, x + width, y + height);\n return dst;\n }", "public void display(GLAutoDrawable drawable){\n GL4 gl = (GL4) GLContext.getCurrentGL();\n \n gl.glClear(GL_DEPTH_BUFFER_BIT);\n \n // not needed if bkg is black\n float bkg[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n FloatBuffer bkgBuffer = Buffers.newDirectFloatBuffer(bkg);\n gl.glClearBufferfv(GL_COLOR, 0, bkgBuffer);\n\n \n gl.glUseProgram(rendering_program); // loads program from init with the two shaders\n \n // define perspective matrix \n //perspective\n float aspect = (float) myCanvas.getWidth()/(float) myCanvas.getHeight();\n Matrix3D pMat = this.perspectiveMethod(60.0f, aspect, 0.1f, 100.0f);\t\t//for persective projection /zentrische Projektion\n Matrix3D oMat = this.orthographicMethod(1.0f, -1.0f, 1.0f, -1.0f, 0.1f, 100.0f); //for orthographic projection\n \n \n //copy perspective and MV matricies to corressponding uniform variables\n int mv_loc = gl.glGetUniformLocation(rendering_program, \"mv_matrix\");\n int proj_loc = gl.glGetUniformLocation(rendering_program, \"proj_matrix\");\n \n //build view matrix\n Matrix3D vMat = new Matrix3D();\n vMat.translate(-cameraX, -cameraY, -cameraZ);\n \n //build model matrix\n Matrix3D mMat = new Matrix3D(); //for right now we dont do anything (rotate, translate etc.) in with the mMat in this project\n\n Matrix3D mvMat = new Matrix3D();\n mvMat.concatenate(vMat);\t\t\t//first view matrix \n mvMat.concatenate(mMat);\t\t\t//second we put the model matrix on it (A * B)\n \n\n //plug the mvMat and pMat into the shader uniform variables \n gl.glUniformMatrix4fv(mv_loc, 1, false, mvMat.getFloatValues(),0);\n gl.glUniformMatrix4fv(proj_loc, 1, false, pMat.getFloatValues(),0);\n \n \n //be sure to bind the vbo before assigning the attribute pointer\n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[0]); \n // now set the \"location = 0\" info in the shaders to the point info from vbo[0]\n gl.glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(0);\n \n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[1]);\n gl.glVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(1);\n \n gl.glLineWidth(10.0f);\n \n gl.glEnable(GL_DEPTH_TEST);\n gl.glDrawArrays(GL_LINES, 0, 4);\n\n }", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "private void handleScreenBoundaries() {\n\t\tif (tiledMapHelper.getCamera().position.x < screenWidth / 2) {\n\t\t\ttiledMapHelper.getCamera().position.x = screenWidth / 2;\n\t\t}\n\t\tif (tiledMapHelper.getCamera().position.x >= tiledMapHelper.getWidth()\n\t\t\t\t- screenWidth / 2) {\n\t\t\ttiledMapHelper.getCamera().position.x = tiledMapHelper.getWidth()\n\t\t\t\t\t- screenWidth / 2;\n\t\t}\n\n\t\tif (tiledMapHelper.getCamera().position.y < screenHeight / 2) {\n\t\t\ttiledMapHelper.getCamera().position.y = screenHeight / 2;\n\t\t}\n\t\tif (tiledMapHelper.getCamera().position.y >= tiledMapHelper.getHeight()\n\t\t\t\t- screenHeight / 2) {\n\t\t\ttiledMapHelper.getCamera().position.y = tiledMapHelper.getHeight()\n\t\t\t\t\t- screenHeight / 2;\n\t\t}\n\t}", "private Camera() {\n viewport = new Rectangle();\n dirtyAreas = new ArrayList<Rectangle>();\n renderedAreas = new ArrayList<Rectangle>();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "public DoubleVec modelToView(DoubleVec pos){\n return refPoint.sub(pos).mult(zoomFactor).add(refPoint);\n }", "public void setupCamera() {\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n\r\n if(isTiling) {\r\n float mod=1f/10f;\r\n p.frustum(width*((float)tileX/(float)tileNum-.5f)*mod,\r\n width*((tileX+1)/(float)tileNum-.5f)*mod,\r\n height*((float)tileY/(float)tileNum-.5f)*mod,\r\n height*((tileY+1)/(float)tileNum-.5f)*mod,\r\n cameraZ*mod, 10000);\r\n }\r\n\r\n }", "float[] getProjectionMatrix();", "public void prepareModel() {\n //Since many models have different scale amplitudes, we calculate a uniform scale factor for the model\n setScaleFactor();\n //Since the 3ds file does not provide normal values, we must calculate them ourselves\n calculateNormals();\n //Finally we need to setup the buffers for drawing\n setupBuffers();\n }", "public Point worldToViewport(Point dst, Affine.Point src) {\n if (dst == null) {\n dst = new Point();\n }\n dst.x = worldToViewportX(src.x);\n dst.y = worldToViewportY(src.y);\n return dst;\n }", "abstract public void projection(GL gl,\n int width, int height);", "public void onSurfaceChanged(GL10 glUnused, int width, int height)\n {\n GLES20.glViewport(0, 0, width, height);\n float ratio = (float) width / height;\n Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n }", "public void begin() {\r\n GL11.glViewport(0, 0, colorTexture.getWidth(), colorTexture.getHeight());\r\n bind();\r\n }", "public void project(Projection proj)\n {\n \tPoint2D.Double pt = new Point2D.Double(this.lon, this.lat);\n\t\tpt = proj.forward(pt);\n\t\tthis.lon = pt.x;\n\t\tthis.lat = pt.y;\n }", "private void updateBoxes(){\n if(model.getMap() != null) {\n DoubleVec position = invModelToView(new DoubleVec(canvas.getWidth()*0.5,canvas.getHeight()*0.5));\n inner = new Rectangle(position, 1.0/zoomFactor * fi * canvas.getWidth(), 1.0/zoomFactor * fi * canvas.getHeight(), 0);\n outer = new Rectangle(position, 1.0/zoomFactor * fo * canvas.getWidth(), 1.0/zoomFactor * fo * canvas.getHeight(), 0);\n }\n }", "@Override\n\tpublic void setModel(PaintModel model) {\n\t\t\n\t}", "public static void main(String[] args) {\n// Vector v1 = new Vector(new double[]{0, 0, 1});\n// Vector v2 = new Vector(new double[]{1, 0, 0});\n// System.out.println(v1.dot(v2));\n System.setProperty(\"sun.java2d.opengl\", \"true\");\n \n // Make World\n //WorldSpace world = new StreetWorldSpace();\n WorldSpace world = new TestWorldSpace();\n //WorldSpace world = new BigAssPolygonSpace();\n \n // Make Frame\n JFrame frame = new JFrame();\n \n // Get effective screen size\n Dimension screenSize = getScreenDimension(frame);\n\n // Set Camera View dimensions\n int width = 730;\n int height = width;\n \n // Make Camera\n Polygon[] polygons = world.getPolygons();\n Camera camera = new Camera(polygons, width, height, frame.getGraphicsConfiguration());\n image = camera.observe();\n \n // Make Camera Control Panel\n// int controlPanelHeight = 100;\n// CameraControlPanel cameraControlPanel = new CameraControlPanel(camera);\n// cameraControlPanel.setPreferredSize(new Dimension(width, controlPanelHeight));\n// cameraControlPanel.setBorder(BorderFactory.createCompoundBorder(new LineBorder(Color.BLACK, 2, false), new EmptyBorder(10, 10, 10, 10)));\n \n // Make Camera View Component\n CameraViewComponent cameraViewComponent = new CameraViewComponent(camera);\n cameraViewComponent.updateImage(image);\n cameraViewComponent.updateData(camera.getData());\n cameraViewComponent.setPreferredSize(new Dimension(width, height));\n\n // Make Camera Panel\n JPanel cameraPanel = new JPanel();\n cameraPanel.setLayout(new BoxLayout(cameraPanel, BoxLayout.Y_AXIS));\n cameraPanel.setPreferredSize(new Dimension(width, height));// + controlPanelHeight));\n cameraPanel.add(cameraViewComponent);\n //cameraPanel.add(cameraControlPanel);\n\n // Make Camera Data Panel\n //CameraDataPanel cameraDataPanel = new CameraDataPanel(camera);\n \n // Make Master Panel\n JPanel masterPanel = new JPanel();\n masterPanel.add(cameraPanel);\n //masterPanel.add(cameraDataPanel);\n \n frame.add(masterPanel);\n frame.pack();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n\n // Make keyboard listener\n KeyListener kl = new KeyListener();\n \n // Time\n int lastTenthOfASecond = 0;\n double lastMilliSecond = 0;\n double currentMilliSecond = System.currentTimeMillis();\n double averageFrameRate = 0;\n double currentFrameRate = 0;\n long totalTime = 0;\n long totalFrames = 0;\n \n // Redraw camera view upon keyboard input\n while(true) { \n int currentTenthOfASecond = (int)((currentMilliSecond%1000)/100);\n if (currentMilliSecond/100 > lastMilliSecond/100) {\n boolean cameraMoved = false;\n if (kl.isWPressed()) {\n camera.move(FORWARD); \n cameraMoved = true;\n }\n if (kl.isSPressed()) {\n camera.move(BACKWARD); \n cameraMoved = true;\n }\n if (kl.isAPressed()) {\n camera.move(LEFT); \n cameraMoved = true;\n }\n if (kl.isDPressed()) {\n camera.move(RIGHT); \n cameraMoved = true;\n }\n if (kl.isSpacePressed()) {\n camera.move(UP); \n cameraMoved = true;\n }\n if (kl.isShiftPressed()) {\n camera.move(DOWN); \n cameraMoved = true;\n }\n if (cameraViewComponent.wasUpdated()) {\n cameraMoved = true;\n }\n// if (cameraControlPanel.getWasCameraChanged() || cameraViewComponent.wasUpdated()) {\n// cameraMoved = true;\n// }\n if (cameraMoved) {\n image = camera.observe();\n cameraViewComponent.updateImage(image);\n //cameraDataPanel.update();\n //cameraControlPanel.update(); \n totalFrames++;\n totalTime += currentMilliSecond-lastMilliSecond + 1;\n averageFrameRate = (totalFrames)/(totalTime/1000.0); \n currentFrameRate = (1000.0/(currentMilliSecond-lastMilliSecond));\n \n }\n }\n if (currentTenthOfASecond > lastTenthOfASecond) {\n \n String[] cameraData = camera.getData();\n String[] frameData = {\n \"Average Framerate: \" + String.format(\"%.2f\", averageFrameRate), \n \"Current Framerate: \" + String.format(\"%.2f\",currentFrameRate)\n };\n String[] data = new String[cameraData.length + frameData.length ];\n System.arraycopy(cameraData, 0, data, 0, cameraData.length);\n System.arraycopy(frameData, 0, data, cameraData.length, frameData.length);\n cameraViewComponent.updateData(data);\n } \n lastTenthOfASecond = currentTenthOfASecond;\n lastMilliSecond = currentMilliSecond;\n currentMilliSecond = System.currentTimeMillis(); \n }\n }", "void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }", "@Override\n public ColorModel getColorModel() {\n return getGraphicsConfiguration().getColorModel();\n }", "private void calculateMatrices() {\n viewMatrix = new Matrix();\n clipRect = null;\n\n float actualWidth = gameModel.actualWidth = getWidth();\n float actualHeight = gameModel.actualHeight = getHeight();\n float virtualWidth = gameModel.getWidth();\n float virtualHeight = gameModel.getHeight();\n\n float scale = Math.max(virtualWidth / actualWidth, virtualHeight / actualHeight);\n if (scale < 0.99 || scale > 1.01) {\n viewMatrix.postScale(1f / scale, 1f / scale);\n\n float extraW = actualWidth * scale - virtualWidth;\n float extraH = actualHeight * scale - virtualHeight;\n\n if (extraW > 1f || extraH > 1f) {\n viewMatrix.postTranslate(extraW / scale / 2f, extraH / scale / 2f);\n clipRect = new RectF(0, 0, virtualWidth, virtualHeight);\n }\n }\n\n // Invert the view matrix, to obtain a matrix that can be used for translating\n // touch events back to virtual coordinates.\n touchMatrix = new Matrix(viewMatrix);\n touchMatrix.invert(touchMatrix);\n }", "@Override\r\n\tpublic void render(float[] mtrxProjectionAndView) {\n\t\t\r\n\t}", "private void setCofR() {\n\t\t\n Vector3f pos_vec = new Vector3f();\n Point3f pos = new Point3f();\n Vector3f dir = new Vector3f();\n\t\tMatrix4f view_mtx = new Matrix4f();\n\t\tMatrix4f nav_mtx = new Matrix4f();\n Point3f cor = new Point3f();\n\t\t\n\t\tnavigationTransform.getTransform(nav_mtx);\n\t\t\n\t\tdata.viewpointTransform.getTransform(view_mtx);\n\t\tview_mtx.get(pos_vec);\n\t\t\n\t\t// the eye point\n\t\tpos.set(pos_vec);\n\t\t\n\t\t// the eye direction\n\t\tdir.x = view_mtx.m02;\n\t\tdir.y = view_mtx.m12;\n\t\tdir.z = view_mtx.m22;\n\t\tdir.negate();\n\t\tdir.normalize();\n\t\t\n\t\t// transform into world space\n\t\tnav_mtx.transform(pos);\n\t\tnav_mtx.transform(dir);\n\t\t\n\t\tArrayList pickResults = new ArrayList();\n\t\tPickRequest pickRequest = new PickRequest();\n\t\tpickRequest.pickGeometryType = PickRequest.PICK_RAY;\n\t\tpickRequest.pickSortType = PickRequest.SORT_ORDERED;\n\t\tpickRequest.pickType = PickRequest.FIND_GENERAL;\n\t\tpickRequest.useGeometry = false;\n\t\tpickRequest.foundPaths = pickResults;\n\t\t\n\t\t// initialize the pick request\n\t\tpickRequest.origin[0] = pos.x;\n\t\tpickRequest.origin[1] = pos.y;\n\t\tpickRequest.origin[2] = pos.z;\n\t\t\n\t\tpickRequest.destination[0] = dir.x;\n\t\tpickRequest.destination[1] = dir.y;\n\t\tpickRequest.destination[2] = dir.z;\n\t\t\n\t\trootGroup.pickSingle(pickRequest);\n\t\t\n\t\tif (pickRequest.pickCount > 0) {\n\t\t\t\n \tPoint3f intersectPoint = new Point3f();\n \tVector3f intersectVector = new Vector3f();\n\t\t\n\t\t\tfloat min_distance = Float.MAX_VALUE;\n\t\t\t// sort through the bounds intersections\n\t\t\tint num_pick = pickResults.size();\n\t\t\tfor (int i = 0; i < num_pick; i++) {\n\t\t\t\t\n\t\t\t\tSceneGraphPath sgp = (SceneGraphPath)pickResults.get(i);\n\t\t\t\tsgp.getTransform(view_mtx);\n\t\t\t\t\n\t\t\t\tShape3D shape = (Shape3D)sgp.getTerminalNode();\n\t\t\t\tVertexGeometry geom = (VertexGeometry)shape.getGeometry();\n\t\t\t\t\n\t\t\t\t//determine if there was an actual geometry intersection\n\t\t\t\tboolean intersect = iutils.rayUnknownGeometry(\n\t\t\t\t\tpos,\n\t\t\t\t\tdir,\n\t\t\t\t\t0,\n\t\t\t\t\tgeom,\n\t\t\t\t\tview_mtx,\n\t\t\t\t\tintersectPoint,\n\t\t\t\t\tfalse);\n\t\t\t\t\n\t\t\t\tif (intersect) {\n\t\t\t\t\tintersectVector.set(\n\t\t\t\t\t\tintersectPoint.x - pos.x,\n\t\t\t\t\t\tintersectPoint.y - pos.y,\n\t\t\t\t\t\tintersectPoint.z - pos.z);\n\n\t\t\t\t\tfloat distance = intersectVector.length();\n\t\t\t\t\tif (distance < min_distance) {\n\t\t\t\t\t\tmin_distance = distance;\n\t\t\t\t\t\tcor.set(intersectPoint);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tnav_mtx.invert();\n\t\t\tnav_mtx.transform(cor);\n\t\t}\n\t\tcenterOfRotation.set(cor);\n\t}", "public void centreModel(){\n\t\tcentreModel(modOffset);\n\t}", "@Override\r\n protected Matrix4f genViewMatrix() {\r\n\r\n // refreshes the position\r\n position = calcPosition();\r\n\r\n // calculate the camera's coordinate system\r\n Vector3f[] coordSys = genCoordSystem(position.subtract(center));\r\n Vector3f right, up, forward;\r\n forward = coordSys[0];\r\n right = coordSys[1];\r\n up = coordSys[2];\r\n\r\n // we move the world, not the camera\r\n Vector3f position = this.position.negate();\r\n\r\n return genViewMatrix(forward, right, up, position);\r\n }", "public void setupView(int near, int far) {\n\t\tmGL.glMatrixMode(GL10.GL_PROJECTION);\n\t\tmGL.glLoadIdentity();\n\t\tmGL.glOrthof(0, mRenderer.getWidth(), -mRenderer.getHeight(), 0, near, far);\n\t\t\n\t\t// Select a clean model view\n\t\tmGL.glMatrixMode(GL10.GL_MODELVIEW);\n\t\tmGL.glLoadIdentity();\n\t\t\n\t\t// Rotate world by 180 around x axis so positive y is down\n\t\tmGL.glRotatef(-180, 1, 0, 0);\n\t}", "public void setModelTransformation(final AffineTransform gridToCRS) {\n final double[] modelTransformation = new double[16];\n modelTransformation[0] = gridToCRS.getScaleX();\n modelTransformation[1] = gridToCRS.getShearX();\n modelTransformation[2] = 0;\n modelTransformation[3] = gridToCRS.getTranslateX();\n modelTransformation[4] = gridToCRS.getShearY();\n modelTransformation[5] = gridToCRS.getScaleY();\n modelTransformation[6] = 0;\n modelTransformation[7] = gridToCRS.getTranslateY();\n modelTransformation[8] = 0;\n modelTransformation[9] = 0;\n modelTransformation[10] = 0;\n modelTransformation[11] = 0;\n modelTransformation[12] = 0;\n modelTransformation[13] = 0;\n modelTransformation[14] = 0;\n modelTransformation[15] = 1;\n\n nTransform = createTiffField(Tag.ModelTransformationTag);\n final Node nValues = createTiffDoubles(modelTransformation);\n nTransform.appendChild(nValues);\n }", "public void recalculateViewport() {\r\n glViewport(0, 0, getWidth(), getHeight());\r\n spriteBatch.recalculateViewport(getWidth(), getHeight());\r\n EventManager.getEventManager().fireEvent(new WindowResizedEvent(getWidth(), getHeight()));\r\n }", "public interface ICanvasTransform {\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the X axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformXScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the Y axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformYScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a point on the screen to absolute world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the canvas screen coordinate.\r\n\t * @return the corresponding world coordinate.\r\n\t */\r\n\tWorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a distance in screen space to a corresponding distance\r\n\t * in world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the distance on screen.\r\n\t * @return the corresponding distance in world coordinates.\r\n\t */\r\n\tWorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);\r\n\r\n\t/**\r\n\t * Transforms a world coordinate to a point on the canvas screen.\r\n\t * \r\n\t * @param x\r\n\t * the x coordinate in world space.\r\n\t * @param y\r\n\t * the y coordinate in world space.\r\n\t * @return the corresponding point on the canvas screen.\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(final double x, final double y);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(WorldCoordinate world);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tint transformWorldLengthToScreen(final double world);\r\n\r\n}", "private void updateViewBounds() \r\n {\r\n assert !sim.getMap().isEmpty() : \"Visualiser needs simulator whose a map has at least one node\"; \r\n \r\n \r\n viewMinX = minX * zoomFactor;\r\n viewMinY = minY * zoomFactor;\r\n \r\n viewMaxX = maxX * zoomFactor;\r\n viewMaxY = maxY * zoomFactor;\r\n \r\n \r\n double marginLength = zoomFactor * maxCommRange;\r\n \r\n \r\n // Set the size of the component\r\n int prefWidth = (int)Math.ceil( (viewMaxX - viewMinX) + (marginLength * 2) );\r\n int prefHeight = (int)Math.ceil( (viewMaxY - viewMinY) + (marginLength * 2) );\r\n setPreferredSize( new Dimension( prefWidth, prefHeight ) );\r\n \r\n \r\n // Adjust for margin lengths \r\n viewMinX -= marginLength;\r\n viewMinY -= marginLength;\r\n \r\n viewMaxX += marginLength;\r\n viewMaxY += marginLength;\r\n }", "protected void processViewport (LightProperties lp, boolean cameraViewport) {\n\t\tCamera camera = lp.camera;\n\t\tShadowMapRegion r = allocator.nextResult(currentLight);\n\n\t\tif (r == null) return;\n\n\t\tTextureRegion region = lp.region;\n\t\tregion.setTexture(frameBuffers[currentPass].getColorBufferTexture());\n\n\t\t// We don't use HdpiUtils\n\t\t// gl commands related to shadow map size and not to screen size\n\t\tGdx.gl.glViewport(r.x, r.y, r.width, r.height);\n\t\tGdx.gl.glScissor(r.x + 1, r.y + 1, r.width - 2, r.height - 2);\n\t\tregion.setRegion(r.x, r.y, r.width, r.height);\n\n\t\tif (cameraViewport) {\n\t\t\tcamera.viewportHeight = r.height;\n\t\t\tcamera.viewportWidth = r.width;\n\t\t\tcamera.update();\n\t\t}\n\t}", "public void update(Matrix4f viewProjectionMatrix) {\n for (int i = 0; i < 6; ++i) {\n planes[i] = viewProjectionMatrix.frustumPlane(i, planes[i]);\n }\n }", "private void computeDirect() {\n\t\t\tif (startY > 0) {\n\t\t\t\toffset = (startY - 1) * width;\n\t\t\t} else {\n\t\t\t\toffset = 0;\n\t\t\t}\n\n\t\t\tendY = endY == height ? endY - 1 : endY;\n\n\t\t\tfor (int y = startY; y <= endY; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tfinal Point3D moveX = xAxis.scalarMultiply(x * horizontal / (width - 1));\n\t\t\t\t\tfinal Point3D moveY = yAxis.scalarMultiply(y * vertical / (height - 1));\n\t\t\t\t\tfinal Point3D screenPoint = screenCorner.add(moveX).sub(moveY);\n\n\t\t\t\t\tfinal Ray ray = Ray.fromPoints(eye, screenPoint);\n\n\t\t\t\t\tRayCasterUtil.tracer(scene, ray, rgb);\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\n\n\t\t\t\t\toffset++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public Vec2 coordPixelsToWorld(Vec2 screen) {\n return coordPixelsToWorld(screen.x, screen.y);\n }", "public CoPView(CoP model) {\r\n super(ShoeView.shoeToViewX(model.xProperty().getValue(), model.getSide()), ShoeView.shoeToViewY(model.yProperty().getValue(), model.getSide()), 4, Color.color(0, 0, 1));\r\n this.model = model;\r\n initialize();\r\n }", "public void pushModelMatrix()\r\n\t{\r\n\t\tgl.glMatrixMode(GL_MODELVIEW);\r\n\t\tgl.glPushMatrix();\r\n\t}", "private void drawDynamic() {\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "public void renderFrame(State state, float[] lPMatrix) {\n\t\tisModelVisible = false;\n\t\t// Renders video background replacing Renderer.DrawVideoBackground()\n\t\tmRenderer.renderVideoBackground();\n\n\t\tGLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glEnable(GLES20.GL_CULL_FACE);\n\t\tGLES20.glCullFace(GLES20.GL_BACK);\n\t\tGLES20.glEnable(GLES20.GL_BLEND);\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n\t\t// Did we find any trackables this frame?\n\t\tfor (int tIdx = 0; tIdx < state.getNumTrackableResults(); tIdx++) {\n\t\t\tmActivity.setFirstLoading();\n\t\t\tisModelVisible = true;\n\t\t\tTrackableResult result = state.getTrackableResult(tIdx);\n\t\t\t//Trackable trackable = result.getTrackable();\n\t\t\t//printUserData(trackable);\n\t\t\tMatrix44F modelViewMatrix_Vuforia = Tool.convertPose2GLMatrix(result.getPose());\n\n\t\t\tfloat[] lMVMatrix = modelViewMatrix_Vuforia.getData();\n\t\t\tfloat[] lMVPMatrix = new float[16];\n\n\t\t\t//String trackName = trackable.getName();\n\t\t\tint textureIndex = 0;\n\n\t\t\t//mActivity.showDebugMsg(trackable.getName());\n\n\t\t\t// deal with the modelview and projection matrices\n\n\n\t\t\tMatrix.translateM(lMVMatrix, 0, startX, startY, startZ);\n\t\t\tMatrix.scaleM(lMVMatrix, 0, objectScaleFloat, objectScaleFloat, objectScaleFloat);\n\t\t\t/// rotate based on gestures\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatZ, 0, 0, 1.0f);\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatY, 0, 1.0f, 0);\n\n\t\t\tMatrix.multiplyMM(lMVPMatrix, 0, lPMatrix, 0, lMVMatrix, 0);\n\n\t\t\t// activate the shader program and bind the vertex/normal/tex coords\n\t\t\tGLES20.glUseProgram(shaderProgramID);\n\n\t\t\tGLES20.glVertexAttribPointer(vertexHandle, 3, GLES20.GL_FLOAT, false, 0, object.getVertices());\n\t\t\tGLES20.glVertexAttribPointer(textureCoordHandle, 2, GLES20.GL_FLOAT, false, 0, object.getTexCoords());\n\n\t\t\tGLES20.glEnableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glEnableVertexAttribArray(textureCoordHandle);\n\n\t\t\t// bind the texture and pass to shader\n\t\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextures.get(textureIndex).mTextureID[0]);\n\t\t\tGLES20.glUniform1i(texSampler2DHandle, 0);\n\n\t\t\t// pass the model view matrix to the shader\n\t\t\tGLES20.glUniformMatrix4fv(mvpMatrixHandle, 1, false, lMVPMatrix, 0);\n\n\t\t\t// vykreslit objekt\n\t\t\t// if indices are set in 3D object\n\t\t\tif(object.getNumObjectIndex() > 0) {\n\t\t\t\tGLES20.glDrawElements(GLES20.GL_TRIANGLES, object.getNumObjectIndex(), GLES20.GL_UNSIGNED_SHORT,\n\t\t\t\t\t\tobject.getIndices());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements with INDICES\");\n\t\t\t}else {\n\t\t\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, object.getNumObjectVertex());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements without INDICES\");\n\t\t\t}\n\n\t\t\t// disable the enabled arrays\n\t\t\tGLES20.glDisableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glDisableVertexAttribArray(textureCoordHandle);\n\t\t\tArUtils.checkGLError(\"Render Frame\");\n\t\t}\n\n\t\tGLES20.glDisable(GLES20.GL_BLEND);\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\n\t}", "public void renderLoop() {\n\t\tplayer.move(calculateVectorDirectionBetweenEyeAndCenter());\n\t\tcamera.move();\n\t\tm.setLookAt(camera.getPosition().x,\n\t\t\t\tcamera.getPosition().y + 10,\n\t\t\t\tcamera.getPosition().z,\n\t\t\t\tplayer.getPosition().x,\n\t\t\t\tplayer.getPosition().y + 10,\n\t\t\t\tplayer.getPosition().z,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).x,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).y,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).z);\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\t\t\n\t\tglPushMatrix();\n\t\t\tupdateSpotLight();\n\t\t\tupdatePointLight();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_BACK, GL_FILL);\n\t\t\tglPolygonMode(GL_FRONT, GL_POINT);\n\t\t\tterrain.generateCave();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_FRONT, GL_FILL);\n\t\t\tterrain.generateGround();\n\t\tglPopMatrix();\n\n\t\tglPushMatrix();\n\t\t\tterrain.drawEnd();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglTranslatef(player.getPosition().x, player.getPosition().y, player.getPosition().z);\n\t\t\tglRotatef(player.getRotY(), 0, 1, 0);\n\t\t\tplayer.getModel().draw(player.getMoveAngle());\n\t\tglPopMatrix();\n\t}", "@Override\n \t\t\t\tpublic void doWorldPerspective() {\n \n \t\t\t\t}", "public void run() {\n\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(windowWidth, windowHeight));\n\t\t\tDisplay.setTitle(TITLE);\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\tSystem.err.println(\"Error: Failed to create display\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/*\n\t\t * Initialize LWJGL and OpenGL\n\t\t */\n\t\t{\n\t\t\tGL11.glViewport(0, 0, windowWidth, windowHeight);\n\t\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\t\tGL11.glShadeModel(GL11.GL_SMOOTH);\n\t\t\tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\tGL11.glEnable(GL11.GL_BLEND);\n\t\t\tGL11.glAlphaFunc(GL11.GL_GREATER, 0.1f);\n\t\t\t// GL11.glEnable(GL11.GL_ALPHA_TEST);\n\t\t\tGL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, GL11.GL_NICEST);\n\t\t\tGL11.glClearColor(0.0f, 0.0f, 0.0f, 1f);\n\t\t}\n\n\t\ttry {\n\t\t\twhile (!(Display.isCloseRequested() || Keyboard.isKeyDown(Keyboard.KEY_Q))) {\n\t\t\t\t// Don't eat everything!!!\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(16);\n\t\t\t\t} catch (InterruptedException 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\t\t\t\tsetCamera();\n\n\t\t\t\t/*\n\t\t\t\t * Draw Code\n\t\t\t\t */\n\n\t\t\t\tsynchronized (model.drawableObjects) {\n\t\t\t\t\tfor (Drawable drawable : model.drawableObjects)\n\t\t\t\t\t\tdrawable.draw();\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * End draw code\n\t\t\t\t */\n\n\t\t\t\tDisplay.update();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Uncaught exception in View main loop: \" + e.getMessage()\n\t\t\t\t\t+ \"\\nCleaning up and exiting.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t/*\n\t\t * Clean up\n\t\t */\n\n\t\tmodel.endGame();\n\t\tcontroller.endGame();\n\t\tDisplay.destroy();\n\t}", "public RoboViewController(CGRect bounds, RoboPlatform.Config config) {\n EAGLContext ctx = new EAGLContext(EAGLRenderingAPI.OpenGLES2);\n platform = new RoboPlatform(bounds, config);\n view = new GLKView(bounds, ctx) {\n @Method(selector = \"touchesBegan:withEvent:\")\n public void touchesBegan(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesBegan(touches, event);\n platform.pointer().onTouchesBegan(touches, event);\n }\n @Method(selector = \"touchesCancelled:withEvent:\")\n public void touchesCancelled(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesCancelled(touches, event);\n platform.pointer().onTouchesCancelled(touches, event);\n }\n @Method(selector = \"touchesEnded:withEvent:\")\n public void touchesEnded(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesEnded(touches, event);\n platform.pointer().onTouchesEnded(touches, event);\n }\n @Method(selector = \"touchesMoved:withEvent:\")\n public void touchesMoved(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesMoved(touches, event);\n platform.pointer().onTouchesMoved(touches, event);\n }\n @Override\n public void draw(CGRect rect) {\n platform.paint();\n }\n };\n view.setMultipleTouchEnabled(true);\n view.setDrawableColorFormat(platform.config.glBufferFormat);\n // view.setDrawableDepthFormat(GLKViewDrawableDepthFormat._16);\n // view.setDrawableStencilFormat(GLKViewDrawableStencilFormat.None);\n setView(view);\n setDelegate(this);\n setPreferredFramesPerSecond(config.targetFPS);\n addStrongRef(platform);\n PlayN.setPlatform(platform);\n }", "protected void resetProjectionMatrixClipped()\n {\n synchronized (this)\n {\n myProjectionMatrixClipped = null;\n myProjectionMatrixClippedFarToCenter = null;\n }\n }", "public void beforeDraw()\n {\n INDirector.setProjection(ProjectionFormat.DirectorProjection2D);\n this.grabber.beforeRender();\n }", "@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n gl.glViewport(0, 0, width, height);\n // To prevent divide by zero\n float aspect = (float)width / height;\n // Set the viewport (display area) to cover the entire window.\n gl.glViewport(0, 0, width, height);\n // Setup perspective projection, with aspect ratio matches viewport\n // Select projection matrix.\n gl.glMatrixMode(GL10.GL_PROJECTION);\n // Reset projection matrix.\n gl.glLoadIdentity();\n // Use perspective projection.\n GLU.gluPerspective(gl, 70, aspect, 0.1f, 200.f);\n // Select model-view matrix.\n gl.glMatrixMode(GL10.GL_MODELVIEW);\n // Reset.\n gl.glLoadIdentity();\n }", "public void scaleAffine(){\n //Get the monitors size.\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n transform = new AffineTransform();\n double width = screenSize.getWidth();\n double height = screenSize.getHeight();\n\n //Set up the scale amount for our Affinetransform\n double xscale = width / model.getBbox().getWidth();\n double yscale = height / model.getBbox().getHeight();\n\n double scale = max(xscale, yscale);\n\n adjustZoomLvl(scale);\n transform.translate(-model.getBbox().getMinX(), -model.getBbox().getMaxY());\n\n bounds = new CanvasBounds(getBounds(), transform);\n adjustZoomFactor();\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "protected synchronized void resetModelViewMatrix()\n {\n Matrix4d transform = new Matrix4d();\n // translate so that the viewer is at the origin\n Matrix4d translation = new Matrix4d();\n translation.setTranslation(myPosition.getLocation().multiply(-1.));\n // rotate to put the viewer pointing in the -z direction with the up\n // vector along the +y axis.\n Quaternion quat = Quaternion.lookAt(myPosition.getDir().multiply(-1.), myPosition.getUp());\n Matrix4d rotation = new Matrix4d();\n rotation.setRotationQuaternion(quat);\n // set the transform.\n transform.multLocal(rotation);\n transform.multLocal(translation);\n myModelViewMatrix = transform.toFloatArray();\n setInverseModelViewMatrix(transform.invert());\n clearModelToWindowTransform();\n }", "public void setPixels2(int x, int y, int w, int h,\n\t\t\t ColorModel model, int pixels[], int off,\n\t\t\t int scansize)\n {\n\tif (srcrows == null || srccols == null) {\n\t calculateMaps();\n\t}\n\tint sx, sy;\n\tint dx1 = (2 * x * destWidth + srcWidth - 1) / (2 * srcWidth);\n\tint dy1 = (2 * y * destHeight + srcHeight - 1) / (2 * srcHeight);\n\n //System.out.print( \"dx1 \" + dx1 + \", dy1 \" + dy1 ) ;\n\n // Obsolete. Used only for debugging purposes.\n float xscale = ( ( float ) srcWidth ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight ) / ( ( float ) destHeight ) ;\n\n //System.out.println( \", xscale \" + xscale + \" yscale \" + yscale ) ;\n\n\tint outpix[];\n\tif (outpixbuf != null && outpixbuf instanceof int[]) {\n\t outpix = (int[]) outpixbuf;\n\t} else {\n\t outpix = new int[destWidth];\n\t outpixbuf = outpix;\n\t}\n\n // Main rendering loop\n\tfor (int dy = dy1; (sy = srcrows[dy]) < y + h; dy++) {\n int srcyl = srcylarr[dy];\n int srcyu = srcyuarr[dy];\n int srcoffl = off + scansize * (srcyl - y) ;\n int srcoffu = off + scansize * (srcyu - y) ;\n\n\t int srcoff = off + scansize * (sy - y);\n\t int dx ;\n for ( dx = dx1; (sx = srccols[dx]) < x + w; dx++) {\n int srcxl = srcxlarr[dx];\n int srcxu = srcxuarr[dx];\n\n //System.out.println( \"dx \" + dx + \", dy \" + dy ) ;\n //System.out.println( \"srcyl\" + srcyl + \", srcyu : \" + srcyu ) ;\n //System.out.println( \"srcoffl \" + srcoffl + \" srcoffu \" + srcoffu ) ;\n\n if ( srcxl == srcxu && srcyl == srcyu )\n \t\t outpix[dx] = pixels[srcoff + sx];\n else {\n //System.out.println( \"srcxl \" + srcxl + \" srcxu \" + srcxu ) ;\n //System.out.print( \" srcoffl + srcxl =\" + ( srcoffl + srcxl ) ) ;\n //System.out.print( \", srcoffl + srcxu =\" + ( srcoffl + srcxu ) ) ;\n //System.out.print( \", srcoffu + srcxl =\" + ( srcoffu + srcxl ) ) ;\n //System.out.println( \", srcoffu + srcxu =\" + ( srcoffu + srcxu ) ) ;\n int pelvalue = average( model, pixels[srcoffl + srcxl], pixels[srcoffl + srcxu],\n pixels[srcoffu + srcxl], pixels[srcoffu + srcxu],\n srcxarr[dx], srcyarr[dy] ) ;\n outpix[dx] = pelvalue ;\n }\n\t }\n\t if (dx > dx1) {\n\t\tconsumer.setPixels(dx1, dy, dx - dx1, 1,\n\t\t\t\t model, outpix, dx1, destWidth);\n\t }\n\t}\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "public void transform(View view) {\n DrawRect.getCoord(1);\n\n // block to get coord os ROI\n ArrayList<Integer> full_x_ROIcoord = new ArrayList<>();\n ArrayList<Integer> full_y_ROIcoord = new ArrayList<>();\n\n if (xRed < 0 || xRed > 750 || yRed < 0 || yRed > 1000 ||\n xOrg < 0 || xOrg > 750 || yOrg < 0 || yOrg > 1000 ||\n xYell < 0 || xYell > 750 || yYell < 0 || yYell > 1000 ||\n xGreen < 0 || xGreen > 750 || yGreen < 0 || yGreen > 1000) {\n return;\n } else {\n // clear situation with x<= xYell\n for (int x = xRed; x < xYell; x++) {\n for (int y = yRed; y < yYell; y++) {\n full_x_ROIcoord.add(x);\n full_y_ROIcoord.add(y);\n }\n }\n }\n // end block\n\n // block get contour via CannyFilter\n Mat sMat = oImage.submat(yRed, yGreen, xRed, xOrg);\n Imgproc.Canny(sMat, sMat, 25, 100 * 2);\n ArrayList<Double> subMatValue = new ArrayList<>();\n\n for (int x = 0; x < sMat.cols(); x++) {\n for (int y = 0; y < sMat.rows(); y++) {\n double[] ft2 = sMat.get(y, x);\n subMatValue.add(ft2[0]);\n }\n }\n int count = 0;\n for (int x = xRed; x < xYell; x++) {\n for (int y = yRed; y < yYell; y++) {\n oImage.put(y, x, subMatValue.get(count));\n count++;\n }\n }\n // end block\n\n displayImage(oImage);\n }", "public void forward(Projection projection);", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "@Override\n public void onDrawFrame(GL10 unused) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // Set the camera position (View matrix)\n Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n // Calculate the projection and view transformation\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n\n Matrix.translateM(mMVPMatrix, 0, getScreenWidth()/2, -getScreenHeight()/2, 0); // apply translation\n Matrix.scaleM(mMVPMatrix,0,scaler,scaler,scaler);\n mSquare.draw(mMVPMatrix,Player.colorP1);\n mHat.draw(mMVPMatrix);\n\n robe.draw(mMVPMatrix, Robe.LEFT_ROBE);\n p1Eye.draw(mMVPMatrix, Circle.FACE_RIGHT, true, true);\n\n Matrix.multiplyMM(mMVPMatrix2, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n Matrix.translateM(mMVPMatrix2, 0, -getScreenWidth()/2, -getScreenHeight()/2, 0);\n Matrix.scaleM(mMVPMatrix2,0,scaler,scaler,scaler);\n mSquare2.draw(mMVPMatrix2,Player.colorP2);\n mHat2.draw(mMVPMatrix2);\n\n robe2.draw(mMVPMatrix2, Robe.RIGHT_ROBE);\n p2Eye.draw(mMVPMatrix2, Circle.FACE_LEFT, true, true);\n }", "private void subscribeToModel() {\n subscribeToDestinationResponse(R.id.markupEditFreeHandPolygonFragment, PICK_COLOR_REQUEST, (DestinationResponse<Integer>) color -> {\n if (color != null) {\n mViewModel.setColor(color);\n }\n });\n\n // When the view model's color changes, update the polyline's color on the map.\n mViewModel.getColor().observe(mLifecycleOwner, this::setColor);\n\n // When the view model's stroke width changes, update the polyline's stroke width on the map.\n mViewModel.getStrokeWidth().observe(mLifecycleOwner, this::setStrokeWidth);\n\n // When the view model's comment changes, update the polyline's comment.\n mViewModel.getComment().observe(mLifecycleOwner, this::setComment);\n\n // When drawing mode is on, the user can draw on the map, if not they can use normal map gestures.\n mViewModel.isDrawingMode().observe(mLifecycleOwner, isDrawingMode -> {\n if (isDrawingMode) {\n turnOnDrawingMode();\n } else {\n turnOffDrawingMode();\n }\n });\n\n // Toggle the measurement info marker.\n mViewModel.isMeasuring().observe(mLifecycleOwner, measuring -> {\n if (measuring) {\n createMarkerInfoWindow();\n } else {\n removeInfoWindow();\n }\n });\n }", "public void updateConicalView();", "public void apply() {\n\t\tglTranslated(0, 0, -centerDistance);\n\t\tglRotated(pitch, 1, 0, 0);\n\t\tglRotated(yaw, 0, 0, 1);\n\t\tglScaled(scale, scale, scale);\n\n\t\tglTranslated(-pos.get(0), -pos.get(1), -pos.get(2));\n\t}", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "ProjectionMode getProjectionMode();", "@Override\n public void toggle3DModelDisplay() {\n this.viewModel.toggle3DModelDisplay();\n\n // use camera controller if now on, otherwise switch to none controller\n if (this.viewModel.is3DModelDisplayed()) {\n this.selectedKeyboardController = new CameraController(this.scene);\n }\n else {\n this.selectedKeyboardController = new NoneKeyboardEventController();\n }\n\n // notify view model observers\n this.viewModel.notifyObservers();\n\n }", "public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n\t\tGLES20.glViewport(0, 0, width, height);\n\t\tLog.d(\"ShelXle.Droid Screen Size\", width + \" \" + height);\n\t\tpixh = height;\n\t\tpixw = width;\n\t\tfpsscal = 350.0f / Math.min(width, height);\n\t\tfpsMat[0] = -fpsscal;\n\t\tfpsMat[12] = 1.0f - fpsscal;\n\t\tfpsMat3[0] = -fpsscal*1.24f;\n\t\tfpsMat3[12] = 1.0f - fpsscal*1.24f;\n\n\t\tfpsMat4[0] = -fpsscal*1.26f;\n\t\tfpsMat4[12] = 1.0f - fpsscal*1.26f;\n\t\tfpsMat2[0] = -0.25f * fpsscal;\n\t\tLog.d(\"ShelXle.Droid FPS text scaling \", fpsscal + \" \");\n\t\tfloat ratio = (float) width / height;\n\t\tfloat fh = (float) Math.tan(29.0 / 360.0 * 3.14159265358979) * 5.0f;\n\t\tfloat fw = fh * ratio;\n\t\tMatrix.frustumM(proj, 0, -fw, fw, -fh, fh, 5.0f, 800.0f);\n\t\tMatrix.setLookAtM(mv, 0, 0.0f, 200f, 0f, 0f, 0.0f, 0.0f, 0.0f, 00f, 1f);\n\t\tMatrix.multiplyMM(pmv1, 0, proj, 0, mv, 0);\n\t\tSystem.arraycopy(pmv1, 0, proj, 0, 16);\n\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t/*\n\t\t * if (f!=null){ f.write(proj); f.write(proj);\n\t\t * \n\t\t * }\n\t\t */\n\t\t// Matrix.setIdentityM(proj,0);\n\t\t// Matrix.perspectiveM(proj, 0, 29.0f,ratio,5.0f,800.0f);\n\n\t}", "public abstract void Dasher2Screen(MutablePoint coords);", "View(Controller c, Model m){\r\n\t\tmodel = m;\r\n\t\tcontroller = c;\r\n\t\tbackground = null;\r\n\t\tground = null;\r\n\t\twindowHeight = 0;\r\n\t}", "public Affine.Point viewportToWorld(Affine.Point dst, Point src) {\n if (dst == null) {\n dst = new Affine.Point();\n }\n dst.x = viewportToWorldX(src.x);\n dst.y = viewportToWorldY(src.y);\n return dst;\n }", "@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }" ]
[ "0.60315734", "0.5915714", "0.5893626", "0.5837096", "0.58280325", "0.5823849", "0.58042365", "0.5675187", "0.5660702", "0.555616", "0.55390424", "0.55212295", "0.54709345", "0.5432689", "0.540186", "0.53337806", "0.5259748", "0.5212611", "0.51898575", "0.51855767", "0.5169771", "0.51635474", "0.51524603", "0.51452965", "0.5138722", "0.51053655", "0.51042426", "0.5094442", "0.5087146", "0.50796205", "0.5079099", "0.50749254", "0.5072079", "0.50623083", "0.50480235", "0.5047466", "0.50408643", "0.50367296", "0.50317615", "0.5031116", "0.5018905", "0.5006045", "0.5000217", "0.49963847", "0.49914834", "0.49866998", "0.4985392", "0.49817294", "0.49664858", "0.495943", "0.49553692", "0.49551517", "0.49436203", "0.49380657", "0.49322027", "0.4930271", "0.49135974", "0.4911283", "0.4910473", "0.4901757", "0.48986712", "0.48953784", "0.48942718", "0.48912498", "0.48882183", "0.48819065", "0.48741457", "0.48634958", "0.48569524", "0.48346362", "0.48339704", "0.48316625", "0.48292089", "0.48288456", "0.48282516", "0.4823556", "0.48222607", "0.48160586", "0.4811592", "0.48033854", "0.47958726", "0.47910687", "0.47859484", "0.47822693", "0.47674695", "0.47615215", "0.47592583", "0.47425357", "0.47425067", "0.47340378", "0.47313604", "0.4728652", "0.47251832", "0.47249058", "0.47226405", "0.47119594", "0.4709411", "0.470427", "0.4697649", "0.46926805" ]
0.6847477
0
Perform screen to model projection smartly, considering the effect of a colorbar on the actual viewport.
protected Coord3d screenToModel(Coord3d mouse) { IPainter painter = getChart().getPainter(); painter.acquireGL(); int[] viewport = getViewportExcludingColorbar(); float modelView[] = painter.getModelViewAsFloat(); float projection[] = painter.getProjectionAsFloat(); Coord3d model = painter.screenToModel(mouse, viewport, modelView, projection); /* * if(model==null) { System.err.println("Mouse.screenToModel : output is null"); * Array.print("Viewport", viewport); Array.print("Modelview", modelView); * Array.print("Projection", projection); } */ painter.releaseGL(); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Coord3d modelToScreen(Coord3d model) {\n IPainter painter = getChart().getPainter();\n\n painter.acquireGL();\n\n int[] viewport = getViewportExcludingColorbar();\n float modelView[] = painter.getModelViewAsFloat();\n float projection[] = painter.getProjectionAsFloat();\n\n Coord3d screen = painter.modelToScreen(model, viewport, modelView, projection);\n painter.releaseGL();\n\n return screen;\n }", "DeviceCoordinate transformWorldToScreen(final double x, final double y);", "public\n Projection project ( double x , double y , double z , ClampMode clampModeOutside , boolean extrudeInverted ) {\n boolean outsideFrustum;\n if ( this.viewport == null || this.modelview == null || this.projection == null )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n Vector3D posVec = new Vector3D ( x , y , z );\n boolean[] frustum = this.doFrustumCheck ( this.frustum , this.frustumPos , x , y , z );\n boolean bl = outsideFrustum = frustum[0] || frustum[1] || frustum[2] || frustum[3];\n if ( outsideFrustum ) {\n boolean outsideInvertedFrustum;\n boolean opposite = posVec.sub ( this.frustumPos ).dot ( this.viewVec ) <= 0.0;\n boolean[] invFrustum = this.doFrustumCheck ( this.invFrustum , this.frustumPos , x , y , z );\n boolean bl2 = outsideInvertedFrustum = invFrustum[0] || invFrustum[1] || invFrustum[2] || invFrustum[3];\n if ( extrudeInverted && ! outsideInvertedFrustum || outsideInvertedFrustum && clampModeOutside != ClampMode.NONE ) {\n if ( extrudeInverted && ! outsideInvertedFrustum || clampModeOutside == ClampMode.DIRECT && outsideInvertedFrustum ) {\n double vecX = 0.0;\n double vecY = 0.0;\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n if ( opposite ) {\n vecX = this.displayWidth * this.widthScale - (double) this.coords.get ( 0 ) * this.widthScale - this.displayWidth * this.widthScale / 2.0;\n vecY = this.displayHeight * this.heightScale - ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale - this.displayHeight * this.heightScale / 2.0;\n } else {\n vecX = (double) this.coords.get ( 0 ) * this.widthScale - this.displayWidth * this.widthScale / 2.0;\n vecY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale - this.displayHeight * this.heightScale / 2.0;\n }\n Vector3D vec = new Vector3D ( vecX , vecY , 0.0 ).snormalize ( );\n vecX = vec.x;\n vecY = vec.y;\n Line vectorLine = new Line ( this.displayWidth * this.widthScale / 2.0 , this.displayHeight * this.heightScale / 2.0 , 0.0 , vecX , vecY , 0.0 );\n double angle = Math.toDegrees ( Math.acos ( vec.y / Math.sqrt ( vec.x * vec.x + vec.y * vec.y ) ) );\n if ( vecX < 0.0 ) {\n angle = 360.0 - angle;\n }\n Vector3D intersect = new Vector3D ( 0.0 , 0.0 , 0.0 );\n intersect = angle >= this.bra && angle < this.tra ? this.rb.intersect ( vectorLine ) : ( angle >= this.tra && angle < this.tla ? this.tb.intersect ( vectorLine ) : ( angle >= this.tla && angle < this.bla ? this.lb.intersect ( vectorLine ) : this.bb.intersect ( vectorLine ) ) );\n return new Projection ( intersect.x , intersect.y , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( clampModeOutside != ClampMode.ORTHOGONAL || ! outsideInvertedFrustum )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n if ( opposite ) {\n guiX = this.displayWidth * this.widthScale - guiX;\n guiY = this.displayHeight * this.heightScale - guiY;\n }\n if ( guiX < 0.0 ) {\n guiX = 0.0;\n } else if ( guiX > this.displayWidth * this.widthScale ) {\n guiX = this.displayWidth * this.widthScale;\n }\n if ( guiY < 0.0 ) {\n guiY = 0.0;\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n } else {\n if ( ! ( guiY > this.displayHeight * this.heightScale ) )\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n guiY = this.displayHeight * this.heightScale;\n }\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n if ( ! opposite )\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n guiX = this.displayWidth * this.widthScale - guiX;\n guiY = this.displayHeight * this.heightScale - guiY;\n return new Projection ( guiX , guiY , outsideInvertedFrustum ? Projection.Type.OUTSIDE : Projection.Type.INVERTED );\n }\n if ( ! GLU.gluProject ( (float) x , (float) y , (float) z , this.modelview , this.projection , this.viewport , this.coords ) )\n return new Projection ( 0.0 , 0.0 , Projection.Type.FAIL );\n double guiX = (double) this.coords.get ( 0 ) * this.widthScale;\n double guiY = ( this.displayHeight - (double) this.coords.get ( 1 ) ) * this.heightScale;\n return new Projection ( guiX , guiY , Projection.Type.INSIDE );\n }", "private void prepareProjection(Drawable drawable) {\n Matrix4f viewMatrix = new Matrix4f();\n\n Matrix4f modelMatrix = new Matrix4f();\n\n// Translate camera\n org.lwjgl.util.vector.Matrix4f.translate(this.camera.getPosition(), viewMatrix, viewMatrix);\n\n// Scale, translate and rotate model\n Vector3f modelAngle = drawable.getModelAngle();\n Matrix4f.scale(drawable.getModelScale(), modelMatrix, modelMatrix);\n Matrix4f.translate(drawable.getPosition(), modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.z), new Vector3f(0, 0, 1),\n modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.y), new Vector3f(0, 1, 0),\n modelMatrix, modelMatrix);\n Matrix4f.rotate(MathUtil.degreesToRadians(modelAngle.x), new Vector3f(1, 0, 0),\n modelMatrix, modelMatrix);\n// Upload matrices to the uniform variables\n GL20.glUseProgram(shaderProgram.getGlProgramId());\n this.camera.getProjectionMatrix().store(matrix44Buffer);\n matrix44Buffer.flip();\n\n /// http://lwjgl.org/wiki/index.php?title=The_Quad_with_Projection,_View_and_Model_matrices\n GL20.glUniformMatrix4(projectionMatrixLocation, false, matrix44Buffer);\n viewMatrix.store(matrix44Buffer);\n matrix44Buffer.flip();\n GL20.glUniformMatrix4(viewMatrixLocation, false, matrix44Buffer);\n modelMatrix.store(matrix44Buffer);\n matrix44Buffer.flip();\n GL20.glUniformMatrix4(modelMatrixLocation, false, matrix44Buffer);\n GL20.glUseProgram(0);\n this.exitOnGLError(\"logicCycle\");\n }", "public void runProjectionMotion(){\n\t\tpos.setLocation(pos.getX() + vel[0]/5, pos.getY() - vel[1]/5);\r\n\t\tvel[1]-=gravity;\r\n\t}", "private void updateCamera() {\n\t\tVector3f x = new Vector3f();\n\t\tVector3f y = new Vector3f();\n\t\tVector3f z = new Vector3f();\n\t\tVector3f temp = new Vector3f(this.mCenterOfProjection);\n\n\t\ttemp.sub(this.mLookAtPoint);\n\t\ttemp.normalize();\n\t\tz.set(temp);\n\n\t\ttemp.set(this.mUpVector);\n\t\ttemp.cross(temp, z);\n\t\ttemp.normalize();\n\t\tx.set(temp);\n\n\t\ty.cross(z, x);\n\n\t\tMatrix4f newMatrix = new Matrix4f();\n\t\tnewMatrix.setColumn(0, x.getX(), x.getY(), x.getZ(), 0);\n\t\tnewMatrix.setColumn(1, y.getX(), y.getY(), y.getZ(), 0);\n\t\tnewMatrix.setColumn(2, z.getX(), z.getY(), z.getZ(), 0);\n\t\tnewMatrix.setColumn(3, mCenterOfProjection.getX(),\n\t\t\t\tmCenterOfProjection.getY(), mCenterOfProjection.getZ(), 1);\n\t\ttry {\n\t\t\tnewMatrix.invert();\n\t\t\tthis.mCameraMatrix.set(newMatrix);\n\t\t} catch (SingularMatrixException exc) {\n\t\t\tLog.d(\"Camera\",\n\t\t\t\t\t\"SingularMatrixException on Matrix: \"\n\t\t\t\t\t\t\t+ newMatrix.toString());\n\t\t}\n\t}", "public void updateMvpMatrix()\n\t\t{\n\t\t\t// Set the matrix, specifying the edges of the visible canvas and the near and far clipping planes.\n\t\t\tMatrix.orthoM(mvpMatrix, 0,\n\t\t\t\t\t-viewportWidth / (2f * zoom) + cameraX,\n\t\t\t\t\tviewportWidth / (2f * zoom) + cameraX,\n\t\t\t\t\t-viewportHeight / (2f * zoom) + cameraY,\n\t\t\t\t\tviewportHeight / (2f * zoom) + cameraY, -1, 1);\n\t\t}", "@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n \n float ratio = (float) width / height;\n /*\n mWidth = width;\n mHeight = height;\n */\n \n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n /*\n Near / far clipping planes, in terms of units away from the camera\n Cannot be negative or 0, should not be close to 0\n */\n //Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 0.5f, 21);\n \n }", "@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n\n float ratio = (float) width / height;\n\n // this projection matrix is applied to object coordinates\n // in the onDrawFrame() method\n Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n\n }", "WorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);", "public boolean worldToViewport(int [] dst_x, int [] dst_y, int dst_ofs,\n double x, double y, double z) {\n final double xp = xMargin + xViewport + (x - xWindow) * xScaleFactor;\n final double yp = yMargin + yViewport + (y - yWindow) * yScaleFactor;\n final double zp = (z - zWindow) * zScaleFactor;\n if (zp > .99) {\n return false;\n }\n final double t = zp / (zp - 1);\n dst_x[dst_ofs] = (int)(0.5 + xp + t * (vpX - xp));\n dst_y[dst_ofs] = (int)(0.5 + yp + t * (vpY - yp));\n return true;\n }", "private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "private static float[] projectionMatrixFromCameraIntrinsics(TangoCameraIntrinsics intrinsics) {\n // Uses frustumM to create a projection matrix taking into account calibrated camera\n // intrinsic parameter.\n // Reference: http://ksimek.github.io/2013/06/03/calibrated_cameras_in_opengl/\n float near = 0.1f;\n float far = 100;\n\n float xScale = near / (float) intrinsics.fx;\n float yScale = near / (float) intrinsics.fy;\n float xOffset = (float) (intrinsics.cx - (intrinsics.width / 2.0)) * xScale;\n // Color camera's coordinates has y pointing downwards so we negate this term.\n float yOffset = (float) -(intrinsics.cy - (intrinsics.height / 2.0)) * yScale;\n\n float m[] = new float[16];\n Matrix.frustumM(m, 0,\n xScale * (float) -intrinsics.width / 2.0f - xOffset,\n xScale * (float) intrinsics.width / 2.0f - xOffset,\n yScale * (float) -intrinsics.height / 2.0f - yOffset,\n yScale * (float) intrinsics.height / 2.0f - yOffset,\n near, far);\n return m;\n }", "void glViewport(int x, int y, int width, int height);", "@Override\n\tpublic void project(double camX, double camY, double camZ, Point2D_F64 output) {\n\t\tdouble nx = camX/camZ;\n\t\tdouble ny = camY/camZ;\n\n\t\t// Apply radial distortion\n\t\tdouble rr = nx*nx + ny*ny;\n\t\tdouble sum = (r1 + r2*rr)*rr;\n\t\tdouble x = nx*( 1 + sum);\n\t\tdouble y = ny*( 1 + sum);\n\n\t\t// Apply tangential distortion\n\t\tx += 2*t1*nx*ny + t2*(rr + 2*nx*nx);\n\t\ty += t1*(rr + 2*ny*ny) + 2*t2*nx*ny;\n\n\t\t// Convert to pixels\n\t\toutput.x = fx*x + skew*y + cx;\n\t\toutput.y = fy*y + cy;\n\t}", "abstract public void projection(GL gl,\n int width, int height);", "protected void resetProjectionMatrix()\n {\n float tan = (float)Math.tan(myHalfFOVx);\n synchronized (this)\n {\n resetProjectionMatrixClipped();\n myProjectionMatrix = new float[16];\n myProjectionMatrix[0] = 1f / tan;\n myProjectionMatrix[5] = (float)(myAspectRatio / tan);\n myProjectionMatrix[10] = -1f;\n myProjectionMatrix[11] = -1f;\n myProjectionMatrix[14] = -2f;\n clearModelToWindowTransform();\n }\n }", "public Vector3d screenToModelPointVector(Vector2i pos)\n {\n double adjustedX = pos.getX() - getViewOffset().getX();\n double adjustedY = pos.getY() - getViewOffset().getY();\n // get the percentage of the screen for the positions\n // then use that to get the angles off of the viewer\n // Intersect those with the earth to get the actual selection points.\n double fromXpct = adjustedX / getViewportWidth() - 0.5;\n double fromYpct = adjustedY / getViewportHeight() - 0.5;\n double fromXAngleChange = -fromXpct * myHalfFOVx * 2.;\n double fromYAngleChange = -fromYpct * myHalfFOVy * 2.;\n return rotateDir(fromXAngleChange, fromYAngleChange).getNormalized();\n }", "public void project(Projection proj)\n {\n \tPoint2D.Double pt = new Point2D.Double(this.lon, this.lat);\n\t\tpt = proj.forward(pt);\n\t\tthis.lon = pt.x;\n\t\tthis.lat = pt.y;\n }", "float[] getProjectionMatrix();", "public void directCompute() {\r\n\t\t\tshort[] rgb = new short[3];\r\n\t\t\tint offset = yMin * width;\r\n\t\t\tfor (int y = yMin; y < yMax; y++) {\r\n\t\t\t\tfor (int x = 0; x < width; x++) {\r\n\t\t\t\t\tPoint3D screenPoint = screenCorner.add(xAxis.scalarMultiply(x * 1.0 / (width - 1) * horizontal))\r\n\t\t\t\t\t\t\t.sub(yAxis.scalarMultiply(y * 1.0 / (height - 1) * vertical));\r\n\r\n\t\t\t\t\tRay ray = Ray.fromPoints(eye, screenPoint);\r\n\t\t\t\t\ttracer(scene, ray, rgb);\r\n\t\t\t\t\t// applying color to pixel\r\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\r\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\r\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\r\n\r\n\t\t\t\t\toffset++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic void onSurfaceChanged(GL10 gl, int width, int height) {\n\tgl.glViewport(0, 0, width, height);\n\t//set projection matrix as active matrix\n\tgl.glMatrixMode(GL10.GL_PROJECTION); \n\t//load identity matrix to multiply with next matrix operation\n\tgl.glLoadIdentity(); \n\t//set perspective projection(GL10,FovY,Aspect,zNear,zFar)\n\tGLU.gluPerspective(gl, 70,width/(float)height,0.1f, 10f);\n\t//set ModelView matrix as active\n\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t}", "private void setCamera(GL2 gl, GLU glu)\n {\n Boundary bc = simulation.getBoundary();\n int w = (int) (bc.getMaxSize(0)-bc.getMinSize(0));\n int h = (int) (bc.getMaxSize(1)-bc.getMinSize(1));\n\n gl.glViewport(0, 0, w, h);\n\n\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glLoadIdentity();\n //opening angle, ratio of height and width, near and far\n glu.gluPerspective(80.0, 1,0.1,3*( bc.getMaxSize(2)-bc.getMinSize(2)));\n\n gl.glTranslatef(0.5f*(float) bc.getMinSize(0),-0.5f*(float) bc.getMinSize(1),1.5f*(float) bc.getMinSize(2));\n // gl.glTranslatef(0.5f*(float) (bc.getMaxSize(0)+bc.getMinSize(0)),0.5f*(float)(bc.getMaxSize(1)+ bc.getMinSize(1)),(float) -(bc.getMaxSize(2)-bc.getMinSize(2)));\n\n }", "protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }", "public Point worldToViewport(Point dst, Affine.Point src) {\n if (dst == null) {\n dst = new Point();\n }\n dst.x = worldToViewportX(src.x);\n dst.y = worldToViewportY(src.y);\n return dst;\n }", "public Rectangle worldToViewport(Rectangle dst, Rectangle.Double src) {\n if (dst == null) {\n dst = new Rectangle();\n }\n int x = worldToViewportX(src.x);\n int y = worldToViewportY(src.y);\n int width = (int)(0.5 + src.width * xScaleFactor);\n int height = (int)(0.5 + src.height * yScaleFactor);\n dst.setFrameFromDiagonal(x, y, x + width, y + height);\n return dst;\n }", "double transformXScreenLengthToWorld(final double screen);", "public void onSurfaceChanged(GL10 glUnused, int width, int height)\n {\n GLES20.glViewport(0, 0, width, height);\n float ratio = (float) width / height;\n Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);\n }", "WorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);", "public WorldToScreenTransform getWorldToScreenTransform() { return this; }", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void display(GLAutoDrawable drawable){\n GL4 gl = (GL4) GLContext.getCurrentGL();\n \n gl.glClear(GL_DEPTH_BUFFER_BIT);\n \n // not needed if bkg is black\n float bkg[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n FloatBuffer bkgBuffer = Buffers.newDirectFloatBuffer(bkg);\n gl.glClearBufferfv(GL_COLOR, 0, bkgBuffer);\n\n \n gl.glUseProgram(rendering_program); // loads program from init with the two shaders\n \n // define perspective matrix \n //perspective\n float aspect = (float) myCanvas.getWidth()/(float) myCanvas.getHeight();\n Matrix3D pMat = this.perspectiveMethod(60.0f, aspect, 0.1f, 100.0f);\t\t//for persective projection /zentrische Projektion\n Matrix3D oMat = this.orthographicMethod(1.0f, -1.0f, 1.0f, -1.0f, 0.1f, 100.0f); //for orthographic projection\n \n \n //copy perspective and MV matricies to corressponding uniform variables\n int mv_loc = gl.glGetUniformLocation(rendering_program, \"mv_matrix\");\n int proj_loc = gl.glGetUniformLocation(rendering_program, \"proj_matrix\");\n \n //build view matrix\n Matrix3D vMat = new Matrix3D();\n vMat.translate(-cameraX, -cameraY, -cameraZ);\n \n //build model matrix\n Matrix3D mMat = new Matrix3D(); //for right now we dont do anything (rotate, translate etc.) in with the mMat in this project\n\n Matrix3D mvMat = new Matrix3D();\n mvMat.concatenate(vMat);\t\t\t//first view matrix \n mvMat.concatenate(mMat);\t\t\t//second we put the model matrix on it (A * B)\n \n\n //plug the mvMat and pMat into the shader uniform variables \n gl.glUniformMatrix4fv(mv_loc, 1, false, mvMat.getFloatValues(),0);\n gl.glUniformMatrix4fv(proj_loc, 1, false, pMat.getFloatValues(),0);\n \n \n //be sure to bind the vbo before assigning the attribute pointer\n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[0]); \n // now set the \"location = 0\" info in the shaders to the point info from vbo[0]\n gl.glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(0);\n \n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[1]);\n gl.glVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(1);\n \n gl.glLineWidth(10.0f);\n \n gl.glEnable(GL_DEPTH_TEST);\n gl.glDrawArrays(GL_LINES, 0, 4);\n\n }", "public void setupCamera() {\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n\r\n if(isTiling) {\r\n float mod=1f/10f;\r\n p.frustum(width*((float)tileX/(float)tileNum-.5f)*mod,\r\n width*((tileX+1)/(float)tileNum-.5f)*mod,\r\n height*((float)tileY/(float)tileNum-.5f)*mod,\r\n height*((tileY+1)/(float)tileNum-.5f)*mod,\r\n cameraZ*mod, 10000);\r\n }\r\n\r\n }", "public static void main(String[] args) {\n// Vector v1 = new Vector(new double[]{0, 0, 1});\n// Vector v2 = new Vector(new double[]{1, 0, 0});\n// System.out.println(v1.dot(v2));\n System.setProperty(\"sun.java2d.opengl\", \"true\");\n \n // Make World\n //WorldSpace world = new StreetWorldSpace();\n WorldSpace world = new TestWorldSpace();\n //WorldSpace world = new BigAssPolygonSpace();\n \n // Make Frame\n JFrame frame = new JFrame();\n \n // Get effective screen size\n Dimension screenSize = getScreenDimension(frame);\n\n // Set Camera View dimensions\n int width = 730;\n int height = width;\n \n // Make Camera\n Polygon[] polygons = world.getPolygons();\n Camera camera = new Camera(polygons, width, height, frame.getGraphicsConfiguration());\n image = camera.observe();\n \n // Make Camera Control Panel\n// int controlPanelHeight = 100;\n// CameraControlPanel cameraControlPanel = new CameraControlPanel(camera);\n// cameraControlPanel.setPreferredSize(new Dimension(width, controlPanelHeight));\n// cameraControlPanel.setBorder(BorderFactory.createCompoundBorder(new LineBorder(Color.BLACK, 2, false), new EmptyBorder(10, 10, 10, 10)));\n \n // Make Camera View Component\n CameraViewComponent cameraViewComponent = new CameraViewComponent(camera);\n cameraViewComponent.updateImage(image);\n cameraViewComponent.updateData(camera.getData());\n cameraViewComponent.setPreferredSize(new Dimension(width, height));\n\n // Make Camera Panel\n JPanel cameraPanel = new JPanel();\n cameraPanel.setLayout(new BoxLayout(cameraPanel, BoxLayout.Y_AXIS));\n cameraPanel.setPreferredSize(new Dimension(width, height));// + controlPanelHeight));\n cameraPanel.add(cameraViewComponent);\n //cameraPanel.add(cameraControlPanel);\n\n // Make Camera Data Panel\n //CameraDataPanel cameraDataPanel = new CameraDataPanel(camera);\n \n // Make Master Panel\n JPanel masterPanel = new JPanel();\n masterPanel.add(cameraPanel);\n //masterPanel.add(cameraDataPanel);\n \n frame.add(masterPanel);\n frame.pack();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n\n // Make keyboard listener\n KeyListener kl = new KeyListener();\n \n // Time\n int lastTenthOfASecond = 0;\n double lastMilliSecond = 0;\n double currentMilliSecond = System.currentTimeMillis();\n double averageFrameRate = 0;\n double currentFrameRate = 0;\n long totalTime = 0;\n long totalFrames = 0;\n \n // Redraw camera view upon keyboard input\n while(true) { \n int currentTenthOfASecond = (int)((currentMilliSecond%1000)/100);\n if (currentMilliSecond/100 > lastMilliSecond/100) {\n boolean cameraMoved = false;\n if (kl.isWPressed()) {\n camera.move(FORWARD); \n cameraMoved = true;\n }\n if (kl.isSPressed()) {\n camera.move(BACKWARD); \n cameraMoved = true;\n }\n if (kl.isAPressed()) {\n camera.move(LEFT); \n cameraMoved = true;\n }\n if (kl.isDPressed()) {\n camera.move(RIGHT); \n cameraMoved = true;\n }\n if (kl.isSpacePressed()) {\n camera.move(UP); \n cameraMoved = true;\n }\n if (kl.isShiftPressed()) {\n camera.move(DOWN); \n cameraMoved = true;\n }\n if (cameraViewComponent.wasUpdated()) {\n cameraMoved = true;\n }\n// if (cameraControlPanel.getWasCameraChanged() || cameraViewComponent.wasUpdated()) {\n// cameraMoved = true;\n// }\n if (cameraMoved) {\n image = camera.observe();\n cameraViewComponent.updateImage(image);\n //cameraDataPanel.update();\n //cameraControlPanel.update(); \n totalFrames++;\n totalTime += currentMilliSecond-lastMilliSecond + 1;\n averageFrameRate = (totalFrames)/(totalTime/1000.0); \n currentFrameRate = (1000.0/(currentMilliSecond-lastMilliSecond));\n \n }\n }\n if (currentTenthOfASecond > lastTenthOfASecond) {\n \n String[] cameraData = camera.getData();\n String[] frameData = {\n \"Average Framerate: \" + String.format(\"%.2f\", averageFrameRate), \n \"Current Framerate: \" + String.format(\"%.2f\",currentFrameRate)\n };\n String[] data = new String[cameraData.length + frameData.length ];\n System.arraycopy(cameraData, 0, data, 0, cameraData.length);\n System.arraycopy(frameData, 0, data, cameraData.length, frameData.length);\n cameraViewComponent.updateData(data);\n } \n lastTenthOfASecond = currentTenthOfASecond;\n lastMilliSecond = currentMilliSecond;\n currentMilliSecond = System.currentTimeMillis(); \n }\n }", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "ProjectionMode getProjectionMode();", "public void setupView(int near, int far) {\n\t\tmGL.glMatrixMode(GL10.GL_PROJECTION);\n\t\tmGL.glLoadIdentity();\n\t\tmGL.glOrthof(0, mRenderer.getWidth(), -mRenderer.getHeight(), 0, near, far);\n\t\t\n\t\t// Select a clean model view\n\t\tmGL.glMatrixMode(GL10.GL_MODELVIEW);\n\t\tmGL.glLoadIdentity();\n\t\t\n\t\t// Rotate world by 180 around x axis so positive y is down\n\t\tmGL.glRotatef(-180, 1, 0, 0);\n\t}", "private void handleScreenBoundaries() {\n\t\tif (tiledMapHelper.getCamera().position.x < screenWidth / 2) {\n\t\t\ttiledMapHelper.getCamera().position.x = screenWidth / 2;\n\t\t}\n\t\tif (tiledMapHelper.getCamera().position.x >= tiledMapHelper.getWidth()\n\t\t\t\t- screenWidth / 2) {\n\t\t\ttiledMapHelper.getCamera().position.x = tiledMapHelper.getWidth()\n\t\t\t\t\t- screenWidth / 2;\n\t\t}\n\n\t\tif (tiledMapHelper.getCamera().position.y < screenHeight / 2) {\n\t\t\ttiledMapHelper.getCamera().position.y = screenHeight / 2;\n\t\t}\n\t\tif (tiledMapHelper.getCamera().position.y >= tiledMapHelper.getHeight()\n\t\t\t\t- screenHeight / 2) {\n\t\t\ttiledMapHelper.getCamera().position.y = tiledMapHelper.getHeight()\n\t\t\t\t\t- screenHeight / 2;\n\t\t}\n\t}", "@Override\r\n protected Matrix4f genViewMatrix() {\r\n\r\n // refreshes the position\r\n position = calcPosition();\r\n\r\n // calculate the camera's coordinate system\r\n Vector3f[] coordSys = genCoordSystem(position.subtract(center));\r\n Vector3f right, up, forward;\r\n forward = coordSys[0];\r\n right = coordSys[1];\r\n up = coordSys[2];\r\n\r\n // we move the world, not the camera\r\n Vector3f position = this.position.negate();\r\n\r\n return genViewMatrix(forward, right, up, position);\r\n }", "@Override\r\n protected void redrawViewport() {\n this.viewport.scrollAccordingly(this.gaze.getGazePitch(), this.gaze.getGazeYaw());\r\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n glClear(GL_COLOR_BUFFER_BIT);\n \n \n multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0,\n viewMatrix, 0);\n invertM(invertedViewProjectionMatrix, 0, viewProjectionMatrix, 0);\n\n refreshGameState();\n \n setPerspectiveView();\n // Draw the table.\n positionTableInScene();\n textureProgram.useProgram();\n textureProgram.setUniforms(modelViewProjectionMatrix, texture);\n table.bindData(textureProgram);\n table.draw();\n\n // Draw the mallets.\n// positionObjectInScene(0f, mallet.height / 2f, -0.4f);\n colorProgram.useProgram();\n\n \n //draw grids\n for (int i = 0; i<lines.length; i++)\n {\n positionObjectInScene(0,0,0);\n colorProgram.setUniforms(modelViewProjectionMatrix,0.5f + i*0.1f, 0.4f+ i*0.1f, 1f);\n lines[i].bindData(colorProgram);\n lines[i].draw();\n }\n \n \n // Draw the puck.\n for (int i = 0; i<2; i++)\n {\n\t positionObjectInScene(puckPosition[i].x, puckPosition[i].y, puckPosition[i].z);\n\t colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f + i*0.2f, 0.015f + 0*0.1f, 0.9f);\n\t //colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f, 0.01f , 0.9f);\n\t puck[i].bindData(colorProgram);\n\t puck[i].draw();\n }\n \n //draw Obstacles\n for (int i = 0; i< obstacles.length; i++){\n positionObjectInScene(obstaclePosition[i].x, obstaclePosition[i].y, obstaclePosition[i].z);\n colorProgram.setUniforms(modelViewProjectionMatrix, 0.1f, 0.3f, 0.11f);\n obstacles[i].bindData(colorProgram);\n obstacles[i].draw();\n \n \n }\n \n\n \n }", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "private native void setModelColor(float r,float g,float b);", "private Camera() {\n viewport = new Rectangle();\n dirtyAreas = new ArrayList<Rectangle>();\n renderedAreas = new ArrayList<Rectangle>();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }", "protected void resetProjectionMatrixClipped()\n {\n synchronized (this)\n {\n myProjectionMatrixClipped = null;\n myProjectionMatrixClippedFarToCenter = null;\n }\n }", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "@Override\n\tpublic void update() {\n\n\t\t// Update camera coordinates based off of the width and height.\n\t\tif (cameraStalk != null) {\n\t\t\tint width = dc.getWidth();\n\t\t\tint height = dc.getHeight();\n\n\t\t\tcamera[0] = cameraStalk.coor_x - (width - m.cellWidth) / 2;\n\t\t\tcamera[1] = cameraStalk.coor_y - (height - m.cellHeight) / 2;\n\t\t\tif (camera[0] < 0) {\n\t\t\t\tcamera[0] = 0;\n\t\t\t} else {\n\t\t\t\tint x;\n\t\t\t\tif (camera[0] > (x = m.mapWmax - width + m.cellWidth)) {\n\t\t\t\t\tcamera[0] = x;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (camera[1] < 0) {\n\t\t\t\tcamera[1] = 0;\n\t\t\t} else {\n\t\t\t\tint y;\n\t\t\t\tif (camera[1] > (y = m.mapHmax - height + m.cellHeight)) {\n\t\t\t\t\tcamera[1] = y;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Draw in the background.\n\t\tif (background != NullImg.getInstance()) {\n\t\t\tint bg_width = background.getWidth();\n\t\t\tint bg_height = background.getHeight();\n\t\t\t// The offset of the image must decrease as the camera's position\n\t\t\t// increases.\n\t\t\tfor (int x = (-camera[0] % -bg_width); x < dc.getWidth(); x += bg_width) {\n\t\t\t\tfor (int y = (-camera[1] % -bg_height); y < dc\n\t\t\t\t\t\t.getHeight(); y += bg_height) {\n\t\t\t\t\tbackground.drawSlide(x, y, dc);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Update all objects.\n\t\tif (update) {\n\t\t\tfor (SimpleObject s = m.getDrawBegin(); s != null; s = s.updateNext) {\n\t\t\t\ts.newUpdate();\n\t\t\t}\n\t\t}\n\n\t\t// Paint all objects.\n\t\tfor (SimpleObject s = m.getDrawBegin(); s != null; s = s.drawNext) {\n\t\t\ts.updateNext = s.drawNext;\n\t\t\ts.i.drawSlide(s.coor_x + s.off[0] - camera[0], s.coor_y + s.off[1]\n\t\t\t\t\t- camera[1], dc);\n\t\t}\n\n\t\t// Update the world object last.\n\t\tswo.update();\n\t\tdc.paint();\n\t}", "public void update(Matrix4f viewProjectionMatrix) {\n for (int i = 0; i < 6; ++i) {\n planes[i] = viewProjectionMatrix.frustumPlane(i, planes[i]);\n }\n }", "public interface ICanvasTransform {\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the X axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformXScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the Y axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformYScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a point on the screen to absolute world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the canvas screen coordinate.\r\n\t * @return the corresponding world coordinate.\r\n\t */\r\n\tWorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a distance in screen space to a corresponding distance\r\n\t * in world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the distance on screen.\r\n\t * @return the corresponding distance in world coordinates.\r\n\t */\r\n\tWorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);\r\n\r\n\t/**\r\n\t * Transforms a world coordinate to a point on the canvas screen.\r\n\t * \r\n\t * @param x\r\n\t * the x coordinate in world space.\r\n\t * @param y\r\n\t * the y coordinate in world space.\r\n\t * @return the corresponding point on the canvas screen.\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(final double x, final double y);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(WorldCoordinate world);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tint transformWorldLengthToScreen(final double world);\r\n\r\n}", "public void beforeDraw()\n {\n INDirector.setProjection(ProjectionFormat.DirectorProjection2D);\n this.grabber.beforeRender();\n }", "private void setCofR() {\n\t\t\n Vector3f pos_vec = new Vector3f();\n Point3f pos = new Point3f();\n Vector3f dir = new Vector3f();\n\t\tMatrix4f view_mtx = new Matrix4f();\n\t\tMatrix4f nav_mtx = new Matrix4f();\n Point3f cor = new Point3f();\n\t\t\n\t\tnavigationTransform.getTransform(nav_mtx);\n\t\t\n\t\tdata.viewpointTransform.getTransform(view_mtx);\n\t\tview_mtx.get(pos_vec);\n\t\t\n\t\t// the eye point\n\t\tpos.set(pos_vec);\n\t\t\n\t\t// the eye direction\n\t\tdir.x = view_mtx.m02;\n\t\tdir.y = view_mtx.m12;\n\t\tdir.z = view_mtx.m22;\n\t\tdir.negate();\n\t\tdir.normalize();\n\t\t\n\t\t// transform into world space\n\t\tnav_mtx.transform(pos);\n\t\tnav_mtx.transform(dir);\n\t\t\n\t\tArrayList pickResults = new ArrayList();\n\t\tPickRequest pickRequest = new PickRequest();\n\t\tpickRequest.pickGeometryType = PickRequest.PICK_RAY;\n\t\tpickRequest.pickSortType = PickRequest.SORT_ORDERED;\n\t\tpickRequest.pickType = PickRequest.FIND_GENERAL;\n\t\tpickRequest.useGeometry = false;\n\t\tpickRequest.foundPaths = pickResults;\n\t\t\n\t\t// initialize the pick request\n\t\tpickRequest.origin[0] = pos.x;\n\t\tpickRequest.origin[1] = pos.y;\n\t\tpickRequest.origin[2] = pos.z;\n\t\t\n\t\tpickRequest.destination[0] = dir.x;\n\t\tpickRequest.destination[1] = dir.y;\n\t\tpickRequest.destination[2] = dir.z;\n\t\t\n\t\trootGroup.pickSingle(pickRequest);\n\t\t\n\t\tif (pickRequest.pickCount > 0) {\n\t\t\t\n \tPoint3f intersectPoint = new Point3f();\n \tVector3f intersectVector = new Vector3f();\n\t\t\n\t\t\tfloat min_distance = Float.MAX_VALUE;\n\t\t\t// sort through the bounds intersections\n\t\t\tint num_pick = pickResults.size();\n\t\t\tfor (int i = 0; i < num_pick; i++) {\n\t\t\t\t\n\t\t\t\tSceneGraphPath sgp = (SceneGraphPath)pickResults.get(i);\n\t\t\t\tsgp.getTransform(view_mtx);\n\t\t\t\t\n\t\t\t\tShape3D shape = (Shape3D)sgp.getTerminalNode();\n\t\t\t\tVertexGeometry geom = (VertexGeometry)shape.getGeometry();\n\t\t\t\t\n\t\t\t\t//determine if there was an actual geometry intersection\n\t\t\t\tboolean intersect = iutils.rayUnknownGeometry(\n\t\t\t\t\tpos,\n\t\t\t\t\tdir,\n\t\t\t\t\t0,\n\t\t\t\t\tgeom,\n\t\t\t\t\tview_mtx,\n\t\t\t\t\tintersectPoint,\n\t\t\t\t\tfalse);\n\t\t\t\t\n\t\t\t\tif (intersect) {\n\t\t\t\t\tintersectVector.set(\n\t\t\t\t\t\tintersectPoint.x - pos.x,\n\t\t\t\t\t\tintersectPoint.y - pos.y,\n\t\t\t\t\t\tintersectPoint.z - pos.z);\n\n\t\t\t\t\tfloat distance = intersectVector.length();\n\t\t\t\t\tif (distance < min_distance) {\n\t\t\t\t\t\tmin_distance = distance;\n\t\t\t\t\t\tcor.set(intersectPoint);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tnav_mtx.invert();\n\t\t\tnav_mtx.transform(cor);\n\t\t}\n\t\tcenterOfRotation.set(cor);\n\t}", "public void begin() {\r\n GL11.glViewport(0, 0, colorTexture.getWidth(), colorTexture.getHeight());\r\n bind();\r\n }", "@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n gl.glViewport(0, 0, width, height);\n // To prevent divide by zero\n float aspect = (float)width / height;\n // Set the viewport (display area) to cover the entire window.\n gl.glViewport(0, 0, width, height);\n // Setup perspective projection, with aspect ratio matches viewport\n // Select projection matrix.\n gl.glMatrixMode(GL10.GL_PROJECTION);\n // Reset projection matrix.\n gl.glLoadIdentity();\n // Use perspective projection.\n GLU.gluPerspective(gl, 70, aspect, 0.1f, 200.f);\n // Select model-view matrix.\n gl.glMatrixMode(GL10.GL_MODELVIEW);\n // Reset.\n gl.glLoadIdentity();\n }", "@Override\r\n\tpublic void render(float[] mtrxProjectionAndView) {\n\t\t\r\n\t}", "public Vec2 coordPixelsToWorld(Vec2 screen) {\n return coordPixelsToWorld(screen.x, screen.y);\n }", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "@Override\n \t\t\t\tpublic void doWorldPerspective() {\n \n \t\t\t\t}", "@Override\n \t\t\t\tpublic void doModelPerspective() {\n \n \t\t\t\t}", "public Affine.Point viewportToWorld(Affine.Point dst, Point src) {\n if (dst == null) {\n dst = new Affine.Point();\n }\n dst.x = viewportToWorldX(src.x);\n dst.y = viewportToWorldY(src.y);\n return dst;\n }", "public DoubleVec modelToView(DoubleVec pos){\n return refPoint.sub(pos).mult(zoomFactor).add(refPoint);\n }", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "public void recalculateViewport() {\r\n glViewport(0, 0, getWidth(), getHeight());\r\n spriteBatch.recalculateViewport(getWidth(), getHeight());\r\n EventManager.getEventManager().fireEvent(new WindowResizedEvent(getWidth(), getHeight()));\r\n }", "public Coordinate pixelToWorld(int x, int y, Envelope map) {\n if (graphics == null) {\n LOGGER.info(\"no graphics yet deffined\");\n \n return null;\n }\n \n //set up the affine transform and calculate scale values\n AffineTransform at = setUpTransform(map, screenSize);\n \n /* If we are rendering to a component which has already set up some form\n * of transformation then we can concatenate our transformation to it.\n * An example of this is the ZoomPane component of the swinggui module.*/\n if (concatTransforms) {\n graphics.getTransform().concatenate(at);\n } else {\n graphics.setTransform(at);\n }\n \n try {\n Point2D result = at.inverseTransform(new java.awt.geom.Point2D.Double(x, y),\n new java.awt.geom.Point2D.Double());\n Coordinate c = new Coordinate(result.getX(), result.getY());\n \n return c;\n } catch (Exception e) {\n LOGGER.warning(e.toString());\n }\n \n return null;\n }", "private void updateViewBounds() \r\n {\r\n assert !sim.getMap().isEmpty() : \"Visualiser needs simulator whose a map has at least one node\"; \r\n \r\n \r\n viewMinX = minX * zoomFactor;\r\n viewMinY = minY * zoomFactor;\r\n \r\n viewMaxX = maxX * zoomFactor;\r\n viewMaxY = maxY * zoomFactor;\r\n \r\n \r\n double marginLength = zoomFactor * maxCommRange;\r\n \r\n \r\n // Set the size of the component\r\n int prefWidth = (int)Math.ceil( (viewMaxX - viewMinX) + (marginLength * 2) );\r\n int prefHeight = (int)Math.ceil( (viewMaxY - viewMinY) + (marginLength * 2) );\r\n setPreferredSize( new Dimension( prefWidth, prefHeight ) );\r\n \r\n \r\n // Adjust for margin lengths \r\n viewMinX -= marginLength;\r\n viewMinY -= marginLength;\r\n \r\n viewMaxX += marginLength;\r\n viewMaxY += marginLength;\r\n }", "public void forward(Projection projection);", "private void initGL() {\r\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\r\n glMatrixMode(GL_PROJECTION);\r\n glLoadIdentity();\r\n\r\n glOrtho(-320, 320, -240, 240, 1, -1);\r\n\r\n glMatrixMode(GL_MODELVIEW);\r\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\r\n }", "public void scaleAffine(){\n //Get the monitors size.\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n transform = new AffineTransform();\n double width = screenSize.getWidth();\n double height = screenSize.getHeight();\n\n //Set up the scale amount for our Affinetransform\n double xscale = width / model.getBbox().getWidth();\n double yscale = height / model.getBbox().getHeight();\n\n double scale = max(xscale, yscale);\n\n adjustZoomLvl(scale);\n transform.translate(-model.getBbox().getMinX(), -model.getBbox().getMaxY());\n\n bounds = new CanvasBounds(getBounds(), transform);\n adjustZoomFactor();\n }", "@Override\n public void onDrawFrame(GL10 unused) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // Set the camera position (View matrix)\n Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n // Calculate the projection and view transformation\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n\n Matrix.translateM(mMVPMatrix, 0, getScreenWidth()/2, -getScreenHeight()/2, 0); // apply translation\n Matrix.scaleM(mMVPMatrix,0,scaler,scaler,scaler);\n mSquare.draw(mMVPMatrix,Player.colorP1);\n mHat.draw(mMVPMatrix);\n\n robe.draw(mMVPMatrix, Robe.LEFT_ROBE);\n p1Eye.draw(mMVPMatrix, Circle.FACE_RIGHT, true, true);\n\n Matrix.multiplyMM(mMVPMatrix2, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n Matrix.translateM(mMVPMatrix2, 0, -getScreenWidth()/2, -getScreenHeight()/2, 0);\n Matrix.scaleM(mMVPMatrix2,0,scaler,scaler,scaler);\n mSquare2.draw(mMVPMatrix2,Player.colorP2);\n mHat2.draw(mMVPMatrix2);\n\n robe2.draw(mMVPMatrix2, Robe.RIGHT_ROBE);\n p2Eye.draw(mMVPMatrix2, Circle.FACE_LEFT, true, true);\n }", "public RoboViewController(CGRect bounds, RoboPlatform.Config config) {\n EAGLContext ctx = new EAGLContext(EAGLRenderingAPI.OpenGLES2);\n platform = new RoboPlatform(bounds, config);\n view = new GLKView(bounds, ctx) {\n @Method(selector = \"touchesBegan:withEvent:\")\n public void touchesBegan(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesBegan(touches, event);\n platform.pointer().onTouchesBegan(touches, event);\n }\n @Method(selector = \"touchesCancelled:withEvent:\")\n public void touchesCancelled(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesCancelled(touches, event);\n platform.pointer().onTouchesCancelled(touches, event);\n }\n @Method(selector = \"touchesEnded:withEvent:\")\n public void touchesEnded(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesEnded(touches, event);\n platform.pointer().onTouchesEnded(touches, event);\n }\n @Method(selector = \"touchesMoved:withEvent:\")\n public void touchesMoved(NSSet<UITouch> touches, UIEvent event) {\n platform.touch().onTouchesMoved(touches, event);\n platform.pointer().onTouchesMoved(touches, event);\n }\n @Override\n public void draw(CGRect rect) {\n platform.paint();\n }\n };\n view.setMultipleTouchEnabled(true);\n view.setDrawableColorFormat(platform.config.glBufferFormat);\n // view.setDrawableDepthFormat(GLKViewDrawableDepthFormat._16);\n // view.setDrawableStencilFormat(GLKViewDrawableStencilFormat.None);\n setView(view);\n setDelegate(this);\n setPreferredFramesPerSecond(config.targetFPS);\n addStrongRef(platform);\n PlayN.setPlatform(platform);\n }", "public void perspProjMatrix(PerspInfo p) {\r\n\t\t// First calculate the aspect ratio\r\n\t\tfloat ar = (float)p.Width / (float)p.Height;\r\n\t\t// Calculate the z range\r\n\t\tfloat zRange = p.zNear - p.zFar;\r\n\t\t// Find tan of half the field of view\r\n\t\tfloat tanHalfFOV = (float) Math.tan(Math.toRadians(p.FOV / 2.0));\r\n\r\n\t\t// Finally create a matrix from these values\r\n\t\tm[0][0] = 1.0f/(tanHalfFOV * ar); m[0][1] = 0.0f; m[0][2] = 0.0f; \t\t\t\tm[0][3] = 0.0f;\r\n\t m[1][0] = 0.0f; m[1][1] = 1.0f/tanHalfFOV; m[1][2] = 0.0f; \t\t\t\tm[1][3] = 0.0f;\r\n\t m[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = (-p.zNear - p.zFar)/zRange ; \tm[2][3] = 2f * p.zFar * (p.zNear / zRange);\r\n\t m[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 1.0f; \t\t\t\t\t\t\tm[3][3] = 0.0f;\r\n\r\n\t}", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "public int worldToViewportX(double x) {\n return (int)(0.5 + xMargin + xViewport + (x - xWindow) * xScaleFactor);\n }", "protected synchronized float[] generateProjectionMatrixClipped(boolean clipFarToCenter)\n {\n if (myProjectionMatrix == null)\n {\n resetProjectionMatrix();\n }\n float[] clipped = myProjectionMatrix.clone();\n Vector3d model = getClosestModelPosition();\n double elevation;\n if (myMapContext == null)\n {\n elevation = model.subtract(myPosition.getLocation()).getLength();\n }\n else\n {\n // convertToPosition() gives the geographic location with a 0\n // altitude (referenced by terrain) and convertToModel() gives\n // the location on the terrain.\n Projection snapshot = myMapContext.getProjection();\n Vector3d terrainModel = snapshot.convertToModel(snapshot.convertToPosition(model, ReferenceLevel.TERRAIN),\n Vector3d.ORIGIN);\n elevation = terrainModel.subtract(myPosition.getLocation()).getLength();\n }\n double tanHalfFov = (float)Math.tan(myHalfFOVx);\n final double minNearClipDistance = 5.;\n double near = Math.max(elevation / (2. * Math.sqrt(2. * tanHalfFov * tanHalfFov + 1.)), minNearClipDistance);\n double radius = myModel.getBoundingRadius();\n double far = Math.sqrt(elevation * (2. * radius + elevation));\n far *= clipFarToCenter ? 1 : 2;\n double depth = far - near;\n double c = -(far + near) / depth;\n double d = -2. * far * near / depth;\n clipped[10] = (float)c;\n clipped[14] = (float)d;\n return clipped;\n }", "public void renderLoop() {\n\t\tplayer.move(calculateVectorDirectionBetweenEyeAndCenter());\n\t\tcamera.move();\n\t\tm.setLookAt(camera.getPosition().x,\n\t\t\t\tcamera.getPosition().y + 10,\n\t\t\t\tcamera.getPosition().z,\n\t\t\t\tplayer.getPosition().x,\n\t\t\t\tplayer.getPosition().y + 10,\n\t\t\t\tplayer.getPosition().z,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).x,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).y,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).z);\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\t\t\n\t\tglPushMatrix();\n\t\t\tupdateSpotLight();\n\t\t\tupdatePointLight();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_BACK, GL_FILL);\n\t\t\tglPolygonMode(GL_FRONT, GL_POINT);\n\t\t\tterrain.generateCave();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_FRONT, GL_FILL);\n\t\t\tterrain.generateGround();\n\t\tglPopMatrix();\n\n\t\tglPushMatrix();\n\t\t\tterrain.drawEnd();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglTranslatef(player.getPosition().x, player.getPosition().y, player.getPosition().z);\n\t\t\tglRotatef(player.getRotY(), 0, 1, 0);\n\t\t\tplayer.getModel().draw(player.getMoveAngle());\n\t\tglPopMatrix();\n\t}", "void vectorToWorld(double px, double py, double pz, DVector3 result);", "public MapView(GameModel model){\n this.model = model;\n this.images = new Images(model);\n this.visualizer = new VisualizerVisitor(this, zoomFactor);\n this.debug = new DebugVisitor(this, zoomFactor);\n this.modelMid = new DoubleVec(model.getFieldSizeX()*0.5,model.getFieldSizeY()*0.5);\n this.refPoint = modelMid;\n this.smallVisualizer = new SmallVisitor(this, 3);\n updateBoxes();\n }", "private Matrix4f getProjectionNormalized(int w, int h) {\n Matrix4f m1 = new Matrix4f();\n Matrix4f m2 = new Matrix4f();\n\n if(w > h) {\n float aspect = ((float)w) / h;\n m1.loadFrustum(-aspect,aspect, -1,1, 1,100);\n } else {\n float aspect = ((float)h) / w;\n m1.loadFrustum(-1,1, -aspect,aspect, 1,100);\n }\n\n m2.loadRotate(180, 0, 1, 0);\n m1.loadMultiply(m1, m2);\n\n m2.loadScale(-2, 2, 1);\n m1.loadMultiply(m1, m2);\n\n m2.loadTranslate(0, 0, 2);\n m1.loadMultiply(m1, m2);\n return m1;\n }", "protected void processViewport (LightProperties lp, boolean cameraViewport) {\n\t\tCamera camera = lp.camera;\n\t\tShadowMapRegion r = allocator.nextResult(currentLight);\n\n\t\tif (r == null) return;\n\n\t\tTextureRegion region = lp.region;\n\t\tregion.setTexture(frameBuffers[currentPass].getColorBufferTexture());\n\n\t\t// We don't use HdpiUtils\n\t\t// gl commands related to shadow map size and not to screen size\n\t\tGdx.gl.glViewport(r.x, r.y, r.width, r.height);\n\t\tGdx.gl.glScissor(r.x + 1, r.y + 1, r.width - 2, r.height - 2);\n\t\tregion.setRegion(r.x, r.y, r.width, r.height);\n\n\t\tif (cameraViewport) {\n\t\t\tcamera.viewportHeight = r.height;\n\t\t\tcamera.viewportWidth = r.width;\n\t\t\tcamera.update();\n\t\t}\n\t}", "private void updateBoxes(){\n if(model.getMap() != null) {\n DoubleVec position = invModelToView(new DoubleVec(canvas.getWidth()*0.5,canvas.getHeight()*0.5));\n inner = new Rectangle(position, 1.0/zoomFactor * fi * canvas.getWidth(), 1.0/zoomFactor * fi * canvas.getHeight(), 0);\n outer = new Rectangle(position, 1.0/zoomFactor * fo * canvas.getWidth(), 1.0/zoomFactor * fo * canvas.getHeight(), 0);\n }\n }", "private void configureCamera() {\n float fHeight = cam.getFrustumTop() - cam.getFrustumBottom();\n float fWidth = cam.getFrustumRight() - cam.getFrustumLeft();\n float fAspect = fWidth / fHeight;\n float yDegrees = 45f;\n float near = 0.02f;\n float far = 20f;\n cam.setFrustumPerspective(yDegrees, fAspect, near, far);\n\n flyCam.setMoveSpeed(5f);\n\n cam.setLocation(new Vector3f(2f, 4.7f, 0.4f));\n cam.setRotation(new Quaternion(0.348f, -0.64f, 0.4f, 0.556f));\n }", "private AffineTransform setUpTransform(Envelope mapExtent, Rectangle screenSize) {\n double scaleX = screenSize.getWidth() / mapExtent.getWidth();\n double scaleY = screenSize.getHeight() / mapExtent.getHeight();\n \n double tx = -mapExtent.getMinX() * scaleX;\n double ty = (mapExtent.getMinY() * scaleY) + screenSize.getHeight();\n \n AffineTransform at = new AffineTransform(scaleX, 0.0d, 0.0d, -scaleY, tx, ty);\n \n return at;\n }", "public void setModelTransformation(final AffineTransform gridToCRS) {\n final double[] modelTransformation = new double[16];\n modelTransformation[0] = gridToCRS.getScaleX();\n modelTransformation[1] = gridToCRS.getShearX();\n modelTransformation[2] = 0;\n modelTransformation[3] = gridToCRS.getTranslateX();\n modelTransformation[4] = gridToCRS.getShearY();\n modelTransformation[5] = gridToCRS.getScaleY();\n modelTransformation[6] = 0;\n modelTransformation[7] = gridToCRS.getTranslateY();\n modelTransformation[8] = 0;\n modelTransformation[9] = 0;\n modelTransformation[10] = 0;\n modelTransformation[11] = 0;\n modelTransformation[12] = 0;\n modelTransformation[13] = 0;\n modelTransformation[14] = 0;\n modelTransformation[15] = 1;\n\n nTransform = createTiffField(Tag.ModelTransformationTag);\n final Node nValues = createTiffDoubles(modelTransformation);\n nTransform.appendChild(nValues);\n }", "protected void zoomToPresent(){\n if(xpCursor1 >=0){\n ixDataCursor1 = ixDataShown[xpCursor1];\n }\n if(xpCursor2 >=0){\n ixDataCursor2 = ixDataShown[xpCursor2];\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n if(widgg.timeorg.timeSpread > 100) { widgg.timeorg.timeSpread /=2; }\n else { widgg.timeorg.timeSpread = 100; }\n bPaintAllCmd = true;\n widgg.redraw(100, 200);\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "@Override\n\tpublic void onSurfaceChanged(final GL10 iGL10, final int width, final int height)\n\t{\n\t\tglViewport(0, 0, width, height);\n\t\t\n\t\tMatrixHelper.perspectiveM(mProjectionMatrix, 45, (float) width / (float) height, 1f, 10f);\n\t\tMatrix.setLookAtM(mViewMatrix, 0, 0f, 1.2f, 2.2f, 0f, 0f, 0f, 0f, 1f, 0f);\n\t}", "public void setCameraPosition(Coord crd) {\n if(internalNative == null) {\n if(internalLightweightCmp != null) {\n internalLightweightCmp.zoomTo(crd, internalLightweightCmp.getZoomLevel());\n } else {\n // TODO: Browser component \n }\n return;\n }\n internalNative.setPosition(crd.getLatitude(), crd.getLongitude());\n }", "void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }", "private void calculateMatrices() {\n viewMatrix = new Matrix();\n clipRect = null;\n\n float actualWidth = gameModel.actualWidth = getWidth();\n float actualHeight = gameModel.actualHeight = getHeight();\n float virtualWidth = gameModel.getWidth();\n float virtualHeight = gameModel.getHeight();\n\n float scale = Math.max(virtualWidth / actualWidth, virtualHeight / actualHeight);\n if (scale < 0.99 || scale > 1.01) {\n viewMatrix.postScale(1f / scale, 1f / scale);\n\n float extraW = actualWidth * scale - virtualWidth;\n float extraH = actualHeight * scale - virtualHeight;\n\n if (extraW > 1f || extraH > 1f) {\n viewMatrix.postTranslate(extraW / scale / 2f, extraH / scale / 2f);\n clipRect = new RectF(0, 0, virtualWidth, virtualHeight);\n }\n }\n\n // Invert the view matrix, to obtain a matrix that can be used for translating\n // touch events back to virtual coordinates.\n touchMatrix = new Matrix(viewMatrix);\n touchMatrix.invert(touchMatrix);\n }", "private void computeDirect() {\n\t\t\tif (startY > 0) {\n\t\t\t\toffset = (startY - 1) * width;\n\t\t\t} else {\n\t\t\t\toffset = 0;\n\t\t\t}\n\n\t\t\tendY = endY == height ? endY - 1 : endY;\n\n\t\t\tfor (int y = startY; y <= endY; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tfinal Point3D moveX = xAxis.scalarMultiply(x * horizontal / (width - 1));\n\t\t\t\t\tfinal Point3D moveY = yAxis.scalarMultiply(y * vertical / (height - 1));\n\t\t\t\t\tfinal Point3D screenPoint = screenCorner.add(moveX).sub(moveY);\n\n\t\t\t\t\tfinal Ray ray = Ray.fromPoints(eye, screenPoint);\n\n\t\t\t\t\tRayCasterUtil.tracer(scene, ray, rgb);\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\n\n\t\t\t\t\toffset++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void applyRotationMatrix() {\n for (int i = 0; i < coors.length; i++) {\n for (int j = 0; j < coors[i].length; j++) {\n newCoors[i][j] = coors[i][0] * R[j][0] + coors[i][1] * R[j][1] + coors[i][2] * R[j][2];\n }\n // add perspective\n float scale = map(Math.abs(newCoors[i][2]), 0, (float) (halfSize * Math.sqrt(3)), 1, 1.5f);\n if (newCoors[i][2] < 0) {\n scale = 2f - scale;\n }\n for (int j = 0; j < 2; j++) {\n newCoors[i][j] *= scale;\n }\n }\n // to R2\n // just dont use Z\n setPathAndAlpha();\n }", "private void moveCameraToPosWithinBoardBounds(float x, float y) {\n // the camera position is the center coordinate of the displayed area --> cam.viewport.../2\n cam.position.x = MathUtils.clamp(x,\n cam.viewportWidth/2 - (cam.viewportWidth/2)*(1-getZoomFactor()),\n cam.viewportWidth/2 + (cam.viewportWidth/2)*(1-getZoomFactor()));\n cam.position.y = MathUtils.clamp(cam.viewportHeight-y,\n cam.viewportHeight/2 - (cam.viewportHeight/2)*(1-getZoomFactor()),\n cam.viewportHeight/2 + (cam.viewportHeight/2)*(1-getZoomFactor()));\n cam.update();\n }", "public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n\t\tGLES20.glViewport(0, 0, width, height);\n\t\tLog.d(\"ShelXle.Droid Screen Size\", width + \" \" + height);\n\t\tpixh = height;\n\t\tpixw = width;\n\t\tfpsscal = 350.0f / Math.min(width, height);\n\t\tfpsMat[0] = -fpsscal;\n\t\tfpsMat[12] = 1.0f - fpsscal;\n\t\tfpsMat3[0] = -fpsscal*1.24f;\n\t\tfpsMat3[12] = 1.0f - fpsscal*1.24f;\n\n\t\tfpsMat4[0] = -fpsscal*1.26f;\n\t\tfpsMat4[12] = 1.0f - fpsscal*1.26f;\n\t\tfpsMat2[0] = -0.25f * fpsscal;\n\t\tLog.d(\"ShelXle.Droid FPS text scaling \", fpsscal + \" \");\n\t\tfloat ratio = (float) width / height;\n\t\tfloat fh = (float) Math.tan(29.0 / 360.0 * 3.14159265358979) * 5.0f;\n\t\tfloat fw = fh * ratio;\n\t\tMatrix.frustumM(proj, 0, -fw, fw, -fh, fh, 5.0f, 800.0f);\n\t\tMatrix.setLookAtM(mv, 0, 0.0f, 200f, 0f, 0f, 0.0f, 0.0f, 0.0f, 00f, 1f);\n\t\tMatrix.multiplyMM(pmv1, 0, proj, 0, mv, 0);\n\t\tSystem.arraycopy(pmv1, 0, proj, 0, 16);\n\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t/*\n\t\t * if (f!=null){ f.write(proj); f.write(proj);\n\t\t * \n\t\t * }\n\t\t */\n\t\t// Matrix.setIdentityM(proj,0);\n\t\t// Matrix.perspectiveM(proj, 0, 29.0f,ratio,5.0f,800.0f);\n\n\t}", "private void initializeViewportIfNecessary()\r\n throws NoninvertibleTransformException {\r\n if (!viewportInitialized && (layerManager.size() > 0) &&\r\n (layerManager.getEnvelopeOfAllLayers().getWidth() > 0)) {\r\n setViewportInitialized(true);\r\n viewport.zoomToFullExtent();\r\n\r\n //Return here because #zoomToFullExtent will eventually cause a call to\r\n //#paintComponent [Jon Aquino]\r\n return;\r\n }\r\n }", "private void mouseEventToWorldSpace(MouseEvent e) {\n\n Point2D mousePoint = new Point2D.Double();\n mousePoint.setLocation(e.getPoint());\n\n Point2D newPoint = new Point2D.Double();\n this.viewModel.getViewToWorld().transform(mousePoint, newPoint);\n\n int xDiff = (int) ( newPoint.getX() - mousePoint.getX() );\n int yDiff = (int) ( newPoint.getY() - mousePoint.getY() );\n\n e.translatePoint(xDiff, yDiff);\n }", "private void adjustCameraPosition() {\n if (upward) {\n\n if (tilt<90) {\n tilt ++;\n zoom-=0.01f;\n } else {\n upward=false;\n }\n\n } else {\n if (tilt>0) {\n tilt --;\n zoom+=0.01f;\n } else {\n upward=true;\n }\n }\n }", "private void handleProjectionChanged(ProjectionChangedEvent evt)\n {\n mySpecializedProcessorsLock.readLock().lock();\n try\n {\n myProjectionSyncManager.setProjectionSnapshot(evt.getProjectionSnapshot());\n for (final GeometryProcessor<? extends Geometry> proc : myProjectionSensitiveProcessors.values())\n {\n proc.handleProjectionChanged(evt);\n }\n }\n finally\n {\n mySpecializedProcessorsLock.readLock().unlock();\n }\n }", "Point inViewPort();", "public void mygluLookAt(\n double eX, double eY, double eZ,\n double cX, double cY, double cZ,\n double upX, double upY, double upZ) {\n\n double[] F = new double[3];\n double[] UP = new double[3];\n double[] s = new double[3];\n double[] u = new double[3];\n\n F[0] = cX-eX;\n F[1] = cY-eY;\n F[2] = cZ-eZ;\n UP[0] = upX;\n UP[1] = upY;\n UP[2] = upZ;\n normalize(F);\n normalize(UP);\n crossProd(F, UP, s);\n crossProd(s, F, u);\n\n double[] M = new double[16];\n\n // Switching to row-major order\n M[0] = s[0];\n M[4] = u[0];\n M[8] = -F[0];\n M[12] = 0;\n M[1] = s[1];\n M[5] = u[1];\n M[9] = -F[1];\n M[13] = 0;\n M[2] = s[2];\n M[6] = u[2];\n M[10] = -F[2];\n M[14] = 0;\n M[3] = 0;\n M[7] = 0;\n M[11] = 0;\n M[15] = 1;\n\n projection.multiply(M);\n projection.translate((float)-eX, (float)-eY, (float)-eZ);\n }", "@Override\n public ColorModel getColorModel() {\n return getGraphicsConfiguration().getColorModel();\n }" ]
[ "0.6357681", "0.61031616", "0.6084687", "0.6024298", "0.6023919", "0.59413296", "0.58824855", "0.57250136", "0.56458634", "0.56355196", "0.563292", "0.5585918", "0.5521828", "0.5496324", "0.5482349", "0.54350275", "0.5408486", "0.5395736", "0.53652966", "0.5307176", "0.53047407", "0.52705413", "0.52151257", "0.5197484", "0.5129612", "0.5120398", "0.51169485", "0.5074581", "0.50728434", "0.507284", "0.5068879", "0.50560766", "0.5055779", "0.5048006", "0.50417614", "0.50372326", "0.5033412", "0.50183314", "0.5009442", "0.49963006", "0.499139", "0.49779132", "0.4973164", "0.49498373", "0.494878", "0.493762", "0.493651", "0.4934082", "0.49289745", "0.49272487", "0.49268886", "0.49200314", "0.4918406", "0.4908154", "0.4894536", "0.48939633", "0.48903465", "0.48900294", "0.4885478", "0.48793772", "0.4877122", "0.4865388", "0.48553887", "0.48417017", "0.48341748", "0.48314762", "0.48294517", "0.48286882", "0.48184544", "0.48071563", "0.48005393", "0.4799753", "0.47968766", "0.4787547", "0.47768193", "0.47750655", "0.47727567", "0.47710764", "0.47654676", "0.47623193", "0.47538307", "0.47522298", "0.47465542", "0.47451723", "0.4741497", "0.4736469", "0.4736198", "0.47289598", "0.4724932", "0.47248718", "0.4724529", "0.47235715", "0.47192475", "0.47067153", "0.4694935", "0.46927413", "0.4692226", "0.46894562", "0.46871707", "0.4677796" ]
0.5552552
12
VALUE LABEL FORMAT AND DRAW Drawing primitive for mouse tooltips. Will format according to axis tick renderers and labels.
protected void drawCoord(Graphics2D g2d, Coord2d screenPosition, Coord3d modelPosition, int interline, boolean leftAlign) { String d1 = null; String d2 = null; if (getChart().getView().is2D_XY()) { d1 = format(Axis.X, modelPosition.x); d2 = format(Axis.Y, modelPosition.y); } else if (getChart().getView().is2D_XZ()) { d1 = format(Axis.X, modelPosition.x); d2 = format(Axis.Z, modelPosition.y); } else if (getChart().getView().is2D_YZ()) { d1 = format(Axis.Y, modelPosition.x); d2 = format(Axis.Z, modelPosition.y); } drawCoord(g2d, screenPosition, interline, d1, d2, leftAlign); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void plot() {\n // TODO: Implement this method\n System.out.printf(\"%10s : [\",this.label);\n for (int i=1;i<=this.value;i++) {\n System.out.print(\"#\");\n }\n System.out.printf(\"] (%d)\\n\",this.value);\n }", "private void drawAxis(final Graphics g, final boolean drawX) {\r\n final int h = getHeight();\r\n final int w = getWidth();\r\n g.setColor(GUIConstants.color1);\r\n \r\n final int novalue = noValueSize();\r\n final int textH = g.getFontMetrics().getHeight();\r\n // the painting space provided for items which lack no value\r\n final int pWidth = plotWidth - novalue;\r\n final int pHeight = plotHeight - novalue;\r\n \r\n final ScatterAxis axis = drawX ? scatterData.xAxis : scatterData.yAxis;\r\n // drawing horizontal axis line\r\n if(drawX) {\r\n g.drawLine(MARGIN[1], h - MARGIN[2], w - MARGIN[3], h - MARGIN[2]);\r\n if(plotChanged) axis.calcCaption(pWidth);\r\n } else {\r\n // drawing vertical axis line\r\n g.drawLine(MARGIN[1], MARGIN[0], MARGIN[1], getHeight() - MARGIN[2]);\r\n if(plotChanged) axis.calcCaption(pHeight);\r\n }\r\n \r\n final boolean numeric = axis.numeric;\r\n final int nrCaptions = axis.nrCaptions;\r\n final double step = axis.captionStep;\r\n final double range = 1.0d / (nrCaptions - 1);\r\n final int fs = GUIProp.fontsize;\r\n \r\n g.setFont(GUIConstants.font);\r\n for(int i = 0; i < nrCaptions; i++) {\r\n String caption = \"\";\r\n if(numeric) {\r\n final double min = axis.min;\r\n final double captionValue = i == nrCaptions - 1 ? axis.max : \r\n min + (i * step);\r\n \r\n caption = formatString(captionValue, drawX);\r\n \r\n // category data, each category is displayed as a caption \r\n } else {\r\n caption = string(axis.cats[i]);\r\n }\r\n \r\n // if assignment consists of more than 10 characters the caption string\r\n // is chopped to the length 10 to avoid layout issues\r\n if(caption.length() > 10) {\r\n caption = caption.substring(0, 10);\r\n caption += \"...\";\r\n }\r\n \r\n // caption labels are rotated, for both x and y axis. first a buffered\r\n // image is created which displays the rotated label ...\r\n final int imgW = BaseXLayout.width(g, caption) + fs;\r\n final int imgH = 160;\r\n final BufferedImage img = new BufferedImage(imgW, imgH, \r\n Transparency.BITMASK);\r\n Graphics2D g2d = img.createGraphics();\r\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n g2d.rotate(ROTATE, imgW, 0 + textH);\r\n g2d.setFont(GUIConstants.font);\r\n g2d.setColor(Color.black);\r\n g2d.drawString(caption, fs, fs);\r\n \r\n // ... after that\r\n // the image is drawn beside x / y axis\r\n g.setColor(GUIConstants.color1);\r\n if(drawX) {\r\n final int x = MARGIN[1] + novalue + (int) (i * range * pWidth);\r\n final int y = h - MARGIN[2];\r\n g.drawImage(img, x - imgW + textH - fs, y + fs / 4, this);\r\n g.drawLine(x, MARGIN[0], x, y + fs / 2);\r\n } else {\r\n final int y = h - MARGIN[2] - novalue - (int) (i * range * pHeight);\r\n g.drawImage(img, MARGIN[1] - imgW - fs, y - fs, this);\r\n g.drawLine(MARGIN[1] - fs / 2, y, w - MARGIN[3], y);\r\n }\r\n }\r\n }", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tg.setColor(Color.BLACK);\n\n\t\tg.setFont(numFont);\n\n\t\tif (param.showaxis) {\n\t\t\t// pixels\n\t\t\tint actualcenterx = (int) math.Math.scale(0, param.minx, param.maxx, 0, getWidth());\n\t\t\tint actualcentery = (int) math.Math.scale(0, param.miny, param.maxy, getHeight(), 0);\n\n\t\t\tg.drawLine(actualcenterx, 0, actualcenterx, getHeight());\n\t\t\tg.drawLine(0, actualcentery, getWidth(), actualcentery);\n\t\t\tg.drawString(0 + \"\", actualcenterx - xoffset, actualcentery + yoffset);\n\n\t\t\tg.drawString(param.maxx + \"\", getWidth() - xoffset * (param.maxx + \"\").length(), actualcentery + yoffset);\n\t\t\tg.drawString(param.minx + \"\", 0, actualcentery + yoffset);\n\t\t\tg.drawString(param.maxy + \"\", actualcenterx - xoffset * (param.maxy + \"\").length(), yoffset);\n\t\t\tg.drawString(param.miny + \"\", actualcenterx - xoffset * (param.miny + \"\").length(), getHeight() - yoffset);\n\t\t}\n\n\t\tfor (UIPointSet pointSet : pointSets) {\n\n\t\t\tint prevpx = 0, prevpy = 0;\n\t\t\tfor (int i = 0; i < pointSet.getPoints().length; i++) {\n\n\t\t\t\tdouble[] point = pointSet.getPoints()[i];\n\t\t\t\t// pixels\n\t\t\t\tint px = (int) math.Math.scale(point[0], param.minx, param.maxx, 0, getWidth());\n\t\t\t\tint py = (int) math.Math.scale(point[1], param.miny, param.maxy, getHeight(), 0);\n\n\t\t\t\tif (pointSet.getPointColor() != null) {\n\t\t\t\t\tint pointWidth = 10;\n\t\t\t\t\tg.setColor(pointSet.getPointColor());\n\t\t\t\t\tg.fillOval(px - pointWidth / 2, py - pointWidth / 2, pointWidth, pointWidth);\n\t\t\t\t}\n\n\t\t\t\tif (pointSet.getLineColor() != null && i > 0) {// if (Math.abs(y2 - y) < (getHeight())) {\n\t\t\t\t\tg.setColor(pointSet.getLineColor());\n\t\t\t\t\tg.drawLine(prevpx, prevpy, px, py);\n\t\t\t\t\tfor (int ii = 1; ii < 2; ii++) {\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy - ii, px, py - ii);\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy + ii, px, py + ii);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprevpx = px;\n\t\t\t\tprevpy = py;\n\n\t\t\t}\n\t\t}\n\n\t\tfor (PointBox bx : savedBoxes) {\n\t\t\tbx.updatePixCoordinate();\n\t\t\tg.setColor(bx.pointSet.getPointColor());\n\t\t\tbx.paint(g, clickingmBox && mBox.equals(bx), false);\n\t\t}\n\t\tif (showmBox) {\n\t\t\tint index = savedBoxes.indexOf(mBox);\n\t\t\tg.setColor(mBox.pointSet.getPointColor());\n\t\t\tif (index < 0) {\n\t\t\t\tmBox.paint(g, clickingmBox, false);\n\t\t\t} else {\n\t\t\t\tsavedBoxes.get(index).paint(g, clickingmBox, true);\n\t\t\t}\n\t\t\t// now draw the box (top left)\n\t\t\tint corneroffset = 10;\n\t\t\tString eqS = \"y = \" + mBox.pointSet.getTitle();\n\t\t\tString fnumS = pointSets.indexOf(mBox.pointSet) + \"\";\n\n\t\t\tint boxx = corneroffset + 10;\n\t\t\tint boxy = corneroffset;\n\t\t\tint boxw = eqS.length() * (xoffset - 4) + 8 + corneroffset;\n\t\t\tint boxh = yoffset + corneroffset;\n\n\t\t\tg.clearRect(boxx, boxy, boxw, boxh);\n\n\t\t\tg.drawString(eqS, xoffset + corneroffset, yoffset + corneroffset);\n\n\t\t\tg.setFont(subFont);\n\t\t\tg.drawString(fnumS, xoffset * 2 + corneroffset, (yoffset * 4 / 3) + corneroffset);\n\n\t\t\tg.drawRect(boxx, boxy, boxw, boxh);\n\n\t\t}\n\t}", "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}", "@Override\r\n public void paintComponent(Graphics g)\r\n {\n super.paintComponent(g);\r\n g.setColor(getParent().getBackground());\r\n g.fillRect(0, getHeight() / 2, getWidth(), getHeight());\r\n g.setColor(new Color(153, 153, 204));\r\n stringValue = Float.toString(_getValue());\r\n g.drawString(stringValue, getWidth() / 2 - (int) (stringValue.length() * 1.8f), getHeight() / 2 + 10);\r\n }", "@Override\r\n\t\t\t\tpublic String textFormatter(String value) {\n\t\t\t\t\tString label = \"(\" + value + \")\";\r\n\t\t\t\t\treturn (label);\r\n\t\t\t\t}", "private void drawLabels(Graphics2D g2) {\r\n if (isTextPainted()) {\r\n double axisH = yPositionToPixel(originY);\r\n double axisV = xPositionToPixel(originX);\r\n\r\n if (isAxisPainted()) {\r\n Stroke stroke = g2.getStroke();\r\n g2.setStroke(new BasicStroke(STROKE_AXIS));\r\n g2.setColor(getAxisColor());\r\n g2.drawLine((int) axisV - 3, (int) axisH,\r\n (int) axisV + 3, (int) axisH);\r\n g2.drawLine((int) axisV, (int) axisH - 3,\r\n (int) axisV, (int) axisH + 3);\r\n g2.setStroke(stroke);\r\n }\r\n\r\n g2.setColor(getForeground());\r\n FontMetrics metrics = g2.getFontMetrics();\r\n g2.drawString(format(originX) + \"; \" +\r\n format(originY), (int) axisV + 5,\r\n (int) axisH + metrics.getHeight());\r\n \r\n drawHorizontalAxisLabels(g2);\r\n drawVerticalAxisLabels(g2);\r\n }\r\n }", "private void drawAxes()\r\n {\r\n Rectangle rectangle = this.getBounds();\r\n rectangle.setBounds(0,0,300,300);\r\n \r\n xOrigin_ = (int)(rectangle.x);\r\n yOrigin_ = (int)(rectangle.y);\r\n \r\n // Draw x axis\r\n graphics_.drawLine(xOrigin_ + OFFSET,\r\n yOrigin_ + OFFSET,\r\n MAX_AXIS_LENGTH + OFFSET,\r\n yOrigin_ + OFFSET);\r\n \r\n // Draw y axis\r\n graphics_.drawLine(xOrigin_ + OFFSET,\r\n yOrigin_ + OFFSET,\r\n xOrigin_ + OFFSET,\r\n MAX_AXIS_LENGTH + OFFSET);\r\n \r\n // Put labels on Axes\r\n graphics_.drawString(xLabel_, \r\n MAX_AXIS_LENGTH, \r\n (yOrigin_+ X_LABEL_OFFSET));\r\n \r\n graphics_.drawString(yLabel_, \r\n (xOrigin_ + X_LABEL_OFFSET), \r\n (MAX_AXIS_LENGTH + Y_LABEL_OFFSET));\r\n \r\n // Write description of plot below graph\r\n graphics_.drawString(\"PLOT OF \" + xLabel_ + \" VS \" + yLabel_, \r\n PLOT_DESCRIP_X,\r\n PLOT_DESCRIP_Y);\r\n \r\n // Draw tick marks on x axis\r\n final int axisMarkerDist = MAX_AXIS_LENGTH/NUM_MARKERS;\r\n \r\n // Temporary variable representing location where tick marks \r\n // should be drawn\r\n int axisTemp;\r\n \r\n for (int i=1; i<=NUM_MARKERS; i++)\r\n {\r\n axisTemp = i*axisMarkerDist;\r\n \r\n // Draw tick mark\r\n graphics_.drawLine(OFFSET + (axisTemp),\r\n OFFSET,\r\n OFFSET + (axisTemp),\r\n OFFSET - 5 );\r\n \r\n // Draw value above tick mark\r\n graphics_.drawString(String.valueOf( (maxX_/NUM_MARKERS)*i ),\r\n (OFFSET + (axisTemp)),\r\n OFFSET - 20);\r\n }\r\n \r\n // Draw tick marks on y axis\r\n for (int i=1; i<=NUM_MARKERS; i++)\r\n {\r\n axisTemp = i*axisMarkerDist;\r\n // Draw tick mark\r\n graphics_.drawLine( OFFSET - 5,\r\n (OFFSET + (axisTemp)),\r\n OFFSET,\r\n (OFFSET + (axisTemp)));\r\n \r\n // Draw value above tick mark\r\n graphics_.drawString(String.valueOf((maxY_/NUM_MARKERS)*i),\r\n xOrigin_ + X_LABEL_OFFSET,\r\n (OFFSET + (axisTemp)));\r\n }\r\n\r\n\r\n }", "private String getLabel(int aValue) {\n\t\tif (fRadix == radix_Hex) {\n\t\t\treturn Format.toHexString(aValue);\n\t\t} else {\n\t\t\tif (fType == type_Float) {\n\t\t\t\treturn \"\" + (double)aValue;\n\t\t\t} else {\n\t\t\t\treturn \"\" + aValue;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void AddTo(DrawingEditor editor, JPanel panel, ResourceBundleUtil labels) {\n JAttributeTextField<Double> strokeWidthField = new JAttributeTextField<Double>();\r\n strokeWidthField.setColumns(2);\r\n strokeWidthField.setToolTipText(labels.getString(\"attribute.strokeWidth.toolTipText\"));\r\n strokeWidthField.setHorizontalAlignment(JAttributeTextField.LEFT);\r\n strokeWidthField.putClientProperty(\"Palette.Component.segmentPosition\", \"first\");\r\n strokeWidthField.setUI((PaletteFormattedTextFieldUI) PaletteFormattedTextFieldUI.createUI(strokeWidthField));\r\n strokeWidthField.setFormatterFactory(JavaNumberFormatter.createFormatterFactory(0d, 100d, 1d));\r\n new FigureAttributeEditorHandler<Double>(STROKE_WIDTH, strokeWidthField, editor);\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.gridx = 0;\r\n gbc.gridy = 2;\r\n gbc.insets = new Insets(3, 0, 0, 0);\r\n gbc.fill = GridBagConstraints.BOTH;\r\n panel.add(strokeWidthField, gbc);\r\n\r\n JPopupButton strokeWidthPopupButton = new JPopupButton();\r\n JAttributeSlider strokeWidthSlider = new JAttributeSlider(\r\n JSlider.VERTICAL, 0, 50, 1);\r\n strokeWidthSlider.setUI((SliderUI) PaletteSliderUI.createUI(strokeWidthSlider));\r\n strokeWidthPopupButton.add(strokeWidthSlider);\r\n labels.configureToolBarButton(strokeWidthPopupButton, \"attribute.strokeWidth\");\r\n strokeWidthPopupButton.setUI((PaletteButtonUI) PaletteButtonUI.createUI(strokeWidthPopupButton));\r\n gbc = new GridBagConstraints();\r\n gbc.anchor = GridBagConstraints.FIRST_LINE_START;\r\n gbc.gridx = 1;\r\n gbc.insets = new Insets(3, 0, 0, 0);\r\n panel.add(strokeWidthPopupButton, gbc);\r\n new FigureAttributeEditorHandler<Double>(STROKE_WIDTH, strokeWidthSlider, editor);\r\n }", "protected void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n Graphics2D g2 = (Graphics2D)g;\r\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n int w = getWidth();\r\n int h = getHeight();\r\n // Draw ordinate.\r\n g2.draw(new Line2D.Double(Points, Points, Points, h-Points));\r\n // Draw abcissa.\r\n g2.draw(new Line2D.Double(Points, h-Points, w-Points, h-Points));\r\n // Draw labels.\r\n Font font = g2.getFont();\r\n FontRenderContext frc = g2.getFontRenderContext();\r\n LineMetrics lm = font.getLineMetrics(\"0\", frc);\r\n float sh = lm.getAscent() + lm.getDescent();\r\n // Ordinate label.\r\n String s = \"Strecke\";\r\n float sy = Points + ((h - 2*Points) - s.length()*sh)/2 + lm.getAscent();\r\n for(int i = 0; i < s.length(); i++) {\r\n String letter = String.valueOf(s.charAt(i));\r\n float sw = (float)font.getStringBounds(letter, frc).getWidth();\r\n float sx = (Points - sw)/2;\r\n g2.drawString(letter, sx, sy);\r\n sy += sh;\r\n }\r\n // Abcissa label.\r\n s = \"Datum\";\r\n sy = h - Points + (Points - sh)/2 + lm.getAscent();\r\n float sw = (float)font.getStringBounds(s, frc).getWidth();\r\n float sx = (w - sw)/2;\r\n g2.drawString(s, sx, sy);\r\n // Draw lines.\r\n double xInc = (double)(w - 2*Points)/(data.length-1);\r\n double scale = (double)(h - 2*Points)/getMax();\r\n g2.setPaint(Color.green.darker());\r\n for(int i = 0; i < data.length-1; i++) {\r\n double x1 = Points + i*xInc;\r\n double y1 = h - Points - scale*data[i];\r\n double x2 = Points + (i+1)*xInc;\r\n double y2 = h - Points - scale*data[i+1];\r\n g2.draw(new Line2D.Double(x1, y1, x2, y2));\r\n }\r\n // Mark data points.\r\n g2.setPaint(Color.red);\r\n for(int i = 0; i < data.length; i++) {\r\n double x = Points + i*xInc;\r\n double y = h - Points - scale*data[i];\r\n g2.fill(new Ellipse2D.Double(x-2, y-2, 4, 4));\r\n }\r\n }", "public void drawOnCanvas(Graphics2D g2d, int x, int y){ \n FontMetrics fm = g2d.getFontMetrics(this.axisFont);\n g2d.setColor(Color.BLACK);\n g2d.setFont(axisFont);\n if(this.isAxisVertical==false){\n g2d.drawLine(x, y, x + this.axisLength, y);\n for(int loop = 0; loop < this.axisMarks.size(); loop++){\n double pos = this.getPosition( this.axisMarks.get(loop));\n g2d.drawLine((int) (x+pos), y-this.axisTickMarkLength, (int) (x+pos), y);\n int fw = fm.stringWidth(this.axisMarksString.get(loop));\n int fh = fm.getHeight();\n g2d.drawString(this.axisMarksString.get(loop), (int) (x+pos-fw*0.5), y + (int) (fh )); \n //System.out.println(\"drawing tick mark on \" + (int) pos);\n }\n int titleOffset = fm.getHeight();\n Rectangle2D rect = this.axisTitle.getBounds(g2d);\n //this.axisTitle.setFontSize(24);\n g2d.drawString(this.axisTitle.getText().getIterator(), \n (int) (x + this.axisLength*0.5 - rect.getWidth()*0.5),\n y + titleOffset + fm.getHeight());\n } else{\n \n int maxStringLength = 0; \n g2d.drawLine(x, y, x, y-this.axisLength);\n for(int loop = 0; loop < this.axisMarks.size();loop++){\n double pos = this.getPosition(this.axisMarks.get(loop));\n g2d.drawLine(x, (int) (y-pos), x+this.axisTickMarkLength, (int) (y-pos));\n int fw = fm.stringWidth(this.axisMarksString.get(loop));\n int fh = fm.getHeight();\n int fww = (int) (fw - fh*0.2);\n if(fww> maxStringLength){\n maxStringLength = fww;\n }\n g2d.drawString(this.axisMarksString.get(loop), (int) (x - fw - fh*0.2), (int) (y-pos+fh*0.35));\n }\n AffineTransform orig = g2d.getTransform();\n// g2d.rotate(-Math.PI/2);\n g2d.rotate(-Math.PI/2);\n //int yoffset = \n Rectangle2D rect = this.axisTitle.getBounds( g2d);\n int xt = (int) -(y-this.axisLength*0.5+rect.getWidth()*0.5);\n \n //System.out.println(\"Drawing Y - title \"); \n g2d.drawString(this.axisTitle.getText().getIterator(), xt, (int) (x - maxStringLength - fm.getHeight()));\n g2d.setTransform(orig);\n }\n }", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "@Override public String toString() {\n return \"\" + \"Value=\" + Value; // NOI18N\n }", "private void drawHorizontalAxisLabels(Graphics2D g2) {\r\n double axisH = yPositionToPixel(originY);\r\n FontMetrics metrics = g2.getFontMetrics();\r\n \r\n// double startX = Math.floor((minX - originX) / majorX) * majorX;\r\n double startX = Math.floor(minX / majorX) * majorX;\r\n for (double x = startX; x < maxX + majorX; x += majorX) {\r\n if (((x - majorX / 2.0) < originX) &&\r\n ((x + majorX / 2.0) > originX)) {\r\n continue;\r\n }\r\n \r\n int position = (int) xPositionToPixel(x);\r\n g2.drawString(format(x), position,\r\n (int) axisH + metrics.getHeight());\r\n }\r\n }", "@Override\n public void draw(Graphics g) {\n g.setColor(this.getColor());\n g.drawLine(left, axisY, right, axisY);\n\n // Draw string to the left of the plot labeling the height of this axis\n g.setColor(LABEL_COLOR);\n g.setFont(LABEL_FONT);\n FontMetrics metric = g.getFontMetrics(LABEL_FONT);\n int width = metric.stringWidth(label);\n int height = metric.getAscent();\n int x = left - 8 - width;\n int y = axisY + (height / 2) - 1;\n g.drawString(label, x, y);\n }", "protected void paintLabel(Graphics g, int vNum){\r\n\r\n\t// Label Centering Information\r\n\tint xOffSet, yOffSet;\r\n\tif(vNum > 9) {\r\n\t xOffSet = -6;\r\n\t}\r\n\telse {\r\n\t xOffSet = -3;\r\n\t}\r\n\tyOffSet = 5;\r\n\r\n\tint rise = YCENTER - getYCoor(vNum);\r\n int run = XCENTER - getXCoor(vNum);\r\n\tg.drawString(Integer.toString(vNum), getXCoor(vNum)-(run/4) + xOffSet,\r\n\t\t getYCoor(vNum)-(rise/4) + yOffSet);\r\n }", "void setLabelString() {\n int pad = 5; // fudge to make up for variable width fonts\n float maxVal = Math.max(Math.abs(min), Math.abs(max));\n intDigits = Math.round((float) (Math.log(maxVal) / Math.log(10))) + pad;\n if (min < 0) {\n intDigits++; // add one for the '-'\n }\n // fractDigits is num digits of resolution for fraction. Use base 10 log\n // of scale, rounded up, + 2.\n fractDigits = (int) Math.ceil((Math.log(scale) / Math.log(10)));\n nf.setMinimumFractionDigits(fractDigits);\n nf.setMaximumFractionDigits(fractDigits);\n String value = nf.format(current);\n while (value.length() < (intDigits + fractDigits)) {\n value = value + \" \";\n }\n valueLabel.setText(value);\n }", "public JLabel getRendering(String column, Object value);", "@Override\n public void paint(Graphics g, ImageObserver observer) {\n if (font != null)\n g.setFont(font);\n g.setColor(color);\n g.drawString(lName + \": \" + value, x, y);\n }", "public void doubleTileValue() {\n value = value*2;\n label.setText(Integer.toString(value));\n if (value > 4) {\n label.setForeground(other);\n } \n }", "public DefaultValueAxisEditor(ValueAxis axis) {\n/* 125 */ super(axis);\n/* */ \n/* 127 */ this.autoRange = axis.isAutoRange();\n/* 128 */ this.minimumValue = axis.getLowerBound();\n/* 129 */ this.maximumValue = axis.getUpperBound();\n/* 130 */ this.autoTickUnitSelection = axis.isAutoTickUnitSelection();\n/* */ \n/* 132 */ this.gridPaintSample = new PaintSample(Color.blue);\n/* 133 */ this.gridStrokeSample = new StrokeSample(new BasicStroke(1.0F));\n/* */ \n/* 135 */ this.availableStrokeSamples = new StrokeSample[3];\n/* 136 */ this.availableStrokeSamples[0] = new StrokeSample(new BasicStroke(1.0F));\n/* */ \n/* 138 */ this.availableStrokeSamples[1] = new StrokeSample(new BasicStroke(2.0F));\n/* */ \n/* 140 */ this.availableStrokeSamples[2] = new StrokeSample(new BasicStroke(3.0F));\n/* */ \n/* */ \n/* 143 */ JTabbedPane other = getOtherTabs();\n/* */ \n/* 145 */ JPanel range = new JPanel(new LCBLayout(3));\n/* 146 */ range.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));\n/* */ \n/* 148 */ range.add(new JPanel());\n/* 149 */ this.autoRangeCheckBox = new JCheckBox(localizationResources.getString(\"Auto-adjust_range\"), this.autoRange);\n/* */ \n/* 151 */ this.autoRangeCheckBox.setActionCommand(\"AutoRangeOnOff\");\n/* 152 */ this.autoRangeCheckBox.addActionListener(this);\n/* 153 */ range.add(this.autoRangeCheckBox);\n/* 154 */ range.add(new JPanel());\n/* */ \n/* 156 */ range.add(new JLabel(localizationResources.getString(\"Minimum_range_value\")));\n/* */ \n/* 158 */ this.minimumRangeValue = new JTextField(Double.toString(this.minimumValue));\n/* */ \n/* 160 */ this.minimumRangeValue.setEnabled(!this.autoRange);\n/* 161 */ this.minimumRangeValue.setActionCommand(\"MinimumRange\");\n/* 162 */ this.minimumRangeValue.addActionListener(this);\n/* 163 */ this.minimumRangeValue.addFocusListener(this);\n/* 164 */ range.add(this.minimumRangeValue);\n/* 165 */ range.add(new JPanel());\n/* */ \n/* 167 */ range.add(new JLabel(localizationResources.getString(\"Maximum_range_value\")));\n/* */ \n/* 169 */ this.maximumRangeValue = new JTextField(Double.toString(this.maximumValue));\n/* */ \n/* 171 */ this.maximumRangeValue.setEnabled(!this.autoRange);\n/* 172 */ this.maximumRangeValue.setActionCommand(\"MaximumRange\");\n/* 173 */ this.maximumRangeValue.addActionListener(this);\n/* 174 */ this.maximumRangeValue.addFocusListener(this);\n/* 175 */ range.add(this.maximumRangeValue);\n/* 176 */ range.add(new JPanel());\n/* */ \n/* 178 */ other.add(localizationResources.getString(\"Range\"), range);\n/* */ \n/* 180 */ other.add(localizationResources.getString(\"TickUnit\"), \n/* 181 */ createTickUnitPanel());\n/* */ }", "public void setValue(Object value)\r\n {\r\n if (value instanceof ColoredData)\r\n {\r\n ColoredData cvalue = (ColoredData) value;\r\n setText(cvalue.getData().toString());\r\n if (cvalue.getFGColor() != null)\r\n {\r\n setForeground(cvalue.getFGColor());\r\n }\r\n if (cvalue.getBGColor() != null)\r\n {\r\n setBackground(cvalue.getBGColor());\r\n }\r\n }\r\n else if (value instanceof IconData)\r\n {\r\n IconData ivalue = (IconData) value;\r\n setIcon(ivalue.getIcon());\r\n setText(ivalue.getData().toString());\r\n }\r\n else if (value instanceof DataTrendTick)\r\n {\r\n DataTrendTick dValue = (DataTrendTick) value;\r\n ImageIcon icon = new ImageIcon(dValue.getImage());\r\n setIcon(icon);\r\n setHorizontalAlignment(CENTER);\r\n }\r\n else\r\n {\r\n super.setValue(value);\r\n setHorizontalAlignment(CENTER);\r\n }\r\n }", "@Override\n public void renderAxisLabels(Canvas c) {\n //\n if (!mYAxis.isEnabled() || !mYAxis.isDrawLabelsEnabled()) {\n return;\n }\n // 文字大小\n mAxisLabelPaint.setTextSize(mYAxis.getTextSize());\n // 文字颜色\n mAxisLabelPaint.setColor(mYAxis.getTextColor());\n mAxisLabelPaint.setTextAlign(Align.RIGHT);\n\n //\n float[] positions = getTransformedPositions();\n //\n float xoffset = mYAxis.getXOffset();\n float yoffset = Utils.calcTextHeight(mAxisLabelPaint, \"A\") / 2.5f + mYAxis.getYOffset();\n //\n float xPos = mViewPort.offsetLeft() - xoffset;\n\n drawYLabels(c, xPos, positions, yoffset);\n }", "public Drawable getValue(final PointData data, final Shape shape) {\n\t\t\tDrawable drawable = new AbstractDrawable() {\n\t\t\t\t/** Version id for serialization. */\n\t\t\t\tprivate static final long serialVersionUID = -8402945980942955359L;\n\n\t\t\t\tpublic void draw(DrawingContext context) {\n\t\t\t\t\t// TODO Implement rendering of value label\n\t\t\t\t}\n\t\t\t};\n\t\t\treturn drawable;\n\t\t}", "@Override\r\n public @Nullable String getFormattedText(RenderContext ctx)\r\n {\n String oorPrefix = getOORPrefix(ctx);\r\n String formattedValue = \"\";\r\n Object value = getDisplayValue(ctx);\r\n if (null != value)\r\n {\r\n formattedValue = super.getFormattedText(ctx);\r\n if (null == formattedValue)\r\n formattedValue = ConvertUtils.convert(value);\r\n }\r\n assert null != formattedValue;\r\n return oorPrefix + formattedValue;\r\n }", "protected\tvoid\t\trender(MiRenderer renderer)\n\t\t{\n\t\t// Draw background, valueDisplay and label\n\t\tsuper.render(renderer);\n\n\t\tMiBounds innerBounds = getInnerBounds(tmpBounds);\n\n\t\t// Move Strip over\n\t\trenderer.moveImageArea(innerBounds, scroll.x, scroll.y);\n\t\tscroll.zeroOut();\n\n\t\t// Draw ticks:\n\t\tfor (int i = 0; i < ticksToDrawX.size(); ++i)\n\t\t\t{\n\t\t\tticks.setCenterX(ticksToDrawX.elementAt(i));\n\t\t\tticks.setYmin(innerBounds.ymin);\n\t\t\tticks.setYmax(innerBounds.ymin + ticksToDrawHeight.elementAt(i));\n\t\t\tticks.render(renderer);\n\t\t\t}\n\t\tticksToDrawX.removeAllElements();\n\t\tticksToDrawHeight.removeAllElements();\n\t\t}", "@Override\n public java.lang.String getLabelToDisplay() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.LABEL_TO_DISPLAY_);\n return (java.lang.String)retnValue;\n }", "public interface IsDefaultTicks extends IsDefaultFontContainer {\n\n\t/**\n\t * Returns the major tick defaults.\n\t * \n\t * @return the major tick defaults.\n\t */\n\tIsDefaultMajor getMajor();\n\n\t/**\n\t * Returns the number formatting options.\n\t * \n\t * @return the number formatting options\n\t */\n\tIsDefaultNumberFormatOptions getNumberFormat();\n\n\t/**\n\t * If true, show tick marks\n\t * \n\t * @return if true, show tick marks.\n\t */\n\tboolean isDisplay();\n\n\t/**\n\t * If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what\n\t * \n\t * @return If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what.\n\t */\n\tboolean isAutoSkip();\n\n\t/**\n\t * Returns the padding between the ticks on the horizontal axis when autoSkip is enabled. Note: Only applicable to horizontal scales.\n\t * \n\t * @return padding between the ticks on the horizontal axis when autoSkip is enabled. Note: Only applicable to horizontal scales.\n\t */\n\tint getAutoSkipPadding();\n\n\t/**\n\t * If <code>true</code>, the defined minimum and maximum values should be presented as ticks even if they are not \"nice\".\n\t * \n\t * @return if <code>true</code>, the defined min and maximum values should be presented as ticks even if they are not \"nice\"\n\t */\n\tboolean isIncludeBounds();\n\n\t/**\n\t * Returns the distance in pixels to offset the label from the center point of the tick (in the y direction for the x axis, and the x direction for the y axis).<br>\n\t * Note: this can cause labels at the edges to be cropped by the edge of the canvas.\n\t * \n\t * @return the distance in pixels to offset the label from the center point of the tick (in the y direction for the x axis, and the x direction for the y axis).\n\t */\n\tint getLabelOffset();\n\n\t/**\n\t * Returns the number of ticks to generate.<br>\n\t * If specified, this overrides the automatic generation.\n\t * \n\t * @return the number of ticks to generate.<br>\n\t * If specified, this overrides the automatic generation\n\t */\n\tint getCount();\n\n\t/**\n\t * Returns the maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.\n\t * \n\t * @return maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.\n\t */\n\tint getMaxRotation();\n\n\t/**\n\t * Returns the minimum rotation for tick labels. Note: Only applicable to horizontal scales.\n\t * \n\t * @return minimum rotation for tick labels. Note: Only applicable to horizontal scales.\n\t */\n\tint getMinRotation();\n\n\t/**\n\t * Returns the flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.\n\t * \n\t * @return flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.\n\t */\n\tboolean isMirror();\n\n\t/**\n\t * Returns the padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this\n\t * applies in the vertical (Y) direction.\n\t * \n\t * @return padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies\n\t * in the vertical (Y) direction.\n\t */\n\tint getPadding();\n\n\t/**\n\t * Returns the maximum number of ticks and grid to show.\n\t * \n\t * @return maximum number of ticks and grid to show.\n\t */\n\tint getMaxTicksLimit();\n\n\t/**\n\t * Returns the user defined fixed step size for the scale.\n\t * \n\t * @return user defined fixed step size for the scale.\n\t */\n\tdouble getStepSize();\n\n\t/**\n\t * Returns the color of label backdrops.\n\t * \n\t * @return color of label backdrops.\n\t */\n\tString getBackdropColorAsString();\n\n\t/**\n\t * Returns the padding of label backdrop.\n\t * \n\t * @return padding of label backdrop.\n\t */\n\tIsDefaultPadding getBackdropPadding();\n\n\t/**\n\t * If true, draw a background behind the tick labels.\n\t * \n\t * @return if true, draw a background behind the tick labels.\n\t */\n\tboolean isShowLabelBackdrop();\n\n\t/**\n\t * Returns the property controls the ticks generation.\n\t * \n\t * @return property controls the ticks generation.\n\t */\n\tTickSource getSource();\n\n\t/**\n\t * If defined and stepSize is not specified, the step size will be rounded to this many decimal places.\n\t * \n\t * @return if defined and stepSize is not specified, the step size will be rounded to this many decimal places.\n\t */\n\tint getPrecision();\n\n\t/**\n\t * Returns z-index of tick layer. Useful when ticks are drawn on chart area.<br>\n\t * Values less than or equals to 0 are drawn under datasets, greater than 0 on top.\n\t * \n\t * @return z-index of tick layer. Useful when ticks are drawn on chart area.<br>\n\t * Values less than or equals to 0 are drawn under datasets, greater than 0 on top.\n\t */\n\tint getZ();\n\n\t/**\n\t * Returns the number of ticks to examine when deciding how many labels will fit.<br>\n\t * Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.\n\t * \n\t * @return the number of ticks to examine when deciding how many labels will fit.\n\t */\n\tint getSampleSize();\n\n\t/**\n\t * Returns the tick alignment along the axis.\n\t * \n\t * @return the tick alignment along the axis\n\t */\n\tTickAlign getAlign();\n\n\t/**\n\t * Returns the tick alignment perpendicular to the axis.\n\t * \n\t * @return the tick alignment perpendicular to the axis\n\t */\n\tCrossAlign getCrossAlign();\n\n\t/**\n\t * Returns the text stroke color as string.\n\t * \n\t * @return the text stroke color as string.\n\t */\n\tString getTextStrokeColorAsString();\n\n\t/**\n\t * Returns the text stroke width.\n\t * \n\t * @return the text stroke width.\n\t */\n\tint getTextStrokeWidth();\n\n}", "public abstract String getLabelText();", "void setShapeLabel(String Label);", "private void createLabels() {\n\n // Add status labels\n infoItem = new ToolItem(toolbar, SWT.SEPARATOR);\n infoComposite = new Composite(toolbar, SWT.NONE);\n infoItem.setControl(infoComposite);\n infoComposite.setLayout(null);\n\n labelAttribute = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelAttribute.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelAttribute.pack(); \n labelTransformations = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelTransformations.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelTransformations.pack();\n labelSelected = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelSelected.setText(Resources.getMessage(\"MainToolBar.31\")); //$NON-NLS-1$\n labelSelected.pack();\n labelApplied = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelApplied.setText(Resources.getMessage(\"MainToolBar.32\")); //$NON-NLS-1$\n labelApplied.pack();\n \n // Copy info to clip board on right-click\n Menu menu = new Menu(toolbar);\n MenuItem itemCopy = new MenuItem(menu, SWT.NONE);\n itemCopy.setText(Resources.getMessage(\"MainToolBar.42\")); //$NON-NLS-1$\n itemCopy.addSelectionListener(new SelectionAdapter(){\n public void widgetSelected(SelectionEvent arg0) {\n if (tooltip != null) {\n Clipboard clipboard = new Clipboard(toolbar.getDisplay());\n TextTransfer textTransfer = TextTransfer.getInstance();\n clipboard.setContents(new String[]{tooltip}, \n new Transfer[]{textTransfer});\n clipboard.dispose();\n }\n }\n });\n labelSelected.setMenu(menu);\n labelApplied.setMenu(menu);\n labelTransformations.setMenu(menu);\n \n // Add listener for layout\n toolbar.addControlListener(new ControlAdapter() {\n @Override\n public void controlResized(final ControlEvent arg0) {\n layout();\n }\n });\n }", "private String formatAxis(final boolean drawX) {\r\n final ScatterAxis axis = drawX ? scatterData.xAxis : scatterData.yAxis;\r\n final byte[] val = axis.getValue(focused);\r\n if(val.length == 0) return \"\";\r\n return scatterData.xAxis.numType == Kind.TEXT ? string(val) :\r\n formatString(toDouble(val), drawX);\r\n }", "@Override\n\tpublic void paintLabel(Graphics g) {\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.drawString(\"Oval\",x,y+65);\n\t}", "public void setXLabel(String _label);", "protected void drawLabel(Canvas canvas, String labelText, DefaultRenderer renderer,\r\n List<RectF> prevLabelsBounds, int centerX, int centerY, float shortRadius, float longRadius,\r\n float currentAngle, float angle, int left, int right, Paint paint) {\r\n if (renderer.isShowLabels()) {\r\n paint.setColor(renderer.getLabelsColor());\r\n double rAngle = Math.toRadians(90 - (currentAngle + angle / 2));\r\n double sinValue = Math.sin(rAngle);\r\n double cosValue = Math.cos(rAngle);\r\n int x1 = Math.round(centerX + (float) (shortRadius * sinValue));\r\n int y1 = Math.round(centerY + (float) (shortRadius * cosValue));\r\n int x2 = Math.round(centerX + (float) (longRadius * sinValue));\r\n int y2 = Math.round(centerY + (float) (longRadius * cosValue));\r\n\r\n float size = renderer.getLabelsTextSize();\r\n float extra = Math.max(size / 2, 10);\r\n paint.setTextAlign(Align.LEFT);\r\n if (x1 > x2) {\r\n extra = -extra;\r\n paint.setTextAlign(Align.RIGHT);\r\n }\r\n float xLabel = x2 + extra;\r\n float yLabel = y2;\r\n float width = right - xLabel;\r\n if (x1 > x2) {\r\n width = xLabel - left;\r\n }\r\n labelText = getFitText(labelText, width, paint);\r\n float widthLabel = paint.measureText(labelText);\r\n boolean okBounds = false;\r\n while (!okBounds) {\r\n boolean intersects = false;\r\n int length = prevLabelsBounds.size();\r\n for (int j = 0; j < length && !intersects; j++) {\r\n RectF prevLabelBounds = prevLabelsBounds.get(j);\r\n if (prevLabelBounds.intersects(xLabel, yLabel, xLabel + widthLabel, yLabel + size)) {\r\n intersects = true;\r\n yLabel = Math.max(yLabel, prevLabelBounds.bottom);\r\n }\r\n }\r\n okBounds = !intersects;\r\n }\r\n\r\n y2 = (int) (yLabel - size / 2);\r\n canvas.drawLine(x1, y1, x2, y2, paint);\r\n canvas.drawLine(x2, y2, x2 + extra, y2, paint);\r\n canvas.drawText(labelText, xLabel, yLabel, paint);\r\n prevLabelsBounds.add(new RectF(xLabel, yLabel, xLabel + widthLabel, yLabel + size));\r\n }\r\n }", "String getXAxisLabel();", "@UiConstructor\n public ValueLabel(Renderer<? super T> renderer) {\n super(true);\n this.renderer = renderer;\n }", "@Test\n public void test08() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.clearDomainMarkers(44);\n BasicStroke basicStroke0 = (BasicStroke)categoryPlot0.getRangeGridlineStroke();\n ValueAxis[] valueAxisArray0 = new ValueAxis[6];\n ThermometerPlot thermometerPlot0 = new ThermometerPlot();\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[0] = (ValueAxis) numberAxis0;\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[1] = (ValueAxis) logarithmicAxis0;\n LogAxis logAxis0 = new LogAxis();\n valueAxisArray0[2] = (ValueAxis) logAxis0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, \"o>v!{PNMe{\");\n valueAxisArray0[3] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Null 'marker' not permitted.\");\n valueAxisArray0[4] = (ValueAxis) numberAxis3D0;\n NumberAxis numberAxis1 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[5] = (ValueAxis) numberAxis1;\n XYPlot xYPlot0 = new XYPlot();\n RectangleInsets rectangleInsets0 = xYPlot0.getAxisOffset();\n cyclicNumberAxis0.setTickLabelInsets(rectangleInsets0);\n categoryPlot0.setRangeAxes(valueAxisArray0);\n categoryPlot0.setRangeCrosshairValue(3583.22971, false);\n LegendItemCollection legendItemCollection0 = categoryPlot0.getFixedLegendItems();\n float[] floatArray0 = new float[2];\n floatArray0[0] = (float) 44;\n floatArray0[1] = (float) 44;\n Font font0 = AbstractRenderer.DEFAULT_VALUE_LABEL_FONT;\n }", "java.lang.String getLabel();", "private void drawVerticalAxisLabels(Graphics2D g2) {\r\n double axisV = xPositionToPixel(originX);\r\n\r\n// double startY = Math.floor((minY - originY) / majorY) * majorY;\r\n double startY = Math.floor(minY / majorY) * majorY;\r\n for (double y = startY; y < maxY + majorY; y += majorY) {\r\n if (((y - majorY / 2.0) < originY) &&\r\n ((y + majorY / 2.0) > originY)) {\r\n continue;\r\n }\r\n \r\n int position = (int) yPositionToPixel(y);\r\n g2.drawString(format(y), (int) axisV + 5, position);\r\n }\r\n }", "double getLabel();", "public String getLabelText();", "void drawCurrentTick();", "void drawLabel() {\n\t\tfloat gavityValue = (int) (radius * 100);\n\t\tgavityValue /= 100;\n\t\tString label = \"gravityField \" + id + \"\\n gravity: \" + gavityValue;\n\t\tfloat labelWidth = gg.textWidth(label);\n\t\tfloat textHeight = 8;\n\n\t\tgg.pushMatrix();\n\t\tgg.translate(x, y, radius + textHeight * 3);\n\t\t// rotateZ(-rotZ/2);\n\t\tgg.pushMatrix();\n\t\tgg.rotateX(-HALF_PI);\n\t\tgg.fill(0);\n\t\tgg.rect(-labelWidth / 2 - 2, -textHeight - 1.5f, labelWidth + 4,\n\t\t\t\ttextHeight * 2 + 6);\n\t\tgg.translate(0, 0, .1f);\n\t\tgg.fill(255);\n\t\tgg.textSize(textHeight);\n\t\tgg.textAlign(CENTER);\n\t\tgg.text(label, 0, 0, 0);\n\t\tgg.popMatrix();\n\n\t\tgg.rotateZ(PI);\n\t\tgg.pushMatrix();\n\t\tgg.rotateX(-HALF_PI);\n\t\tgg.translate(0, 0, .1f);\n\t\tgg.fill(255);\n\t\tgg.textSize(textHeight);\n\t\tgg.textAlign(CENTER);\n\t\tgg.text(label, 0, 0, 0);\n\t\tgg.popMatrix();\n\t\tgg.popMatrix();\n\n\t}", "public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) {\n/* 1855 */ if (!isVisible()) {\n/* 1856 */ AxisState state = new AxisState(cursor);\n/* */ \n/* */ \n/* 1859 */ List ticks = refreshTicks(g2, state, dataArea, edge);\n/* 1860 */ state.setTicks(ticks);\n/* 1861 */ return state;\n/* */ } \n/* */ \n/* */ \n/* 1865 */ AxisState state = drawTickMarksAndLabels(g2, cursor, plotArea, dataArea, edge);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1870 */ if (getAttributedLabel() != null) {\n/* 1871 */ state = drawAttributedLabel(getAttributedLabel(), g2, plotArea, dataArea, edge, state);\n/* */ }\n/* */ else {\n/* */ \n/* 1875 */ state = drawLabel(getLabel(), g2, plotArea, dataArea, edge, state);\n/* */ } \n/* 1877 */ createAndAddEntity(cursor, state, dataArea, edge, plotState);\n/* 1878 */ return state;\n/* */ }", "public void setYLabel(String _label);", "public static void displayDataLine( String name, double value, char lineChar )\r\n {\n }", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\n\t\tLabel_Selected((JLabel) e.getComponent());\n\t\t\n\t\tnow_x = e.getXOnScreen() - e.getComponent().getX();\n\t\tnow_y = e.getYOnScreen() - e.getComponent().getY();\n\t\tnow_w = e.getComponent().getWidth();\n\t\tnow_h = e.getComponent().getHeight();\n\t\tnow_L = e.getComponent().getX()+e.getComponent().getWidth();\n\t\tnow_D = e.getComponent().getY()+e.getComponent().getHeight();\n\t\t\n\t\tif(e.getX() > e.getComponent().getWidth()-5 && e.getX() < e.getComponent().getWidth() + 5) {\n\t\t\tnow_X = 'R';\n\t\t} else if(e.getX() > -5 && e.getX() < 5) {\n\t\t\tnow_X = 'L';\n\t\t}\n\t\tif(e.getY() > e.getComponent().getHeight()-5 && e.getY() < e.getComponent().getHeight() + 5) {\n\t\t\tnow_Y = 'D';\n\t\t} else if(e.getY() > -5 && e.getY() < 5) {\n\t\t\tnow_Y = 'U';\n\t\t}\n\t\t\n\t\tText_Set();\n\t}", "public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) {\n/* */ double x1;\n/* 228 */ if (!getItemVisible(row, column)) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 234 */ if (!(dataset instanceof StatisticalCategoryDataset)) {\n/* 235 */ super.drawItem(g2, state, dataArea, plot, domainAxis, rangeAxis, dataset, row, column, pass);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 240 */ int visibleRow = state.getVisibleSeriesIndex(row);\n/* 241 */ if (visibleRow < 0) {\n/* */ return;\n/* */ }\n/* 244 */ int visibleRowCount = state.getVisibleSeriesCount();\n/* */ \n/* 246 */ StatisticalCategoryDataset statDataset = (StatisticalCategoryDataset)dataset;\n/* */ \n/* 248 */ Number meanValue = statDataset.getMeanValue(row, column);\n/* 249 */ if (meanValue == null) {\n/* */ return;\n/* */ }\n/* 252 */ PlotOrientation orientation = plot.getOrientation();\n/* */ \n/* */ \n/* */ \n/* 256 */ if (getUseSeriesOffset()) {\n/* 257 */ x1 = domainAxis.getCategorySeriesMiddle(column, dataset\n/* 258 */ .getColumnCount(), visibleRow, visibleRowCount, \n/* */ \n/* 260 */ getItemMargin(), dataArea, plot.getDomainAxisEdge());\n/* */ } else {\n/* */ \n/* 263 */ x1 = domainAxis.getCategoryMiddle(column, getColumnCount(), dataArea, plot\n/* 264 */ .getDomainAxisEdge());\n/* */ } \n/* 266 */ double y1 = rangeAxis.valueToJava2D(meanValue.doubleValue(), dataArea, plot\n/* 267 */ .getRangeAxisEdge());\n/* */ \n/* */ \n/* */ \n/* */ \n/* 272 */ Number sdv = statDataset.getStdDevValue(row, column);\n/* 273 */ if (pass == 1 && sdv != null) {\n/* */ double lowVal, highVal;\n/* 275 */ RectangleEdge yAxisLocation = plot.getRangeAxisEdge();\n/* 276 */ double valueDelta = sdv.doubleValue();\n/* */ \n/* 278 */ if (meanValue.doubleValue() + valueDelta > rangeAxis\n/* 279 */ .getRange().getUpperBound()) {\n/* 280 */ highVal = rangeAxis.valueToJava2D(rangeAxis\n/* 281 */ .getRange().getUpperBound(), dataArea, yAxisLocation);\n/* */ }\n/* */ else {\n/* */ \n/* 285 */ highVal = rangeAxis.valueToJava2D(meanValue.doubleValue() + valueDelta, dataArea, yAxisLocation);\n/* */ } \n/* */ \n/* */ \n/* 289 */ if (meanValue.doubleValue() + valueDelta < rangeAxis\n/* 290 */ .getRange().getLowerBound()) {\n/* 291 */ lowVal = rangeAxis.valueToJava2D(rangeAxis\n/* 292 */ .getRange().getLowerBound(), dataArea, yAxisLocation);\n/* */ }\n/* */ else {\n/* */ \n/* 296 */ lowVal = rangeAxis.valueToJava2D(meanValue.doubleValue() - valueDelta, dataArea, yAxisLocation);\n/* */ } \n/* */ \n/* */ \n/* 300 */ if (this.errorIndicatorPaint != null) {\n/* 301 */ g2.setPaint(this.errorIndicatorPaint);\n/* */ } else {\n/* */ \n/* 304 */ g2.setPaint(getItemPaint(row, column));\n/* */ } \n/* 306 */ if (this.errorIndicatorStroke != null) {\n/* 307 */ g2.setStroke(this.errorIndicatorStroke);\n/* */ } else {\n/* */ \n/* 310 */ g2.setStroke(getItemOutlineStroke(row, column));\n/* */ } \n/* 312 */ Line2D line = new Line2D.Double();\n/* 313 */ if (orientation == PlotOrientation.HORIZONTAL) {\n/* 314 */ line.setLine(lowVal, x1, highVal, x1);\n/* 315 */ g2.draw(line);\n/* 316 */ line.setLine(lowVal, x1 - 5.0D, lowVal, x1 + 5.0D);\n/* 317 */ g2.draw(line);\n/* 318 */ line.setLine(highVal, x1 - 5.0D, highVal, x1 + 5.0D);\n/* 319 */ g2.draw(line);\n/* */ } else {\n/* */ \n/* 322 */ line.setLine(x1, lowVal, x1, highVal);\n/* 323 */ g2.draw(line);\n/* 324 */ line.setLine(x1 - 5.0D, highVal, x1 + 5.0D, highVal);\n/* 325 */ g2.draw(line);\n/* 326 */ line.setLine(x1 - 5.0D, lowVal, x1 + 5.0D, lowVal);\n/* 327 */ g2.draw(line);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 332 */ Shape hotspot = null;\n/* 333 */ if (pass == 1 && getItemShapeVisible(row, column)) {\n/* 334 */ Shape shape = getItemShape(row, column);\n/* 335 */ if (orientation == PlotOrientation.HORIZONTAL) {\n/* 336 */ shape = ShapeUtilities.createTranslatedShape(shape, y1, x1);\n/* */ }\n/* 338 */ else if (orientation == PlotOrientation.VERTICAL) {\n/* 339 */ shape = ShapeUtilities.createTranslatedShape(shape, x1, y1);\n/* */ } \n/* 341 */ hotspot = shape;\n/* */ \n/* 343 */ if (getItemShapeFilled(row, column)) {\n/* 344 */ if (getUseFillPaint()) {\n/* 345 */ g2.setPaint(getItemFillPaint(row, column));\n/* */ } else {\n/* */ \n/* 348 */ g2.setPaint(getItemPaint(row, column));\n/* */ } \n/* 350 */ g2.fill(shape);\n/* */ } \n/* 352 */ if (getDrawOutlines()) {\n/* 353 */ if (getUseOutlinePaint()) {\n/* 354 */ g2.setPaint(getItemOutlinePaint(row, column));\n/* */ } else {\n/* */ \n/* 357 */ g2.setPaint(getItemPaint(row, column));\n/* */ } \n/* 359 */ g2.setStroke(getItemOutlineStroke(row, column));\n/* 360 */ g2.draw(shape);\n/* */ } \n/* */ \n/* 363 */ if (isItemLabelVisible(row, column)) {\n/* 364 */ if (orientation == PlotOrientation.HORIZONTAL) {\n/* 365 */ drawItemLabel(g2, orientation, dataset, row, column, y1, x1, \n/* 366 */ (meanValue.doubleValue() < 0.0D));\n/* */ }\n/* 368 */ else if (orientation == PlotOrientation.VERTICAL) {\n/* 369 */ drawItemLabel(g2, orientation, dataset, row, column, x1, y1, \n/* 370 */ (meanValue.doubleValue() < 0.0D));\n/* */ } \n/* */ }\n/* */ } \n/* */ \n/* 375 */ if (pass == 0 && getItemLineVisible(row, column) && \n/* 376 */ column != 0) {\n/* */ \n/* 378 */ Number previousValue = statDataset.getValue(row, column - 1);\n/* 379 */ if (previousValue != null) {\n/* */ \n/* */ \n/* 382 */ double x0, previous = previousValue.doubleValue();\n/* */ \n/* 384 */ if (getUseSeriesOffset()) {\n/* 385 */ x0 = domainAxis.getCategorySeriesMiddle(column - 1, dataset\n/* 386 */ .getColumnCount(), visibleRow, visibleRowCount, \n/* */ \n/* 388 */ getItemMargin(), dataArea, plot\n/* 389 */ .getDomainAxisEdge());\n/* */ } else {\n/* */ \n/* 392 */ x0 = domainAxis.getCategoryMiddle(column - 1, \n/* 393 */ getColumnCount(), dataArea, plot\n/* 394 */ .getDomainAxisEdge());\n/* */ } \n/* 396 */ double y0 = rangeAxis.valueToJava2D(previous, dataArea, plot\n/* 397 */ .getRangeAxisEdge());\n/* */ \n/* 399 */ Line2D line = null;\n/* 400 */ if (orientation == PlotOrientation.HORIZONTAL) {\n/* 401 */ line = new Line2D.Double(y0, x0, y1, x1);\n/* */ }\n/* 403 */ else if (orientation == PlotOrientation.VERTICAL) {\n/* 404 */ line = new Line2D.Double(x0, y0, x1, y1);\n/* */ } \n/* 406 */ g2.setPaint(getItemPaint(row, column));\n/* 407 */ g2.setStroke(getItemStroke(row, column));\n/* 408 */ g2.draw(line);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 413 */ if (pass == 1) {\n/* */ \n/* 415 */ EntityCollection entities = state.getEntityCollection();\n/* 416 */ if (entities != null) {\n/* 417 */ addEntity(entities, hotspot, dataset, row, column, x1, y1);\n/* */ }\n/* */ } \n/* */ }", "@Test\n public void test32() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n Font font0 = categoryAxis0.getTickLabelFont();\n LongNeedle longNeedle0 = new LongNeedle();\n AffineTransform affineTransform0 = longNeedle0.getTransform();\n Font font1 = font0.deriveFont(76, affineTransform0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n JFreeChart jFreeChart0 = new JFreeChart(\"The renderer has changed and I don't know what to do!\", font1, (Plot) combinedRangeCategoryPlot0, false);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot1 = (CombinedRangeCategoryPlot)jFreeChart0.getCategoryPlot();\n AxisLocation axisLocation0 = AxisLocation.TOP_OR_RIGHT;\n AxisLocation axisLocation1 = axisLocation0.getOpposite();\n AxisLocation axisLocation2 = axisLocation0.getOpposite();\n List list0 = combinedRangeCategoryPlot1.getCategoriesForAxis(categoryAxis0);\n jFreeChart0.setSubtitles(list0);\n combinedRangeCategoryPlot1.setRangeAxisLocation(axisLocation1);\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n rectangle2D_Double0.setRect(483.0, 483.0, 483.0, 483.0);\n }", "private void drawScalesAndLabels(Canvas canvas) {\n Paint.FontMetrics fontMetrics = mTextPaint.getFontMetrics();\n float mTextWidth;\n float mTextHeight = fontMetrics.bottom;\n\n canvas.drawLine(paddingLeft, scaleLinePosition,\n paddingLeft + contentWidth, scaleLinePosition, scaleLinePaint);\n\n float scaleMarginWidth = contentWidth * 1.0f / 24;\n float x = 0;\n for (int i = 0; i <= 24; i++) {\n x = paddingLeft + scaleMarginWidth * i;\n\n if ((i % 2) == 1) {\n //draw scale line\n canvas.drawLine(x, scaleLinePosition, x, scaleLinePosition + mTimeScaleHeight, scaleLinePaint);\n //draw time label\n mTextWidth = mTextPaint.measureText(hourLabels[i]);\n canvas.drawText(hourLabels[i], x - mTextWidth / 2, paddingTop + contentHeight - mTextHeight, mTextPaint);\n } else {\n //draw scale line\n canvas.drawLine(x, scaleLinePosition, x, scaleLinePosition + mTimeScaleHeight * 2, scaleLinePaint);\n }\n }\n }", "public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}", "@Override\n public String getToolTipText(MouseEvent e)\n {\n Point p = e.getPoint();\n int rowIndex = rowAtPoint(p);\n int colIndex = columnAtPoint(p);\n Object cellData = getValueAt(rowIndex, colIndex);\n\n if (cellData instanceof Color)\n {\n Color color = (Color)cellData;\n return \"RGB Color value: \" + color.getRed() + \", \" + color.getGreen() + \", \" + color.getBlue();\n }\n else\n return cellData.toString();\n }", "JFreeChart generateDot();", "protected ValueLabel(Element element, Renderer<? super T> renderer) {\n super(element);\n this.renderer = renderer;\n }", "private void formatYAxis() {\n ((ValueAxis<Double>) performanceGraph.getYAxis()).setTickLabelFormatter(new StringConverter<Double>() {\n @Override\n public String toString(Double object) {\n if (currMode == Mode.GROSS_PROFITS) {\n if (object < 0) {\n return \"-$\" + Math.abs(object);\n } else {\n return \"$\" + object;\n }\n } else if (currMode == Mode.PERCENT_RETURN) {\n return object + \"%\";\n } else {\n return \"err\";\n }\n }\n\n @Override\n public Double fromString(String string) {\n return null;\n }\n });\n }", "public void cbDisplayPointText()\n {\n \tif (!m_white.wasSuccess()) \n \t return;\n \n \tString str = m_white.getResponse();\n Vector<Pair<String, String> > pairs = \n StringUtils.parseStringPairList(str);\n \n m_guiboard.clearMarks();\n \n for (int i=0; i<pairs.size(); i++) {\n \t HexPoint point = HexPoint.get(pairs.get(i).first);\n String value = pairs.get(i).second;\n m_guiboard.setText(point, value);\n \t}\n \tm_guiboard.repaint();\n }", "private void addTextLabel(String key, Double location, String text) {\r\n if (isXKey(key)) {\r\n mRenderer.addXTextLabel(location, text);\r\n } else {\r\n int scaleIndex = getScaleIndex(key);\r\n if (mRenderer.getYAxisAlign(scaleIndex) == Align.RIGHT) {\r\n text = \" \" + text;\r\n }\r\n mRenderer.addYTextLabel(location, text, scaleIndex);\r\n }\r\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n // Set label (X)\n if (mode == 0) tvXContent.setText(Utils.formatNumber(e.getX(), 0, false));\n else if (mode == 1) tvXContent.setText(((PieEntry) e).getLabel());\n else if (mode == 2) tvXContent.setText(e.getData().toString());\n else if (mode == 3) tvXContent.setText(Utils.formatNumber(e.getX(), 0, false));\n\n // Set value (Y)\n String yText = \"\";\n if (mode == 0 || mode == 1) {\n yText = \"Animes Watched: \" + String.format(Locale.getDefault(), \"<b>%.0f</b>\", e.getY());\n } else if (mode == 2) {\n yText = \"Average Rating: \" + String.format(Locale.getDefault(), \"<b>%.2f</b>\", e.getY());\n } else if (mode == 3) { // Show count for each genre\n tvYContent.setSingleLine(false);\n int i = 0;\n for (String genre: (Set<String>) e.getData()) {\n int genreCount = (int) ((BarEntry) e).getYVals()[i++];\n if (genreCount > 0) yText += genre + \": <b>\" + genreCount + \"</b><br>\";\n }\n if (yText.length() > 0) yText = yText.substring(0, yText.length() - 4); // Removes the last newline\n }\n tvYContent.setText(Html.fromHtml(yText, Html.FROM_HTML_MODE_LEGACY));\n super.refreshContent(e, highlight);\n }", "JFreeChart generateBox();", "public void paintValue(Graphics pGraphics, Rectangle pBox) {\n\t\n\t}", "@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n this.getY() + ((this.getScaleY() * this.getHeight() - valueLabel.getScaleY() * valueLabel.getHeight()) / 2) );\n }", "@Override\n public void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n if (e == null)\n return;\n\n dataset_line.setDrawValues(true);\n dataset_line2.setDrawValues(true);\n PlaceholderFragment.toastLineChart(getContext(),arrayListKonsum.get(e.getXIndex()));\n //Toast.makeText(getActivity(), arrayListKonsum.get(e.getXIndex()), Toast.LENGTH_SHORT).show();\n }", "@Test\n public void test45() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(4.0, 4.0);\n Point2D.Double point2D_Double1 = (Point2D.Double)point2D_Double0.clone();\n point2D_Double0.y = 4.0;\n point2D_Double0.x = 20000.0;\n point2D_Double0.y = 1687.334;\n Point2D.Double point2D_Double2 = (Point2D.Double)point2D_Double0.clone();\n double double0 = point2D_Double0.getY();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.setRangeGridlinesVisible(true);\n String string0 = combinedRangeCategoryPlot0.getPlotType();\n combinedRangeCategoryPlot0.setWeight(0);\n combinedRangeCategoryPlot0.setRangeCrosshairValue((-614.1172206), true);\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Category Plot\");\n combinedRangeCategoryPlot0.setRangeAxis(3, (ValueAxis) numberAxis3D0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n Range range0 = combinedRangeCategoryPlot0.getDataRange(numberAxis3D0);\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n combinedRangeCategoryPlot0.handleClick(3, 0, plotRenderingInfo0);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n double double1 = rectangle2D_Double0.getWidth();\n CategoryPointerAnnotation categoryPointerAnnotation0 = null;\n try {\n categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"Category Plot\", (Comparable) null, 4098.48714, 20000.0);\n } catch(IllegalArgumentException e) {\n //\n // Null 'category' argument.\n //\n assertThrownBy(\"org.jfree.chart.annotations.CategoryTextAnnotation\", e);\n }\n }", "void addObjLabel(ObjLabel objLabel) {\n\n //make sure the Object gets notified of mouse movements\n objCanvas.addEventHandler(MouseEvent.MOUSE_MOVED, objLabel);\n objCanvas.drawLabel(objLabel);\n }", "public Label(NetworkTable nTable, int x, int y, Color color,\n Font font, double value) {\n super(nTable, \"\", x, y, 0, 0);\n this.color = color;\n this.font = font;\n this.value = value;\n lName = \"\";\n }", "public void createLabels()\n {\n title = new JLabel(\"Game Over\");\n title.setForeground(Color.RED);\n title.setFont(new Font(title.getFont().getName(), Font.PLAIN, 42));\n title.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n roundLabel = new JLabel(\"CPU was infected on round \"+roundLost);\n roundLabel.setForeground(Color.RED);\n roundLabel.setFont(new Font(title.getFont().getName(), Font.PLAIN, 18));\n roundLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "public String generateToolTip(ContourDataset data, int item) {\n/* */ String xString;\n/* 83 */ double x = data.getXValue(0, item);\n/* 84 */ double y = data.getYValue(0, item);\n/* 85 */ double z = data.getZValue(0, item);\n/* */ \n/* */ \n/* 88 */ if (data.isDateAxis(0)) {\n/* 89 */ SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss\");\n/* */ \n/* 91 */ StringBuffer strbuf = new StringBuffer();\n/* 92 */ strbuf = formatter.format(new Date((long)x), strbuf, new FieldPosition(false));\n/* */ \n/* */ \n/* 95 */ xString = strbuf.toString();\n/* */ } else {\n/* */ \n/* 98 */ xString = this.valueForm.format(x);\n/* */ } \n/* 100 */ if (!Double.isNaN(z)) {\n/* 101 */ return \"X: \" + xString + \", Y: \" + this.valueForm\n/* 102 */ .format(y) + \", Z: \" + this.valueForm\n/* 103 */ .format(z);\n/* */ }\n/* */ \n/* 106 */ return \"X: \" + xString + \", Y: \" + this.valueForm\n/* 107 */ .format(y) + \", Z: no data\";\n/* */ }", "@Override\n public void renderLabels(final PoseStack mat, final int mouseX, final int mouseY)\n {\n int x = 83;\n int y = 20;\n parent.font.draw(mat, I18n.get(\"pokemob.gui.berry\"), x, y, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.store\"), x, y + 10, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.face\"), x, y + 20, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.empty\"), x, y + 30, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.face\"), x, y + 40, 4210752);\n y -= 5;\n\n if (this.berry.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.berry\"), x, y);\n }\n if (this.storage.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.storage\"), x, y);\n }\n if (this.storageFace.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.storageFace\"), x, y);\n }\n if (this.empty.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.empty\"), x, y);\n }\n if (this.emptyFace.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.emptyFace\"), x, y);\n }\n\n super.renderLabels(mat, mouseX, mouseY);\n }", "@Test\n public void test27() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(0.0, 0.0);\n String string0 = point2D_Double0.toString();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n SortOrder sortOrder0 = combinedDomainCategoryPlot0.getRowRenderingOrder();\n combinedDomainCategoryPlot0.setRowRenderingOrder(sortOrder0);\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer(2);\n combinedDomainCategoryPlot0.mapDatasetToRangeAxis(2, 0);\n Layer layer0 = Layer.FOREGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getDomainMarkers(0, layer0);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeCrosshairVisible();\n combinedDomainCategoryPlot0.mapDatasetToRangeAxis(0, 3);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedDomainCategoryPlot0.zoomRangeAxes(4.0, plotRenderingInfo0, (Point2D) point2D_Double0, true);\n StandardXYZURLGenerator standardXYZURLGenerator0 = new StandardXYZURLGenerator();\n XYStepRenderer xYStepRenderer0 = new XYStepRenderer((XYToolTipGenerator) null, (XYURLGenerator) standardXYZURLGenerator0);\n XYPlot xYPlot0 = xYStepRenderer0.getPlot();\n }", "private static String formatWithHexValue(Object constantValue, String hexValue) {\n\t\treturn Messages.format(JavaHoverMessages.JavadocHover_constantValue_hexValue, new String[] { constantValue.toString(), hexValue });\n\t}", "@Override public String getToolTipText(MouseEvent evt)\n{\n String rslt = null;\n\n int pos = evt.getX();\n int minpos = getX() + 16;\n int maxpos = getX() + getWidth() - 16;\n double relpos = (pos - minpos);\n if (relpos < 0) relpos = 0;\n relpos /= (maxpos - minpos);\n double timer = getMinimum() + relpos * (getMaximum() - getMinimum()) + 0.5;\n long time = (long) timer;\n if (time > getMaximum()) time = getMaximum();\n\n BicexEvaluationContext ctx = for_bubble.getExecution().getCurrentContext();\n if (ctx == null) return null;\n\n BicexValue bv = ctx.getValues().get(\"*LINE*\");\n List<Integer> times = bv.getTimeChanges();\n String line = null;\n for (Integer t : times) {\n if (t <= time) {\n\t line = bv.getStringValue(t+1);\n\t}\n else break;\n }\n if (line != null) rslt = \"Line \" + line;\n\n if (ctx != null) {\n String what = \"In\";\n if (ctx.getInnerContexts() != null) {\n\t for (BicexEvaluationContext sctx : ctx.getInnerContexts()) {\n\t if (sctx.getStartTime() <= time && sctx.getEndTime() >= time) {\n\t ctx = sctx;\n\t what = \"Calling\";\n\t break;\n\t }\n\t }\n }\n if (rslt == null) rslt = what + \" \" + ctx.getMethod();\n else rslt += \" \" + what + \" \" + ctx.getShortName();\n }\n\n return rslt;\n}", "@Override\n public String getFormattedValue(float value, AxisBase axis) {\n return mValues.get((int) value);\n }", "protected void setValue(Object v) {\n super.setValue(v);\n\n setToolTipText(\"Hi There!!!!\");\n\n }", "private void drawToolTip(List list, int posX, int posY, FontRenderer fr)\r\n {\r\n if (!list.isEmpty())\r\n {\r\n GL11.glDisable(GL12.GL_RESCALE_NORMAL);\r\n RenderHelper.disableStandardItemLighting();\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n GL11.glDisable(GL11.GL_DEPTH_TEST);\r\n int k = 0;\r\n Iterator iterator = list.iterator();\r\n\r\n while (iterator.hasNext())\r\n {\r\n String s = (String)iterator.next();\r\n int l = fr.getStringWidth(s);\r\n\r\n if (l > k)\r\n {\r\n k = l;\r\n }\r\n }\r\n\r\n int j2 = posX + 12;\r\n int k2 = posY - 12;\r\n int i1 = 8;\r\n\r\n if (list.size() > 1)\r\n {\r\n i1 += 2 + (list.size() - 1) * 10;\r\n }\r\n\r\n if (j2 + k > this.width)\r\n {\r\n j2 -= 28 + k;\r\n }\r\n\r\n if (k2 + i1 + 6 > this.height)\r\n {\r\n k2 = this.height - i1 - 6;\r\n }\r\n\r\n this.zLevel = 300.0F;\r\n _itemRender.zLevel = 300.0F;\r\n int j1 = -267386864;\r\n this.drawGradientRect(j2 - 3, k2 - 4, j2 + k + 3, k2 - 3, j1, j1);\r\n this.drawGradientRect(j2 - 3, k2 + i1 + 3, j2 + k + 3, k2 + i1 + 4, j1, j1);\r\n this.drawGradientRect(j2 - 3, k2 - 3, j2 + k + 3, k2 + i1 + 3, j1, j1);\r\n this.drawGradientRect(j2 - 4, k2 - 3, j2 - 3, k2 + i1 + 3, j1, j1);\r\n this.drawGradientRect(j2 + k + 3, k2 - 3, j2 + k + 4, k2 + i1 + 3, j1, j1);\r\n int k1 = 1347420415;\r\n int l1 = (k1 & 16711422) >> 1 | k1 & -16777216;\r\n this.drawGradientRect(j2 - 3, k2 - 3 + 1, j2 - 3 + 1, k2 + i1 + 3 - 1, k1, l1);\r\n this.drawGradientRect(j2 + k + 2, k2 - 3 + 1, j2 + k + 3, k2 + i1 + 3 - 1, k1, l1);\r\n this.drawGradientRect(j2 - 3, k2 - 3, j2 + k + 3, k2 - 3 + 1, k1, k1);\r\n this.drawGradientRect(j2 - 3, k2 + i1 + 2, j2 + k + 3, k2 + i1 + 3, l1, l1);\r\n\r\n for (int i2 = 0; i2 < list.size(); ++i2)\r\n {\r\n String s1 = (String)list.get(i2);\r\n fr.drawStringWithShadow(s1, j2, k2, -1);\r\n\r\n if (i2 == 0)\r\n {\r\n k2 += 2;\r\n }\r\n\r\n k2 += 10;\r\n }\r\n\r\n this.zLevel = 0.0F;\r\n _itemRender.zLevel = 0.0F;\r\n GL11.glEnable(GL11.GL_LIGHTING);\r\n GL11.glEnable(GL11.GL_DEPTH_TEST);\r\n RenderHelper.enableStandardItemLighting();\r\n GL11.glEnable(GL12.GL_RESCALE_NORMAL);\r\n }\r\n\t}", "@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}", "private void drawHelp(Graphics2D g2d) {\n Composite orig_comp = g2d.getComposite();\n g2d.setColor(RTColorManager.getColor(\"brush\", \"dim\")); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.8f)); g2d.fillRect(0,0,getWidth(),getHeight()); g2d.setComposite(orig_comp);\n int base_x = 5, base_y = Utils.txtH(g2d,\"0\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Key\", \"Normal\", \"Shift\", \"Ctrl\", \"Ctrl-Shift\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"E\", \"Expand Selection\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"1 - 9\", \"Select Degree\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"0\", \"Select Degree > 10\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"R\", \"Select Cut Vertices\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Q\", \"Invert Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"X\", \"Hide Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"M\", \"Toggle Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"G\", \"Grid Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Y\", \"Line Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"C\", \"Circle Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"T\", \"Group Nodes\", \"Align Horizontally\", \"Align Vertically\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"S\", \"Set/Clear Sticky Labels\", \"Subtract From\", \"Add To\", \"Intersect With\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"V\", \"Toggle Node Size\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"L\", \"Toggle Labels\", \"Toggle Edge Templates\", \"Toggle Node Legend\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"W\", \"Make One Hops Visible\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"N\", \"Add Note\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"A\", \"Pan Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Minus (-)\", \"Zoom Out\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Plus (+)\", \"Zoom In\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Cursor Keys\", \"Shift Selected Nodes\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"< >\", \"Rotate Selected Nodes\", \"15 Degs\", \"90 Degs\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"{ }\", \"Scale Selected Nodes\", \"More\", \"Even More\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F[2-5]\", \"Save Layout To Fx\", \"Restore\", \"Delete\", \"Restore\");\n }", "@Override\n public void draw(WinPlotterFX plotter) {\n super.draw(plotter);\n plotter.printAt(x + (base / 3.2), y + (height / 3), name);\n }", "private void fillLabelsTabel() {\n }", "private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}", "public java.lang.String getLabel();", "@Override\n protected void paintDataTags(Painter aPntr)\n {\n _pointPainter.paintTags(aPntr);\n }", "@Override\r\n\t\t\t\tpublic String textFormatter(String value) {\n\t\t\t\t\tDouble tmp = Double.parseDouble(value);\r\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\r\n\t\t\t\t\tString label = df.format(tmp).toString();\r\n\t\t\t\t\treturn (label);\r\n\t\t\t\t}", "String getLabel();", "String getLabel();", "private void doNativeConversion(){\n if(plotValues != null && xLabels != null){\n\n JSFactory factory = new JSFactory();\n JsArrayString jsXValues = factory.getStringJsArray();\n JsArrayMixed jsYValues = factory.getMixedArray();\n JsArrayString jsBarLabels = factory.getStringJsArray();\n JsArrayString jsBarColors = factory.getStringJsArray();\n \n\n //Grab the container of the plotted values, and converts them to\n //native js types.\n for(String name : plotValues.keySet()){\n jsBarLabels.push(name);\n ArrayList<Double> values = plotValues.get(name);\n \n //After here jsNumber may look similar to [1.0, 2.0, 3.0]\n JsArrayNumber jsNumber = factory.getNumberJsArray();\n for(Double value : values){\n jsNumber.push(value);\n }\n jsYValues.push(jsNumber);\n }\n \n //After here, the jsXValues may look similar to ['a', 'b', 'c', 'd'];\n for(String label : xLabels){\n jsXValues.push(label);\n }\n \n //Setting the colors\n// for(String color : colors){\n// \tjsBarColors.push(color);\n// }\n \n plotBar(jsYValues, jsXValues, jsBarLabels, title);\n\n }else{\n GWT.log(\"Values are null!!\");\n }\n }", "public void updateChart() {\n\t\tdouble val_min = Double.MAX_VALUE;\n\t\tdouble val_max = -Double.MAX_VALUE;\n\t\tVector<CurveData> cdV = new Vector<CurveData>();\n\n\t\tint maxMarkLength = 1;\n\t\tint nClmns = barColumns.size();\n\t\tint nMaxLines = 0;\n\t\tfor ( final BarColumn bc : barColumns ) {\n\t\t\tif (bc.show()) {\n\t\t\t\tfor (int j = 0; j < bc.size(); j++) {\n\t\t\t\t\tif (val_min > bc.value(j)) {\n\t\t\t\t\t\tval_min = bc.value(j);\n\t\t\t\t\t}\n\t\t\t\t\tif (val_max < bc.value(j)) {\n\t\t\t\t\t\tval_max = bc.value(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\tnMaxLines = bc.size();\n\t\t\t}\n\t\t\tif (maxMarkLength < bc.marker().length()) {\n\t\t\t\tmaxMarkLength = bc.marker().length();\n\t\t\t}\n\t\t}\n\n\t\tString tmp_str = \"\";\n\t\tfor (int i = 0; i < maxMarkLength; i++) {\n\t\t\ttmp_str = tmp_str + \" \";\n\t\t}\n\t\temptyStr = tmp_str;\n\n\t\t//System.out.println(\"debug =========== val_min=\" + val_min + \" val_max=\" + val_max);\n\n\t\tif (val_min * val_max > 0.) {\n\t\t\tif (val_min > 0.) {\n\t\t\t\tval_min = 0.;\n\t\t\t} else {\n\t\t\t\tval_max = 0.;\n\t\t\t}\n\t\t}\n\n\t\tint iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\tint iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t//System.out.println(\"debug iMin=\" + iMin + \" iMax=\" + iMax);\n\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t//System.out.println(\"debug width=\" + width);\n\t\tif (width < 1) {\n\t\t\twidth = 1;\n\t\t}\n\n\t\t//make line from\n\t\tCurveData cd = cvV.get(0);\n\t\tif (nClmns > 0) {\n\t\t\tcd.clear();\n\t\t\tcd.addPoint(0., 0.);\n\t\t\tcd.addPoint(1.0 * (nClmns + 1), 0.);\n\t\t\tcd.setColor(Color.black);\n\t\t\tcd.setLineWidth(1);\n\t\t\tcd.findMinMax();\n\t\t\tcdV.add(cd);\n\t\t}\n\n\t\tint cvCount = 1;\n\t\tfor (int i = 1; i <= nClmns; i++) {\n\t\t\tBarColumn bc = barColumns.get(i - 1);\n\t\t\tif (bc.show()) {\n\t\t\t\tdouble d_min = i - 0.35;\n\t\t\t\tdouble d_max = i + 0.35;\n\t\t\t\tint nL = bc.size();\n\t\t\t\tdouble st = (d_max - d_min) / nL;\n\t\t\t\tfor (int j = 0; j < nL; j++) {\n\t\t\t\t\tif (bc.show(j)) {\n\t\t\t\t\t\tif(cvCount < cvV.size()){\n\t\t\t\t\t\t\tcd = cvV.get(cvCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcd = new CurveData();\n\t\t\t\t\t\t\tcvV.add(cd);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcd.clear();\n\t\t\t\t\t\tcd.addPoint(d_min + (j + 0.5) * st, 0.);\n\t\t\t\t\t\tcd.addPoint(d_min + (j + 0.5) * st, bc.value(j));\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t\tif (bc.getColor(j) == null) {\n\t\t\t\t\t\t\tcd.setColor(bcColor.getColor(j));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcd.setColor(bc.getColor(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcd.findMinMax();\n\t\t\t\t\t\tcdV.add(cd);\n\t\t\t\t\t\tcvCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\"debug ===========start plotting=============== nClmns= \" + nClmns);\n\t\tif (val_min < val_max) {\n\t\t\tformatter.makeAnalysis(val_min, val_max);\n\t\t\tGP.setNumberFormatY(formatter.getFormat());\n\t\t\tGP.setLimitsAndTicksY(formatter.getMin(), formatter.getMax(), formatter.getStep());\n\t\t}\n\n\t\tif (barColumns.size() >= 10) {\n\t\t\tGP.getCurrentGL().setXminOn(false);\n\t\t\tGP.getCurrentGL().setXmaxOn(false);\n\t\t}\n\n\t\tif (cdV.size() > 0) {\n\t\t\tGP.setCurveData(cdV);\n\t\t} else {\n\t\t\tGP.removeAllCurveData();\n\t\t}\n\t}", "@Test\n public void test70() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n ValueMarker valueMarker0 = new ValueMarker(349.98275646987);\n MarkerChangeEvent markerChangeEvent0 = new MarkerChangeEvent((Marker) valueMarker0);\n XYBlockRenderer xYBlockRenderer0 = new XYBlockRenderer();\n RectangleAnchor rectangleAnchor0 = xYBlockRenderer0.getBlockAnchor();\n Line2D.Float line2D_Float0 = new Line2D.Float((-216.01F), 4682.902F, (-216.01F), (-216.01F));\n Rectangle2D.Float rectangle2D_Float0 = (Rectangle2D.Float)line2D_Float0.getBounds2D();\n Point2D.Double point2D_Double0 = (Point2D.Double)RectangleAnchor.coordinates(rectangle2D_Float0, (RectangleAnchor) null);\n valueMarker0.setLabelAnchor(rectangleAnchor0);\n combinedRangeCategoryPlot0.markerChanged(markerChangeEvent0);\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n combinedRangeCategoryPlot0.setAnchorValue(Double.NEGATIVE_INFINITY);\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point2D_Double0, (Point2D) point2D_Double0);\n double double0 = line2D_Double0.getY2();\n double double1 = line2D_Double0.getX1();\n boolean boolean1 = combinedRangeCategoryPlot0.isRangeZoomable();\n int int0 = combinedRangeCategoryPlot0.getDatasetCount();\n boolean boolean2 = combinedRangeCategoryPlot0.isRangeCrosshairVisible();\n combinedRangeCategoryPlot0.clearDomainAxes();\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeCategoryPlot0.getRangeCrosshairStroke();\n List list0 = combinedRangeCategoryPlot0.getAnnotations();\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getDomainMarkers(layer0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedRangeCategoryPlot0.zoomDomainAxes(0.0, plotRenderingInfo0, (Point2D) point2D_Double0);\n LogAxis logAxis0 = new LogAxis();\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot((ValueAxis) logAxis0);\n AxisLocation axisLocation0 = combinedDomainXYPlot0.getDomainAxisLocation(1308);\n combinedRangeCategoryPlot0.setRangeAxisLocation(axisLocation0, false);\n }", "String getShapeLabel();", "private void show_text()\n {\n NumberFormat f = NumberFormat.getInstance();\n f.setGroupingUsed( false );\n setText( label + \" \" +\n START + \" \" + f.format(min) + \n SEPARATOR + f.format(max) + \n \" \" + END );\n }", "private void drawCore(Graphics2D g2d) {\r\n icon.paintIcon(g2d, layout.location.x - icon.getIconWidth() / 2, layout.location.y - icon.getIconHeight() / 2,\r\n g2d.getColor());\r\n labelBox.draw(g2d);\r\n }", "public abstract String getLabel();", "public String getTickColorAsString();", "@Test\n public void test04() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(0.0, 2379.62183143);\n Line2D.Double line2D_Double0 = new Line2D.Double();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getRangeAxisEdge(364);\n ValueMarker valueMarker0 = new ValueMarker(0.0);\n Layer layer0 = Layer.FOREGROUND;\n combinedDomainCategoryPlot0.addRangeMarker(58, (Marker) valueMarker0, layer0);\n String string0 = point2D_Double0.toString();\n }", "private void print(final Graphics g, final String text, final double value) {\n g.drawString(String.format(text, value), col, row++ * textLineHeight - 3);\n }", "public void render(final Graphics2D g)\n\t\t{\n\t\t\t//draw label\n\t\t\tif(label instanceof String)\n\t\t\t{\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\tif(!((String)label).equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tg.drawString((String)label, coords[0], coords[1]+(coords[3]));\n\n\t\t\t\t\tif(obj instanceof Polygon)\n\t\t\t\t\t{\n\t\t\t\t\t\tg.drawPolygon((Polygon)obj);\n\t\t\t\t\t}\n\t\t\t\t\tif(obj instanceof Ellipse2D)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal Ellipse2D e = (Ellipse2D)obj;\n\t\t\t\t\t\tg.drawOval((int)(e.getCenterX()-e.getWidth()/2), (int)(e.getCenterY()-e.getHeight()/2), (int)e.getWidth(), (int)e.getHeight());\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal Rectangle r = (Rectangle)obj;\n\t\t\t\t\t\tg.drawRect(r.x, r.y, r.width, r.height);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfinal Rectangle enclose = obj.getBounds();\n\n\t\t\t\tg.drawImage((Image)label, coords[0]-(enclose.width/2), coords[1]-(enclose.height/2), null);\n\t\t\t}\n\n\t\t\t//draw highlight by shape\n\t\t\tif(highlighted)\n\t\t\t{\n\t\t\t g.setColor(new Color(0x3333FF));\n\t\t\t\tg.setStroke(new BasicStroke(4));\n\t\t\t\tif(obj instanceof Polygon)\n\t\t\t\t{\n\t\t\t\t\tg.drawPolygon((Polygon)obj);\n\t\t\t\t}\n\t\t\t\telse if(obj instanceof Ellipse2D)\n\t\t\t\t{\n\t\t\t\t\tfinal Ellipse2D e = (Ellipse2D)obj;\n\t\t\t\t\tg.drawOval((int)(e.getCenterX()-e.getWidth()/2), (int)(e.getCenterY()-e.getHeight()/2), (int)e.getWidth(), (int)e.getHeight());\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tfinal Rectangle r = (Rectangle)obj;\n\t\t\t\t\tg.drawRect(r.x, r.y, r.width, r.height);\n\t\t\t\t}\n\t\t\t\tg.setStroke(new BasicStroke(1));\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t}\n\t\t}", "protected void drawHoveringText( List<String> descriptionLines, int posX, int posY, FontRenderer fontrenderer )\n\t{\n\t\tif( !descriptionLines.isEmpty() )\n\t\t{\n\t\t\tGL11.glDisable( GL_RESCALE_NORMAL );\n\n\t\t\tGL11.glDisable( GL11.GL_LIGHTING );\n\n\t\t\tGL11.glDisable( GL11.GL_DEPTH_TEST );\n\n\t\t\tint maxStringLength = 0;\n\n\t\t\tfor( String string : descriptionLines )\n\t\t\t{\n\n\t\t\t\tint stringLen = fontrenderer.getStringWidth( string );\n\n\t\t\t\tif( stringLen > maxStringLength )\n\t\t\t\t{\n\t\t\t\t\tmaxStringLength = stringLen;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint offsetX = posX + 12;\n\n\t\t\tint offsetY = posY - 12;\n\n\t\t\tint tooltipHeight = 8;\n\n\t\t\tif( descriptionLines.size() > 1 )\n\t\t\t{\n\t\t\t\ttooltipHeight += 2 + ( ( descriptionLines.size() - 1 ) * 10 );\n\t\t\t}\n\n\t\t\tthis.zLevel = 300.0F;\n\n\t\t\tint drawColor = 0xF0100010;\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY - 4, offsetX + maxStringLength + 3, offsetY - 3, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY + tooltipHeight + 3, offsetX + maxStringLength + 3, offsetY + tooltipHeight + 4, drawColor,\n\t\t\t\tdrawColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY - 3, offsetX + maxStringLength + 3, offsetY + tooltipHeight + 3, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX - 4, offsetY - 3, offsetX - 3, offsetY + tooltipHeight + 3, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX + maxStringLength + 3, offsetY - 3, offsetX + maxStringLength + 4, offsetY + tooltipHeight + 3, drawColor,\n\t\t\t\tdrawColor );\n\n\t\t\tdrawColor = 0x505000FF;\n\t\t\tint fadeColor = ( ( drawColor & 0xFEFEFE ) >> 1 ) | ( drawColor & 0xFF000000 );\n\t\t\tthis.drawGradientRect( offsetX - 3, ( offsetY - 3 ) + 1, ( offsetX - 3 ) + 1, ( offsetY + tooltipHeight + 3 ) - 1, drawColor, fadeColor );\n\t\t\tthis.drawGradientRect( offsetX + maxStringLength + 2, ( offsetY - 3 ) + 1, offsetX + maxStringLength + 3,\n\t\t\t\t( offsetY + tooltipHeight + 3 ) - 1, drawColor, fadeColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY - 3, offsetX + maxStringLength + 3, ( offsetY - 3 ) + 1, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY + tooltipHeight + 2, offsetX + maxStringLength + 3, offsetY + tooltipHeight + 3, fadeColor,\n\t\t\t\tfadeColor );\n\n\t\t\tfor( int descriptionIndex = 0; descriptionIndex < descriptionLines.size(); descriptionIndex++ )\n\t\t\t{\n\t\t\t\tString s1 = descriptionLines.get( descriptionIndex );\n\t\t\t\tfontrenderer.drawStringWithShadow( s1, offsetX, offsetY, -1 );\n\t\t\t\tif( descriptionIndex == 0 )\n\t\t\t\t{\n\t\t\t\t\toffsetY += 2;\n\t\t\t\t}\n\t\t\t\toffsetY += 10;\n\t\t\t}\n\t\t\tthis.zLevel = 0.0F;\n\n\t\t\tGL11.glEnable( GL11.GL_LIGHTING );\n\n\t\t\tGL11.glEnable( GL11.GL_DEPTH_TEST );\n\n\t\t\tGL11.glEnable( GL_RESCALE_NORMAL );\n\t\t}\n\t}", "@Override\n public void updateDrawState(TextPaint ds) {\n }", "@Override\n public void drawScreen(int mouseX, int mouseY, float partialTicks)\n {\n this.drawDefaultBackground();\n this.propertyList.drawScreen(mouseX, mouseY, partialTicks);\n this.drawCenteredString(this.fontRendererObj, this.title, this.width / 2, 8, 16777215);\n if (this.titleLine2 != null)\n this.drawCenteredString(this.fontRendererObj, this.titleLine2, this.width / 2, 18, 16777215);\n \n this.btnUndoAll.enabled = this.propertyList.areAnyPropsEnabled(this.chkApplyGlobally.isChecked()) && this.propertyList.areAnyPropsChanged(this.chkApplyGlobally.isChecked());\n this.btnDefaultAll.enabled = this.propertyList.areAnyPropsEnabled(this.chkApplyGlobally.isChecked()) && !this.propertyList.areAllPropsDefault(this.chkApplyGlobally.isChecked());\n super.drawScreen(mouseX, mouseY, partialTicks);\n this.propertyList.drawScreenPost(mouseX, mouseY, partialTicks);\n if (this.checkBoxHoverChecker.checkHover(mouseX, mouseY))\n this.drawToolTip(Arrays.asList(new String[] { I18n.format(\"bspkrs.configgui.applyGlobally.tooltip\") }), mouseX, mouseY);\n }", "public void xlabel(String label){\n XY1DPlot plot = (XY1DPlot)this.chartPanel.getChart().getPlot();\n plot.getXAxis().setLabel(label);\n plot.getXAxis().setDrawLabel(true);\n this.chartPanel.paintGraphics();\n }" ]
[ "0.5759936", "0.5745342", "0.56829536", "0.55794466", "0.5572976", "0.5541414", "0.55223984", "0.5488949", "0.5482367", "0.5320335", "0.53080964", "0.5299829", "0.5254932", "0.5245294", "0.52262616", "0.5219585", "0.520955", "0.5207767", "0.5192589", "0.51783603", "0.51689446", "0.51611733", "0.5155922", "0.5124698", "0.5122191", "0.5121974", "0.51216036", "0.5111885", "0.51090074", "0.51084226", "0.5102854", "0.50991935", "0.5097414", "0.5090915", "0.5079443", "0.50792676", "0.50786626", "0.50781393", "0.5075565", "0.507504", "0.507444", "0.5072607", "0.5070303", "0.5069129", "0.50672877", "0.5056834", "0.504852", "0.50291085", "0.50229293", "0.50223607", "0.50167644", "0.5014912", "0.5010337", "0.5003281", "0.4997757", "0.49948856", "0.499476", "0.49946952", "0.49871194", "0.4983901", "0.497151", "0.49690744", "0.49629408", "0.49609283", "0.49592742", "0.49484015", "0.49443838", "0.4941592", "0.49414694", "0.49413413", "0.49296966", "0.49244156", "0.49238193", "0.49234462", "0.49159738", "0.49159732", "0.49106342", "0.49064997", "0.49031568", "0.4897318", "0.48904222", "0.48899853", "0.48893183", "0.48863167", "0.48812076", "0.48812076", "0.48792946", "0.48792687", "0.48769206", "0.4868581", "0.4859289", "0.48478758", "0.48368773", "0.48367247", "0.4835059", "0.483338", "0.4832574", "0.48316664", "0.4828061", "0.48271146", "0.48149675" ]
0.0
-1
return true if start 2D is smaller than stop 2D
boolean growing(boolean bothDimensions) { if (complete()) { if (bothDimensions) return (start2D.x < stop2D.x) && (start2D.y <= stop2D.y); else return (start2D.x < stop2D.x) || (start2D.y <= stop2D.y); } else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean withinGridDimensions(int startX, int startY, int endX, int endY) {\n boolean within = true;\n int largerX = Math.max(startX, endX);\n int smallerX = Math.min(startX, endX);\n int largerY = Math.max(startY, endY);\n int smallerY = Math.min(startY, endY);\n \n if (smallerX < 1 || smallerY < 1 || largerX > GRID_DIMENSIONS || largerY > GRID_DIMENSIONS) {\n within = false;\n }\n \n return within;\n }", "private boolean checkifCollinear(Point[] ptArr, Comparator<Point> cmp, int start){\n\t\tif(start +2 >= ptArr.length) return false;\t\n\t\tif(cmp.compare(ptArr[start],ptArr[start+1]) == cmp.compare(ptArr[start+1],ptArr[start+2]) && cmp.compare(ptArr[start],ptArr[start+1]) == 0){\n\t\t\treturn true;\n\t\t}\t\t\n\t\treturn false;\t\n\t}", "public boolean isChessOnWay(location start, location end, chess[][] board) {\n int startX = start.getX();\n int startY = start.getY();\n int endX = end.getX();\n int endY = end.getY();\n\n if(Math.abs(startX-endX) > 0){\n int step = startX < endX ? 1 : -1;\n for(int i = startX+step; i != endX ; i+=step){\n if(board[i][startY]!=null){\n return true;\n }\n }\n }\n else if(Math.abs(startY-endY) > 0){\n int step = startY < endY ? 1 : -1;\n for(int i = startY+step; i != endY; i+=step){\n if(board[startX][i]!=null){\n return true;\n }\n }\n\n }\n return false;\n\n }", "public boolean isLevelTrailSegment(int start, int end)\n {\n int max = markers[start];\n int min = markers[start];\n for (int i = start; i <= end; i++) {\n if (markers[i] > max) {\n max = markers[i];\n }\n \n if (markers[i] < min) {\n min = markers[i];\n }\n }\n \n return (max-min <= 10);\n }", "public boolean isInsideStop(TuioCursor cursor){\n\t\treturn stop.getGlobalBounds().contains(cursor.getX()*Systeme.screen.x, cursor.getY()*Systeme.screen.y);\n\t}", "private boolean hasOverlap(int[] i1, int[] i2)\n {\n // Special case of consecutive STEP-BY-STEP intervals\n if(i1[0] <= i2[0] && i2[0] <= i1[1])\n return true;\n if(i2[0] <= i1[0] && i1[0] <= i2[1])\n return true;\n return false;\n }", "boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\n }", "private boolean stop() {\n\t\tboolean collide = false;\n\n\t\tdist = (int) MathMachine.distance((xOrigin - this.x), (yOrigin - this.y)); // distance traveled\n\t\tif (dist >= move_range) collide = true;\n\n\t\tif (Math.abs(x - xD) <= 2 && Math.abs(y - yD) <= 2) { // adding 8 shifts the collision box from the top left corner to the bottom right.\n\t\t\tcollide = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn collide;\n\t}", "private boolean checkInBounds(int startX, int startY, int finalX, int finalY) {\r\n\t\treturn startX < 0 || startX >= this.SIZE || startY < 0 || startY >= this.SIZE\r\n\t\t\t\t|| finalX < 0 || finalX >= this.SIZE || finalY < 0 || finalY >= this.SIZE;\r\n\t}", "private boolean contains(int from1, int to1, int from2, int to2) {\n\t\treturn from2 >= from1 && to2 <= to1;\n\t}", "private static boolean hasVisibleRegion(int begin,int end,int first,int last) {\n return (end > first && begin < last);\n }", "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int col = 0 + increment; col < sqRt + increment; col++) {\n\t\t\t\t\t\tif(puzzle[row][col] == val)\n\t\t\t\t\t\t\tvalCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(valCounter >= 2)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private boolean inBounds(int deltaRow, int deltaCol) {\n boolean row = false;\n boolean col = false;\n\n if (lastPlacedRow + deltaRow < NUM_ROWS && lastPlacedRow + deltaRow >= 0) {\n row = true;\n }\n if (lastPlacedCol + deltaCol < NUM_COLS && lastPlacedCol + deltaCol >= 0) {\n col = true;\n }\n\n return row && col;\n }", "boolean handleInput(float x, float y){\n return r1_.x_ <= x && r2_.x_ >= x && r1_.y_ >= y && r2_.y_ <= y;\n }", "private boolean isInside(int i, int j) {\n\t\tif (i < 0 || j < 0 || i > side || j > side)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "boolean hasDestRange();", "private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }", "private boolean pointOnSegment(Waypoint w1, Waypoint w3, Waypoint w2){\n\t\tdouble w1x = w1.getX();\n\t\tdouble w1y = w1.getY();\n\t\tdouble w2x = w2.getX();\n\t\tdouble w2y = w2.getY();\n\t\tdouble w3x = w3.getX();\n\t\tdouble w3y = w3.getY();\n\t\t\n\t\tif (w3x <= Math.max(w1x, w2x) && w3x >= Math.min(w1x, w2x) && \n\t\t\tw3y <= Math.max(w1y, w2y) && w3y >= Math.min(w1y, w2y))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }", "public boolean contains2(DecimalPosition position) { // TODO rename: ???\n return position != null && position.getX() >= start.getX() && position.getY() >= start.getY() && position.getX() <= end.getX() && position.getY() <= end.getY();\n }", "boolean checkIfValidToCreate(int start, int end) {\n return myMarkerTree.processOverlappingWith(start, end, region->{\n int rStart = region.getStartOffset();\n int rEnd = region.getEndOffset();\n if (rStart < start) {\n if (region.isValid() && start < rEnd && rEnd < end) {\n return false;\n }\n }\n else if (rStart == start) {\n if (rEnd == end) {\n return false;\n }\n }\n else {\n if (rStart > end) {\n return true;\n }\n if (region.isValid() && rStart < end && end < rEnd) {\n return false;\n }\n }\n return true;\n });\n }", "public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\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\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\n\t}", "public boolean isClicked(int x, int y) {\n boolean in_flag = false ;\n int i ;\n int j=0 ;\n for (i=1; i<4; i++) {\n j=i-1 ;\n if ((((ypoints[i] <= y) && (y < ypoints[j])) || ((ypoints[j] <= y) && (y < ypoints[i]))) \n && (x < (xpoints[j] - xpoints[i]) * (y - ypoints[i]) / (ypoints[j] - ypoints[i]) + xpoints[i])) {\n in_flag = !in_flag ;\n }\n } // end for\n return in_flag ;\n //System.out.println(\"IN_FLAG=\"+in_flag+VIDStr(100)) ;\n /*\n int dx = x - pos.x ;\n int dy = y - pos.y ;\n double dist = Math.sqrt(dx*dx+dy*dy) ;\n if (dist<=length) {\n return true ;\n } else {\n return false ; \n }\n */\n }", "@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }", "private boolean intersects(int from1, int to1, int from2, int to2) {\n\t\treturn from1 <= from2 && to1 >= from2 // (.[..)..] or (.[...]..)\n\t\t\t\t|| from1 >= from2 && from1 <= to2; // [.(..]..) or [..(..)..\n\t}", "@Override\n\t@SideOnly(Side.CLIENT)\n\tpublic boolean isInRangeToRenderDist(double p_70112_1_)\n\t{\n\t\tdouble d1 = this.getEntityBoundingBox().getAverageEdgeLength() * 4.0D;\n\t\td1 *= 64.0D;\n\t\treturn p_70112_1_ < (d1 * d1);\n\t}", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private boolean overlappingEvents(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isDominated(Image img1, Image img2) {\r\n\t\tint size1 = img1.getWidth() * img1.getHeight();\r\n\t\tint size2 = img2.getWidth() * img2.getHeight();\r\n\t\treturn size1 < size2;\r\n\t}", "boolean isIncludeBounds();", "public static boolean isASolution(int x, int y)\r\n {\r\n if (x == STOP_ROW && y == STOP_COL)\r\n return true;\r\n return false;\r\n }", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}", "@Override\n public boolean contain(int x, int y) {\n return(x>=this.x && y>=this.y && x<=this.x+(int)a && y<=this.y+(int)b);\n }", "private boolean overlappingTaskAndGateway(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble apothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstWidth > secondX - apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "boolean comprovaNumerosQuadrant(int rowStart, int colStart, int num) {\r\n //System.out.println(\"Comprovanumerosquadrant\"+rowStart+colStart);\r\n for (int i = 0; i < SRN; i++) {\r\n for (int j = 0; j < SRN; j++) {\r\n if (mat[rowStart + i][colStart + j] == num) {\r\n \r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n }", "private boolean isTouching(Coord c1, Coord c2) {\n\t\tif (Math.abs(c1.x-c2.x) <=2 && Math.abs(c1.y-c2.y) <=2) {\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "private static boolean isPointOnLine(LineSegment a, Point2D b) {\r\n\t // Move the image, so that a.first is on (0|0)\r\n\t LineSegment aTmp = new LineSegment(new PointDouble(0, 0), new PointDouble(\r\n\t a.endPoint.getX() - a.startPoint.getX(), a.endPoint.getY() - a.startPoint.getY()));\r\n\t PointDouble bTmp = new PointDouble(b.getX() - a.startPoint.getX(), b.getY() - a.startPoint.getY());\r\n\t double r = crossProduct(aTmp.endPoint, bTmp);\r\n\t return Math.abs(r) < 0.000001;\r\n\t}", "boolean withinD(double d, double x, double y, double x2, double y2) {\r\n\t\tif (x == Double.NEGATIVE_INFINITY)\r\n\t\t\tx = x2;\r\n\t\tif (y == Double.NEGATIVE_INFINITY)\r\n\t\t\ty = y2;\r\n\t\tdouble[] origin = {x,y};\r\n\t\tdouble[] point = {x2, y2};\r\n\t\tdouble dist = Physics.len( origin, 0 , point, 0);\r\n\t\treturn dist <= d;\r\n\t}", "private static boolean isBetween(double start, double middle, double end) {\n if(start > end) {\n return end <= middle && middle <= start;\n }\n else {\n return start <= middle && middle <= end;\n }\n }", "public float min2DX() {\n return Math.min(stop2D.x, start2D.x);\n }", "boolean complete() {\n return start2D != null && stop2D != null;// && start3D!=null && stop3D!=null;\n }", "public boolean goodSize( Coordinates startCoord, Coordinates endCoord, int size) {\n\t\t\r\n\t\tint nb1 = startCoord.getNumber();\r\n\t\tchar letter1 = startCoord.getLetter();\r\n\t\tint nb2 = endCoord.getNumber();\r\n\t\tchar letter2 = endCoord.getLetter();\r\n\t\t\r\n\t\treturn (\r\n\t\t\t\t(Math.abs(nb1 - nb2) == size-1)\r\n\t\t\t\t|| \r\n\t\t\t\t(Math.abs(letter1 - letter2) == size-1 ));\r\n\t}", "static boolean findBridge(Triangulator triRef, int ind, int i, int start,\n\t\t\t int[] ind1, int[] i1) {\n\tint i0, i2, j, numDist = 0;\n\tint ind0, ind2;\n\tBBox bb;\n\tDistance old[] = null;\n\tboolean convex, coneOk;\n\n\t// sort the points according to their distance from start.\n\tind1[0] = ind;\n\ti1[0] = i;\n\tif (i1[0] == start) return true;\n\tif (numDist >= triRef.maxNumDist) {\n\t // System.out.println(\"(1) Expanding distances array ...\");\n\t triRef.maxNumDist += triRef.INC_DIST_BK;\n\t old = triRef.distances;\n\t triRef.distances = new Distance[triRef.maxNumDist];\n\t System.arraycopy(old, 0, triRef.distances, 0, old.length);\n\t for (int k = old.length; k < triRef.maxNumDist; k++)\n\t\ttriRef.distances[k] = new Distance();\n\t}\n\n\ttriRef.distances[numDist].dist = Numerics.baseLength(triRef.points[start],\n\t\t\t\t\t\t\t triRef.points[i1[0]]);\n\ttriRef.distances[numDist].ind = ind1[0];\n\t++numDist;\n\n\n\tind1[0] = triRef.fetchNextData(ind1[0]);\n\ti1[0] = triRef.fetchData(ind1[0]);\n\twhile (ind1[0] != ind) {\n\t if (i1[0] == start) return true;\n\t if (numDist >= triRef.maxNumDist) {\n\t\t// System.out.println(\"(2) Expanding distances array ...\");\n\t\ttriRef.maxNumDist += triRef.INC_DIST_BK;\n\t\told = triRef.distances;\n\t\ttriRef.distances = new Distance[triRef.maxNumDist];\n\t\tSystem.arraycopy(old, 0, triRef.distances, 0, old.length);\n\t\tfor (int k = old.length; k < triRef.maxNumDist; k++)\n\t\t triRef.distances[k] = new Distance();\n\t }\n\n\t triRef.distances[numDist].dist = Numerics.baseLength(triRef.points[start],\n\t\t\t\t\t\t\t\t triRef.points[i1[0]]);\n\t triRef.distances[numDist].ind = ind1[0];\n\t ++numDist;\n\t ind1[0] = triRef.fetchNextData(ind1[0]);\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t}\n\n\t// qsort(distances, num_dist, sizeof(distance), &d_comp);\n\tsortDistance(triRef.distances, numDist);\n\n\t// find a valid diagonal. note that no node with index i1 > start can\n\t// be feasible!\n\tfor (j = 0; j < numDist; ++j) {\n\t ind1[0] = triRef.distances[j].ind;\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t if (i1[0] <= start) {\n\t\tind0 = triRef.fetchPrevData(ind1[0]);\n\t\ti0 = triRef.fetchData(ind0);\n\t\tind2 = triRef.fetchNextData(ind1[0]);\n\t\ti2 = triRef.fetchData(ind2);\n\t\tconvex = triRef.getAngle(ind1[0]) > 0;\n\n\t\tconeOk = Numerics.isInCone(triRef, i0, i1[0], i2, start, convex);\n\t\tif (coneOk) {\n\t\t bb = new BBox(triRef, i1[0], start);\n\t\t if (!NoHash.noHashEdgeIntersectionExists(triRef, bb, -1, -1, ind1[0], -1))\n\t\t\treturn true;\n\t\t}\n\t }\n\t}\n\n\t// the left-most point of the hole does not lie within the outer\n\t// boundary! what is the best bridge in this case??? I make a\n\t// brute-force decision... perhaps this should be refined during a\n\t// revision of the code...\n\tfor (j = 0; j < numDist; ++j) {\n\t ind1[0] = triRef.distances[j].ind;\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t ind0 = triRef.fetchPrevData(ind1[0]);\n\t i0 = triRef.fetchData(ind0);\n\t ind2 = triRef.fetchNextData(ind1[0]);\n\t i2 = triRef.fetchData(ind2);\n\t bb = new BBox(triRef, i1[0], start);\n\t if (!NoHash.noHashEdgeIntersectionExists(triRef, bb, -1, -1, ind1[0], -1))\n\t\treturn true;\n\t}\n\n\t// still no diagonal??? yikes! oh well, this polygon is messed up badly!\n\tind1[0] = ind;\n\ti1[0] = i;\n\n\treturn false;\n }", "static Boolean lineBetween(int x1, int y1, int x2, int y2) {\n double m, b; // for line eqn.\n int maxV = Math.max( pgmInf.img[y1][x1], pgmInf.img[y2][x2] );\n int xmin = Math.min(x1, x2), xmax = Math.max(x1, x2);\n int ymin = Math.min(y1, y2), ymax = Math.max(y1, y2);\n\n if (x1 == x2) {\n // x = c\n for (int y=ymin ; y < ymax ; y++)\n if (pgmInf.img[y][x1] > maxV) return false;\n }\n else {\n // setup for y=mx + b form\n double top = (y1-y2), bot = (x1-x2);\n m = top / bot; \n\n if (m > -1 && m < 1) {\n // y = mx + b\n b = y1 - m * (double)x1;\n\n for (int x=xmin ; x < xmax ; x++) {\n int y = (int)Math.round( m * (double)x + b );\n if (pgmInf.img[y][x] > maxV ) return false;\n }\n }\n else {\n // x = my + b\n top = (x1-x2); bot = (y1-y2); \n m = top / bot; b = x1 - m * (double)y1;\n\n for (int y=ymin ; y < ymax ; y++) {\n int x = (int)Math.round( m* (double)y + b );\n if (pgmInf.img[y][x] > maxV) return false;\n }\n }\n }\n return true;\n }", "private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }", "public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }", "private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }", "private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }", "public boolean checkValidSelection(Point start, Point end){\n \t\tboolean flag = false;\n \t\tif (start.x == end.x) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if (start.y == end.y) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x - start.y) == (end.x - end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x + start.y) == (end.x + end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\treturn flag;\n \t}", "public boolean hitTarget(MouseEvent e) {\n\t\treturn (e.getX() > coord.x && e.getX() < endCoord.x && e.getY() > coord.y && e.getY() < endCoord.y);\n\t}", "private boolean inOneQuadrant(double x, double y,\n double llx, double lly,\n double urx, double ury) {\n boolean horCond = llx < x == urx < x;\n boolean verCond = lly < y == ury < y;\n return horCond && verCond;\n }", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "private static boolean isOnSegment(Coord p, Coord q, Coord r) \n {\n if(r.x <= Math.max(p.x, q.x) && r.x >= Math.min(p.x, q.x) && \n r.y <= Math.max(p.y, q.y) && r.y >= Math.min(p.y, q.y)) \n return true; \n return false; \n }", "private boolean overlappingTaskAndEvent(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "private boolean overlappingEventAndGateway(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble apothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstWidth > secondX - apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public boolean onSegment(Line line) {\n\n // Define minimum and maximum for X and Y values.\n double maxX = Math.max(line.start().getX(), line.end().getX());\n double maxY = Math.max(line.start().getY(), line.end().getY());\n double minX = Math.min(line.start().getX(), line.end().getX());\n double minY = Math.min(line.start().getY(), line.end().getY());\n\n // Calculation deviation.\n double d = 0.0000000001;\n\n // Check if this point is in between minimum and maximum and return result.\n return minX - d <= this.x && this.x <= maxX + d && minY - d <= this.y && this.y <= maxY + d;\n\n }", "public boolean book1(int start, int end) {\n \n Integer prevSlotX = slots1.floorKey(start);\n if (prevSlotX!=null && slots1.get(prevSlotX) > start )\n return false;\n \n Integer nextSlotX = slots1.ceilingKey(start);\n if (nextSlotX!=null && nextSlotX < end) return false;\n \n slots1.put(start, end);\n return true;\n }", "private static Boolean deplacementL(int initialLigne, int initialColonne, int destinationLigne, int destinationColonne) {\n return ((Math.abs(initialLigne - destinationLigne) == 2 && Math.abs(initialColonne - destinationColonne) == 1) || (Math.abs(initialLigne - destinationLigne) == 1 && Math.abs(initialColonne - destinationColonne) == 2));\n }", "@Override\n\tpublic boolean contains(int x, int y) {\n\t\treturn (x > Math.min(x1, x2) && x < Math.max(x1, x2) && y > Math.min(y1, y2) && y < Math.max(y1, y2));\n\t}", "private boolean isValid(AStarNode start, AStarNode end) {\n boolean check = true;\n for (Obstacle obs : getObstacles()) {\n if (isOnTheWay(start, end, obs))\n check = false;\n }\n return check;\n }", "private boolean intervalContains(double target, int coordIdx) {\n double midVal1 = orgGridAxis.getCoordEdge1(coordIdx);\n double midVal2 = orgGridAxis.getCoordEdge2(coordIdx);\n boolean ascending = midVal1 < midVal2;\n return intervalContains(target, coordIdx, ascending, true);\n }", "public boolean inValidSpot(Path p1){\n\t\t// Checks to see it the path piece placed expects an entrance or exit piece out of bounds\n\t\t\n\t\tint largestRow = (height*width-1)/width;\n\t\t\n\t\t// if entrance or exit pos expected is negative, know it is expecting a path outside the top bound\n\t\tif(p1.getEntry()<0 || p1.getExit()<0){\n\t\t\treturn false;\n\t\t}\n\t\t// if entrance or exit's row greater than the maximum row, know it is expecting a path outside bottom bound\n\t\tif(p1.getEntryRow()>largestRow || p1.getExitRow()>largestRow){\n\t\t\treturn false;\n\t\t}\n\t\tint currentRow = p1.getRow();\n\t\tint nextRow=0;\n\t\tif(Math.abs(p1.getPos()-p1.getEntry())==1){\n\t\t\t// If the absolute value of the difference between the current position and its entrance is 1 ...\n\t\t\t// Checking to see if the entrance is expected to be outside of the left or right edges of Map\n\t\t\tnextRow = p1.getEntryRow();\n\t\t\tif(currentRow!=nextRow){\n\t\t\t\t// This means that the entrance expected is not to the left or to the right\n\t\t\t\t// In other words, the entrance is expected in another row\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(Math.abs(p1.getPos()-p1.getExit())==1){\n\t\t\t// If the absolute value of the difference between the current position and its exit is 1 ...\n\t\t\t// Checking to see if the exit is expected to be outside of the left or right edges of Map\n\t\t\tnextRow = p1.getExitRow();\n\t\t\tif(currentRow!=nextRow){\n\t\t\t\t// This means that the exit expected is not to the left or to the right\n\t\t\t\t// In other words, the exit is expected in another row\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t/*\n\t\tif(Math.abs(p1.getPos()-p1.getEntry())==width){\n\t\t\tnextRow = p1.getEntryRow();\n\t\t\tif(p1.getEntry()<0 || nextRow>(height-1/width)){//it used to be calculaterow(height*width-1\n\t\t\t\t//Less than zero would make it on top of the top edge\n\t\t\t\t//First term calculated in this manner because any negative entrance between -1 and \n\t\t\t\t// -width+1 will have an integer rounded to zero. The double casting will give an \n\t\t\t\t// accurate number without losing the sign\n\t\t\t\t\n\t\t\t\t//Greater than height*width-1 would make in lower than the bottom edge\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(Math.abs(p1.getPos()-p1.getExit())==width){\n\t\t\tnextRow = p1.getExitRow();\n\t\t\tif(p1.getEntry()<0 || nextRow>(height-1/width)){//it used to be calculaterow(height*width-1\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\treturn true;\n\t\t\n\t}", "public boolean validRook (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\t\tint distanceMovedUpDown =endRow-startRow; \n\t\tint distanceMovedLeftRight = endColumn-startColumn;\n\n\t\tif (distanceMovedUpDown !=0 && distanceMovedLeftRight != 0) { //have to stay in the same column or row to be valid\n\t\t\treturn false;\n\t\t}\n\n\n\t\tif (startRow == endRow) { //moving left or right \n\t\t\tif (Math.abs(distanceMovedLeftRight) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedLeftRight > 0) {//moving to the right \n\t\t\t\t\tint x=startColumn + 1;\n\t\t\t\t\twhile (x < endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedLeftRight < 0) {//moving to the left\n\t\t\t\t\tint x = startColumn -1;\n\t\t\t\t\twhile (x > endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn true;\n\n\t\t}\n\t\tif (startColumn == endColumn) { //moving up or down\n\t\t\tif (Math.abs(distanceMovedUpDown) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedUpDown > 0) {//moving up the array\n\t\t\t\t\tint x=startRow + 1;\n\t\t\t\t\twhile (x < endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedUpDown < 0) {//moving down the array\n\t\t\t\t\tint x = startRow -1;\n\t\t\t\t\twhile (x > endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}", "private static boolean isValid(int x, int y)\n\t {\n\t if (x < M && y < N && x >= 0 && y >= 0) {\n\t return true;\n\t }\n\t \n\t return false;\n\t }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "public boolean percolates() {\n\t\tint top = uf.find(0);\n\t\tint bottom = uf.find(size * size + 1);\n\t\treturn top == bottom;\n\t}", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "static Boolean pointInPgm(int x, int y) {\n return (x >= 0 ) && (y >= 0) && (x <= pgmInf.width) && (y <= pgmInf.height);\n }", "public boolean isInRangeToRenderDist(double distance) {\n/* 38 */ return (distance < 4096.0D);\n/* */ }", "boolean between(tPoint p2)\n {\n if (! this.collinear(p2))\n return false;\n \n //check to see if line is vertical\n if (this.p0.x != this.p1.x)\n {\n //if not vertical, check to see if point overlaps in x\n return (((this.p0.x < p2.x) && (p2.x < this.p1.x)) |\n ((this.p0.x > p2.x) && (p2.x > this.p1.x)));\n }\n else\n {\n //if vertical, check to see if point overlaps in y\n return (((this.p0.y < p2.y) && (p2.y < this.p1.y)) |\n ((this.p0.y > p2.y) && (p2.y > this.p1.y)));\n }\n }", "@Override\n\tpublic boolean canMove(Board board, Box start, Box end) {\n\t\tif(end.getPiece().isWhite() == this.isWhite()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tint x = Math.abs(start.getX() - end.getX());\n\t\tint y = Math.abs(start.getY() - end.getY());\n\t\treturn x * y == 2;\n\t}", "public boolean onStairs(){\n\t\tint yp = 0; int xp = 0;\n\t\tint ys = 1; int xs = 1;\n\t\tfor(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position\n\t\t\tfor(int p = 0 ; p < this.position.length; p++){\n\t\t\t\tif(this.position[i][p] == 1 && this.Stairs[i][p] == 1){\n\t\t\t\t\typ=i; xp=p;\n\t\t\t\t\tys=i; xs=p;\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\tif(yp==ys && xp==xs){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;//if they are not in the same location, return false\n\t}", "public boolean book(int start, int end) {\n for (Integer[] slot : slots)\n {\n if((start < slot[0] && end < slot[0]) || start > slot[1] && end > slot[1]){\n continue;\n }\n else{\n return false;\n }\n }\n slots.add(new Integer[]{start,end});\n return true;\n }", "public static boolean openIntervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 < end2 && start2 < end1);\n\t}", "public boolean isOnSegment(Point2D point) {\n double x = point.getX();\n double y = point.getY();\n double val = this.a * x + this.b * y + this.c;\n if (val < 0.0) {\n val = -val;\n }\n if (val > EPS) {\n return false;\n }\n\n if ((x < (this.minx - EPS)) || (x > (this.maxx + EPS))) {\n return false;\n }\n if ((y < (this.miny - EPS)) || (y > (this.maxy + EPS))) {\n return false;\n }\n return true;\n }", "private boolean checkTwoSum(List<Integer> a, int twoSum, int start) {\n\t\t\n\t\tfor (int i = start, j = a.size() - 1; i <=j;) {\n\t\t\tif (a.get(i) + a.get(i) == twoSum || \n\t\t\t\ta.get(j) + a.get(j) == twoSum ||\n\t\t\t\ta.get(i) + a.get(j) == twoSum) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (a.get(i) + a.get(j) > twoSum) {\n\t\t\t\t\tj--;\n\t\t\t\t} else if (a.get(i) + a.get(j) < twoSum) {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }", "boolean hasGrid();", "private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below 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 }", "public boolean blocks(Cell source, Cell destination) {\n\t\tif (source.getColumn() == destination.getColumn() && column == source.getColumn()) {\n\t\t\tint minRow = Math.min(source.getRow(), destination.getRow());\n\t\t\tint maxRow = Math.max(source.getRow(), destination.getRow());\n\t\t\treturn minRow < row && row < maxRow;\n\t\t} else if (source.getRow() == destination.getRow() && row == source.getRow()) {\n\t\t\tint minColumn = Math.min(source.getColumn(), destination.getColumn());\n\t\t\tint maxColumn = Math.max(source.getColumn(), destination.getColumn());\n\t\t\treturn minColumn < column && column < maxColumn;\n\t\t}\n\t\treturn false;\n\t}", "public boolean validStopCheck(){\n return points.validPolygon();\n }", "public boolean checkMove(location start_pos, location end_pos, chess[][] board){\n // move in vertical direction or horizontal direction\n if(start_pos.getY() == end_pos.getY() || start_pos.getX() == end_pos.getX() ){\n // Distance is greater than zero\n if(!isStay(start_pos, end_pos)){\n return !isChessOnWay(start_pos, end_pos, board);\n }\n }\n return false;\n }", "private boolean checkConnection(int x1, int x2) {\n\t\treturn (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||\n\t\t\t\t(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);\n\t\t\n\t}", "private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}", "private boolean overlaps(Point2D p0, Point2D p1)\n {\n return Math.abs(p0.getX() - p1.getX()) < 0.001 && Math.abs(p0.getY() - p1.getY()) < 0.001;\n }", "private boolean collides2d(double testMinX, double testMaxX, double testMinY, double testMaxY, double otherMinX, double otherMaxX, double otherMinY, double otherMaxY, double otherExtrudeX, double otherExtrudeY) {\n if (otherExtrudeX == 0)\n return true; //prevent division by 0\n double slope = otherExtrudeY / otherExtrudeX;\n double height;\n double height2;\n Coordinate2D lowerPoint;\n Coordinate2D upperPoint;\n if (otherExtrudeX > 0) { //extruding to the right\n height = -(slope * (otherExtrudeY > 0 ? otherMaxX : otherMinX)) + otherMinY;\n height2 = -(slope * (otherExtrudeY > 0 ? otherMinX : otherMaxX)) + otherMaxY;\n lowerPoint = new Coordinate2D((otherExtrudeY > 0 ? testMaxX : testMinX), testMinY);\n upperPoint = new Coordinate2D((otherExtrudeY > 0 ? testMinX : testMaxX), testMaxY);\n } else { //extruding to the left\n height = -(slope * (otherExtrudeY <= 0 ? otherMaxX : otherMinX)) + otherMinY;\n height2 = -(slope * (otherExtrudeY <= 0 ? otherMinX : otherMaxX)) + otherMaxY;\n lowerPoint = new Coordinate2D((otherExtrudeY <= 0 ? testMaxX : testMinX), testMinY);\n upperPoint = new Coordinate2D((otherExtrudeY <= 0 ? testMinX : testMaxX), testMaxY);\n }\n Line lowerLine = new Line(height, slope);\n Line upperLine = new Line(height2, slope);\n return (lowerPoint.getY() <= upperLine.getYatX(lowerPoint.getX()) && upperPoint.getY() >= lowerLine.getYatX(upperPoint.getX()));\n }", "public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}", "public boolean doesLineCut(Line line) {\n if (containsExclusive(line.getPoint1())) {\n return true;\n }\n if (containsExclusive(line.getPoint2())) {\n return true;\n }\n\n double x1 = Math.min(line.getPoint1().getX(), line.getPoint2().getX());\n double x2 = Math.max(line.getPoint1().getX(), line.getPoint2().getX());\n double y1 = Math.min(line.getPoint1().getY(), line.getPoint2().getY());\n double y2 = Math.max(line.getPoint1().getY(), line.getPoint2().getY());\n\n // y = mx + c\n // x = (y-c)/m\n double m = (line.getPoint2().getY() - line.getPoint1().getY()) / (line.getPoint2().getX() - line.getPoint1().getX());\n double c = line.getPoint1().getY() - (m * line.getPoint1().getX());\n\n double xNorth = Double.NaN;\n double xSouth = Double.NaN;\n double yWest = Double.NaN;\n double yEast = Double.NaN;\n if (Double.isInfinite(m)) {\n // Vertical line\n xNorth = x1;\n xSouth = x1;\n } else if (m == 0.0) {\n yWest = c;\n yEast = c;\n } else {\n xNorth = ((double) start.getY() - c) / m;\n xSouth = ((double) end.getY() - 1 - c) / m;\n yWest = m * (double) start.getX() + c;\n yEast = m * (double) end.getX() - 1 + c;\n }\n\n\n // Since both points are outside the rectangle, one crossed edged is enough.\n\n // Check north\n if (!Double.isNaN(xNorth) && start.getX() <= xNorth && xNorth < end.getX() && x1 <= xNorth && xNorth <= x2 && y2 > start.getY() && y1 < end.getY()) {\n return true;\n }\n // Check east\n if (!Double.isNaN(yWest) && start.getY() <= yWest && yWest < end.getY() && y1 <= yWest && yWest <= y2 && x2 > start.getX() && x1 < end.getX()) {\n return true;\n }\n // Check south\n if (!Double.isNaN(xSouth) && start.getX() <= xSouth && xSouth < end.getX() && x1 <= xSouth && xSouth <= x2 && y2 > start.getY() && y1 < end.getY()) {\n return true;\n }\n // Check west\n return !Double.isNaN(yEast) && start.getY() <= yEast && yEast < end.getY() && y2 <= yEast && yEast <= y2 && x2 > start.getX() && x1 < end.getX();\n }", "protected boolean hasConnection(int start, int end) {\n\t\tfor (Gene g : genes.values()) {\n\t\t\tif (g.start == start && g.end == end)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hitEdge(int newX, int newY)\n {\n return (newX > 0 && newX < screenWidth-width && newY > 0 && newY < screenHeight-height);\n }", "public boolean pathExists(int start, int end) {\n boolean[] visited = new boolean[nodeCount];\n // find a path with a greedy search\n PairHeap q = new PairHeap();\n visited[start] = true;\n int next = start;\n try {\n while (next != end) {\n // check every neighbour of next - add if necessary\n for (int j = 0; j < nodeCount; j++) {\n if (roads[next][j] > 0 && !visited[j]) { // connected\n visited[j] = true;\n int x = xs[j] - xs[end];\n int y = ys[j] - ys[end];\n int d = (int) Math.sqrt(x * x + y * y);\n q.insert(j, d);\n }\n }\n next = q.deleteMin();\n }\n return true;\n } catch (NullPointerException e) {\n return false;\n }\n }", "private boolean isCollision(Date currentStart, Date currentEnd,\n Date otherStart, Date otherEnd)\n {\n return currentStart.compareTo(otherEnd) <= 0\n && otherStart.compareTo(currentEnd) <= 0;\n }", "public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }", "public boolean isCoordOnStreet(Coordinate coord) {\n double dxc = coord.getX() - begin.getX();\n double dyc = coord.getY() - begin.getY();\n\n double dxl = end.getX() - begin.getX();\n double dyl = end.getY() - begin.getY();\n\n if (Math.abs(dxc * dyl - dyc * dxl) > 1) {\n\n return false;\n\n } else {\n\n if (Math.abs(dxl) >= Math.abs(dyl)) {\n return dxl > 0 ? begin.getX() <= coord.getX() && coord.getX() <= end.getX()\n : end.getX() <= coord.getX() && coord.getX() <= begin.getX();\n } else {\n return dyl > 0 ? begin.getY() <= coord.getY() && coord.getY() <= end.getY()\n : end.getY() <= coord.getY() && coord.getY() <= begin.getY();\n }\n }\n }", "private boolean lineline(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4){\n float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;\n }", "private static final boolean correct(List<Long> xs, int i, int low, int high) {\n final long target = xs.get(i);\n for (int x = low; x < high; x++) {\n for (int y = low + 1; y <= high; y++) {\n final long vx = xs.get(x);\n final long vy = xs.get(y);\n if ((vx != vy) && ((vx + vy) == target)) {\n return true;\n }\n }\n }\n return false;\n }", "@Override\n\tpublic boolean testMove(int xEnd, int yEnd, board b){\n return (xEnd == x - 1 && yEnd == y - 1) || (xEnd == x - 1 && yEnd == y) || (xEnd == x - 1 && yEnd == y + 1) || (xEnd == x && yEnd == y - 1) || (xEnd == x && yEnd == y + 1) || (xEnd == x + 1 && yEnd == y - 1) || (xEnd == x + 1 && yEnd == y) || (xEnd == x + 1 && yEnd == y + 1);\n\t}" ]
[ "0.6965608", "0.63703084", "0.6338922", "0.6208713", "0.6085419", "0.5964523", "0.5963434", "0.5955355", "0.5935504", "0.5884454", "0.58745974", "0.5864993", "0.5852133", "0.5850221", "0.5847762", "0.5845447", "0.58217025", "0.5819524", "0.5818916", "0.58164316", "0.5815643", "0.58055186", "0.58039385", "0.5792978", "0.57842666", "0.5778058", "0.57732326", "0.57715183", "0.5769438", "0.576359", "0.5749678", "0.57270956", "0.5724139", "0.5718789", "0.57184553", "0.5711175", "0.57018006", "0.5701208", "0.5696178", "0.5691154", "0.56902766", "0.5690021", "0.5688592", "0.5680659", "0.56746644", "0.56667566", "0.56636554", "0.564101", "0.56327546", "0.5629216", "0.562733", "0.56201506", "0.56177396", "0.56141675", "0.56123644", "0.5607668", "0.56049174", "0.56033224", "0.55942976", "0.55731064", "0.55694896", "0.5569146", "0.55686325", "0.55617106", "0.55613333", "0.55610645", "0.5558426", "0.5548296", "0.5548018", "0.55451375", "0.5539941", "0.5534926", "0.5532783", "0.5530233", "0.55297446", "0.55277497", "0.5527535", "0.5526429", "0.55176055", "0.55142826", "0.5512066", "0.5509403", "0.55036336", "0.55028456", "0.54941154", "0.5492271", "0.54758203", "0.5475149", "0.5470929", "0.5469343", "0.54691535", "0.5464359", "0.5458925", "0.5458875", "0.54565156", "0.5455844", "0.54535735", "0.5450004", "0.5447655", "0.544673" ]
0.7311257
0
return true if selection is complete, i.e. has a starting and stopping point
boolean complete() { return start2D != null && stop2D != null;// && start3D!=null && stop3D!=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean hasSelection();", "public boolean checkValidSelection(Point start, Point end){\n \t\tboolean flag = false;\n \t\tif (start.x == end.x) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if (start.y == end.y) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x - start.y) == (end.x - end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x + start.y) == (end.x + end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\treturn flag;\n \t}", "public boolean isSelectionChanged();", "@Override\n public boolean isFinished() {\n return swerve.getPose().getTranslation().distance(pointOfInterest) <= distance;\n }", "@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(positions[0] - targetDistance) <= allowedError && Math.abs(positions[1] - targetDistance) <= allowedError;\n }", "protected boolean isFinished() {\n \tdouble changeInX = targetX - Robot.sensors.getXCoordinate();\n \tdouble changeInY = targetY - Robot.sensors.getYCoordinate();\n \tdouble distance = Math.sqrt(Math.pow(changeInX, 2) + Math.pow(changeInY, 2));\n return distance < 8 || System.currentTimeMillis() >= stopTime;\n }", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "private boolean selectionFound(JTextPane pane) {\r\n\t\tfinal int selectionStart = pane.getSelectionStart();\r\n\t\tfinal int selectionEnd = pane.getSelectionEnd();\r\n\t\treturn selectionStart != selectionEnd;\r\n\t}", "boolean isDone(){\n\t\t\n\t\treturn (x0==x1 && y0==y1);\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn Math.abs(Robot.lidar.getRange() - range) < 2.0f;\n\t}", "@Override\n public boolean isFinished() \n {\n int curCount = mPath.kNumPoints - mCount;\n if(curCount<1)\n {\n System.out.println(mPath.kNumPoints);\n }\n \n return curCount<1;\n }", "private boolean isIntervalSelected(Date startDate, Date endDate)\n/* */ {\n/* 133 */ if (isSelectionEmpty()) return false;\n/* 134 */ return (((Date)this.selectedDates.first()).equals(startDate)) && (((Date)this.selectedDates.last()).equals(endDate));\n/* */ }", "protected boolean isFinished() {\n\t\treturn (distanceToCenter >= -3 && distanceToCenter <= 3);\n\t}", "protected boolean isFinished ()\n\t{\n\n\t\tif (Subsystems.goalVision.getProportionalGoalX() >= X_OFFSET\n\t\t - DEADBAND\n\t\t && Subsystems.goalVision\n\t\t .getProportionalGoalX() <= X_OFFSET + DEADBAND)\n\t\t//The goal is centered.\n\t\t{\n\t\t\t//We are aligned.\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n \t//finish if distance >= requried distance\n return (Robot.drive.leftEncoder.getDistance() >= distance || Robot.drive.rightEncoder.getDistance() >= distance);\n }", "public boolean isSelectionChanged() {\n return selectionChanged;\n }", "private boolean checkScanNodesCompleted() {\n\t\treturn cursor.getSelectionPos() >= jedisNodes.size();\n\t}", "protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}", "public boolean isFinished() {\n\t\t\n\t\treturn drivetrain.angleReachedTarget();\n\n\t}", "public boolean isSelectionEmpty() {\n return selectionEmpty;\n }", "protected boolean isFinished() {\r\n if (Math.abs(motorWithEncoder.getSetpoint() - motorWithEncoder.getPosition()) < 0.5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "boolean isComplete();", "boolean isComplete();", "protected boolean isFinished() {\n \tif(Math.abs(Robot.driveTrain.getHeading() - targetDirection) < 2) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "public boolean isComplete()\n\t{\n\t\treturn getStep() == getRepeatCount() * 2 + 1;\n\t}", "public boolean isComplete();", "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}", "@Override\n protected boolean isFinished() {\n //calculate distances traveled on X and Y axes by averaging encoder values\n double xAvg = (double)(Robot.driveTrain.getFREncoder() + Robot.driveTrain.getBLEncoder()) / 2.0;\n double yAvg = (double)(Robot.driveTrain.getFLEncoder() + Robot.driveTrain.getBREncoder()) / 2.0;\n \n //some checks to see if the robot is within 100 encoder counts of the target\n boolean finishedX = (Math.abs(xDist - xAvg) < 100);\n boolean finishedY = (Math.abs(yDist - yAvg) < 100);\n\n //finished if X and Y are within 100 counts or if the command times out\n return ((finishedX && finishedY) || isTimedOut());\n }", "public abstract boolean isComplete();", "protected boolean isFinished() {\r\n \tif (manipulator.isHighSwitchPressed() && speed > 0 ||\r\n \t\tmanipulator.isLowSwitchPressed() && speed < 0)\r\n \t\treturn true;\r\n \t\r\n \treturn isTimedOut();\r\n \t\r\n// \tif (targetHeight > startHeight) {\r\n// \t\treturn manipulator.getAverageElevatorHeight() >= targetHeight;\r\n// \t} else {\r\n// \t\treturn manipulator.getAverageElevatorHeight() <= targetHeight;\r\n// \t}\r\n }", "protected boolean isFinished() {\n \n \tif(Math.abs(RobotMap.navx.getAngle() - this.desiredAngle) <=2) {\n \n \t\treturn true;\n \t}\n return false;\n }", "public boolean isComplete(){\r\n\r\n\t\t// TODO\r\n\t\t\r\n\t\tif(!isValid()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private void complete(boolean complete) {\n if (completed)\n return;\n \n drawingPad.getSelectedItems().finalizeMovement();\n \n if (complete) {\n iFrameOperator.enableCopyCut(false);\n iFrameOperator.enableAdvanceTools(false);\n drawingPad.finalizeSelectedItems();\n }\n \n drawingPad.repaint();\n }", "public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }", "public boolean isComplete()\n {\n return (getCount() >= getGoal());\n }", "protected boolean isFinished() {\n //boolean onTarget = Math.abs(\n //encoderValue - Math.abs(Robot.arm.getArmEncoderValue())) <= RobotMap.ArmConstants.ARM_ENCODER_BUFFER;\n boolean hasBeenZeroed = Robot.arm.hasButtonBeenPressed();\n boolean onTarget = false;\n if(initialPos < setpoint) {\n onTarget = Math.abs(Robot.arm.getArmEncoderValue()) >= setpoint;\n }else if(initialPos >= setpoint) {\n onTarget = Math.abs(Robot.arm.getArmEncoderValue()) <= setpoint;\n }\n return this.isTimedOut() || !hasBeenZeroed || onTarget;\n }", "protected boolean isFinished() {\n\t\treturn RobotMap.VisionDistanceLeftPIDController.onTarget() && RobotMap.VisionDistanceRightPIDController.onTarget() || !hasStarted;\n\t}", "protected boolean isFinished() {\n \tif (Math.abs(_finalTickTargetLeft - Robot.driveTrain.getEncoderLeft()) <= 0 &&\n \t\t\tMath.abs(_finalTickTargetRight - Robot.driveTrain.getEncoderRight()) <= 0)\n \t{\n \t\treturn true;\n \t}\n return false;\n }", "boolean isFinished() {\n return includedInLastStep() && (end == elementList.size() - 1);\n }", "boolean hasIsComplete();", "boolean hasIsComplete();", "protected boolean isFinished() {\n \treturn (Robot.sonar.getDistance() <= distance);\n }", "@Override\n\tpublic boolean isSelected() {\n\t\tfor (DataFromPointInfo dataFromPointInfo : fromPoints) {\n\t\t\tDataFromPoint fromPoint = dataFromPointInfo.fromPoint;\n\t\t\tif (fromPoint.isSelected()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tfor (DataToPointInfo dataToPointInfo : toPoints) {\n\t\t\tDataToPoint toPoint = dataToPointInfo.toPoint;\n\t\t\tif (toPoint.isSelected()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn super.isSelected();\n\t}", "public boolean hasSelectionLimit()\n {\n return (this.getSelectionLimit() > 0L);\n }", "public abstract int getSelectionEnd();", "public boolean isSelectionEmpty() {\n\t\t\treturn tablecolselectmodel.isSelectionEmpty();\n\t\t}", "protected boolean isFinished() {\r\n \tif (i >= 1 || i <= 1){\r\n \treturn true;\r\n \t}\r\n\t\treturn false;\r\n }", "protected boolean isFinished() {\n\t\tif (!hasPathStarted) {\n\t\t\treturn false;\n\t\t}\n\t\tboolean leftComplete = status.activePointValid && status.isLast;\n\t\tboolean trajectoryComplete = leftComplete;\n\t\tif (trajectoryComplete) {\n\t\t\tSystem.out.println(\"Finished trajectory\");\n\t\t}\n\t\treturn trajectoryComplete || isFinished;\n\t}", "public boolean isFinished(){\n return (this.radius >= this.maxHeight/2);\n }", "boolean hasEndPosition();", "boolean hasEndPosition();", "public boolean isSelectionListener() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return Math.abs(m_currentError) <= constants.tolerance;\n }", "private boolean checkAddSelectPoint(float x, float y) {\n mLastTouchX = x;\n mLastTouchY = y;\n for (int i = 0; i < mRectFPointList.size(); i++) {\n RectF rect = mRectFPointList.get(i);\n float mOuterOvalRadius = Math.max(mNormalOvalRadius, mSelectOvalRadius);\n if (mOuterOvalRadius < DEFAULT_NORMAL_OVAL_RADIUS) {\n mOuterOvalRadius = DEFAULT_NORMAL_OVAL_RADIUS;\n }\n if (getDistance(rect.centerX(), rect.centerY(), x, y) <= mOuterOvalRadius) {\n // valid distance\n if (!mRectFSelectPointList.contains(rect)) {\n mRectFSelectPointList.add(rect);\n mInputPassword.add(i + 1);\n return true;\n }\n return false;\n }\n }\n return false;\n }", "private void checkGridCompletion() {\n if (this.model.getPuzzle().isFilled()) {\n if (this.model.getPuzzle().isSolved()) {\n puzzleCompleted();\n }\n }\n }", "@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }", "protected boolean isFinished() {\n \t//System.out.println(\"FINISHED\");\n \tif(sizeArray.length>0)\n \t\treturn sizeArray[0]>targetSize;\n else\n \treturn noBubbles;\n \t\n \t\n }", "boolean applicable(Selection selection);", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "public boolean isFinished() {\n return (Math.abs(RobotContainer.drive.getAngle() - this.angle) <= 1);\n }", "@Override\n public boolean isFinished() {\n return controller.atSetpoint();\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}", "boolean hasStablesSelected();", "@Override\n public boolean canFinish() {\n ITemplateSection[] sections = fSelectionPage.getSelectedTemplates();\n for (int i = 0; i < sections.length; i++) {\n int pageCount = sections[i].getPageCount();\n for (int j = 0; j < pageCount; j++) {\n WizardPage page = sections[i].getPage(j);\n if (page != null && !page.isPageComplete())\n return false;\n }\n }\n return true;\n }", "protected boolean isFinished() {\n \tif (Robot.clawElevator.getContainerHeight() == 0) {\n \t\treturn Robot.clawElevator.getLowerSwitch();\n \t} else {\n \t\treturn Robot.clawElevator.getLowerSwitch() || Robot.clawElevator.isAtIntemediateStop(Math.abs(Robot.clawElevator.getContainerHeight() - 3), false);\n \t}\n }", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "@Override\n\tpublic boolean isIncomplete() {\n\t\treturn model.isIncomplete();\n\t}", "protected boolean isFinished() {\n\t\treturn Robot.roborio.getYAccelerationComparedToThreshold(threshold, true) || \n\t\t\t\tinitDistance - Robot.drivetrain.getRightEncoderPos(0) < 18 * Drivetrain.kEncoderTicksPerInch; \n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn Math.abs(elevator.getWristPosition() - elevator.getWristStages()[elevator.getWristStage()]) < Math.PI/18 && !elevator.isRunning(ElevatorSubsystem.Follower.ELEVATOR);\r\n\t}", "public boolean isSelected() { \n \treturn selection != null; \n }", "protected boolean isFinished() {\n return Robot.m_elevator.onTarget();\n }", "@Override\r\n\tboolean isFinished() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(checkForWin() != -1)\r\n\t\t\treturn true;\r\n\t\telse if(!(hasValidMove(0) || hasValidMove(1)))\r\n\t\t\treturn true; //game draw both are stuck\r\n\t\telse return false;\r\n\t}", "boolean complete();", "@Override\n protected boolean isFinished() {\n SmartDashboard.putNumber(\"TurnCommand Current Heading\", Robot.m_drivetrain.getAngle());\n SmartDashboard.putNumber(\"TurnCommand Target\", Start + TurnGoal);\n if (IsLeft) {\n return Robot.m_drivetrain.getAngle() <= Start + TurnGoal;\n } else {\n return Robot.m_drivetrain.getAngle() >= Start + TurnGoal;\n }\n }", "protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }", "protected boolean isFinished() {\n\tif(this.motionMagicEndPoint >0) {\n \tif(Math.abs(RobotMap.motorLeftTwo.get() )< 0.09 && Math.abs(RobotMap.motorRightTwo.get() )> -0.09&& Timer.getFPGATimestamp()-starttime > 10) {\n \t\treturn true;\n \t}\n\t}\n\t\n return false;\n }", "public boolean isComplete() {\n return currentBracket.isComplete();\n }", "boolean hasStart();", "protected void onSelectionPerformed(boolean success) {\n }", "public boolean forceSelection();", "boolean isSetEndPosition();", "public boolean done() {\n\t\treturn pos>=program.length();\n }", "boolean hasDestRange();", "public abstract boolean isInSelectionImage(final Rectangle _r);", "protected boolean isFinished() {\n\t\t// get the current angle from the gyro\n\t\tdouble currentAngle = Robot.gyroSubsystem.GyroPosition();\n\n\t\t// see if we are within 2 degrees of the target angle (90 degrees)\n\t\tif (Math.abs(currentAngle - 90) <= 2) {\n\t\t\t// we have hit our goal of 90, end auto program\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// we are not quite there yet, keep going\n\t\t\treturn false;\n\t\t}\n\n\t}", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\tif (!stoppable) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\t// return Robot.elevator.getLevel() == Level.Bottom;\n\t\t\treturn (Robot.elevator.getLevel() == Level.Bottom && v < 0.0) || (Robot.elevator.getLevel() == Level.Top && v > 0.0);\n\t\t}\n\t}", "public boolean isComplete() {\n\t\treturn false;\n\t}", "@Override\n protected boolean isFinished() {\n return (!drive.isRunning(Drivetrain.Follower.DISTANCE) && !drive.isRunning(Drivetrain.Follower.ANGLE));\n\n }", "protected boolean isFinished() {\n \tcurrentAngle = Robot.gyroSubsystem.gyroPosition();\n \tif (targetAngle - error > currentAngle || targetAngle + error < currentAngle) {\n \t\treturn false;\n \t} else {\n \t\tRobot.driveSubsystem.arcadeDrive(0, 0);\n \t\treturn true;\n \t}\n }", "protected boolean isFinished() {\n if (waitForMovement) return (timeSinceInitialized() > Robot.intake.HOPPER_DELAY);\n return true;\n }", "public boolean isReady() {\n return mInputPoints != null && mOutputPoints != null &&\n mInputPoints.size() == mOutputPoints.size() &&\n mInputPoints.size() >= getMinimumPoints();\n }", "boolean hasFinished();", "public Boolean isComplete() {\n return true;\n }", "public boolean isCompleted()\n\t{\n\t\treturn pieces.length == existing.cardinality();\n\t}", "@Override\n public boolean isFinished() {\n return m_desiredColor == ColorWheel.UNKNOWN || \n m_desiredColor == m_colorSpinner.checkColor();\n }", "public boolean select() {\n\n // The applet declines to be selected\n // if the pin is blocked.\n if ( pin.getTriesRemaining() == 0 )\n return false;\n\n return true;\n\n }", "public boolean isFinished() {\n Figure[] figures = this.getFigures();\n for (Figure figure : figures) {\n if (this.map.isFigureInHome(figure) == -1) {\n return false;\n }\n }\n\n return true;\n }", "public boolean canSelectionChange() {\n return true;\n }", "protected boolean isFinished() {\r\n if (lineHasBeenFound) {\r\n lineTrackTime = System.currentTimeMillis();\r\n }\r\n if(System.currentTimeMillis()-lineTrackTime > 4000){\r\n return true;\r\n }\r\n return false;\r\n }" ]
[ "0.7145893", "0.7068959", "0.6759892", "0.6742121", "0.6597949", "0.657986", "0.6528815", "0.6526838", "0.6507046", "0.64960504", "0.64896035", "0.64839536", "0.64088875", "0.64072216", "0.63776976", "0.6334152", "0.63323575", "0.6318275", "0.63169646", "0.63070565", "0.62852263", "0.6236254", "0.6236254", "0.62325615", "0.6216517", "0.62085927", "0.6193749", "0.6189123", "0.61673087", "0.61637497", "0.6162192", "0.6137772", "0.61360806", "0.6133176", "0.61240286", "0.61189175", "0.6111276", "0.6106001", "0.60773516", "0.60626686", "0.60626686", "0.60333395", "0.6025658", "0.6025573", "0.6017057", "0.60032254", "0.600213", "0.59778255", "0.5973453", "0.59619814", "0.59619814", "0.5960052", "0.59570646", "0.5941781", "0.5937769", "0.59189266", "0.59079856", "0.59030545", "0.5893822", "0.58899647", "0.58864605", "0.58715814", "0.5860022", "0.5849162", "0.5844413", "0.58407307", "0.58339953", "0.5830665", "0.58283514", "0.5825728", "0.58236367", "0.582268", "0.5819992", "0.5792482", "0.5784723", "0.57832295", "0.57827866", "0.5773255", "0.5763126", "0.57554173", "0.575048", "0.5740855", "0.573287", "0.5723762", "0.5721056", "0.5720051", "0.5715968", "0.5714276", "0.57067347", "0.570151", "0.5696668", "0.569536", "0.5690982", "0.5682347", "0.56766236", "0.5676179", "0.56756186", "0.567115", "0.56691146", "0.56687045" ]
0.6571672
6
The min X value of the 2D point
public float min2DX() { return Math.min(stop2D.x, start2D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMinX(){\n return points.get(0).getX();\n }", "Coordinate getMinX();", "public Point getXMin()\n {\n return (Point)xMin.clone();\n }", "public double getMinX() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn pointList.get(0).getX();\n\t}", "public double obterXmin() {\n\t\treturn xmin;\n\t}", "int getXMin();", "private float getMinX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float minX = Float.POSITIVE_INFINITY;\n for (float [] point : points) {\n minX = Math.min(minX, point [0]);\n } \n return minX;\n }", "public double getMinimumX () {\n return minimumX;\n }", "public double getMinX() {\n\treturn minX;\n }", "public double getMinX() {\n\t\treturn nx;\n\t}", "public Point getMinPoint() {\r\n int minX = children.get(0).getShapeStartingPoint().getX();\r\n int minY = children.get(0).getShapeStartingPoint().getY();\r\n for(IShape shape: children) {\r\n if(minX > shape.getShapeStartingPoint().getX()) {\r\n minX = shape.getShapeStartingPoint().getX();\r\n }\r\n if(minY > shape.getShapeStartingPoint().getY()) {\r\n minY = shape.getShapeStartingPoint().getY();\r\n }\r\n }\r\n minPoint = new Point(minX,minY);\r\n return minPoint;\r\n }", "private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}", "public int getxMin() {\n\t\treturn xMin;\n\t}", "float xMin();", "@Override\n public int getMinX() {\n return this.minX;\n }", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public int minX()\n\t{\n\t\tint m = coords[0][0];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min (m, coords[i][0]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public double getXRangeMin() {\n return xRangeMin;\n }", "public int minY()\n\t{\n\t\tint m = coords[0][1];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min(m, coords[i][1]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public double getMinDist(){\n\t\tquickSort(0, pnt.length - 1);\t// for divide\n\t\t/* CASE: same point */\n\t\tif(min == 0)\n\t\t\treturn 0;\n\n\t\tmin = getDist(pnt[0], pnt[pnt.length - 1]);\n\t\tdivide(0, pnt.length - 1);\n\n\t\treturn min;\n\t}", "public double minXp(){\n\t\tmin = xp[0];\n\t\tfor(int i=1;i<xp.length;i++){\n\t\t\tif(xp[i]<min){\n\t\t\t\tmin=xp[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "public Point getXLower()\n {\n return (Point)xLow.clone();\n }", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "public void theMinX() {\n\t\tfloat minx = coords.getFirst().getX(); // set the smallest x to the first one\n\t\tfor(Coord2D c: coords) { // go through the whole linked list\n\t\t\tif(c.getX() < minx) { // if the x of the current coordinate set is smaller than the current min\n\t\t\t\tminx = c.getX(); // make that current coordinate the new min\n\t\t\t}\n\t\t}\n\t\tthis.setMinX(minx);\n\t}", "public double getX() {\n\t\treturn point[0];\n\t}", "public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }", "public int getMinX() {\n return scroller.getMinX();\n }", "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "float getXStepMin();", "@Override\n public int getMinTileX() {\n return convertXToTileX(getMinX());\n }", "private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY())\n\t\t\t\tmin = pointList.get(i).getY();\n\t\treturn min;\n\t}", "public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }", "protected static Point2D.Float getLowestPoint(List<Point2D.Float> points) {\n\n\t\tPoint2D.Float lowest = points.get(0);\n\n\t\tfor (int i = 1; i < points.size(); i++) {\n\n\t\t\tPoint2D.Float temp = points.get(i);\n\n\t\t\tif (temp.y < lowest.y || (temp.y == lowest.y && temp.x < lowest.x)) {\n\t\t\t\tlowest = temp;\n\t\t\t}\n\t\t}\n\n\t\treturn lowest;\n\t}", "public static double getOrigX() {\n return 0.12799999117851257;\n }", "public int getPointX() {\n return pointX;\n }", "public double elementMinAbs() {\n return ops.elementMinAbs(mat);\n }", "public double getStartX() {\n\treturn v1.getX();\n }", "float getRenderableMinX(Long id) throws RemoteException;", "public static double getOrigX() {\n return 2.926776647567749;\n }", "public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}", "public static double getOrigX() {\n return 0.13199996948242188;\n }", "default DiscreteDoubleMap2D pointWiseMinimum(double value) {\r\n\t\treturn (x, y) -> Math.min(this.getValueAt(x, y), value);\r\n\t}", "private float getMaxX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float maxX = Float.NEGATIVE_INFINITY;\n for (float [] point : points) {\n maxX = Math.max(maxX, point [0]);\n } \n return maxX;\n }", "public double getMaxX() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn pointList.get(pointList.size()-1 ).getX();\n\t}", "public int getXPoint() {\r\n return this.x;\r\n }", "float yMin();", "public double getMaxX() { return getX() + getWidth(); }", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "public double getX() {\n return mX;\n }", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "double getXPosition();", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "protected double xPixelToPosition(double pixel) {\r\n// double axisV = xPositionToPixel(originX);\r\n// return (pixel - axisV) * (maxX - minX) / (double) getWidth();\r\n return minX + pixel * (maxX - minX) / getWidth();\r\n }", "public double getMaximumX () {\n return minimumX + width;\n }", "double getX() { return pos[0]; }", "double getMin();", "double getMin();", "public float min3DX() {\n return Math.min(stop3D.x, start3D.x);\n }", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "static double minimalDistance(int[] x, int y[]) {\n Point[] points = new Point[x.length];\n for (int i = 0; i < x.length; i++) {\n points[i] = new Point(x[i], y[i]);\n }\n\n Arrays.sort(points, (a, b) -> a.x == b.x ? Long.signum(a.y - b.y) : Long.signum(a.y - b.y));\n\n PairPoint minPointsDistance = getMinPointsDistance(points, 0, x.length);\n return minPointsDistance == null ? -1 : minPointsDistance.distance;\n }", "public double getMinimumY () {\n return minimumY;\n }", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "private float getMinY(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float minY = Float.POSITIVE_INFINITY;\n for (float [] point : points) {\n minY = Math.min(minY, point [1]);\n } \n return minY;\n }", "double getMin() {\n\t\t\treturn value_min;\n\t\t}", "public Point min() {\n\t\tif (heapSize >= 0)\n\t\t\treturn new Point(heapArr[0]);\n\t\telse\n\t\t\tthrow new RuntimeException(\"MinHeap is empty!\");\n\t}", "double getStartX();", "public final double getMin() {\r\n\t\treturn this.m_min;\r\n\t}", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "public double getX()\n\t{\n\t\treturn x;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's x-coordinate\n\t}", "protected double getMinDouble() {\r\n boolean handleOutOfMemoryError = false;\r\n double min = Double.POSITIVE_INFINITY;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n double value;\r\n int row;\r\n int col;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell(\r\n row,\r\n col);\r\n if (value != noDataValue) {\r\n min = Math.min(\r\n min,\r\n value);\r\n }\r\n }\r\n }\r\n return min;\r\n }", "int getMin() {\n\t\tif (stack.size() > 0) {\n\t\t\treturn minEle;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "public double min() {\n\t\tif (count() > 0) {\n\t\t\treturn _min.get();\n\t\t}\n\t\treturn 0.0;\n\t}", "@Override\n public double getPosX() {\n return this.pos[0];\n }", "public double getMinValue() {\n\t\tdouble min = Double.POSITIVE_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 < min)\n\t\t\t\tmin = value;\n\t\t}\n\t\treturn min;\n\t}", "Double getMinimumValue();", "public Double getXAxisMin(String tag, Metric metric) {\n Double multiplier = getMultiplier(tag);\n if (multiplier == 0) {\n return Double.parseDouble(getFirst(tag));\n }\n return Double.parseDouble(getFirst(tag)) + (Double.parseDouble(getLast(tag)) - 1) * multiplier;\n }", "public double getX()\n\t\t{\n\t\t\treturn this.x[0];\n\t\t}", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public final double getMinConvexCoefficient()\n {\n return minConvexCoefficient;\n }", "public Point ExtractMin() {\n\t\tif (heapSize < 0)\n\t\t\tthrow new RuntimeException(\"MinHeap underflow!\");\n\t\tPoint min = new Point(heapArr[0]);\n\t\theapArr[0] = new Point(heapArr[heapSize - 1]);\n\t\theapSize = heapSize - 1;\n\t\tminHeapify(0);\n\t\treturn min;\n\n\t}", "public Ndimensional getStartPoint();", "public static int getOrigX() {\n return 1;\n }", "public double getMinimum() {\n return (min);\n }", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public static double getOrigX() {\n return 0.08838501572608948;\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "public GPoint getFirstPoint() {\n return(point1);\n }", "public int getX()\n\t{\n\t\treturn mX;\n\t}", "Coordinate getMinY();", "public double getMinS() {\n return u[0];\n }", "public double getStartX()\n {\n return startxcoord; \n }", "public double getMaxX() {\n\t\treturn mx;\n\t}", "public int getX() {\n return (int) Math.round(x);\n }", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public double getXPixel()\n {\n return xPixel;\n }", "public double getX() { return _width<0? _x + _width : _x; }", "public double getMinY() {\n\treturn minY;\n }", "public Point getLowerPoint() {\n return lower;\n }" ]
[ "0.8357372", "0.8223785", "0.7911162", "0.78482693", "0.78296775", "0.77311397", "0.760955", "0.75871974", "0.7582669", "0.7562433", "0.75159407", "0.743362", "0.7408148", "0.73513037", "0.7304208", "0.72746587", "0.7237327", "0.71930254", "0.7179675", "0.70785916", "0.70095706", "0.6968879", "0.69661105", "0.69342643", "0.6868741", "0.68557054", "0.6803096", "0.6754704", "0.67529035", "0.6735347", "0.67312914", "0.66701007", "0.6545904", "0.65444756", "0.6536111", "0.6533381", "0.6511067", "0.64992857", "0.64916724", "0.6483705", "0.6478669", "0.64713246", "0.64580077", "0.64521474", "0.6450813", "0.6448111", "0.64444566", "0.6416238", "0.64037925", "0.6394533", "0.63891625", "0.6387831", "0.6387831", "0.6387831", "0.6385398", "0.63817275", "0.63658214", "0.63646215", "0.63646215", "0.63597775", "0.6348964", "0.6342741", "0.63367057", "0.6331104", "0.63307554", "0.632462", "0.63230425", "0.63224566", "0.6319317", "0.6315767", "0.63122207", "0.6310665", "0.63099504", "0.63074696", "0.63054043", "0.6303659", "0.62953156", "0.62873435", "0.6285286", "0.62817895", "0.6275037", "0.6260218", "0.62517923", "0.62486905", "0.6243146", "0.6237229", "0.62363994", "0.62311023", "0.62282157", "0.6220427", "0.62200564", "0.62166685", "0.62160987", "0.6206856", "0.6204417", "0.6200533", "0.6195766", "0.61914945", "0.6189646", "0.6184529" ]
0.7293146
15
The max X value of the 2D point
public float max2DX() { return Math.max(stop2D.x, start2D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "public double getMaxX() {\n\t\treturn mx;\n\t}", "public double getMaxX() { return getX() + getWidth(); }", "public double getMaxX() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn pointList.get(pointList.size()-1 ).getX();\n\t}", "public double getMaximumX () {\n return minimumX + width;\n }", "public double max()\n\n {\n double max=xyValueArray.get(0).getY();\n\n for (int i = 0; i < xyValueArray.size(); i++) {\n if (xyValueArray.get(i).getY() > max) {\n max = xyValueArray.get(i).getY();\n }\n }\n return max;\n }", "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 }", "private float getMaxX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float maxX = Float.NEGATIVE_INFINITY;\n for (float [] point : points) {\n maxX = Math.max(maxX, point [0]);\n } \n return maxX;\n }", "public double getMaxX() {\n\treturn maxX;\n }", "float xMax();", "public final int getMaxX() {\n return getMinX() + getWidth();\n }", "public int getMaxX() {\n\t\treturn maxX;\n\t}", "public double getXRangeMax() {\n return xRangeMax;\n }", "public int getXMax(){\n\t\treturn xDim;\n\t}", "public int getxMax() {\n\t\treturn xMax;\n\t}", "public float getMaxX() {\n return maxX;\n }", "public int getMaximumPoints();", "@Override\n\tpublic double getMaxX() {\n\t\treturn this.getPosition().getX();\n\t}", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "private double findMaxY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble max = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (max<pointList.get(i).getY())\n\t\t\t\tmax = pointList.get(i).getY();\n\t\treturn max;\n\t}", "public int getXMax(){\n\t\tDouble max = timeIncrements.get(timeIncrements.size()-1);\n\t\txMax = max.intValue();\n\t\treturn xMax;\n\t}", "public int getMax()\n {\n int max = data.get(0).getX();\n\n for(int i = 0; i < data.size(); i++)\n {\n if (data.get(i).getX() > max)\n {\n max = data.get(i).getX();\n }\n }\n\n\n return max;\n }", "float yMax();", "@Override\n public double getMaxX() {\n if (getPoints() == null || getPoints().size() == 0) {\n return defaultY;\n }\n Set<Double> keys = getPoints().keySet();\n for (Double key : keys) {\n if (key >= adapter.getMaxFrequency()) {\n return key;\n }\n }\n return getPoints().lastKey();// this.getPoints().ceilingKey(this.getPoints().lastKey()/2);\n }", "float getXStepMax();", "@Basic\n\tpublic double getVxmax() {\n\t\treturn this.vxmax;\n\t}", "public double getFrameMaxX() { return isRSS()? getFrame().getMaxX() : getMaxX(); }", "public void theMaxX() {\n\t\tfloat maxx = coords.getFirst().getX(); // set the largest x to the first one\n\t\tfor(Coord2D c: coords) { // go through the whole linked list\n\t\t\tif(c.getX() > maxx) { // if the x of the current coordinate set is larger than the current max\n\t\t\t\tmaxx = c.getX(); // make that current coordinate the new max\n\t\t\t}\n\t\t}\n\t\tthis.setMaxX(maxx);\n\t}", "public int getYMax(){\n\t\treturn yDim;\n\t}", "public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }", "public int getMaxTileX() {\n return convertXToTileX(getMaxX() - 1);\n }", "public Coord maxCell()\n {\n\t int maxX = getGrid().keySet().stream().mapToInt(Coord::getX).max().orElse(0);\n\n\t int maxY = getGrid().keySet().stream().mapToInt(Coord::getY).max().orElse(0);\n\n\t return new Coord(maxX, maxY);\n }", "public double elementMaxAbs() {\n return ops.elementMaxAbs(mat);\n }", "org.apache.xmlbeans.XmlDecimal xgetMaximum();", "private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }", "public int getYMax(){\n\t\tDouble max = Collections.max(byteIncrements);\n\t\tyMax = max.intValue();\n\t\treturn yMax;\n\t}", "public double getMaxT() {\n return v[points_per_segment - 1];\n }", "private float getMaxY(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float maxY = Float.NEGATIVE_INFINITY;\n for (float [] point : points) {\n maxY = Math.max(maxY, point [1]);\n } \n return maxY;\n }", "public double getMaxDistance()\n\t{\n\t // Make sure it went some distance\n\t\tif(xPosList.size() > 0)\n\t\t{\n\t\t\treturn this.xPosList.get(xPosList.size() - 1);\n\t\t}\n\n\t\treturn 0;\n\t}", "public int getMaxX() {\n return scroller.getMaxX();\n }", "public double getMaxY() { return getY() + getHeight(); }", "public double getMaximumY () {\n return minimumY + height;\n }", "double rightmost_alien_x() {\n double max_x = 0;\n for (Alien alien : aliens) {\n if (alien.x_position > max_x) {\n max_x = alien.x_position;\n }\n }\n return max_x;\n }", "public double getYRangeMax() {\n return yRangeMax;\n }", "@Override\n public int iamax(INDArray x) {\n return NativeBlas.isamax(x.length(), x.data(), x.offset(), x.stride()[0]) - 1;\n }", "public float max3DX() {\n return Math.max(stop3D.x, start3D.x);\n }", "default DiscreteDoubleMap2D pointWiseMaximum(double value) {\r\n\t\treturn (x, y) -> Math.max(this.getValueAt(x, y), value);\r\n\t}", "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}", "Double getMaximumValue();", "public double getMaxDensity(){\n\t\tdouble mode = Math.exp(location - scale * scale);\n\t\treturn getDensity(mode);\n\t}", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "@Override\n public int iamax(IComplexNDArray x) {\n return NativeBlas.icamax(x.length(), x.data(), x.offset(), 1) - 1;\n }", "public DoubleMatrix1D getDeltaMax() { return deltaMax_; }", "public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }", "@Override\n public double getMaxX() {\n return curMap.getMap().getWidth();\n }", "public Boolean getLargestAxis() {\n\t\tdouble widthX = this.maxx.getData().getX()-this.minx.getData().getX();\n\t\tdouble widthY = this.maxy.getData().getY()-this.miny.getData().getY();\n\t\treturn (widthX > widthY);\n\t}", "public double getMaxY() {\n\treturn maxY;\n }", "public int getyMax() {\n\t\treturn yMax;\n\t}", "public Integer getMaxPax() {\n return this.maxPax;\n }", "public double getMaximum() {\n return (max);\n }", "public double getxMaxSpeed() {\n return this.X_MAX_SPEED;\n }", "public double getApproxEmax() {\n try {\n return computeE(getTmax());\n }\n catch (Exception e) {\n return 0x0.0p0;\n }\n }", "public float getMinX(){\n return points.get(0).getX();\n }", "private double getMaxOfPool(double[][] input, int rowStart, int colStart,\n int spatialExtent) {\n double max = input[rowStart][colStart];\n for (int row = rowStart; row < rowStart + spatialExtent; row++) {\n for (int col = colStart; col < colStart + spatialExtent; col++) {\n max = Math.max(max, input[row][col]);\n }\n }\n return max;\n }", "double getMax();", "double getMax();", "public double getMaxY() {\n\t\treturn my;\n\t}", "public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}", "public int getMaxY() {\n return maxY;\n }", "public Output<TFloat32> yMax() {\n return yMax;\n }", "public double getHighestChildY() {\n\t\t/* Aucun enfant => aucune contrainte en y vers le bas */\n\t\tif (childrenEdges == null)\n\t\t\treturn Double.MAX_VALUE;\n\t\t\n\t\tdouble minY = Double.MAX_VALUE;\n\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t/*\n\t\t\t * Recherche de l'extrémité la plus basse de l'arête (la plus haute étant le noeud\n\t\t\t * courant)\n\t\t\t */\n\t\t\tEdge currentEdge = childrenEdges.elementAt(i);\n\t\t\tdouble y1 = currentEdge.getSource().getShape().getY();\n\t\t\tdouble y2 = currentEdge.getDestination().getShape().getY();\n\t\t\tdouble y = (y1 > y2) ? y1 : y2;\n\t\t\t\n\t\t\t/* Recherche de l'extrémité la plus haute parmi toutes les extrémités basses */\n\t\t\tif (y < minY)\n\t\t\t\tminY = y;\n\t\t}\n\t\t\n\t\treturn minY;\n\t}", "public static int getIndexOfMax(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double max = Double.MIN_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] > max) {\n max = x[i];\n index = i;\n }\n }\n return (index);\n }", "private double bufferHeadMaxX()\n {\n if (segmentBuffer.size() <= 0)\n return Double.NaN;\n LineSeg seg = (LineSeg) segmentBuffer.get(0);\n return seg.getMaxX();\n }", "public static Point minmax (int[] a) {\n int n = a.length;\n Point mm = new Point (a[0], a[0]);\n\n for (int i=1; i<n; i++) {\n if (a[i] > mm.x) mm.x = a[i];\n if (a[i] < mm.y) mm.y = a[i];\n }\n return mm;\n }", "public final int getMaximumHitPoints () {\n return this.details.getMaxHitPoints();\n }", "public E calculateMaximum() {\n return FindMaximum.calculateMaximum(x , y , z);\n }", "public int minY()\n\t{\n\t\tint m = coords[0][1];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min(m, coords[i][1]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public double getEndX() {\n\treturn v2.getX();\n }", "public float max2DY() {\n return Math.max(stop2D.y, start2D.y);\n }", "private static int peakX(int x, int y, int[][] nums) {\n if (x > 0 && nums[y][x] < nums[y][x - 1])\n return -1;\n if (x < nums[0].length - 1 && nums[y][x] < nums[y][x + 1])\n return 1;\n return 0;\n }", "E maxVal();", "public double getBiggestY() {\r\n double y = 0;\r\n List<Enemy> enemyLowest = this.lowestLine();\r\n if (enemyLowest.size() > 0) {\r\n y = enemyLowest.get(0).getCollisionRectangle().getBoundaries().getLowY();\r\n for (Enemy e: enemyLowest) {\r\n if (e.getCollisionRectangle().getBoundaries().getLowY() > y) {\r\n y = e.getCollisionRectangle().getBoundaries().getLowY();\r\n }\r\n }\r\n return y;\r\n }\r\n return y;\r\n }", "float zMax();", "public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}", "int getXMin();", "public double getMaximumValue() { return this.maximumValue; }", "public int extractMaximum() {\n \n int max = maximum();\n\n if (max == -1) {\n assert(xft.size() == 0);\n return -1;\n }\n \n remove(max);\n \n return max;\n }", "private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY())\n\t\t\t\tmin = pointList.get(i).getY();\n\t\treturn min;\n\t}", "public double getChannelYPositionLast() {\n double max = 0.0;\n for (ChannelGraphic channelGraphic : channelGraphics) {\n if (channelGraphic.getyPosition() > max) {\n max = channelGraphic.getyPosition();\n }\n }\n return max;\n }", "public Float getT1B11Xfmax() {\r\n return t1B11Xfmax;\r\n }", "public Double getMaximumValue () {\r\n\t\treturn (maxValue);\r\n\t}", "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 static void setMaxPoint(Point p) {\n X_MAX = p.x - 10;\n Y_MAX = p.y - 10;\n\n WIDTH = p.x;\n HEIGHT = p.y;\n }", "public double getX() {\n\t\treturn point[0];\n\t}", "public float getYChartMax() {\n return 0.0F;\n }", "public int getMaxY() {\n\t\treturn maxY;\n\t}", "public double getX2()\n\t{\n\t\treturn this.x[2];\n\t}", "public float getMaximumSpan(int axis) {\n return Integer.MAX_VALUE;\n }", "public double getY() {\n\t\treturn point[1];\n\t}" ]
[ "0.8001957", "0.7797149", "0.7643447", "0.74745166", "0.74733794", "0.74544954", "0.7399487", "0.7388545", "0.7341583", "0.7321214", "0.7286805", "0.7174605", "0.7143014", "0.7140928", "0.70949185", "0.70836544", "0.7071441", "0.70354015", "0.701116", "0.69695556", "0.6902507", "0.6892594", "0.6827549", "0.6710175", "0.66966105", "0.66565526", "0.66368425", "0.6634036", "0.66210186", "0.6578064", "0.6512369", "0.6455634", "0.6438786", "0.6422505", "0.6377975", "0.6370988", "0.63687634", "0.63467664", "0.6344604", "0.6344326", "0.6336309", "0.628535", "0.62592894", "0.6255226", "0.6248802", "0.62402403", "0.6230525", "0.62211174", "0.6210436", "0.6173912", "0.6140361", "0.6135549", "0.6135017", "0.61316323", "0.6129334", "0.6120496", "0.61082417", "0.6081143", "0.6068096", "0.6067722", "0.6066498", "0.605659", "0.6049115", "0.6045974", "0.6036482", "0.60272336", "0.60272336", "0.60204136", "0.6017737", "0.6006779", "0.6001051", "0.6000809", "0.5969897", "0.59648156", "0.5950206", "0.59425426", "0.5935143", "0.5932982", "0.5918022", "0.59142214", "0.5911493", "0.59032243", "0.5899562", "0.5887069", "0.5870352", "0.58646977", "0.5864072", "0.58474964", "0.5846538", "0.5845918", "0.5843155", "0.5840146", "0.5835059", "0.58325636", "0.582582", "0.58210856", "0.5817038", "0.5804843", "0.5801187", "0.579806" ]
0.7203028
11
The min Y value of the 2D point
public float min2DY() { return Math.min(stop2D.y, start2D.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Coordinate getMinY();", "private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY())\n\t\t\t\tmin = pointList.get(i).getY();\n\t\treturn min;\n\t}", "float yMin();", "public int getMinY() {\n return minY;\n }", "public int getyMin() {\n\t\treturn yMin;\n\t}", "public double getMinY() {\n\treturn minY;\n }", "@Override\n public int getMinY() {\n return this.minY;\n }", "public double getMinimumY () {\n return minimumY;\n }", "public double getMinY() {\n\t\treturn ny;\n\t}", "private float getMinY(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float minY = Float.POSITIVE_INFINITY;\n for (float [] point : points) {\n minY = Math.min(minY, point [1]);\n } \n return minY;\n }", "private double getStartY() {\n\t\treturn Math.min(y1, y2);\n\t}", "public double obterYmin() {\n\t\treturn ymin;\n\t}", "public int minY()\n\t{\n\t\tint m = coords[0][1];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min(m, coords[i][1]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public double getYRangeMin() {\n return yRangeMin;\n }", "@Override\n public int getMinTileY() {\n return convertYToTileY(getMinY());\n }", "public double getY() {\n\t\treturn point[1];\n\t}", "public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}", "public Output<TFloat32> yMin() {\n return yMin;\n }", "public float getYChartMin() {\n return 0.0F;\n }", "public float min2DX() {\n return Math.min(stop2D.x, start2D.x);\n }", "public int getMinY() {\n return scroller.getMinY();\n }", "int getMinY(Long id) throws RemoteException;", "public double getMaxY() { return getY() + getHeight(); }", "public void theMinY() {\n\t\tfloat miny = coords.getFirst().getY(); // set the smallest y to the first one\n\t\tfor(Coord2D c: coords) { // go through the whole linked list\n\t\t\tif(c.getY() < miny) { // if the y of the current coordinate set is smaller than the current min\n\t\t\t\tminy = c.getY(); // make that current coordinate the new min\n\t\t\t}\n\t\t}\n\t\tthis.setMinY(miny);\n\t}", "public double getMaximumY () {\n return minimumY + height;\n }", "public double getY() {\n return origin.getY();\n }", "double getY() { return pos[1]; }", "public double getStartY() {\n\treturn v1.getY();\n }", "public double getY();", "public int getYPoint() {\r\n return this.y;\r\n }", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "private double findMaxY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble max = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (max<pointList.get(i).getY())\n\t\t\t\tmax = pointList.get(i).getY();\n\t\treturn max;\n\t}", "private int getYmin(int[] yt){\n\t\tint min = 256;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(min > yt[i]){\n\t\t\t\tmin = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "public Point getMinPoint() {\r\n int minX = children.get(0).getShapeStartingPoint().getX();\r\n int minY = children.get(0).getShapeStartingPoint().getY();\r\n for(IShape shape: children) {\r\n if(minX > shape.getShapeStartingPoint().getX()) {\r\n minX = shape.getShapeStartingPoint().getX();\r\n }\r\n if(minY > shape.getShapeStartingPoint().getY()) {\r\n minY = shape.getShapeStartingPoint().getY();\r\n }\r\n }\r\n minPoint = new Point(minX,minY);\r\n return minPoint;\r\n }", "public double getYPos() {\n\t\treturn this.position[1];\n\t}", "double getYPosition();", "public int getPointY() {\n return pointY;\n }", "public double getY() { return y; }", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public double getY()\n\t\t{\n\t\t\treturn this.y[0];\n\t\t}", "long getY();", "float getRenderableMinY(Long id) throws RemoteException;", "public int getY() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.y();\n }", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "Coordinate getMinX();", "public int getPointLineOnScreen(float y){\n return Math.min(getPointLine(y + getOffsetY()),getLineCount() - 1);\n }", "public float getMinX(){\n return points.get(0).getX();\n }", "public float getY();", "public float getY();", "@Override\n public double getPosY() {\n return this.pos[1];\n }", "public float max2DY() {\n return Math.max(stop2D.y, start2D.y);\n }", "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "public double getY2()\n\t{\n\t\treturn this.y[2];\n\t}", "float yMax();", "public double getY2() {\n\t\treturn p2.y;\n\t}", "public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}", "int getY();", "int getY();", "int getY();", "int getY();", "int getY();", "public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }", "public int getY() {\r\n return (int) this.p.getY();\r\n }", "public int getY() { return (int)y; }", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public float min3DY() {\n return Math.min(stop3D.y, start3D.y);\n }", "public int getY() {\n return (int) Math.round(y);\n }", "public double getY() {\n return position.getY();\n }", "@Override\r\n\tpublic double getY2() {\n\t\treturn 0;\r\n\t}", "public double getY1()\n\t{\n\t\treturn this.y[1];\n\t}", "private static int[][] findMinYCoordinateIndex(int[][] pointSet)\n {\n int x = pointSet[0][0];\n int y = pointSet[1][0];\n int index = 0;\n for (int i = 1; i<=pointSet[0].length-1; i++)\n {\n if (pointSet[1][i] == y)\n {\n if (pointSet[0][i] < x)\n {\n y = pointSet[1][i];\n x = pointSet[0][i];\n index = i;\n }\n }\n else\n {\n if (pointSet[1][i] < y)\n {\n y = pointSet[1][i];\n x = pointSet[0][i];\n index = i;\n }\n }\n }\n int tempX = pointSet[0][0]; int tempY = pointSet[1][0];\n pointSet[0][0] = pointSet[0][index];\n pointSet[1][0] = pointSet[1][index];\n pointSet[0][index] = tempX; pointSet[1][index] = tempY;\n return pointSet;\n }", "public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}", "public int getY() {\n\t\treturn 0;\n\t}", "public double getY() { return _height<0? _y + _height : _y; }", "public float getY() {\n return pos.y;\n }", "public static double getOrigY() {\n return 0.3987833857536316;\n }", "public static double getOrigY() {\n return 0.0;\n }", "public static double getOrigY() {\n return 0.0;\n }", "public static double getOrigY() {\n return 0.0;\n }", "public static double getOrigY() {\n return 0.0;\n }", "public static double getOrigY() {\n return 0.0;\n }", "public double topmostVertexY() {\n if (right != null && ! right.isEmpty() &&\n left != null && ! left.isEmpty() &&\n left.get(0).getLine().isAscending() &&\n ! right.get(0).getLine().isAscending()) {\n return Line.intersection(right.get(0).getLine(),\n left.get(0).getLine()).getY();\n } else {\n return Double.POSITIVE_INFINITY;\n }\n }", "public double getY(){\r\n return y;\r\n }", "public double getY1() {\n\t\treturn p1.y;\n\t}", "public double getMinDist(){\n\t\tquickSort(0, pnt.length - 1);\t// for divide\n\t\t/* CASE: same point */\n\t\tif(min == 0)\n\t\t\treturn 0;\n\n\t\tmin = getDist(pnt[0], pnt[pnt.length - 1]);\n\t\tdivide(0, pnt.length - 1);\n\n\t\treturn min;\n\t}", "public double getY() {\n return mY;\n }", "public double getY2()\n {\n return m_Y2;\n }" ]
[ "0.83581865", "0.79226846", "0.7827924", "0.77432364", "0.7732147", "0.772944", "0.7682478", "0.765928", "0.75409627", "0.74333847", "0.73364276", "0.7335734", "0.7292634", "0.72547364", "0.70902336", "0.70809275", "0.70735955", "0.7066289", "0.7061281", "0.6926294", "0.6901475", "0.688446", "0.68702847", "0.68580216", "0.68418694", "0.6814803", "0.6803425", "0.6788137", "0.67584026", "0.67499036", "0.6737423", "0.6737423", "0.6737423", "0.6737423", "0.6737423", "0.6737423", "0.6737423", "0.6737423", "0.6737423", "0.67350596", "0.6710847", "0.6697341", "0.6668273", "0.6662195", "0.66612476", "0.66438967", "0.6642562", "0.6635427", "0.6626468", "0.6610546", "0.6575664", "0.6568433", "0.6568433", "0.6568433", "0.6568433", "0.6568433", "0.6568433", "0.6550745", "0.653964", "0.6531048", "0.65310013", "0.65310013", "0.652012", "0.6518005", "0.6517358", "0.6515121", "0.6512013", "0.6510637", "0.650933", "0.65001833", "0.65001833", "0.65001833", "0.65001833", "0.65001833", "0.64986765", "0.64964145", "0.64961886", "0.6486965", "0.6476864", "0.64722025", "0.6458007", "0.64525795", "0.64499426", "0.644728", "0.64450365", "0.6444439", "0.643933", "0.64381814", "0.6427909", "0.6423211", "0.6423211", "0.6423211", "0.6423211", "0.6423211", "0.6417147", "0.6407955", "0.63964146", "0.6390189", "0.6389762", "0.63876015" ]
0.74889797
9
The max Y value of the 2D point
public float max2DY() { return Math.max(stop2D.y, start2D.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double findMaxY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble max = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (max<pointList.get(i).getY())\n\t\t\t\tmax = pointList.get(i).getY();\n\t\treturn max;\n\t}", "public double getMaxY() { return getY() + getHeight(); }", "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "public double getMaximumY () {\n return minimumY + height;\n }", "float yMax();", "public double max()\n\n {\n double max=xyValueArray.get(0).getY();\n\n for (int i = 0; i < xyValueArray.size(); i++) {\n if (xyValueArray.get(i).getY() > max) {\n max = xyValueArray.get(i).getY();\n }\n }\n return max;\n }", "public final int getMaxY() {\n return getMinY() + getHeight();\n }", "public double getMaxY() {\n\t\treturn my;\n\t}", "private float getMaxY(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float maxY = Float.NEGATIVE_INFINITY;\n for (float [] point : points) {\n maxY = Math.max(maxY, point [1]);\n } \n return maxY;\n }", "public int getYMax(){\n\t\treturn yDim;\n\t}", "public double getBiggestY() {\r\n double y = 0;\r\n List<Enemy> enemyLowest = this.lowestLine();\r\n if (enemyLowest.size() > 0) {\r\n y = enemyLowest.get(0).getCollisionRectangle().getBoundaries().getLowY();\r\n for (Enemy e: enemyLowest) {\r\n if (e.getCollisionRectangle().getBoundaries().getLowY() > y) {\r\n y = e.getCollisionRectangle().getBoundaries().getLowY();\r\n }\r\n }\r\n return y;\r\n }\r\n return y;\r\n }", "public double getMaxY() {\n\treturn maxY;\n }", "public int getYMax(){\n\t\tDouble max = Collections.max(byteIncrements);\n\t\tyMax = max.intValue();\n\t\treturn yMax;\n\t}", "public int getMaxY() {\n return maxY;\n }", "public int getyMax() {\n\t\treturn yMax;\n\t}", "public double getYRangeMax() {\n return yRangeMax;\n }", "public int getMaxY() {\n\t\treturn maxY;\n\t}", "public double getChannelYPositionLast() {\n double max = 0.0;\n for (ChannelGraphic channelGraphic : channelGraphics) {\n if (channelGraphic.getyPosition() > max) {\n max = channelGraphic.getyPosition();\n }\n }\n return max;\n }", "public int getMaxTileY() {\n return convertYToTileY(getMaxY() - 1);\n }", "public double getFrameMaxY() { return isRSS()? getFrame().getMaxY() : getMaxY(); }", "public Output<TFloat32> yMax() {\n return yMax;\n }", "@Override\n public double getMaxY() {\n return curMap.getMap().getHeight();\n }", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "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 getMaxY() {\n return scroller.getMaxY();\n }", "public double getY() {\n\t\treturn point[1];\n\t}", "private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public double getHighestChildY() {\n\t\t/* Aucun enfant => aucune contrainte en y vers le bas */\n\t\tif (childrenEdges == null)\n\t\t\treturn Double.MAX_VALUE;\n\t\t\n\t\tdouble minY = Double.MAX_VALUE;\n\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t/*\n\t\t\t * Recherche de l'extrémité la plus basse de l'arête (la plus haute étant le noeud\n\t\t\t * courant)\n\t\t\t */\n\t\t\tEdge currentEdge = childrenEdges.elementAt(i);\n\t\t\tdouble y1 = currentEdge.getSource().getShape().getY();\n\t\t\tdouble y2 = currentEdge.getDestination().getShape().getY();\n\t\t\tdouble y = (y1 > y2) ? y1 : y2;\n\t\t\t\n\t\t\t/* Recherche de l'extrémité la plus haute parmi toutes les extrémités basses */\n\t\t\tif (y < minY)\n\t\t\t\tminY = y;\n\t\t}\n\t\t\n\t\treturn minY;\n\t}", "public float getYChartMax() {\n return 0.0F;\n }", "public void theMaxY() {\n\t\tfloat maxy = coords.getFirst().getY(); // set the largest y to the first one\n\t\tfor(Coord2D c: coords) { // go through the whole linked list\n\t\t\tif(c.getY() > maxy) { // if the y of the current coordinate set is larger than the current max\n\t\t\t\tmaxy = c.getY(); // make that current coordinate the new max\n\t\t\t}\n\t\t}\n\t\tthis.setMaxY(maxy);\n\t}", "public float max2DX() {\n return Math.max(stop2D.x, start2D.x);\n }", "public int getMaximumPoints();", "private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }", "public double getEndY() {\n\treturn v2.getY();\n }", "public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}", "public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }", "public int getMaxYTxt(){\n\n int max = 0;\n\n for (Point p : points){\n Rect size = getTxtBounds(tetxPaint, Float.toString(p.getY()));\n\n if(max < size.width())\n max = size.width();\n }\n\n return max;\n }", "public double lastYValue() {\n\t\tif (pointList.size()==0)\n\t\t\treturn Double.NaN;\n\t\telse\n\t\t\treturn pointList.get( pointList.size()-1).getY();\n\t}", "public double getYPos() {\n\t\treturn this.position[1];\n\t}", "public int getPointY() {\n return pointY;\n }", "public double getY2()\n\t{\n\t\treturn this.y[2];\n\t}", "public float max3DY() {\n return Math.max(stop3D.y, start3D.y);\n }", "private Integer getHighestYAt(Location locationIncludingYmax, int minY) {\n int y = locationIncludingYmax.getBlockY();\n while (y >= minY) {\n locationIncludingYmax.setY(y);\n Block block = locationIncludingYmax.getBlock();\n if (block.getType().isSolid())\n return y;\n y--;\n }\n return -1;\n }", "public double getY2() {\n\t\treturn p2.y;\n\t}", "public double getY()\n\t\t{\n\t\t\treturn this.y[0];\n\t\t}", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "public double getY();", "public int getYPoint() {\r\n return this.y;\r\n }", "public double getY() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble y = bounds.getY() + (_yt * bounds.getHeight());\n\t\treturn y;\n\t}", "public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}", "public int getY() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.y();\n }", "public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}", "public double getUserFriendlyYPos(){\n return myGrid.getHeight()/ HALF-yPos;\n }", "Coordinate getMinY();", "public int getY() {\n return (int) this.center.getY();\n }", "public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }", "protected double getReferenceY() {\n if (isYAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingY()) {\n if (Double.isNaN(referenceY)) {\n referenceY = getMinY(false);\n }\n return referenceY;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "public int getYSize() {\n\t\treturn (highPoint.getBlockY() - lowPoint.getBlockY()) + 1;\n\t}", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "long getY();", "public double getY() {\n return position.getY();\n }", "public int getY() {\n return (int) Math.round(y);\n }", "public int projectY( double y ) {\n double dy = yoff_ - Math.round( y * scale_ );\n return (int) Math.max( (double) Integer.MIN_VALUE,\n Math.min( (double) Integer.MAX_VALUE, dy ) );\n }", "public double getYValue(){\r\n\t\treturn ((Double)(super.yValue) ).doubleValue(); \r\n\t}", "public double getMaxT() {\n return v[points_per_segment - 1];\n }", "public double getY() {\n return mY;\n }", "public float setYMax(){\n\t\tif (game.getDifficulty() == 0)\n\t\t\treturn 72;\n\t\telse if (game.getDifficulty() == 1)\n\t\t\treturn 108;\n\t\telse\n\t\t\treturn 144;\n\t}", "public int getY() {\n return (int) center.getY();\n }", "public double getY() {\r\n return this.y;\r\n }", "public int getY() {\r\n return (int) this.p.getY();\r\n }", "public double getY() { return y; }", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public final int getY()\n\t{\n\t\treturn pos.y;\n\t}", "public int getY() {\r\n return (int) center.getY();\r\n }", "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "public double getMaximum() {\n return (max);\n }", "public int getY()\n\t{\n\t\treturn m_nPosY;\n\t}", "public double getEndY()\n {\n return endycoord; \n }", "public double getY2()\n {\n return m_Y2;\n }", "public float getLimit_lin_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t}\n\t}", "protected Number getY() {\n return this.yCoordinate;\n }", "public double getY() {\n return origin.getY();\n }", "public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }", "public double getY(){\n\t\treturn y;\n\t}", "public int getY()\r\n\t{\r\n\t\treturn (int)y;\r\n\t}", "public double getMinY() {\n\t\treturn ny;\n\t}", "public float getY();", "public float getY();" ]
[ "0.8189508", "0.80759066", "0.802194", "0.80164605", "0.7913982", "0.7813693", "0.7726508", "0.7681976", "0.7654585", "0.76188445", "0.7612814", "0.7594504", "0.75907815", "0.7578015", "0.752551", "0.75130963", "0.75121206", "0.74651533", "0.7423104", "0.7395514", "0.7213043", "0.7188007", "0.7141264", "0.71398157", "0.71015346", "0.7089084", "0.70829624", "0.7054939", "0.70508313", "0.7050594", "0.7047071", "0.7011389", "0.69634724", "0.695609", "0.686617", "0.685684", "0.6851214", "0.6826141", "0.6804743", "0.6802602", "0.6772799", "0.6757041", "0.67515075", "0.6748543", "0.67442536", "0.67240065", "0.6715958", "0.6715827", "0.66980445", "0.6685953", "0.66846806", "0.6672252", "0.66585636", "0.6650545", "0.6648098", "0.66301304", "0.66264075", "0.6609346", "0.6609346", "0.6609346", "0.6609346", "0.6609346", "0.6609346", "0.6609346", "0.6609346", "0.6609346", "0.6606072", "0.65915895", "0.6583739", "0.6581487", "0.6577365", "0.6576219", "0.6576123", "0.6575207", "0.6571896", "0.6569815", "0.6551818", "0.65500516", "0.6546149", "0.65458494", "0.6543196", "0.65347373", "0.65347373", "0.65347373", "0.6524204", "0.6519251", "0.6516379", "0.65094894", "0.6506573", "0.6504984", "0.64992344", "0.64952505", "0.6494864", "0.64929414", "0.6489645", "0.6483931", "0.6471254", "0.6470652", "0.6463436", "0.6463436" ]
0.77504796
6
The min X value of the 2D point projected to 3D
public float min3DX() { return Math.min(stop3D.x, start3D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMinX(){\n return points.get(0).getX();\n }", "Coordinate getMinX();", "public Point3 min(Point3 p) {\n return new Point3( Math.min(x, p.x),\n Math.min(y, p.y),\n Math.min(z, p.z) );\n }", "private float getMinX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float minX = Float.POSITIVE_INFINITY;\n for (float [] point : points) {\n minX = Math.min(minX, point [0]);\n } \n return minX;\n }", "public Point getXMin()\n {\n return (Point)xMin.clone();\n }", "public double getMinX() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn pointList.get(0).getX();\n\t}", "public double getMinimumX () {\n return minimumX;\n }", "public double obterXmin() {\n\t\treturn xmin;\n\t}", "public double getMinX() {\n\t\treturn nx;\n\t}", "int getXMin();", "public double getMinX() {\n\treturn minX;\n }", "float xMin();", "public int minX()\n\t{\n\t\tint m = coords[0][0];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min (m, coords[i][0]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public Point getMinPoint() {\r\n int minX = children.get(0).getShapeStartingPoint().getX();\r\n int minY = children.get(0).getShapeStartingPoint().getY();\r\n for(IShape shape: children) {\r\n if(minX > shape.getShapeStartingPoint().getX()) {\r\n minX = shape.getShapeStartingPoint().getX();\r\n }\r\n if(minY > shape.getShapeStartingPoint().getY()) {\r\n minY = shape.getShapeStartingPoint().getY();\r\n }\r\n }\r\n minPoint = new Point(minX,minY);\r\n return minPoint;\r\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public float min3DZ() {\n return Math.min(stop3D.z, start3D.z);\n }", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "float getRenderableMinX(Long id) throws RemoteException;", "public Point3D normalize() {\n\t\treturn this.divide(Math.sqrt(x*x + y*y + z*z));\n\t}", "public double getMinDist(){\n\t\tquickSort(0, pnt.length - 1);\t// for divide\n\t\t/* CASE: same point */\n\t\tif(min == 0)\n\t\t\treturn 0;\n\n\t\tmin = getDist(pnt[0], pnt[pnt.length - 1]);\n\t\tdivide(0, pnt.length - 1);\n\n\t\treturn min;\n\t}", "public double getXRangeMin() {\n return xRangeMin;\n }", "float zMin();", "protected void calculateMinMaxCenterPoint() {\n\t\tfinal ImagePlus imp = c.getImage();\n\t\tfinal int w = imp.getWidth(), h = imp.getHeight();\n\t\tfinal int d = imp.getStackSize();\n\t\tfinal Calibration cal = imp.getCalibration();\n\t\tmin = new Point3d();\n\t\tmax = new Point3d();\n\t\tcenter = new Point3d();\n\t\tmin.x = w * (float) cal.pixelHeight;\n\t\tmin.y = h * (float) cal.pixelHeight;\n\t\tmin.z = d * (float) cal.pixelDepth;\n\t\tmax.x = 0;\n\t\tmax.y = 0;\n\t\tmax.z = 0;\n\n\t\tfloat vol = 0;\n\t\tfor (int zi = 0; zi < d; zi++) {\n\t\t\tfinal float z = zi * (float) cal.pixelDepth;\n\t\t\tfinal ImageProcessor ip = imp.getStack().getProcessor(zi + 1);\n\n\t\t\tfinal int wh = w * h;\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal float v = ip.getf(i);\n\t\t\t\tif (v == 0) continue;\n\t\t\t\tvol += v;\n\t\t\t\tfinal float x = (i % w) * (float) cal.pixelWidth;\n\t\t\t\tfinal float y = (i / w) * (float) cal.pixelHeight;\n\t\t\t\tif (x < min.x) min.x = x;\n\t\t\t\tif (y < min.y) min.y = y;\n\t\t\t\tif (z < min.z) min.z = z;\n\t\t\t\tif (x > max.x) max.x = x;\n\t\t\t\tif (y > max.y) max.y = y;\n\t\t\t\tif (z > max.z) max.z = z;\n\t\t\t\tcenter.x += v * x;\n\t\t\t\tcenter.y += v * y;\n\t\t\t\tcenter.z += v * z;\n\t\t\t}\n\t\t}\n\t\tcenter.x /= vol;\n\t\tcenter.y /= vol;\n\t\tcenter.z /= vol;\n\n\t\tvolume = (float) (vol * cal.pixelWidth * cal.pixelHeight * cal.pixelDepth);\n\n\t}", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public Point getXLower()\n {\n return (Point)xLow.clone();\n }", "public double[] getMin(){\n double[] min = new double[3];\n for (Triangle i : triangles) {\n double[] tempmin = i.minCor();\n min[0] = Math.min( min[0], tempmin[0]);\n min[1] = Math.min( min[1], tempmin[1]);\n min[2] = Math.min( min[2], tempmin[2]);\n }\n return min;\n }", "public InhomogeneousPoint3D getSuggestedCenterValue() {\n return mSuggestedCenterValue;\n }", "public float min2DX() {\n return Math.min(stop2D.x, start2D.x);\n }", "private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}", "public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }", "float getXStepMin();", "public int minY()\n\t{\n\t\tint m = coords[0][1];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min(m, coords[i][1]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public static double getOrigX() {\n return 0.13199996948242188;\n }", "public double getX() {\n\t\treturn point[0];\n\t}", "@Override\n public int getMinX() {\n return this.minX;\n }", "public static double getOrigX() {\n return 0.12799999117851257;\n }", "public int projectX( double x ) {\n double dx = xoff_ + Math.round( x * scale_ );\n return (int) Math.max( (double) Integer.MIN_VALUE,\n Math.min( (double) Integer.MAX_VALUE, dx ) );\n }", "public double minXp(){\n\t\tmin = xp[0];\n\t\tfor(int i=1;i<xp.length;i++){\n\t\t\tif(xp[i]<min){\n\t\t\t\tmin=xp[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "public final double getMinConvexCoefficient()\n {\n return minConvexCoefficient;\n }", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "public Point3d get3DCenter() {\n double xOfCenter = 0;\n double yOfCenter = 0;\n double zOfCenter = 0;\n for (IAtom atom : atoms) {\n xOfCenter += atom.getPoint3d().x;\n yOfCenter += atom.getPoint3d().y;\n zOfCenter += atom.getPoint3d().z;\n }\n\n return new Point3d(xOfCenter / getAtomCount(),\n yOfCenter / getAtomCount(),\n zOfCenter / getAtomCount());\n }", "public static double getOrigX() {\n return 2.926776647567749;\n }", "protected double xPixelToPosition(double pixel) {\r\n// double axisV = xPositionToPixel(originX);\r\n// return (pixel - axisV) * (maxX - minX) / (double) getWidth();\r\n return minX + pixel * (maxX - minX) / getWidth();\r\n }", "public SbVec3f\ngetObjectPoint() {\n\treturn getObjectPoint(null);\n}", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "private static int min(int x, int y, int z) {\n\t\tif (x < y)\n\t\t\treturn (x < z) ? x : z;\n\t\telse\n\t\t\treturn (y < z) ? y : z;\n\t}", "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "public Location3D getLowLoc() {\n\t\treturn lowPoint;\n\t}", "public void setMin(Vect3d min) {\r\n this.min = min;\r\n }", "public void theMinX() {\n\t\tfloat minx = coords.getFirst().getX(); // set the smallest x to the first one\n\t\tfor(Coord2D c: coords) { // go through the whole linked list\n\t\t\tif(c.getX() < minx) { // if the x of the current coordinate set is smaller than the current min\n\t\t\t\tminx = c.getX(); // make that current coordinate the new min\n\t\t\t}\n\t\t}\n\t\tthis.setMinX(minx);\n\t}", "@Override\n public int getMinTileX() {\n return convertXToTileX(getMinX());\n }", "public float getX() { return xCoordinate;}", "public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }", "public float max3DX() {\n return Math.max(stop3D.x, start3D.x);\n }", "public int getXD3 ()\n\t{\n\t\treturn xDimension3;\n\t}", "final public Vector3 x(final Vector3 v){\n if(v == null){\n throw new IllegalArgumentException(\"v must not be null\");\n }\n return new Vector3((y*v.z)-(z*v.y), (z*v.x)-(x*v.z), (x*v.y)-(y*v.x)); \n }", "double getXPosition();", "public double getCenterX() { return centerX.get(); \t}", "private float getMaxX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float maxX = Float.NEGATIVE_INFINITY;\n for (float [] point : points) {\n maxX = Math.max(maxX, point [0]);\n } \n return maxX;\n }", "public double getX() {\n return mX;\n }", "public float min3DY() {\n return Math.min(stop3D.y, start3D.y);\n }", "private GeoPoint getClosestPoint(List<GeoPoint> intersectionPoints) {\n Point3D p0 = scene.getCamera().getSpo();//the point location of the camera.\n double minDist = Double.MAX_VALUE;//(meatchelim ldistance hamaximily)\n double currentDistance = 0;\n GeoPoint pt = null;\n for (GeoPoint geoPoint : intersectionPoints) {\n currentDistance = p0.distance(geoPoint.getPoint());//checks the distance from camera to point\n if (currentDistance < minDist) {\n minDist = currentDistance;\n pt = geoPoint;\n }\n }\n return pt;\n }", "public static double getOrigX() {\n return 0.08838501572608948;\n }", "public int getPointX() {\n return pointX;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getX() {\n return x_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : x_;\n }", "public Point3D getPoint() {\r\n\t\treturn point;\r\n\t}", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "public double calcForceExertedByX(Planet p){\n double force_x = (this.calcForceExertedBy(p) * (p.xxPos - xxPos))/this.calcDistance(p);\n return force_x;\n }", "public double elementMinAbs() {\n return ops.elementMinAbs(mat);\n }", "private Point getLower() {\n int lowerX;\n int lowerY;\n lowerY = (int) (-gameCanvas.getHeight() + mapOffsetY * 2);\n lowerX = (int) (-gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(lowerX, lowerY);\n }", "double getMapPositionX();", "public int getMinX() {\n return scroller.getMinX();\n }", "public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}", "public Vector getL(Point3D p){\n if (p.equals(_position)) {\n return null;\n }\n return p.subtract(_position).normalize();\n }", "public double getX() {\n\t\tif (v == 0) {\n\t\t\treturn 0.0;\n\t\t} else {\n\t\t\treturn x;\n\t\t}\n\t}", "Float getX();", "public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);", "public float getX() {\n return internalGroup.getX();\n }", "protected double getReferenceX() {\n if (isXAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingX()) {\n if (Double.isNaN(referenceX)) {\n referenceX = getMinX(false);\n }\n return referenceX;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }", "public double getX()\n\t{\n\t\treturn x;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's x-coordinate\n\t}", "double leftmost_alien_x() {\n double min_x = scene_width;\n for (Alien alien : aliens) {\n if (alien.x_position < min_x) {\n min_x = alien.x_position;\n }\n }\n return min_x;\n }", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "protected static Point2D.Float getLowestPoint(List<Point2D.Float> points) {\n\n\t\tPoint2D.Float lowest = points.get(0);\n\n\t\tfor (int i = 1; i < points.size(); i++) {\n\n\t\t\tPoint2D.Float temp = points.get(i);\n\n\t\t\tif (temp.y < lowest.y || (temp.y == lowest.y && temp.x < lowest.x)) {\n\t\t\t\tlowest = temp;\n\t\t\t}\n\t\t}\n\n\t\treturn lowest;\n\t}", "public Ndimensional getStartPoint();", "double getX() { return pos[0]; }", "public float getX1() {\r\n return (b + 3*a)/3;\r\n }", "public Point evaluate(double x, double y, double z) {\n\t\t// x=(-(yn(y-y0)+zn(z-z0))+xn*x0)/xn\n\t\tif (x != x) {\n\t\t\tx = (-(normal.y * (y - origin.y) + normal.z * (z - origin.z)) + normal.x\n\t\t\t\t\t* origin.x)\n\t\t\t\t\t/ normal.x;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (y != y) {\n\t\t\ty = (-(normal.x * (x - origin.x) + normal.z * (z - origin.z)) + normal.y\n\t\t\t\t\t* origin.y)\n\t\t\t\t\t/ normal.y;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (z != z) {\n\t\t\tz = (-(normal.y * (y - origin.y) + normal.x * (x - origin.x)) + normal.z\n\t\t\t\t\t* origin.z)\n\t\t\t\t\t/ normal.z;\n\t\t\treturn new Point(x, y, z);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Vector getNormal(Point3D p) {\n Vector O_P= p.subtract(_center);\n return O_P.normalize();\n // return null;\n }", "public Float getT1B11Xfmin() {\r\n return t1B11Xfmin;\r\n }", "private Point3D findNormalAtPoint(Point3D hitPoint) {\n double x = hitPoint.getX();\n double y = hitPoint.getY();\n double z = hitPoint.getZ();\n double normalX = 2 * a * x + e * z + f * y + g;\n double normalY = 2 * b * y + d * z + f * x + h;\n double normalZ = 2 * c * z + d * y + e * x + i;\n return new Point3D(normalX, normalY, normalZ).normalize();\n }", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public double getMinValue() {\n\t\tdouble min = Double.POSITIVE_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 < min)\n\t\t\t\tmin = value;\n\t\t}\n\t\treturn min;\n\t}", "public double getStartX() {\n\treturn v1.getX();\n }", "public double getPositionToP3()\r\n\t{\r\n\t\tdouble max = 0;\r\n\t\tfor(Unit u : units)\r\n\t\t{\r\n\t\t\tif(u instanceof Gate)\r\n\t\t\t\tcontinue;\r\n\t\t\tdouble d = u.getPositionAlongCurve() + u.getRadius()/owner.getLength();\r\n\t\t\tif(d > max)\r\n\t\t\t\tmax = d;\r\n\t\t}\r\n\t\tif(max < 0)\r\n\t\t\tmax = 0;\r\n\t\tif(max > 1)\r\n\t\t\tmax = 1;\r\n\t\treturn 1 - max;\r\n\t}", "public float toWorldCoordinateX(float mouseX){\n \treturn (mouseX/zoom) - (parent.width/zoom/2) + position.x;\n }", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public final double getMin() {\r\n\t\treturn this.m_min;\r\n\t}" ]
[ "0.7508068", "0.7339012", "0.70582086", "0.7004657", "0.6986083", "0.69355786", "0.6840453", "0.68161786", "0.67992496", "0.6790533", "0.67699236", "0.6635315", "0.6531941", "0.65256387", "0.6488092", "0.6476309", "0.6439792", "0.6419362", "0.6380284", "0.6367273", "0.6359896", "0.63570297", "0.6343266", "0.6293348", "0.6288137", "0.6275089", "0.62307256", "0.62234366", "0.62211335", "0.62163293", "0.6209246", "0.62046033", "0.619803", "0.6172081", "0.6171348", "0.6160272", "0.6132558", "0.607832", "0.6068597", "0.60601336", "0.60588473", "0.6054104", "0.6053802", "0.6051089", "0.6028864", "0.6028864", "0.6028864", "0.60277236", "0.60176194", "0.60175735", "0.5995546", "0.59853816", "0.59690136", "0.59676874", "0.5964974", "0.5954766", "0.59367114", "0.59283406", "0.5923022", "0.5904067", "0.58982265", "0.589161", "0.5884381", "0.5875423", "0.5871278", "0.58656853", "0.58643305", "0.5860772", "0.5852699", "0.58451027", "0.5829579", "0.5828719", "0.58280325", "0.58268505", "0.58258927", "0.58172065", "0.5814693", "0.58117795", "0.58016497", "0.5801621", "0.5794912", "0.5789065", "0.5781293", "0.57803327", "0.5775954", "0.57675236", "0.57651067", "0.5763808", "0.57549274", "0.5746098", "0.5742768", "0.57426006", "0.5731035", "0.57234734", "0.5719051", "0.5718123", "0.57157683", "0.5712769", "0.5710253", "0.5710014" ]
0.74539894
1